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

:root {
    --primary: #e63946;
    --primary-hover: #ef233c;
    --bg-dark: #0a0a0c;
    --bg-surface: #121215;
    --bg-surface-light: #1c1c22;
    --text-main: #f8f9fa;
    --text-muted: #8b8d98;
    --border-color: rgba(230, 57, 70, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --glass-bg: rgba(18, 18, 21, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg-dark); color: var(--text-main); min-height: 100vh; overflow-x: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- LOGIN PAGE --- */
.login-wrapper {
    position: relative;
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: radial-gradient(circle at 20% 15%, rgba(239, 68, 68, 0.22) 0%, transparent 45%),
                radial-gradient(circle at 80% 85%, rgba(220, 38, 38, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(185, 28, 28, 0.1) 0%, transparent 60%),
                #06050a;
    overflow: hidden;
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ================= LOGIN SPLIT LAYOUT & HERO ================= */
.login-split-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 30px 20px;
    z-index: 1;
}

.split-login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
}

/* Lado Esquerdo - Equipe & Hero Showcase */
.login-hero-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 6px 14px;
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.hero-logo-box {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-logo-emblem {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(185, 28, 28, 0.4));
    border: 2px solid rgba(239, 68, 68, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.4), inset 0 0 15px rgba(239, 68, 68, 0.3);
    animation: emblemPulse 3s infinite ease-in-out;
}

@keyframes emblemPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.35), inset 0 0 15px rgba(239, 68, 68, 0.25); transform: scale(1); }
    50% { box-shadow: 0 0 45px rgba(239, 68, 68, 0.6), inset 0 0 22px rgba(239, 68, 68, 0.45); transform: scale(1.03); }
}

.hero-brand-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.5px;
}
.hero-brand-title span {
    color: var(--primary);
    text-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18, 16, 28, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.hero-feature-item:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(24, 20, 38, 0.7);
    transform: translateX(4px);
}

.hero-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-feature-text h4 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}
.hero-feature-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #34d399;
    font-weight: 600;
    margin-top: 4px;
}
.hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: statusBlink 2s infinite ease-in-out;
}
@keyframes statusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Lado Direito - Card de Login com Abas de Função */
.login-form-side {
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.login-card-split {
    position: relative;
    background: rgba(14, 12, 22, 0.88);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 24px;
    padding: 38px 34px;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.15), 0 30px 70px -15px rgba(0, 0, 0, 0.9);
}

/* Seletor de Perfis (CLIENTE / VENDEDOR / ADMIN) */
.role-tabs-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(8, 7, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 26px;
    gap: 4px;
}

.role-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 6px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-transform: uppercase;
}

.role-tab-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.role-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.role-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.role-tab-btn.active i {
    transform: scale(1.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-header h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}
.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
}
.input-with-icon i.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.25s ease;
}
.input-with-icon .form-control {
    padding-left: 44px;
    padding-right: 44px;
}
.input-with-icon .form-control:focus + i.field-icon {
    color: var(--primary);
}

.toggle-pass-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.2s ease;
}
.toggle-pass-btn:hover {
    color: #fff;
}

/* Responsividade do Login Split */
@media (max-width: 900px) {
    .split-login-container {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 480px;
    }
    .login-hero-side {
        text-align: center;
        align-items: center;
    }
    .hero-logo-box {
        flex-direction: column;
        text-align: center;
    }
    .hero-features-list {
        display: none; /* Em mobile, foca no formulário de login */
    }
    .hero-brand-title {
        font-size: 2.2rem;
    }
}

.login-card {
    position: relative;
    z-index: 2;
    background: rgba(14, 12, 22, 0.78);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 20px;
    padding: 42px 38px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.15), 0 25px 60px -15px rgba(0, 0, 0, 0.85);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.login-logo { text-align: center; font-size: 2.1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.login-logo span { color: var(--primary); text-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
.login-subtitle { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; letter-spacing: 0.2px; }

.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: #a1a1aa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.6px; }
.form-control {
    width: 100%; background: rgba(8, 7, 13, 0.85); border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main); padding: 14px 16px; border-radius: 10px; font-size: 0.95rem;
    transition: all 0.25s ease; outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 0 15px rgba(239, 68, 68, 0.15);
    background: rgba(12, 10, 20, 0.95);
}

.btn {
    width: 100%; background: var(--primary); color: #fff; border: none; padding: 14px;
    border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; justify-content: center; align-items: center; gap: 10px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}
.btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.5);
}
.btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none !important;
}
.btn-loading {
    position: relative;
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}

.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-surface-light); transform: none; box-shadow: none; border-color: var(--text-muted);}

/* Animations for Login */
@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-7px); }
    30%, 60%, 90% { transform: translateX(7px); }
}
.login-shake {
    animation: loginShake 0.5s ease-in-out;
}

.login-success-anim {
    transform: scale(0.97);
    opacity: 0.9;
    filter: blur(0.5px);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.3), 0 25px 60px -15px rgba(0, 0, 0, 0.85);
}

/* --- DASHBOARD LAYOUT --- */
.dash-layout { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
    width: 260px; background: var(--bg-surface); border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column; transition: all 0.3s; z-index: 10;
}
.sidebar-header { padding: 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px;}
.sidebar-header .logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px;}
.sidebar-header .logo span { color: var(--primary); }

.nav-menu { padding: 20px 15px 50px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;}
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: var(--text-muted);
    text-decoration: none; border-radius: 8px; font-weight: 500; font-size: 0.9rem; transition: all 0.2s;
    cursor: pointer;
}
.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-item:hover { color: var(--text-main); background: rgba(255,255,255,0.03); }
.nav-item.active { color: var(--primary); background: rgba(230, 57, 70, 0.08); font-weight: 600; }
.nav-item.logout-item { color: #f87171; }
.nav-item.logout-item:hover { color: #fff; background: rgba(239, 68, 68, 0.15); }

.topbar-logout-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 8px;
    color: #ef4444; font-size: 1rem; cursor: pointer; transition: all 0.2s ease;
}
.topbar-logout-btn:hover {
    background: #ef4444; color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.nav-category { font-size: 0.75rem; color: #555; text-transform: uppercase; letter-spacing: 1px; margin: 15px 0 5px 15px; font-weight: 700; }

/* Main Content Area */
.main-wrapper { flex: 1; display: flex; flex-direction: column; background: var(--bg-dark); }

/* Topbar */
.topbar {
    height: 70px; padding: 0 30px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-light); background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(10px); z-index: 5;
}
.topbar-title { font-size: 1.2rem; font-weight: 600; }

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

/* Credits Widget */
.credits-widget { display: flex; flex-direction: column; align-items: flex-end; }
.credits-value { font-weight: 700; color: var(--primary); font-size: 1rem; line-height: 1; display: flex; align-items: center; gap: 5px;}
.credits-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;}

/* Profile Widget */
.profile-widget { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 5px 10px; border-radius: 30px; transition: background 0.2s;}
.profile-widget:hover { background: rgba(255,255,255,0.05); }
.profile-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface-light); border: 2px solid var(--primary); display: flex; justify-content: center; align-items: center; overflow: hidden;}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { display: flex; flex-direction: column; }
.profile-name { font-weight: 600; font-size: 0.9rem; }
.profile-role { font-size: 0.75rem; color: var(--text-muted); }

/* Page Content */
.page-content { padding: 30px; flex: 1; overflow-y: auto; display: none; animation: fadeIn 0.3s ease forwards;}
.page-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Cards & Containers */
.card {
    background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 12px;
    padding: 25px; margin-bottom: 24px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; color: var(--text-main); display: flex; align-items: center; gap: 10px;}

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 15px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
td { padding: 16px 15px; border-bottom: 1px solid rgba(255,255,255,0.02); font-size: 0.9rem; vertical-align: middle;}
tr:hover td { background: rgba(255,255,255,0.02); }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge.active { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge.paused { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge.expired { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge.outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-muted); }

.action-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 5px; transition: color 0.2s;}
.action-btn:hover { color: var(--text-main); }
.action-btn.delete:hover { color: var(--danger); }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: none; justify-content: center; align-items: center; z-index: 100; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 16px;
    width: 100%; max-width: 450px; padding: 30px; transform: scale(0.95); transition: transform 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); position: relative;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer;}
.modal-close:hover { color: #fff; }

/* Toasts (Notificações) */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--bg-surface-light); border-left: 4px solid var(--primary); color: #fff;
    padding: 16px 20px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 12px; min-width: 300px;
    animation: slideInRight 0.3s ease forwards;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }

/* Grid Dashboard */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { background: var(--bg-surface); padding: 20px; border-radius: 12px; border: 1px solid var(--border-light); display: flex; align-items: center; gap: 20px;}
.stat-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(230, 57, 70, 0.1); color: var(--primary); display: flex; justify-content: center; align-items: center; font-size: 1.5rem;}
.stat-info h4 { font-size: 1.5rem; margin-bottom: 2px; }
.stat-info p { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

/* Mobile Menu & Toggle Buttons */
.mobile-toggle-btn {
    display: none; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: var(--bg-surface-light);
    border: 1px solid var(--border-light); border-radius: 8px;
    color: #fff; font-size: 1.1rem; cursor: pointer; transition: all 0.2s ease;
}
.mobile-toggle-btn:hover { background: rgba(255,255,255,0.1); color: var(--primary); }

.sidebar-close-btn {
    display: none; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light); border-radius: 6px;
    color: var(--text-muted); font-size: 1rem; cursor: pointer; transition: all 0.2s ease;
    margin-left: auto;
}
.sidebar-close-btn:hover { color: #fff; background: rgba(239, 68, 68, 0.2); border-color: var(--danger); }

.sidebar-backdrop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.sidebar-backdrop.active { opacity: 1; pointer-events: auto; }

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dash-layout { position: relative; }
    
    .sidebar {
        position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
        z-index: 100; box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .sidebar.open { left: 0; }
    
    .mobile-toggle-btn { display: inline-flex; }
    .sidebar-close-btn { display: inline-flex; }
    
    .main-wrapper { width: 100%; min-width: 0; }
    
    .topbar { padding: 0 16px; height: 64px; }
    .topbar-title { font-size: 1.05rem; }
    
    .profile-widget { padding: 4px 8px; gap: 8px; }
    .profile-info { display: none; }
    .credits-widget .credits-label { display: none; }
    .credits-value { font-size: 0.9rem; }
    
    .page-content { padding: 16px; }
    .grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 18px; margin-bottom: 16px; }
    
    .login-card { padding: 25px 20px; max-width: 92%; }
    .stat-card { padding: 15px; gap: 15px; }
    
    /* Stack side-by-side flex containers on mobile */
    .dash-layout [style*="display: flex; gap: 30px;"],
    .dash-layout [style*="display:flex; gap: 30px;"],
    .dash-layout [style*="display: flex; gap: 15px;"],
    .dash-layout [style*="display:flex; gap: 15px;"] {
        flex-direction: column !important;
        gap: 14px !important;
    }
    
    .dash-layout [style*="width:200px;"] {
        width: 100% !important;
    }
    
    .table-container { -webkit-overflow-scrolling: touch; width: 100%; }
    table th, table td { padding: 12px 10px; font-size: 0.85rem; white-space: nowrap; }
}

@media (max-width: 480px) {
    .topbar { padding: 0 12px; }
    .page-content { padding: 12px; }
    .card { padding: 15px; }
}

/* ==========================================================================
   HALL DA FAMA & FATURAMENTO AO VIVO (ESTILOS MODERNOS)
   ========================================================================== */

/* Banner Ao Vivo - Volume de Negócios */
.live-revenue-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 12, 22, 0.95) 50%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15), 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(12px);
}

.live-revenue-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 180px;
    height: 180px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981' opacity='0.04'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    pointer-events: none;
}

.live-rev-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.live-rev-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.live-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.live-rev-label {
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-rev-val {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.live-rev-currency {
    color: #818cf8;
    font-size: 1.35rem;
    font-weight: 700;
}

.live-rev-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 6px;
}

.live-rev-sub i {
    color: #10b981;
}

/* 4-Card Overview Stats Grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.dash-stat-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dash-stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.dash-stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.dash-stat-val {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 2px;
}

.dash-stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* HALL DA FAMA - PODIUM GRID */
.hall-fame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hall-fame-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hall-fame-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.hall-podium-card {
    background: rgba(18, 16, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hall-podium-card:hover {
    transform: translateY(-4px);
}

/* Rank 1 - Ouro */
.hall-rank-1 {
    border-color: rgba(251, 191, 36, 0.45);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.12) 0%, rgba(18, 16, 28, 0.95) 75%);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.18), 0 0 20px rgba(251, 191, 36, 0.08);
}

/* Rank 2 - Prata */
.hall-rank-2 {
    border-color: rgba(226, 232, 240, 0.35);
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.09) 0%, rgba(18, 16, 28, 0.95) 75%);
    box-shadow: 0 12px 30px rgba(203, 213, 225, 0.12);
}

/* Rank 3 - Bronze */
.hall-rank-3 {
    border-color: rgba(249, 115, 22, 0.35);
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.09) 0%, rgba(18, 16, 28, 0.95) 75%);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.12);
}

.hall-medal-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 14px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hall-rank-1 .hall-medal-badge {
    background: radial-gradient(circle, #fde047 0%, #ca8a04 100%);
    border: 2px solid #fef08a;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.5);
}

.hall-rank-2 .hall-medal-badge {
    background: radial-gradient(circle, #f1f5f9 0%, #94a3b8 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(226, 232, 240, 0.4);
}

.hall-rank-3 .hall-medal-badge {
    background: radial-gradient(circle, #fdba74 0%, #c2410c 100%);
    border: 2px solid #ffedd5;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.hall-seller-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.hall-seller-pos {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sales-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sales-pill-gold {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.sales-pill-silver {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}

.sales-pill-bronze {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.5);
    color: #fb923c;
}

/* Estilo do Seletor de Pacotes de Validade na tela de Geração */
.package-preview-box {
    background: rgba(14, 12, 24, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.package-details-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.package-detail-item {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.package-detail-item strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-top: 3px;
}

/* Badge de Trial */
.badge-trial {
    background: rgba(236, 72, 153, 0.2) !important;
    border: 1px solid rgba(236, 72, 153, 0.4) !important;
    color: #f472b6 !important;
    font-weight: 700;
}

@media (max-width: 992px) {
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hall-fame-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 768px) {
    .live-revenue-card { flex-direction: column; align-items: flex-start; padding: 20px; }
    .live-rev-val { font-size: 1.8rem; }
    .dash-stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .package-details-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ================= RECARGA PIX & GATEWAY MERCADO PAGO ================= */
.btn-pix-topbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.btn-pix-topbar:hover {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.btn-pix-topbar i {
    color: #38bdf8;
    transition: color 0.25s ease;
}

.btn-pix-topbar:hover i {
    color: #fde047;
}

.pix-preset-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pix-preset-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.pix-preset-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

