/* Best DNS — Black & Gold Theme | Responsive | 3D Depth */
:root {
    --gold: #d4af37;
    --gold-light: #f5d76e;
    --gold-dark: #b8960c;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --black: #0a0a0a;
    --black-soft: #111111;
    --black-card: #161616;
    --black-elevated: #1c1c1c;
    --black-border: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --text-muted: #6b6b6b;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;
    --shadow-3d: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-3d-hover: 0 16px 48px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.25);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

.gold { color: var(--gold); }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 175, 55, 0.04), transparent);
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navigation ── */
.site-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--black-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-height); gap: 1rem;
}

.logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: var(--text-primary); font-weight: 800; font-size: 1.25rem;
}

.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--black); font-size: 1.1rem;
    box-shadow: var(--shadow-gold), inset 0 2px 4px rgba(255,255,255,0.3);
}

.logo span { color: var(--gold); }

.nav-links {
    display: flex; align-items: center; gap: 0.25rem; list-style: none;
}

.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.9rem;
    padding: 0.5rem 0.875rem; border-radius: var(--radius-sm); transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold); background: rgba(212, 175, 55, 0.08);
}

.nav-toggle {
    display: none; background: var(--black-elevated); border: 1px solid var(--black-border);
    color: var(--gold); width: 44px; height: 44px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 1.25rem; align-items: center; justify-content: center;
}

/* ── Hero ── */
.hero {
    padding: 5rem 0 4rem; text-align: center; position: relative;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light); padding: 0.5rem 1.25rem; border-radius: 999px;
    font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.03em;
}

.hero h1 .gold { color: var(--gold); }

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--text-secondary);
    max-width: 720px; margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    border: none; cursor: pointer; transition: var(--transition);
}

.btn-gold {
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    color: var(--black);
    box-shadow: var(--shadow-gold), inset 0 2px 4px rgba(255,255,255,0.35);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(255,255,255,0.35);
}

.btn-outline {
    background: rgba(255,255,255,0.03); color: var(--text-primary);
    border: 1px solid var(--black-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn-outline:hover {
    border-color: var(--gold); color: var(--gold);
    transform: translateY(-3px); box-shadow: var(--shadow-3d);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; border-radius: var(--radius-sm); }

/* ── Cards ── */
.card {
    background: linear-gradient(160deg, var(--black-card) 0%, var(--black-soft) 100%);
    border: 1px solid var(--black-border); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-3d); transition: var(--transition);
    position: relative; overflow: hidden;
}

.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-3d-hover);
    border-color: rgba(212, 175, 55, 0.25);
}

.card:hover::before { opacity: 1; }

.card-icon {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.5rem; margin-bottom: 1.25rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.25rem; }

.card-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}

/* ── Sections ── */
section { padding: 4rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem;
}

.section-header h2 .gold { color: var(--gold); }

.section-header p {
    color: var(--text-secondary); font-size: 1.05rem; max-width: 680px; margin: 0 auto;
}

.section-label {
    display: inline-block; color: var(--gold); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem;
}

/* ── Intro Banner ── */
.intro-banner {
    background: linear-gradient(160deg, var(--black-card), var(--black-elevated));
    border: 1px solid var(--black-border); border-radius: var(--radius-xl);
    padding: 2.5rem; margin: -2rem auto 3rem; max-width: 960px;
    box-shadow: var(--shadow-3d); position: relative; z-index: 10;
}

.intro-banner p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.85; }

.intro-banner strong { color: var(--gold-light); }

/* ── Stats Row ── */
.stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem; margin: 3rem 0;
}

.stat-item {
    text-align: center; padding: 1.5rem;
    background: var(--black-card); border-radius: var(--radius-md);
    border: 1px solid var(--black-border); box-shadow: var(--shadow-3d);
}

.stat-number {
    font-size: 2rem; font-weight: 800; color: var(--gold);
    line-height: 1.2; margin-bottom: 0.25rem;
}

.stat-label { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 1.25rem 0; font-size: 0.875rem; color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ── Page Header ── */
.page-header { padding: 3rem 0 2rem; text-align: center; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.page-header p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ── Filter Controls ── */
.filter-controls {
    background: var(--black-card); border: 1px solid var(--black-border);
    padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-3d);
    margin-bottom: 2rem; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; align-items: end;
}

.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-group label { font-weight: 600; font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

.filter-group select, .filter-group input {
    padding: 0.75rem 1rem; border: 1px solid var(--black-border);
    border-radius: var(--radius-sm); font-size: 0.95rem;
    background: var(--black-elevated); color: var(--text-primary); transition: var(--transition);
}

.filter-group select:focus, .filter-group input:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-filter {
    padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600;
    cursor: pointer; transition: var(--transition); border: 1px solid var(--black-border);
    background: var(--black-elevated); color: var(--text-secondary); font-size: 0.875rem;
}

.btn-filter:hover { border-color: var(--gold); color: var(--gold); }

/* ── DNS Cards ── */
.dns-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.dns-card {
    background: linear-gradient(160deg, var(--black-card), var(--black-soft));
    border: 1px solid var(--black-border); border-radius: var(--radius-lg);
    padding: 1.75rem; box-shadow: var(--shadow-3d); transition: var(--transition);
}

.dns-card:hover {
    transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-3d-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.dns-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 0.5rem; }
.dns-card h3 { font-size: 1.15rem; font-weight: 700; }

.region-badge {
    display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    flex-shrink: 0;
}

.region-badge.global { background: rgba(212,175,55,0.15); color: var(--gold-light); border: 1px solid rgba(212,175,55,0.3); }
.region-badge.china { background: rgba(74,222,128,0.12); color: var(--success); border: 1px solid rgba(74,222,128,0.25); }
.region-badge.us { background: rgba(251,191,36,0.12); color: var(--warning); border: 1px solid rgba(251,191,36,0.25); }
.region-badge.asia { background: rgba(248,113,113,0.12); color: #fca5a5; border: 1px solid rgba(248,113,113,0.25); }
.region-badge.eu { background: rgba(147,197,253,0.12); color: #93c5fd; border: 1px solid rgba(147,197,253,0.25); }

.dns-card .performance {
    background: rgba(212,175,55,0.06); border: 1px solid rgba(212,175,55,0.12);
    padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
    font-size: 0.875rem; color: var(--text-secondary);
}

.dns-card .performance strong { color: var(--gold); }

.dns-card .feature {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0;
    font-size: 0.875rem; color: var(--text-secondary);
}

.dns-card .feature i { color: var(--gold); font-size: 0.7rem; }

.dns-ip-container {
    background: linear-gradient(145deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.2); padding: 1rem; border-radius: var(--radius-sm);
    margin: 1rem 0; box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.dns-ip {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem; font-weight: 600; color: var(--gold-light);
    text-align: center; word-break: break-all; line-height: 1.6;
}

.btn-copy {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem; background: transparent; color: var(--gold);
    border: 1px solid rgba(212,175,55,0.4); border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.875rem;
}

.btn-copy:hover { background: rgba(212,175,55,0.12); transform: translateY(-2px); }
.btn-copy.copied { background: rgba(74,222,128,0.15); border-color: var(--success); color: var(--success); }

.loading { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--text-secondary); }

.loading-spinner {
    width: 48px; height: 48px; border: 3px solid var(--black-border);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}

.no-results {
    grid-column: 1 / -1; text-align: center; padding: 3rem;
    background: rgba(212,175,55,0.05); border: 1px solid rgba(212,175,55,0.15);
    border-radius: var(--radius-lg); color: var(--text-secondary);
}

/* ── Comparison Table ── */
.comparison-wrapper { overflow-x: auto; margin: 0 -0.5rem; padding: 0 0.5rem; -webkit-overflow-scrolling: touch; }

.comparison-table {
    width: 100%; min-width: 800px; border-collapse: separate; border-spacing: 0;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3d);
}

.comparison-table th, .comparison-table td { padding: 1rem 1.25rem; text-align: center; }

.comparison-table th {
    background: linear-gradient(145deg, var(--gold-dark), var(--gold));
    color: var(--black); font-weight: 700; font-size: 0.875rem;
}

.comparison-table th:first-child { text-align: left; }

.comparison-table tr { background: var(--black-card); transition: var(--transition); }
.comparison-table tr:nth-child(even) { background: var(--black-elevated); }
.comparison-table tr:hover { background: rgba(212,175,55,0.06); }
.comparison-table td:first-child { font-weight: 600; text-align: left; color: var(--text-primary); }

.star-rating { color: var(--gold); letter-spacing: 0.1em; }

.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; border-radius: 50%; font-size: 0.8rem;
}

.feature-icon.yes { background: rgba(74,222,128,0.15); color: var(--success); }
.feature-icon.no { background: rgba(248,113,113,0.15); color: var(--error); }

.comparison-cards { display: none; gap: 1rem; }

.comparison-card-mobile {
    background: var(--black-card); border: 1px solid var(--black-border);
    border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-3d);
}

.comparison-card-mobile-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--black-border);
}

.comparison-card-mobile-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.625rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comparison-card-mobile-label { font-size: 0.875rem; color: var(--text-secondary); }

.comparison-legend {
    margin-top: 2rem; padding: 1.5rem; background: var(--black-elevated);
    border-radius: var(--radius-md); border: 1px solid var(--black-border);
}

.comparison-legend h4 { margin-bottom: 1rem; color: var(--gold); font-size: 0.95rem; }
.legend-items { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); }

/* ── FAQ ── */
.faq-items { max-width: 900px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--black-border); border-radius: var(--radius-md);
    margin-bottom: 0.875rem; overflow: hidden; background: var(--black-card);
    box-shadow: var(--shadow-3d); transition: var(--transition);
}

.faq-item:hover { border-color: rgba(212,175,55,0.2); }

.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; background: transparent; border: none; width: 100%;
    text-align: left; cursor: pointer; font-weight: 600; color: var(--text-primary);
    font-size: 1rem; transition: var(--transition); gap: 1rem;
}

.faq-question:hover { background: rgba(212,175,55,0.04); }

.faq-question-icon {
    width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
    background: rgba(212,175,55,0.12); border-radius: 50%; color: var(--gold);
    font-weight: bold; transition: var(--transition); flex-shrink: 0;
}

.faq-question.active .faq-question-icon {
    transform: rotate(45deg); background: var(--gold); color: var(--black);
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out; }
.faq-answer-content { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.85; }
.faq-answer.active { max-height: 2000px; }

/* ── Guide Steps ── */
.guide-steps { max-width: 800px; margin: 0 auto; }

.guide-step {
    display: flex; gap: 1.5rem; margin-bottom: 2rem;
    padding: 1.75rem; background: var(--black-card); border: 1px solid var(--black-border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-3d);
}

.step-number {
    width: 48px; height: 48px; flex-shrink: 0;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    color: var(--black); border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 1.1rem;
    box-shadow: var(--shadow-gold);
}

.guide-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--gold-light); }
.guide-step p, .guide-step li { color: var(--text-secondary); font-size: 0.95rem; }
.guide-step ol, .guide-step ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.guide-step li { margin-bottom: 0.35rem; }

.platform-tabs {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center;
}

.platform-tab {
    padding: 0.625rem 1.25rem; border-radius: var(--radius-sm);
    background: var(--black-card); border: 1px solid var(--black-border);
    color: var(--text-secondary); cursor: pointer; font-weight: 600; font-size: 0.875rem;
    transition: var(--transition);
}

.platform-tab.active, .platform-tab:hover {
    background: rgba(212,175,55,0.12); border-color: var(--gold); color: var(--gold);
}

.platform-content { display: none; }
.platform-content.active { display: block; }

/* ── Content Prose ── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--gold-light); }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--text-primary); }
.prose p { color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.85; }
.prose ul, .prose ol { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--gold); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.info-box {
    background: rgba(212,175,55,0.06); border: 1px solid rgba(212,175,55,0.2);
    border-radius: var(--radius-md); padding: 1.5rem; margin: 1.5rem 0;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.info-box h4 { color: var(--gold); margin-bottom: 0.75rem; font-size: 1rem; }
.info-box p { margin-bottom: 0; }

/* ── Quick Nav Pills ── */
.quick-nav {
    display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 2rem 0;
}

.quick-nav a {
    padding: 0.625rem 1.25rem; border-radius: 999px;
    background: var(--black-card); border: 1px solid var(--black-border);
    color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500;
    transition: var(--transition);
}

.quick-nav a:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.08); }

/* ── Footer ── */
.site-footer {
    background: linear-gradient(180deg, var(--black-soft), #050505);
    border-top: 1px solid var(--black-border); padding: 4rem 0 2rem; margin-top: 4rem;
}

.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem; margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--gold); font-size: 0.95rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.625rem; }
.footer-section a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-section a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--black-border); padding-top: 2rem; text-align: center;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; line-height: 1.6; }

.footer-charity {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem;
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 3rem; height: 3rem;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    color: var(--black); border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow-gold); opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: var(--transition); z-index: 999;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(212,175,55,0.45); }

/* ── Keyword Tags ── */
.keyword-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 2rem 0; }

.keyword-tag {
    padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.15);
    color: var(--text-secondary);
}

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.6s ease-out both; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .nav-links {
        position: fixed; top: var(--nav-height); left: 0; right: 0;
        background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 1rem; gap: 0.25rem;
        border-bottom: 1px solid var(--black-border);
        transform: translateY(-110%); opacity: 0; transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-links a { width: 100%; padding: 0.875rem 1rem; }
    .nav-toggle { display: flex; }

    .comparison-wrapper { display: none; }
    .comparison-cards { display: grid; }
}

@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .hero { padding: 3.5rem 0 2.5rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .intro-banner { padding: 1.75rem; margin: -1.5rem auto 2rem; border-radius: var(--radius-lg); }
    section { padding: 3rem 0; }
    .card { padding: 1.5rem; border-radius: var(--radius-md); }
    .dns-list { grid-template-columns: 1fr; }
    .filter-controls { grid-template-columns: 1fr; }
    .guide-step { flex-direction: column; gap: 1rem; }
    .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
