:root {
    --bg-dark: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --podium-1st-border: #facc15;
    --podium-2nd-border: #94a3b8;
    --podium-3rd-border: #fb923c;

    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 50px;
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: blob-bounce 10s infinite ease;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #3b82f6;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #a855f7;
    bottom: -150px;
    right: -100px;
    animation-delay: 2s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    top: 30%;
    left: 40%;
    animation-delay: 4s;
    opacity: 0.3;
}

@keyframes blob-bounce {
    0% {
        transform: scale(1) translate(0px, 0px);
    }

    33% {
        transform: scale(1.1) translate(30px, -50px);
    }

    66% {
        transform: scale(0.9) translate(-20px, 20px);
    }

    100% {
        transform: scale(1) translate(0px, 0px);
    }
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.header-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Filter Styles */
.date-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.date-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.date-input-wrapper label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-input-wrapper input,
.date-input-wrapper select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.6rem;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    min-width: 140px;
}

.date-input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.date-input-wrapper select option {
    background: var(--bg-dark);
    color: white;
}

.date-input-wrapper input:focus,
.date-input-wrapper select:focus,
.multi-select-toggle:focus {
    border-color: var(--primary-color);
}

/* Dropdown Button Styles */
.dropdown-wrapper {
    position: relative;
}

.dropdown-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 48px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dropdown-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.dropdown-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
}

.dropdown-btn span {
    font-weight: 500;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.dropdown-btn i {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-btn.active i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Product Checkbox List (Dropdown Content) */
.product-checkbox-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #0f172a;
    /* Dark solid background */
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1rem;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1000;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.1);

    /* Smooth fade and slide down */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.98);
    transform-origin: top center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-behavior: smooth;
}

.product-checkbox-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Checkbox Item Container */
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.checkbox-item.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.1);
}

/* Hide default checkbox */
.checkbox-item input[type="checkbox"] {
    display: none;
}

/* Custom Neon Checkbox */
.custom-checkbox {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid rgba(148, 163, 184, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.5);
    margin-top: 2px;
    /* Align with text */
}

.custom-checkbox i {
    color: white;
    font-size: 8px;
    /* Default small/invisible */
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selected State for Custom Checkbox */
.checkbox-item.selected .custom-checkbox {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.checkbox-item.selected .custom-checkbox i {
    opacity: 1;
    font-size: 12px;
    transform: scale(1);
}

/* Product Name Text */
.prod-name {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
    font-weight: 400;
    white-space: normal;
    /* Allows wrapping */
    word-break: break-word;
    flex-grow: 1;
    transition: color 0.2s;
}

.checkbox-item:hover .prod-name {
    color: white;
}

.checkbox-item.selected .prod-name {
    color: white;
    font-weight: 500;
}

.product-checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.product-checkbox-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.product-checkbox-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.product-checkbox-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}



.btn-filter {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-filter:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Layout Grid Sections */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

/* KPI CARDS */
.kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.kpi-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* HEALTH SECTION (Negative KPIs) */
.health-section {
    margin-bottom: 3rem;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 1400px) {
    .health-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.health-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.health-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.health-header.red {
    color: #f87171;
}

.health-header.orange {
    color: #fb923c;
}

.health-body {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.health-data {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.health-data .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.health-data strong {
    font-size: 1rem;
    color: #fff;
}

.health-header.red~.health-body strong {
    color: #fca5a5;
}

.health-header.orange~.health-body strong {
    color: #fdba74;
}

/* Accordion Motivos de Recusa */
.motivos-header-clickable {
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    transition: color 0.2s;
}

.motivos-header-clickable:hover {
    color: white;
}

.motivos-header-clickable i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.collapsible-content.open {
    max-height: 8000px;
    opacity: 1;
}

/* REC & PREVISIBILITY */
.carteira-futura-card {
    border: 1px solid rgba(250, 204, 21, 0.4);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(163, 230, 53, 0.05));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.1);
    transition: transform 0.3s;
}

.carteira-futura-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.2);
}

.carteira-header {
    color: #fca5a5;
    /* Fallback color */
    color: #fef08a;
    /* Pale golden yellow */
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.carteira-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carteira-body strong {
    font-size: 2.5rem;
    font-weight: 800;
    color: #facc15;
    text-shadow: 0px 2px 10px rgba(250, 204, 21, 0.4);
    line-height: 1.2;
}

.carteira-body .muted {
    font-size: 0.9rem;
    color: #d1d5db;
    opacity: 0.9;
}

/* UTM TABS */
.utm-tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.utm-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.utm-tab-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* PAYMENT PILLS (CARDS) */
.payment-pills-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.8rem;
}

/* Custom scrollbar for horizontal pills */
.payment-pills-container::-webkit-scrollbar {
    height: 6px;
}

.payment-pills-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.payment-pills-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.pay-pill {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: unset;
    text-align: center;
}

.pay-pill:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.pay-pill.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: #7c3aed;
    color: white;
}

.pay-pill .label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pay-pill .count {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.pay-pill.active .count {
    color: rgba(233, 213, 255, 0.7);
}

/* DRILLDOWN ROWS */
.drilldown-row {
    background: rgba(15, 23, 42, 0.5);
    /* slightly darker */
    cursor: default;
}

.drilldown-row td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.drilldown-row td:first-child {
    padding-left: 3rem;
    /* indent */
    position: relative;
}

.drilldown-row td:first-child::before {
    content: "↳";
    position: absolute;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

.clickable-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.recurring-section {
    margin-bottom: 3rem;
}

.recurring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.status-recorrencia h3,
.projecao-caixa h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.status-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-item strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.status-item.green span,
.status-item.green strong {
    color: #4ade80;
}

.status-item.red span,
.status-item.red strong {
    color: #f87171;
}

.status-item.blue span,
.status-item.blue strong {
    color: #38bdf8;
}

.status-item .muted {
    color: var(--text-secondary);
}

/* Progresso de Caixa */
.projecao-item {
    margin-bottom: 1.5rem;
}

.projecao-item:last-child {
    margin-bottom: 0;
}

.projecao-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.projecao-header strong {
    color: #fff;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.fill-30 {
    background: #3b82f6;
    width: 0%;
}

.fill-60 {
    background: #4ade80;
    width: 0%;
}

.fill-90 {
    background: #facc15;
    width: 0%;
}

/* Middle / Funnel / Empty State */
.middle-grids {
    margin-bottom: 3rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--text-secondary);
    text-align: center;
    gap: 1rem;
}

.empty-state i {
    font-size: 2rem;
    opacity: 0.5;
}

/* Ranking Table */
.table-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 1.2rem;
    text-align: left;
}

.ranking-table th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.ranking-table tr {
    transition: background 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

.ranking-table td {
    color: #e2e8f0;
    font-weight: 400;
}

.rank-col {
    font-weight: 700 !important;
    width: 80px;
}

.rank-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.9rem;
}

.name-col {
    font-weight: 600 !important;
    color: #fff;
}

.f-col {
    color: #facc15 !important;
    font-weight: 600 !important;
}

.e-col {
    color: #4ade80 !important;
    font-weight: 600 !important;
}

.t-col {
    color: #38bdf8 !important;
}

/* UTM Search Bar */
.utm-search-wrapper {
    position: relative;
    width: 300px;
    display: flex;
    align-items: center;
}

.utm-search-wrapper i.fa-magnifying-glass {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.utm-search-wrapper input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 32px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.utm-search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.utm-search-wrapper input:focus {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}

.utm-search-clear {
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.utm-search-clear:hover {
    color: #fff;
}

/* UTM TABLE SCROLL AND STICKY COLUMNS */
.utm-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.utm-table-wrapper .ranking-table {
    min-width: 600px;
    /* Force overflow when many cols are selected */
    table-layout: auto;
}

.utm-table-wrapper th.utm-col,
.utm-table-wrapper td.utm-col {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.utm-table-wrapper th.th-vendas,
.utm-table-wrapper td.td-vendas {
    position: sticky;
    right: 170px;
    background: #0f172a;
    min-width: 100px;
    z-index: 5;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.utm-table-wrapper th.th-faturamento,
.utm-table-wrapper td.td-faturamento {
    position: sticky;
    right: 0;
    background: #0f172a;
    min-width: 170px;
    z-index: 5;
}

/* Hover effect on sticky rows */
.utm-table-wrapper .ranking-table tr:hover td.td-vendas,
.utm-table-wrapper .ranking-table tr:hover td.td-faturamento {
    background: #1e293b;
}

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

    .status-grid {
        grid-template-columns: 1fr;
    }

    .date-filter-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        border: none;
        padding: 0;
    }

    .date-input-wrapper {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }
}

/* Tabs System */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.tab-btn.active {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-content {
    display: none;
    animation: fade-in-up 0.4s ease forwards;
}

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Podium Styles */
.podium-section {
    margin-bottom: 3rem;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    padding-bottom: 2rem;
}

.podium-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    width: 250px;
    transition: all 0.4s ease;
}

.podium-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5);
}

.podium-item.rank-1 {
    border-top: 4px solid var(--podium-1st-border);
    z-index: 3;
    transform: scale(1.1);
}

.podium-item.rank-1:hover {
    transform: scale(1.1) translateY(-10px);
}

.podium-item.rank-2 {
    border-top: 4px solid var(--podium-2nd-border);
    z-index: 2;
}

.podium-item.rank-3 {
    border-top: 4px solid var(--podium-3rd-border);
    z-index: 1;
}

.rank-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.rank-1 .rank-badge {
    border-color: var(--podium-1st-border);
    color: var(--podium-1st-border);
}

.rank-2 .rank-badge {
    border-color: var(--podium-2nd-border);
    color: var(--podium-2nd-border);
}

.rank-3 .rank-badge {
    border-color: var(--podium-3rd-border);
    color: var(--podium-3rd-border);
}

.podium-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1.2;
}

.podium-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.podium-qty {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-item.rank-1 {
        transform: scale(1);
        margin-top: 2rem;
    }

    .podium-item.rank-1:hover {
        transform: translateY(-10px);
    }
}

/* Closing media query */

/* Squad Tags and Pills */
.squad-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.squad-pill:hover,
.squad-pill.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
}

.squad-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
    vertical-align: middle;
}

/* Squad Colors */
.tag-recuperacao {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}

.tag-eventos {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fcd34d;
}

.tag-high-ticket {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #67e8f9;
}

.tag-lancamento {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.tag-social-seller {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.5);
    color: #f9a8d4;
}

.tag-sem-squad {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

/* Squad Funnel Layout */
.squad-funnel-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-top: 1rem;
}

.squad-funnel-grid::-webkit-scrollbar {
    height: 8px;
}

.squad-funnel-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.squad-funnel-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.squad-funnel-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.squad-funnel-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.squad-funnel-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.squad-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.squad-funnel-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.squad-metric {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.squad-metric .s-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.squad-metric .s-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.squad-metric.full-width {
    grid-column: span 2;
}

.squad-metric.full-width .s-value {
    font-size: 1.5rem;
}