/**
 * Mural Vivo de Eventos - Design System & Estilos Globais
 * Estilo premium, minimalista, luxuoso e focado no mobile (mobile-first).
 */

/* Variáveis do Design System */
:root {
    --primary: #f2ca50;
    --primary-container: #d4af37;
    --on-primary: #1e1600;
    --on-primary-container: #554300;
    --background: #131313;
    --surface: #131313;
    --surface-container: #201f1f;
    --surface-container-high: #2a2a2a;
    --surface-container-lowest: #0e0e0e;
    --on-surface: #e5e2e1;
    --on-surface-variant: #d0c5af;
    --outline: #4d4635;
    --error: #ffb4ab;
    --error-container: #93000a;
    --on-error-container: #ffdad6;
    
    --font-headline: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --container-margin: 24px;
    --gutter: 16px;
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-full: 9999px;
}

/* Reset Básico & Acessibilidade */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    min-height: 100dvh;
}

.hidden { display: none !important; }

/* Tipografia */
h1, h2, h3, h4, .font-headline {
    font-family: var(--font-headline);
    color: var(--on-surface);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--on-surface-variant) !important;
}

.text-italic {
    font-style: italic;
    font-weight: 400;
}

/* Header & Barra Superior */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 50;
    background: rgba(19, 19, 19, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-margin);
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.brand-icon {
    font-variation-settings: 'FILL' 1;
}

.photo-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--on-surface-variant);
    letter-spacing: 0.05em;
}

/* Live Mosaic Background (Mosaico Emocional) */
.live-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    filter: blur(2px);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    overflow: hidden;
    pointer-events: none;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    height: 100%;
}

.mosaic-item {
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    filter: grayscale(15%) brightness(0.65);
    transition: transform 0.8s ease, filter 2s ease;
}

/* Efeito de Vidro (Glassmorphism) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: var(--gutter);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 380px;
}

.btn-primary {
    background: var(--primary-container);
    color: var(--on-primary);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
}

.btn-primary:active {
    transform: scale(0.96);
    background: var(--primary);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-glass:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: var(--error-container);
    color: var(--on-error-container);
}

.btn-danger:active {
    transform: scale(0.96);
}

.fab {
    position: fixed;
    bottom: 96px;
    right: 24px;
    height: 56px;
    padding: 0 24px;
    background: var(--primary-container);
    color: var(--on-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 40;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.fab:active {
    transform: scale(0.95);
}

/* Modais & Overlays (Upload Mobile) */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 32px 24px 24px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.active .modal-sheet {
    transform: translateY(0);
}

.modal-indicator {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    margin: 0 auto 24px auto;
}

.modal-option-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-option-btn:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.modal-option-btn.primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
}

.modal-option-btn.primary:active {
    background: var(--primary-container);
}

.modal-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.modal-option-icon {
    font-size: 28px !important;
    background: rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-option-btn.primary .modal-option-icon {
    background: rgba(0, 0, 0, 0.08);
}

/* Progresso de Upload */
.progress-container {
    width: 100%;
    margin-top: 16px;
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

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

/* Navegação Inferior (Mobile Only) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(19, 19, 19, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px 32px 16px;
    border-radius: 1.5rem 1.5rem 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--on-surface-variant);
    gap: 4px;
    transition: color 0.2s ease;
}

.nav-item.active {
    color: var(--on-primary-container);
    background: rgba(212, 175, 55, 0.15);
    padding: 6px 18px;
    border-radius: var(--border-radius-full);
}

.nav-item .material-symbols-outlined {
    font-size: 22px;
}

/* Canvas de Conteúdo Principal */
main.public-canvas {
    position: relative;
    z-index: 10;
    min-height: 100dvh;
    padding: 96px var(--container-margin) 160px var(--container-margin);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-box {
    margin-bottom: 32px;
    max-width: 400px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-full);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 38px;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 15px;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* Atividades Flutuantes (Prova Social) */
.activity-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    margin-top: 24px;
}

.activity-card:active {
    background: rgba(255, 255, 255, 0.08);
}

.activity-avatars {
    display: flex;
    margin-left: 8px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    border: 2px solid var(--background);
    background-size: cover;
    background-position: center;
    margin-left: -10px;
}

.activity-details {
    text-align: left;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
}

.activity-desc {
    font-size: 12px;
    color: var(--on-surface-variant);
}

/* Área Administrativa */
.admin-login-container {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--container-margin);
}

.admin-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface-container);
    border-radius: 1.5rem;
    border: 1px solid var(--outline);
    padding: 32px var(--container-margin);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--outline);
    border-radius: 0.75rem;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 14px 16px;
    resize: vertical;
    font-family: var(--font-body);
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-main {
    padding: 80px var(--container-margin) 100px var(--container-margin) !important;
}

.brand h1 {
    white-space: nowrap !important;
}

/* Grid de Fotos e Cards Administrativos */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-header span {
    font-size: 24px;
}

.stat-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
}

.stat-value {
    font-size: 32px;
    font-family: var(--font-headline);
}

.stat-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-top: 10px;
}

.stat-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--border-radius-full);
}

/* Moderação de Fotos */
.moderation-section {
    margin-top: 40px;
}

.section-title-box {
    margin-bottom: 24px;
    text-align: left;
}

.section-subtitle {
    font-size: 14px;
    color: var(--on-surface-variant);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.photo-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--surface-container-lowest);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    object-fit: cover;
}

.photo-actions {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-actions, .photo-card:active .photo-actions {
    opacity: 1;
}

.photo-action-btn-group {
    display: flex;
    width: 100%;
    gap: 8px;
}

.photo-btn {
    flex: 1;
    height: 38px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-btn-approve {
    background: var(--primary);
    color: var(--on-primary);
}

.photo-btn-delete {
    background: var(--error-container);
    color: var(--on-error-container);
    max-width: 44px;
}

.photo-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: var(--border-radius-full);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tabelas e Formulários Administrativos */
.admin-table-container {
    background: var(--surface-container);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: var(--surface-container-high);
    padding: 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
    border-bottom: 1px solid var(--outline);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--outline);
    font-size: 14px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-actions-cell {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 500;
}

.badge-success {
    background: rgba(46, 125, 50, 0.15);
    color: #81c784;
}

.badge-warning {
    background: rgba(239, 108, 0, 0.15);
    color: #ffb74d;
}

/* Animações Auxiliares */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease infinite;
}

@keyframes pulseGlow {
    0% { filter: grayscale(15%) brightness(0.65); }
    50% { filter: grayscale(0%) brightness(0.9); }
    100% { filter: grayscale(15%) brightness(0.65); }
}

/* Notificação flutuante de toast */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 200;
    padding: 12px 24px;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: var(--primary);
    color: var(--on-primary);
}

.toast-error {
    background: var(--error-container);
    color: var(--on-error-container);
}

/* QR Code Modal Custom */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 4px solid #fff;
    background: #fff;
}

/* ==========================================================================
   Classes Utilitárias (Inspiradas no Tailwind para compatibilidade com o HTML)
   ========================================================================== */
.w-full { width: 100% !important; }
.max-w-md { max-width: 440px !important; }
.max-w-sm { max-width: 360px !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.text-center { text-align: center !important; }

/* Margens Globais */
.mt-8 { margin-top: 32px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mr-8 { margin-right: 32px !important; }
.ml-auto { margin-left: auto !important; }

/* Margens específicas do grid */
.mt-stack-xl { margin-top: 64px !important; }
.mt-stack-lg { margin-top: 32px !important; }
.mb-stack-lg { margin-bottom: 32px !important; }
.mb-stack-xl { margin-bottom: 64px !important; }

/* Paddings Globais */
.pt-4 { padding-top: 16px !important; }
.pt-20 { padding-top: 80px !important; }
.pt-24 { padding-top: 96px !important; }
.pt-32 { padding-top: 128px !important; }
.pb-8 { padding-bottom: 32px !important; }
.pb-32 { padding-bottom: 128px !important; }
.pb-40 { padding-bottom: 160px !important; }

/* Grid e Gaps */
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.gap-stack-sm { gap: 8px !important; }
.gap-stack-md { gap: 16px !important; }
.gap-gutter { gap: 16px !important; }

/* Espaçamento interno entre elementos (space-y e space-x) */
.space-y-4 > * + * { margin-top: 16px !important; }
.space-y-6 > * + * { margin-top: 24px !important; }
.space-y-stack-md > * + * { margin-top: 16px !important; }
.space-x-3 > * + * { margin-left: 12px !important; }

/* Evitar quebra de linha do badge de usuário */
.photo-badge {
    white-space: nowrap !important;
}

/* Suporte responsivo para o menu de botões admin */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row !important; }
    .sm\:w-auto { width: auto !important; }
}

/* Galeria de Memórias */
.gallery-overlay {
    align-items: center;
}

.gallery-container {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.active .gallery-container {
    transform: scale(1);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.gallery-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gallery-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: background 0.2s;
}

.gallery-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
    padding: 4px;
}

.gallery-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.gallery-loading,
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--on-surface-variant, #999);
    font-size: 14px;
}

/* Lightbox */
.lightbox-overlay {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#lightbox-overlay.overlay {
    align-items: center;
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-close {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-image-wrapper.swipe-transition {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#lightbox-img {
    max-width: 100%;
    border-radius: 1rem;
    object-fit: contain;
    pointer-events: none;
}

.lightbox-meta {
    width: 100%;
    text-align: center;
    padding: 0 16px;
}

.lightbox-author {
    font-size: 13px;
    color: #ccc;
}

.lightbox-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.lightbox-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
}

.lightbox-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-action-btn .like-icon {
    transition: transform 0.2s;
}

.lightbox-action-btn .like-icon.liked {
    font-variation-settings: 'FILL' 1;
    color: #ff4b6a;
}

.lightbox-action-label {
    font-size: 13px;
    color: #ddd;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.lightbox-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-counter {
    font-size: 14px;
    color: #ccc;
    min-width: 60px;
    text-align: center;
}

/* ==========================================================================
   Sidebar Administrativa & Layout Responsivo Desktop
   ========================================================================== */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 256px;
    background: rgba(19, 19, 19, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: none; /* Oculto por padrão no mobile */
    flex-direction: column;
    z-index: 60;
    padding: 32px 24px;
}

.admin-sidebar nav {
    margin-top: 24px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-radius: var(--border-radius-full);
    color: var(--on-surface-variant);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.admin-sidebar nav a.active {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary);
}

@media (min-width: 768px) {
    .admin-sidebar {
        display: flex; /* Mostrar no desktop */
    }
    
    .admin-main {
        margin-left: 256px !important; /* Deslocar conteúdo principal */
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    .admin-mobile-menu {
        display: none !important; /* Ocultar menu móvel no desktop */
    }
}

/* ==========================================================================
   Bottom Navigation Bar para Mobile (Administrador/Dono Logados)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(14, 14, 14, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 16px 14px 16px; /* padding extra embaixo para barra do iOS */
    z-index: 100;
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important; /* Ocultar no desktop */
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--on-secondary-container);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mobile-bottom-nav .nav-item span.material-symbols-outlined {
    font-size: 24px;
}

.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
}

.mobile-bottom-nav .nav-item-panel {
    background: var(--primary-container);
    color: var(--on-primary-container) !important;
    border-radius: 24px;
    max-width: 80px;
    height: 52px;
    margin-bottom: 6px; /* elevar um pouquinho */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-bottom-nav .nav-item-panel:active {
    transform: scale(0.95);
}

.mobile-bottom-nav .nav-item-panel span.material-symbols-outlined {
    color: var(--on-primary-container);
}

/* Espaço extra na parte inferior do canvas do evento para não cobrir o conteúdo */
.event-page-body {
    padding-bottom: 96px !important;
}




