/* ============================================
   ARENA DE VENDAS - MAIN STYLESHEET
   Paleta: Cores Psicológicas de Competição
   ============================================ */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Montserrat:wght@700;800;900&display=swap');

/* ============================================
   VARIÁVEIS CSS (Psicologia da Competição)
   ============================================ */
:root {
    /* === CORES PRIMÁRIAS (Dark Mode Base) === */
    --bg-primary: #0d0d14;              /* Preto profundo */
    --bg-secondary: #16161f;            /* Cinza escuro */
    --bg-tertiary: #1f1f2e;             /* Cinza médio */

    /* === CORES DE RANKING (Psicologia) === */
    /* Dourado: Vitória, conquista, excelência */
    --gold-primary: #ffd700;
    --gold-secondary: #ffed4e;
    --gold-dark: #b8860b;

    /* Prata: 2º lugar, prestígio */
    --silver-primary: #c0c0c0;
    --silver-secondary: #e8e8e8;
    --silver-dark: #8c8c8c;

    /* Bronze: 3º lugar, mérito */
    --bronze-primary: #cd7f32;
    --bronze-secondary: #e6a871;
    --bronze-dark: #8b4513;

    /* === CORES DE AÇÃO (Estimulam Competição) === */
    /* Vermelho: Urgência, adrenalina, perigo */
    --red-neon: #ff0844;
    --red-fire: #ff2e63;

    /* Laranja: Energia, entusiasmo, ação */
    --orange-energy: #ff6b35;
    --orange-bright: #ff8c42;

    /* Verde Neon: Progresso, crescimento, sucesso */
    --green-neon: #39ff14;
    --green-matrix: #00ff41;
    --green-success: #2ed573;

    /* Azul Elétrico: Foco, tecnologia, precisão */
    --blue-electric: #00f3ff;
    --blue-cyber: #00d4ff;
    --blue-deep: #0080ff;

    /* Roxo/Magenta: Elite, exclusividade, poder */
    --purple-neon: #bc13fe;
    --magenta-power: #ff006e;
    --purple-royal: #8b00ff;

    /* === TEXTO === */
    --text-primary: #ffffff;
    --text-secondary: #b0b6c3;
    --text-muted: #6b7280;
    --text-gold: #ffd700;

    /* === GRADIENTES (Alta Performance Visual) === */
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffa500 100%);
    --gradient-silver: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 50%, #a9a9a9 100%);
    --gradient-bronze: linear-gradient(135deg, #cd7f32 0%, #e6a871 50%, #a0522d 100%);
    --gradient-fire: linear-gradient(135deg, #ff0844 0%, #ff2e63 50%, #ff6b35 100%);
    --gradient-cyber: linear-gradient(135deg, #00f3ff 0%, #00d4ff 50%, #0080ff 100%);
    --gradient-matrix: linear-gradient(135deg, #39ff14 0%, #00ff41 50%, #2ed573 100%);
    --gradient-elite: linear-gradient(135deg, #bc13fe 0%, #ff006e 50%, #8b00ff 100%);

    /* === SOMBRAS (Profundidade) === */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.7);

    /* === GLOW EFFECTS (Competição) === */
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    --glow-red: 0 0 30px rgba(255, 8, 68, 0.8), 0 0 60px rgba(255, 8, 68, 0.4);
    --glow-green: 0 0 30px rgba(57, 255, 20, 0.8), 0 0 60px rgba(57, 255, 20, 0.4);
    --glow-blue: 0 0 30px rgba(0, 243, 255, 0.8), 0 0 60px rgba(0, 243, 255, 0.4);

    /* === TIMING === */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;

    /* Background animado */
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 8, 68, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 243, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(188, 19, 254, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2.75vw, 1.65rem); }
h4 { font-size: clamp(1.05rem, 2.25vw, 1.35rem); }

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-fire {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyber {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GLASSMORPHISM BASE
   ============================================ */
.glass {
    background: rgba(22, 22, 31, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.glass-strong {
    background: rgba(22, 22, 31, 0.8);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container-arena {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.header-arena {
    padding: 1.25rem 0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-arena h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.header-arena .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================================
   BARRA DE PROGRESSO DA META
   ============================================ */
.meta-progress-container {
    max-width: 600px;
    margin: 1.25rem auto 0;
    background: rgba(22, 22, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.meta-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.meta-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-label span {
    color: var(--text-primary);
}

.meta-valores {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.meta-valores #meta-realizado {
    color: var(--green-neon);
}

.meta-separator {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.meta-valores #meta-total {
    color: var(--text-secondary);
}

.meta-progress-bar {
    position: relative;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.meta-progress-fill {
    height: 100%;
    background: var(--gradient-matrix);
    border-radius: 13px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.meta-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.meta-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.meta-progress-footer {
    margin-top: 0.5rem;
    text-align: center;
}

.meta-falta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-falta.atingida {
    color: var(--green-neon);
    font-weight: 600;
}

/* Meta atingida */
.meta-progress-container.atingida {
    border-color: var(--green-neon);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.meta-progress-container.atingida .meta-progress-fill {
    background: var(--gradient-matrix);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.3);
    }
    50% {
        box-shadow: inset 0 0 30px rgba(57, 255, 20, 0.5);
    }
}

/* Sem meta definida */
.meta-progress-container.sem-meta {
    opacity: 0.6;
}

.meta-progress-container.sem-meta .meta-progress-fill {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .meta-progress-container {
        margin: 1.5rem 1rem 0;
        padding: 1rem;
    }

    .meta-progress-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .meta-progress-bar {
        height: 24px;
    }
}

/* ============================================
   MENU FLUTUANTE MINIMALISTA
   ============================================ */
.floating-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.floating-menu-trigger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(22, 22, 31, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-menu-trigger:hover {
    background: rgba(22, 22, 31, 0.7);
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--blue-electric);
    transform: scale(1.05);
}

.floating-menu.open .floating-menu-trigger {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--blue-electric);
    color: var(--blue-electric);
}

.menu-icon {
    transition: transform 0.3s ease;
}

.floating-menu.open .menu-icon {
    transform: rotate(90deg);
}

.floating-menu-items {
    position: absolute;
    top: 54px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.floating-menu.open .floating-menu-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(22, 22, 31, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    white-space: nowrap;
    text-decoration: none;
}

.floating-menu-item:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--text-primary);
    transform: translateX(5px);
}

.floating-menu-item.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--blue-electric);
    color: var(--blue-electric);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.floating-menu-item span:first-child {
    font-size: 1.1rem;
}

.item-label {
    font-family: 'Inter', sans-serif;
}

/* Animação de entrada dos itens */
.floating-menu.open .floating-menu-item:nth-child(1) { transition-delay: 0.05s; }
.floating-menu.open .floating-menu-item:nth-child(2) { transition-delay: 0.1s; }
.floating-menu.open .floating-menu-item:nth-child(3) { transition-delay: 0.15s; }
.floating-menu.open .floating-menu-item:nth-child(4) { transition-delay: 0.2s; }

/* Mobile */
@media (max-width: 768px) {
    .floating-menu {
        top: 15px;
        left: 15px;
    }

    .floating-menu-trigger {
        width: 40px;
        height: 40px;
    }

    .floating-menu-item {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ============================================
   CONTEÚDO DAS ABAS
   ============================================ */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

/* ============================================
   PÓDIO (TOP 3)
   ============================================ */
.podium-container {
    margin-bottom: 1.25rem;
}

.podium-container h2 {
    margin-bottom: 0.75rem !important;
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.podium-item {
    text-align: center;
    transition: transform var(--transition-normal);
}

.podium-item:hover {
    transform: scale(1.05);
}

/* 1º LUGAR - MAIOR E CENTRALIZADO */
.podium-first {
    order: 2;
    width: 240px;
}

.podium-first .podium-card {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--gold-primary);
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
    position: relative;
    animation: pulse-gold 2s infinite;
    box-shadow: var(--glow-gold), var(--shadow-lg);
}

.podium-first .badge-icon {
    font-size: 3rem;
    margin-bottom: 0.6rem;
    filter: drop-shadow(var(--glow-gold));
}

.podium-first .avatar {
    width: 110px;
    height: 110px;
    border: 3px solid var(--gold-primary);
    box-shadow: var(--glow-gold);
}

.podium-first .rank-value {
    font-size: 1.75rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2º LUGAR */
.podium-second {
    order: 1;
    width: 200px;
}

.podium-second .podium-card {
    background: rgba(192, 192, 192, 0.1);
    border: 2px solid var(--silver-primary);
    padding: 1.25rem 1rem;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3), var(--shadow-md);
}

.podium-second .badge-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.podium-second .avatar {
    width: 85px;
    height: 85px;
    border: 2px solid var(--silver-primary);
}

.podium-second .rank-value {
    font-size: 1.4rem;
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3º LUGAR */
.podium-third {
    order: 3;
    width: 200px;
}

.podium-third .podium-card {
    background: rgba(205, 127, 50, 0.1);
    border: 2px solid var(--bronze-primary);
    padding: 1.25rem 1rem;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3), var(--shadow-md);
}

.podium-third .badge-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.podium-third .avatar {
    width: 85px;
    height: 85px;
    border: 2px solid var(--bronze-primary);
}

.podium-third .rank-value {
    font-size: 1.4rem;
    background: var(--gradient-bronze);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Elementos do pódio */
.avatar {
    border-radius: 50%;
    margin: 0 auto 0.6rem;
    object-fit: cover;
    display: block;
}

.rank-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.rank-stats {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: var(--glow-gold), var(--shadow-xl);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.6), var(--shadow-xl);
    }
}

/* ============================================
   LISTA DE RANKING (Posições 4+)
   ============================================ */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rank-card {
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.rank-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-cyber);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.rank-card:hover {
    border-color: var(--blue-electric);
    transform: translateX(8px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.rank-card:hover::before {
    opacity: 1;
}

.rank-position-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-muted);
    min-width: 45px;
    text-align: center;
}

.rank-card .avatar {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    margin: 0;
}

.rank-info {
    flex: 1;
}

.rank-info .rank-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-matrix);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rank-value-lg {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--green-neon);
    text-align: right;
    min-width: 130px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-first,
    .podium-second,
    .podium-third {
        order: initial;
        width: 100%;
        max-width: 320px;
    }

    .rank-card {
        flex-wrap: wrap;
    }

    .rank-value-lg {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container-arena {
        padding: 1rem;
    }

    .rank-card {
        padding: 1rem;
        gap: 1rem;
    }

    .rank-position-number {
        font-size: 1.4rem;
        min-width: 40px;
    }
}

/* ============================================
   BADGE DE POSICAO (Podio)
   ============================================ */
.badge-position {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.podium-first .badge-position {
    color: var(--gold-primary);
    font-size: 3.5rem;
    text-shadow: var(--glow-gold);
}

.podium-second .badge-position {
    color: var(--silver-primary);
    font-size: 2.5rem;
}

.podium-third .badge-position {
    color: var(--bronze-primary);
    font-size: 2.5rem;
}

/* ============================================
   GLASS CARDS EXTRAS
   ============================================ */
.glass-gold {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--gold-primary);
}

.glass-silver {
    background: rgba(192, 192, 192, 0.1);
    border: 2px solid var(--silver-primary);
}

.glass-bronze {
    background: rgba(205, 127, 50, 0.1);
    border: 2px solid var(--bronze-primary);
}

/* ============================================
   FORMULARIOS E INPUTS
   ============================================ */
.input-glass {
    background: rgba(22, 22, 31, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.input-glass:focus {
    outline: none;
    border-color: var(--blue-electric);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.input-glass::placeholder {
    color: var(--text-muted);
}

.btn-glass {
    background: var(--gradient-cyber);
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-glass:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

.btn-glass:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.glass-medium {
    background: rgba(22, 22, 31, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   MODALS
   ============================================ */
.modal-content-glass {
    background: rgba(22, 22, 31, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.modal-content-glass .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content-glass .modal-title {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   TABELA
   ============================================ */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(0, 243, 255, 0.1);
}

.table-dark th {
    color: var(--text-secondary);
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.1);
}

.table-dark td {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

/* ============================================
   BOTÕES DA TABELA DE USUÁRIOS
   ============================================ */
#usuarios-list .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

#usuarios-list .btn-outline-info {
    color: var(--blue-electric);
    border-color: var(--blue-electric);
    background: rgba(0, 243, 255, 0.1);
}

#usuarios-list .btn-outline-info:hover {
    background: rgba(0, 243, 255, 0.25);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

#usuarios-list .btn-outline-warning {
    color: var(--orange-energy);
    border-color: var(--orange-energy);
    background: rgba(255, 107, 53, 0.1);
}

#usuarios-list .btn-outline-warning:hover {
    background: rgba(255, 107, 53, 0.25);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

#usuarios-list .btn-outline-danger {
    color: var(--red-neon);
    border-color: var(--red-neon);
    background: rgba(255, 8, 68, 0.1);
}

#usuarios-list .btn-outline-danger:hover {
    background: rgba(255, 8, 68, 0.25);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.4);
}

/* Responsivo - empilhar botões em telas menores */
@media (max-width: 1200px) {
    #usuarios-list td:last-child {
        min-width: 280px;
    }

    #usuarios-list .btn {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        margin-bottom: 0.25rem;
    }
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    border-radius: 12px;
    padding: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--green-neon);
    color: var(--green-neon);
}

.alert-danger {
    background: rgba(255, 8, 68, 0.1);
    border: 1px solid var(--red-neon);
    color: var(--red-neon);
}

.alert-info {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--blue-electric);
    color: var(--blue-electric);
}

/* ============================================
   METAS - GESTAO
   ============================================ */
#metas-historico {
    max-height: 200px;
    overflow-y: auto;
}

.meta-historico-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

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

.meta-historico-mes {
    color: var(--text-secondary);
}

.meta-historico-valor {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ============================================
   TEXTO GRADIENTE MATRIX
   ============================================ */
.text-gradient-matrix {
    background: var(--gradient-matrix);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.text-gradient-matrix i {
    -webkit-text-fill-color: var(--green-neon);
}

/* ============================================
   LISTA DE VENDAS (Gestao)
   ============================================ */
.vendas-list-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.vendas-list-container::-webkit-scrollbar {
    width: 6px;
}

.vendas-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.vendas-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 3px;
}

.vendas-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.5);
}

.vendas-resumo {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    color: var(--blue-electric);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    gap: 1rem;
}

.vendas-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.venda-card {
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.venda-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-matrix);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.venda-card:hover {
    border-color: var(--green-neon);
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.venda-card:hover::before {
    opacity: 1;
}

.venda-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.venda-cliente {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
    word-break: break-word;
}

.venda-valor {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--green-neon);
    white-space: nowrap;
}

.venda-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.venda-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.venda-info-item .label {
    color: var(--text-muted);
}

.venda-info-item .value {
    color: var(--text-primary);
    font-weight: 500;
}

.venda-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.venda-actions .btn-edit,
.venda-actions .btn-delete {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.venda-actions .btn-edit {
    background: rgba(0, 243, 255, 0.15);
    color: var(--blue-electric);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.venda-actions .btn-edit:hover {
    background: rgba(0, 243, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.venda-actions .btn-delete {
    background: rgba(255, 8, 68, 0.15);
    color: var(--red-neon);
    border: 1px solid rgba(255, 8, 68, 0.3);
}

.venda-actions .btn-delete:hover {
    background: rgba(255, 8, 68, 0.25);
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.3);
}

/* Modo de edicao ativo */
.venda-card.editing {
    border-color: var(--orange-energy);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.3);
}

.venda-card.editing::before {
    opacity: 1;
    background: var(--gradient-fire);
}

/* Estado vazio */
.vendas-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.vendas-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Loading state */
.vendas-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Responsividade */
@media (max-width: 992px) {
    .vendas-list-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .venda-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .venda-valor {
        align-self: flex-end;
    }

    .venda-body {
        flex-direction: column;
        gap: 0.5rem;
    }

    .venda-actions {
        justify-content: stretch;
    }

    .venda-actions .btn-edit,
    .venda-actions .btn-delete {
        flex: 1;
        justify-content: center;
    }
}
