/* =================================================================
   NÓS NA BALADA — style.css
   Tema: Dark neon, mobile-first
   ================================================================= */

:root {
    --bg: #0a0612;
    --surface: #14101f;
    --surface-2: #1d1730;
    --border: #2c2445;

    --purple: #b14eff;
    --pink: #ff2e88;
    --blue: #2ee6ff;
    --yellow: #ffd23f;

    --text: #f2eefc;
    --text-muted: #a89bc9;

    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-glow: 0 0 24px rgba(177, 78, 255, 0.35);

    /* Faz o iOS/Safari renderizar os controles nativos (date picker,
       etc.) em modo escuro, evitando texto preto invisível sobre o
       fundo escuro do site. */
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 60% 40% at 15% 0%, rgba(177, 78, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 35% at 90% 15%, rgba(46, 230, 255, 0.12), transparent 60%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--pink); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 0;
}
.brand-mark.small { font-size: 1rem; }

.brand-dot { color: var(--pink); }

.mute-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
}
.mute-toggle[aria-pressed="true"] { color: var(--blue); border-color: var(--blue); }

/* ----------------------------------------------------------------
   Strobo overlay (loading flicker) — sutil, respeitando acessibilidade
   ---------------------------------------------------------------- */
#strobo-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}
#strobo-overlay.flash {
    animation: strobo-flash 220ms ease-out;
}
@keyframes strobo-flash {
    0% { opacity: 0; }
    15% { opacity: 0.55; }
    100% { opacity: 0; }
}

/* ----------------------------------------------------------------
   Countdown da próxima balada
   ---------------------------------------------------------------- */
.countdown-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(177,78,255,0.18), rgba(46,230,255,0.12));
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.countdown-label strong { color: var(--pink); }
.countdown-timer {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.03em;
}

/* ----------------------------------------------------------------
   Hero + busca
   ---------------------------------------------------------------- */
.hero { padding: 40px 20px 24px; text-align: center; }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.6rem);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.15;
}
.glow-text {
    color: var(--pink);
    text-shadow: 0 0 18px rgba(255, 46, 136, 0.6);
}

.hero-sub {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 24px;
    font-size: 0.95rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}
.search-form input,
.search-form select {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 16px; /* evita zoom automático ao focar em iOS */
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
}
.search-form input[type="date"] {
    min-height: 48px;
    line-height: normal;
    /* iOS Safari ignora largura/altura de input[type=date] se o
       appearance nativo não for normalizado — isso também deixava a
       área de toque desalinhada com a caixa visível, "roubando" o
       toque do botão Buscar logo abaixo. */
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
}
.search-form button[type="submit"] {
    position: relative;
    z-index: 1;
}
.search-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23a89bc9' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.search-form input:focus,
.search-form select:focus {
    outline: 2px solid var(--purple);
    outline-offset: 1px;
}

@media (min-width: 640px) {
    .search-form { flex-direction: row; flex-wrap: wrap; }
    .search-form input[type="search"] { flex: 1 1 100%; }
    .search-form select, .search-form input[type="date"] { flex: 1 1 auto; }
}

/* ----------------------------------------------------------------
   Botões
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 22px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(255, 46, 136, 0.5); }
.btn-primary:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

/* ----------------------------------------------------------------
   Divisor equalizador (assinatura visual)
   ---------------------------------------------------------------- */
.equalizer-divider {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 28px;
    margin: 8px auto 24px;
}
.equalizer-divider span {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--blue), var(--purple));
    animation: eq-bounce 1.1s ease-in-out infinite;
}
.equalizer-divider span:nth-child(1) { height: 8px; animation-delay: -1.0s; }
.equalizer-divider span:nth-child(2) { height: 20px; animation-delay: -0.8s; }
.equalizer-divider span:nth-child(3) { height: 12px; animation-delay: -0.6s; }
.equalizer-divider span:nth-child(4) { height: 26px; animation-delay: -0.4s; }
.equalizer-divider span:nth-child(5) { height: 14px; animation-delay: -0.2s; }
.equalizer-divider span:nth-child(6) { height: 22px; animation-delay: -0.1s; }
.equalizer-divider span:nth-child(7) { height: 10px; animation-delay: 0s; }
@keyframes eq-bounce {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ----------------------------------------------------------------
   Slider / Carrossel infinito e centralizado (reutilizável)
   ---------------------------------------------------------------- */
.slider-section {
    padding: 16px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.slider-section-feature {
    background: transparent;
    border-bottom: none;
    padding: 0 0 32px;
}
.slider-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 14px;
    padding: 0 16px;
}

.slider { position: relative; }
.slider-viewport {
    overflow: hidden;
    padding: 4px 0;
}
.slider-track {
    display: flex;
    position: relative;
    will-change: transform;
}
.slider-slide {
    flex: 0 0 auto;
    width: min(340px, 78vw);
    margin-right: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
    aspect-ratio: 350 / 180;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-slide.is-active { border-color: var(--purple); }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 6, 18, 0.65);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.slider-arrow-prev { left: 8px; }
.slider-arrow-next { right: 8px; }

@media (min-width: 700px) {
    .slider-arrow { display: flex; }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.slider-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.slider-dot.is-active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border-color: transparent;
}

/* O carrossel de anúncios do topo não exibe numeração/dots */
.slider-section-top .slider-dots { display: none; }

/* ----------------------------------------------------------------
   Últimos Eventos
   ---------------------------------------------------------------- */
.latest-events-section { padding: 0 16px 32px; }
.latest-events-section h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.latest-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 560px) { .latest-events-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .latest-events-grid { grid-template-columns: repeat(6, 1fr); } }

.latest-event-card {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.latest-event-card:hover {
    border-color: var(--glow, var(--purple));
    box-shadow: 0 0 22px color-mix(in srgb, var(--glow, var(--purple)) 45%, transparent);
    transform: translateY(-2px);
}
.latest-event-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.latest-event-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--surface-2);
}
.latest-event-info { padding: 8px 10px 10px; }
.latest-event-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.latest-event-meta { font-size: 0.7rem; color: var(--text-muted); margin: 0; }

/* ----------------------------------------------------------------
   Galeria
   ---------------------------------------------------------------- */
.gallery-section { padding: 0 16px 40px; }
.gallery-section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 14px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 560px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.photo-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.photo-card:hover {
    border-color: var(--glow, var(--purple));
    box-shadow: 0 0 22px color-mix(in srgb, var(--glow, var(--purple)) 55%, transparent);
    transform: translateY(-2px);
}
.photo-card:hover img { transform: scale(1.05); }

.photo-card-tag {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(10, 6, 18, 0.75);
    border: 1px solid var(--glow, var(--purple));
    color: var(--glow, var(--purple));
    backdrop-filter: blur(4px);
}

.flagra-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 210, 63, 0.15);
    border: 1px solid var(--yellow);
    color: var(--yellow);
}

.pagination {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 24px auto 0;
    font-weight: 600;
    color: var(--purple);
}

/* ----------------------------------------------------------------
   Recap / Minha Noite
   ---------------------------------------------------------------- */
.recap-section { padding: 0 16px 50px; }
.recap-section h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.recap-sub { color: var(--text-muted); font-size: 0.85rem; margin-top: -6px; }
.recap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 640px) { .recap-grid { grid-template-columns: repeat(6, 1fr); } }
.recap-grid a { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--border); }
.recap-grid img { width: 100%; height: 100%; object-fit: cover; }
.recap-empty { color: var(--text-muted); font-size: 0.85rem; grid-column: 1 / -1; }

/* ----------------------------------------------------------------
   Lightbox
   ---------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 3, 12, 0.92);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.lightbox-inner img { width: 100%; max-height: 60vh; object-fit: contain; background: #000; }
.lightbox-meta { padding: 18px 20px 22px; }
.lightbox-meta h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 4px; }
.lightbox-meta p { color: var(--text-muted); margin: 0 0 14px; font-size: 0.9rem; }
.lightbox-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    z-index: 5;
}

.reactions { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.reaction-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.reaction-btn:hover { border-color: var(--pink); }
.reaction-btn.bumped { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.lightbox-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.direct-link { font-size: 0.8rem; color: var(--blue); text-decoration: underline; }

/* ----------------------------------------------------------------
   Página individual da foto (foto.php)
   ---------------------------------------------------------------- */
.photo-page {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 16px 50px;
}
.photo-page-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glow, var(--border));
    box-shadow: 0 0 30px color-mix(in srgb, var(--glow, var(--purple)) 30%, transparent);
    margin-bottom: 20px;
}
.photo-page-media img { width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.photo-page-info h1 { font-family: var(--font-display); font-size: 1.4rem; margin: 4px 0 6px; }
.photo-meta { color: var(--text-muted); margin: 0 0 16px; }
.eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--glow, var(--purple));
    border: 1px solid var(--glow, var(--purple));
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

@media (min-width: 760px) {
    .photo-page { flex-direction: row; align-items: flex-start; gap: 30px; }
    .photo-page-media { flex: 1.2; margin-bottom: 0; }
    .photo-page-info { flex: 1; padding-top: 10px; }
}

/* ----------------------------------------------------------------
   Modal de download (com timer + anúncio)
   ---------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 3, 12, 0.92);
    backdrop-filter: blur(6px);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 380px;
    width: 100%;
    padding: 22px;
    text-align: center;
}
.modal-eyebrow { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 8px; }
.modal-box img { border-radius: var(--radius-sm); margin-bottom: 14px; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.timer-label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
#timerCount { color: var(--pink); font-weight: 700; }
.modal-close {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.08); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}
.footer-links a { color: var(--purple); }

/* ----------------------------------------------------------------
   Admin — login
   ---------------------------------------------------------------- */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
    display: block;
    color: var(--text);
    font-family: var(--font-body);
}
.login-box {
    max-width: 360px;
    margin: 10vh auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
}
.login-sub { color: var(--text-muted); margin-top: -6px; margin-bottom: 24px; }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-form label { font-size: 0.85rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.login-form input {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.95rem;
}
.back-link { display: block; margin-top: 18px; font-size: 0.85rem; color: var(--blue); }
.logout-link { color: var(--pink); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: rgba(255, 46, 136, 0.12); border: 1px solid var(--pink); color: var(--pink); }
.alert-success { background: rgba(46, 230, 255, 0.1); border: 1px solid var(--blue); color: var(--blue); }

/* ----------------------------------------------------------------
   Admin — shell / dashboard
   ---------------------------------------------------------------- */
.admin-shell { display: flex; flex-direction: column; min-height: 100vh; }
.admin-sidebar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}
.admin-user { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 14px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav a {
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.admin-nav a.active { border-color: var(--purple); color: var(--purple); background: rgba(177,78,255,0.08); }
.admin-main { padding: 20px 16px 60px; flex: 1; }
.admin-main h2 { font-family: var(--font-display); font-size: 1.2rem; }
.tab-sub, .tab-hint { color: var(--text-muted); font-size: 0.85rem; }

@media (min-width: 900px) {
    .admin-shell { flex-direction: row; }
    .admin-sidebar { width: 240px; flex-shrink: 0; border-right: 1px solid var(--border); border-bottom: none; min-height: 100vh; }
    .admin-nav { flex-direction: column; }
    .admin-main { padding: 32px 40px; }
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0 28px;
}
.admin-form label { font-size: 0.85rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.admin-form input, .admin-form select {
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.9rem;
}
.admin-form .form-row { display: flex; gap: 12px; flex-direction: row; }
.admin-form .form-row label { flex: 1; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.checkbox-label input { width: auto; }

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.admin-photo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
}
.admin-photo-card img { border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 6px; }
.admin-photo-card p { font-size: 0.75rem; color: var(--text-muted); margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { color: var(--text-muted); font-weight: 600; }
.qr-thumb { border-radius: 6px; background: #fff; padding: 2px; }

.logo-preview { max-width: 160px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: var(--surface); }

.position-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--purple);
    border: 1px solid var(--purple);
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 6px;
}
.position-form { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.position-form select {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}
.btn-danger { color: var(--pink); border-color: var(--pink); }
.btn-danger:hover { background: rgba(255, 46, 136, 0.1); }

.admin-form-inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; padding: 14px 20px; }
.admin-form-inline label { flex: 1; min-width: 200px; }
.tab-hint-link { font-size: 0.8rem; color: var(--purple); margin-left: 10px; }

.admin-photo-grid-manage { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.admin-photo-card-manage { text-align: left; }
.admin-photo-card-manage img { width: 100%; }
.admin-photo-code { font-size: 0.65rem; color: var(--text-muted); }
.admin-photo-edit-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.admin-photo-edit-form select {
    padding: 6px 8px;
    font-size: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}
.checkbox-label-sm { font-size: 0.75rem; }
