:root {
    color-scheme: light;
    --bg: #f8f9ff;
    --surface: #ffffff;
    --surface-2: #f0f2fa;
    --text: #151526;
    --muted: #69697b;
    --line: #e7e8f1;
    --contrast: #17172a;
    --contrast-text: #ffffff;
    --danger: #ef4444;
    --success: #22c55e;
    --shadow: 0 24px 70px rgba(57, 51, 100, .12);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #090912;
    --surface: #11111d;
    --surface-2: #191927;
    --text: #f7f7fb;
    --muted: #a4a4b5;
    --line: #29293a;
    --contrast: #f7f7fb;
    --contrast-text: #11111d;
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color .25s ease, color .25s ease;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.site-shell { overflow: hidden; }

.public-header, .admin-topbar {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 20;
}
.public-header { position: sticky; top: 0; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--contrast); color: var(--contrast-text);
    font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-style: italic;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 15px; letter-spacing: .22em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .14em; margin-top: 4px; text-transform: uppercase; }
.brand-compact { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brand-compact .brand-mark { width: 36px; height: 36px; font-size: 21px; }
.public-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.public-nav a { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.public-nav a:hover, .public-nav a.active { color: var(--text); }
.theme-toggle {
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
    display: grid; place-items: center; background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }

.hero {
    min-height: 600px;
    padding: clamp(90px, 13vw, 180px) clamp(20px, 8vw, 120px) 100px;
    position: relative;
    border-bottom: 1px solid var(--line);
}
.hero::after {
    content: "2026"; position: absolute; right: 5vw; bottom: -3vw; pointer-events: none;
    color: transparent; -webkit-text-stroke: 1px var(--line);
    font: 700 clamp(110px, 23vw, 340px)/.8 Arial, sans-serif; letter-spacing: -.08em; opacity: .85;
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker, .eyebrow {
    display: block; color: var(--muted); font-size: 11px; font-weight: 700;
    letter-spacing: .24em; text-transform: uppercase;
}
.hero h1 {
    max-width: 1050px; margin: 24px 0 28px;
    font: 400 clamp(56px, 10vw, 145px)/.86 Georgia, "Times New Roman", serif;
    letter-spacing: -.06em;
}
.hero h1 span { color: var(--muted); font-style: italic; }
.hero > p { max-width: 550px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.photo-count { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.btn {
    min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent; padding: 0 24px; cursor: pointer;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary { background: var(--contrast); color: var(--contrast-text); border-color: var(--contrast); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 10px; }
.btn-wide { width: 100%; }

.gallery-section { padding: 100px clamp(16px, 5vw, 72px) 120px; }
.section-heading, .admin-heading, .panel-heading {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.section-heading { margin-bottom: 48px; }
.section-heading h2, .admin-heading h1 {
    margin: 9px 0 0; font: 400 clamp(38px, 6vw, 76px)/1 Georgia, serif; letter-spacing: -.04em;
}
.section-heading p, .admin-heading p { color: var(--muted); font-size: 13px; }
.photo-grid { columns: 3; column-gap: 16px; }
.photo-card {
    width: 100%; display: block; margin: 0 0 16px; padding: 0; border: 0;
    background: var(--surface); cursor: zoom-in; position: relative; overflow: hidden; break-inside: avoid;
}
.photo-card img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover img { transform: scale(1.025); }
.photo-overlay {
    position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: flex-end;
    padding: 45px 18px 16px; color: #fff; text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .25s ease;
}
.photo-card:hover .photo-overlay, .photo-card:focus-visible .photo-overlay { opacity: 1; }
.photo-overlay span { font-size: 13px; font-weight: 700; }
.photo-overlay small { font-size: 10px; letter-spacing: .1em; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 50px; color: var(--muted); font-size: 12px; }
.pagination a { color: var(--text); font-weight: 700; }
.empty-state, .admin-empty, .error-page {
    min-height: 420px; border: 1px solid var(--line); display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; padding: 48px 20px;
}
.empty-number, .admin-empty > span, .error-code {
    color: var(--line); font: 400 100px/1 Georgia, serif; letter-spacing: -.08em;
}
.empty-state h3, .admin-empty h2, .error-page h1 { font: 400 36px/1.1 Georgia, serif; margin: 8px 0 14px; }
.empty-state p, .admin-empty p, .error-page p { color: var(--muted); max-width: 470px; line-height: 1.6; margin: 0 0 28px; }

.upload-page {
    max-width: 1280px; margin: 0 auto; padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 70px);
    display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 130px); align-items: start;
}
.upload-intro { position: sticky; top: 140px; }
.upload-intro h1 { margin: 20px 0 28px; font: 400 clamp(54px, 7vw, 96px)/.9 Georgia, serif; letter-spacing: -.055em; }
.upload-intro > p { color: var(--muted); max-width: 480px; line-height: 1.75; }
.upload-rules { margin-top: 56px; border-top: 1px solid var(--line); }
.upload-rules div { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.upload-rules strong { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.upload-form, .login-panel, .panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.dropzone {
    min-height: 440px; border: 1px dashed var(--muted); display: grid; place-items: center; position: relative;
    cursor: pointer; overflow: hidden; background: var(--bg); transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--text); background: var(--surface-2); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-copy { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.dropzone-plus { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 27px; margin-bottom: 12px; }
.dropzone-copy strong { font: 400 28px Georgia, serif; }
.dropzone-copy small { color: var(--muted); }
.dropzone-preview { position: absolute; inset: 0; }
.dropzone-preview img { width: 100%; height: 100%; object-fit: contain; background: #050505; }
.field { margin-top: 28px; }
.field label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field label span, .field > small { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field > small { display: block; margin-top: 8px; font-size: 11px; }
.field input {
    width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 0;
    background: var(--bg); color: var(--text); padding: 0 15px; outline: none;
}
.field input:focus { border-color: var(--text); }
.field input::placeholder { color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; margin: 24px 0; }
.consent input { margin-top: 3px; accent-color: var(--contrast); }
.honeypot { position: absolute !important; left: -9999px !important; }

.public-alerts { max-width: 900px; margin: 28px auto -30px; padding: 0 20px; position: relative; z-index: 2; }
.alert { padding: 14px 17px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; margin-bottom: 12px; }
.alert-success { border-left: 3px solid var(--success); }
.alert-error { border-left: 3px solid var(--danger); }
.public-footer {
    min-height: 220px; padding: 70px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.public-footer > p:first-child { max-width: 500px; font: 400 clamp(24px, 4vw, 48px)/1.1 Georgia, serif; }
.footer-meta { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94);
    display: grid; place-items: center; padding: 50px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 95vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { color: #aaa; margin-top: 12px; font-size: 12px; }
.lightbox-close { position: absolute; top: 20px; right: 25px; color: #fff; background: none; border: 0; font-size: 38px; cursor: pointer; }
.modal-open { overflow: hidden; }

.login-page { min-height: calc(100vh - 86px); display: grid; place-items: center; padding: 40px 20px; }
.login-panel { width: min(100%, 480px); box-shadow: var(--shadow); }
.login-brand { margin-bottom: 64px; }
.login-heading h1 { font: 400 44px/1 Georgia, serif; margin: 14px 0 18px; }
.login-heading p { color: var(--muted); line-height: 1.6; }
.login-panel .btn { margin-top: 28px; }
.back-link { display: block; text-align: center; margin-top: 26px; color: var(--muted); font-size: 12px; }

.admin-topbar { height: 72px; padding: 0 28px; position: sticky; top: 0; }
.admin-name { color: var(--muted); font-size: 12px; }
.admin-frame { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.admin-sidebar { border-right: 1px solid var(--line); padding: 30px 18px; background: var(--surface); }
.admin-sidebar nav { position: sticky; top: 102px; display: flex; flex-direction: column; gap: 5px; }
.admin-link { padding: 13px 15px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.admin-link:hover, .admin-link.active { background: var(--surface-2); color: var(--text); }
.admin-content { min-width: 0; padding: clamp(25px, 4vw, 60px); }
.admin-heading { margin-bottom: 38px; align-items: flex-end; }
.admin-heading h1 { font-size: clamp(42px, 6vw, 72px); }
.date-chip, .status {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
    border: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.stats-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.stat-card { min-height: 190px; padding: 25px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stat-card-main { background: var(--contrast); color: var(--contrast-text); border-color: var(--contrast); }
.stat-card > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat-card-main > span, .stat-card-main small { color: color-mix(in srgb, var(--contrast-text) 58%, transparent); }
.stat-card strong { margin-top: auto; font: 400 64px/.9 Georgia, serif; }
.stat-card small, .stat-card a { margin-top: 15px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { padding: 28px; }
.panel-heading { align-items: flex-start; margin-bottom: 26px; }
.panel-heading h2 { margin: 8px 0 0; font: 400 25px/1.1 Georgia, serif; }
.panel-heading > a { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.traffic-grid { display: grid; grid-template-columns: 1fr 1fr; }
.traffic-grid div { min-height: 120px; padding: 20px; border: 1px solid var(--line); margin: -1px 0 0 -1px; display: flex; flex-direction: column; }
.traffic-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.traffic-grid strong { margin-top: auto; font: 400 36px/1 Georgia, serif; }
.recent-list { display: flex; flex-direction: column; }
.recent-item { min-height: 68px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); }
.recent-item img { width: 48px; height: 48px; object-fit: cover; }
.recent-item div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.recent-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.recent-item small { color: var(--muted); font-size: 10px; }
.status { min-height: 23px; font-size: 8px; }
.status-pending { color: #d69e2e; }
.status-approved { color: var(--success); }
.status-rejected { color: var(--danger); }
.panel-empty { color: var(--muted); font-size: 13px; padding: 30px 0; }

.admin-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.admin-photo-card { background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.admin-photo-image { width: 100%; aspect-ratio: 4/3; display: block; padding: 0; border: 0; background: #050505; cursor: zoom-in; overflow: hidden; }
.admin-photo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.admin-photo-image:hover img { transform: scale(1.03); }
.admin-photo-body { padding: 17px; }
.photo-meta { display: flex; flex-direction: column; gap: 5px; }
.photo-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.photo-meta span { color: var(--muted); font-size: 10px; }
.photo-meta .reason { margin-top: 5px; padding: 8px; background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); line-height: 1.4; }
.photo-actions { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.reject-form { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.reject-form input { min-width: 0; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 10px; font-size: 11px; }
.admin-empty { background: var(--surface); }
.users-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; align-items: start; }
.users-list { display: flex; flex-direction: column; }
.user-row { min-height: 76px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.user-avatar { width: 44px; height: 44px; display: grid; place-items: center; background: var(--contrast); color: var(--contrast-text); font: 400 20px Georgia, serif; }
.user-row div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.user-row strong { font-size: 13px; }
.user-row small, .user-date { color: var(--muted); font-size: 10px; }
.create-user-panel { position: sticky; top: 100px; }
.error-page { min-height: calc(100vh - 306px); border: 0; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-columns, .users-layout { grid-template-columns: 1fr; }
    .create-user-panel { position: static; }
    .admin-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 800px) {
    .public-header { height: 72px; padding: 0 16px; }
    .public-nav { gap: 14px; }
    .public-nav a { font-size: 10px; }
    .brand-copy { display: none; }
    .theme-toggle { width: 36px; height: 36px; }
    .hero { min-height: 550px; padding-top: 100px; }
    .hero::after { bottom: 0; }
    .photo-grid { columns: 2; gap: 10px; }
    .photo-card { margin-bottom: 10px; }
    .upload-page { grid-template-columns: 1fr; }
    .upload-intro { position: static; }
    .dropzone { min-height: 360px; }
    .public-footer { align-items: flex-start; flex-direction: column; }
    .admin-frame { grid-template-columns: 1fr; }
    .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; overflow-x: auto; }
    .admin-sidebar nav { position: static; flex-direction: row; min-width: max-content; }
    .admin-link { padding: 10px 12px; }
    .admin-gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 54px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
    .gallery-section { padding-top: 70px; }
    .section-heading, .admin-heading { align-items: flex-start; flex-direction: column; }
    .section-heading p { display: none; }
    .photo-grid { columns: 1; }
    .photo-overlay { opacity: 1; }
    .upload-form { padding: 16px; }
    .dropzone { min-height: 300px; }
    .lightbox { padding: 25px 10px; }
    .admin-topbar { padding: 0 14px; }
    .admin-content { padding: 28px 14px; }
    .stats-grid, .dashboard-columns, .admin-gallery-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 150px; }
    .traffic-grid { grid-template-columns: 1fr; }
    .user-row { grid-template-columns: 44px minmax(0,1fr); }
    .user-date { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Public 2026 visual system */
.public-header {
    height: 76px;
    margin: 14px clamp(14px, 3vw, 42px) 0;
    padding: 0 clamp(16px, 2.5vw, 30px);
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: 0 12px 40px rgba(60, 55, 105, .08);
    backdrop-filter: blur(22px) saturate(150%);
}
.public-header .brand-mark,
.public-footer .brand-mark {
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5 48%, #06b6d4);
    box-shadow: 0 8px 22px rgba(99, 102, 241, .3);
}
.public-nav a {
    position: relative;
    padding: 10px 3px;
    font-size: 11px;
    letter-spacing: .1em;
}
.public-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    transition: right .25s ease;
}
.public-nav a:hover::after,
.public-nav a.active::after { right: 0; }
.public-header .theme-toggle {
    border: 0;
    background: var(--surface-2);
}

.hero {
    min-height: 760px;
    margin-top: -90px;
    padding: 190px clamp(22px, 7vw, 110px) 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
    border: 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 6% 20%, rgba(224, 231, 255, .9), transparent 28%),
        radial-gradient(circle at 92% 70%, rgba(207, 250, 254, .78), transparent 27%),
        var(--bg);
}
:root[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 6% 20%, rgba(76, 29, 149, .26), transparent 30%),
        radial-gradient(circle at 92% 70%, rgba(8, 145, 178, .19), transparent 27%),
        var(--bg);
}
.hero::after { display: none; }
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .45;
    background-image:
        linear-gradient(color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 70%, transparent);
}
.hero-aurora, .upload-aurora {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}
.hero-aurora-one {
    width: 500px;
    height: 500px;
    top: 80px;
    right: 18%;
    background: radial-gradient(circle, rgba(196, 181, 253, .58), transparent 68%);
}
.hero-aurora-two {
    width: 420px;
    height: 420px;
    left: 20%;
    bottom: -150px;
    background: radial-gradient(circle, rgba(103, 232, 249, .34), transparent 68%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid rgba(124, 58, 237, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .64);
    color: #6d28d9;
    box-shadow: 0 8px 30px rgba(99, 102, 241, .08);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
:root[data-theme="dark"] .hero-badge { background: rgba(25, 25, 39, .72); color: #c4b5fd; }
.badge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 0 5px rgba(139, 92, 246, .12);
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse { 50% { box-shadow: 0 0 0 9px rgba(139, 92, 246, 0); } }
.hero h1 {
    max-width: 800px;
    margin: 28px 0 25px;
    font: 700 clamp(58px, 7.7vw, 118px)/.9 Arial, Helvetica, sans-serif;
    letter-spacing: -.075em;
}
.hero h1 span,
.section-heading h2 span,
.upload-intro h1 span {
    color: transparent;
    background: linear-gradient(105deg, #7c3aed 5%, #4f46e5 48%, #0891b2 92%);
    background-clip: text;
    -webkit-background-clip: text;
    font-style: normal;
}
.hero > p { display: none; }
.hero-content > p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.75;
}
.hero-actions { margin-top: 34px; gap: 25px; }
.btn-gradient {
    min-height: 54px;
    gap: 16px;
    padding: 0 27px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(110deg, #7c3aed, #4f46e5 54%, #0891b2);
    box-shadow: 0 14px 32px rgba(79, 70, 229, .27);
}
.btn-gradient:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(79, 70, 229, .34);
}
.btn-gradient span { font-size: 18px; }
.hero-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.hero-gallery-link:hover { color: var(--text); }
.hero-stats {
    display: flex;
    gap: clamp(24px, 4vw, 58px);
    margin-top: 54px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 5px; }
.hero-stats strong { font-size: 22px; letter-spacing: -.03em; }
.hero-stats span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-visual {
    min-height: 530px;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1200px;
}
.memory-card {
    position: absolute;
    width: min(390px, 80%);
    aspect-ratio: .78;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(58, 48, 110, .2);
}
.memory-card-back {
    transform: translate(65px, -35px) rotate(9deg);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: rgba(255, 255, 255, .75);
    background: linear-gradient(145deg, #22d3ee, #6366f1 52%, #a855f7);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.memory-card-main {
    transform: translate(-25px, 15px) rotate(-5deg);
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.35), transparent 19%),
        linear-gradient(145deg, #312e81, #6d28d9 52%, #db2777);
}
.memory-card-main::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.42) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(130deg, #000, transparent 63%);
}
.memory-card-main > * { position: relative; z-index: 1; }
.memory-year { align-self: flex-end; font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.memory-card-main small { display: block; margin-bottom: 11px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.memory-card-main strong { font-size: clamp(31px, 3vw, 46px); line-height: .98; letter-spacing: -.05em; }
.floating-note {
    position: absolute;
    right: -10px;
    bottom: 70px;
    z-index: 3;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: 0 16px 35px rgba(50, 44, 95, .15);
    backdrop-filter: blur(15px);
    font-size: 11px;
    font-weight: 700;
    transform: rotate(3deg);
}

.gallery-section {
    position: relative;
    padding: 115px clamp(18px, 5vw, 74px) 140px;
    background: var(--surface);
}
.section-heading { align-items: flex-end; max-width: 1500px; margin: 0 auto 55px; }
.section-heading h2 {
    font: 700 clamp(44px, 6vw, 82px)/.95 Arial, Helvetica, sans-serif;
    letter-spacing: -.065em;
}
.section-heading p { max-width: 290px; line-height: 1.6; }
.photo-grid { max-width: 1500px; margin: 0 auto; columns: 3; column-gap: 20px; }
.photo-card {
    margin-bottom: 20px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(45, 43, 75, .07);
}
.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: inherit;
    pointer-events: none;
}
.photo-card img { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.photo-card:hover img { transform: scale(1.045); filter: saturate(1.08); }
.photo-overlay { padding: 70px 22px 20px; align-items: center; }
.photo-overlay > span { display: flex; flex-direction: column; gap: 4px; }
.photo-overlay strong { font-size: 13px; }
.photo-overlay small { color: rgba(255,255,255,.72); }
.photo-overlay i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    font-style: normal;
}
.empty-state {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0, rgba(196,181,253,.28), transparent 36%),
        var(--bg);
}
.empty-icon { color: #7c3aed; font-size: 54px; }

.upload-page {
    max-width: none;
    min-height: calc(100vh - 90px);
    position: relative;
    isolation: isolate;
    margin-top: -90px;
    padding: 190px clamp(20px, 7vw, 110px) 120px;
    grid-template-columns: minmax(300px, .85fr) minmax(460px, 1.15fr);
    gap: clamp(50px, 8vw, 125px);
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 28%, rgba(224,231,255,.9), transparent 26%),
        radial-gradient(circle at 95% 80%, rgba(207,250,254,.72), transparent 24%),
        var(--bg);
}
:root[data-theme="dark"] .upload-page {
    background:
        radial-gradient(circle at 5% 28%, rgba(76,29,149,.25), transparent 28%),
        radial-gradient(circle at 95% 80%, rgba(8,145,178,.18), transparent 24%),
        var(--bg);
}
.upload-aurora-one { width: 500px; height: 500px; top: 5%; left: 25%; background: radial-gradient(circle, rgba(196,181,253,.3), transparent 68%); }
.upload-aurora-two { width: 430px; height: 430px; right: -10%; bottom: -10%; background: radial-gradient(circle, rgba(103,232,249,.25), transparent 68%); }
.upload-intro { top: 145px; }
.upload-intro h1 {
    margin: 28px 0 25px;
    font: 700 clamp(52px, 6vw, 88px)/.92 Arial, Helvetica, sans-serif;
    letter-spacing: -.07em;
}
.upload-intro > p { max-width: 560px; font-size: 16px; line-height: 1.75; }
.upload-steps { margin-top: 46px; display: flex; flex-direction: column; }
.upload-step {
    min-height: 76px;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    align-items: center;
    position: relative;
}
.upload-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 62px;
    width: 1px;
    height: 28px;
    background: var(--line);
}
.upload-step > strong {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    color: var(--muted);
    font-size: 10px;
}
.upload-step.active > strong {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 10px 25px rgba(99,102,241,.25);
}
.upload-step > span { display: flex; flex-direction: column; gap: 5px; }
.upload-step b { font-size: 13px; }
.upload-step small { color: var(--muted); font-size: 11px; }
.upload-form {
    padding: clamp(22px, 3.5vw, 42px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 30px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 30px 80px rgba(53, 48, 100, .14);
    backdrop-filter: blur(22px) saturate(140%);
}
:root[data-theme="dark"] .upload-form { border-color: var(--line); }
.upload-form-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.upload-form-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
}
.upload-form-heading > div { display: flex; flex-direction: column; gap: 4px; }
.upload-form-heading strong { font-size: 16px; }
.upload-form-heading small { color: var(--muted); font-size: 11px; }
.dropzone {
    min-height: 390px;
    border: 1.5px dashed #c4b5fd;
    border-radius: 23px;
    background:
        radial-gradient(circle at 50% 30%, rgba(221,214,254,.4), transparent 32%),
        color-mix(in srgb, var(--bg) 76%, transparent);
}
.dropzone:hover, .dropzone.is-dragging {
    border-color: #7c3aed;
    background: color-mix(in srgb, #ede9fe 48%, var(--surface));
}
:root[data-theme="dark"] .dropzone:hover,
:root[data-theme="dark"] .dropzone.is-dragging { background: #19152d; }
.dropzone-plus {
    width: 72px;
    height: 72px;
    margin-bottom: 15px;
    border: 1px solid rgba(124,58,237,.16);
    color: #6d28d9;
    background: rgba(255,255,255,.82);
    box-shadow: 0 14px 30px rgba(99,102,241,.14);
}
.dropzone-copy strong { font: 700 21px Arial, sans-serif; letter-spacing: -.02em; }
.dropzone-copy small { font-size: 12px; }
.dropzone-copy small b { color: #6d28d9; }
.file-limits {
    margin-top: 18px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}
.dropzone-preview { border-radius: inherit; overflow: hidden; }
.field input { border-radius: 13px; background: color-mix(in srgb, var(--bg) 68%, transparent); }
.consent input { accent-color: #6d28d9; }
.upload-form .btn-gradient { margin-top: 2px; }
.upload-security { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 9px; line-height: 1.5; }
.upload-security span { color: var(--success); font-weight: 800; }

.public-footer {
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 100px clamp(20px, 6vw, 90px) 35px;
    overflow: hidden;
    color: #fff;
    border: 0;
    background:
        radial-gradient(circle at 15% 110%, rgba(6,182,212,.45), transparent 30%),
        radial-gradient(circle at 90% -10%, rgba(217,70,239,.38), transparent 35%),
        linear-gradient(135deg, #11112a, #221449 48%, #102c48);
}
.footer-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: 25%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(124,58,237,.2);
    filter: blur(80px);
}
.footer-top { position: relative; z-index: 1; text-align: center; }
.footer-kicker { color: #c4b5fd; font-size: 10px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.footer-typewriter {
    width: max-content;
    max-width: 100%;
    margin: 28px auto 22px;
    font: 700 clamp(40px, 7.5vw, 108px)/1 Arial, sans-serif;
    letter-spacing: -.065em;
}
.footer-typewriter span {
    width: 23ch;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .06em solid #a5b4fc;
    animation: footer-typing 5.5s steps(23, end) infinite alternate, footer-caret .75s step-end infinite;
}
@keyframes footer-typing {
    0%, 10% { width: 0; }
    65%, 100% { width: 23ch; }
}
@keyframes footer-caret { 50% { border-color: transparent; } }
.footer-message { color: rgba(255,255,255,.62); font-size: clamp(13px, 1.5vw, 17px); }
.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-top: 35px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.public-footer .brand-copy small, .public-footer .footer-meta { color: rgba(255,255,255,.5); }

@media (max-width: 1050px) {
    .hero { grid-template-columns: 1fr .75fr; }
    .hero-visual { min-height: 440px; }
    .memory-card { width: min(310px, 82%); }
    .upload-page { grid-template-columns: .8fr 1.2fr; gap: 45px; }
}

@media (max-width: 800px) {
    .public-header { height: 66px; margin: 10px 10px 0; border-radius: 17px; }
    .hero {
        min-height: auto;
        margin-top: -76px;
        padding: 155px 20px 80px;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-badge { margin-inline: auto; }
    .hero-content > p { margin-inline: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-visual { min-height: 480px; }
    .floating-note { right: 8%; }
    .upload-page {
        margin-top: -76px;
        padding: 145px 20px 80px;
        grid-template-columns: 1fr;
    }
    .upload-intro { position: static; text-align: center; }
    .upload-intro > p { margin-inline: auto; }
    .upload-steps { max-width: 470px; margin-inline: auto; text-align: left; }
    .photo-grid { columns: 2; }
}

@media (max-width: 560px) {
    .public-nav { gap: 10px; }
    .public-nav a { font-size: 9px; }
    .hero h1 { font-size: clamp(49px, 15vw, 67px); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { gap: 20px; margin-top: 40px; }
    .hero-stats strong { font-size: 18px; }
    .hero-stats span { max-width: 75px; font-size: 8px; line-height: 1.4; }
    .hero-visual { min-height: 400px; }
    .memory-card { width: 245px; border-radius: 24px; }
    .memory-card-back { transform: translate(35px, -20px) rotate(9deg); }
    .memory-card-main { transform: translate(-17px, 15px) rotate(-5deg); padding: 25px; }
    .floating-note { right: 0; bottom: 35px; }
    .gallery-section { padding: 85px 13px 100px; }
    .section-heading { padding: 0 7px; }
    .section-heading h2 { font-size: 48px; }
    .photo-grid { columns: 1; }
    .photo-card { border-radius: 18px; }
    .upload-intro h1 { font-size: 52px; }
    .upload-form { padding: 17px; border-radius: 22px; }
    .dropzone { min-height: 300px; }
    .public-footer { min-height: 420px; padding: 80px 20px 28px; }
    .footer-typewriter { font-size: clamp(31px, 10.5vw, 48px); }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .badge-pulse, .footer-typewriter span { animation: none !important; }
    .footer-typewriter span { width: auto; border-right: 0; }
}

/* Media, motion and modern admin */
.reveal-up, .reveal-scale {
    opacity: 0;
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-up { transform: translateY(28px); }
.reveal-scale { transform: scale(.96); }
.reveal-up.is-visible, .reveal-scale.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { --reveal-delay: 100ms; }
.reveal-delay-2 { --reveal-delay: 180ms; }
.reveal-delay-3 { --reveal-delay: 260ms; }

.photo-card video, .admin-photo-image video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.photo-card video { min-height: 280px; max-height: 620px; }
.video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    color: #fff;
    background: rgba(18,18,35,.42);
    box-shadow: 0 12px 35px rgba(0,0,0,.24);
    backdrop-filter: blur(12px);
    transform: translate(-50%, -50%);
    transition: transform .25s ease, background .25s ease;
}
.photo-card:hover .video-play, .admin-photo-image:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(99,102,241,.82); }
.media-kind, .admin-media-type {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    color: #fff;
    background: rgba(15,15,30,.4);
    backdrop-filter: blur(10px);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.lightbox video { max-width: 92vw; max-height: 82vh; border-radius: 12px; background: #000; }
.lightbox figure { margin: 0; }

.selection-count {
    margin-left: auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #6d28d9;
    background: rgba(124,58,237,.1);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}
.dropzone.has-file { min-height: 210px; }
.media-preview-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.media-preview-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-2);
    animation: preview-in .35s ease both;
}
@keyframes preview-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.media-preview-item img, .media-preview-item video { width: 100%; aspect-ratio: 1.25; display: block; object-fit: cover; background: #0b0b12; }
.media-preview-item > span { display: flex; flex-direction: column; gap: 3px; padding: 9px; }
.media-preview-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.media-preview-item small { color: var(--muted); font-size: 8px; }
.button-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loader-spin .7s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }

.admin-topbar {
    height: 76px;
    padding: 0 26px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(43,39,80,.05);
}
.admin-topbar .brand-mark {
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5, #06b6d4);
    box-shadow: 0 8px 20px rgba(99,102,241,.25);
}
.admin-frame { grid-template-columns: 248px minmax(0, 1fr); background: #f7f8fc; }
:root[data-theme="dark"] .admin-frame { background: var(--bg); }
.admin-sidebar {
    padding: 25px 16px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
}
.admin-sidebar nav { gap: 7px; }
.admin-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 11px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.admin-link:hover { transform: translateX(3px); }
.admin-link.active {
    color: #5b21b6;
    background: linear-gradient(110deg, rgba(124,58,237,.12), rgba(6,182,212,.07));
    box-shadow: inset 3px 0 #7c3aed;
}
:root[data-theme="dark"] .admin-link.active { color: #c4b5fd; }
.admin-nav-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 82%, transparent);
    font-style: normal;
    font-size: 14px;
}
.admin-link.active .admin-nav-icon { color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.admin-content { padding: clamp(28px, 4vw, 58px); }
.admin-heading-modern { align-items: center; }
.admin-heading-modern h1 { font: 700 clamp(38px, 5vw, 64px)/1 Arial, sans-serif; letter-spacing: -.055em; }
.admin-heading-modern p { margin: 10px 0 0; }
.admin-heading-modern .date-chip { min-height: 38px; padding: 0 15px; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(44,40,80,.06); }
.admin-heading-modern .date-chip b { margin-right: 5px; color: var(--text); font-size: 12px; }
.admin-stats-modern { gap: 16px; }
.admin-stats-modern .stat-card {
    min-height: 175px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(47,43,85,.06);
}
.admin-stats-modern .stat-card-main {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #312e81, #6d28d9 58%, #0891b2);
    box-shadow: 0 18px 42px rgba(91,33,182,.24);
}
.admin-stats-modern .stat-card-main::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -65px;
    top: -75px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(255,255,255,.05), 0 0 0 64px rgba(255,255,255,.03);
}
.admin-stats-modern .stat-card-main i { position: absolute; right: 24px; bottom: 20px; color: rgba(255,255,255,.35); font-size: 32px; font-style: normal; }
.dashboard-columns { gap: 16px; margin-top: 16px; }
.panel { border-radius: 20px; box-shadow: 0 14px 35px rgba(47,43,85,.055); }
.panel-chip { padding: 6px 9px; border-radius: 999px; color: #059669; background: rgba(16,185,129,.1); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.traffic-grid div { border-color: var(--line); background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.traffic-grid div:first-child { border-radius: 13px 0 0 0; }
.traffic-grid div:nth-child(2) { border-radius: 0 13px 0 0; }
.traffic-grid div:nth-child(3) { border-radius: 0 0 0 13px; }
.traffic-grid div:last-child { border-radius: 0 0 13px 0; }
.recent-thumb { width: 48px; height: 48px; position: relative; display: block; overflow: hidden; border-radius: 12px; background: #0b0b12; }
.recent-thumb img, .recent-thumb video { width: 100%; height: 100%; object-fit: cover; }
.recent-thumb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.22); font-size: 10px; font-style: normal; }
.recent-item { grid-template-columns: 48px minmax(0,1fr) auto; }
.admin-gallery-grid { gap: 18px; }
.admin-photo-card { overflow: hidden; border-radius: 19px; box-shadow: 0 14px 34px rgba(47,43,85,.07); transition: transform .25s ease, box-shadow .25s ease; }
.admin-photo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(47,43,85,.12); }
.admin-photo-image { position: relative; }
.admin-media-type { top: 12px; left: 12px; }
.photo-meta .filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-actions .btn { border-radius: 10px; }
.btn-approve { border: 0; color: #fff; background: linear-gradient(110deg, #059669, #10b981); }
.reject-form input { border-radius: 9px; }
.admin-empty { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 14px 35px rgba(47,43,85,.06); }
.admin-empty > span { color: #7c3aed; font-size: 54px; }
.login-panel { border-radius: 24px; }
.users-layout .panel, .create-user-panel { border-radius: 20px; }

@media (max-width: 800px) {
    .admin-frame { grid-template-columns: 1fr; }
    .admin-sidebar { padding: 9px; }
    .admin-link { min-height: 42px; }
    .admin-nav-icon { display: none; }
    .media-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .upload-form-heading { align-items: flex-start; }
    .selection-count { margin-left: 0; }
    .media-preview-grid { grid-template-columns: 1fr 1fr; }
    .admin-content { padding: 26px 12px; }
    .admin-heading-modern { align-items: flex-start; }
    .admin-stats-modern .stat-card { min-height: 145px; }
    .traffic-grid div { border-radius: 12px !important; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-scale { opacity: 1; transform: none; }
    .button-loader { animation: none; }
}
