/* TODO: Refactor CSS to reduce 200+ !important flags. Most are in media queries (acceptable)
   but some in base styles cause specificity wars. Target: reduce to <50. */

/* =======================================================
   BaaS - STYLE.CSS (V10)
   Conteúdo:
   1. Estilos Originais (Home, Login, Checkout Detalhado)
   2. Novos Estilos (Painel Admin, Painel Usuário, Fidelidade)
   ======================================================= */

/* --- 1. VARIÁVEIS (CORES GLOBAIS) --- */
:root {
    --primary: #000000;      /* Fundo Principal */
    --secondary: #111111;    /* Fundo Secundário (Barras/Rodapé) */
    --card-bg: #1a1a1a;      /* Fundo Cards */
    --bg-main: #1a1a1a;      /* Alias usado no admin */
    --accent: #d4af37;       /* Dourado Principal */
    --accent-light: #b8860b;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: rgba(255, 255, 255, 0.55);
    --success: #28a745;      /* Verde */
    --danger: #dc3545;       /* Vermelho */
    --warning: #f59e0b;      /* Amarelo/Âmbar */
    --warning-bg: rgba(245,158,11,0.12);
    --gray: #888888;
    --border: #333333;
    --border-radius: 12px;
    
    /* Tokens Adaptativos */
    --bg-glass: rgba(17, 17, 17, 0.75);
    --bg-inner: rgba(0, 0, 0, 0.4);
    --border-glass: rgba(255, 255, 255, 0.05);
    --shadow-main: rgba(0, 0, 0, 0.5);
    --input-bg: #000000;

    /* Tema roxo — Assinaturas */
    --purple: #9333ea;
    --purple-text: #c084fc;
    --purple-bg: rgba(147, 51, 234, 0.12);
    --purple-border: rgba(147, 51, 234, 0.45);
}

[data-theme="light"] {
    --primary: #fcfcfc;      /* Fundo Principal - Off White Premium */
    --secondary: #f3f4f6;    /* Fundo Secundário mais suave */
    --card-bg: #ffffff;      /* Cards brilham sobre o fundo off-white */
    --bg-main: #ffffff;      /* Alias usado no admin */
    --accent: #b8860b;       /* Dourado com contraste */
    --accent-light: #9a7209;
    --text-primary: #1a1a1b; /* Quase preto, mais suave */
    --text-secondary: #4b5563;
    --text-muted: rgba(0, 0, 0, 0.5); /* Aumentado de 0.4 para 0.5 */
    --border: #e5e7eb;
    --gray: #6b7280;
    
    /* Tokens Adaptativos */
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-inner: rgba(0, 0, 0, 0.06);
    --border-glass: rgba(0, 0, 0, 0.12);
    --shadow-main: rgba(0, 0, 0, 0.04);
    --input-bg: #ffffff;
    --warning: #d97706;
    --warning-bg: rgba(217,119,6,0.1);
}

/* --- ESTRUTURA DASHBOARD --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* --- BOTÕES DE SINCRONIZAÇÃO/PAGINAÇÃO --- */
.btn-sync-ai, .pagination-btn {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-sync-ai:hover, .pagination-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.btn-sync-ai:disabled, .pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #333;
    color: #666;
}

/* --- 2. BASE (RESET) --- */
* {
    margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;
}
body {
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === BACKGROUND STYLES (data-bg-style) === */

/* solid-dark: default — nenhum estilo extra */
body[data-bg-style="solid-dark"] {
    background-color: var(--primary);
}

/* grain: textura granulada (noise) */
body[data-bg-style="grain"] {
    background-color: #0a0a0a;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
[data-theme="light"] body[data-bg-style="grain"] {
    background-color: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* geometric: linhas diagonais finas */
body[data-bg-style="geometric"] {
    background-color: #080808;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.015) 20px,
            rgba(255, 255, 255, 0.015) 21px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.015) 20px,
            rgba(255, 255, 255, 0.015) 21px
        );
}
[data-theme="light"] body[data-bg-style="geometric"] {
    background-color: #f8f8f8;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(0, 0, 0, 0.02) 20px,
            rgba(0, 0, 0, 0.02) 21px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(0, 0, 0, 0.02) 20px,
            rgba(0, 0, 0, 0.02) 21px
        );
}

/* gradient: gradiente escuro com accent color */
body[data-bg-style="gradient"] {
    background: radial-gradient(ellipse at 20% 0%, rgba(var(--accent-rgb, 212, 175, 55), 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(var(--accent-rgb, 212, 175, 55), 0.05) 0%, transparent 50%),
                #050505;
}
[data-theme="light"] body[data-bg-style="gradient"] {
    background: radial-gradient(ellipse at 20% 0%, rgba(var(--accent-rgb, 184, 134, 11), 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(var(--accent-rgb, 184, 134, 11), 0.04) 0%, transparent 50%),
                #fafafa;
}

/* velvet: tom escuro quente */
body[data-bg-style="velvet"] {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f0f1a 100%);
    background-attachment: fixed;
}
[data-theme="light"] body[data-bg-style="velvet"] {
    background: linear-gradient(160deg, #f0eff4 0%, #e8ecf1 40%, #f5f5f5 100%);
    background-attachment: fixed;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Dark-mode select dropdowns */
select {
    color-scheme: dark;
}
select option {
    background: #1e1e2a;
    color: #e0e0e0;
}
[data-theme="light"] select {
    color-scheme: light;
}
[data-theme="light"] select option {
    background: #ffffff;
    color: #1a1a2e;
}

/* Custom Scrollbars (Webkit) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }


/* --- 3. LAYOUT GLOBAL (TOPO, HEADER) --- */

/* Barra Superior (Top Bar) */
.top-bar {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem; 
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 2500; /* Ajustado para que o tooltip (horários) sobreponha o header */
    letter-spacing: 0.3px;
}


.info-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Status do Horário */
.status-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 20px;
}

.status-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
}

.status-wrapper:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.15);
}

.status-indicador { 
    width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 10px; 
    position: relative;
    background-color: currentColor; /* Garante que a bolinha tenha a cor do status */
    box-shadow: 0 0 5px currentColor;
}

/* Efeito Glow Pulsante (Estilo Radar/Live) */
.status-indicador::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: status-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    z-index: -1;
}

@keyframes status-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    70% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.status-fechado { color: var(--danger); font-weight: 600; display: flex; align-items: center; }
.status-aberto { color: var(--success); font-weight: 600; display: flex; align-items: center; }
.status-alerta { color: #f1c40f; font-weight: 600; display: flex; align-items: center; } /* Amarelo para "Fechando em Breve" */

.separador { 
    color: var(--border-glass); font-weight: 300; line-height: 1; margin: 0 5px;
}

/* Links do Topo */
.top-bar a, .top-bar span.copy-trigger { 
    color: var(--text-secondary); 
    display: inline-flex; 
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar a:hover, .top-bar span.copy-trigger:hover, .theme-toggle-btn:hover { 
    color: var(--accent); 
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.social-links { 
    display: flex; 
    gap: 25px;
    align-items: center; 
}

/* Tooltip de Horários (Premium Design) */
.tooltip-horarios {
    visibility: hidden; width: 260px; background-color: var(--bg-glass); color: var(--text-primary);
    border-radius: 12px; padding: 20px; position: absolute; z-index: 9999; top: 160%; left: 0;
    border: 1px solid var(--border-glass); 
    box-shadow: 0 10px 30px var(--shadow-main), inset 0 0 20px rgba(212,175,55,0.05);
    opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    transform: translateY(-10px) scale(0.95); 
    font-size: 0.8rem; line-height: 1.8;
    backdrop-filter: blur(10px);
}
.status-wrapper:hover .tooltip-horarios { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }

.tooltip-horarios strong { 
    display: block; color: var(--accent); margin-bottom: 12px; 
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem;
    border-bottom: 1px solid var(--border-glass); padding-bottom: 8px;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 2px 5px;
    border-radius: 4px;
}

.horario-item.hoje {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.horario-item span.dia { color: #888; }
.horario-item.hoje span.dia { color: var(--accent); }
.horario-item span.hora { color: var(--text-secondary); }
.horario-item.hoje span.hora { color: var(--text-primary); }

/* Cabeçalho (Header) - Redesign Premium */
header {
    background-color: var(--primary);
    padding: 15px 5%;
    position: sticky; top: 0; z-index: 2000; /* Mantido como 2000 */
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px var(--shadow-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

header.scrolled {
    padding: 10px 5%;
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 25px var(--shadow-main);
}

.logo-container { 
    margin-bottom: 0; 
    transition: transform 0.3s ease;
}
.logo-container:hover { transform: scale(1.05); }

.logo-img { 
    max-height: 85px; 
    width: auto; 
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
    transition: filter 0.3s ease;
}

[data-theme="light"] .logo-img {
    filter: invert(1) brightness(0.2); /* Torna o logo preto suave no modo claro */
}

nav { width: auto; }
nav ul { 
    display: flex; gap: 15px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; margin-top: 0;
}

/* Scroll Indicator */


/* Grupo de Saudação + Perfil (logado) */
.greeting-wrapper {
    display: flex; 
    align-items: center; 
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.greeting-text {
    color: var(--text-primary); font-size: 0.95rem; cursor: default; white-space: nowrap;
}

/* Botões do Menu */
.btn-menu.destaque {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    line-height: 1;
    font-family: inherit;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 22px;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(212, 175, 55, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-menu.destaque:hover { 
    background-color: var(--accent); 
    color: #000 !important; 
    border-color: var(--accent);
    /* transform: translateY(-2px); Removido para manter o botão fixo conforme solicitado */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .btn-menu.destaque {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Botão de Assinaturas — tema roxo, compatível com dark/light */
.btn-assinatura {
    background: rgba(147, 51, 234, 0.22) !important;
    border: 1px solid rgba(167, 91, 244, 0.7) !important;
    color: #ffffff !important;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.btn-assinatura:hover {
    background: #9333ea !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(147, 51, 234, 0.5) !important;
}

[data-theme="light"] .btn-assinatura {
    background: rgba(147, 51, 234, 0.12) !important;
    border: 1px solid rgba(147, 51, 234, 0.5) !important;
    color: #6d28d9 !important;
}

[data-theme="light"] .btn-assinatura:hover {
    background: #9333ea !important;
    border-color: #9333ea !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35) !important;
}

.desktop-nav-shell {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-left: 20px;
}

.desktop-main-links {
    flex: 1;
    gap: 10px !important;
    justify-content: flex-start !important;
}

.desktop-nav-shell .btn-menu.destaque {
    height: 35px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.desktop-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-assinatura-outline {
    background: rgba(147, 51, 234, 0.06) !important;
    border: 1px solid rgba(167, 91, 244, 0.55) !important;
    color: #d9c4ff !important;
}

.btn-assinatura-outline:hover {
    background: rgba(147, 51, 234, 0.2) !important;
    border-color: rgba(192, 132, 252, 0.95) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35) !important;
}

.header-icon-btn {
    position: relative;
    min-width: 64px;
    height: 35px;
    min-height: 35px;
    padding: 0 18px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.header-icon-btn:hover {
    color: #000 !important;
}

.header-icon-btn.active {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.22) !important;
    color: #000 !important;
}

.header-icon-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.header-icon-badge {
    position: absolute;
    top: -6px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #000;
    font-size: 0.63rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.header-account-trigger {
    min-width: 64px;
    gap: 9px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    justify-content: flex-start !important;
    padding: 0 14px !important;
}

.header-account-initial {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light, #b8860b));
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-account-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-account-chevron {
    font-size: 0.65rem;
    opacity: 0.75;
}

.header-account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    width: min(280px, calc(100vw - 24px));
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    z-index: 3000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform-origin: top right;
    animation: header-menu-in 0.15s ease-out;
}

@keyframes header-menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-account-userline {
    display: flex;
    align-items: center;
    padding: 2px 4px 8px 4px;
}

.header-account-levelbadge {
    font-size: 0.66rem !important;
    letter-spacing: 0.4px !important;
    padding: 4px 10px !important;
}

.header-account-item {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-account-item span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.header-account-item:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
    color: var(--accent);
}

.header-icon-btn:focus-visible,
.header-account-item:focus-visible,
.notif-footer:focus-visible,
.notif-header button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.header-account-ticket {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.header-account-logout {
    color: #ff9da8;
    background: transparent;
}

.header-account-logout:hover {
    color: #ffd8dd;
    background: rgba(220, 53, 69, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 149, 0.35);
}

[data-theme="light"] .btn-assinatura-outline {
    background: rgba(147, 51, 234, 0.08) !important;
    border-color: rgba(147, 51, 234, 0.42) !important;
    color: #6d28d9 !important;
}

[data-theme="light"] .btn-assinatura-outline:hover {
    color: #5b21b6 !important;
    border-color: rgba(109, 40, 217, 0.55) !important;
    background: rgba(147, 51, 234, 0.14) !important;
}

[data-theme="light"] .header-icon-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.13);
}

[data-theme="light"] .header-account-dropdown {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .header-account-item:hover {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    color: #111;
}

[data-theme="light"] .header-account-logout {
    color: #c74b57;
}

[data-theme="light"] .header-account-logout:hover {
    color: #a5303e;
    background: rgba(220, 53, 69, 0.1);
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.25);
}

@media (max-width: 1100px) {
    .header-account-name {
        display: none;
    }

    .header-account-chevron {
        display: none;
    }
}

[data-theme="light"] {
    --purple-text: #7c3aed;
    --purple-bg: rgba(147, 51, 234, 0.08);
    --purple-border: rgba(147, 51, 234, 0.35);
}

[data-theme="light"] .top-bar a, 
[data-theme="light"] .top-bar span.copy-trigger {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .header-left {
        justify-content: center;
        flex-wrap: nowrap; /* Tenta manter logo e nome juntos */
        gap: 12px;
    }
    .logo-img { max-height: 60px; }
    nav ul { justify-content: center; flex-wrap: nowrap; gap: 12px; }
}

@media (max-width: 768px) {
    nav ul { flex-wrap: wrap; gap: 8px; }
    .greeting-text { font-size: 0.85rem; }
}


/* --- 4. SEÇÕES DA HOME --- */

/* Hero (Banner Principal) - Tema como padrao */
.hero {
    height: 45vh; min-height: 380px;
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%),
                var(--primary);
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; text-align: center; padding: 0 20px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%),
                var(--primary);
}

/* Hero com imagem custom (aplicada via JS quando config.heroImageUrl existe) */
.hero.hero-custom-image {
    background-size: cover;
    background-position: center;
}
[data-theme="light"] .hero.hero-custom-image {
    background-blend-mode: normal;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to top, var(--primary), transparent);
    z-index: 1;
}

.hero-content {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transform: translateY(-10px);
}

[data-theme="light"] .hero-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-content h1 { 
    font-size: 3.2rem; 
    color: var(--accent); 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p { 
    color: var(--text-secondary); 
    margin-bottom: 30px; 
    max-width: 600px; 
    font-size: 1.15rem; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

[data-theme="light"] .hero-content p {
    color: #fff; /* Mantemos branco no light mode para contraste com a imagem escura */
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.btn-destaque {
    background-color: var(--accent); color: #000; padding: 12px 30px; border-radius: 5px; border: 2px solid var(--accent);
    font-weight: bold; text-transform: uppercase; display: inline-block; cursor: pointer; transition: 0.3s;
}
.btn-destaque:hover { 
    background-color: #fff; 
    border-color: #fff; 
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); 
    transform: translateY(-3px) scale(1.02); 
}

.btn-outline {
    border: 1px solid var(--accent); color: var(--accent); padding: 10px 25px; border-radius: 5px; border: 2px solid var(--accent);
    text-transform: uppercase; background: transparent; cursor: pointer; font-weight: bold; transition: 0.3s;
}
.btn-outline:hover { background-color: var(--accent); color: #000; }


/* Serviços */
.servicos-section { padding: 60px 5%; text-align: center; background-color: var(--primary); }
.section-title { 
    font-size: 2rem; color: var(--accent); margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px; 
    position: relative; display: inline-block; border-bottom: 3px solid var(--accent); padding-bottom: 10px;
}

.cards-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 35px; 
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.service-card {
    background-color: var(--card-bg); padding: 40px 30px; border-radius: 14px; 
    width: 100%; border: 1px solid var(--border); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative; overflow: visible;
    display: flex; flex-direction: column;
}
.service-card:hover { 
    border-color: var(--accent); 
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15); 
    transform: translateY(-8px);
}
.icon-card { font-size: 2.2rem; color: var(--accent); margin-bottom: 20px; }
.service-card h3 { color: var(--text-primary); margin-bottom: 15px; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; font-weight: 400; }
.service-price { display: block; font-size: 1.5rem; color: var(--accent); font-weight: bold; margin-bottom: 20px; }

/* Botão dentro do card (Transparente com borda) */
.btn-card { 
    display: block; width: 100%; padding: 15px 30px; background-color: rgba(212, 175, 55, 0.05); /* Slight accent background */
    border: 1px solid var(--accent); color: var(--accent); margin-top: auto; 
    text-decoration: none; border-radius: 8px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-transform: uppercase; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-align: center;
}
.btn-card:hover { 
    background-color: var(--accent); color: #000; 
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.service-card.destaque-card { border: 2px solid var(--danger); transform: scale(1.03); z-index: 1; }
.service-card.oferta-card { 
    border: 1px solid var(--danger) !important; 
    transform: scale(1.03); z-index: 1;
    box-shadow: 0 0 40px rgba(220, 53, 69, 0.15), inset 0 0 20px rgba(220, 53, 69, 0.05);
}
.service-card.oferta-card:hover {
    border-color: var(--danger) !important;
    box-shadow: 0 15px 45px rgba(220, 53, 69, 0.25), inset 0 0 25px rgba(220, 53, 69, 0.1);
    transform: scale(1.03) translateY(-8px);
}

.badge-oferta {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4757, #c0392b);
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.5);
    z-index: 10;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-minimalista {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-light, #b8860b));
    color: #000;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    z-index: 10;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.4);
}

.badge-coupon {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    z-index: 10;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-coupon 2s infinite;
}

.badge-coupon:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #218838, #1e7e34);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.badge-coupon i {
    font-size: 0.85rem;
}

@keyframes pulse-coupon {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}


/* Sobre */
.about-section { padding: 60px 5%; background-color: var(--secondary); text-align: center; border-top: 1px solid var(--border); }
.about-content { max-width: 800px; margin: 0 auto; color: var(--text-secondary); line-height: 1.8; }


/* Rodapé Geral - Redesign Premium */
.footer-premium {
    background: var(--secondary);
    border-top: 2px solid var(--accent);
    padding: 80px 5% 40px;
    margin-top: 60px;
    position: relative;
    z-index: 10; /* Garante que fique acima de overlays indesejados */
}

.developer-credit { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--gray); }
.developer-credit strong { color: var(--accent); }


/* --- 5. TELA DE LOGIN / CADASTRO (ESTILO DETALHADO) --- */
.auth-container {
    min-height: calc(100vh - 150px); display: flex; justify-content: center; align-items: center; 
    padding: 20px;
    background: linear-gradient(var(--bg-glass), var(--bg-glass)), url('../images/login-bg.jpg');
    background-repeat: no-repeat; background-position: center; background-size: cover;
}
/* Fallback Login Online */
.auth-container { background-image: linear-gradient(var(--bg-glass), var(--bg-glass)), url('https://images.unsplash.com/photo-1512690459411-b9245aed8ad5?q=80&w=2070&auto=format&fit=crop'); }

.auth-card {
    background-color: var(--card-bg); width: 100%; max-width: 520px;
    border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 15px 40px var(--shadow-main); 
    overflow: hidden; position: relative;
}
/* Linha dourada charmosa no topo do card */
.auth-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-tabs { display: flex; border-bottom: 1px solid #333; }
.tab-btn {
    flex: 1; padding: 15px; background: transparent; border: none;
    color: var(--text-secondary); font-size: 1rem; font-weight: 600; cursor: pointer; 
    transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.tab-btn:hover { color: var(--accent); background-color: rgba(255,255,255,0.02); }
.tab-btn.active { color: #000; background-color: var(--accent); }

.auth-form { padding: 30px; display: none; }
.auth-form.active { display: block; animation: fadeIn 0.5s ease; }
.auth-form h2 { color: var(--accent); text-align: center; font-size: 1.8rem; margin-bottom: 10px; }
.auth-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 30px; font-size: 0.9rem; }

.input-group { margin-bottom: 20px; width: 100%; }
.input-group label { display: block; color: var(--text-primary); margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.input-group label i { color: var(--accent); margin-right: 8px; width: 15px; text-align: center;}

.input-group input {
    width: 100%; padding: 12px 15px; background-color: var(--input-bg); border: 1px solid var(--border); 
    border-radius: 6px; color: var(--text-primary); font-size: 1rem; transition: 0.3s;
}
.input-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }

.forgot-pass { text-align: right; margin-bottom: 20px; }
.forgot-pass a { color: var(--text-secondary); font-size: 0.85rem; }
.forgot-pass a:hover { color: var(--accent); text-decoration: underline; }

.btn-auth {
    width: 100%; padding: 15px; background-color: var(--accent); color: #000; 
    border: none; border-radius: 6px; font-size: 1.1rem; font-weight: bold; 
    text-transform: uppercase; cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.btn-auth:hover { background-color: #fff; box-shadow: 0 0 15px var(--accent); }
.two-col { display: flex; gap: 15px; }

/* --- 5b. AUTH RESPONSIVE --- */
@media (max-width: 768px) {
  .auth-container { min-height: auto; padding: 10px; }
  .auth-card { max-width: 100%; border-radius: 10px; }
  .auth-form { padding: 22px 18px; }
  .auth-form h2 { font-size: 1.4rem; margin-bottom: 6px; }
  .auth-subtitle { font-size: 0.82rem; margin-bottom: 20px; }
  .auth-tabs .tab-btn { padding: 12px; font-size: 0.85rem; }
  .btn-auth { padding: 13px; font-size: 1rem; }
  .two-col { flex-direction: column; gap: 0; }
  .input-group { margin-bottom: 16px; }
  .input-group label { font-size: 0.82rem; margin-bottom: 6px; }
  .input-group input { padding: 11px 13px; font-size: 0.92rem; }
  .forgot-pass { margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .auth-container { padding: 4px; }
  .auth-card { border-radius: 8px; box-shadow: none; border: 1px solid var(--border); }
  .auth-form { padding: 18px 14px; }
  .auth-form h2 { font-size: 1.2rem; }
  .auth-tabs .tab-btn { padding: 10px; font-size: 0.8rem; }
  .btn-auth { padding: 12px; font-size: 0.92rem; }
  .input-group input { padding: 10px 12px; font-size: 0.88rem; }
}

/* --- 6. MODAIS (CHECKOUT E LOGIN) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-glass);
    z-index: 5000; display: none; justify-content: center; align-items: flex-start; /* Z-index alto para cobrir tudo */
    padding: 20px 0; overflow-y: auto; /* Permite rolar o próprio overlay se necessário */
    backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; }

/* Modal de Solicitação de Login (Substitui o Alert) */
.modal-login-prompt {
    background-color: var(--card-bg); width: 90%; max-width: 400px; border-radius: 12px; border: 1px solid var(--border);
    text-align: center; padding: 30px; box-shadow: 0 10px 40px var(--shadow-main);
    animation: slideUp 0.3s ease; position: relative;
}
.modal-login-prompt .icon-prompt {
    font-size: 3rem; color: var(--accent); margin-bottom: 15px;
}
.modal-login-prompt h3 {
    color: var(--text-primary); font-size: 1.4rem; margin-bottom: 10px;
}
.modal-login-prompt p {
    color: var(--text-secondary); margin-bottom: 25px; font-size: 0.95rem; line-height: 1.5;
}
.modal-login-prompt .botoes-login {
    display: flex; flex-direction: column; gap: 10px;
}
.btn-login-modal {
    width: 100%; padding: 12px; background-color: var(--accent); color: #000; font-weight: bold;
    border: none; border-radius: 6px; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.9rem;
}
.btn-login-modal:hover { background-color: #fff; box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.btn-cancel-modal {
    background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 10px; width: 100%;
    border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.btn-cancel-modal:hover { border-color: var(--accent); color: var(--accent); }


.modal-checkout {
    background-color: var(--card-bg); width: 90%; max-width: 450px; border-radius: 12px; border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2); overflow: hidden; position: relative; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { background-color: #000; padding: 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { color: #fff; font-size: 1.1rem; }
.btn-close-modal { background: none; border: none; color: #666; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.btn-close-modal:hover { color: var(--danger); }

.payment-tabs { display: flex; background: #000; }
.pay-tab { flex: 1; padding: 15px; background: transparent; border: none; border-bottom: 2px solid #333; color: #888; font-weight: 600; cursor: pointer; transition: 0.3s; }
.pay-tab:hover { background-color: #1a1a1a; }
.pay-tab.active { border-bottom-color: var(--accent); color: var(--accent); background-color: #111; }

.payment-body { padding: 25px; }
.pay-method { display: none; }
.pay-method.active { display: block; animation: fadeIn 0.3s; }

/* Visual do Cartão de Crédito */
.card-preview { 
    background: linear-gradient(135deg, #222, #000); border: 1px solid #333; 
    border-radius: 10px; padding: 20px; margin-bottom: 20px; color: #fff; position: relative; 
}
.card-brand { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: #fff; }
.card-number-display { font-size: 1.2rem; letter-spacing: 2px; margin: 30px 0 10px; font-family: monospace; }
.card-details-display { display: flex; justify-content: space-between; font-size: 0.8rem; color: #aaa; }

.checkout-input {
    width: 100%; padding: 12px; background-color: #000; border: 1px solid #333; 
    border-radius: 6px; color: #fff; font-size: 1rem; transition: 0.3s; margin-bottom: 10px;
}
.checkout-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }

.row-inputs { display: flex; gap: 10px; }

.btn-pay-confirm { 
    width: 100%; padding: 15px; background-color: var(--success); color: #fff; 
    border: none; border-radius: 5px; font-weight: bold; font-size: 1rem; 
    cursor: pointer; transition: 0.3s; margin-top: 10px; 
}
.btn-pay-confirm:hover { background-color: #218838; box-shadow: 0 0 15px rgba(40, 167, 69, 0.4); }

/* PIX Visual */
.pix-container { text-align: center; }
.qr-code-box { background: #fff; padding: 10px; display: inline-block; border-radius: 8px; margin: 15px 0; }
.qr-code-box img { width: 150px; height: 150px; }
.pix-copy-box { background: #000; border: 1px dashed #444; padding: 10px; border-radius: 5px; font-family: monospace; color: var(--accent); font-size: 0.8rem; word-break: break-all; margin-bottom: 10px; }
.pix-timer { color: var(--danger); font-size: 0.9rem; margin-top: 10px; font-weight: bold; }


/* =======================================================
   7. NOVOS ESTILOS: ADMIN DASHBOARD E ÁREA DO USUÁRIO
   ======================================================= */

/* Container Geral dos Painéis */
.admin-container { 
    max-width: 1250px; margin: 30px auto; padding: 0 20px; 
    display: flex;
    flex-direction: column;
    gap: 20px; 
    width: 100%;
    box-sizing: border-box;
}

/* Header Específico do Usuário/Admin */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--bg-glass); 
    border-bottom: 1px solid var(--border);
}

.logo-img {
    max-height: 60px; 
    width: auto;
    display: block;
}
.user-nav a, .user-nav button { color: #fff; margin-left: 20px; font-size: 0.9rem; background: none; border: none; cursor: pointer; transition: 0.3s; }
.user-nav a:hover, .user-nav button:hover { color: var(--accent); }
.btn-sair { color: var(--danger) !important; border: 1px solid var(--danger) !important; padding: 5px 15px; border-radius: 4px; }
.btn-sair:hover { background: var(--danger); color: #fff !important; }

/* 7.1 Cartão Fidelidade (Usuário) */
.loyalty-section { 
    background: var(--bg-inner); border: 1px solid var(--accent); 
    border-radius: 12px; padding: 25px; margin-bottom: 30px; text-align: center; 
    box-shadow: 0 0 20px var(--shadow-main); 
}
.loyalty-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.loyalty-header h3 { color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.loyalty-count { background: var(--accent); color: #000; padding: 2px 10px; border-radius: 20px; font-weight: bold; }

.loyalty-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin: 20px 0; }
.stamp-box { 
    width: 50px; height: 50px; border-radius: 50%; background: #222; border: 2px dashed #444; 
    display: flex; align-items: center; justify-content: center; color: #444; transition: 0.3s; font-size: 1.2rem;
}
.stamp-box.active { 
    background: var(--accent); border: 2px solid var(--accent); color: #000; 
    transform: scale(1.1); box-shadow: 0 0 10px var(--accent); 
}
.stamp-box.reward.active { background: #fff; color: #000; border-color: #fff; }


/* 7.2 Cards de Estatísticas (Admin Premium) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 30px; }

/* Grid exclusivo da página de Configurações — coluna principal + preview sticky */
.config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 380px);
    gap: 18px;
    margin-bottom: 30px;
    align-items: start;
}
@media (max-width: 1100px) {
    .config-grid { grid-template-columns: 1fr; }
    .config-workspace-aside { position: static !important; top: auto !important; }
}
@media (max-width: 768px) {
    .config-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
}
.config-workspace-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.config-workspace-aside {
    min-width: 0;
}
.stat-card { 
    background: var(--card-bg);
    border: 1px solid var(--border); padding: 25px; 
    border-radius: 16px; display: flex; align-items: center; gap: 20px; 
    box-shadow: 0 10px 30px var(--shadow-main); position: relative; overflow: hidden;
    backdrop-filter: blur(10px); transition: 0.3s;
}
.stat-card.ai-card {
    flex: 1;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
    min-height: 380px;
    padding: 25px; /* Revertido para 25px para alinhar com outros cards */
}
.ai-badge {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    width: 100%;
}
@media (max-width: 1024px) {
    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15); border-color: var(--accent); }
.stat-card::after { 
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%); pointer-events: none;
}
.stat-icon { 
    font-size: 2.2rem; color: var(--accent); background: rgba(212, 175, 55, 0.1); 
    width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; border-radius: 12px; 
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.stat-info { display: flex; flex-direction: column; z-index: 2;}
.stat-info h3 { font-size: 2.2rem; color: #fff; margin: 0; line-height: 1; font-weight: 600; letter-spacing: -1px;}
.stat-info p { color: #aaa; margin: 5px 0 0 0; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;}


/* 7.3 Área Central Admin (Validação + Feed) */
.main-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.validation-box { 
    background: var(--card-bg); border: 1px solid var(--accent); padding: 30px; 
    border-radius: 8px; text-align: center; display: flex; flex-direction: column; justify-content: center;
}
.validation-box h2 { color: var(--text-primary); margin-bottom: 20px; }

.input-admin { 
    width: 100%; padding: 15px; background: var(--input-bg); border: 1px solid var(--border); 
    color: var(--text-primary); font-size: 1.5rem; text-align: center; border-radius: 4px; 
    margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px;
}
.input-admin:focus { outline: none; border-color: var(--accent); }

/* Feed de Atividades */
.feed-box { 
    background: #111; border: 1px solid #333; padding: 20px; 
    border-radius: 8px; max-height: 350px; overflow-y: auto; 
}
.activity-item { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px 0; border-bottom: 1px solid #222; 
}
.activity-time { font-size: 0.8rem; color: #666; display: block; margin-top: 5px; }
.activity-desc strong { color: var(--accent); }


/* 7.4 Tabela de Vendas (Admin Premium) */
.table-container { 
    background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 12px; 
    padding: 25px; overflow-x: auto; box-shadow: 0 5px 20px var(--shadow-main);
}
.table-container h3 { color: var(--text-primary); margin-bottom: 20px; font-weight: 500; font-size: 1.3rem; border-left: 3px solid var(--accent); padding-left: 10px; }

.full-table { width: 100%; border-collapse: collapse; color: var(--text-primary); min-width: 600px; font-size: 0.95rem; table-layout: auto; }
.full-table th { text-align: left; padding: 15px; border-bottom: 2px solid var(--border); color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;}
.full-table td { padding: 18px 15px; border-bottom: 1px solid var(--border-glass); transition: 0.2s; }
.full-table tbody tr:hover { background: var(--bg-inner); }


/* 7.5 Card de VOUCHER (Lista do Usuário) */
.vouchers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* 7.6 Filtros do Dashboard */
.filter-group { display: flex; gap: 10px; background: var(--bg-inner); padding: 5px; border-radius: 8px; border: 1px solid var(--border); }
.filter-btn { 
    background: transparent; border: none; color: #888; padding: 8px 15px; border-radius: 6px; 
    cursor: pointer; font-weight: 500; font-size: 0.85rem; transition: 0.3s;
}
.filter-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.filter-btn.active { color: #000; background: var(--accent); box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }

/* Password Toggle Styles */
.input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: color 0.3s;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--accent);
}

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


.voucher-card { 
    background: #000; border: 1px dashed var(--accent); padding: 20px; 
    border-radius: 8px; transition: 0.3s; position: relative;
}
.voucher-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2); }

.voucher-header { display: flex; justify-content: space-between; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
.voucher-id { 
    font-family: monospace; background: #222; padding: 5px 10px; 
    border-radius: 4px; color: #fff; border: 1px solid #444; font-weight: bold;
}

.status-badge { font-size: 0.8rem; font-weight: bold; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.status-badge.ativo { background: rgba(40,167,69,0.2); color: var(--success); }
.status-badge.usado { background: rgba(108,117,125,0.2); color: #888; text-decoration: line-through; }

.voucher-body h3 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.voucher-body p { font-size: 1.2rem; color: var(--accent); font-weight: bold; }

.voucher-footer { 
    border-top: 1px dashed #333; padding-top: 10px; display: flex; 
    justify-content: space-between; color: #666; font-size: 0.8rem; 
}

/* Card Usado (Estilo apagado) */
.card-usado { opacity: 0.5; border-color: #333; background-color: #0a0a0a; border-style: solid; }
.card-usado:hover { transform: none; box-shadow: none; }


/* --- 8. UTILITÁRIOS E ANIMAÇÕES --- */
.dado-sensivel { transition: filter 0.3s ease; }
.dado-sensivel.borrado { filter: blur(10px); user-select: none; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@-webkit-keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

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

@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@-webkit-keyframes slideUp { from { -webkit-transform: translateY(30px); opacity: 0; } to { -webkit-transform: translateY(0); opacity: 1; } }

@keyframes skeleton-loading {
    0% { background-position: 150% 0; }
    100% { background-position: -150% 0; }
}
@-webkit-keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Aplicação de FadeIn em seções - Removido para usar Framer Motion (melhor performance mobile) */
/* .servicos-section, .portfolio-section, .about-section, section { animation: fadeIn 0.8s ease-out; } */


/* --- 9. MOBILE RESPONSIVO --- */
@media (max-width: 768px) {
    body { overflow-x: hidden; }
    .top-bar { flex-direction: column; gap: 10px; text-align: center; }
    .info-left { justify-content: center; width: 100%; flex-wrap: wrap; }
    .hide-mobile { display: none !important; }
    
    /* Header Compacto Mobile */
    header { padding: 6px 3%; text-align: center; }
    .logo-container { margin-bottom: 2px; }
    .logo-img { max-height: 40px; }
    .greeting-text { display: block; text-align: center; margin-top: 4px; font-size: 0.8rem; }
    
    nav ul { 
        gap: 6px; margin-top: 5px;
    }
    .btn-menu.destaque { font-size: 0.7rem; padding: 5px 10px; }
    
    /* Perfil Mobile */
    .admin-container { padding: 0 10px !important; }
    
    .main-dashboard-grid { grid-template-columns: 1fr; }
    .user-header { flex-direction: column; gap: 10px; padding: 15px; }
    .user-nav { width: 100%; justify-content: center; }
    
    .two-col { flex-direction: column; gap: 0; }
    .hero-content h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn-destaque, .hero-btns .btn-outline { width: 100%; margin-bottom: 10px; }

    /* Perfil: empilhar cards no mobile */
    .perfil-grid { flex-direction: column !important; }

    /* Admin Navigation Mobile: Grid 2x2 */
    .admin-nav { 
        flex-direction: column !important; 
        gap: 15px !important; 
        align-items: stretch !important;
    }
    .admin-nav-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .admin-nav-link {
        justify-content: center !important;
        padding: 12px 10px !important;
        background: rgba(255,255,255,0.03) !important;
        border: 1px solid rgba(212, 175, 55, 0.1) !important;
        border-radius: 8px !important;
        font-size: 0.8rem !important;
    }
    .admin-nav-link.active {
        background: rgba(212, 175, 55, 0.25) !important;
        border-color: var(--accent) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
    }
    .admin-nav-link-logout {
        justify-content: center !important;
        opacity: 0.6 !important;
        margin-top: 10px !important;
    }

/* =========================================
   SIMULADOR MOBILE (MOCKUP)
   ========================================= */
.smartphone-mockup {
  width: 320px;
  height: 640px;
  background: #000;
  border: 12px solid #1a1a1a;
  border-radius: 40px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 2px #333;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.smartphone-notch {
  width: 150px;
  height: 25px;
  background: #1a1a1a;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.smartphone-content {
  flex: 1;
  background: #050505;
  overflow-y: auto;
  padding: 40px 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scrollbar-width: none;
}

.smartphone-content::-webkit-scrollbar {
  display: none;
}

/* =========================================
   TABELAS RESPONSIVAS (CARDS)
   ========================================= */
@media (max-width: 768px) {
  .full-table thead {
    display: none;
  }

  .full-table {
    min-width: 0 !important;
    width: 100% !important;
  }

  .full-table tr {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px var(--shadow-main);
  }

  .full-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
    text-align: right;
    word-break: break-all;
    overflow-wrap: anywhere;
    gap: 10px;
  }

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

  .full-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.7rem;
    text-align: left;
  }

  .full-table td[data-label="Ações"] {
      justify-content: flex-end;
  }

  /* Grid de Horários Responsivo */
  .horarios-admin-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .horario-linha-mobile {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 10px !important;
  }
  
  .horario-linha-mobile > span {
      grid-column: span 1;
  }
  
  .horario-linha-mobile > button {
      grid-column: span 1;
      justify-self: end;
  }
}

.admin-nav-links {
    display: flex;
    gap: 15px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .admin-nav-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 10px;
    }
    
    .admin-nav-link {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 0.85rem;
    }
}

    /* Grids e Stats */
    .stats-grid { 
        grid-template-columns: 1fr !important; 
        gap: 15px !important;
    }
    .responsive-span-3 {
        grid-column: span 1 !important;
        margin-top: 10px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    .stat-info h3 {
        font-size: 1.6rem !important;
    }
}

/* --- 6. COMPONENTS (TOASTS) --- */
.toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
    min-width: 250px; padding: 15px 20px; border-radius: 8px;
    background: #111; color: #fff; font-size: 0.95rem; font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 12px;
    transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast i { font-size: 1.2rem; }
.toast.success { border-color: var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.error i { color: var(--danger); }
.toast.warning { border-color: var(--accent); }
.toast.warning i { color: var(--accent); }


/* =======================================================
   10. CRUD ADMIN STYLES
   ======================================================= */

/* Admin Navigation */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-nav-links {
    display: flex;
    gap: 8px;
}
.admin-nav-link {
    color: #888;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}
.admin-nav-link:hover {
    color: var(--accent);
    background: rgba(212,175,55,0.05);
    border-color: rgba(212,175,55,0.2);
}
.admin-nav-link.active {
    color: #000 !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    font-weight: 600;
}
.admin-nav-link-logout {
    margin-left: auto;
    opacity: 0.8;
}
.admin-nav-link-logout:hover {
    opacity: 1;
    color: var(--danger) !important;
    background: rgba(220, 53, 69, 0.05) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

/* CRUD Modal */
.crud-modal {
    background: var(--card-bg);
    width: 95%;
    max-width: 550px;
    margin: 20px auto;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow-main);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}
.crud-modal-header {
    background: var(--bg-inner);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.crud-modal-header h3 {
    color: var(--accent);
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.crud-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}
.crud-modal-footer {
    background: var(--bg-inner);
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
}

/* CRUD Form */
.crud-form .input-group {
    margin-bottom: 18px;
}
.crud-form .input-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: 0.3s;
}
.crud-form .input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(212,175,55,0.2);
}

/* Icon Selector */
.icone-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.icone-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icone-option:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212,175,55,0.05);
}
.icone-option.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(212,175,55,0.4);
}

/* CRUD Checkbox */
.crud-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.95rem;
    padding: 10px 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    transition: 0.3s;
    flex: 1;
}
.crud-checkbox:hover {
    border-color: var(--accent);
}
.crud-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.crud-checkbox span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CRUD Action Buttons */
.btn-crud {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #333;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-edit {
    color: var(--accent);
}
.btn-edit:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-validar-tabela {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-validar-tabela:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-delete {
    color: var(--danger);
}
.btn-delete:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* CRUD Status Badge */
.crud-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
}
.crud-status-badge.ativo {
    color: var(--success);
    border-color: var(--success);
}
.crud-status-badge.ativo:hover {
    background: rgba(40,167,69,0.15);
}
.crud-status-badge.inativo {
    color: #888;
    border-color: #555;
}
.crud-status-badge.inativo:hover {
    background: rgba(255,255,255,0.05);
}

/* Admin Search Bar */
.admin-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-inner);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}
.admin-search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212,175,55,0.1);
}
.admin-search-bar i {
    color: #555;
    font-size: 1rem;
}
.admin-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.admin-search-bar input::placeholder {
    color: #555;
}
.search-clear {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}
.search-clear:hover {
    color: var(--danger);
}

/* Mobile for CRUD */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px 10px;
    }
    .admin-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 15px;
    }
    .admin-nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .admin-nav-link {
        flex: 1;
        min-width: calc(50% - 10px);
        justify-content: center;
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    .admin-nav .admin-nav-link:last-child {
        width: 100%;
        flex: none;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .crud-modal {
        width: 98%;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
    .crud-modal-header {
        padding: 15px;
    }
    .crud-modal-body {
        padding: 15px;
    }
    .crud-modal-footer {
        flex-direction: column-reverse;
        padding: 15px;
        gap: 10px;
    }
    .crud-modal-footer button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .icone-selector {
        justify-content: center;
    }
    .two-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px !important;
    }
    .stat-card.ai-card {
        padding: 15px !important;
    }
    .service-card h3 {
        font-size: 1.05rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 5px;
    }
    .service-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .full-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 10px 5px !important;
        text-align: right;
        font-size: 0.85rem;
    }
    .full-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--accent);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
    }
    .table-container {
        background: transparent;
        border: none;
        padding: 0;
    }
    .table-container h3 {
        margin-left: 5px;
    }
    .responsive-span-3 {
        grid-column: span 1 !important;
    }
}

/* =======================================================
   11. SKELETON LOADERS
   ======================================================= */
.skeleton {
    animation: skeleton-loading 1.2s infinite alternate;
    border-radius: 8px;
    opacity: 0.7;
}

.skeleton-text {
    width: 100%;
    height: 1.2rem;
    margin-bottom: 0.6rem;
    border-radius: 4px;
}
.skeleton-text.short { width: 50%; }
.skeleton-text.medium { width: 75%; }

.skeleton-box {
    width: 100%;
    height: 100px;
    border-radius: 8px;
}

/* =======================================================
   12. ADMIN UI REFINEMENTS (V2)
   ======================================================= */

/* --- Stat Cards Variants --- */
.stat-card.blue { border-color: #3498db88; background: linear-gradient(135deg, var(--card-bg), #3498db0a); }
.stat-card.blue h3 { color: #3498db; text-shadow: 0 0 10px rgba(52, 152, 219, 0.2); }
.stat-card.purple { border-color: #9b59b688; background: linear-gradient(135deg, var(--card-bg), #9b59b60a); }
.stat-card.purple h3 { color: #9b59b6; text-shadow: 0 0 10px rgba(155, 89, 182, 0.2); }
.stat-card.gold { border-color: var(--accent); background: linear-gradient(135deg, var(--card-bg), rgba(212,175,55,0.08)); }
.stat-card.success { border-color: var(--success); background: linear-gradient(135deg, var(--card-bg), rgba(46,204,113,0.08)); }

/* --- AI Trend Badges Refined --- */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.trend-badge i { font-size: 0.8rem; }
.trend-badge.positive { background: var(--success-bg); color: var(--success); border-color: rgba(46,204,113,0.3); }
.trend-badge.atencao { background: var(--error-bg); color: var(--error); border-color: rgba(231,76,60,0.3); }
.trend-badge.estavel { background: var(--warning-bg); color: var(--warning); border-color: rgba(243,156,18,0.3); }

/* --- Coupon Services Grid --- */
.services-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.service-item-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-inner);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.service-item-check:hover {
    border-color: var(--accent);
    background: rgba(212,175,55,0.05);
    transform: translateY(-2px);
}
.service-item-check.selected {
    border-color: var(--accent);
    background: linear-gradient(90deg, rgba(212,175,55,0.1), transparent);
    box-shadow: 0 4px 15px rgba(212,175,55,0.1);
}
.service-item-check input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.service-item-check span { font-size: 0.9rem; color: var(--text-secondary); font-weight: 600; }
.service-item-check.selected span { color: var(--text-primary); }

@media (max-width: 600px) {
    .services-selection-grid { grid-template-columns: 1fr; }
}

.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

@keyframes skeleton-loading {
    0% { background-color: #222; }
    100% { background-color: #333; }
}

/* --- ENHANCED HOME PAGE STYLES --- */
.service-card {
   background: var(--card-bg);
   border: 1px solid var(--border);
   border-radius: 10px;
   padding: 40px 20px;
   text-align: center;
   transition: all 0.3s ease;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}

.destaque-card {
   position: relative;
   border: 1px solid var(--accent) !important;
   box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
   transform: scale(1.03); 
   z-index: 2;
   overflow: visible !important;
}

.destaque-card:hover {
   box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

.badge-minimalista {
   position: absolute;
   top: -12px;
   left: 50%;
   transform: translateX(-50%);
   background: var(--accent);
   color: #000;
   padding: 4px 16px;
   border-radius: 20px;
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 1px;
   text-transform: uppercase;
   box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
   display: flex;
   align-items: center;
   gap: 6px;
   z-index: 5;
   white-space: nowrap;
   overflow: hidden;
   border: 1px solid rgba(255,255,255,0.4);
}

.badge-minimalista::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: badgeShine 3s infinite;
}

.oferta-card {
   position: relative;
   border: 1px solid #ff4757 !important;
   box-shadow: 0 8px 24px rgba(255, 71, 87, 0.15);
   transform: scale(1.03); 
   z-index: 2;
   overflow: visible !important;
}

.oferta-card:hover {
   box-shadow: 0 12px 32px rgba(255, 71, 87, 0.3);
}

.badge-oferta {
   position: absolute;
   top: -12px;
   left: 50%;
   transform: translateX(-50%);
   background: #ff4757;
   color: #fff;
   padding: 4px 16px;
   border-radius: 20px;
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 1px;
   text-transform: uppercase;
   box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
   display: flex;
   align-items: center;
   gap: 6px;
   z-index: 5;
   white-space: nowrap;
   overflow: hidden;
   border: 1px solid rgba(255,255,255,0.4);
}

.badge-oferta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: badgeShine 2.5s infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* =============================================
   COMBO CARD + BADGE
   ============================================= */
.combo-card {
   border: 2px solid #7c5cbf;
   box-shadow: 0 8px 25px rgba(124, 92, 191, 0.15);
   transform: scale(1.03);
   z-index: 1;
}

.combo-card:hover {
   border-color: #7c5cbf;
   box-shadow: 0 12px 32px rgba(124, 92, 191, 0.3);
}

.badge-combo {
   position: absolute;
   top: -12px;
   left: 50%;
   transform: translateX(-50%);
   background: #7c5cbf;
   color: #fff;
   padding: 4px 16px;
   border-radius: 20px;
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 1px;
   text-transform: uppercase;
   box-shadow: 0 4px 12px rgba(124, 92, 191, 0.4);
   display: flex;
   align-items: center;
   gap: 6px;
   z-index: 5;
   white-space: nowrap;
   overflow: hidden;
   border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-combo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: badgeShine 2.5s infinite;
}

.combo-servicos-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: flex-start;
}

.combo-servicos-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
    text-align: left;
}

.combo-servicos-list li::before {
    content: '✓';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

@media(max-width: 768px) {
   .destaque-card { transform: scale(1.02); }
   .combo-card { transform: none; }
}
/* --- PORTFOLIO --- */
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 480px; /* Aumentado para fotos de celular (portait) */
    border: 1px solid #222;
    transition: all 0.4s ease;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Foca na cabeça do cliente/barbeiro */
    transition: transform 0.6s ease;
}
.portfolio-item:hover img {
    transform: scale(1.08); /* Reduzi o zoom levemente para não cortar ao passar o mouse */
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    padding: 25px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}
.portfolio-overlay h4 {
    color: var(--accent);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.portfolio-overlay p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.portfolio-hint-mobile {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: fadeIn 1s ease;
}

@media (min-width: 1025px) {
    .portfolio-hint-mobile {
        display: none; /* Esconde no desktop onde existe hover */
    }
}

/* --- 11. BADGES DE FIDELIDADE (GAMIFICAÇÃO) --- */
.badge-fidelidade {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
}

.badge-bronze {
    background: var(--bg-inner);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-vip {
    background: rgba(150, 150, 150, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(150, 150, 150, 0.4);
    box-shadow: 0 0 10px rgba(150, 150, 150, 0.1);
}

.badge-platinum {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.badge-black {
    background: linear-gradient(135deg, #222 0%, #000 100%);
    color: #d4af37;
    border: 1px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: blackGlow 2s infinite alternate;
}

@keyframes blackGlow {
    from { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
    to { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
}

.greeting-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 15px;
}

@media (max-width: 1024px) {
    .header-left {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .greeting-wrapper {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 0.8rem;
        background: rgba(255,255,255,0.05);
        padding: 5px 12px;
    }
    .badge-fidelidade {
        font-size: 0.65rem;
        padding: 2px 8px;
        animation-duration: 1.5s; 
    }
}

@media (max-width: 480px) {
    header { padding: 10px 3%; }
    .logo-img { max-height: 55px; }
    .header-left { gap: 5px; }
    .greeting-wrapper { padding: 4px 10px; font-size: 0.75rem; }
    nav ul { gap: 8px; }
    .btn-menu.destaque { padding: 8px 15px; font-size: 0.75rem; }
}

/* Forçar renderização de animação em dispositivos móveis */
@media (prefers-reduced-motion: no-preference) {
    .badge-black {
        animation: blackGlow 2s infinite alternate !important;
    }
}

/* =======================================================
   FOOTER PREMIUM - OPÇÃO 1
   ======================================================= */
.footer-premium {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 80px 5% 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    padding-bottom: 60px;
}

/* Coluna Barbearia */
.barber-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-logo h3 span {
    color: var(--accent);
}

.footer-about {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 450px;
}

.footer-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
}

.info-item span, .hours-text span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: block;
}

.hours-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.barber-socials {
    display: flex;
    gap: 15px;
}

.barber-socials a {
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.barber-socials a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Coluna Developer - Destaque Comercial */
.dev-highlight {
    display: flex;
    align-items: center;
}

.dev-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 20px 40px var(--shadow-main);
    position: relative;
    transition: 0.3s;
}

.dev-box:hover {
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-5px);
}

.dev-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dev-header i {
    color: var(--accent);
    font-size: 1.3rem;
}

.dev-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
}

.dev-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-dev-cta {
    display: block;
    text-align: center;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    margin-bottom: 25px;
}

.btn-dev-cta:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.dev-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dev-by {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.dev-profile a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.dev-profile strong {
    color: var(--text-primary);
    font-weight: 600;
}

.dev-profile a:hover {
    color: var(--accent);
}

.dev-profile a i {
    font-size: 1.1rem;
}

/* Rodapé Inferior */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .barber-info {
        align-items: center;
        text-align: center;
    }
    .footer-about {
        margin-left: auto;
        margin-right: auto;
    }
    .info-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-premium {
        padding: 60px 20px 80px; /* Aumentado o padding inferior (era 30px) para fugir das barras dos navegadores */
    }
    .footer-logo h3 {
        font-size: 1.4rem;
    }
    .dev-box {
        padding: 30px 20px;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================================
   PAGINAÇÃO (PREMIUM)
   ========================================= */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-inner);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

@media (max-width: 768px) {
  .pagination-btn {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
}

/* --- LIGHT MODE UI TWEAKS --- */
[data-theme="light"] .fidelidade-stamps {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .fidelidade-stamps span,
[data-theme="light"] .fidelidade-stamps i:not(.fa-check):not(.fa-gift) {
    color: #444 !important;
}

[data-theme="light"] .greeting-wrapper {
    background: rgba(0,0,0,0.04);
}

/* =========================================
   THEME SEGMENTED CONTROL (PREMIUM UI)
   ========================================= */
.theme-segmented-control {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 3px;
    border-radius: 50px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.theme-segment {
    position: relative;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.theme-segment i {
    font-size: 0.8rem;
}

.theme-segment.active {
    color: #000;
}

[data-theme="dark"] .theme-segment.active {
    color: #000; /* Texto preto sobre o fundo dourado ativo */
}

/* O fundo que desliza indicando o ativo */
.theme-selection-bg {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: linear-gradient(135deg, var(--accent), var(--accent-light, #b8860b));
    border-radius: 40px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .theme-selection-bg {
    transform: translateX(100%);
}

.theme-segment:hover:not(.active) {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .theme-segment span { display: none; }
    .theme-segmented-control { padding: 2px; }
    .theme-segment { padding: 8px 12px; }
}

/* =========================================
   MOBILE DRAWER MENU (PREMIUM)
   ========================================= */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
}

.drawer-overlay {
    --mobile-top-offset: 0px;
    position: fixed;
    top: var(--mobile-top-offset);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--mobile-top-offset));
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998; /* Altíssimo para cobrir a top-bar e tooltips */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-menu {
    --mobile-top-offset: 0px;
    position: fixed;
    top: var(--mobile-top-offset);
    right: -320px;
    width: min(92vw, 320px);
    height: calc(100dvh - var(--mobile-top-offset));
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    z-index: 9999; /* Altíssimo para cobrir a top-bar e tooltips */
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-glass);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior: contain; /* Previne que o scroll 'vaze' para o fundo */
}

body.body-lock {
    overflow: hidden !important;
    touch-action: none;
}

.drawer-menu {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.drawer-menu.active {
    right: 0;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.drawer-close:active {
    transform: scale(0.85);
    background: rgba(255,255,255,0.1);
    transition: 0.1s;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.drawer-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.drawer-link:active {
    transform: scale(0.97);
    background: rgba(212, 175, 55, 0.2);
    transition: 0.1s;
}

.drawer-link.logout {
    margin-top: auto;
    border-color: rgba(220, 53, 69, 0.2);
    color: #ff4757;
}

.drawer-greeting {
    background: var(--bg-inner);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .header-left {
        width: auto !important;
        justify-content: flex-start !important;
        gap: 10px;
    }
    nav.desktop-nav { display: none !important; }
    .mobile-nav-toggle { display: block !important; margin-left: auto; }
    .mobile-user-shortcut {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px; height: 42px;
        background: var(--bg-inner);
        border: 1px solid var(--border-glass);
        border-radius: 50%;
        color: var(--text-primary);
        font-size: 1.4rem;
        cursor: pointer;
        transition: 0.3s;
    }
    .user-initials-header {
        width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, var(--accent), var(--accent-light, #b8860b));
        color: #000;
        font-weight: 800;
        font-size: 1rem;
        border-radius: 50%;
        border: 2px solid var(--border-glass);
    }
    .greeting-wrapper { display: none !important; }
}

.mobile-user-shortcut { display: none; }

/* TOPBAR SLIM MOBILE */
@media (max-width: 768px) {
    .drawer-overlay,
    .drawer-menu {
        --mobile-top-offset: calc(42px + env(safe-area-inset-top, 0px));
    }

    .top-bar {
        padding: 5px 0 !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        min-height: auto !important;
        height: 42px !important;
    }
    .info-left {
        gap: 6px !important;
        flex: 1;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        padding-left: 10px !important; /* Margem de segurança para telas curvas/safe areas */
    }
    .status-wrapper {
        justify-content: flex-start !important;
        padding-left: 0 !important;
    }
    .status-indicador {
        margin-right: 6px !important;
        margin-left: 0 !important; 
    }
    .social-links {
        gap: 10px !important;
        flex-shrink: 0;
        margin-right: 15px !important;
    }
    .theme-segmented-control {
        transform: scale(0.85);
        transform-origin: right center;
    }
    .status-wrapper {
        font-size: 0.75rem;
    }
}

/* NOTIFICATION CENTER */
.notification-bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
}

.notification-bell-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-badge {
    position: absolute;
    top: 5px; right: 10px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--secondary);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
    animation: badge-pulse 2s infinite;
    pointer-events: none;
}

@keyframes badge-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Novo Círculo Dourado Premium para o Sino */
.bell-circle-premium {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.05);
}

.bell-circle-premium i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.bell-circle-premium:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    border-color: #fff;
}

.bell-circle-premium:active {
    transform: scale(0.9);
    background: var(--accent);
    color: #000;
    transition: 0.1s;
}

.bell-circle-premium.active {
    background: var(--accent);
    color: #000;
}

.bell-circle-premium.active i {
    filter: none;
}

.notif-shake {
    animation: bell-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes pulse-ticket-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(1.5); }
}

/* NOTIFICATION BELL/ICONS */
.drawer-icon-btn {
    background: none;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-icon-btn:hover {
    background: rgba(255,255,255,0.05);
}

.drawer-icon-btn:active {
    transform: scale(0.85);
    background: rgba(255,255,255,0.1);
    transition: 0.1s;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
}

/* Dropdown Desktop */
.notif-dropdown {
    position: absolute;
    top: 130%; right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 3000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: drawerIn 0.3s ease;
}

.notif-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex; justify-content: space-between; align-items: center;
}

.notif-header h3 { font-size: 0.9rem; margin: 0; color: var(--accent); }

.notif-list {
    overflow-y: auto;
    flex: 1;
}

.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex; gap: 12px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border-radius: 12px;
}

.notif-item:hover { background: rgba(255, 255, 255, 0.02); }

.notif-item:active {
    transform: scale(0.96);
    background: rgba(212, 175, 55, 0.08) !important;
    transition: 0.1s;
}

.notif-item.unread { background: rgba(212, 175, 55, 0.03); border-left: 3px solid var(--accent); }

.notif-icon {
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notif-icon.indicacao { background: rgba(212, 175, 55, 0.1); color: var(--accent); }
.notif-icon.voucher { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.notif-icon.sistema { background: rgba(52, 152, 219, 0.1); color: #3498db; }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 3px; color: var(--text-primary); }
.notif-msg { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 0.65rem; color: #666; margin-top: 5px; }

.notif-empty { padding: 40px 20px; text-align: center; color: #888; font-size: 0.85rem; }

/* ADMIN HEADER CENTRALIZADO */
.admin-header {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.admin-nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
}

.admin-bell-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-inner);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.admin-bell-btn:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ADMIN NAVIGATION REFINED FOR MOBILE */
.admin-nav {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.admin-nav-links {
    display: flex;
    gap: 10px;
}

.admin-nav-link {
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--accent);
}

.admin-nav-link.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-nav-link-logout {
    border: 1px solid rgba(220,53,69,0.2);
    color: #ff4757;
    text-decoration: none;
}

.admin-page-title {
    font-size: 2.4rem;
}

@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }
    .admin-nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 10px;
    }
    .admin-nav-link {
        justify-content: center;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border-glass);
        padding: 12px 10px;
        font-size: 0.75rem;
    }
    .admin-nav-link-logout {
        grid-column: span 2; /* Alinhamento perfeito com a grid de 2 colunas */
        background: rgba(220,53,69,0.08) !important;
        margin-top: 5px !important;
        justify-content: center;
        padding: 15px !important;
        border-radius: 12px;
        font-weight: 700;
        width: 100%;
    }
    .admin-nav-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start; /* Alinha o sino com o início da primeira coluna */
    }
    .admin-page-title {
        font-size: 1.6rem !important;
    }
    .admin-page-subtitle {
        font-size: 0.9rem !important;
    }
}

/* COMPONENTES DE CUPONS RESPONSIVOS */
.promocoes-list-container {
    background: var(--bg-glass);
    border-radius: 28px;
    border: 1px solid var(--border-glass);
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.mobile-cupons-list { display: none; flex-direction: column; gap: 15px; }

@media (max-width: 768px) {
    .promocoes-list-container { padding: 20px; border-radius: 20px; }
    .desktop-only-table { display: none !important; }
    .mobile-cupons-list { display: flex; }
}

.refined-coupon-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-row { display: flex; justify-content: space-between; align-items: flex-start; }
.card-col { display: flex; flex-direction: column; gap: 4px; }
.card-code { color: var(--accent); font-weight: 900; font-size: 1.1rem; }
.card-type { font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.card-value { color: #fff; font-weight: 800; font-size: 1.4rem; }
.card-actions { display: flex; gap: 10px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.card-badges { display: flex; align-items: center; gap: 8px; }


/* --- ESTILOS PREMIUM PARA O PERFIL (MEUS DADOS & FIDELIDADE) --- */
.input-group-dados {
    margin-bottom: 2px;
}

.input-group-dados label i {
    width: 20px;
    text-align: center;
}

.input-group-dados input:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.02) !important;
}

/* Animações e Efeitos de Scroll */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.premium-card-anim {
    animation: fadeInSlide 0.5s ease forwards;
}

/* Ajustes de Responsividade para o Painel do Cliente */
@media (max-width: 600px) {
    .admin-nav-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}
/* --- 7. NOVOS COMPONENTES (UX FINAL) --- */

.btn-action-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 5px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-action-small:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-action-small i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* Modal de QR Code (Bright Mode) */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000; /* Fundo preto para destaque */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal-content {
    background: #fff; /* Fundo branco para máximo brilho */
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.3);
    animation: qrModalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes qrModalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.qr-modal-content h2 {
    color: #000;
    margin-bottom: 5px;
    font-weight: 800;
}

.qr-modal-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Efeito de Flicker para simular brilho forte em alguns drivers/telas */
.qr-bright-pulse {
    animation: qrBrightPulse 2s infinite;
}

@keyframes qrBrightPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 80px rgba(212, 175, 55, 0.5); }
}

.qr-close-btn {
    margin-top: 30px;
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
}

.qr-close-btn:hover {
    transform: scale(1.05);
    background: #222;
}

/* =======================================================
   16. ADMIN MINIMAL SYSTEM (EXCETO SERVICOS/ASSINATURAS)
   ======================================================= */
.admin-container {
    --admin-layer-0: #0b0b0d;
    --admin-layer-1: #101114;
    --admin-layer-2: #15181c;
    --admin-surface-bg: #27272f;
    --admin-surface-border: rgba(255,255,255,0.1);
    --admin-surface-radius: 12px;
    /* Override --bg-inner for admin area: solid instead of semi-transparent */
    --bg-inner: #27272f;
    background: transparent;
}

[data-theme="light"] .admin-container {
    --admin-layer-0: #f7f7f8;
    --admin-layer-1: #ffffff;
    --admin-layer-2: #eef2f6;
    --admin-surface-bg: #ffffff;
    --admin-surface-border: rgba(15,23,42,0.08);
    --bg-inner: #f0f0f4;
    background: transparent;
}

.admin-container .table-container {
    background: var(--admin-surface-bg, #27272f) !important;
    border: 1px solid var(--admin-surface-border) !important;
    border-radius: var(--admin-surface-radius) !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.admin-container .table-container h3 {
    margin-bottom: 14px !important;
    font-size: 1.04rem !important;
    font-weight: 700 !important;
    border-left: 2px solid var(--accent) !important;
    padding-left: 10px !important;
}

.admin-container .stats-grid,
.admin-container .dashboard-grid-2,
.admin-container .main-dashboard-grid {
    gap: 14px !important;
}

.admin-container .stat-card {
    border-radius: 12px !important;
    box-shadow: none !important;
    border: 1px solid var(--admin-surface-border) !important;
    background: var(--admin-surface-bg, #27272f) !important;
}

[data-theme="light"] .admin-container .stat-card {
    border-color: rgba(15,23,42,0.08) !important;
    background: var(--admin-surface-bg, #ffffff) !important;
}

.admin-container .filter-group {
    background: var(--admin-surface-bg, #27272f) !important;
    border: 1px solid var(--admin-surface-border) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    box-shadow: none !important;
}

[data-theme="light"] .admin-container .filter-group {
    background: var(--admin-surface-bg, #27272f) !important;
    border-color: rgba(15,23,42,0.08) !important;
}

.admin-container .filter-btn {
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
}

.admin-container .full-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-container .full-table thead th {
    font-size: 0.74rem !important;
    letter-spacing: 0.06em !important;
}

.admin-container .full-table td {
    padding: 13px 10px !important;
}

.admin-container .table-wrapper {
    border: 1px solid var(--admin-surface-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--admin-surface-bg, #27272f);
}

[data-theme="light"] .admin-container .table-wrapper {
    background: var(--admin-surface-bg, #27272f);
    border-color: rgba(15,23,42,0.08);
}

.admin-container .dashboard-header h2,
.admin-container h2 {
    letter-spacing: -0.01em;
}

.admin-container .btn-destaque,
.admin-container .btn-outline {
    border-radius: 10px !important;
}

/* =======================================================
   17. ADMIN MINIMAL FINETUNING
   ======================================================= */
.admin-container {
    --admin-space-1: 8px;
    --admin-space-2: 12px;
    --admin-space-3: 16px;
    --admin-space-4: 20px;
    --admin-space-5: 28px;
}

.admin-container h2 {
    font-size: clamp(1.28rem, 1.1rem + 0.55vw, 1.7rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--admin-space-3);
}

.admin-container h3 {
    font-size: clamp(1.03rem, 0.98rem + 0.22vw, 1.2rem);
    font-weight: 700;
    line-height: 1.25;
}

.admin-container h4 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.admin-container p,
.admin-container span,
.admin-container small {
    line-height: 1.45;
}

.admin-container .table-container + .table-container {
    margin-top: var(--admin-space-4) !important;
}

.admin-container .dashboard-header,
.admin-container .filter-group {
    margin-bottom: var(--admin-space-3);
}

.admin-container .btn-destaque,
.admin-container .btn-outline,
.admin-container .filter-btn,
.admin-container .pagination-btn {
    transition: all 160ms ease !important;
}

.admin-container .btn-destaque:hover,
.admin-container .filter-btn:hover,
.admin-container .pagination-btn:hover {
    transform: translateY(-1px);
}

.admin-container .btn-destaque:active,
.admin-container .filter-btn:active,
.admin-container .pagination-btn:active {
    transform: translateY(0);
}

.admin-container button:disabled,
.admin-container input:disabled,
.admin-container select:disabled,
.admin-container textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-container input[type="text"],
.admin-container input[type="number"],
.admin-container input[type="email"],
.admin-container input[type="date"],
.admin-container input[type="time"],
.admin-container select,
.admin-container textarea {
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: transparent !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.admin-container select {
    color-scheme: dark;
}

.admin-container select option {
    background: #1e1e2a;
    color: #e0e0e0;
}

[data-theme="light"] .admin-container input[type="text"],
[data-theme="light"] .admin-container input[type="number"],
[data-theme="light"] .admin-container input[type="email"],
[data-theme="light"] .admin-container input[type="date"],
[data-theme="light"] .admin-container input[type="time"],
[data-theme="light"] .admin-container select,
[data-theme="light"] .admin-container textarea {
    background: transparent !important;
    border-color: rgba(15,23,42,0.1) !important;
}

[data-theme="light"] .admin-container select {
    color-scheme: light;
}

[data-theme="light"] .admin-container select option {
    background: #ffffff;
    color: #1a1a2e;
}

.admin-container input[type="text"]:focus,
.admin-container input[type="number"]:focus,
.admin-container input[type="email"]:focus,
.admin-container input[type="date"]:focus,
.admin-container input[type="time"]:focus,
.admin-container select:focus,
.admin-container textarea:focus {
    border-color: rgba(212,175,55,0.55) !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.14) !important;
    background: transparent !important;
    outline: none !important;
}

[data-theme="light"] .admin-container input[type="text"]:focus,
[data-theme="light"] .admin-container input[type="number"]:focus,
[data-theme="light"] .admin-container input[type="email"]:focus,
[data-theme="light"] .admin-container input[type="date"]:focus,
[data-theme="light"] .admin-container input[type="time"]:focus,
[data-theme="light"] .admin-container select:focus,
[data-theme="light"] .admin-container textarea:focus {
    background: transparent !important;
}

/* =======================================================
   18. ADMIN UNIFIED PATTERN (MENU + ABAS)
   ======================================================= */
.admin-container .admin-content-shell {
    width: 100%;
}

.admin-container .admin-content-shell > *:first-child {
    margin-top: 0 !important;
}

.admin-container .admin-page-title {
    font-size: clamp(1.28rem, 1.08rem + 0.6vw, 1.75rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: var(--text-primary) !important;
}

.admin-container .admin-page-subtitle {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

.admin-container .stat-card.blue {
    background: linear-gradient(135deg, var(--admin-surface-bg, #27272f), rgba(52,152,219,0.09)) !important;
    border-color: rgba(52,152,219,0.35) !important;
    box-shadow: none !important;
}
.admin-container .stat-card.success {
    background: linear-gradient(135deg, var(--admin-surface-bg, #27272f), rgba(46,204,113,0.09)) !important;
    border-color: rgba(46,204,113,0.35) !important;
    box-shadow: none !important;
}
.admin-container .stat-card.gold {
    background: linear-gradient(135deg, var(--admin-surface-bg, #27272f), rgba(212,175,55,0.09)) !important;
    border-color: rgba(212,175,55,0.35) !important;
    box-shadow: none !important;
}
.admin-container .stat-card.purple {
    background: linear-gradient(135deg, var(--admin-surface-bg, #27272f), rgba(155,89,182,0.09)) !important;
    border-color: rgba(155,89,182,0.35) !important;
    box-shadow: none !important;
}
.admin-container .stat-card.grey {
    background: linear-gradient(135deg, var(--admin-surface-bg, #27272f), rgba(148,163,184,0.07)) !important;
    border-color: rgba(148,163,184,0.22) !important;
    box-shadow: none !important;
}

.admin-container .card-icon-bg {
    color: var(--accent) !important;
    opacity: 0.13 !important;
    filter: none !important;
}

.admin-container .dashboard-grid-2 > div,
.admin-container .stats-grid > div {
    border-radius: 12px !important;
}

.admin-container .table-responsive-wrapper,
.admin-container .promocoes-list-container,
.admin-container .refined-coupon-card,
.admin-container .refined-target-card,
.admin-container .refined-list,
.admin-container .refined-modal,
.admin-container .refined-section,
.admin-container .switch-card {
    background: var(--admin-surface-bg, #27272f) !important;
    border: 1px solid var(--admin-surface-border) !important;
    border-radius: var(--admin-surface-radius) !important;
    box-shadow: none !important;
}

.admin-container .refined-target-card {
    gap: 12px !important;
    padding: 16px !important;
    transform: none !important;
}

.admin-container .refined-target-card:hover {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(212,175,55,0.35) !important;
    transform: none !important;
    box-shadow: none !important;
}

.admin-container .refined-target-card.active {
    background: rgba(212,175,55,0.12) !important;
    border-color: rgba(212,175,55,0.45) !important;
}

.admin-container .refined-target-card .icon-box {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.04) !important;
}

.admin-container .refined-target-card.active .icon-box {
    background: rgba(212,175,55,0.2) !important;
    color: var(--accent) !important;
}

.admin-container .refined-target-card .label {
    font-size: 0.96rem !important;
}

.admin-container .refined-target-card.active .label,
.admin-container .refined-target-card.active .sublabel {
    color: var(--text-primary) !important;
}

.admin-container .refined-table th {
    color: var(--text-muted) !important;
    border-bottom: 1px solid var(--border) !important;
}

.admin-container .refined-table td {
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.admin-container .status-badge-pill {
    border-radius: 999px !important;
    letter-spacing: 0.04em !important;
}

.admin-container .status-badge-pill.green,
.admin-container .status-badge-pill.yellow,
.admin-container .status-badge-pill.gray {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: var(--text-secondary) !important;
}

.admin-container .refined-status-indicator {
    border-radius: 999px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: var(--text-secondary) !important;
}

.admin-container .refined-status-indicator.active {
    background: rgba(212,175,55,0.12) !important;
    border-color: rgba(212,175,55,0.38) !important;
    color: var(--accent) !important;
}

.admin-container .refined-action-btn {
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.02) !important;
    box-shadow: none !important;
}

.admin-container .refined-action-btn.edit:hover,
.admin-container .refined-action-btn.delete:hover {
    transform: translateY(-1px);
    box-shadow: none !important;
}

.admin-container .btn-create-premium,
.admin-container .refined-submit-btn,
.admin-container .btn-ref-save {
    border-radius: 10px !important;
    box-shadow: none !important;
}

.admin-container .btn-sync-ai {
    border-radius: 10px !important;
    box-shadow: none !important;
}

.admin-container .ai-badge {
    border-radius: 999px !important;
    padding: 3px 10px !important;
    letter-spacing: 0.03em !important;
}

.admin-container .refined-modal {
    max-width: 560px !important;
}

.admin-container .refined-modal-overlay {
    backdrop-filter: blur(6px) !important;
}

/* =======================================================
   ADMIN PAGE TRANSITIONS
   ======================================================= */
@keyframes admin-page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-container {
  animation: admin-page-in 0.18s ease-out both;
}

/* === LIGHT MODE FIXES === */

[data-theme="light"] .modal-header {
    background-color: var(--bg-main);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .modal-header h3 {
    color: var(--text-primary);
}

[data-theme="light"] .payment-tabs {
    background: var(--primary);
    border: 1px solid var(--border);
}

[data-theme="light"] .pay-tab {
    color: var(--text-secondary);
}

[data-theme="light"] .pay-tab.active {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

[data-theme="light"] .card-preview {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

[data-theme="light"] .toast {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-footer {
    border-top: 1px solid var(--border);
}

[data-theme="light"] .refined-modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

