:root {
    --primary: #0b1120;
    --secondary: #1a2332;
    --accent: #fbbf24;
    --accent-hover: #d97706;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #374151;
    --card-bg: #1f2937;
    --success: #10b981;
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

a:hover {
    color: var(--accent);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.navbar {
    background: rgba(11, 17, 32, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.flag-icon {
    margin-right: 6px;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 15px;
    }
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Calculator Card */
.calc-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    margin: 0 auto;
}

.calc-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--primary);
    border: 1px solid var(--border);
    color: #fff;
    padding: 15px 15px 15px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: 0.2s;
}

select.form-control {
    padding-left: 15px;
    cursor: pointer;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.1);
}

.btn-calc {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 24px;
    /* Align with inputs */
    transition: 0.2s;
}

.btn-calc:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Results Section */
.result-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.big-rate {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin: 10px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--secondary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.data-table td {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Content Blocks */
.content-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.expert-box {
    background: rgba(251, 191, 36, 0.05);
    /* Tinted gold */
    border-left: 4px solid var(--accent);
    padding: 30px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

/* Sidebar */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.link-list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.link-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.sticky-ad {
    position: sticky;
    top: 100px;
}

/* SEO Directory Grid */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.dir-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.dir-item:hover {
    border-color: var(--accent);
    background: var(--secondary);
}

.footer {
    border-top: 1px solid var(--border);
    background: #0f172a;
    /* Slightly darker than body */
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--accent);
}

/* Ad Slots */
.ad-slot-horizontal {
    margin: 30px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 10px;
}

.ad-slot-native {
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-form {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .big-rate {
        font-size: 3rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .btn-calc {
        margin-top: 0;
    }
}