/* ============================================
   PhotoMatch — Premium Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --secondary-light: #55efc4;
    --accent: #fd79a8;
    --accent-light: #fdcb6e;

    --bg-dark: #0a0a0f;
    --bg-surface: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6868a0;

    --gradient-primary: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-secondary: linear-gradient(135deg, #00cec9, #55efc4);
    --gradient-accent: linear-gradient(135deg, #fd79a8, #fdcb6e);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
    --shadow-glow-teal: 0 0 40px rgba(0, 206, 201, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

/* ---------- Background Effects ---------- */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-dark);
}

.bg-mesh::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(253, 121, 168, 0.04) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.glass-card-static {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ---------- Typography ---------- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-teal {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn-primary-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary-gradient:hover::before {
    left: 100%;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
    color: white;
}

.btn-primary-gradient:active {
    transform: translateY(0);
}

.btn-secondary-gradient {
    background: var(--gradient-secondary);
    border: none;
    color: #0a0a0f;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 206, 201, 0.5);
    color: #0a0a0f;
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: scale(1.1);
}

/* ---------- Navbar ---------- */
.navbar-custom {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

.navbar-brand-custom {
    font-weight: 800;
    font-size: 22px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--text-primary) !important;
    background: var(--bg-glass);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    animation: pulse 2s ease-in-out infinite;
}

/* ---------- QR Scanner ---------- */
.scanner-container {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-glass);
    background: var(--bg-surface);
}

.scanner-container #reader {
    width: 100% !important;
    border: none !important;
}

.scanner-container #reader video {
    border-radius: var(--radius-md);
}

/* Override html5-qrcode styles */
#reader {
    border: none !important;
}

#reader__scan_region {
    background: transparent !important;
}

#reader__dashboard {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    padding: 16px !important;
}

#reader__dashboard button {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-full) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 4px !important;
}

#reader__dashboard select {
    background: var(--bg-glass) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-primary) !important;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm) !important;
    font-family: 'Inter', sans-serif !important;
}

#reader__dashboard span, #reader__dashboard a {
    color: var(--text-secondary) !important;
}

/* ---------- Camera / Selfie ---------- */
.camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-glass);
    background: #000;
}

.camera-wrapper video {
    width: 100%;
    display: block;
    transform: scaleX(-1); /* Mirror for selfie */
}

.camera-wrapper canvas {
    display: none;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.camera-overlay .face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 280px;
    border: 3px solid rgba(108, 92, 231, 0.6);
    border-radius: 50%;
    animation: faceGuidePulse 2s ease-in-out infinite;
}

@keyframes faceGuidePulse {
    0%, 100% { border-color: rgba(108, 92, 231, 0.4); transform: translate(-50%, -50%) scale(1); }
    50% { border-color: rgba(108, 92, 231, 0.8); transform: translate(-50%, -50%) scale(1.02); }
}

.camera-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    margin: 20px auto;
    display: block;
}

.capture-btn::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.capture-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-light);
}

.capture-btn:hover::after {
    transform: scale(0.85);
}

/* ---------- Stage Transitions ---------- */
.stage {
    display: none;
    animation: fadeSlideUp 0.5s ease forwards;
}

.stage.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Loading / Processing ---------- */
.processing-overlay {
    text-align: center;
    padding: 60px 20px;
}

.processing-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.processing-spinner::before,
.processing-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.processing-spinner::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--border-glass);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.processing-spinner::after {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: auto;
    border: 3px solid var(--border-glass);
    border-bottom-color: var(--secondary);
    animation: spin 1.5s linear infinite reverse;
}

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

.progress-bar-custom {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ---------- Photo Gallery Grid ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    group: true;
    aspect-ratio: 1;
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    gap: 10px;
}

.photo-card:hover .overlay {
    opacity: 1;
}

.photo-card .overlay .btn-download {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.photo-card .overlay .btn-download:hover {
    transform: scale(1.05);
}

/* ---------- Admin Panel ---------- */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    margin-bottom: 16px;
}

.event-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Upload Area ---------- */
.upload-zone {
    border: 2px dashed var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-card);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.upload-zone .upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.upload-zone .upload-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-zone .upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* Upload preview grid */
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.8);
    color: #000;
}

.status-badge.processing {
    background: rgba(108, 92, 231, 0.8);
    color: white;
    animation: pulse 1s ease-in-out infinite;
}

.status-badge.done {
    background: rgba(0, 206, 201, 0.8);
    color: white;
}

.status-badge.error {
    background: rgba(255, 107, 107, 0.8);
    color: white;
}

/* ---------- QR Code Display ---------- */
.qr-display {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 16px 0;
}

.qr-display img {
    display: block;
    width: 200px;
    height: 200px;
}

/* ---------- Forms ---------- */
.form-control-custom {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    width: 100%;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    background: rgba(108, 92, 231, 0.05);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-label-custom {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

textarea.form-control-custom {
    min-height: 100px;
    resize: vertical;
}

/* ---------- Alerts ---------- */
.alert-custom {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid rgba(0, 206, 201, 0.2);
    color: var(--secondary);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.alert-info {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
}

/* ---------- Results Header ---------- */
.results-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.match-count {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ---------- No Results ---------- */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results .icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.no-results p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* ---------- Animations ---------- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-slideUp { animation: slideInUp 0.5s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.4s ease forwards; }

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-header {
        flex-direction: column;
        text-align: center;
    }

    .event-actions {
        justify-content: center;
    }

    .camera-overlay .face-guide {
        width: 160px;
        height: 210px;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .upload-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-glass);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
