/* ================================================================
   PORTAL DE VALIDAÇÃO & APROVAÇÃO DE CONTEÚDOS
   Napp Vertex & Vivian Bustamante (Psicologia Sistêmica & PNL)
   Design System Híbrido: Base Tech Napp Vertex + Acentos Sistêmicos Vivian
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* 1. NAPP VERTEX TOKENS (Base & Superfícies) */
    --napp-bg-base: #06080E;
    --napp-bg-surface: #0C101A;
    --napp-bg-card: #111726;
    --napp-bg-card-hover: #161E31;
    --napp-border-subtle: rgba(255, 255, 255, 0.08);
    --napp-border-hover: rgba(139, 92, 246, 0.4);
    --napp-violet: #8B5CF6;
    --napp-violet-glow: rgba(139, 92, 246, 0.25);
    --napp-blue: #3B82F6;
    --napp-blue-glow: rgba(59, 130, 246, 0.3);

    /* 2. VIVIAN BUSTAMANTE TOKENS (Identidade Sistêmica & Acolhimento) */
    --vivian-plum: #7A1B54;
    --vivian-plum-light: #982469;
    --vivian-plum-glow: rgba(122, 27, 84, 0.35);
    --vivian-dusty-rose: #C09FAD;
    --vivian-gold: #DFAB6C;
    --vivian-gold-glow: rgba(223, 171, 108, 0.3);
    --vivian-earth-brown: #534035;

    /* 3. CORES DE STATUS E AÇÃO */
    --status-success: #10B981;
    --status-success-glow: rgba(16, 185, 129, 0.35);
    --status-warning: #F59E0B;
    --status-alert: #EF4444;

    /* 4. TIPOGRAFIA */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset Global e Tipografia */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--napp-bg-base);
    color: #F8FAFC;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #080B12;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--vivian-plum);
}

/* Utilitários sem scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Painéis Glassmorphism */
.glass-panel {
    background: rgba(13, 17, 28, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--napp-border-subtle);
}

.glass-nav {
    background: rgba(6, 8, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--napp-border-subtle);
}

/* Co-Branding Badges & Rings */
.cobrand-badge {
    background: linear-gradient(135deg, rgba(122, 27, 84, 0.2), rgba(223, 171, 108, 0.15));
    border: 1px solid rgba(223, 171, 108, 0.35);
    color: var(--vivian-gold);
}

.vivian-avatar-ring {
    border: 2px solid var(--vivian-gold);
    box-shadow: 0 0 14px var(--vivian-gold-glow);
}

/* Card de Conteúdo Ultra-Intuitivo com Tonalidade Distinta do Fundo */
.content-card {
    background: #0E1424;
    border: 1px solid #1E293B;
    border-radius: 22px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.content-card:hover {
    transform: translateY(-3px);
    border-color: var(--vivian-gold);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(223, 171, 108, 0.15);
}

.content-card.is-new-card {
    background: #11182B;
    border: 1px solid #2B3956;
    border-top: 3px solid #7A1B54;
    box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(122, 27, 84, 0.15);
}

.content-card.is-new-card:hover {
    border-color: #DFAB6C;
    border-top-color: #DFAB6C;
}

/* Botão Primário de Revisão (Cor Sólida Padronizada) */
.btn-review-primary {
    background: #7A1B54;
    color: #FFFFFF;
    font-weight: 700;
    transition: background 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-review-primary:hover {
    background: #942266;
}

/* Animações de Pulso para Novos Conteúdos */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(223, 171, 108, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(223, 171, 108, 0);
        transform: scale(1.03);
    }
}
.pulse-gold {
    animation: goldPulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Banner de Passo a Passo (Guia Rápido em 3 Passos) */
.step-guide-box {
    background: #0D121F;
    border: 1px solid #1E293B;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #7A1B54;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ================================================================
   PLAYER DE ÁUDIO & STORYBOARD SINCRONIZADO (MOBILE-FIRST)
   ================================================================ */

/* Card Principal do Visualizador */
.storyboard-stage-card {
    background: #080B12;
    border: 1px solid var(--napp-border-subtle);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.storyboard-stage-card.playing {
    border-color: var(--vivian-gold);
    box-shadow: 0 0 25px var(--vivian-gold-glow);
}

/* Quadro do Storyboard Responsivo 9:16 (Formato Reels / Stories) */
.storyboard-screen {
    width: 100%;
    max-width: 290px;
    aspect-ratio: 9 / 16;
    height: auto;
    max-height: 72vh;
    position: relative;
    background: #030509;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(223, 171, 108, 0.2);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(122, 27, 84, 0.12);
}

@media (min-width: 640px) {
    .storyboard-screen {
        max-width: 320px;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .storyboard-screen {
        max-width: 340px;
        max-height: 600px;
        border-radius: 22px;
    }
}

/* Imagem com Fade Suave na Transição em 9:16 */
.storyboard-img-live {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.35s ease-in-out, transform 0.4s ease-out;
    opacity: 1;
}

.storyboard-img-live.image-fade-in {
    animation: imageFadeIn 0.35s ease-out forwards;
}

@keyframes imageFadeIn {
    0% {
        opacity: 0.25;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pílulas de Cenas / Takes */
.take-pill-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
    border: 1px solid #1E293B;
    background: #0E1320;
    color: #94A3B8;
    cursor: pointer;
    white-space: nowrap;
}

.take-pill-btn:hover {
    border-color: #334155;
    color: #FFFFFF;
    background: #151C2C;
}

.take-pill-btn.active-take-pill {
    background: #DFAB6C;
    color: #0A0E17;
    border-color: #DFAB6C;
    font-weight: 700;
}

.take-pill-btn.is-approved-pill {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(6, 78, 59, 0.25);
    color: #A7F3D0;
}

.take-pill-btn.is-approved-pill:hover {
    border-color: #10B981;
    color: #FFFFFF;
}

.take-pill-btn.active-take-pill.is-approved-pill {
    background: #059669;
    color: #FFFFFF;
    border-color: #34D399;
}

.take-pill-btn.has-notes-pill {
    border-color: rgba(223, 171, 108, 0.5);
}

/* Barra do Player de Áudio Amigável */
.friendly-audio-bar {
    background: #0D121F;
    border: 1px solid #1E293B;
    border-radius: 16px;
    padding: 14px 18px;
}

/* Botão de Play Convidativo (Cor sólida) */
.play-main-btn {
    background: #DFAB6C;
    color: #0A0E17;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.play-main-btn:hover {
    background: #C49253;
}

.play-main-btn.is-playing {
    background: #E11D48;
    color: #FFFFFF;
}

.play-main-btn.is-playing:hover {
    background: #BE123C;
}

/* Visualizador de Ondas Sonoras */
.sound-wave-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.sound-wave-bar {
    width: 3px;
    background: var(--vivian-gold);
    border-radius: 2px;
    animation: waveBounce 1.2s infinite ease-in-out;
}

.sound-wave-bar:nth-child(1) { height: 5px; animation-delay: 0.1s; }
.sound-wave-bar:nth-child(2) { height: 12px; animation-delay: 0.25s; }
.sound-wave-bar:nth-child(3) { height: 16px; animation-delay: 0.4s; }
.sound-wave-bar:nth-child(4) { height: 8px; animation-delay: 0.15s; }
.sound-wave-bar:nth-child(5) { height: 14px; animation-delay: 0.3s; }

@keyframes waveBounce {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

/* Scrubber do Áudio */
.audio-scrubber-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: #1E293B;
    border-radius: 4px;
    cursor: pointer;
    touch-action: manipulation;
}

.audio-scrubber-fill {
    height: 100%;
    background: #DFAB6C;
    border-radius: 4px;
    position: relative;
    pointer-events: none;
}

.take-marker {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 14px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 1px;
    pointer-events: none;
}

/* Balão do Roteiro / Fala (Fundo Claro com Alto Contraste Editorial) */
.script-dialogue-bubble {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 5px solid #7A1B54;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.script-dialogue-text {
    font-size: 15px;
    line-height: 1.65;
    color: #0F172A;
    font-weight: 500;
}

@media (min-width: 640px) {
    .script-dialogue-text {
        font-size: 16px;
    }
}

/* Barra Fixa Inferior Mobile-First */
.mobile-sticky-action-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 8, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 40;
}

/* Botão de Aprovação Principal (Cor Sólida Verde Esmeralda) */
.btn-approve-primary {
    background: #059669;
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-approve-primary:hover {
    background: #047857;
}

/* Botão de Solicitar Ajustes (Cor Sólida Neutro / Âmbar) */
.btn-adjust-secondary {
    background: #1E293B;
    border: 1px solid #475569;
    color: #E2E8F0;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-adjust-secondary:hover {
    background: #334155;
    border-color: #DFAB6C;
    color: #FFFFFF;
}

/* Acordeon Minimalista para Legenda */
.caption-accordion {
    border: 1px solid #1E293B;
    border-radius: 14px;
    background: #0C101A;
    overflow: hidden;
    margin-bottom: 20px;
}

.caption-accordion summary {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #94A3B8;
    user-select: none;
    list-style: none;
}

.caption-accordion summary::-webkit-details-marker {
    display: none;
}

.caption-accordion summary:hover {
    color: #F1F5F9;
}

.caption-accordion[open] summary {
    border-bottom: 1px solid #1E293B;
    color: #DFAB6C;
}

.caption-accordion-content {
    padding: 16px 18px;
}

/* Simulador do Instagram */
.instagram-mockup {
    width: 100%;
    max-width: 380px;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid #27272A;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
}

.instagram-slide-box {
    aspect-ratio: 4 / 5;
    position: relative;
    background: #080B12;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    user-select: none;
}

.slide-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-overlay-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    background: linear-gradient(180deg, rgba(8,11,18,0.85) 0%, rgba(8,11,18,0.4) 40%, rgba(8,11,18,0.9) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ================================================================
   SCROLLBAR E REGRAS DE ROLAGEM DOS MODAIS (DESKTOP & MOBILE)
   ================================================================ */
#detail-modal {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh;
    max-height: 100dvh;
}

@media (min-width: 768px) {
    #detail-modal {
        height: 90vh !important;
        max-height: 90vh !important;
    }
}

#modal-scroll-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

/* Scrollbar refinada em tons Ameixa e Dourado (Napp Vertex × Vivian) */
.modal-custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.modal-custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(12, 16, 26, 0.7);
    border-radius: 9999px;
    margin: 8px 0;
}

.modal-custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(223, 171, 108, 0.45);
    border-radius: 9999px;
    border: 2px solid #080B14;
    transition: background 0.2s ease;
}

.modal-custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(223, 171, 108, 0.8);
}

.modal-custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 171, 108, 0.45) rgba(12, 16, 26, 0.7);
}

/* ================================================================
   ESTILIZAÇÃO NATIVA RESILIENTE (TELA DE LOGIN & CO-BRANDING)
   Garante 100% de estabilidade visual mesmo com AdBlock, Brave
   ou bloqueio do Tailwind CDN no navegador do cliente
   ================================================================ */

.hidden {
    display: none !important;
}

/* Utilitários responsivos devem vencer o .hidden !important acima
   (ex.: <span class="hidden sm:inline">) */
@media (min-width: 640px) {
    .hidden.sm\:inline { display: inline !important; }
    .hidden.sm\:block { display: block !important; }
    .hidden.sm\:flex { display: flex !important; }
}
@media (min-width: 768px) {
    .hidden.md\:block { display: block !important; }
    .hidden.md\:flex { display: flex !important; }
}

#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
    z-index: 10;
    background-color: var(--napp-bg-base);
}

#login-screen.hidden {
    display: none !important;
}

#login-screen .glass-panel,
#login-screen > div {
    width: 100%;
    max-width: 440px;
    background: rgba(12, 16, 26, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1.5rem !important;
    padding: 2rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box;
}

/* Trava absoluta de segurança contra explosão de tamanho de logos */
#login-screen img,
.login-brand-logo,
header img {
    max-height: 38px !important;
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

#login-screen input[type="email"],
#login-screen input[type="password"],
#login-email,
#login-password {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #080B12 !important;
    border: 1px solid #1E293B !important;
    border-radius: 0.75rem !important;
    padding: 0.85rem 1rem !important;
    color: #FFFFFF !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    margin-top: 0.35rem !important;
}

#login-screen input:focus {
    border-color: #DFAB6C !important;
    box-shadow: 0 0 0 2px rgba(223, 171, 108, 0.25) !important;
}

#login-screen button[type="submit"],
#login-submit-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.95rem 1.25rem !important;
    border-radius: 0.85rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    background: #7A1B54 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(223, 171, 108, 0.35) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-top: 1.25rem !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 10px 20px -5px rgba(122, 27, 84, 0.4) !important;
}

#login-screen button[type="submit"]:hover,
#login-submit-btn:hover {
    background: #982469 !important;
    transform: translateY(-1px);
}

#login-screen button[type="submit"]:disabled,
#login-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

#login-error {
    background: rgba(244, 63, 94, 0.12) !important;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
    color: #FB7185 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
}

#login-error.hidden {
    display: none !important;
}


/* ================================================================
   VISUALIZADOR DE CARROSSEL v3.5 — arte limpa em 4:5, sem sobreposição
   ================================================================ */
.sv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1024px) {
    .sv-layout { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 28px; }
    .sv-col-media { position: sticky; top: 0; }
}
.sv-col-media { min-width: 0; }
.sv-col-panel { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.sv-viewer { width: 100%; max-width: 470px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sv-counter { font: 700 11px/1 'JetBrains Mono', ui-monospace, monospace; color: #DFAB6C; background: rgba(223,171,108,.1); border: 1px solid rgba(223,171,108,.3); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.sv-tools { display: flex; align-items: center; gap: 6px; }
.sv-tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #E2E8F0; background: #111827; border: 1px solid #334155; transition: border-color .15s, color .15s, background .15s; white-space: nowrap; }
.sv-tool-btn:hover { border-color: #DFAB6C; color: #fff; }
.sv-tool-btn[aria-pressed="true"] { background: #7A1B54; border-color: #DFAB6C; color: #fff; }
.sv-tool-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.sv-lbl-short { display: none; }
@media (max-width: 479px) {
    .sv-lbl-long { display: none; }
    .sv-lbl-short { display: inline; }
}

.sv-stage { display: flex; align-items: center; gap: 8px; }
.sv-frame { position: relative; flex: 1 1 auto; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #000; border-radius: 12px; border: 1px solid #27272A; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: zoom-in; box-shadow: 0 20px 40px -18px rgba(0,0,0,.85); outline: none; }
.sv-frame:focus-visible { box-shadow: 0 0 0 2px #DFAB6C; }
.sv-track { display: flex; width: 100%; height: 100%; transition: transform .38s cubic-bezier(.22,.8,.3,1); will-change: transform; }
.sv-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; overflow: hidden; }
.sv-img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }
.sv-fallback { height: 100%; background: linear-gradient(160deg, #2A0F22 0%, #0B0F19 100%); }

.sv-arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #111827; color: #fff; border: 1px solid #334155; transition: background .15s, border-color .15s, opacity .15s; }
.sv-arrow:hover:not(:disabled) { background: #7A1B54; border-color: #DFAB6C; }
.sv-arrow:disabled { opacity: .28; cursor: default; }
.sv-arrow svg { width: 18px; height: 18px; }
.sv-arrow-side { display: none; }
.sv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (min-width: 640px) {
    .sv-arrow-side { display: inline-flex; }
    .sv-arrow-inline { display: none; }
}

.sv-dots { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-height: 12px; }
.sv-dot { width: 6px; height: 6px; border-radius: 999px; background: #475569; transition: all .2s; }
.sv-dot.is-active { background: #DFAB6C; width: 18px; }

.sv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.sv-thumb { position: relative; flex: 0 0 auto; width: 52px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; border: 2px solid #1E293B; background: #0B0F19; opacity: .65; transition: opacity .15s, border-color .15s, box-shadow .15s; }
.sv-thumb:hover { opacity: 1; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-thumb.is-active { border-color: #DFAB6C; opacity: 1; box-shadow: 0 0 0 2px rgba(223,171,108,.3); }
.sv-thumb-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #64748B; font-weight: 800; font-size: 13px; }
.sv-thumb-num { position: absolute; left: 3px; bottom: 3px; font: 700 9px/1 ui-monospace, monospace; color: #fff; background: rgba(0,0,0,.7); padding: 2px 4px; border-radius: 4px; }
.sv-thumb-badge { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; line-height: 1; }
.sv-thumb-badge.is-ok { background: #10B981; color: #fff; }
.sv-thumb-badge.is-note { background: #F59E0B; width: 9px; height: 9px; top: 4px; right: 4px; }
.sv-hint { font-size: 11px; color: #64748B; text-align: center; margin: 0; }

.sv-panel-progress { padding: 12px 14px; border-radius: 14px; background: #0B0F19; border: 1px solid #1E293B; }
.sv-panel-nav { display: flex; gap: 8px; }
.sv-panel-nav-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #E2E8F0; background: #111827; border: 1px solid #334155; transition: background .15s, border-color .15s; }
.sv-panel-nav-btn:hover:not(:disabled) { border-color: #DFAB6C; background: #1a2133; }
.sv-panel-nav-btn:disabled { opacity: .35; cursor: default; }
.sv-panel-nav-btn svg { width: 15px; height: 15px; }

/* Tela cheia e prévia do Instagram */
.sv-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(3,5,10,.96); display: flex; flex-direction: column; color: #fff; }
.sv-ov-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; flex-wrap: wrap; flex-shrink: 0; }
.sv-ov-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 12px 8px; overflow: auto; }
.sv-ov-bottom { padding: 8px 0 18px; display: flex; justify-content: center; flex-shrink: 0; }
.sv-ov-note { text-align: center; font-size: 11px; color: #94A3B8; padding: 6px 16px 14px; margin: 0; flex-shrink: 0; }
.sv-close { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #1F2937; border: 1px solid #334155; color: #fff; }
.sv-close:hover { background: #7A1B54; border-color: #DFAB6C; }
.sv-close svg { width: 18px; height: 18px; }
.sv-lb-frame { flex: 0 0 auto; margin: auto; width: min(calc((100dvh - 150px) * 0.8), calc(100vw - 140px), 1080px); border-radius: 6px; cursor: grab; }
.sv-overlay.is-real .sv-lb-frame { width: 1080px; max-width: none; }
.sv-overlay.is-real .sv-ov-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 3; }
.sv-overlay.is-real .sv-ov-arrow-prev { left: 16px; }
.sv-overlay.is-real .sv-ov-arrow-next { right: 16px; }
@media (max-width: 639px) {
    .sv-lb-frame { width: min(calc((100dvh - 170px) * 0.8), calc(100vw - 24px)); }
    .sv-overlay-lb .sv-ov-arrow, .sv-overlay-ig .sv-ov-arrow { display: none; }
}

.sv-phone { flex: 0 0 auto; margin: auto; width: min(390px, calc(100vw - 24px)); background: #000; border: 1px solid #262626; border-radius: 22px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #F5F5F5; }
.sv-ig-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sv-ig-avatar { width: 32px; height: 32px; border-radius: 999px; padding: 2px; background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF); flex-shrink: 0; }
.sv-ig-avatar span { display: flex; width: 100%; height: 100%; border-radius: 999px; align-items: center; justify-content: center; background: #7A1B54; border: 2px solid #000; font-size: 10px; font-weight: 800; color: #DFAB6C; }
.sv-ig-user { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-ig-more { color: #A3A3A3; font-size: 12px; }
.sv-ig-frame { flex: none; width: 100%; border: 0; border-radius: 0; box-shadow: none; cursor: grab; }
.sv-ig-frame .sv-img { object-fit: cover; }
.sv-ig-actions { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 4px; }
.sv-ig-icons { display: flex; gap: 14px; }
.sv-ig-icons svg { width: 24px; height: 24px; }
.sv-ig-dots { position: absolute; left: 50%; transform: translateX(-50%); flex: none; gap: 4px; }
.sv-ig-dots .sv-dot { width: 6px; height: 6px; background: #5C5C5C; }
.sv-ig-dots .sv-dot.is-active { background: #0095F6; width: 6px; }
.sv-ig-caption { padding: 6px 12px 14px; font-size: 13px; line-height: 1.4; }
.sv-ig-muted { color: #A3A3A3; }
