/* ==============================
   CSS VARIABLES & RESET
============================== */
:root {
    --accent:        #ff6b35;
    --accent-2:      #f7c59f;
    --text-primary:  #ffffff;
    --text-secondary:#c8c8c8;
    --glass-bg:      rgba(10, 10, 10, 0.45);
    --glass-border:  rgba(255, 255, 255, 0.08);
    --nav-height:    68px;
    --modal-bg:      rgba(8, 8, 8, 0.97);
    --status-pending:  #f5a623;
    --status-approved: #4cde80;
    --status-rejected: #f05a5a;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: #050505;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none; /* Hide default cursor */
}

/* ==============================
   CUSTOM CURSOR
============================== */
.custom-cursor, .custom-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
}
.custom-cursor {
    width: 8px; height: 8px;
    background-color: var(--accent);
}
.custom-cursor-follower {
    width: 32px; height: 32px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    background-color: rgba(255, 107, 53, 0.05);
    transition: width 0.3s, height 0.3s, transform 0.1s linear, background-color 0.3s, opacity 0.3s;
}
.custom-cursor.hover, .custom-cursor-follower.hover {
    opacity: 0.5;
}
.custom-cursor-follower.hover {
    width: 50px; height: 50px;
    background-color: rgba(255, 107, 53, 0.2);
    border-color: var(--accent);
}

@media (max-width: 900px) {
    body { cursor: auto; }
    .custom-cursor, .custom-cursor-follower { display: none; }
}

/* ==============================
   SCROLL PROGRESS LINE
============================== */
.scroll-progress-track {
    position: fixed;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 55vh;
    background: rgba(255,255,255,0.07);
    border-radius: 99px;
    z-index: 200;
}
.scroll-progress-fill {
    width: 100%; height: 0%;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 99px;
    transition: height 0.08s linear;
    box-shadow: 0 0 10px rgba(255,107,53,0.5);
    position: relative;
}
.scroll-progress-fill::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px 4px rgba(255,107,53,0.7);
}

/* ==============================
   FLOATING CULTURAL ICONS
============================== */
.floating-icons { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.float-icon {
    position: absolute;
    left: var(--x); top: var(--y);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.11);
    /* Parallax transform variables updated via JS */
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
    animation: floatAnim 6s ease-in-out var(--d) infinite alternate;
    transition: transform 0.1s linear, color 0.3s;
}
.float-icon:hover { color: var(--accent); }
@keyframes floatAnim {
    from { margin-top: 0; }
    to   { margin-top: -18px; }
}

/* ==============================
   NAVBAR
============================== */
.navbar {
    position: fixed; top: 0; left: 0;
    width: 100%; height: var(--nav-height);
    display: flex; align-items: center;
    padding: 0 clamp(1rem, 4vw, 3.5rem);
    gap: 1.5rem;
    z-index: 300;
    background: rgba(5,5,5,0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
    background: rgba(5,5,5,0.82);
    box-shadow: 0 6px 28px rgba(0,0,0,0.4);
}
.nav-brand {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 900; letter-spacing: 5px;
    color: #fff; text-transform: uppercase;
    flex-shrink: 0; position: relative;
    margin-right: auto;
}
.nav-brand::after {
    content: ''; position: absolute;
    bottom: -3px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Desktop nav links */
.nav-links {
    list-style: none;
    display: flex; gap: 2rem;
    align-items: center;
    margin: 0;
}
.nav-links li a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    position: relative; transition: color 0.3s;
    white-space: nowrap;
}
.nav-links li a::after {
    content: ''; position: absolute;
    bottom: -3px; left: 0; width: 0; height: 2px;
    background: var(--accent); border-radius: 99px;
    transition: width 0.3s;
}
.nav-links li a:hover { color: #fff; }
.nav-links li a:hover::after { width: 100%; }

/* Hide mobile-auth item on desktop */
.nav-mobile-auth { display: none; }

/* Desktop auth area */
.nav-auth {
    flex-shrink: 0;
    display: flex; gap: 0.6rem; align-items: center;
}

.login-btn {
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.4);
    color: var(--accent-2);
    padding: 0.45rem 1.1rem;
    border-radius: 99px; cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    transition: all 0.3s; white-space: nowrap;
}
.login-btn:hover { background: rgba(255,107,53,0.35); color: #fff; }

.user-chip {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px; padding: 0.35rem 0.9rem;
    font-size: 0.82rem; color: #ddd;
}
.user-chip .role-badge {
    background: var(--accent); color: #fff;
    font-size: 0.6rem; padding: 0.12rem 0.45rem;
    border-radius: 99px; font-weight: 700; letter-spacing: 1px;
}
.user-chip button {
    background: none; border: none; color: #888;
    cursor: pointer; font-size: 0.78rem; margin-left: 0.2rem;
    transition: color 0.2s;
}
.user-chip button:hover { color: #fff; }

.admin-dash-btn {
    background: rgba(255,107,53,0.18);
    border: 1px solid rgba(255,107,53,0.5);
    color: var(--accent);
    padding: 0.38rem 0.85rem; border-radius: 99px;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    font-size: 0.78rem; font-weight: 600;
    transition: all 0.3s; white-space: nowrap;
}
.admin-dash-btn:hover { background: rgba(255,107,53,0.38); }

.nav-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px; flex-shrink: 0; z-index: 310;
}
.nav-hamburger span {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}

/* ==============================
   VIDEO BACKGROUND
============================== */
img#video-img {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: cover; z-index: 0;
    pointer-events: none; background: #000;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
}

/* ==============================
   CONTENT WRAPPER & SCREENS
============================== */
.content-wrapper { position: relative; z-index: 2; }

.screen {
    min-height: 130vh; width: 100vw;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 6vw, 5rem);
    background: radial-gradient(ellipse at center,
        rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 100%);
}
.screen:first-child, .screen:last-child { min-height: 100vh; }

/* ==============================
   HERO
============================== */
.hero-block { text-align: center; max-width: 900px; width: 100%; }

.reveal-line { overflow: hidden; display: block; }
.reveal-line > * {
    display: block; transform: translateY(110%); opacity: 0;
    transition: transform 1s cubic-bezier(0.22,1,0.36,1), opacity 0.8s ease;
}
.reveal-line.visible > * { transform: translateY(0); opacity: 1; }
.delay-1 > * { transition-delay: 0.18s; }
.delay-2 > * { transition-delay: 0.36s; }

/* ==============================
   SPLIT LAYOUT
============================== */
.split-layout {
    display: flex; align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    max-width: 1100px; width: 100%;
}
.split-layout.reverse { flex-direction: row-reverse; }
.text-left, .text-right { flex: 1; min-width: 0; }
.text-left {
    transform: translateX(-80px); opacity: 0;
    transition: transform 1s cubic-bezier(0.22,1,0.36,1), opacity 0.9s ease;
}
.text-right {
    transform: translateX(80px); opacity: 0;
    transition: transform 1s cubic-bezier(0.22,1,0.36,1) 0.15s, opacity 0.9s ease 0.15s;
}
.text-left.visible, .text-right.visible { transform: translateX(0); opacity: 1; }

[data-animate="from-bottom"] {
    transform: translateY(70px); opacity: 0;
    transition: transform 1s cubic-bezier(0.22,1,0.36,1), opacity 0.9s ease;
}
[data-animate="from-bottom"].visible { transform: translateY(0); opacity: 1; }

/* ==============================
   TYPOGRAPHY
============================== */
.section-label {
    display: inline-block;
    font-size: 0.72rem; font-weight: 500; letter-spacing: 4px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 1rem; border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
}
.section-label i { margin-right: 0.35rem; }

h1.split-text {
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 900; line-height: 1; letter-spacing: -4px;
    color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}
h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -1px;
    color: #fff; margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
h2 em {
    font-style: normal; color: #fff;
    border-bottom: 3px solid var(--accent); padding-bottom: 2px;
}
h2.big-cta {
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 900; line-height: 1.05; letter-spacing: -2px;
    color: #fff; margin-bottom: 1rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}
h2.big-cta em {
    font-style: normal; color: #fff;
    border-bottom: 4px solid var(--accent); padding-bottom: 4px;
}
p {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.75; color: #ddd;
    font-weight: 300; max-width: 560px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.9);
}
.hero-block p { margin: 0 auto; }
.tagline {
    font-size: clamp(0.7rem, 2vw, 0.95rem);
    letter-spacing: 2.5px; color: #ccc;
    margin-top: 0.75rem; text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

/* ==============================
   ICON BADGES
============================== */
.icon-row {
    display: flex; flex-wrap: wrap;
    gap: 0.5rem; margin-top: 1.5rem;
}
.icon-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.38rem 0.85rem; border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem; color: #ddd;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.icon-badge i { color: var(--accent); }
.icon-badge:hover { border-color: var(--accent); color: #fff; background: rgba(255,107,53,0.12); }

/* ==============================
   SCROLL HINT
============================== */
.scroll-hint {
    margin-top: 3rem;
    display: flex; flex-direction: column;
    align-items: center; gap: 0.75rem; overflow: hidden;
}
.scroll-hint > span {
    display: block; font-size: 0.7rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--text-secondary);
    transform: translateY(110%); opacity: 0;
    transition: transform 1s cubic-bezier(0.22,1,0.36,1) 0.5s, opacity 0.8s ease 0.5s;
}
.scroll-hint.visible > span { transform: translateY(0); opacity: 1; }
.scroll-dot {
    width: 1px; height: 34px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ==============================
   GLASS CARD
============================== */
.centered-block { text-align: center; max-width: 780px; width: 100%; }
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
    border-radius: clamp(18px, 3vw, 32px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.glass:hover { box-shadow: 0 24px 80px rgba(255,107,53,0.12); }
.glass p { margin: 0 auto 1.5rem; }

/* ==============================
   PILL TAGS
============================== */
.pill-tags {
    display: flex; flex-wrap: wrap;
    gap: 0.5rem; justify-content: center; margin-top: 1.25rem;
}
.pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.38rem 1rem;
    border: 1px solid rgba(255,107,53,0.35);
    border-radius: 99px; font-size: 0.8rem;
    color: var(--accent-2); background: rgba(255,107,53,0.07);
    transition: all 0.3s; cursor: default;
}
.pill:hover { background: rgba(255,107,53,0.2); border-color: var(--accent); transform: translateY(-2px); }

/* ==============================
   CTA BUTTON
============================== */
.cta-button {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 2rem;
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2.8rem);
    background: linear-gradient(135deg, var(--accent), #e04e1f);
    color: #fff; text-decoration: none; font-weight: 700;
    font-size: clamp(0.82rem, 2vw, 0.95rem);
    letter-spacing: 2px; text-transform: uppercase;
    border-radius: 99px; box-shadow: 0 8px 32px rgba(255,107,53,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.cta-button:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 40px rgba(255,107,53,0.6); }

/* ==============================
   GALLERY SECTION
============================== */
.gallery-section {
    position: relative; z-index: 2;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
    background: rgba(0,0,0,0.78);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gallery-header { text-align: center; margin-bottom: 2.5rem; }
.gallery-header h2 { margin-bottom: 1.25rem; }

.gallery-tabs {
    display: flex; gap: 0.4rem;
    justify-content: center; margin-bottom: 1rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.38rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 99px; background: transparent; color: #aaa;
    font-family: 'Outfit', sans-serif; font-size: 0.83rem;
    cursor: pointer; transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.upload-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.45rem 1.25rem; border-radius: 99px;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.4);
    color: var(--accent-2); font-family: 'Outfit', sans-serif;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s;
}
.upload-btn:hover { background: rgba(255,107,53,0.35); color: #fff; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative; border-radius: 14px; overflow: hidden;
    cursor: pointer; background: #111;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.gallery-item img, .gallery-item video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0.75rem; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay p { font-size: 0.82rem; color: #ddd; margin: 0; text-shadow: none; }
.gallery-item-overlay span { font-size: 0.68rem; color: #aaa; }
.gallery-item .video-badge {
    position: absolute; top: 0.5rem; left: 0.5rem;
    background: rgba(255,107,53,0.85); color: #fff;
    font-size: 0.62rem; letter-spacing: 1px;
    padding: 0.18rem 0.45rem; border-radius: 4px; text-transform: uppercase;
}
.gallery-item .delete-item-btn {
    position: absolute; top: 0.5rem; right: 0.5rem;
    background: rgba(220,50,50,0.85); color: #fff;
    border: none; border-radius: 50%;
    width: 26px; height: 26px; cursor: pointer; font-size: 0.7rem;
    display: none; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.gallery-item:hover .delete-item-btn { display: flex; }
.gallery-item .delete-item-btn:hover { background: rgb(220,50,50); }
/* Always show delete btn on touch (no hover) */
@media (hover: none) {
    .gallery-item .delete-item-btn { display: flex; }
    .gallery-item-overlay { opacity: 1; }
}

.gallery-empty {
    grid-column: 1/-1; text-align: center;
    padding: 4rem 1rem; color: #555;
}
.gallery-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.gallery-empty p { font-size: 0.95rem; color: #555; text-shadow: none; }

/* ==============================
   MODALS – fully responsive
============================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
.modal-overlay.hidden { display: none; }

.modal-box {
    background: var(--modal-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: clamp(16px, 3vw, 24px);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    width: 100%; max-width: min(440px, calc(100vw - 2rem));
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    animation: modalIn 0.35s cubic-bezier(0.22,1,0.36,1);
    margin: auto;
}
@keyframes modalIn {
    from { transform: translateY(30px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.admin-box {
    max-width: min(780px, calc(100vw - 2rem));
    max-height: 90vh; overflow-y: auto;
}

.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.06); border: none;
    color: #aaa; width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

.modal-box h3 {
    font-size: clamp(1.1rem, 4vw, 1.4rem); font-weight: 700;
    color: #fff; margin-bottom: 0.25rem; text-shadow: none;
}
.modal-sub {
    font-size: 0.83rem; color: #888;
    margin-bottom: 1.6rem; max-width: 100%; text-shadow: none;
}

.field-group {
    display: flex; align-items: center; gap: 0.7rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09); border-radius: 12px;
    padding: 0.7rem 1rem; margin-bottom: 0.85rem;
    transition: border-color 0.2s;
}
.field-group:focus-within { border-color: var(--accent); }
.field-group i { color: #666; font-size: 0.88rem; flex-shrink: 0; }
.field-group input {
    background: none; border: none; outline: none;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 0.92rem; width: 100%; min-width: 0;
}
.field-group input::placeholder { color: #555; }

.submit-btn {
    width: 100%; padding: 0.82rem;
    background: linear-gradient(135deg, var(--accent), #e04e1f);
    border: none; border-radius: 12px; color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem; font-weight: 700;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 0.5rem;
    transition: opacity 0.3s, transform 0.2s;
}
.submit-btn:hover { opacity: 0.9; transform: scale(1.01); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.login-error, .upload-success {
    padding: 0.7rem 1rem; border-radius: 10px;
    font-size: 0.82rem; margin-bottom: 0.85rem;
}
.login-error { background: rgba(220,50,50,0.15); border: 1px solid rgba(220,50,50,0.3); color: #f88; }
.upload-success { background: rgba(50,200,100,0.15); border: 1px solid rgba(50,200,100,0.3); color: #6f9; }

/* ==============================
   UPLOAD DROPZONE
============================== */
.upload-dropzone {
    border: 2px dashed rgba(255,255,255,0.15); border-radius: 14px;
    padding: clamp(1.25rem, 4vw, 2rem); text-align: center;
    cursor: pointer; color: #666; margin-bottom: 0.85rem;
    transition: border-color 0.3s, background 0.3s;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--accent); background: rgba(255,107,53,0.06); color: var(--accent-2);
}
.upload-dropzone i { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.file-preview { margin-bottom: 0.85rem; }
.file-preview img, .file-preview video {
    max-width: 100%; max-height: 150px; border-radius: 10px; object-fit: cover;
}

/* ==============================
   LIGHTBOX
============================== */
.lightbox {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(0,0,0,0.93); backdrop-filter: blur(12px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.hidden { display: none; }
.lightbox-close {
    position: fixed; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.1); border: none;
    color: #fff; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; font-size: 1rem; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-content img, .lightbox-content video {
    max-width: min(90vw, 1000px);
    max-height: 80vh; border-radius: 10px; object-fit: contain;
}
.lightbox-caption { margin-top: 0.75rem; color: #aaa; font-size: 0.88rem; text-align: center; }

/* ==============================
   ADMIN PANEL
============================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem; margin-bottom: 1.25rem;
}
.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 0.85rem; text-align: center;
}
.stat-card .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-card .stat-label { font-size: 0.65rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }

.admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-tab-content.hidden { display: none; }

.add-user-form {
    display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.add-user-form input, .add-user-form select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 0.45rem 0.7rem;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 0.83rem; flex: 1; min-width: 90px; outline: none;
}
.add-user-form select option { background: #111; }
.pill-btn {
    padding: 0.45rem 0.9rem; background: var(--accent); border: none;
    border-radius: 8px; color: #fff; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: 0.83rem; font-weight: 600;
    transition: opacity 0.2s; white-space: nowrap;
}
.pill-btn:hover { opacity: 0.8; }

.users-list, .activity-list {
    display: flex; flex-direction: column; gap: 0.45rem;
    max-height: 320px; overflow-y: auto;
}
.user-row, .log-row {
    display: flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 0.6rem 0.85rem;
    flex-wrap: wrap;
}
.user-row .u-name { font-weight: 600; font-size: 0.88rem; }
.user-row .u-role {
    font-size: 0.68rem; color: var(--accent);
    background: rgba(255,107,53,0.15);
    padding: 0.12rem 0.45rem; border-radius: 99px;
}
.user-row .u-status { font-size: 0.68rem; color: #6f9; }
.user-row .u-status.inactive { color: #f88; }
.user-row .u-actions { margin-left: auto; display: flex; gap: 0.3rem; flex-wrap: wrap; }
.user-row .u-actions button {
    background: rgba(255,255,255,0.07); border: none; color: #aaa;
    border-radius: 6px; padding: 0.22rem 0.45rem;
    cursor: pointer; font-size: 0.72rem; transition: all 0.2s;
}
.user-row .u-actions button:hover { background: rgba(255,255,255,0.15); color: #fff; }
.user-row .u-actions button.danger:hover { background: rgba(220,50,50,0.3); color: #f88; }

.log-row { font-size: 0.78rem; gap: 0.5rem; }
.log-row .log-action { color: var(--accent); font-weight: 600; min-width: 72px; }
.log-row .log-user { color: #ddd; min-width: 80px; }
.log-row .log-detail { color: #888; flex: 1; }
.log-row .log-time { color: #555; white-space: nowrap; font-size: 0.7rem; }

/* ==============================
   SCROLLBAR
============================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==============================
   SITE FOOTER
============================== */
.site-footer {
    position: relative; z-index: 2;
    background: rgba(0,0,0,0.88);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem clamp(1rem, 5vw, 4rem);
    display: flex; flex-direction: column;
    align-items: center; gap: 0.6rem;
    text-align: center;
}

.footer-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.42rem 1.4rem;
    border-radius: 99px;
    font-size: 0.82rem; letter-spacing: 0.5px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.footer-badge:hover {
    transform: translateY(-2px);
}

.footer-badge.made-by {
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.28);
    color: #e8c5aa;
}
.footer-badge.made-by:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}
.footer-badge.made-by strong {
    color: #fff; font-weight: 700;
}
.footer-badge.made-by .heart {
    animation: heartbeat 1.4s ease-in-out infinite;
    display: inline-block;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    20%       { transform: scale(1.25); }
    40%       { transform: scale(0.95); }
    60%       { transform: scale(1.15); }
}

.footer-badge.copyright {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #666;
    font-size: 0.74rem; letter-spacing: 0.3px;
}
.footer-badge.copyright:hover {
    color: #aaa;
}

/* ==============================
   UTILITY
============================== */
.hidden { display: none !important; }

/* ==============================
   JOIN FORM MODAL
============================== */
.join-box { max-width: min(680px, calc(100vw - 2rem)); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
}

.textarea-group {
    align-items: flex-start;
    padding-top: 0.85rem;
}
.textarea-group i { margin-top: 0.15rem; }
.textarea-group textarea {
    background: none; border: none; outline: none;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 0.92rem; width: 100%; resize: vertical;
    line-height: 1.6;
}
.textarea-group textarea::placeholder { color: #555; }

.field-group select {
    background: none; border: none; outline: none;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 0.92rem; width: 100%;
    -webkit-appearance: none; appearance: none;
    cursor: pointer;
}
.field-group select option { background: #111; color: #fff; }

/* ==============================
   JOIN REQUESTS (Admin)
============================== */
.join-filter-row {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    margin-bottom: 1rem;
}

.joins-list {
    display: flex; flex-direction: column; gap: 0.6rem;
    max-height: 420px; overflow-y: auto;
}

.join-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; padding: 0.9rem 1rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.join-card-header {
    display: flex; align-items: center;
    gap: 0.6rem; flex-wrap: wrap;
}
.join-card-header .jc-name { font-weight: 700; font-size: 0.95rem; }
.join-card-header .jc-email { font-size: 0.8rem; color: #aaa; }
.join-card-header .jc-meta  { font-size: 0.75rem; color: #777; margin-left: auto; }

.status-badge {
    display: inline-block; font-size: 0.65rem;
    font-weight: 700; letter-spacing: 1px;
    padding: 0.18rem 0.5rem; border-radius: 99px;
    text-transform: uppercase;
}
.status-badge.pending  { background: rgba(245,166,35,0.15);  color: var(--status-pending);  border: 1px solid rgba(245,166,35,0.35); }
.status-badge.approved { background: rgba(76,222,128,0.15); color: var(--status-approved); border: 1px solid rgba(76,222,128,0.35); }
.status-badge.rejected { background: rgba(240,90,90,0.15);  color: var(--status-rejected);  border: 1px solid rgba(240,90,90,0.35); }

.join-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.25rem 1rem; font-size: 0.78rem; color: #aaa;
}
.join-card-details span strong { color: #ccc; }

.join-card-why {
    font-size: 0.8rem; color: #999; font-style: italic;
    border-left: 2px solid rgba(255,107,53,0.3);
    padding-left: 0.6rem; margin-top: 0.2rem;
    line-height: 1.5;
}

.join-card-actions {
    display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.25rem;
}
.join-card-actions button {
    padding: 0.28rem 0.75rem; border: none;
    border-radius: 6px; cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem; font-weight: 600;
    transition: opacity 0.2s;
}
.join-card-actions button:hover { opacity: 0.8; }
.btn-approve { background: rgba(76,222,128,0.18); color: var(--status-approved); border: 1px solid rgba(76,222,128,0.35) !important; }
.btn-reject  { background: rgba(240,90,90,0.18);  color: var(--status-rejected);  border: 1px solid rgba(240,90,90,0.35)  !important; }
.btn-delete  { background: rgba(255,255,255,0.07); color: #aaa; border: 1px solid rgba(255,255,255,0.1) !important; }

/* ==============================
   RESPONSIVE — TABLET (≤900px)
============================== */
@media (max-width: 900px) {
    .split-layout, .split-layout.reverse {
        flex-direction: column; gap: 2rem; text-align: center;
    }
    .text-left, .text-right { transform: translateY(50px); opacity: 0; width: 100%; }
    .text-left.visible, .text-right.visible { transform: translateY(0); opacity: 1; }
    .icon-row { justify-content: center; }
    p { max-width: 100%; }
    .screen { min-height: 110vh; }
    .scroll-progress-track { display: none; }
    .floating-icons .float-icon { font-size: 1.1rem; }
}

/* ==============================
   RESPONSIVE — MOBILE (≤768px)
============================== */
@media (max-width: 768px) {

    /* Navbar: show hamburger, hide desktop links & auth */
    .navbar { padding: 0 1rem; gap: 0.75rem; }
    .nav-hamburger { display: flex; }

    /* Desktop auth: hidden on mobile */
    .nav-auth-desktop { display: none !important; }

    /* Nav links slide-out panel */
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 1.75rem;
        background: rgba(5,5,5,0.97);
        backdrop-filter: blur(24px);
        transition: right 0.4s cubic-bezier(0.22,1,0.36,1);
        padding: 5rem 2rem 3rem;
        margin: 0;
        z-index: 305;
        border-left: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links.open { right: 0; }
    .nav-links li a { font-size: 1rem; letter-spacing: 2px; }

    /* Show mobile auth row inside the panel */
    .nav-mobile-auth {
        display: block;
        border-top: 1px solid rgba(255,255,255,0.07);
        padding-top: 1.25rem;
        margin-top: 0.25rem;
        width: 100%;
    }
    /* Make login/user chip full width in mobile panel */
    .nav-mobile-auth .login-btn,
    .nav-mobile-auth .user-chip,
    .nav-mobile-auth .admin-dash-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    .nav-mobile-auth .user-chip { border-radius: 12px; }

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

    /* Overlay behind open menu */
    .nav-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 304; display: none;
    }
    .nav-overlay.show { display: block; }

    /* Typography */
    h1.split-text { font-size: clamp(3rem, 18vw, 5rem); letter-spacing: -2px; }
    h2.big-cta { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

    .screen { min-height: 100vh; padding: 5rem 1.25rem 2rem; }
    .screen:first-child { padding-top: calc(var(--nav-height) + 1.5rem); }

    .glass { padding: 1.75rem 1.25rem; border-radius: 18px; }
    .floating-icons { display: none; }

    /* Gallery */
    .gallery-section { padding: 3rem 1rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 0.6rem; }
    .gallery-item { border-radius: 10px; }

    /* Modals */
    .modal-box { padding: 1.5rem 1.25rem; border-radius: 18px; }
    .admin-box { max-height: 95vh; }
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
    .add-user-form { flex-direction: column; }
    .add-user-form input, .add-user-form select { min-width: unset; }

    /* Activity log on mobile */
    .log-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .log-row .log-time { align-self: flex-end; }
}

/* ==============================
   RESPONSIVE — SMALL MOBILE (≤400px)
============================== */
@media (max-width: 400px) {
    h1.split-text { font-size: 3rem; letter-spacing: -1px; }
    .nav-brand { letter-spacing: 3px; }
    .pill { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}
