/* ============================================
   CAZINOM DESTEK CMS - FRONTEND
   cazinom127.com design language
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Champagne gold scale (cazinom127 brand-primary) */
    --brand-gold: #ecc470;
    --brand-gold-dark: #c6a55e;
    --brand-gold-deep: #a0854c;
    --brand-gold-light: #f2d79e;
    --brand-gradient: linear-gradient(180deg, #efd18a 0%, #eab347 100%);
    --brand-gold-glow: rgba(236, 196, 112, 0.12);
    --brand-gold-glow-strong: rgba(236, 196, 112, 0.3);

    /* Surfaces (cazinom127: pure black base) */
    --bg-body: #000000;
    --bg-elevated: #131315;
    --bg-surface: #1d1d1f;
    --bg-card: linear-gradient(180deg, #151513 0%, #0c0c0b 100%);
    --bg-card-hover: linear-gradient(180deg, #1d1d1a 0%, #111110 100%);
    --bg-footer: #050505;

    --border-subtle: #1a1a1b;
    --border-card: #29292b;
    --border-card-hover: rgba(236, 196, 112, 0.35);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --text-tertiary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.38);
    --text-gold: var(--brand-gold);
    --text-on-gold: #1a1405;

    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Barlow Condensed', 'Barlow', sans-serif;

    --container-max: 1200px;
    --topbar-height: 34px;
    --nav-height: 60px;
    --header-height: 94px; /* topbar + nav row */

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

img { max-width: 100%; height: auto; }

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s;
}

/* Topbar — "güncel giriş adresi" duyurusu (cazinom127 stili) */
.site-topbar {
    height: var(--topbar-height);
    background: #000;
    border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
}

.topbar-note svg { flex-shrink: 0; opacity: 0.7; }

.topbar-note a {
    color: var(--text-primary);
    font-weight: 700;
}

.topbar-note a:hover { color: var(--brand-gold); }

.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.topbar-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-gold);
    opacity: 0.6;
}

.topbar-links a:hover { color: var(--brand-gold); }

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 30px;
    width: auto;
}

.logo-divider {
    width: 1px;
    height: 20px;
    background: var(--border-card);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--brand-gold);
    background: var(--brand-gold-glow);
}

.nav-link svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-live-chat {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-on-gold);
    background: var(--brand-gradient);
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease-out);
    box-shadow: 0 4px 14px rgba(236, 196, 112, 0.25);
}

.btn-live-chat:hover {
    transform: translateY(-1px);
    color: var(--text-on-gold);
    box-shadow: 0 6px 24px rgba(236, 196, 112, 0.4);
    filter: brightness(1.05);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s var(--ease-out), opacity 0.25s ease, padding 0.35s var(--ease-out);
}

.mobile-menu.open {
    max-height: 320px;
    opacity: 1;
    padding: 12px 24px;
    box-shadow: 0 100vh 0 100vh rgba(0, 0, 0, 0.6);
}

.mobile-nav-link {
    padding: 12px 16px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--brand-gold); background: var(--brand-gold-glow); }

.mobile-nav-link.cta {
    text-align: center;
    margin-top: 8px;
    color: var(--text-on-gold);
    background: var(--brand-gradient);
    font-weight: 700;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 60px) 0 72px;
    overflow: hidden;
    background:
        radial-gradient(rgba(236, 196, 112, 0.04) 1px, transparent 1.4px),
        linear-gradient(180deg, #0a0903 0%, var(--bg-body) 100%);
    background-size: 22px 22px, 100% 100%;
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(236, 196, 112, 0.12) 0%, rgba(236, 196, 112, 0.04) 40%, transparent 70%);
    pointer-events: none;
    animation: pulse-gold 4s ease-in-out infinite;
}

.hero-glow-secondary {
    position: absolute;
    top: 60px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 196, 112, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-gold);
    background: var(--brand-gold-glow);
    border: 1px solid rgba(236, 196, 112, 0.2);
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 14px;
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.gold-text {
    background: linear-gradient(180deg, var(--brand-gold-light) 0%, var(--brand-gold) 45%, #eab347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

/* --- Search --- */
.search-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 48px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.25s var(--ease-out);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
    border-color: rgba(236, 196, 112, 0.45);
    box-shadow: 0 0 0 3px rgba(236, 196, 112, 0.08), 0 8px 32px rgba(0,0,0,0.4);
    background: var(--bg-surface);
}

/* :focus-within on parent — ~ sibling combinator can't select preceding siblings */
.search-box:focus-within > .search-icon { color: var(--brand-gold); }

.search-kbd {
    position: absolute;
    right: 14px;
    padding: 2px 8px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 4px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s;
}

.search-input:focus:not(:placeholder-shown) ~ .search-kbd { opacity: 0; }

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1.5px solid rgba(236, 196, 112, 0.4);
    border-radius: var(--radius-md);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 20px rgba(236, 196, 112, 0.06);
}

.search-results.active { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--brand-gold-glow); color: var(--text-primary); }

.search-result-item .result-category {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Popular Tags Section */
.popular-tags {
    padding: 32px 0 40px;
    text-align: center;
}

.popular-tags-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-tag {
    padding: 6px 16px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    line-height: 1.6;
}

.hero-tag:hover {
    color: var(--brand-gold);
    border-color: rgba(236, 196, 112, 0.45);
    background: var(--brand-gold-glow);
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    padding: 24px 0 48px;
}

.category-group {
    margin-bottom: 44px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--brand-gold-glow);
    color: var(--brand-gold);
    border: 1px solid rgba(236, 196, 112, 0.15);
    flex-shrink: 0;
}

.category-icon svg {
    stroke: currentColor;
}

.category-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.cards-grid--2col {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.cards-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

/* --- Doc Card --- */
.doc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    transition: all 0.25s var(--ease-out);
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(rgba(236, 196, 112, 0.05) 1px, transparent 1.3px),
        linear-gradient(135deg, transparent 55%, rgba(236, 196, 112, 0.05));
    background-size: 18px 18px, 100% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.doc-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(236, 196, 112, 0.12), 0 0 24px rgba(236, 196, 112, 0.05);
}

.doc-card:hover::before { opacity: 1; }

.doc-card .card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.doc-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.doc-card:hover h3 { color: var(--brand-gold); }

.doc-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

.card-steps {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-arrow {
    color: var(--text-muted);
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}

.doc-card:hover .card-arrow {
    color: var(--brand-gold);
    transform: translateX(3px);
}

/* Feature Card */
.doc-card--feature {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-color: var(--border-card);
}

.doc-card--feature:hover .card-feature-icon {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(236, 196, 112, 0.2);
}

.card-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--brand-gold-glow);
    color: var(--brand-gold);
    border: 1px solid rgba(236, 196, 112, 0.15);
    flex-shrink: 0;
    transition: all 0.25s var(--ease-spring);
}

.doc-card--feature .card-meta {
    position: absolute;
    right: 20px;
    bottom: 18px;
}

/* Badges */
.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.badge {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    border: 1px solid var(--border-card);
}

/* Promo Card */
.doc-card--promo {
    border-color: rgba(236, 196, 112, 0.25);
    background:
        radial-gradient(rgba(236, 196, 112, 0.05) 1px, transparent 1.3px),
        linear-gradient(135deg, rgba(236, 196, 112, 0.08) 0%, rgba(236, 196, 112, 0.02) 50%, #0c0c0b 100%);
    background-size: 18px 18px, 100% 100%;
    box-shadow: 0 0 24px rgba(236, 196, 112, 0.05);
}

.doc-card--promo:hover {
    border-color: rgba(236, 196, 112, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 32px rgba(236, 196, 112, 0.1);
}

.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-on-gold);
    background: var(--brand-gradient);
    border-radius: 50px;
    z-index: 2;
}

/* Compact Card */
.doc-card--compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.doc-card--compact h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 24px 0 60px;
}

.cta-box {
    position: relative;
    padding: 44px 40px;
    background:
        radial-gradient(rgba(236, 196, 112, 0.06) 1px, transparent 1.4px),
        linear-gradient(135deg, rgba(236, 196, 112, 0.1) 0%, rgba(236, 196, 112, 0.03) 55%, #0a0a09 100%);
    background-size: 20px 20px, 100% 100%;
    border: 1px solid rgba(236, 196, 112, 0.25);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(236, 196, 112, 0.12), transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-on-gold);
    background: var(--brand-gradient);
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease-out);
    box-shadow: 0 4px 20px rgba(236, 196, 112, 0.25);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(236, 196, 112, 0.4);
    color: var(--text-on-gold);
    filter: brightness(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-footer) 40%);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {}

.footer-logo {
    height: 26px;
    width: auto;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out);
}

.social-link:hover {
    color: var(--brand-gold);
    border-color: rgba(236, 196, 112, 0.4);
    background: var(--brand-gold-glow);
    transform: translateY(-1px);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--brand-gold); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-trust {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-trust p {
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.footer-trust a {
    color: var(--brand-gold);
    text-decoration: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-gold {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* ============================================
   ERROR PAGES
   ============================================ */
.hero--error {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.hero-title--jumbo {
    font-size: 72px;
    margin-bottom: 8px;
}

.hero-error-subtitle {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.btn-cta--spaced {
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-nav, .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }

    .topbar-links { display: none; }

    .hero {
        padding: calc(var(--header-height) + 40px) 0 32px;
    }

    .hero-title { font-size: 32px; }

    .cards-grid,
    .cards-grid--2col {
        grid-template-columns: 1fr;
    }

    .cards-grid--compact {
        grid-template-columns: 1fr 1fr;
    }

    .doc-card--feature {
        flex-direction: column;
    }

    .doc-card--feature .card-meta {
        position: relative;
        right: auto;
        bottom: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cta-box { padding: 28px 20px; }
    .cta-content h2 { font-size: 22px; }

}

@media (max-width: 480px) {
    .cards-grid--compact {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
/* Webkit scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg-body);
}

/* ============================================
   TOUCH / ACTIVE STATES
   ============================================ */
.btn-live-chat:active,
.btn-cta:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 0 8px rgba(236, 196, 112, 0.2);
}

.doc-card:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.nav-link:active {
    transform: scale(0.96);
}

.hero-tag:active {
    transform: scale(0.95);
    transition-duration: 0.08s;
}

.social-link:active {
    transform: translateY(0) scale(0.92);
}

.mobile-nav-link:active {
    background: rgba(236, 196, 112, 0.1);
}

/* ============================================
   SEARCH STATES
   ============================================ */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.search-empty svg {
    opacity: 0.4;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    gap: 6px;
}

.search-loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-gold);
    animation: searchBounce 1.2s ease-in-out infinite;
}

.search-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.search-loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes searchBounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.1); }
}

/* Keyboard navigation for search results */
.search-result-item.focused {
    background: var(--brand-gold-glow);
    color: var(--text-primary);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
/* Scroll reveal — initial hidden state applied via JS (.scroll-hidden class)
   so content remains visible when JS fails or is blocked */
.category-group.scroll-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.category-group.scroll-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card reveals within groups */
.category-group.scroll-hidden.visible .doc-card {
    animation: cardReveal 0.4s var(--ease-out) both;
}

.category-group.scroll-hidden.visible .doc-card:nth-child(1) { animation-delay: 0.05s; }
.category-group.scroll-hidden.visible .doc-card:nth-child(2) { animation-delay: 0.1s; }
.category-group.scroll-hidden.visible .doc-card:nth-child(3) { animation-delay: 0.15s; }
.category-group.scroll-hidden.visible .doc-card:nth-child(4) { animation-delay: 0.2s; }
.category-group.scroll-hidden.visible .doc-card:nth-child(5) { animation-delay: 0.25s; }
.category-group.scroll-hidden.visible .doc-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* CTA box hover glow effect */
.cta-box {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cta-box:hover {
    border-color: rgba(236, 196, 112, 0.35);
    box-shadow: 0 0 40px rgba(236, 196, 112, 0.08);
}

/* ============================================
   CLUTTER SCORE: CONTENT VISIBILITY
   ============================================ */
.cta-section,
.popular-tags,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-glow { animation: none; opacity: 0.8; }
    .category-group.scroll-hidden { opacity: 1; transform: none; }
    .category-group.scroll-hidden .doc-card { animation: none; opacity: 1; }
}
