:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --primary-color: #8b5cf6;
    --secondary-color: #ec4899;
    --accent-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Animated Orbs */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}

.background-animation::before {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.background-animation::after {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 1rem 2rem;
    z-index: 10;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 800px;
    width: 90%;
    margin: auto;
    z-index: 1;
    padding: 2rem 0;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.header h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-section {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

#domain-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    color: white;
    font-size: 1.2rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

#domain-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

#submit-btn {
    background: var(--accent-gradient);
    border: none;
    border-radius: 16px;
    padding: 0 2.5rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary-color);
}

#submit-btn:active {
    transform: translateY(0);
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Result Section */
.result-section {
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#result-domain {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    word-break: break-all;
}

.price-container {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
}

.currency {
    font-size: 3rem;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    text-align: left;
}

.explanations-container {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.explanations-container h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

#explanations-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#explanations-list li {
    position: relative;
    padding-left: 2rem;
    line-height: 1.5;
}

#explanations-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 { font-size: 2rem; }
    .input-group { flex-direction: column; }
    #submit-btn { padding: 1.2rem; }
    .price-container { font-size: 3.5rem; }
    .currency { font-size: 2rem; }
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; }
}
