/* ==========================================================================
   VISION FORGE DESIGN SYSTEM - MODERN TECH STYLING (DARK MODE & GLASSMORPHISM)
   ========================================================================== */

/* 1. RESET E DEFINIÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Harmonious Tech Color Palette (HSL Tailored) */
    --bg-main: #060913;          /* Fundo ultra-escuro */
    --bg-sidebar: #0b0f22;       /* Fundo da barra lateral */
    --accent-blue: #0ea5e9;      /* Azul ciano elétrico */
    --accent-blue-glow: rgba(14, 165, 233, 0.4);
    --accent-purple: #8b5cf6;    /* Roxo elétrico */
    --text-primary: #f8fafc;     /* Texto claro de alto contraste */
    --text-secondary: #94a3b8;   /* Texto secundário acinzentado */
    --card-bg: rgba(15, 23, 42, 0.6);  /* Fundo de vidro translúcido */
    --card-border: rgba(255, 255, 255, 0.08); /* Borda de vidro sutil */
    --card-glow: rgba(0, 0, 0, 0.3);
    --success-green: #10b981;    /* Verde sucesso */
    --danger-red: #ef4444;       /* Vermelho erro/alerta */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
}

/* 2. LAYOUT DO PORTAL - CONTAINER PRINCIPAL */
#portal-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 3. SIDEBAR DE NAVEGAÇÃO */
#portal-sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 15px var(--accent-blue-glow);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border-radius: 4px;
    background-color: var(--bg-main);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    background: none;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.05);
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-btn:hover .nav-icon {
    transform: translateX(2px);
}

.nav-btn.active .nav-icon {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 4px var(--accent-blue-glow));
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.pilot-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background-color: var(--success-green);
    box-shadow: 0 0 8px var(--success-green);
}

.status-indicator.online::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.status-details {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 4. CONTEÚDO PRINCIPAL E ABAS */
#portal-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

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

.content-header {
    margin-bottom: 36px;
}

.content-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(120deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

/* 5. GLASS CARDS - EFEITO PREMIUM VIDRO */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--card-glow);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.glass-card.highlight-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

/* 6. ABA DASHBOARD & CONCEITO */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 20px;
    background-size: 22px;
    background-position: center;
    background-repeat: no-repeat;
}

.tech-icon {
    background-color: rgba(14, 165, 233, 0.15);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230ea5e9" stroke-width="2"><rect x="2" y="2" width="20" height="14" rx="2" ry="2"/><line x="12" y="16" x="12" y="22"/><line x="8" y="22" x="16" y="22"/></svg>');
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.touch-icon-style {
    background-color: rgba(139, 92, 246, 0.15);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238b5cf6" stroke-width="2"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"/><circle class="cls-1" cx="12" cy="18" r="1"/></svg>');
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.dashboard-details {
    padding: 36px;
}

.dashboard-details h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dashboard-details > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 800px;
}

.tech-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: rgba(14, 165, 233, 0.3);
}

.tech-step h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 7. BOTÕES E INPUTS */
.btn {
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #0284c7);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0ea5e9, #0ea5e9);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: var(--danger-red);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.2);
}

.input-wrapper input, .form-group textarea, .form-group select {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 0;
    width: 100%;
    outline: none;
}

.form-group select {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
}

.form-group textarea {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 80px;
    resize: vertical;
}

.prefix {
    color: var(--text-secondary);
    margin-right: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.suffix {
    color: var(--text-secondary);
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* 8. ABA DO SIMULADOR FINANCEIRO */
.simulator-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 30px;
    align-items: start;
}

.simulator-inputs h3, .simulator-results h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 14px;
}

.product-selector, .billing-model-selector {
    display: flex;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    gap: 4px;
}

.select-btn, .model-btn {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.select-btn.active, .model-btn.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.select-btn.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.metric-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 1100px) {
    .metric-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.metric-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-card.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(0, 0, 0, 0.2));
    border-color: rgba(16, 185, 129, 0.3);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-value.text-green {
    color: var(--success-green);
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.text-green { color: var(--success-green) !important; }
.text-red { color: var(--danger-red) !important; }
.text-blue { color: var(--accent-blue) !important; }

.chart-summary {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.chart-summary h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.projection-highlight {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.financial-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.table-row strong {
    color: var(--text-primary);
}

hr {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 4px 0;
}

.thin-hr {
    margin: 16px 0;
}

.table-row.total {
    font-size: 0.95rem;
}

.table-row.total.highlight-row {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.08), transparent);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--success-green);
}

.payback-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payback-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.payback-bar-container {
    height: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.payback-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-blue), var(--success-green));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.payback-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 9. SIMULADOR TV DE RECEPÇÃO */
.tv-simulator-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.tv-frame-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-bezel {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #1e293b;
    border: 14px solid #0f172a;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background-color: #020617;
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
}

.tv-header {
    height: 14%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    color: white;
    z-index: 10;
}

.tv-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.tv-logo-symbol {
    width: 16px;
    height: 16px;
    background-color: var(--accent-blue);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-blue);
}

.tv-weather-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.weather-temp {
    color: var(--accent-blue);
    font-weight: 700;
}

.tv-body {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.tv-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4%;
    animation: tvFadeIn 0.5s ease;
}

@keyframes tvFadeIn {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 80%;
}

.embassy-flag {
    width: 70px;
    height: 46px;
    background: linear-gradient(to right, #008c45 33.3%, #f4f5f0 33.3%, #f4f5f0 66.6%, #cd212a 66.6%);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.welcome-container h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
}

.welcome-container p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.5;
}

.welcome-container strong {
    color: #f4f5f0;
}

.ad-slide-container {
    display: grid;
    grid-template-columns: 45% 55%;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 30px;
    text-align: left;
    padding: 0 4%;
}

.ad-visual-sim {
    height: 80%;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.ad-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.ad-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--accent-blue-glow);
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ad-desc {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.tv-ticker-bar {
    height: 10%;
    background-color: #0f172a;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 20px;
}

.ticker-title {
    background-color: var(--accent-blue);
    color: #020617;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-items {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 25s linear infinite;
    font-size: 0.85rem;
    color: #94a3b8;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.tv-support-bar {
    width: 80px;
    height: 30px;
    background-color: #0f172a;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.tv-controls-panel h3, .totem-controls-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tv-controls-panel > p, .totem-controls-panel > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.ai-generator-box {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.ai-generator-box h4, .playlist-manager h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.playlist-manager {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.playlist-item.active {
    background-color: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
}

.item-index {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.playlist-item.active .item-index {
    background-color: var(--accent-blue);
    color: #020617;
    font-weight: 700;
}

.item-title {
    font-size: 0.85rem;
    font-weight: 500;
    flex-grow: 1;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   10. PROTÓTIPO DO TOTEM TOUCH - MOCKUP FÍSICO ESTILO LG STANBYME
   ========================================================================== */
.totem-simulator-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    justify-items: center;
}

/* Estrutura de Pedestal (Mockup tridimensional) */
.totem-physical-frame {
    width: 320px;
    height: 640px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.totem-screen-body {
    width: 280px;
    height: 500px;
    background-color: #f8fafc; /* Estrutura branca premium do monitor */
    border: 8px solid #cbd5e1;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.totem-neck-support {
    width: 14px;
    height: 520px;
    background: linear-gradient(to right, #e2e8f0, #ffffff, #cbd5e1);
    position: absolute;
    top: 50px;
    z-index: 5;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.totem-base-wheels {
    width: 160px;
    height: 28px;
    background: linear-gradient(to bottom, #f1f5f9, #cbd5e1);
    border-radius: 40px;
    position: absolute;
    bottom: 5px;
    z-index: 4;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 12px;
}

.totem-base-wheels::after {
    content: '';
    width: 180px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    position: absolute;
    bottom: -6px;
    filter: blur(4px);
    z-index: -1;
}

/* Tela Touch de Alto Padrão */
.totem-display {
    width: 100%;
    height: 100%;
    background-color: #090e1a;
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
}

/* UI do Quiosque */
.totem-kiosk-ui {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    position: relative;
}

.kiosk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.kiosk-building-info h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.kiosk-building-info span {
    font-size: 0.65rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.kiosk-time-weather {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.7rem;
    font-weight: 600;
}

#kiosk-time {
    color: white;
}

.kiosk-weather {
    color: var(--text-secondary);
}

.kiosk-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.kiosk-search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    flex-shrink: 0;
}

.kiosk-search-bar input {
    background: none;
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 8px 0;
    width: 100%;
    outline: none;
    cursor: pointer;
}

.kiosk-clear-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
}

.kiosk-quick-cats {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex-shrink: 0;
}

.kiosk-quick-cats::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cat-pill:hover {
    background-color: rgba(14, 165, 233, 0.1);
    border-color: var(--accent-blue);
}

.kiosk-content-wrapper {
    display: flex;
    flex-grow: 1;
    gap: 8px;
    overflow: hidden;
}
/* Seletor de Andares (Dropdown Touch) */
.kiosk-floor-selector-container {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.kiosk-floor-dropdown-btn {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kiosk-floor-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.kiosk-floor-dropdown-btn.active .dropdown-chevron {
    transform: rotate(180deg);
}

.kiosk-floor-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: #0b0f22;
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 12px;
    padding: 12px;
    z-index: 99;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: none;
}

.kiosk-floor-dropdown-menu::-webkit-scrollbar {
    display: none;
}

.floor-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floor-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.floor-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-color: var(--accent-blue);
    color: white;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.kiosk-results-panel {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espaço maior para menor densidade */
    scrollbar-width: none; /* Ocultar barra de rolagem */
}

.kiosk-results-panel::-webkit-scrollbar {
    display: none; /* Ocultar barra no Chrome/Safari */
}

.kiosk-item {
    background-color: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px; /* Touch amigável e espaçoso */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.kiosk-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.kiosk-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kiosk-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.kiosk-item-specialty {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.kiosk-item-room {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    background-color: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
}

.kiosk-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
    margin-top: 8px;
    text-align: center;
    font-size: 0.55rem;
    color: var(--text-secondary);
}

/* Teclado Virtual */
.kiosk-virtual-keyboard {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    border-top: 2px solid rgba(14, 165, 233, 0.4);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 30;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.keyboard-row button {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
}

.keyboard-row button:active {
    background-color: var(--accent-blue);
    color: black;
}

.keyboard-row button.key-wide {
    flex-grow: 2;
    background-color: rgba(255, 255, 255, 0.15);
}

.keyboard-row button.key-extra-wide {
    flex-grow: 5;
    background-color: rgba(255, 255, 255, 0.1);
}

.keyboard-row button.btn-close-key {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--accent-blue);
}

/* Modal Detalhado */
.kiosk-detail-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 16px;
    backdrop-filter: blur(4px);
    animation: modalFade 0.2s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background-color: #0b0f22;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    width: 100%;
    padding: 16px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.modal-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 12px;
    gap: 4px;
}

.modal-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.modal-card-header h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.modal-card-header span {
    font-size: 0.65rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.modal-card-body {
    font-size: 0.6rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-card-body p {
    line-height: 1.4;
}

.modal-card-body strong {
    color: white;
}

.modal-contact {
    margin-top: 4px;
    padding: 6px;
    background-color: rgba(255,255,255,0.02);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.simulated-qrcode {
    width: 65px;
    height: 65px;
    background-color: white;
    border: 3px solid white;
    border-radius: 4px;
    /* Simulated QR Code look */
    background-image: radial-gradient(black 30%, transparent 30%),
                      radial-gradient(black 30%, transparent 30%),
                      radial-gradient(black 30%, transparent 30%);
    background-size: 8px 8px, 6px 6px, 10px 10px;
    background-position: 4px 4px, 40px 10px, 12px 35px;
    background-repeat: no-repeat;
    position: relative;
}

.simulated-qrcode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border: 3px solid black;
}

.simulated-qrcode::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border: 3px solid black;
}

.qrcode-section span {
    font-size: 0.5rem;
    color: var(--text-secondary);
}

/* Screensaver */
.totem-kiosk-screensaver {
    width: 100%;
    height: 100%;
    background-color: #020617; /* Fundo sólido para ocultar a tela de busca na transição */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    cursor: pointer;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

/* Custom video background position - Landscape 16:9 "a bit above the middle" */
.totem-bg-video {
    position: absolute;
    top: 17%;
    left: 16px;
    width: calc(100% - 32px);
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    z-index: 5;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(14, 165, 233, 0.25);
    opacity: 0.95;
    pointer-events: none;
}

.screensaver-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.screensaver-ad-slide {
    position: absolute;
    bottom: 95px; /* Sits beautifully above the touch overlay */
    left: 16px;
    width: calc(100% - 32px);
    height: 230px; /* Precise landscape card height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: screensaverFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
}

@keyframes screensaverFadeIn {
    from { opacity: 0; transform: scale(1.03) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.screensaver-ad-content-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.screensaver-ad-icon {
    font-size: 3rem;
    width: 65px;
    height: 65px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.screensaver-ad-tag {
    align-self: flex-start;
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 0.62rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.screensaver-ad-slide h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.screensaver-ad-slide h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.screensaver-ad-slide p {
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 12px;
}

.screensaver-ad-footer-room {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* Touch Overlay */
.screensaver-touch-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 70%, transparent);
    padding: 16px 20px 24px 20px;
    text-align: center;
    z-index: 20;
}

.pulse-touch {
    display: inline-block;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: touchPulse 2s infinite;
}

@keyframes touchPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.96); text-shadow: 0 0 0 rgba(14, 165, 233, 0); }
    50% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 10px var(--accent-blue); }
}

/* Painel de administração e ajuda lateral */
.kiosk-admin-panel {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.kiosk-admin-panel h4, .kiosk-help-box h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.admin-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

.admin-stat-row strong {
    color: var(--text-primary);
}

.admin-btn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.kiosk-help-box {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
}

.kiosk-help-box p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.kiosk-help-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   10. INTEGRAÇÃO ABLESIGN CMS (LIVE DASHBOARD)
   ========================================================================== */
.ablesign-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 16px;
}

/* Config de Chave e Workspace */
.ablesign-config {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 1;
}

.ablesign-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.api-status-badge.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-green);
    box-shadow: 0 0 8px var(--success-green);
    animation: indicatorPulse 1.5s infinite alternate;
}

@keyframes indicatorPulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--success-green); }
}

.ablesign-info-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.api-key-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.api-key-wrapper input {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
    outline: none;
}

.workspace-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
}

/* Telas (Screens) */
.ablesign-screens {
    grid-column: 2;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.screen-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screen-card:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(14, 165, 233, 0.05);
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.screen-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.screen-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.screen-status-dot.online {
    background-color: var(--success-green);
    box-shadow: 0 0 6px var(--success-green);
}

.screen-status-dot.offline {
    background-color: var(--text-secondary);
}

.screen-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.screen-info-row strong {
    color: var(--text-primary);
}

.screen-thumbnail-preview {
    height: 100px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    gap: 4px;
    text-align: center;
    padding: 8px;
}

.preview-tag {
    font-size: 0.65rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
}

/* Playlists e Sincronização */
.ablesign-playlist {
    grid-column: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: -8px;
    margin-bottom: 8px;
}

.playlist-sync-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.playlist-selector-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
}

.playlist-selector-box select {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.sync-status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 16px;
    border-radius: 10px;
    animation: bannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-icon {
    font-size: 1.8rem;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-text strong {
    color: #a7f3d0;
    font-size: 0.95rem;
}

.banner-text span {
    color: #d1fae5;
    font-size: 0.85rem;
}

/* Console/Logger de Sincronização */
.sync-console-box {
    background-color: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    margin-top: 10px;
}

.console-header {
    background-color: #0f172a;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.console-dot-group {
    display: flex;
    gap: 6px;
}

.c-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
}

.c-dot:nth-child(2) { background-color: #eab308; }
.c-dot:nth-child(3) { background-color: #22c55e; }

.console-body {
    padding: 16px;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #38bdf8;
    text-align: left;
}

.console-line {
    white-space: pre-wrap;
}

.console-line.info { color: #94a3b8; }
.console-line.success { color: #4ade80; }
.console-line.warning { color: #facc15; }

.playlist-table-container {
    overflow-x: auto;
    margin-top: 10px;
}

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

.playlist-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.playlist-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Biblioteca de Mídias (Media Files) */
.ablesign-media {
    grid-column: 1 / span 2;
}

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.media-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.media-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(139, 92, 246, 0.05);
}

.media-card-preview {
    height: 120px;
    background-color: rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.media-thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.media-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
}

.media-card-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.media-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.media-card-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.media-card-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   10B. CENTRAL DE LOGIN, ESTÚDIO DE PROMOÇÕES IA & FATURAMENTO
   ========================================================================== */

/* --- 10B.1 MOLDURA DE LOGIN SEGURO --- */
.login-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #0c122c 0%, #030408 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
}

.login-overlay-container.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.login-background-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.login-background-lights .light {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: floatingLights 12s infinite alternate ease-in-out;
}

.light-blue {
    width: 400px;
    height: 400px;
    background-color: var(--accent-blue);
    top: -100px;
    left: -100px;
}

.light-cyan {
    width: 500px;
    height: 500px;
    background-color: #06b6d4;
    bottom: -150px;
    right: -150px;
    animation-delay: -4s !important;
}

@keyframes floatingLights {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.2); }
}

.login-card-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.05);
    border-radius: 20px;
    animation: loginCardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loginCardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #06b6d4 100%);
    border-radius: 12px;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    position: relative;
}

.login-logo-icon::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #020617;
    border-radius: 4px;
    top: 16px;
    left: 16px;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff 30%, #e2e8f0 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
    animation: shakeAlert 0.4s ease;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px !important;
}

.btn-toggle-pass {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    transition: color 0.2s;
}

.btn-toggle-pass:hover {
    color: white;
}

.login-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    position: relative;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 6px var(--accent-blue);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-pass-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-pass-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.login-quick-access {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

.login-quick-access h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 15px;
}

.quick-access-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-quick {
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-quick.cafe:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.btn-quick.burger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.quick-access-desc {
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
}

/* --- 10B.2 GRID DO ESTÚDIO DE IA --- */
.aipromos-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .aipromos-layout {
        grid-template-columns: 1fr;
    }
}

.aipromos-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.aipromos-main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- 10B.3 UPLOAD E SELETORES --- */
.brand-config-card {
    border-left: 4px solid var(--accent-blue);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.file-upload-wrapper:hover {
    border-color: var(--accent-blue);
    background: rgba(14, 165, 233, 0.04);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.logo-icon-svg {
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a5 5 0 1 0 10 0 5 5 0 1 0-10 0Z'/%3E%3Cpath d='M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: transform 0.2s;
}

.file-upload-wrapper:hover .logo-icon-svg {
    transform: scale(1.1);
    opacity: 1;
}

.logo-preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.logo-preview-container img {
    height: 50px;
    max-width: 150px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-xs {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
}

.color-picker-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.color-item {
    margin-bottom: 0 !important;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    height: 40px;
}

.color-picker-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.color-hex-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* --- 10B.4 FOTO DO PRODUTO E CAMPAINHA --- */
.campaign-card {
    border-left: 4px solid #06b6d4;
}

.product-upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.01);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-upload-dropzone:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.04);
}

.upload-svg-icon {
    width: 42px;
    height: 42px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    opacity: 0.6;
    transition: transform 0.3s;
}

.product-upload-dropzone:hover .upload-svg-icon {
    transform: scale(1.1) rotate(5deg);
    color: #06b6d4;
    opacity: 1;
}

.product-upload-dropzone strong {
    display: block;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 4px;
}

.product-upload-dropzone span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.product-preview-container {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
}

.product-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-photo-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* --- 10B.5 WIZARD IA E LOADER --- */
.ai-wizard-card {
    border-left: 4px solid #f59e0b;
    animation: wizardGlow 2s infinite alternate;
}

@keyframes wizardGlow {
    from { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05); }
    to { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15); }
}

.wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.wizard-step {
    display: flex;
    gap: 15px;
    align-items: start;
    transition: all 0.3s ease;
}

.wizard-step.waiting {
    opacity: 0.4;
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 3px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-top: 4px;
}

.wizard-step.waiting .step-dot {
    background: #475569;
}

.wizard-step:not(.waiting):not(.completed) .step-dot {
    background: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    animation: stepBlink 1s infinite alternate;
}

.wizard-step.completed .step-dot {
    background: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 8px #10b981;
}

@keyframes stepBlink {
    from { transform: scale(1); box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    to { transform: scale(1.15); box-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }
}

.step-text h4 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 2px;
}

.step-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.wizard-step.completed h4 {
    color: #10b981;
}

/* --- 10B.6 O SIMULADOR DE TV (SCREEN) --- */
.preview-card {
    border-left: 4px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
}

.preview-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.preview-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.preview-badge.ready {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    animation: pulseGreenBadge 2s infinite;
}

@keyframes pulseGreenBadge {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
}

.tv-simulator-container {
    width: 100%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.tv-simulator-frame {
    width: 100%;
    max-width: 780px;
    aspect-ratio: 16 / 9;
    border: 12px solid #0f172a;
    border-bottom: 24px solid #0f172a;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tv-screen-content {
    flex-grow: 1;
    width: 100%;
    height: calc(100% - 24px); /* desconta o suporte inferior */
    background: #020617;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.tv-bezel-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: #475569;
    font-size: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 30;
}

.tv-led-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.tv-led-indicator.blinking {
    animation: ledPulse 1s infinite alternate;
}

@keyframes ledPulse {
    from { background: #38bdf8; box-shadow: 0 0 2px #38bdf8; }
    to { background: #00f0ff; box-shadow: 0 0 10px #00f0ff; }
}

/* ESTADOS DA SIMULAÇÃO */
.tv-state-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #475569;
    z-index: 10;
    position: relative;
}

.empty-tv-icon {
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='12' y1='16' x2='12' y2='22'/%3E%3Cline x1='8' y1='22' x2='16' y2='22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 15px;
    opacity: 0.5;
}

.tv-state-empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 5px;
}

.tv-state-empty p {
    font-size: 0.8rem;
    max-width: 60%;
    line-height: 1.4;
}

/* LAYOUT ATIVO DA TV DA PROMOÇÃO (4K FEELING) */
.tv-state-active {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 3.5%;
    color: white;
}

.tv-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-1, #ff5733) 0%, var(--bg-2, #1a1a2e) 100%);
    background-size: 200% 200%;
    z-index: 1;
    animation: liquidBG 10s infinite alternate ease-in-out;
}

@keyframes liquidBG {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.tv-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px);
    background-size: 8px 8px;
    z-index: 2;
}

.tv-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 12%;
    z-index: 10;
    position: relative;
}

.tv-logo-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    max-height: 40px;
}

.tv-logo-container img {
    height: 26px;
    max-width: 120px;
    object-fit: contain;
}

.tv-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: white;
    text-transform: uppercase;
}

.tv-campaign-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    color: white;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    animation: scalePulse 2s infinite alternate;
}

@keyframes scalePulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.tv-main-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    width: 100%;
    height: 88%;
    align-items: center;
    z-index: 10;
    position: relative;
    gap: 3%;
}

.tv-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    height: 100%;
}

.tv-product-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 6px;
    animation: slideInText 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tv-product-headline {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--accent-cyan, #06b6d4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    animation: slideInText 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.tv-product-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #cbd5e1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
    max-width: 92%;
    animation: slideInText 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

.tv-price-block {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 3px;
    animation: slideInText 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.tv-price-original {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.tv-price-promotional {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-price-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 6px 18px;
    border-radius: 12px;
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
    animation: bouncePrice 1s infinite alternate;
}

@keyframes bouncePrice {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-4px) scale(1.03); }
}

.tv-price-badge .currency {
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 3px;
}

.tv-price-badge .value {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* LADO DIREITO DA TV: FOTO FLUTUANTE */
.tv-image-column {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.tv-product-card-frame {
    width: 82%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: floatProduct 5s infinite ease-in-out alternate both;
}

.tv-product-card-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
}

@keyframes floatProduct {
    0% { transform: translateY(8px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(2deg); }
}

/* APROVAÇÃO E CONTROLES (REVIEW PANEL) */
.review-controls-box {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(16, 185, 129, 0.02);
    border-left: 4px solid #10b981;
}

.review-controls-box h4 {
    color: #10b981;
    margin-bottom: 2px;
}

.approval-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 15px;
}

/* --- 10B.7 ABA DE FATURAMENTO & PRICING --- */
.billing-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.billing-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent-cyan);
    padding: 30px;
}

@media (max-width: 768px) {
    .billing-summary-card {
        flex-direction: column;
        align-items: start;
        gap: 20px;
    }
}

.summary-left h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-top: 4px;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.summary-details {
    display: flex;
    gap: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.detail-item strong {
    font-size: 0.9rem;
    color: white;
}

.summary-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.credits-circle-box {
    position: relative;
    width: 100px;
    height: 100px;
}

.credits-count-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.credits-count-wrapper .count-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #06b6d4;
    line-height: 1;
}

.credits-count-wrapper .count-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-progress-svg {
    width: 100%;
    height: 100%;
}

.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.c-cyan .circle {
    stroke: #06b6d4;
}

.credits-help-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* PRICING GRID */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 25px;
    align-items: center;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.06);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured-glow {
    border-color: rgba(14, 165, 233, 0.25);
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.06) 0%, rgba(15, 23, 42, 0.4) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.08);
    transform: scale(1.03);
}

.pricing-card.featured-glow:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(14, 165, 233, 0.15);
}

.pricing-header {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-pkg {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.badge-pkg.active {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.pricing-header h4 {
    font-size: 1.15rem;
    color: white;
    font-weight: 700;
}

.price-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 15px;
    font-family: var(--font-heading);
}

.price-value-row .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-right: 2px;
}

.price-value-row .price {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    line-height: 1;
}

.price-value-row .period {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 2px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    color: #cbd5e1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
}

/* --- 10B.8 MODAIS DE CHECKOUT --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 17, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 16px;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.hidden) .modal-box {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.15rem;
    color: white;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: white;
}

/* CHECKOUT PIX DETALHES */
.pix-checkout-details, .stripe-product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.pix-qr-code-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.pix-qr-frame {
    width: 160px;
    height: 160px;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pix-simulated-qr {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(black 30%, transparent 30%), radial-gradient(black 30%, transparent 30%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    background-color: white;
    border: 4px solid black;
    position: relative;
}

/* Quadrados pretos de canto padrão do QR code */
.pix-simulated-qr::before, .pix-simulated-qr::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    border: 7px solid black;
    background: white;
}

.pix-simulated-qr::before { top: 0; left: 0; }
.pix-simulated-qr::after { bottom: 0; left: 0; }

.pix-timer-box {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pix-countdown {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
}

.copy-paste-wrapper {
    display: flex;
    gap: 10px;
}

.copy-paste-wrapper input {
    flex-grow: 1;
}

.pix-status-spinner {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(6, 182, 212, 0.15);
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: spinLoader 0.8s infinite linear;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* STRIPE INTERACTIVE 3D CREDIT CARD */
.credit-card-3d-wrapper {
    width: 320px;
    height: 190px;
    perspective: 1000px;
    margin: 0 auto 25px auto;
    cursor: pointer;
}

.credit-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credit-card-inner.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.card-front {
    background: linear-gradient(135deg, #1e1b4b 0%, #0c122c 50%, #030712 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
    z-index: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    z-index: 2;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-brand-logo {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}

.card-number-display {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: white;
    margin-bottom: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.lbl {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.val {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* VERSO DO CARTÃO */
.card-back {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(180deg);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.card-magnetic-strip {
    height: 40px;
    background: #000;
    width: 100%;
    margin-bottom: 20px;
}

.card-signature-area {
    background: rgba(255, 255, 255, 0.15);
    height: 38px;
    width: 85%;
    margin: 0 auto;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 15px;
    position: relative;
}

.signature-lines {
    position: absolute;
    left: 10px;
    width: 60%;
    height: 100%;
    background-image: linear-gradient(to bottom, transparent 30%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.3) 40%, transparent 40%);
    background-size: 100% 10px;
}

.card-cvv-display {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    background: white;
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.card-back-footer {
    margin-top: auto;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 0 20px;
}

.stripe-security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 8px;
}

.lock-icon {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
}

/* ==========================================================================
   11. FOLHA DE IMPRESSÃO (COMO FICARÁ A PROPOSTA COMERCIAL A4 EM PDF)
   ========================================================================== */
.print-only {
    display: none;
}

@media print {
    /* Esconde tudo na tela */
    #portal-container {
        display: none !important;
    }

    body {
        background-color: white !important;
        color: black !important;
        font-family: 'Inter', sans-serif;
    }

    .print-only {
        display: block !important;
        padding: 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 3px solid #000000;
        padding-bottom: 20px;
        margin-bottom: 40px;
    }

    .print-logo-area h2 {
        font-family: 'Outfit', sans-serif;
        font-size: 1.8rem;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .print-logo-area span {
        font-size: 0.8rem;
        color: #4b5563;
        text-transform: uppercase;
        font-weight: 600;
    }

    .print-doc-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        font-size: 0.85rem;
    }

    .print-doc-meta strong {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    h3 {
        font-family: 'Outfit', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 12px;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 6px;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #1f2937;
        margin-bottom: 24px;
    }

    ul {
        margin-bottom: 24px;
        padding-left: 20px;
    }

    li {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #1f2937;
        margin-bottom: 10px;
    }

    .print-table {
        border: 1px solid #d1d5db;
        border-radius: 6px;
        margin-bottom: 24px;
        overflow: hidden;
    }

    .print-table-row {
        display: flex;
        justify-content: space-between;
        padding: 12px 20px;
        border-bottom: 1px solid #e5e7eb;
        font-size: 0.95rem;
    }

    .print-table-row.header {
        background-color: #f3f4f6;
        font-weight: 700;
        border-bottom: 2px solid #cbd5e1;
    }

    .print-table-row:last-child {
        border-bottom: none;
    }

    .print-observacao {
        background-color: #f9fafb;
        border-left: 4px solid #000000;
        padding: 15px;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #374151;
    }

    .print-signatures {
        display: flex;
        justify-content: space-between;
        margin-top: 60px;
    }

    .signature-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 45%;
    }

    .signature-line {
        width: 100%;
        border-bottom: 1px solid #000000;
        margin-bottom: 8px;
    }

    .signature-box span {
        font-size: 0.8rem;
        color: #4b5563;
        font-weight: 600;
    }
}
