/* ==========================================================================
   TokserTeam — Galactic Theme
   ========================================================================== */

:root {
    --bg: #07020f;
    --bg-2: #0d0620;
    --card: rgba(20, 12, 45, 0.55);
    --card-solid: #150b2e;
    --border: rgba(140, 120, 255, 0.18);
    --border-glow: rgba(140, 120, 255, 0.45);
    --text: #eef0ff;
    --text-dim: #a9a4d6;
    --muted: #7c77ab;
    --primary: #8b5cf6;
    --primary-2: #6d28d9;
    --accent: #22d3ee;
    --pink: #f472b6;
    --gold: #ffd700;
    --green: #34d399;
    --danger: #f87171;
    --radius: 18px;
    --radius-sm: 12px;
    --glow-purple: 0 0 24px rgba(139, 92, 246, 0.45);
    --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.4);
    --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    --font-en: "Orbitron", var(--font);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.8;
    direction: rtl;
}

::selection { background: rgba(139, 92, 246, 0.5); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--accent)); border-radius: 10px; }

a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--pink); }

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

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ==========================================================================
   Cosmos background
   ========================================================================== */

.cosmos {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, #1b0f3a 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 110%, #0d1b3a 0%, transparent 60%),
        linear-gradient(180deg, #07020f 0%, #0d0620 50%, #07020f 100%);
    overflow: hidden;
}

#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    animation: drift 22s ease-in-out infinite alternate;
}
.nebula-1 { width: 520px; height: 520px; top: -140px; left: -120px; background: rgba(139, 92, 246, .35); }
.nebula-2 { width: 480px; height: 480px; bottom: -160px; right: -100px; background: rgba(34, 211, 238, .28); animation-delay: -7s; }
.nebula-3 { width: 380px; height: 380px; top: 42%; right: 20%; background: rgba(244, 114, 182, .18); animation-delay: -13s; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.12); }
}

.shooting-stars { position: absolute; inset: 0; overflow: hidden; }

.shooting-star {
    position: absolute;
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: 2px;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(255,255,255,.8));
    animation: shoot 7s linear infinite;
}
.shooting-star:nth-child(1) { top: 12%; right: -10%; animation-delay: 1.5s; }
.shooting-star:nth-child(2) { top: 34%; right: -10%; animation-delay: 4.2s; animation-duration: 9s; }
.shooting-star:nth-child(3) { top: 58%; right: -10%; animation-delay: 6s; animation-duration: 8s; }

@keyframes shoot {
    0%   { transform: translateX(0) rotate(0deg); opacity: 0; }
    4%   { opacity: 1; }
    16%  { transform: translateX(-42vw) translateY(24vh) rotate(-8deg); opacity: 0; }
    100% { transform: translateX(-42vw) translateY(24vh) rotate(-8deg); opacity: 0; }
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(7, 2, 15, 0.55);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(34,211,238,.25));
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-purple);
    color: var(--accent);
    animation: pulseGlow 3s ease-in-out infinite;
    overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

@keyframes pulseGlow {
    0%, 100% { box-shadow: var(--glow-purple); }
    50%      { box-shadow: 0 0 34px rgba(139, 92, 246, 0.75), 0 0 14px rgba(34, 211, 238, 0.5); }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; color: #fff; }
.brand-text small { font-family: var(--font-en); font-size: .68rem; letter-spacing: 2px; color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: .95rem;
    position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(139,92,246,.15); }
.nav-links a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(139,92,246,.35), rgba(34,211,238,.25));
    box-shadow: inset 0 0 0 1px var(--border-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: .3s; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 999px;
    border: 1px solid var(--border-glow);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, filter .25s;
    box-shadow: var(--glow-purple);
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.15); color: #fff; }
.btn:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    box-shadow: none;
}
.btn-outline:hover { background: rgba(139,92,246,.15); }

.btn-cyan { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: var(--glow-cyan); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }

.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 0 20px rgba(239,68,68,.35); }

/* ==========================================================================
   Sections & headings
   ========================================================================== */

section { position: relative; padding: 90px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.kicker {
    display: inline-block;
    font-family: var(--font-en);
    font-size: .8rem;
    letter-spacing: 3px;
    color: var(--accent);
    background: rgba(34,211,238,.12);
    border: 1px solid rgba(34,211,238,.3);
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

h1, h2, h3, h4 { line-height: 1.35; }

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 900;
    background: linear-gradient(120deg, #fff 0%, var(--accent) 45%, var(--pink) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.section-sub { color: var(--text-dim); font-size: 1.05rem; }

.glass {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* ==========================================================================
   Page load + extras
   ========================================================================== */

body { animation: pageIn .5s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

.scroll-progress {
    position: fixed;
    top: 0; right: 0;
    height: 3px;
    width: 0;
    z-index: 200;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--pink));
    box-shadow: 0 0 12px rgba(139, 92, 246, .8);
    transition: width .08s linear;
}

.back-to-top {
    position: fixed;
    bottom: 26px; left: 26px;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-glow);
    background: rgba(20, 12, 45, .85);
    backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 150;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s, transform .3s, box-shadow .3s;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { box-shadow: var(--glow-cyan); color: #fff; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(139,92,246,.2);
    border-radius: 50%;
    animation: spin 40s linear infinite;
}
.hero-orbit.o1 { width: 420px; height: 420px; top: 8%; right: -120px; }
.hero-orbit.o2 { width: 300px; height: 300px; bottom: 6%; left: -90px; animation-direction: reverse; animation-duration: 30s; }
.hero-orbit.o3 { width: 620px; height: 620px; top: 30%; left: 50%; transform: translateX(-50%); animation-duration: 60s; opacity: .5; }
.hero-orbit::after {
    content: "";
    position: absolute;
    top: -5px; right: 50%;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-glow);
    background: rgba(139,92,246,.12);
    color: var(--accent);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 26px;
    animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    font-weight: 900;
    background: linear-gradient(120deg, #fff 0%, #c4b5fd 35%, var(--accent) 70%, var(--pink) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
    margin-bottom: 18px;
}

@keyframes shimmer { to { background-position: 200% center; } }

.hero h1 .en { font-family: var(--font-en); display: block; font-size: .38em; letter-spacing: 6px; -webkit-text-fill-color: transparent; }

.hero-sub {
    max-width: 640px;
    margin: 0 auto 36px;
    color: var(--text-dim);
    font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    margin-top: 60px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .8rem;
    animation: floaty 3s ease-in-out infinite;
}
.hero-scroll::after {
    content: "";
    width: 2px; height: 44px;
    background: linear-gradient(var(--accent), transparent);
    border-radius: 2px;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}

.stat-card { text-align: center; padding: 34px 18px; transition: transform .3s, box-shadow .3s; }
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--glow-purple); }

.stat-value {
    font-family: var(--font-en);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    background: linear-gradient(120deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}
.stat-label { color: var(--text-dim); font-weight: 600; }

/* ==========================================================================
   Rank nodes (used in home + ranks page)
   ========================================================================== */

.rank-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.rank-card {
    position: relative;
    padding: 34px 24px;
    text-align: center;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.rank-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at var(--rank-color, #8b5cf6), transparent 0%, transparent 40%);
    opacity: .18;
    filter: blur(20px);
    transition: opacity .4s;
}
.rank-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 36px color-mix(in srgb, var(--rank-color) 45%, transparent); }
.rank-card:hover::before { opacity: .4; }

.rank-icon {
    width: 74px; height: 74px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 2px solid color-mix(in srgb, var(--rank-color) 60%, transparent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--rank-color) 35%, transparent);
    position: relative;
    z-index: 1;
}
.rank-icon::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--rank-color) 45%, transparent);
    animation: spin 14s linear infinite;
}

.rank-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--rank-color, var(--primary));
}
.rank-card p { color: var(--text-dim); font-size: .92rem; }
.rank-count {
    display: inline-block;
    margin-top: 14px;
    font-size: .78rem;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(139,92,246,.15);
    color: var(--accent);
    border: 1px solid rgba(139,92,246,.3);
}

/* ==========================================================================
   Member cards
   ========================================================================== */

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.member-card {
    padding: 28px 22px;
    text-align: center;
    position: relative;
    transition: transform .35s, box-shadow .35s;
    overflow: hidden;
}
.member-card:hover { transform: translateY(-8px); box-shadow: var(--glow-purple); }

.member-avatar {
    width: 110px; height: 110px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-glow);
    box-shadow: 0 0 26px rgba(139,92,246,.4);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    transition: transform .35s;
}
.member-card:hover .member-avatar { transform: rotate(4deg) scale(1.06); }

.member-rank-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    color: var(--text);
    background: color-mix(in srgb, var(--rank-color, #8b5cf6) 30%, transparent);
    border: 1px solid color-mix(in srgb, var(--rank-color, #8b5cf6) 55%, transparent);
}

.member-card h3 { font-size: 1.25rem; font-weight: 800; }
.member-nick {
    font-family: var(--font-en);
    color: var(--accent);
    font-size: .9rem;
    margin: 4px 0 10px;
    letter-spacing: 1px;
}
.member-desc { color: var(--text-dim); font-size: .9rem; min-height: 3.2em; margin-bottom: 14px; }

.member-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(34,211,238,.1);
    border: 1px solid rgba(34,211,238,.35);
    color: var(--accent);
    font-weight: 700;
    font-size: .85rem;
    transition: all .3s;
}
.member-telegram:hover {
    background: rgba(34,211,238,.2);
    box-shadow: var(--glow-cyan);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Members tree (branch by rank)
   ========================================================================== */

.tree { display: flex; flex-direction: column; align-items: center; }

.tree-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.tree-rank-node {
    text-align: center;
    padding: 26px 44px;
    min-width: 250px;
    position: relative;
    z-index: 2;
    transition: transform .3s, box-shadow .3s;
}
.tree-rank-node:hover { transform: scale(1.04); box-shadow: 0 0 40px color-mix(in srgb, var(--rank-color) 40%, transparent); }

.tree-rank-node .rank-icon { margin-bottom: 12px; }
.tree-rank-node h3 { font-size: 1.5rem; color: var(--rank-color); font-weight: 900; }
.tree-rank-node p { color: var(--text-dim); font-size: .9rem; max-width: 380px; }

.tree-connector {
    width: 2px;
    height: 54px;
    background: linear-gradient(to bottom, var(--rank-color), var(--border-glow));
    position: relative;
    z-index: 1;
}
.tree-connector::after {
    content: "";
    position: absolute;
    bottom: -2px; left: -3px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rank-color);
    box-shadow: 0 0 10px var(--rank-color);
}

.tree-branch {
    position: relative;
    width: 100%;
    padding-top: 18px;
    margin-bottom: 10px;
}
.tree-branch::before {
    content: "";
    position: absolute;
    top: 0; right: 8%; left: 8%;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--border-glow), transparent);
}

.tree-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
}

.tree-member-item { position: relative; }
.tree-member-item::before {
    content: "";
    position: absolute;
    top: -18px; right: 50%;
    width: 2px; height: 18px;
    background: linear-gradient(to bottom, var(--border-glow), var(--rank-color));
}

.tree-member-item:first-child::before,
.tree-member-item:last-child::before {
    width: calc(50% + 1px);
    right: auto;
    left: 50%;
    background: linear-gradient(to bottom, transparent 0%, var(--border-glow) 100%);
}
.tree-member-item:first-child::before { right: 50%; left: auto; background: linear-gradient(to bottom, var(--border-glow), var(--rank-color)) ; }
.tree-member-item:last-child::before { left: 50%; right: auto; }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-visual { position: relative; display: grid; place-items: center; min-height: 320px; }

.about-ring {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 2px dashed rgba(139,92,246,.4);
    animation: spin 26s linear infinite;
}
.about-ring::before, .about-ring::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}
.about-ring::before { top: 6%; right: 8%; }
.about-ring::after { bottom: 10%; left: 14%; background: var(--pink); box-shadow: 0 0 14px var(--pink); }

.about-core {
    width: 150px; height: 150px;
    display: grid;
    place-items: center;
    font-size: 4rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2b1a5e, var(--primary-2));
    border: 2px solid var(--border-glow);
    box-shadow: 0 0 60px rgba(139,92,246,.55);
    animation: corePulse 3.5s ease-in-out infinite;
}
.about-core img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 40px rgba(139,92,246,.45); }
    50%      { box-shadow: 0 0 80px rgba(139,92,246,.8), 0 0 30px rgba(34,211,238,.5); }
}

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; }

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.vm-card { padding: 30px; }
.vm-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.15rem; }
.vm-card h3 span { font-size: 1.6rem; }
.vm-card p { color: var(--text-dim); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    transition: transform .3s, box-shadow .3s;
}
.contact-item:hover { transform: translateX(-6px); box-shadow: var(--glow-purple); }

.contact-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    border-radius: 14px;
    background: rgba(139,92,246,.15);
    border: 1px solid var(--border-glow);
}
.contact-item h4 { font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-item a, .contact-item p { color: var(--text); font-weight: 700; direction: ltr; text-align: right; }

.contact-form { padding: 36px; }
.contact-form h3 { margin-bottom: 24px; font-size: 1.4rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--text-dim);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(10, 5, 25, .6);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color .3s, box-shadow .3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,92,246,.25);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-control::placeholder { color: var(--muted); }

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-weight: 700;
    border: 1px solid;
}
.alert-success {
    background: rgba(52,211,153,.12);
    border-color: rgba(52,211,153,.4);
    color: var(--green);
}
.alert-error {
    background: rgba(248,113,113,.12);
    border-color: rgba(248,113,113,.4);
    color: var(--danger);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band { text-align: center; padding: 70px 0 110px; }
.cta-band h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 14px;
    background: linear-gradient(120deg, #fff, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-band p { color: var(--text-dim); margin-bottom: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(7, 2, 15, .7);
    backdrop-filter: blur(12px);
    padding-top: 60px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 44px;
}

.footer-col h3 {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-col h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, var(--border-glow), transparent); }

.footer-col p { color: var(--text-dim); font-size: .92rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { color: var(--text-dim); transition: .25s; }
.footer-col li a:hover { color: var(--accent); padding-right: 4px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { color: var(--muted); font-size: .85rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.page-hero { text-align: center; padding: 70px 0 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0; left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(10, 5, 25, .96);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        padding: 14px 6% 18px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: .3s;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 12px 16px; }
    .admin-link { text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
    .hero { min-height: calc(100vh - 70px); }
}
