/* ============================================================
   ZWoW – Main Stylesheet  (Midnight / WoD themes)
   ============================================================ */

/* ---------- DEFAULT THEME: Midnight ---------- */
:root {
    --void: #6d28d9;
    --void-lt: #a78bfa;
    --void-dim: #4c1d95;
    --void-dark: #3c1685;
    --blue: #3a7bd5;
    --blue-lt: #7eb8f7;
    --purple: #8b5cf6;
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;

    --glow-1: rgba(109, 40, 217, 0.15);
    --glow-2: rgba(58, 123, 213, 0.12);

    --bg: #0a0814;
    --bg-card: rgba(18, 15, 35, 0.75);
    --bg-dark: #050510;
    --border: rgba(109, 40, 217, 0.18);
    --border-lt: rgba(109, 40, 217, 0.35);

    --text: #e8e0f0;
    --text-dim: #9080a0;
    --text-muted: #5a5060;

    --nav-h: 68px;
    --r: 12px;
    --transition: 0.25s ease;
}

/* ---------- THEME: Dragonflight ---------- */
body.theme-dragonflight {
    --void: #c84020;
    --void-lt: #f0a030;
    --void-dim: #8b2010;
    --void-dark: #601008;
    --blue: #e8c040;
    --blue-lt: #ffe080;
    --purple: #d06030;
    --green: #3ab840;
    --red: #e84030;
    --yellow: #f0c030;

    --glow-1: rgba(200, 64, 32, 0.18);
    --glow-2: rgba(232, 192, 64, 0.12);

    --bg: #0c0a06;
    --bg-card: rgba(24, 14, 8, 0.8);
    --bg-dark: #060402;
    --border: rgba(200, 64, 32, 0.18);
    --border-lt: rgba(200, 64, 32, 0.35);

    --text: #f8ead0;
    --text-dim: #b8a080;
    --text-muted: #705830;
}

/* ---------- THEME: Warlords of Draenor ---------- */
body.theme-wod {
    --void: #c4421a;
    --void-lt: #f07040;
    --void-dim: #8b2a0a;
    --void-dark: #6b1a05;
    --blue: #6b8e23;
    --blue-lt: #9acd32;
    --purple: #d4853a;
    --green: #4a9e2f;
    --red: #e04020;
    --yellow: #d4a844;

    --glow-1: rgba(196, 66, 26, 0.15);
    --glow-2: rgba(107, 142, 35, 0.1);

    --bg: #0d0a08;
    --bg-card: rgba(28, 18, 10, 0.78);
    --bg-dark: #080604;
    --border: rgba(196, 66, 26, 0.18);
    --border-lt: rgba(196, 66, 26, 0.35);

    --text: #f0e8d8;
    --text-dim: #a09080;
    --text-muted: #605040;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rajdhani", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- PARTICLES ---------- */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(8, 12, 20, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition:
        background var(--transition),
        box-shadow var(--transition);
}
.navbar.scrolled {
    background: rgba(8, 12, 20, 0.98);
    box-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    font-size: 1.4rem;
    color: var(--void);
}
.brand-name {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--void);
    letter-spacing: 0.08em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition:
        color var(--transition),
        background var(--transition);
    letter-spacing: 0.04em;
}
.nav-links a:hover {
    color: var(--void-lt);
}
.nav-links .nav-cta {
    background: linear-gradient(135deg, var(--void-dim), var(--void));
    color: #fff;
    border-radius: 6px;
}
.nav-links .nav-cta:hover {
    background: linear-gradient(135deg, var(--void), var(--void-lt));
    color: #000;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--void);
    font-size: 1.5rem;
    cursor: pointer;
}
.lang-switch {
    background: rgba(109, 40, 217, 0.15);
    border: 1px solid var(--void);
    color: var(--void-lt);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all var(--transition);
}
.lang-switch:hover {
    background: var(--void);
    color: #fff;
    transform: scale(1.05);
}
.lang-footer {
    margin-left: 16px;
    color: var(--text-dim);
}
.lang-footer a {
    color: var(--void-lt);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.lang-footer a:hover {
    color: var(--void);
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(8, 12, 20, 0.97);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--nav-h) 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}
.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        var(--glow-1, rgba(109, 40, 217, 0.15)) 0%,
        transparent 70%
    );
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        var(--glow-2, rgba(58, 123, 213, 0.12)) 0%,
        transparent 70%
    );
    bottom: 40px;
    right: 10%;
    animation-delay: -3s;
}
@keyframes pulse-glow {
    from {
        opacity: 0.6;
        transform: scale(1) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: scale(1.12) translateX(-50%);
    }
}
.hero-glow-2 {
    animation: pulse-glow2 7s ease-in-out infinite alternate;
}
@keyframes pulse-glow2 {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.hero-badge {
    display: inline-block;
    padding: 4px 18px;
    border: 1px solid var(--border-lt);
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--void);
    text-transform: uppercase;
    background: rgba(109, 40, 217, 0.08);
}
.hero-title {
    font-family: "Cinzel", serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: 0.05em;
}
.title-line-1 {
    display: block;
    background: linear-gradient(
        135deg,
        var(--void) 0%,
        var(--void-lt) 50%,
        var(--void) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: shimmer 4s linear infinite;
    background-size: 200% auto;
}
.title-line-2 {
    display: block;
    font-size: clamp(2rem, 6vw, 4rem);
    background: linear-gradient(
        135deg,
        var(--blue-lt) 0%,
        #fff 50%,
        var(--blue-lt) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s linear infinite reverse;
}
@keyframes shimmer {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 200%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--void-lt);
    font-weight: 600;
    letter-spacing: 0.06em;
}
.hero-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num {
    font-family: "Cinzel", serif;
    font-size: 1.8rem;
    color: var(--void);
    font-weight: 700;
}
.stat-num.online-dot::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px var(--green);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}
.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--void-dim);
    border-bottom: 2px solid var(--void-dim);
    transform: rotate(45deg);
    animation: bounce-arrow 1.6s ease-in-out infinite;
}
@keyframes bounce-arrow {
    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition);
}
.btn:hover::after {
    background: rgba(255, 255, 255, 0.06);
}
.btn-primary {
    background: linear-gradient(
        135deg,
        #4c1d95 0%,
        var(--void) 50%,
        #7c3aed 100%
    );
    color: #0a0800;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(109, 40, 217, 0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--void);
    border: 1px solid var(--border-lt);
}
.btn-secondary:hover {
    background: rgba(109, 40, 217, 0.08);
    border-color: var(--void);
}
.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--border-lt);
    color: var(--text);
}
.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
}
.btn-full {
    width: 100%;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}
.section-dark {
    background: rgba(5, 8, 16, 0.6);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-family: "Cinzel", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--void-lt);
    letter-spacing: 0.06em;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--void), transparent);
}
.section-sub {
    color: var(--text-dim);
    margin-top: 20px;
    font-size: 1rem;
}
.empty-notice {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.empty-notice a {
    color: var(--void);
}

/* ============================================================
   WHAT'S WORKING
   ============================================================ */
.status-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.legend-item {
    font-weight: 600;
    font-size: 0.9rem;
}
.status-working {
    color: var(--green);
}
.status-partial {
    color: var(--yellow);
}
.status-broken {
    color: var(--red);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.category-card {
    padding: 24px;
}
.cat-title {
    font-family: "Cinzel", serif;
    font-size: 1rem;
    color: var(--void);
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition);
    cursor: default;
}
.feature-item:hover {
    background: rgba(109, 40, 217, 0.12);
    box-shadow: 0 0 12px rgba(109, 40, 217, 0.15);
    transform: translateX(4px);
}
.feature-icon {
    font-size: 0.9rem;
    width: 18px;
    flex-shrink: 0;
}
.feature-item.status-working .feature-icon {
    color: var(--green);
}
.feature-item.status-partial .feature-icon {
    color: var(--yellow);
}
.feature-item.status-broken .feature-icon {
    color: var(--red);
}
.feature-name {
    flex: 1;
}
.feature-item {
    position: relative;
}
.feature-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(18, 15, 35, 0.98);
    border: 1px solid var(--void);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: normal;
    max-width: 280px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(109, 40, 217, 0.2);
    z-index: 100;
    pointer-events: none;
}
.feature-item[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}
.feature-item::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    border: 6px solid transparent;
    border-top-color: var(--void);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 101;
}
.feature-item[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.feature-note {
    color: var(--void-lt);
    font-size: 0.85rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.2);
    transition: all var(--transition);
}
.feature-item:hover .feature-note {
    background: var(--void);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(109, 40, 217, 0.4);
}

/* ============================================================
   MEDIA SECTION
   ============================================================ */
.media-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 7px 20px;
    border-radius: 40px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: "Rajdhani", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
    background: rgba(109, 40, 217, 0.12);
    border-color: var(--void);
    color: var(--void-lt);
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.media-card {
    border-radius: var(--r);
    overflow: hidden;
}
.media-card[hidden] {
    display: none;
}
.media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.media-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #111 center/cover no-repeat;
    overflow: hidden;
}
.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.media-card:hover .media-overlay {
    opacity: 1;
}
.media-icon {
    font-size: 2.5rem;
}
.play-icon {
    font-size: 2.8rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.media-info {
    padding: 10px 14px;
    background: rgba(10, 16, 28, 0.9);
}
.media-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}
.stat-card {
    padding: 40px 24px;
    text-align: center;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(109, 40, 217, 0.12);
}
.stat-card .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.stat-card .stat-value {
    font-family: "Cinzel", serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--void);
    display: block;
    margin-bottom: 8px;
}
.stat-card .stat-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pulse-card {
    animation: card-pulse 3s ease-in-out infinite;
}
@keyframes card-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.15);
    }
    50% {
        box-shadow: 0 0 30px 6px rgba(34, 197, 94, 0.25);
    }
}

/* ============================================================
   CONNECT / HOW TO PLAY SECTION
   ============================================================ */
.connect-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.connect-step {
    padding: 36px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}
.connect-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(109, 40, 217, 0.15);
}
.step-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: "Cinzel", serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(109, 40, 217, 0.12);
    line-height: 1;
    user-select: none;
}
.step-icon {
    font-size: 2rem;
    line-height: 1;
}
.step-title {
    font-family: "Cinzel", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--void-lt);
    margin: 0;
}
.step-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.step-desc strong {
    color: var(--text);
}
.step-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 20px;
    border-radius: 8px;
    background: rgba(109, 40, 217, 0.12);
    border: 1px solid var(--void-dim);
    color: var(--void-lt);
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition);
}
.step-btn:hover {
    background: rgba(109, 40, 217, 0.25);
    border-color: var(--void);
    color: #fff;
}
.step-btn-primary {
    background: linear-gradient(135deg, var(--void-dark), var(--void));
    border-color: var(--void);
    color: #fff;
}
.step-btn-primary:hover {
    background: linear-gradient(135deg, var(--void), var(--void-lt));
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.4);
}
.step-code-block {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-family: "Courier New", monospace;
}
.code-file {
    padding: 6px 12px;
    font-size: 0.72rem;
    color: var(--text-dim);
    background: rgba(109, 40, 217, 0.06);
    border-bottom: 1px solid var(--border);
    word-break: break-all;
}
.code-value {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--void-lt);
    letter-spacing: 0.02em;
}

/* ============================================================
   REGISTER FORM
   ============================================================ */
.form-wrapper {
    display: flex;
    justify-content: center;
}
.register-card {
    padding: 44px 40px;
    width: 100%;
    max-width: 500px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}
.form-group label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 12px 14px;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    transition:
        border var(--transition),
        box-shadow var(--transition);
    width: 100%;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--void-dim);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}
.form-group input.invalid {
    border-color: var(--red);
}
.form-group input.valid {
    border-color: var(--green);
}
.field-error {
    color: var(--red);
    font-size: 0.83rem;
    min-height: 18px;
}

.pw-wrap {
    position: relative;
}
.pw-wrap input {
    padding-right: 46px;
}
.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 0;
}

.pw-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.pw-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition:
        width 0.3s,
        background 0.3s;
}

.reg-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: none;
}
.reg-notice.show {
    display: block;
}
.reg-notice.success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.reg-notice.error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
.spinner[hidden] {
    display: none;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 2;
    background: rgba(5, 8, 16, 0.9);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}
.footer-links {
    margin-top: 10px;
}
.footer-links a {
    color: var(--void-dim);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--void);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal[hidden] {
    display: none;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}
.modal-box {
    position: relative;
    z-index: 1;
    background: #0d1626;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 32px;
    max-width: 90vw;
    width: 860px;
    max-height: 90vh;
    overflow: hidden;
}
.modal-box-sm {
    width: 540px;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--void);
}
.modal-body iframe {
    width: 100%;
    height: 480px;
    border: none;
    border-radius: 8px;
}

.modal-media {
    max-width: 95vw;
    width: 1000px;
    overflow: hidden;
}

.modal-body {
    overflow: hidden;
}

.modal-body img,
.modal-body iframe {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.modal-body.switching img,
.modal-body.switching iframe {
    opacity: 0;
    transform: scale(0.95);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(109, 40, 217, 0.15);
    border: 1px solid var(--void);
    color: var(--void-lt);
    width: 48px;
    height: 48px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-nav:hover {
    background: var(--void);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.modal-prev {
    left: 20px;
}
.modal-next {
    right: 20px;
}

.modal-counter {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .modal-prev {
        left: 10px;
    }
    .modal-next {
        right: 10px;
    }
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge.status-working {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}
.badge.status-partial {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}
.badge.status-broken {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}
.badge-type {
    background: rgba(58, 123, 213, 0.15);
    color: var(--blue-lt);
}

/* ============================================================
   NOTICE
   ============================================================ */
.notice {
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 18px;
}
.notice-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.notice-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ============================================================
   COPY BUTTON
   ============================================================ */
.copy-btn {
    background: rgba(109, 40, 217, 0.08);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--void-lt);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 3px 7px;
    transition: all 0.15s;
    line-height: 1;
}
.copy-btn:hover {
    background: var(--void);
    color: #fff;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(109, 40, 217, 0.2);
    border: 1px solid var(--void);
    border-radius: 50%;
    color: var(--void-lt);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.scroll-to-top:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--void);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
}
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
    background: rgba(109, 40, 217, 0.15);
    border: 1px solid var(--void);
    color: var(--void-lt);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
}
.lang-switch:hover {
    background: var(--void);
    color: #fff;
    transform: scale(1.05);
}
.lang-footer {
    margin-left: 16px;
    color: var(--text-dim);
}
.lang-footer a {
    color: var(--void-lt);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.lang-footer a:hover {
    color: var(--void);
}
