/* ===== Variables ===== */
:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #00A8CC;
    --accent-hover: #0090b0;
    --accent-dim: rgba(0, 168, 204, 0.1);
    --accent-glow: rgba(0, 168, 204, 0.18);
    --blue: #2E5090;
    --text: #f5f5f5;
    --text-muted: #94A3B8;
    --bg: #080b12;
    --bg-card: #0F172A;
    --bg-card-hover: #1E293B;
    --border: rgba(46, 80, 144, 0.2);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', serif;
    --nav-bg: rgba(8, 11, 18, 0.95);
}

/* ===== Light Mode ===== */
[data-theme="light"] {
    --primary: #ffffff;
    --primary-light: #F8F9FC;
    --accent: #00A8CC;
    --accent-hover: #008fad;
    --accent-dim: rgba(0, 168, 204, 0.08);
    --accent-glow: rgba(0, 168, 204, 0.12);
    --blue: #2E5090;
    --text: #0F172A;
    --text-muted: #475569;
    --bg: #ffffff;
    --bg-card: #F8F9FC;
    --bg-card-hover: #EEF2F8;
    --border: rgba(46, 80, 144, 0.1);
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    --nav-bg: rgba(255, 255, 255, 0.95);
}
[data-theme="light"] .navbar.scrolled {
    background: var(--nav-bg);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .hero-overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(248,249,252,0.7) 100%);
}
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle { color: var(--text); }
[data-theme="light"] .lightbox { background: rgba(255,255,255,0.97); }
[data-theme="light"] .lightbox-close,
[data-theme="light"] .lightbox-prev,
[data-theme="light"] .lightbox-next { color: var(--text); }
[data-theme="light"] .lightbox-close:hover,
[data-theme="light"] .lightbox-prev:hover,
[data-theme="light"] .lightbox-next:hover { color: var(--accent); }

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    padding: 0.7rem 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}
.logo-icon { color: var(--accent); font-size: 1.5rem; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-btn {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
}
.nav-btn:hover { background: var(--accent-hover) !important; }
.nav-btn-outline {
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text) !important;
}
.nav-btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,15,26,0.8) 0%, rgba(26,26,46,0.6) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}
.hero-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
    color: white;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hero-scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--accent);
    animation: scrollPulse 2s infinite;
    border-radius: 2px;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Animations ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Sections ===== */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}
.page-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.page-content { padding: 7rem 0 4rem; }

/* ===== Features ===== */
.features { padding: 6rem 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: linear-gradient(135deg, var(--bg-card), var(--primary-light), var(--bg-card));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 36px var(--accent-glow);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--accent); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); line-height: 1.7; }

/* ===== CTA Section ===== */
.cta-section { padding: 4rem 0; }
.cta-card {
    background: linear-gradient(135deg, var(--primary-light), var(--bg-card), var(--primary-light), rgba(0,168,204,0.08));
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow), transparent);
    animation: ctaPulse 4s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cta-card h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; position: relative; }
.cta-card p { color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; margin-inline: auto; position: relative; }
.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}
.cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); color: white; }

/* ===== Preview / Masonry ===== */
.preview-section { padding: 4rem 0; }
.masonry-grid {
    columns: 4;
    column-gap: 1rem;
}
.masonry-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    color: inherit;
}
.masonry-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: all;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay span { color: white; font-weight: 600; font-size: 1.1rem; }

/* ===== Stats ===== */
.stats-section { padding: 4rem 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.stat-item { padding: 2rem; }
.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.stat-label { color: var(--text-muted); font-size: 1.1rem; }

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    color: var(--text);
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    color: var(--text);
}
.gallery-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--primary);
}
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.3;
}
.gallery-card-info { padding: 1.5rem; }
.gallery-card-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.gallery-card-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.gallery-card-count { font-size: 0.85rem; color: var(--accent); font-weight: 500; }

/* ===== Photo Grid ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: var(--transition);
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-item:hover img { transform: scale(1.05); }
.photo-title { display: block; font-weight: 600; font-size: 0.9rem; }
.photo-uploader { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.gallery-header { margin-bottom: 2rem; }
.photo-count { color: var(--text-muted); font-size: 0.95rem; }
.gallery-actions { margin-top: 3rem; text-align: center; padding: 2rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 85vh; position: relative; overflow: visible; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: var(--transition);
    z-index: 10;
}
.lightbox-close { top: 1rem; right: 1rem; font-size: 2.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); }
.lightbox-info { text-align: center; padding: 1rem; color: var(--text-muted); }
.lightbox-request {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 11;
}
.lightbox-request:hover { background: var(--accent-hover); color: white; }
@media (max-width: 1024px) {
    .lightbox-request {
        bottom: auto;
        top: 1rem;
        right: 1rem;
        left: auto;
        transform: none;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .lightbox-request.visible {
        opacity: 1;
        pointer-events: all;
    }
}

/* ===== Auth ===== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
}
.auth-title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.3rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.2rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); }

/* ===== Forms ===== */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text);
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-container { max-width: 600px; margin: 0 auto; }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary:hover { background: var(--accent-hover); color: white; }
.btn-full { width: 100%; }
.btn-outline {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--success); color: white; border: none; padding: 0.5rem 1rem; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.btn-danger { background: var(--danger); color: white; border: none; padding: 0.5rem 1rem; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: 6px; cursor: pointer; }
.btn-group { display: flex; gap: 0.5rem; }

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-error { background: rgba(233, 69, 96, 0.1); border: 1px solid var(--danger); color: #ff6b7f; }
.alert-success { background: rgba(76, 175, 80, 0.1); border: 1px solid var(--success); color: #6fcf73; }

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-pending { background: rgba(255, 152, 0, 0.15); color: var(--warning); }
.badge-approved { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.badge-rejected { background: rgba(233, 69, 96, 0.15); color: var(--danger); }

/* ===== Tables ===== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table td { font-size: 0.95rem; }

/* ===== Account ===== */
.account-grid { display: flex; flex-direction: column; gap: 2rem; }
.account-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    color: var(--text);
}
.action-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.action-icon { font-size: 2rem; }
.action-text { font-weight: 600; }
.account-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.account-section h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.upload-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.upload-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.upload-status { position: absolute; bottom: 0.5rem; left: 0.5rem; }

/* ===== File Upload ===== */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--accent); background: var(--accent-dim); }
.file-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-icon { font-size: 3rem; margin-bottom: 0.5rem; display: block; }
.file-upload-text p { margin-bottom: 0.3rem; }
.file-upload-text small { color: var(--text-muted); }

/* ===== Info Box ===== */
.info-box {
    background: linear-gradient(135deg, var(--accent-dim), var(--bg-card), var(--accent-dim));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Admin ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.stat-card .stat-value { font-size: 2.5rem; font-weight: 700; color: var(--accent); display: block; }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.9rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.admin-nav-item:hover { border-color: var(--accent); color: var(--accent); }
.badge-count {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.admin-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.admin-cards { display: flex; flex-direction: column; gap: 1rem; }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.admin-card.card-highlight { border-color: var(--warning); }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.admin-card-body { margin-bottom: 1rem; }
.admin-card-body p { margin-bottom: 0.3rem; font-size: 0.95rem; }
.admin-card-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-card-actions textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem; color: var(--text); resize: vertical; }
.admin-card-note { padding-top: 0.5rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.back-link:hover { color: var(--accent); }
.inline-form .form-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; }
.inline-form .form-row input, .inline-form .form-row select { flex: 1; min-width: 150px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem; color: var(--text); }
.inline-edit { background: transparent; border: 1px solid transparent; padding: 0.3rem 0.5rem; color: var(--text); border-radius: 4px; width: 100%; }
.inline-edit:focus { border-color: var(--border); background: var(--bg); outline: none; }
.form-row-small { display: flex; gap: 1rem; align-items: center; margin-top: 0.5rem; }
.form-row-small label { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; color: var(--text-muted); }
.upload-review-grid { display: flex; flex-direction: column; gap: 1rem; }
.upload-review-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.upload-review-image img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.upload-review-info strong { display: block; margin-bottom: 0.3rem; }
.upload-review-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.upload-review-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.settings-form { max-width: 600px; }
.settings-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.settings-section h2 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.settings-section .form-group { margin-bottom: 1rem; }

/* ===== Footer ===== */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 4rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Legal ===== */
.legal-page h1 { font-family: var(--font-display); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 0.8rem; }
.legal-page h3 { font-size: 1.1rem; margin: 1.2rem 0 0.5rem; }
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.8; margin-bottom: 0.5rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ===== Error ===== */
.error-page { padding: 4rem 0; }
.error-code { font-size: 6rem; font-family: var(--font-display); color: var(--accent); }
.error-message { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-3 { margin-top: 2rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .masonry-grid { columns: 2; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .admin-grid { grid-template-columns: 1fr; }
    .upload-review-card { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .masonry-grid { columns: 1; }
    .hero-title { font-size: 2.5rem; }
    .auth-card { padding: 2rem 1.5rem; }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.1); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===== Lightbox Zoom ===== */
.lightbox-content {
    position: relative;
    touch-action: none;
    overflow: hidden;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    transform-origin: center center;
    cursor: grab;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-content img.zoomed {
    cursor: grabbing;
}
.lightbox-zoom-hint {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0.7;
    pointer-events: none;
}
