/* ============================================================
   WORKSPACE — Premium components for Eternize.app.br
   ============================================================ */

.image-fullscreen-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, .88);
}

.image-fullscreen-modal.active {
    display: flex;
}

.image-fullscreen-modal img {
    max-width: min(94vw, 1280px);
    max-height: 90vh;
    display: block;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

.close-fullscreen-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(8, 15, 32, .7);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

/* ── Loading screen ────────────────────────────────────────── */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    gap: 16px;
}
.loading-spinner-lg {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-subtle, rgba(255,255,255,.1));
    border-top-color: var(--accent, #a78bfa);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-subtle, rgba(255,255,255,.1));
    border-top-color: var(--accent, #a78bfa);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}
.loading-label {
    color: var(--text-muted, #9ca3af);
    font-size: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 12px;
}
.empty-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124,140,255,.14), rgba(52,215,255,.08));
    border: 1px solid rgba(124,140,255,.16);
}

.empty-icon svg { width: 26px; height: 26px; stroke: var(--text-primary, #f9fafb); }
.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #f9fafb);
    margin: 0;
}
.empty-state p {
    font-size: 14px;
    color: var(--text-muted, #9ca3af);
    margin: 0;
    max-width: 340px;
}

/* ── Skeleton ───────────────────────────────────────────────── */
.skeleton-line {
    background: linear-gradient(90deg, var(--bg-tertiary, #374151) 25%, var(--bg-secondary, #4b5563) 50%, var(--bg-tertiary, #374151) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 6px;
    height: 14px;
    margin-bottom: 8px;
}
.sk-short { width: 40%; }
.sk-long  { width: 80%; }
.skeleton-card {
    background: var(--bg-secondary, #1f2937);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Placeholder page ───────────────────────────────────────── */
.placeholder-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
    text-align: center;
    padding: 48px 24px;
}
.placeholder-icon svg { width: 64px; height: 64px; stroke: var(--text-muted, #6b7280); opacity: .5; }
.placeholder-title { font-size: 22px; font-weight: 600; color: var(--text-primary, #f9fafb); margin: 0; }
.placeholder-text  { font-size: 14px; color: var(--text-muted, #9ca3af); margin: 0; }

/* ══════════════════════════════════════════════════════════════
   PAINEL DO DONO
══════════════════════════════════════════════════════════════ */

.painel-dono { display: flex; flex-direction: column; gap: 20px; padding-bottom: 48px; }

/* Hero */
.evento-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.evento-hero-left { display: flex; flex-direction: column; gap: 8px; }
.evento-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(124, 140, 255, .12), rgba(52, 215, 255, .08));
    border: 1px solid rgba(124, 140, 255, .18);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-light, #c4b5fd);
    width: fit-content;
}
.evento-type-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.evento-type-icon svg { width: 16px; height: 16px; stroke: currentColor; }
.evento-nome {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--text-primary, #f9fafb);
    margin: 0;
    letter-spacing: -.5px;
    line-height: 1.2;
}
.evento-data {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    margin: 0;
}
.evento-data svg { width: 14px; height: 14px; flex-shrink: 0; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}
.status-ativo { background: rgba(16,185,129,.12); color: #34d399; border-color: rgba(16,185,129,.25); }
.status-encerrado { background: rgba(107,114,128,.12); color: #9ca3af; border-color: rgba(107,114,128,.2); }

/* Share card */
.share-card {
    background: var(--bg-secondary, #111827);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.07));
    border-radius: 16px;
    overflow: hidden;
}
.share-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #d1d5db);
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,.07));
    background: rgba(255,255,255,.02);
}
.share-card-header svg { width: 18px; height: 18px; flex-shrink: 0; }
.share-card-body {
    display: flex;
    gap: 24px;
    padding: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.qr-code-frame {
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid var(--border-subtle, rgba(255,255,255,.1));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.qr-code-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-subtle, rgba(255,255,255,.1));
    background: #fff;
    padding: 10px;
    display: block;
    object-fit: contain;
}
.qr-code-frame-error::before {
    content: 'QR indisponivel';
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted,#9ca3af);
}
.btn-qr-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-light, #c4b5fd);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(124, 140, 255, .18);
    background: var(--bg-tertiary, #1f2937);
    cursor: pointer;
    transition: all .15s;
}
.btn-qr-download:hover {
    background: var(--bg-tertiary, #1f2937);
    box-shadow: 0 0 0 2px rgba(88, 131, 255, .12);
}
.btn-qr-download svg { width: 13px; height: 13px; }
.link-section { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.link-hint { font-size: 13px; color: var(--text-muted, #9ca3af); margin: 0; }
.link-copy-row { display: flex; gap: 8px; align-items: stretch; }
.link-input {
    flex: 1;
    background: var(--bg-tertiary, #1f2937);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.1));
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary, #d1d5db);
    outline: none;
    min-width: 0;
    font-family: monospace;
}
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--color-brand-secondary), var(--color-brand-primary));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-copy svg { width: 14px; height: 14px; }
.btn-copy:hover {
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
    color: var(--color-brand-ink, #06111D);
    box-shadow: 0 10px 26px rgba(88, 131, 255, 0.22);
}
.btn-copy:active { transform: scale(.97); }
.btn-copy.copied { background: #059669; }
.link-info { font-size: 12px; color: var(--text-muted, #6b7280); margin: 0; }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

.stat-card {
    background: var(--bg-secondary, #111827);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.07));
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary, #f9fafb);
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    font-weight: 500;
}
.stat-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .12;
}
.stat-icon svg { width: 40px; height: 40px; }
.stat-participantes .stat-value { color: #60a5fa; }
.stat-participantes .stat-icon svg { stroke: #60a5fa; opacity: .2; }
.stat-enviadas .stat-value    { color: #34d399; }
.stat-selecionadas .stat-value { color: #f59e0b; }
.stat-editadas .stat-value    { color: var(--accent-light,#8EE3FF); }

/* Tabs */
.event-tabs {
    background: var(--bg-secondary, #111827);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.07));
    border-radius: 16px;
    overflow: hidden;
}
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,.07));
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-header::-webkit-scrollbar { display: none; }
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #9ca3af);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    margin-bottom: -1px;
}
.tab-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tab-btn:hover { color: var(--text-primary, #f9fafb); }
.tab-btn.active { color: var(--accent-light, #c4b5fd); border-bottom-color: var(--accent, #7c3aed); }
.tabs-body { padding: 20px; min-height: 200px; }
.tab-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    color: var(--text-muted, #9ca3af);
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════════ */
.galeria-section { display: flex; flex-direction: column; gap: 16px; }
.galeria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.galeria-count { font-size: 14px; font-weight: 600; color: var(--text-secondary, #d1d5db); }
.galeria-actions { display: flex; gap: 8px; }
.galeria-fullpage { padding-bottom: 48px; }

.evento-card.is-loading {
    opacity: .76;
    transform: scale(.99);
}

.premium-gallery-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-gallery-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 24px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(circle at top right, rgba(248, 250, 252, .14), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(148, 163, 184, .16), transparent 34%),
        linear-gradient(145deg, rgba(10, 15, 28, .98), rgba(22, 28, 45, .96));
    box-shadow: 0 26px 80px rgba(2, 6, 23, .34);
}

.premium-gallery-hero-art {
    position: relative;
    min-height: 420px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 24%),
        linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
}

.premium-gallery-hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: .65;
}

.premium-gallery-hero-orb.orb-one {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -10px;
    background: rgba(255,255,255,.12);
}

.premium-gallery-hero-orb.orb-two {
    width: 220px;
    height: 220px;
    left: -40px;
    bottom: -70px;
    background: rgba(148, 163, 184, .18);
}

.premium-gallery-hero-frame {
    position: absolute;
    inset: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(160px, .9fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.premium-gallery-hero-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .2);
    aspect-ratio: 4 / 3;
}

.premium-gallery-hero-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
}

.premium-gallery-hero-thumb.thumb-1 {
    grid-row: 1 / span 3;
    aspect-ratio: auto;
    min-height: 100%;
}

.premium-gallery-hero-thumb.thumb-2 {
    grid-row: 1;
}

.premium-gallery-hero-thumb.thumb-3 {
    grid-row: 2;
}

.premium-gallery-hero-thumb.thumb-4 {
    grid-row: 3;
}

.premium-gallery-hero-thumb.is-featured {
    border-radius: 28px;
}

.premium-gallery-hero-thumb.is-featured img {
    height: 100%;
    transition-duration: 6.5s;
}

.premium-gallery-hero-thumb.is-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .05), rgba(15, 23, 42, .42));
}

.premium-gallery-hero-thumb.is-support::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .02), rgba(15, 23, 42, .26));
}

.premium-gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(241, 245, 249, .8);
}

.premium-gallery-kicker svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.premium-gallery-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    justify-content: center;
}

.premium-gallery-copy h3 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.04;
    color: #f8fafc;
    letter-spacing: -.04em;
    max-width: 12ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.premium-gallery-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(226, 232, 240, .72);
    max-width: 58ch;
    overflow-wrap: anywhere;
}

.premium-gallery-pills,
.premium-gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-gallery-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.premium-gallery-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}

.premium-gallery-metric strong {
    font-size: 20px;
    line-height: 1;
    color: #f8fafc;
    overflow-wrap: anywhere;
}

.premium-gallery-metric span {
    font-size: 12px;
    color: rgba(226, 232, 240, .66);
    text-transform: uppercase;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}

.premium-gallery-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #f1f7ff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.premium-gallery-media img,
.premium-lightbox-thumb img,
.premium-gallery-hero-thumb img,
.premium-gallery-strip-item img,
.premium-gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .3s ease;
}

.premium-gallery-hero-thumb:hover img {
    transform: scale(1.05);
}

.premium-gallery-card:hover .premium-gallery-media img {
    transform: scale(1.045);
}

.premium-gallery-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 24%, rgba(15, 23, 42, .68) 100%);
    pointer-events: none;
}

.premium-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.premium-gallery-grid.is-collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-24px);
    pointer-events: none;
}

.premium-gallery-grid.is-visible {
    animation: premiumGalleryReveal .55s cubic-bezier(.2, .8, .2, 1) both;
}

.premium-gallery-card {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    animation: premiumFadeUp .45s ease both;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.premium-gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
}

.premium-gallery-card.is-selected {
    border-color: rgba(255,255,255,.24);
    box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 18px 48px rgba(15, 23, 42, .22);
}

.premium-gallery-card:nth-child(2) { animation-delay: .04s; }
.premium-gallery-card:nth-child(3) { animation-delay: .08s; }
.premium-gallery-card:nth-child(4) { animation-delay: .12s; }

.premium-gallery-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.premium-gallery-overlay {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 1;
}

.premium-gallery-card:hover .premium-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.premium-gallery-action {
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(7, 12, 24, .7);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
}

.premium-gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px 17px;
}

.premium-gallery-meta-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.premium-gallery-meta strong,
.premium-gallery-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-gallery-meta strong {
    font-size: 13px;
    color: var(--text-primary,#f9fafb);
    max-width: 100%;
}

.premium-gallery-meta-copy span {
    font-size: 12px;
    color: var(--text-muted,#9ca3af);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-gallery-meta-badge {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    font-size: 11px;
    font-weight: 700;
    color: #f8fafc;
}

.premium-gallery-inline-viewer {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(8, 15, 32, .7);
    box-shadow: 0 22px 56px rgba(2, 6, 23, .28);
}

.premium-gallery-inline-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .92));
    backdrop-filter: blur(18px);
}

.premium-gallery-inline-stage {
    position: relative;
    z-index: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.premium-gallery-inline-stage img {
    width: 100%;
    max-height: min(72vh, 820px);
    object-fit: contain;
    border-radius: 22px;
    background: rgba(2, 6, 23, .28);
}

.premium-gallery-inline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.premium-gallery-inline-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.premium-gallery-inline-info strong {
    font-size: 14px;
    color: #f8fafc;
}

.premium-gallery-inline-info span {
    font-size: 12px;
    color: rgba(226, 232, 240, .72);
}

.premium-gallery-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.premium-gallery-inline-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    background: rgba(15, 23, 42, .54);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
}

.premium-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 8, 23, .82);
    backdrop-filter: blur(18px);
}

.premium-lightbox.active {
    display: flex;
}

.premium-lightbox::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .28), rgba(2, 6, 23, .34));
}

.premium-lightbox.focus-mode {
    background: rgba(15, 23, 42, .14);
    backdrop-filter: blur(22px) saturate(120%);
}

.premium-lightbox.focus-mode::before {
    background: linear-gradient(180deg, rgba(148, 163, 184, .08), rgba(15, 23, 42, .24));
}

.premium-lightbox.slideshow-mode {
    background: rgba(2, 6, 23, .7);
    backdrop-filter: blur(24px) saturate(125%);
}

.premium-lightbox.slideshow-mode::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, .5), rgba(2, 6, 23, .74));
}

.premium-lightbox-stage {
    width: min(100%, 1120px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.premium-lightbox-focus-caption {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    max-width: min(60%, 420px);
    padding: 7px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1.2;
    background: rgba(8, 15, 32, .16);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    text-align: right;
    opacity: 0;
    pointer-events: none;
}

.premium-lightbox-media {
    width: 100%;
    max-height: calc(100vh - 170px);
    overflow: hidden;
    border-radius: 24px;
    background: rgba(0,0,0,.18);
}

.premium-lightbox-media > img {
    width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
    display: block;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
    transform: translateZ(0);
    image-rendering: auto;
}

.premium-lightbox.focus-mode .premium-lightbox-stage {
    width: auto;
    max-width: min(94vw, 1200px);
    max-height: 100vh;
    align-items: center;
    justify-content: center;
}

.premium-lightbox.focus-mode .premium-lightbox-media {
    width: auto;
    max-width: min(94vw, 1200px);
    max-height: 84vh;
    border-radius: 28px;
    background: transparent;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .24);
}

.premium-lightbox.focus-mode .premium-lightbox-media > img {
    width: auto;
    max-width: min(94vw, 1200px);
    max-height: 84vh;
}

.premium-lightbox.focus-mode .premium-lightbox-focus-caption {
    opacity: 1;
}

.premium-lightbox.focus-mode .premium-lightbox-bar,
.premium-lightbox.focus-mode .premium-lightbox-strip,
.premium-lightbox.focus-mode .premium-lightbox-nav {
    display: none;
}

.premium-lightbox.slideshow-mode .premium-lightbox-media {
    width: auto;
    max-width: min(94vw, 1280px);
    max-height: 78vh;
    border-radius: 28px;
    background: transparent;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.premium-lightbox.slideshow-mode .premium-lightbox-media > img {
    width: auto;
    max-width: min(94vw, 1280px);
    max-height: 78vh;
    animation: premiumLightboxZoomIn 6.4s linear forwards;
}

.premium-lightbox.slideshow-mode .premium-lightbox-stage {
    width: auto;
    max-width: min(96vw, 1320px);
    align-items: center;
    justify-content: center;
    gap: 0;
}

.premium-lightbox-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(8, 15, 32, .78);
    border: 1px solid rgba(255,255,255,.10);
}

.premium-lightbox-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.premium-lightbox-info strong {
    color: #f8fbff;
    font-size: 14px;
}

.premium-lightbox-info span {
    color: rgba(225, 234, 247, .72);
    font-size: 12px;
}

.premium-lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.premium-lightbox-progress {
    flex: 1;
    align-self: center;
    min-width: 120px;
    max-width: 280px;
    height: 1px;
    background: rgba(255,255,255,.18);
    overflow: hidden;
    position: relative;
}

.premium-lightbox-progress-fill {
    width: 0;
    height: 100%;
    background: rgba(255,255,255,.95);
    transition: width .08s linear, opacity .18s ease;
}

.premium-lightbox-iconbtn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #f8fafc;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
}

.premium-lightbox-iconbtn svg {
    width: 18px;
    height: 18px;
}

.premium-lightbox-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 108px);
    gap: 10px;
    overflow-x: auto;
    padding: 2px 4px 6px;
    scrollbar-width: thin;
}

.premium-lightbox-thumb {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: rgba(255,255,255,.03);
    transition: transform .22s ease, border-color .22s ease, opacity .22s ease;
    opacity: .72;
}

.premium-lightbox-thumb img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.premium-lightbox-thumb.is-active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.28);
}

.premium-lightbox.slideshow-mode .premium-lightbox-bar {
    position: fixed;
    left: 50%;
    bottom: 116px;
    transform: translateX(-50%);
    z-index: 2;
    width: min(94vw, 1080px);
    height: 52px;
    padding: 0 14px 0 18px;
    border-radius: 999px;
    background: rgba(6, 10, 18, .42);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(120px, 180px) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
}

.premium-lightbox-event-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-lightbox.slideshow-mode .premium-lightbox-event-label {
    text-align: left;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.premium-lightbox-meta {
    min-width: 0;
}

.premium-lightbox.slideshow-mode .premium-lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.premium-lightbox.slideshow-mode .premium-lightbox-meta span {
    font-size: 11px;
    color: rgba(226, 232, 240, .62);
    white-space: nowrap;
}

.premium-lightbox.slideshow-mode #premiumLightboxTitle,
.premium-lightbox.slideshow-mode #premiumLightboxCounter,
.premium-lightbox.slideshow-mode #premiumLightboxAuthor {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-lightbox.slideshow-mode .premium-lightbox-strip {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 2;
    width: min(88vw, 720px);
    grid-auto-columns: 60px;
    gap: 6px;
    padding: 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: start;
}

.premium-lightbox.slideshow-mode .premium-lightbox-thumb {
    border: 0;
    border-radius: 12px;
    background: transparent;
    opacity: .58;
    transform: none;
}

.premium-lightbox.slideshow-mode .premium-lightbox-thumb.is-active {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.premium-lightbox.slideshow-mode .premium-lightbox-progress {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: none;
    width: 100%;
    background: rgba(255,255,255,.14);
    z-index: 0;
}

.premium-lightbox.slideshow-mode .premium-lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 92px;
    height: 100%;
    padding-right: 2px;
    transform: none;
}

.premium-lightbox-close,
.premium-lightbox-nav {
    border: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(8, 15, 32, .74);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
}

.premium-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    opacity: .9;
}

.premium-lightbox.focus-mode .premium-lightbox-close {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

.premium-lightbox-nav {
    width: auto;
    height: auto;
    padding: 10px 14px;
    border-radius: 0;
    font-size: 28px;
    line-height: 1;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.premium-lightbox-nav.prev,
.premium-lightbox-nav.next {
    position: fixed;
    top: 50%;
    z-index: 2;
    width: clamp(72px, 9vw, 110px);
    height: min(58vh, 460px);
    display: flex;
    align-items: center;
    transform: translateY(-50%);
}

.premium-lightbox-nav.prev {
    left: 12px;
    justify-content: flex-start;
    padding-left: 18px;
    background: linear-gradient(90deg, rgba(2, 6, 23, .16), rgba(2, 6, 23, 0));
}

.premium-lightbox-nav.next {
    right: 12px;
    justify-content: flex-end;
    padding-right: 18px;
    background: linear-gradient(270deg, rgba(2, 6, 23, .16), rgba(2, 6, 23, 0));
}

.premium-lightbox.slideshow-mode .premium-lightbox-nav {
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.premium-lightbox-nav:hover {
    color: rgba(255,255,255,.78);
}

.premium-lightbox-nav.prev:hover {
    background: linear-gradient(90deg, rgba(2, 6, 23, .24), rgba(2, 6, 23, 0));
}

.premium-lightbox-nav.next:hover {
    background: linear-gradient(270deg, rgba(2, 6, 23, .24), rgba(2, 6, 23, 0));
}

@keyframes premiumLightboxZoomIn {
    from {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
    50% {
        transform: translate3d(0, 0, 0) scale3d(1.018, 1.018, 1);
    }
    to {
        transform: translate3d(0, 0, 0) scale3d(1.036, 1.036, 1);
    }
}

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

@keyframes premiumGalleryReveal {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        max-height: 2400px;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .premium-gallery-hero {
        grid-template-columns: 1fr;
    }

    .premium-gallery-hero-art {
        min-height: 360px;
    }

    .premium-gallery-hero-frame {
        grid-template-columns: minmax(0, 1.4fr) minmax(140px, .86fr);
    }
}

@media (max-width: 680px) {
    .premium-gallery-hero,
    .premium-gallery-card,
    .premium-lightbox-bar {
        border-radius: 22px;
    }

    .premium-gallery-hero {
        padding: 18px;
    }

    .premium-gallery-copy h3 {
        max-width: none;
        font-size: clamp(24px, 7vw, 34px);
        line-height: 1.08;
    }

    .premium-gallery-metrics {
        grid-template-columns: 1fr;
    }

    .premium-gallery-hero-art {
        min-height: 320px;
    }

    .premium-gallery-hero-frame {
        grid-template-columns: 1.25fr .85fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 10px;
        inset: 14px;
    }

    .premium-gallery-hero-thumb {
        border-radius: 18px;
        aspect-ratio: auto;
    }

    .premium-gallery-hero-thumb.is-featured {
        border-radius: 22px;
    }

    .premium-gallery-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .premium-gallery-meta strong,
    .premium-gallery-meta span {
        white-space: normal;
        text-overflow: clip;
    }

    .premium-gallery-meta strong {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .premium-gallery-meta-badge {
        align-self: flex-start;
    }


    .premium-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .premium-gallery-media {
        aspect-ratio: 3 / 4;
    }

    .premium-gallery-inline-viewer {
        border-radius: 22px;
    }

    .premium-gallery-inline-stage {
        padding: 12px;
    }

    .premium-gallery-inline-stage img {
        max-height: 56vh;
    }

    .premium-gallery-inline-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .premium-lightbox {
        padding: 12px;
    }

    .premium-lightbox-nav {
        display: none;
    }

    .premium-lightbox-media,
    .premium-lightbox-media > img {
        max-height: calc(100vh - 220px);
    }

    .premium-lightbox.focus-mode .premium-lightbox-media > img,
    .premium-lightbox.focus-mode .premium-lightbox-media {
        max-width: 94vw;
        max-height: 78vh;
    }

    .premium-lightbox-focus-caption {
        right: 18px;
        bottom: 18px;
        max-width: calc(100% - 36px);
        font-size: 10px;
    }

    .premium-lightbox-strip {
        grid-auto-columns: minmax(72px, 82px);
    }

    .premium-lightbox.slideshow-mode .premium-lightbox-bar {
        bottom: 96px;
        width: min(95vw, 760px);
        height: 52px;
        padding: 0 10px;
        grid-template-columns: minmax(120px, .7fr) minmax(72px, 96px) minmax(0, 1fr) auto;
        column-gap: 10px;
    }

    .premium-lightbox.slideshow-mode .premium-lightbox-event-label {
        font-size: 11px;
    }

    .premium-lightbox.slideshow-mode .premium-lightbox-meta {
        gap: 8px;
    }

    .premium-lightbox.slideshow-mode #premiumLightboxAuthor {
        display: none;
    }

    .premium-lightbox-progress {
        min-width: 72px;
        max-width: 96px;
    }

    .premium-lightbox.slideshow-mode .premium-lightbox-strip {
        bottom: 18px;
        width: min(92vw, 640px);
        grid-auto-columns: 54px;
    }
}

@media (max-width: 560px) {
    .premium-gallery-hero {
        gap: 18px;
        padding: 16px;
    }

    .premium-gallery-hero-art {
        min-height: 280px;
    }

    .premium-gallery-hero-frame {
        inset: 12px;
        display: block;
    }

    .premium-gallery-hero-thumb {
        display: none;
        height: 100%;
        border-radius: 20px;
    }

    .premium-gallery-hero-thumb.is-featured {
        display: block;
        min-height: 256px;
    }

    .premium-gallery-pills,
    .premium-gallery-actions {
        gap: 8px;
    }

    .premium-gallery-actions .btn {
        width: 100%;
    }

    .premium-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
@media (max-width: 500px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-item-inner { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-tertiary, #1f2937); }
.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.gallery-item:hover .gallery-item-inner img { transform: scale(1.04); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .2s;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.btn-gallery-download {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #fff;
    transition: background .15s;
    display: flex;
    align-items: center;
}
.btn-gallery-download svg { width: 15px; height: 15px; }
.btn-gallery-download:hover { background: rgba(255,255,255,.3); }
.gallery-score {
    font-size: 11px;
    font-weight: 700;
    color: #eef6ff;
    background: rgba(7, 12, 24, .58);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    padding: 5px 9px;
    letter-spacing: .02em;
}
.gallery-item-meta {
    padding: 6px 8px;
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
    background: var(--bg-tertiary, #1f2937);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   RANKING & PODIUM
══════════════════════════════════════════════════════════════ */
.ranking-section { display: flex; flex-direction: column; gap: 20px; }

.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 24px 12px 0;
    min-height: 200px;
}
.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 140px;
    position: relative;
    padding-bottom: 0;
}
.podium-empty { min-height: 100px; }
.podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border: 2px solid transparent;
    flex-shrink: 0;
}
.podium-gold   .podium-avatar { background: linear-gradient(135deg,#f59e0b,#d97706); border-color: #fbbf24; box-shadow: 0 0 16px rgba(251,191,36,.3); }
.podium-silver .podium-avatar { background: linear-gradient(135deg,#9ca3af,#6b7280); border-color: #d1d5db; }
.podium-bronze .podium-avatar { background: linear-gradient(135deg,#b45309,#92400e); border-color: #d97706; }
.podium-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary,#f9fafb);
}
.podium-name  { font-size: 12px; font-weight: 600; color: var(--text-primary,#f9fafb); text-align: center; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-score { font-size: 14px; font-weight: 700; color: var(--accent-light,#c4b5fd); }
.podium-fotos { font-size: 11px; color: var(--text-muted,#9ca3af); margin-bottom: 8px; }
.podium-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.podium-bar-1 { height: 80px;  background: linear-gradient(180deg,rgba(251,191,36,.3) 0%,rgba(251,191,36,.08) 100%); border: 1px solid rgba(251,191,36,.3); border-bottom: none; }
.podium-bar-2 { height: 56px;  background: linear-gradient(180deg,rgba(209,213,219,.2) 0%,rgba(209,213,219,.05) 100%); border: 1px solid rgba(209,213,219,.2); border-bottom: none; }
.podium-bar-3 { height: 40px;  background: linear-gradient(180deg,rgba(217,119,6,.25) 0%,rgba(217,119,6,.06) 100%);  border: 1px solid rgba(217,119,6,.25); border-bottom: none; }
/* Ordering: slot 2 (gold) is tallest, visually in middle */
.podium-slot:nth-child(1) { order: 1; } /* silver */
.podium-slot:nth-child(2) { order: 2; } /* gold  */
.podium-slot:nth-child(3) { order: 3; } /* bronze */

.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary, #1f2937);
    border-radius: 12px;
    border: 1px solid var(--border-subtle, rgba(255,255,255,.05));
    transition: border-color .15s;
}
.ranking-item:hover { border-color: var(--border, rgba(255,255,255,.12)); }
.ranking-pos  { font-size: 14px; font-weight: 700; color: var(--text-muted,#9ca3af); min-width: 28px; }
.ranking-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--color-brand-primary), var(--color-brand-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.ranking-info  { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ranking-name  { font-size: 14px; font-weight: 600; color: var(--text-primary,#f9fafb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-sub   { font-size: 11px; color: var(--text-muted,#9ca3af); }
.ranking-score-col { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.ranking-score-val   { font-size: 16px; font-weight: 700; color: var(--accent-light,#c4b5fd); }
.ranking-score-label { font-size: 10px; color: var(--text-muted,#9ca3af); }

.premio-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(251,191,36,.08) 0%, rgba(52,215,255,.08) 100%);
    border: 1px solid rgba(251,191,36,.2);
    border-radius: 14px;
    margin-top: 4px;
}
.premio-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124,140,255,.14), rgba(52,215,255,.08));
    border: 1px solid rgba(124,140,255,.16);
    color: var(--accent-light,#c4b5fd);
}

.premio-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.premio-text { display: flex; flex-direction: column; gap: 4px; }
.premio-text strong { font-size: 14px; color: var(--text-primary,#f9fafb); }
.premio-text p { font-size: 13px; color: var(--text-muted,#9ca3af); margin: 0; }
.premio-prazo { font-size: 11px; color: #fbbf24; }

/* ══════════════════════════════════════════════════════════════
   PARTICIPANTES TAB
══════════════════════════════════════════════════════════════ */
.participantes-list { display: flex; flex-direction: column; gap: 8px; }
.participante-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary, #1f2937);
    border-radius: 12px;
    border: 1px solid var(--border-subtle, rgba(255,255,255,.05));
    transition: border-color .15s;
}
.participante-item:hover { border-color: var(--border, rgba(255,255,255,.12)); }
.participante-dono {
    background: linear-gradient(135deg, rgba(251,191,36,.08) 0%, rgba(52,215,255,.08) 100%);
    border-color: rgba(251,191,36,.2);
}
.participante-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg,var(--color-brand-primary), var(--color-brand-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.participante-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.participante-nome {
    font-size: 14px; font-weight: 600; color: var(--text-primary,#f9fafb);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 6px;
}
.dono-tag {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.participante-meta { font-size: 11px; color: var(--text-muted,#9ca3af); }
.participante-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.participante-pos { font-size: 11px; color: var(--text-muted,#9ca3af); }
.participante-pts { font-size: 13px; font-weight: 700; color: var(--accent-light,#c4b5fd); }

/* ══════════════════════════════════════════════════════════════
   COLABORADOR — Upload de fotos
══════════════════════════════════════════════════════════════ */
.colaborador-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 48px; }

.colaborador-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary,#111827);
    border: 1px solid var(--border-subtle,rgba(255,255,255,.07));
    border-radius: 16px;
}

/* Event details card */
.evento-details-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-secondary,#111827);
    border: 1px solid var(--border-subtle,rgba(255,255,255,.07));
    border-radius: 12px;
}
.evento-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary,#d1d5db);
}
.detail-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light,#c4b5fd);
}

.detail-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.detail-text { flex: 1; }
.evento-type-icon-lg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(124,140,255,.16), rgba(52,215,255,.08));
    border: 1px solid rgba(124,140,255,.16);
    color: var(--text-primary,#f9fafb);
}

.evento-type-icon-lg svg { width: 28px; height: 28px; stroke: currentColor; }
.colaborador-hero-text { display: flex; flex-direction: column; gap: 4px; }
.colaborador-title { font-size: clamp(18px, 4vw, 26px); font-weight: 700; color: var(--text-primary,#f9fafb); margin: 0; line-height: 1.2; }
.colaborador-subtitle { font-size: 13px; color: var(--text-muted,#9ca3af); margin: 0; }

/* Counter bar */
.upload-counter-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-secondary,#111827);
    border: 1px solid var(--border-subtle,rgba(255,255,255,.07));
    border-radius: 12px;
}
.upload-counter-info { display: flex; align-items: baseline; gap: 4px; }
.upload-counter-num  { font-size: 28px; font-weight: 700; color: var(--accent-light,#c4b5fd); line-height: 1; }
.upload-counter-sep  { font-size: 16px; color: var(--text-muted,#9ca3af); }
.upload-counter-max  { font-size: 18px; font-weight: 600; color: var(--text-secondary,#d1d5db); }
.upload-counter-label{ font-size: 13px; color: var(--text-muted,#9ca3af); margin-left: 6px; }
.upload-counter-track {
    height: 4px;
    background: var(--bg-tertiary,#1f2937);
    border-radius: 999px;
    overflow: hidden;
}
.upload-counter-fill {
    height: 100%;
    background: linear-gradient(90deg,var(--color-brand-primary), var(--color-brand-secondary));
    border-radius: 999px;
    transition: width .3s ease;
}

/* Drop zone */
.upload-drop-zone {
    border: 2px dashed var(--border,rgba(255,255,255,.15));
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.upload-drop-zone:hover, .upload-drop-zone.drag-over {
    border-color: var(--accent,#7c3aed);
    background: rgba(88, 131, 255, .06);
}
.drop-zone-icon svg { width: 48px; height: 48px; stroke: var(--text-muted,#6b7280); }
.upload-drop-zone:hover .drop-zone-icon svg, .upload-drop-zone.drag-over .drop-zone-icon svg { stroke: var(--accent-light,#c4b5fd); }
.drop-zone-title { font-size: 16px; font-weight: 600; color: var(--text-primary,#f9fafb); margin: 0; }
.drop-zone-sub   { font-size: 13px; color: var(--text-muted,#9ca3af); margin: 0; }
.drop-zone-link  { color: var(--accent-light,#c4b5fd); text-decoration: underline; cursor: pointer; }
.drop-zone-hint  { font-size: 11px; color: var(--text-muted,#6b7280); margin: 0; }

/* Photo grid */
.upload-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
@media (max-width: 400px) { .upload-photo-grid { grid-template-columns: repeat(3, 1fr); } }

.photo-upload-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-tertiary,#1f2937);
    border: 1px solid var(--border-subtle,rgba(255,255,255,.07));
}
.photo-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.photo-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,.3);
}
.photo-card-progress-wrap { height: 100%; background: var(--bg-tertiary,#374151); overflow: hidden; }
.photo-card-progress { height: 100%; background: linear-gradient(90deg,var(--color-brand-primary), var(--color-brand-secondary)); transition: width .2s; }
.photo-card-status {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-ok    { background: rgba(16,185,129,.9); color: #fff; }
.status-error { background: rgba(239,68,68,.9);  color: #fff; }
.photo-card-meta { padding: 4px 6px; font-size: 10px; color: var(--text-muted,#9ca3af); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Upload actions */
.upload-actions { display: flex; justify-content: center; }
.btn-upload-send {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg,var(--color-brand-primary), var(--color-brand-secondary));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 12px 28px rgba(88, 131, 255, .24);
    width: 100%;
    max-width: 400px;
    justify-content: center;
}
.btn-upload-send svg { width: 18px; height: 18px; }
.btn-upload-send:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(88, 131, 255, .28); }
.btn-upload-send:active { transform: scale(.98); }
.btn-upload-send:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Processing state */
.upload-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px 24px;
    text-align: center;
}
.processing-animation {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.processing-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent,#7c3aed);
    animation: spin 1s linear infinite;
}
.processing-ring-2 {
    inset: 10px;
    border-top-color: var(--color-brand-secondary);
    animation-duration: 1.5s;
    animation-direction: reverse;
}
.processing-center {
    width: 28px;
    height: 28px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light,#c4b5fd);
}

.processing-center svg { width: 24px; height: 24px; stroke: currentColor; }
.processing-title { font-size: 18px; font-weight: 700; color: var(--text-primary,#f9fafb); margin: 0; }
.processing-sub   { font-size: 13px; color: var(--text-muted,#9ca3af); margin: 0; max-width: 360px; }
.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    text-align: left;
}
.proc-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-tertiary,#1f2937);
    font-size: 13px;
    color: var(--text-muted,#9ca3af);
    border: 1px solid var(--border-subtle,rgba(255,255,255,.05));
    transition: color .3s, border-color .3s;
}
.proc-step.active { color: var(--text-primary,#f9fafb); border-color: var(--accent,#7c3aed); }
.proc-step-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-light,#c4b5fd);
}
.proc-step-icon svg { width: 18px; height: 18px; stroke: currentColor; }

/* Done state */
.upload-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 24px;
    text-align: center;
}
.done-icon  {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(52,211,153,.08));
    border: 1px solid rgba(16,185,129,.18);
    color: #34d399;
    animation: pop .4s cubic-bezier(.34,1.56,.64,1);
}

.done-icon svg { width: 32px; height: 32px; stroke: currentColor; }
.done-title { font-size: 22px; font-weight: 700; color: var(--text-primary,#f9fafb); margin: 0; }
.done-sub   { font-size: 14px; color: var(--text-secondary,#d1d5db); margin: 0; max-width: 340px; }
.done-hint  { font-size: 12px; color: var(--text-muted,#9ca3af); margin: 0; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* ══════════════════════════════════════════════════════════════
   MEUS EVENTOS
══════════════════════════════════════════════════════════════ */
.meus-eventos-page { display: flex; flex-direction: column; gap: 20px; padding-bottom: 48px; }
.meus-eventos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.meus-eventos-header h1 { font-size: 24px; font-weight: 700; color: var(--text-primary,#f9fafb); margin: 0; }

/* Seções de eventos */
.eventos-secao { display: flex; flex-direction: column; gap: 16px; }
.eventos-secao-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,.07));
}
.eventos-secao-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary,#f9fafb);
}
.eventos-secao-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.eventos-secao-titulo {
    font-family: var(--font-family-display, inherit);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary, #f9fafb);
    margin: 0;
    letter-spacing: -.03em;
}
.empty-state-secao {
    background: var(--bg-secondary, #111827);
    border: 1px solid var(--border-subtle, rgba(255,255,255,.07));
    border-radius: 16px;
    padding: 32px 24px;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
@media (max-width: 500px) { .eventos-grid { grid-template-columns: 1fr; } }

.evento-card {
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    border: 1px solid rgba(124,140,255,.12);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    box-shadow: 0 12px 28px rgba(7,12,24,.16);
}
.evento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(7,12,24,.24);
    border-color: rgba(52,215,255,.22);
}
.evento-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evento-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124,140,255,.16), rgba(52,215,255,.08));
    border: 1px solid rgba(124,140,255,.16);
    color: var(--text-primary,#f9fafb);
}
.evento-card-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.evento-card-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
}
.evento-card-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}
.status-ativo  { color: #34d399; }
.status-encerrado { color: #9ca3af; }
.evento-card-nome {
    font-family: var(--font-family-display, inherit);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary,#f9fafb);
    margin: 0;
    line-height: 1.22;
    letter-spacing: -.03em;
}
.evento-card-tipo { font-size: 12px; color: var(--accent-light,#c4b5fd); margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.evento-card-data,
.evento-card-local { font-size: 12px; color: var(--text-muted,#9ca3af); margin: 0; display:flex; align-items:center; gap:8px; }
.evento-card-data svg,
.evento-card-local svg { width: 14px; height: 14px; stroke: currentColor; flex-shrink: 0; }
.evento-card-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted,#9ca3af);
}
.evento-card-stats:empty { display: none; }
.evento-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
}
.evento-card-stat svg { width: 14px; height: 14px; stroke: currentColor; }
.evento-card-stat span { line-height: 1.1; }
.evento-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Light theme workspace harmony */
.light-theme .share-card,
.light-theme .event-tabs,
.light-theme .evento-details-card,
.light-theme .upload-counter-bar,
.light-theme .colaborador-hero,
.light-theme .evento-card,
.light-theme .premium-gallery-card,
.light-theme .ranking-item,
.light-theme .participante-item,
.light-theme .empty-state-secao,
.light-theme .skeleton-card {
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(242,247,255,.9));
    border-color: rgba(16, 23, 42, 0.08);
    box-shadow: 0 18px 42px rgba(56, 88, 145, 0.10);
}

.light-theme .share-card-header,
.light-theme .tabs-header,
.light-theme .eventos-secao-header {
    border-color: rgba(16, 23, 42, 0.08);
}

.light-theme .evento-type-badge,
.light-theme .evento-card-icon,
.light-theme .evento-type-icon-lg,
.light-theme .empty-icon,
.light-theme .premio-icon {
    background: linear-gradient(135deg, rgba(83,104,255,.12), rgba(49,214,255,.10));
    border-color: rgba(83,104,255,.16);
    color: var(--text-primary);
}

.light-theme .btn-secondary,
.light-theme .evento-card-stat,
.light-theme .proc-step,
.light-theme .link-input {
    background: rgba(234, 241, 255, 0.78);
    border-color: rgba(16, 23, 42, 0.08);
    color: var(--text-secondary);
}

.light-theme .gallery-score,
.light-theme .evento-card-status {
    background: rgba(232, 239, 252, 0.94);
    border-color: rgba(16, 23, 42, 0.08);
}

.light-theme .upload-drop-zone {
    background: rgba(255,255,255,.72);
    border-color: rgba(83, 104, 255, 0.18);
}

.light-theme .upload-drop-zone:hover,
.light-theme .upload-drop-zone.drag-over {
    background: rgba(83, 104, 255, 0.06);
}

.light-theme .premium-gallery-kicker {
    color: rgba(71, 85, 105, .92);
}

.light-theme .podium-icon {
    background: rgba(234, 241, 255, 0.92);
    border-color: rgba(16, 23, 42, 0.08);
}

.light-theme .premium-gallery-hero {
    background:
        radial-gradient(circle at top right, rgba(226, 232, 240, .65), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(191, 219, 254, .24), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,247,255,.94));
    border-color: rgba(16, 23, 42, 0.08);
    box-shadow: 0 22px 50px rgba(56, 88, 145, 0.12);
}

.light-theme .premium-gallery-copy h3,
.light-theme .premium-gallery-metric strong,
.light-theme .premium-lightbox-info strong {
    color: #0f172a;
}

.light-theme .premium-gallery-copy p,
.light-theme .premium-gallery-metric span,
.light-theme .premium-lightbox-info span {
    color: rgba(15, 23, 42, .72);
}

.light-theme .premium-gallery-metric,
.light-theme .premium-lightbox-thumb,
.light-theme .premium-gallery-meta-badge,
.light-theme .premium-gallery-hero-art {
    background: rgba(255,255,255,.82);
    border-color: rgba(16, 23, 42, 0.08);
}

.light-theme .premium-gallery-pill,
.light-theme .premium-gallery-action,
.light-theme .premium-gallery-featured-badge,
.light-theme .premium-lightbox-close,
.light-theme .premium-lightbox-nav,
.light-theme .premium-lightbox-bar {
    color: #0f172a;
    background: rgba(255,255,255,.82);
    border-color: rgba(16, 23, 42, 0.08);
}

.light-theme .premium-gallery-meta-badge {
    color: #94a3b8;
    background: rgba(248,250,252,.96);
    border-color: rgba(148,163,184,.22);
}

.light-theme .premium-lightbox.slideshow-mode .premium-lightbox-info strong {
    color: #ffffff;
}

.light-theme .premium-lightbox {
    background: rgba(226, 232, 240, .82);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS (generic, supplement to base.css)
══════════════════════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background .15s, transform .1s, box-shadow .15s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--color-brand-secondary) 0%, var(--color-brand-primary) 58%, var(--color-brand-primary) 100%);
    color: var(--color-brand-ink, #06111D);
}
.btn-primary:hover { box-shadow: 0 18px 38px rgba(88, 131, 255, .22); }
.btn-secondary { background: var(--bg-tertiary,#1f2937); color: var(--text-secondary,#d1d5db); border: 1px solid var(--border-subtle,rgba(255,255,255,.1)); }
.btn-secondary:hover { background: var(--bg-hover,#374151); }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }

/* Score bar (utility) */
.score-bar-wrap { height: 4px; background: var(--bg-tertiary,#374151); border-radius: 999px; overflow: hidden; width: 100%; }
.score-bar-fill  { height: 100%; background: linear-gradient(90deg,var(--color-brand-primary), var(--color-brand-secondary)); border-radius: 999px; }
