/* ============================================
   SatFreq - Satellite Frequency Database
   Main Stylesheet
   ============================================ */

/* --- CSS Variables / Themes --- */
:root,
[data-theme="dark"] {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1526;
    --bg-card: #131929;
    --bg-card-hover: #1a2235;
    --bg-surface: #1e2840;
    --bg-input: #111827;
    --border: #1e2d4a;
    --border-hover: #2d4270;

    --text-primary: #e8edf8;
    --text-secondary: #8a9bc0;
    --text-muted: #4a5a78;
    --text-link: #4d8ef0;

    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --accent2: #06b6d4;
    --accent3: #8b5cf6;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;

    --header-bg: rgba(10, 14, 26, 0.92);
    --header-border: rgba(30, 45, 74, 0.8);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --star-opacity: 0.6;
}

[data-theme="light"] {
    --bg-primary: #f0f4ff;
    --bg-secondary: #e8eeff;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f8ff;
    --bg-surface: #edf1ff;
    --bg-input: #f8faff;
    --border: #d1daf5;
    --border-hover: #a0b4e8;

    --text-primary: #1a2540;
    --text-secondary: #4a5a80;
    --text-muted: #8899bb;
    --text-link: #2563eb;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --accent2: #0891b2;
    --accent3: #7c3aed;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;

    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(209, 218, 245, 0.9);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);

    --star-opacity: 0;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

a { color: var(--text-link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* --- Stars Background --- */
.stars-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,var(--star-opacity)) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,calc(var(--star-opacity)*0.7)) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,var(--star-opacity)) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,calc(var(--star-opacity)*0.5)) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,calc(var(--star-opacity)*0.8)) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,calc(var(--star-opacity)*0.6)) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 10%, rgba(100,180,255,var(--star-opacity)) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 50%, rgba(100,180,255,calc(var(--star-opacity)*0.4)) 0%, transparent 100%);
}

/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.main-content {
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

/* --- Header --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.main-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon { font-size: 1.5rem; }
.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-img { height: 36px; width: auto; }
.logo-sm { height: 28px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    /* No overflow:auto here — that clips absolutely-positioned dropdowns */
    min-width: 0;
}

.nav-link {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-surface);
}
.nav-dropdown-btn { display: flex; align-items: center; gap: 0.3rem; }
.dropdown-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown { position: relative; flex-shrink: 0; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    overflow: hidden;
    z-index: 200;
    animation: dropdownIn 0.15s ease;
}
.dropdown-menu-right { left: auto; right: 0; }
.nav-dropdown.open .dropdown-menu { display: block; }
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg-surface); color: var(--text-primary); }
.dropdown-item.active { color: var(--accent); background: var(--accent-glow); }
.dropdown-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.lang-check { margin-left: auto; color: var(--accent); font-size: 0.8rem; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.theme-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    color: var(--text-primary);
}
.theme-toggle:hover { background: var(--bg-card-hover); border-color: var(--accent); }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

.mobile-menu-btn {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.mobile-nav-link:hover { background: var(--bg-surface); color: var(--text-primary); }

/* --- Hero Section --- */
.page-hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Satellite orbit animation */
.hero-visual { padding: 2rem; }
.satellite-orbit {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: orbit-spin linear infinite;
}
.orbit-1 { width: 100%; height: 100%; animation-duration: 20s; }
.orbit-2 { width: 70%; height: 70%; animation-duration: 15s; border-style: dashed; opacity: 0.5; }
.orbit-3 { width: 40%; height: 40%; animation-duration: 10s; border-color: var(--accent); opacity: 0.3; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.sat-icon { font-size: 2.5rem; z-index: 2; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.signal-wave {
    position: absolute;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: signal-pulse 2s ease-out infinite;
}
@keyframes signal-pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(8); opacity: 0; }
}

/* --- Sections --- */
.section { padding: 4rem 0; }
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* --- Cards --- */
.satellites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.satellite-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.satellite-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: opacity 0.3s;
}
.satellite-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.satellite-card:hover::before { opacity: 1; }

.sat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.sat-position {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent2);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.btn-coverage {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    transition: all 0.2s;
}
.btn-coverage:hover { color: var(--accent); border-color: var(--accent); }

.sat-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.sat-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.sat-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.meta-item { display: flex; align-items: center; gap: 0.3rem; }
.sat-card-footer { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* --- Providers Grid --- */
/* ── Providers section — tabbed + compact ─────────── */
.prov-section { padding-bottom: 0.5rem; }

/* Satellite filter tabs */
.prov-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.prov-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}
.prov-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}
.prov-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.prov-tab-count {
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
}
.prov-tab:not(.active) .prov-tab-count {
    background: var(--bg-card);
    color: var(--text-muted);
}

/* Compact card grid */
.prov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    min-height: 60px;
}

/* Each card: horizontal pill layout */
.prov-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
    min-width: 0;
    animation: provFadeIn 0.25s ease both;
}
@keyframes provFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.prov-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.1);
}
.prov-card-logo {
    width: 32px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prov-card-logo img {
    width: 32px;
    height: 22px;
    object-fit: contain;
    object-position: center;
    display: block;
}
.prov-card-icon { font-size: 1.2rem; line-height: 1; }

.prov-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    overflow: hidden;
}
.prov-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prov-card-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.prov-card-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s, transform 0.18s, color 0.18s;
}
.prov-card:hover .prov-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* Show more button */
.prov-showmore {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0 0.25rem;
}
.prov-showmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s;
}
.prov-showmore-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

@media (max-width: 640px) {
    .prov-grid { grid-template-columns: 1fr 1fr; }
    .prov-card-arrow { display: none; }
}
@media (max-width: 400px) {
    .prov-grid { grid-template-columns: 1fr; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-coverage-large {
    background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(6,182,212,0.2));
    border: 1px solid var(--accent2);
    color: var(--accent2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
    align-self: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-coverage-large:hover { background: rgba(6,182,212,0.25); transform: scale(1.03); color: var(--accent2); }

/* --- Page Headers --- */
.page-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-header-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.page-position-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent2);
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}
.page-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1rem; }
.page-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.meta-link { color: var(--text-link); }
.meta-link:hover { color: var(--accent); }

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.filter-chip:hover, .filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --- Frequency Blocks --- */
.frequencies-list { display: flex; flex-direction: column; gap: 1rem; }

.frequency-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.frequency-block.open { border-color: var(--border-hover); }

.frequency-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.frequency-header:hover { background: var(--bg-card-hover); }
.freq-main { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.freq-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent2);
}
.freq-pol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.pol-h { background: rgba(59,130,246,0.2); color: #60a5fa; }
.pol-v { background: rgba(168,85,247,0.2); color: #c084fc; }
.pol-l { background: rgba(34,197,94,0.2); color: #4ade80; }
.pol-r { background: rgba(245,158,11,0.2); color: #fbbf24; }
.freq-sr { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-muted); }
.freq-tag {
    font-size: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    color: var(--text-secondary);
}
.freq-meta-right { display: flex; align-items: center; gap: 1rem; }
.freq-ch-count { font-size: 0.85rem; color: var(--text-muted); }
.freq-toggle-icon {
    color: var(--text-muted);
    transition: transform 0.2s;
    font-size: 0.8rem;
}
.frequency-block.open .freq-toggle-icon { transform: rotate(180deg); }

.frequency-body {
    display: none;
    border-top: 1px solid var(--border);
}
.frequency-block.open .frequency-body { display: block; }

.empty-channels { padding: 1.5rem; color: var(--text-muted); text-align: center; }

/* --- Channels Table --- */
.channels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.channels-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}
.channels-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.channels-table tbody tr:last-child td { border-bottom: none; }
.channels-table tbody tr:hover { background: var(--bg-card-hover); }

.ch-name-cell { display: flex; align-items: center; gap: 0.6rem; }
.ch-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.ch-logo-placeholder {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}
.ch-name { font-weight: 500; }

/* Quality Badges */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
}
.badge-sd { background: rgba(100,100,120,0.3); color: #aaa; border: 1px solid rgba(100,100,120,0.4); }
.badge-hd { background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-fhd { background: rgba(99,102,241,0.2); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.badge-4k { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.4); }
.badge-data { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-radio { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.type-badge { font-size: 0.8rem; }
.encrypted-badge { color: var(--warning); font-size: 0.85rem; }
.free-badge { color: var(--success); font-size: 0.85rem; }
.provider-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--warning);
    font-size: 0.85rem;
    font-weight: 500;
}
.provider-link:hover { color: var(--accent); }
.provider-mini-logo { width: 16px; height: 16px; object-fit: contain; }
.website-link { color: var(--text-link); font-size: 0.85rem; }
.text-muted { color: var(--text-muted); }
.table-container { overflow-x: auto; border-radius: var(--radius); }
.full-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* --- Provider Hero --- */
.provider-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.provider-hero-logo { width: 80px; height: 60px; object-fit: contain; }
.provider-hero-icon { font-size: 3rem; }

/* --- Coverage Page --- */
.coverage-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}
.coverage-map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
}
.coverage-map-img { width: 100%; display: block; }
.coverage-overlay {
    position: absolute;
    bottom: 1rem; right: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.coverage-map-wrapper:hover .coverage-overlay { opacity: 1; }
.coverage-zoom-btn {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}
.coverage-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.coverage-info-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.coverage-info-card dl { margin-bottom: 1.5rem; }
.coverage-info-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.2rem; margin-top: 0.75rem; }
.coverage-info-card dd { font-weight: 600; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
    position: absolute;
    top: -2rem; right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* --- Footer --- */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 0;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    gap: 1.5rem 2rem;
    padding-bottom: 3rem;
}
.footer-brand {
    grid-column: 1 / 2;
}
.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    max-width: 280px;
    line-height: 1.6;
}

/* ── Footer column — dropdown style ──────────────────────────── */
.footer-links { /* keep compat */ }
.footer-col-dropdown {}

/* Toggle button (column title) */
.footer-col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.6rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.footer-col-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-col-toggle:hover .footer-col-title { color: var(--accent); }
.footer-col-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.25s;
    flex-shrink: 0;
}

/* Collapsible body */
.footer-col-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 600px;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 1;
}
.footer-col-body.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Links inside column */
.footer-col-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.28rem 0;
    transition: color 0.18s, padding-left 0.18s;
    text-decoration: none;
    border-radius: 3px;
}
.footer-col-link:hover {
    color: var(--accent);
    padding-left: 4px;
}
.footer-link-icon { flex-shrink: 0; font-size: 0.9rem; }

/* Show more / less */
.footer-col-extra { display: flex; flex-direction: column; }
.footer-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--accent);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: opacity 0.15s;
}
.footer-show-more:hover { opacity: 0.75; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Responsive grid ─────────────────────────────────────────── */
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    /* On tablet, columns start open by default (JS handles mobile) */
}
@media (max-width: 639px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    /* On mobile, columns can be collapsed */
    .footer-col-body { max-height: 0; opacity: 0; }
    .footer-col-body.mobile-open { max-height: 600px; opacity: 1; }
}

/* --- Alerts --- */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }

/* --- Empty States --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state a { color: var(--text-link); }

.error-page {
    text-align: center;
    padding: 6rem 2rem;
}
.error-page h1 { font-size: 5rem; font-weight: 900; color: var(--accent); margin-bottom: 1rem; }
.error-page p { color: var(--text-secondary); margin-bottom: 2rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-visual { display: none; }
    .page-hero .container { grid-template-columns: 1fr; }
    .coverage-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .page-header-content { flex-direction: column; }
    .satellites-grid { grid-template-columns: 1fr; }
    .channels-table thead { display: none; }
    .channels-table td { display: block; padding: 0.4rem 1rem; }
    .channels-table td:first-child { padding-top: 0.75rem; }
    .channels-table td:last-child { padding-bottom: 0.75rem; }
    .hero-stats { gap: 1.25rem; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-input { min-width: unset; }
}

/* --- Language selector --- */
.lang-dropdown { flex-shrink: 0; }
.lang-btn { gap: 0.35rem; }
.lang-name-short {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Encrypted badge on frequency header --- */
.enc-badge-freq {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: rgba(245,158,11,0.15);
    color: var(--warning);
    border: 1px solid rgba(245,158,11,0.3);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Mobile nav improvements --- */
.mobile-nav-divider {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
}
.mobile-nav-sub {
    padding-left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mobile-nav-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; }
.mobile-lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
}
.mobile-lang-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.mobile-lang-btn.active,
.mobile-lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* --- Admin language selector --- */
.admin-lang-select { display: flex; align-items: center; }
.admin-lang-select .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

/* ── Ad Zones (public) ─────────────────────────────── */
.ad-zone {
    width: 100%;
    overflow: hidden;
}
.ad-zone:empty { display: none; }

/* Full-width zones get a subtle container */
.ad-zone--header_banner,
.ad-zone--before_footer {
    background: transparent;
    padding: 0.5rem 0;
}
.ad-zone--hero_bottom,
.ad-zone--between_sections,
.ad-zone--before_providers,
.ad-zone--before_satellites,
.ad-zone--after_satellites,
.ad-zone--satellite_page_top,
.ad-zone--satellite_page_bottom,
.ad-zone--provider_page_top {
    padding: 1rem 0;
}

/* Satellite dropdown — orbital position badge */
.dropdown-sat-pos {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile nav satellite position badge */
.mobile-nav-pos {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   ANNOUNCEMENT BAR — Modern centred design
   ══════════════════════════════════════════════════ */
.announcement-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    padding: 0;
    /* subtle shimmer line at top */
    border-top: 2px solid transparent;
}
/* Push sticky header down when bar is present */
body:has(.announcement-bar) .main-header { top: 44px; }

.ann-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 3.5rem 0.6rem 1rem; /* right padding for close btn */
    min-height: 44px;
    text-align: center;
    flex-wrap: wrap;
    position: relative;
}

/* Centred content wrapper */
.ann-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ann-icon {
    font-size: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px currentColor);
}
.ann-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}
.ann-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    border: 1.5px solid currentColor;
    white-space: nowrap;
    transition: all 0.2s;
    opacity: 0.9;
    text-decoration: none;
}
.ann-link:hover { opacity: 1; transform: translateX(2px); }

.ann-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    color: inherit;
    line-height: 1;
}
.ann-close:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-50%) scale(1.1);
}

/* ── Type skins ── */
.ann-info {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #1d4ed8 100%);
    background-size: 200% 100%;
    animation: annShimmer 4s linear infinite;
    color: #eff6ff;
    border-top-color: #60a5fa;
    box-shadow: 0 2px 16px rgba(37,99,235,0.45);
}
.ann-success {
    background: linear-gradient(90deg, #15803d 0%, #16a34a 50%, #15803d 100%);
    background-size: 200% 100%;
    animation: annShimmer 4s linear infinite;
    color: #f0fdf4;
    border-top-color: #4ade80;
    box-shadow: 0 2px 16px rgba(22,163,74,0.4);
}
.ann-warning {
    background: linear-gradient(90deg, #b45309 0%, #d97706 50%, #b45309 100%);
    background-size: 200% 100%;
    animation: annShimmer 4s linear infinite;
    color: #fffbeb;
    border-top-color: #fbbf24;
    box-shadow: 0 2px 16px rgba(217,119,6,0.4);
}
.ann-danger {
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
    background-size: 200% 100%;
    animation: annShimmer 4s linear infinite;
    color: #fff1f2;
    border-top-color: #f87171;
    box-shadow: 0 2px 16px rgba(220,38,38,0.4);
}

@keyframes annShimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@keyframes annSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.announcement-bar { animation: annSlideDown 0.4s cubic-bezier(0.16,1,0.3,1); }

/* ══════════════════════════════════════════════════
   COOKIE BANNER — Modern floating card design
   ══════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    z-index: 9998;
    /* Float as a card, not a full-width bar */
    left: 1.25rem;
    right: 1.25rem;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 0;
    overflow: hidden;
    /* Glassmorphism */
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Bottom variant */
.cookie-bottom {
    bottom: 1.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    box-shadow:
        0 0 0 1px rgba(99,102,241,0.15),
        0 8px 32px rgba(0,0,0,0.35),
        0 2px 8px rgba(0,0,0,0.2);
    animation: cookieUp 0.5s cubic-bezier(0.16,1,0.3,1);
}
/* Top variant */
.cookie-top {
    top: 1.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    box-shadow:
        0 0 0 1px rgba(99,102,241,0.15),
        0 8px 32px rgba(0,0,0,0.35),
        0 2px 8px rgba(0,0,0,0.2);
    animation: cookieDown 0.5s cubic-bezier(0.16,1,0.3,1);
}

@keyframes cookieUp   { from { transform: translateX(-50%) translateY(120%); opacity:0; }
                        to   { transform: translateX(-50%) translateY(0);    opacity:1; } }
@keyframes cookieDown { from { transform: translateX(-50%) translateY(-120%); opacity:0; }
                        to   { transform: translateX(-50%) translateY(0);     opacity:1; } }

/* Accent strip at top of cookie card */
.cookie-banner::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2, #8b5cf6), var(--accent));
    background-size: 200% 100%;
    animation: annShimmer 3s linear infinite;
}

.cookie-inner {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-text-wrap { display: flex; flex-direction: column; gap: 0.35rem; }

.cookie-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.cookie-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.cookie-policy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.1rem;
    transition: opacity 0.15s;
}
.cookie-policy-link:hover { opacity: 0.8; text-decoration: underline; }
.cookie-policy-link::after { content: '↗'; font-size: 0.7rem; }

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.cookie-btn-accept {
    flex: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2, #8b5cf6) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
    font-family: inherit;
    letter-spacing: 0.01em;
}
.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99,102,241,0.45);
}
.cookie-btn-accept:active { transform: translateY(0); }

.cookie-btn-decline {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.cookie-btn-decline:hover {
    color: var(--text-secondary);
    border-color: var(--text-muted);
    background: var(--bg-card-hover, var(--bg-surface));
}

@media (max-width: 600px) {
    .cookie-bottom,
    .cookie-top {
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        max-width: none;
    }
    @keyframes cookieUp   { from { transform: translateY(120%); opacity:0; }
                            to   { transform: translateY(0);    opacity:1; } }
    @keyframes cookieDown { from { transform: translateY(-120%); opacity:0; }
                            to   { transform: translateY(0);     opacity:1; } }
    .cookie-btn-accept { flex: 1; }
    .ann-inner { padding: 0.5rem 3rem 0.5rem 0.75rem; }
    .ann-text  { font-size: 0.8rem; }
}


/* ══════════════════════════════════════════════════
   PUBLIC CUSTOM PAGES
   ══════════════════════════════════════════════════ */
.page-view { padding: 3rem 0 5rem; }

.page-hero {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.page-hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
}

.page-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Text section ── */
.page-section-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}
.page-text-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.page-text-content br { line-height: 2.5; }

/* ── Image section ── */
.page-section-image { text-align: center; }
.page-image-figure  { margin: 0; }
.page-image {
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transition: transform 0.25s;
}
.page-image:hover { transform: scale(1.01); }
.page-image-caption {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Links section ── */
.page-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}
.page-link-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.page-link-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}
.page-link-card:hover {
    border-color: rgba(99,102,241,0.35);
    background: var(--bg-surface);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.page-link-card:hover::before { opacity: 1; }
.page-link-icon { font-size: 1.5rem; flex-shrink: 0; }
.page-link-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.page-link-label { font-weight: 700; font-size: 0.95rem; white-space: nowrap;
                   overflow: hidden; text-overflow: ellipsis; }
.page-link-desc  { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap;
                   overflow: hidden; text-overflow: ellipsis; }
.page-link-arrow { font-size: 1rem; color: var(--accent); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.page-link-card:hover .page-link-arrow { opacity: 1; transform: translateX(3px); }

/* ── HTML section ── */
.page-section-html {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-x: auto;
}
/* Override styles inside HTML blocks so they blend with the theme */
.page-section-html img  { max-width: 100%; border-radius: var(--radius-sm); }
.page-section-html a    { color: var(--accent); }
.page-section-html table{ width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.page-section-html th,
.page-section-html td   { padding: 0.6rem 0.85rem; border: 1px solid var(--border);
                           text-align: left; }
.page-section-html th   { background: var(--bg-surface); font-weight: 700; }

@media (max-width: 640px) {
    .page-view { padding: 2rem 0 3rem; }
    .page-sections { gap: 1.25rem; }
    .page-section-text { padding: 1.25rem; }
    .page-link-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   CUSTOM PAGES — Public template
   ══════════════════════════════════════════════════ */

/* Hero / header area */
.cp-hero {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
}
.cp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.cp-breadcrumb a { color: var(--accent); text-decoration: none; }
.cp-breadcrumb a:hover { text-decoration: underline; }
.cp-breadcrumb-sep { opacity: 0.5; }
.cp-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.cp-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 680px;
    margin: 0;
}

/* Content body */
.cp-body {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    max-width: 820px;
}

/* Base section spacing */
.cp-section {
    margin-bottom: 2.25rem;
}
.cp-section:last-child { margin-bottom: 0; }

/* ── Text section ── */
.cp-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.cp-text p { margin: 0 0 1em; }

/* ── Image section ── */
.cp-image-section { text-align: center; }
.cp-image-link { display: inline-block; }
.cp-image {
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transition: transform 0.25s, box-shadow 0.25s;
}
.cp-image-link:hover .cp-image {
    transform: scale(1.01);
    box-shadow: 0 8px 36px rgba(0,0,0,0.3);
}
.cp-image-caption {
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Link cards section ── */
.cp-links-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.cp-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
}
.cp-link-card:hover {
    border-color: var(--accent);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: translateX(3px);
}
.cp-link-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 2.2rem;
    text-align: center;
}
.cp-link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.cp-link-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp-link-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cp-link-arrow {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.cp-link-card:hover .cp-link-arrow { transform: translateX(4px); }

/* ── HTML section ── */
.cp-html-section {
    /* allow custom HTML full flexibility */
    overflow-x: auto;
}

@media (max-width: 640px) {
    .cp-hero { padding: 1.75rem 0 1.5rem; }
    .cp-body  { padding-top: 1.75rem; padding-bottom: 2.5rem; }
    .cp-link-card { padding: 0.75rem 0.9rem; }
}

/* ══════════════════════════════════════════════════
   CUSTOM PAGES — public view
   ══════════════════════════════════════════════════ */

/* ── Page wrapper ────────────────────────────────── */
.page-view {
    padding: 2.5rem 0 4rem;
}

/* ── Page hero header ────────────────────────────── */
.page-hero {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2, #8b5cf6));
    border-radius: 100px;
}
.page-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}
.page-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Section wrapper ─────────────────────────────── */
.page-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.page-section {
    width: 100%;
}

/* ── Text section ────────────────────────────────── */
.page-section-text .page-text-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}
.page-section-text .page-text-content p {
    margin: 0 0 1.1em;
}
.page-section-text .page-text-content p:last-child {
    margin-bottom: 0;
}
/* nl2br produces <br> — give breathing room */
.page-text-content br + br {
    display: block;
    content: '';
    margin-top: 0.6em;
}

/* ── Image section ───────────────────────────────── */
.page-section-image {
    text-align: center;
}
.page-image-figure {
    display: inline-block;
    margin: 0;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}
.page-image-figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.page-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: var(--bg-surface);
}
.page-image-caption {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    font-style: italic;
    text-align: center;
}

/* ── Links section ───────────────────────────────── */
.page-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}
.page-link-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.page-link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}
.page-link-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.2);
}
.page-link-card:hover::before { opacity: 1; }

.page-link-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    position: relative;
    line-height: 1;
}
.page-link-body {
    flex: 1;
    min-width: 0;
    position: relative;
}
.page-link-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.page-link-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.page-link-arrow {
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}
.page-link-card:hover .page-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── HTML section ────────────────────────────────── */
.page-section-html {
    /* Raw HTML — don't constrain it, just ensure it fits */
    overflow-x: auto;
    max-width: 100%;
}
/* Basic typography resets for user HTML content */
.page-section-html h1,
.page-section-html h2,
.page-section-html h3,
.page-section-html h4 {
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 0.75em;
}
.page-section-html p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1em;
}
.page-section-html a {
    color: var(--accent);
    text-decoration: underline;
}
.page-section-html table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.page-section-html th,
.page-section-html td {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    text-align: left;
    color: var(--text-secondary);
}
.page-section-html th {
    background: var(--bg-surface);
    font-weight: 700;
    color: var(--text-primary);
}
.page-section-html img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .page-view { padding: 1.5rem 0 3rem; }
    .page-hero  { margin-bottom: 2rem; padding-bottom: 1.75rem; }
    .page-sections { gap: 1.75rem; }
    .page-link-grid { grid-template-columns: 1fr; }
    .page-image { max-height: 280px; }
}

/* ══════════════════════════════════════════════════
   CONTACT FORM — public styles
   ══════════════════════════════════════════════════ */

/* ── Contact page layout ─────────────────────────── */
.contact-page-wrap {
    padding: 3rem 0 5rem;
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 860px) {
    .contact-page-grid { grid-template-columns: 1fr; }
    .contact-info-col  { display: none; }
}

/* ── Contact header (page context) ──────────────── */
.contact-header {
    margin-bottom: 2rem;
}
.contact-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Homepage section context ────────────────────── */
.cf-homepage-section {
    padding: 6rem 0 7rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

/* ── Two-column layout ───────────────────────────── */
.cf-home-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── Decorative blobs ────────────────────────────── */
.cf-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.cf-blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    top: -60px;
    left: -80px;
    animation: cfBlobDrift 12s ease-in-out infinite alternate;
}
.cf-blob-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
    bottom: -40px;
    right: 5%;
    animation: cfBlobDrift 16s ease-in-out infinite alternate-reverse;
}
@keyframes cfBlobDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Left info panel ─────────────────────────────── */
.cf-info-panel {
    position: relative;
}
.cf-info-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1.1rem;
}
.cf-signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(59,130,246,0.6);
    animation: cfPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes cfPulse {
    0%   { box-shadow: 0 0 0 0   rgba(59,130,246,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(59,130,246,0);   }
    100% { box-shadow: 0 0 0 0   rgba(59,130,246,0);   }
}
.cf-info-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cf-info-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

/* ── Feature highlights ──────────────────────────── */
.cf-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}
.cf-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cf-feature:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.1);
}
.cf-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}
.cf-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.cf-feature-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}
.cf-feature-text span {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Orbit art (decorative) ──────────────────────── */
.cf-orbit-art {
    position: relative;
    width: 120px;
    height: 120px;
    opacity: 0.35;
}
.cf-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--accent);
}
.cf-orbit-a { animation: cfOrbit 10s linear infinite; transform-origin: center; }
.cf-orbit-b { inset: 15px; border-color: var(--accent2); animation: cfOrbit 15s linear infinite reverse; opacity: 0.7; }
.cf-orbit-c { inset: 30px; border-color: var(--accent3); animation: cfOrbit 8s linear infinite; opacity: 0.5; }
@keyframes cfOrbit { to { transform: rotate(360deg); } }
.cf-sat-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--accent);
}

/* ── Right form panel ────────────────────────────── */
.cf-form-panel {}
.cf-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
/* Accent stripe at top of card */
.cf-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── Form header badge ───────────────────────────── */
.cf-form-header {
    margin-bottom: 1.5rem;
}
.cf-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ── Field layout ────────────────────────────────── */
.cf-form { display: flex; flex-direction: column; gap: 1.1rem; }

.cf-row-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.cf-field { display: flex; flex-direction: column; gap: 0.4rem; }

.cf-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cf-req { color: var(--danger); margin-left: 2px; font-weight: 900; }

/* ── Inputs with animated bottom line ────────────── */
.cf-input-wrap {
    position: relative;
}
.cf-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
    box-sizing: border-box;
    outline: none;
}
.cf-input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.14), 0 2px 8px rgba(59,130,246,0.08);
}
.cf-input::placeholder { color: var(--text-muted); font-size: 0.88rem; }

/* Animated bottom accent line */
.cf-input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: width 0.3s ease, left 0.3s ease;
    pointer-events: none;
}
.cf-input-wrap:focus-within .cf-input-line {
    width: 100%;
    left: 0;
}

.cf-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* ── Submit button ───────────────────────────────── */
.cf-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
    margin-top: 0.25rem;
}
.cf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59,130,246,0.45);
}
.cf-submit:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(59,130,246,0.3); }
.cf-submit-icon { display: flex; align-items: center; flex-shrink: 0; }
.cf-submit-icon svg { transition: transform 0.22s; }
.cf-submit:hover .cf-submit-icon svg { transform: translateX(3px) rotate(-8deg); }

/* Ripple effect */
.cf-submit-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    width: 0; height: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s, opacity 0.5s;
    opacity: 0;
}
.cf-submit.rippling .cf-submit-ripple {
    width: 400px; height: 400px; opacity: 0;
}

/* ── Privacy note ────────────────────────────────── */
.cf-privacy-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ── Success state ───────────────────────────────── */
.cf-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1rem;
    gap: 1rem;
}
.cf-success-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34,197,94,0.12);
    border: 2px solid rgba(34,197,94,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cfSuccessPop 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes cfSuccessPop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.cf-success-check {
    font-size: 2rem;
    color: var(--success);
    line-height: 1;
}
.cf-success-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}
.cf-success-msg {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

/* ── Error bar ───────────────────────────────────── */
.cf-error-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--danger);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.cf-error-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .cf-home-wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cf-orbit-art { display: none; }
    .cf-info-sub  { max-width: 100%; }
}
@media (max-width: 600px) {
    .cf-homepage-section { padding: 4rem 0 5rem; }
    .cf-features { grid-template-columns: 1fr; }
    .cf-row-pair { grid-template-columns: 1fr; }
    .cf-form-card { padding: 1.5rem 1.25rem; }
    .cf-info-title { font-size: 1.75rem; }
}

/* ── Fields ──────────────────────────────────────── */
.contact-field {
    margin-bottom: 1.25rem;
}
.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.contact-required {
    color: var(--danger);
    margin-left: 2px;
}
.contact-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.contact-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.contact-input::placeholder { color: var(--text-muted); }
.contact-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* ── Submit button ───────────────────────────────── */
.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}
.contact-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.contact-submit:active { transform: translateY(0); }
.contact-submit-icon { font-size: 1rem; }

/* ── Success / error states ──────────────────────── */
.contact-success {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.contact-success-icon { font-size: 1.25rem; }
.contact-error {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ── Info sidebar card (contact page) ────────────── */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}
.contact-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.contact-info-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.contact-info-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.25rem;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item-icon { font-size: 1rem; flex-shrink: 0; }
