:root {
    --bg-color: #0B0F19;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-blue: #0072FF;
    --accent-cyan: #00C6FF;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --error-color: #EF4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Background Blobs for Visual Interest */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,198,255,0.4) 0%, rgba(0,0,0,0) 70%);
}

.blob-2 {
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,114,255,0.4) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

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

.container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.hero-section {
    text-align: center;
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.input-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.input-glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.input-glass:focus-within {
    border-color: rgba(0, 198, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 198, 255, 0.15);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-left: 1rem;
}

input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    padding: 0 1rem;
}

input[type="text"]::placeholder {
    color: var(--text-secondary);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    white-space: nowrap;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.error-msg {
    color: var(--error-color);
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Loading Section */
.loading-section {
    text-align: center;
    margin-top: 5rem;
    animation: fadeIn 0.5s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--card-border);
    border-bottom-color: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-section p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Result Section */
.result-section {
    margin-top: 5rem;
    margin-bottom: 4rem;
    animation: slideUpFade 0.6s ease forwards;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.domain-badge {
    background: rgba(0, 198, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 198, 255, 0.2);
}

.price-display {
    text-align: center;
    margin-bottom: 3.5rem;
}

.currency {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.75rem;
}

.price-display h3 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(to right, #FFFFFF, #A5B4FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.metric-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.traffic-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.seo-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.age-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 1.5rem; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    h1 { font-size: 2.5rem; }
    .metrics-grid { grid-template-columns: 1fr; }
    .input-glass { flex-direction: column; padding: 1rem; border-radius: 20px; gap: 1rem;}
    .input-glass input { width: 100%; text-align: center;}
    .search-icon { display: none; }
    .primary-btn { width: 100%; }
    .price-display h3 { font-size: 3.5rem; }
    .glass-card { padding: 2rem 1.5rem; }
}
