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

body {
    background: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ===========================
   HEADER
=========================== */
.header-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 20px 0;
    position: relative;
    z-index: 100;
}

.header {
    background: #111318;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 980px;
    overflow: visible;
    position: relative;
}

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

.logo-emoji {
    font-size: 20px;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.logo-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--header-accent, var(--accent, #ffffff));
    letter-spacing: -0.3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 9px;
    border-radius: 20px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--header-accent, var(--accent, #ffffff)); font-weight: 600; }

.btn-yetkili {
    background: transparent;
    border: 1.5px solid var(--header-accent, var(--accent, #ffffff));
    color: var(--header-accent, var(--accent, #ffffff));
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.btn-yetkili:hover {
    background: var(--header-accent, var(--accent, #ffffff));
    color: #000;
}

/* ===========================
   PAGE WRAPPER
=========================== */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* ===========================
   STAT CARDS ROW
=========================== */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background: #111318;
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.stat-discord {
    background: #5865F2;
}

.stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-big {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.stat-num {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.stat-label-top {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.stat-small {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.stat-ico {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 22px;
}

.stat-discord .stat-ico,
.stat-discord .stat-big,
.stat-discord .stat-label-top,
.stat-discord .stat-small {
    color: #ffffff;
}

.stat-discord .stat-ico {
    color: rgba(255,255,255,0.9);
    font-size: 26px;
}

.discord-ico { font-size: 26px !important; }

/* ===========================
   RIBBON / STATUS BAR
=========================== */
.ribbon-wrap {
    width: 100%;
}

.ribbon-bar {
    background: #111318;
    border-radius: 6px;
    padding: 10px 20px;
    text-align: center;
}

.ribbon-text {
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
}

.aktif-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
    text-align: right;
    padding-right: 2px;
}

/* ===========================
   MAIN 2-COLUMN LAYOUT
=========================== */
.main-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
}

.col-right {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.discord-widget-iframe {
    display: flex;
    flex-direction: column;
}

.discord-widget-iframe iframe {
    max-width: 100%;
    border-radius: 10px;
    height: 400px;
    max-height: 400px;
}

.discord-widget {
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

.discord-members {
    background: #111318;
    border-radius: 0 0 10px 10px;
    padding: 0 14px 12px;
    margin-top: -4px;
    max-height: 300px;
    overflow-y: auto;
}

/* ===========================
   3 MINI INFO CARDS
=========================== */
.info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.info-card {
    background: #111318;
    border-radius: 10px;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.info-icon-wrap {
    flex-shrink: 0;
}

.info-icon {
    font-size: 18px;
    color: #666;
}

.info-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.info-val {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
}

.info-val.green { color: #4ade80; }
.info-val.red   { color: #f87171; }

/* ===========================
   HERO BANNER
=========================== */
.hero-banner {
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    background-image:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
        url('images/hero_banner.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    position: relative;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(100,200,255,0.8),
        0 0 60px rgba(60,160,255,0.5),
        2px 2px 0 rgba(0,0,0,0.5);
    font-style: italic;
    line-height: 1;
}

.btn-play {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 8px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-play:hover { background: #e0e0e0; }

/* ===========================
   ANNOUNCEMENTS
=========================== */
.announce-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
}

.announce-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 2px;
}

.announce-title::before {
    content: '\f0a1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
    color: var(--accent, #7c3aed);
}

.announce-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #2a2c38, transparent);
    margin-left: 6px;
}

.announce-card {
    background: linear-gradient(135deg, #13151a 0%, #0e0f14 100%);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1e2030;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.announce-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent, #7c3aed), color-mix(in srgb, var(--accent, #7c3aed) 60%, transparent));
    border-radius: 3px 0 0 3px;
}

.announce-card:hover {
    border-color: var(--accent, #7c3aed);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
    transform: translateY(-1px);
}

.announce-card:last-child {
    margin-bottom: 0;
}

.ac-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.ac-name {
    font-size: 14px;
    font-weight: 700;
    color: #e8e8e8;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-desc {
    font-size: 12.5px;
    color: #6a6a7a;
    line-height: 1.5;
}

.ac-date {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.ac-date i {
    font-size: 10px;
    opacity: 0.5;
}

/* ===========================
   DISCORD WIDGET
=========================== */
.discord-widget {
    background: #111318;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dc-header {
    background: #5865F2;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.dc-logo {
    font-size: 18px;
    color: #ffffff;
}

.dc-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.dc-count {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.dc-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 460px;
}

.dc-body::-webkit-scrollbar { width: 4px; }
.dc-body::-webkit-scrollbar-track { background: transparent; }
.dc-body::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }

.dc-section {
    font-size: 9px;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.minfo {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mname {
    font-size: 12px;
    font-weight: 500;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mact {
    font-size: 10px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mstatus {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
}

.dc-footer {
    padding: 10px 14px;
    border-top: 1px solid #1a1c24;
    text-align: center;
}
.dc-footer a {
    color: #5865F2;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.dc-footer {
    font-size: 10px;
    color: #555;
    padding-top: 8px;
    border-top: 1px solid #1e1e24;
    margin-top: 4px;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background: linear-gradient(180deg, #0a0b0f 0%, #060709 100%);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent-dark, #2a1f4a), var(--accent, #7c3aed)44, var(--accent-dark, #2a1f4a), transparent) 1;
    padding: 60px 20px 0;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(var(--accent-rgb, 124,58,237),0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Top Brand Row */
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-logo-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 13px;
    color: #444;
    font-weight: 400;
    max-width: 240px;
    line-height: 1.6;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #111318;
    border: 1px solid #1e2030;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social-btn:hover {
    background: #1a1030;
    border-color: var(--accent, #7c3aed);
    color: var(--accent-lighter, #c084fc);
}

/* Divider */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e2030 30%, var(--accent-dark, #2a1f4a) 50%, #1e2030 70%, transparent);
    margin-bottom: 40px;
}

/* Links Grid */
.footer-links-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    position: relative;
    padding-left: 10px;
}

.footer-col-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: var(--accent, #7c3aed);
    border-radius: 2px;
}

.footer-link {
    font-size: 13px;
    color: #484858;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, padding-left 0.2s;
    padding-left: 0;
}

.footer-link i {
    font-size: 12px;
    width: 14px;
    text-align: center;
    opacity: 0.7;
}

.footer-link:hover {
    color: #cccccc;
    padding-left: 4px;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 24px 0 32px;
    border-top: 1px solid #111318;
}

.footer-copy {
    font-size: 11px;
    color: #2a2a35;
    letter-spacing: 0.3px;
}

/* NaroMax Credit Link */
.footer-madeby {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-naromax-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.6;
}

.footer-madeby span {
    font-size: 11px;
    font-weight: 500;
    color: #5a5a6a;
    white-space: nowrap;
}

/* ===========================
   HAMBURGER MENU
=========================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: #1a1c24;
    border: 1px solid #2a2c38;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.hamburger:hover {
    background: #22243a;
    border-color: var(--accent, #7c3aed);
}

.hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s, width 0.3s;
    transform-origin: center;
}

/* X animation when open */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
.nav.nav-open {
    display: flex !important;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 900px) {

    /* Header */
    .header-wrap {
        padding: 12px 12px 0;
    }

    .header {
        border-radius: 14px;
        padding: 10px 14px;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        max-width: 100%;
    }

    /* Hide desktop nav, show hamburger */
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: #111318;
        border: 1px solid #1e2030;
        border-radius: 14px;
        flex-direction: column;
        padding: 12px 8px;
        gap: 4px;
        z-index: 1000;
        box-shadow: 0 16px 48px rgba(0,0,0,0.8);
        animation: slideDown 0.2s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-link {
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 14px;
        width: 100%;
        white-space: normal;
    }

    .nav-link:hover {
        background: #1a1c24;
    }

    .hamburger {
        display: flex;
    }

    /* Stat cards: 2x2 grid */
    .stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Main layout: single column */
    .main-layout {
        flex-direction: column;
    }

    /* Info row: single column */
    .info-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Hero banner */
    .hero-banner {
        height: auto;
        min-height: 180px;
    }

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

    /* Page wrap padding */
    .page-wrap {
        padding: 16px 12px 36px;
    }

    /* Footer */
    .footer-links-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 16px;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
    }

    .site-footer {
        padding: 40px 16px 0;
    }
}

@media (max-width: 480px) {

    .stat-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-big {
        font-size: 14px;
    }

    .stat-ico {
        font-size: 18px;
        width: 30px;
        height: 30px;
    }

    .stat-num {
        font-size: 11px;
    }

    .stat-label-top {
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    .stat-small {
        font-size: 9px;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .info-icon-wrap {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .info-label {
        font-size: 9px;
    }

    .info-val {
        font-size: 14px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .hero-banner {
        height: auto;
        min-height: 140px;
    }

    .hero-inner {
        padding: 0 12px;
    }

    .btn-play {
        padding: 6px 16px;
        font-size: 11px;
    }

    .announce-card {
        padding: 13px 14px;
        flex-direction: column;
        gap: 8px;
    }

    .announce-card::before {
        width: 2px;
    }

    .ac-name {
        font-size: 13px;
    }

    .ac-desc {
        font-size: 11.5px;
    }

    .ac-date {
        font-size: 10px;
        white-space: normal;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-left: 0;
    }

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

    .footer-madeby span {
        white-space: normal;
        text-align: center;
    }

    .dc-body {
        max-height: 300px;
    }
}

/* ===========================
   PUBLIC GALLERY
=========================== */
.gallery-page-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.gallery-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.gallery-page-header p {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.gallery-page-header .gp-icon {
    font-size: 32px;
    color: var(--accent, #7c3aed);
    margin-bottom: 12px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 0 0 20px;
}

.gallery-item {
    background: #111318;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1e2030;
    transition: border-color 0.25s, transform 0.2s;
}

.gallery-item:hover {
    border-color: var(--accent, #7c3aed);
    transform: translateY(-2px);
}

.gallery-item-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0b0f;
    cursor: pointer;
}

.gallery-item-preview img,
.gallery-item-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-item-preview img,
.gallery-item:hover .gallery-item-preview video {
    transform: scale(1.04);
}

.gallery-item-type {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    color: #aaa;
    pointer-events: none;
}

.gallery-item-info {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-item-discord {
    font-size: 12px;
    color: #888;
}

.gallery-item-discord i {
    margin-right: 6px;
}

.gallery-item-date {
    font-size: 10px;
    color: #555;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img,
.gallery-lightbox video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    cursor: default;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.gallery-lightbox-close:hover {
    color: #fff;
}

/* Submission page */
.submit-page-wrap {
    max-width: 520px;
    margin: 30px auto;
}

.submit-card {
    background: #111318;
    border-radius: 12px;
    border: 1px solid #1e2030;
    padding: 32px;
}

.submit-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.submit-card .subtitle {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

.submit-card .form-group {
    margin-bottom: 16px;
}

.submit-card .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 6px;
}

.submit-card .form-group input,
.submit-card .form-group select {
    width: 100%;
    padding: 10px 12px;
    background: #0a0b0f;
    border: 1px solid #1e2030;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.submit-card .form-group input:focus,
.submit-card .form-group select:focus {
    outline: none;
    border-color: var(--accent, #7c3aed);
}

.submit-card .form-group input[type="file"] {
    padding: 8px;
    font-size: 13px;
}

.submit-card .form-group input[type="file"]::file-selector-button {
    padding: 6px 12px;
    background: #1a1c24;
    border: 1px solid #2a2c38;
    border-radius: 6px;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s;
}

.submit-card .form-group input[type="file"]::file-selector-button:hover {
    background: #2a2c38;
}

.submit-card .submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent, #7c3aed);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-card .submit-btn:hover {
    opacity: 0.85;
}

.submit-success {
    text-align: center;
    padding: 20px 0;
}

.submit-success i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 12px;
}

.submit-success h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.submit-success p {
    font-size: 13px;
    color: #888;
}

.submit-error {
    background: #2a1215;
    border: 1px solid #3f1a1f;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 16px;
}

.submit-info {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #555;
}

.submit-info a {
    color: var(--accent, #7c3aed);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .submit-card {
        padding: 20px;
        margin: 0 12px;
    }

    .gallery-page-header {
        padding: 24px 16px 20px;
    }

    .gallery-page-header h1 {
        font-size: 18px;
    }
}
