/* ============================================================
   VARIÁVEIS & RESET
   ============================================================ */
:root {
    --bg-main: #140C06;
    --bg-card: rgba(44, 28, 16, 0.85);
    --bg-input: rgba(22, 13, 6, 0.8);
    
    --color-gold: #F5A623;
    --color-gold-bright: #FFD166;
    --color-coral: #F0733E;
    --color-ocean: #2FA3D4;
    
    --color-text-main: #FFF8EE;
    --color-text-sub: #EDD9BF;
    --color-text-muted: #A8896A;
    --border-color: rgba(212, 169, 106, 0.35);

    --gradient-solar: linear-gradient(135deg, #F5A623 0%, #F0733E 100%);
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-subtitle: 'Raleway', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 1.5rem;
}

/* Efeitos de Luz de Fundo & Pontos de Luz */
.bg-glow-solar {
    position: fixed;
    top: -15%;
    left: 20%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.18) 0%, rgba(240, 115, 62, 0.08) 45%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow1 12s ease-in-out infinite alternate;
}

.bg-glow-ocean {
    position: fixed;
    top: 35%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(47, 163, 212, 0.15) 0%, rgba(47, 163, 212, 0.04) 50%, transparent 70%);
    filter: blur(85px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow2 15s ease-in-out infinite alternate;
}

.bg-glow-coral {
    position: fixed;
    bottom: 10%;
    left: -10%;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(240, 115, 62, 0.16) 0%, rgba(245, 166, 35, 0.06) 50%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow3 14s ease-in-out infinite alternate;
}

.bg-glow-bottom {
    position: fixed;
    bottom: -20%;
    right: 25%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.14) 0%, rgba(47, 163, 212, 0.08) 50%, transparent 70%);
    filter: blur(95px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow1 18s ease-in-out infinite alternate-reverse;
}

/* Pontos de Luz / Orbs Flutuantes */
.bg-light-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(35px);
    opacity: 0.65;
}

.bg-light-orb.orb-1 {
    top: 18%;
    right: 22%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, #FFD166 0%, rgba(245, 166, 35, 0.4) 60%, transparent 80%);
    animation: orbFloat1 8s ease-in-out infinite alternate;
}

.bg-light-orb.orb-2 {
    bottom: 25%;
    right: 15%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #2FA3D4 0%, rgba(47, 163, 212, 0.35) 60%, transparent 80%);
    animation: orbFloat2 10s ease-in-out infinite alternate;
}

.bg-light-orb.orb-3 {
    top: 60%;
    left: 12%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, #F0733E 0%, rgba(240, 115, 62, 0.35) 60%, transparent 80%);
    animation: orbFloat3 9s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.08); }
}

@keyframes floatGlow2 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-35px) scale(1.06); }
}

@keyframes floatGlow3 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { transform: translate(25px, -30px) scale(1.15); opacity: 0.6; }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { opacity: 0.75; }
    100% { transform: translate(-30px, 20px) scale(1.2); opacity: 0.4; }
}

@keyframes orbFloat3 {
    0% { transform: translate(0, 0) scale(0.95); opacity: 0.45; }
    50% { opacity: 0.7; }
    100% { transform: translate(20px, 25px) scale(1.1); opacity: 0.55; }
}

/* Container Principal */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card de Login */
.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 2.8rem 2.2rem;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(245, 166, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-solar);
}

/* Header do Card */
.login-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(245, 166, 35, 0.3));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-style: italic;
    font-weight: 700;
    color: var(--color-gold-bright);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-subtitle {
    font-family: var(--font-subtitle);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label {
    font-family: var(--font-subtitle);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-sub);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-main);
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(168, 137, 106, 0.6);
}

.form-input:focus {
    border-color: var(--color-gold);
    background: rgba(30, 18, 9, 0.95);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18), 0 0 15px rgba(245, 166, 35, 0.15);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-gold);
}

/* Toggle de Visualização de Senha */
.btn-toggle-pass {
    position: absolute;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.btn-toggle-pass:hover {
    color: var(--color-gold-bright);
}

.btn-toggle-pass svg {
    width: 18px;
    height: 18px;
}

/* Opções Extras (Lembrar-me & Link) */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: -0.2rem;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    color: var(--color-text-sub);
    user-select: none;
}

.remember-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.remember-checkbox:checked {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.remember-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #140C06;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Botão de Enviar */
.btn-submit {
    background: var(--gradient-solar);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1.5rem;
    font-family: var(--font-subtitle);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(240, 115, 62, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(240, 115, 62, 0.6), 0 0 15px rgba(245, 166, 35, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Rodapé do Card */
.login-footer {
    text-align: center;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(212, 169, 106, 0.2);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-gold-bright);
}

/* Mensagem de Erro/Alerta */
.alert-box {
    display: none;
    background: rgba(232, 60, 60, 0.15);
    border: 1px solid rgba(232, 60, 60, 0.5);
    color: #FFAAAA;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.2rem;
    animation: shake 0.4s ease;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ============================================================
   ESTILOS DO DASHBOARD (PAINEL DE CONTROLE)
   ============================================================ */
.dashboard-body {
    display: block;
    min-height: 100vh;
    padding: clamp(1.5rem, 3vw, 2.5rem) 1.2rem;
    align-items: initial;
    justify-content: initial;
}

.dashboard-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header do Dashboard */
.dashboard-header {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(245, 166, 35, 0.4));
}

.dash-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-style: italic;
    font-weight: 700;
    color: var(--color-gold-bright);
    line-height: 1.15;
}

.dash-subtitle {
    font-family: var(--font-subtitle);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22, 13, 6, 0.8);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-family: var(--font-subtitle);
    font-weight: 700;
    color: var(--color-gold-bright);
}

.btn-refresh, .btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    font-family: var(--font-subtitle);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
}

.btn-refresh {
    background: rgba(47, 163, 212, 0.15);
    border-color: rgba(47, 163, 212, 0.4);
    color: var(--color-ocean);
}

.btn-refresh:hover {
    background: var(--color-ocean);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(47, 163, 212, 0.4);
}

.btn-refresh.spinning svg {
    animation: spin 1s linear infinite;
}

.btn-logout {
    background: rgba(240, 115, 62, 0.12);
    border-color: rgba(240, 115, 62, 0.35);
    color: var(--color-coral);
}

.btn-logout:hover {
    background: var(--color-coral);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 115, 62, 0.4);
}

/* Grid de Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-gold);
}

.metric-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-box.gold {
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.4);
    color: var(--color-gold-bright);
}

.metric-icon-box.ocean {
    background: rgba(47, 163, 212, 0.15);
    border: 1px solid rgba(47, 163, 212, 0.4);
    color: var(--color-ocean);
}

.metric-icon-box.coral {
    background: rgba(240, 115, 62, 0.15);
    border: 1px solid rgba(240, 115, 62, 0.4);
    color: var(--color-coral);
}

.metric-label {
    font-family: var(--font-subtitle);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
}

.metric-value.small {
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-text-sub);
}

/* Card Principal da Tabela */
.data-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

.search-box input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

.toolbar-info {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Tabela */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(212, 169, 106, 0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 780px;
}

.data-table thead {
    background: rgba(22, 13, 6, 0.95);
    border-bottom: 2px solid var(--border-color);
}

.data-table th {
    padding: 1rem 1.1rem;
    font-family: var(--font-subtitle);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--color-gold-bright);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(212, 169, 106, 0.12);
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(245, 166, 35, 0.05);
}

.data-table td {
    padding: 0.95rem 1.1rem;
    font-size: 0.92rem;
    color: var(--color-text-sub);
    vertical-align: middle;
}

.id-cell {
    font-family: var(--font-subtitle);
    font-weight: 800;
    color: var(--color-gold-bright) !important;
}

.name-cell strong {
    color: #FFFFFF;
    font-size: 0.96rem;
}

.tel-cell {
    white-space: nowrap !important;
}

.wa-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}

.wa-link:hover {
    color: #55f38e;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}

.email-cell a {
    color: var(--color-ocean);
    text-decoration: none;
}

.email-cell a:hover {
    text-decoration: underline;
}

.insta-badge {
    display: inline-block;
    background: rgba(225, 48, 108, 0.12);
    border: 1px solid rgba(225, 48, 108, 0.4);
    color: #FF70A6;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-action-wa {
    display: inline-block;
    background: #25D366;
    color: #0E2914 !important;
    font-family: var(--font-subtitle);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-action-wa:hover {
    background: #55f38e;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.loading-state, .empty-state, .error-state {
    text-align: center;
    padding: 3rem 1rem !important;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(245, 166, 35, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.8rem;
}

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

/* Status Filter Pills */
.status-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(22, 13, 6, 0.85);
    border: 1px solid var(--border-color);
    color: var(--color-text-sub);
    font-family: var(--font-subtitle);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-pill:hover {
    border-color: var(--color-gold);
    color: #FFFFFF;
}

.filter-pill.active {
    background: var(--gradient-solar);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(240, 115, 62, 0.4);
}

.filter-pill.pill-pendente.active {
    background: rgba(245, 166, 35, 0.35);
    border-color: var(--color-gold);
    color: var(--color-gold-bright);
}

.filter-pill.pill-confirmado.active {
    background: rgba(47, 163, 212, 0.35);
    border-color: var(--color-ocean);
    color: #79D2F6;
}

.filter-pill.pill-pago.active {
    background: rgba(37, 211, 102, 0.35);
    border-color: #25D366;
    color: #6DFFA4;
}

.filter-pill.pill-negado.active {
    background: rgba(240, 115, 62, 0.35);
    border-color: var(--color-coral);
    color: #FFAAA0;
}

/* Status Select Dropdown */
.status-cell {
    width: 170px;
}

.status-select {
    width: 100%;
    padding: 6px 10px;
    border-radius: 20px;
    font-family: var(--font-subtitle);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
    -webkit-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFF8EE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    padding-right: 26px;
}

.status-select option {
    background: #1C1008;
    color: #FFFFFF;
    font-family: var(--font-subtitle);
    padding: 8px;
}

/* Cores dos Status */
.status-select.status-pendente {
    background-color: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.6);
    color: var(--color-gold-bright);
}

.status-select.status-pendente:hover, .status-select.status-pendente:focus {
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.35);
}

.status-select.status-confirmado {
    background-color: rgba(47, 163, 212, 0.18);
    border-color: rgba(47, 163, 212, 0.65);
    color: #79D2F6;
}

.status-select.status-confirmado:hover, .status-select.status-confirmado:focus {
    box-shadow: 0 0 12px rgba(47, 163, 212, 0.35);
}

.status-select.status-pago {
    background-color: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.65);
    color: #55f38e;
}

.status-select.status-pago:hover, .status-select.status-pago:focus {
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.35);
}

.status-select.status-negado {
    background-color: rgba(232, 60, 60, 0.18);
    border-color: rgba(232, 60, 60, 0.65);
    color: #FFAAA0;
}

.status-select.status-negado:hover, .status-select.status-negado:focus {
    box-shadow: 0 0 12px rgba(232, 60, 60, 0.35);
}

/* Toast Notification Flutuante */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(26, 16, 8, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--color-gold);
    color: #FFFFFF;
    font-family: var(--font-subtitle);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 166, 35, 0.2);
    z-index: 99999;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notification.success {
    border-color: #25D366;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(37, 211, 102, 0.25);
}

.toast-notification.error {
    border-color: #F0733E;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(240, 115, 62, 0.25);
}

/* Responsividade Dashboard */
@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }
}

/* ============================================================
   ABAS DO DASHBOARD (TABS)
   ============================================================ */
.dashboard-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(212, 169, 106, 0.2);
    padding-bottom: 4px;
    margin-bottom: 0.5rem;
    overflow-x: auto;
}

.dash-tab {
    background: rgba(26, 16, 8, 0.7);
    border: 1.5px solid var(--border-color);
    color: var(--color-text-sub);
    font-family: var(--font-subtitle);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.dash-tab:hover {
    color: #FFFFFF;
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.dash-tab.active {
    background: var(--gradient-solar);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(240, 115, 62, 0.45);
}

.tab-counter-badge {
    background: rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
}

.dash-tab.active .tab-counter-badge {
    background: #FFFFFF;
    color: #140C06;
}

/* Badges e Links na Tabela de Patrocinadores */
.segmento-pill {
    display: inline-block;
    background: rgba(47, 163, 212, 0.15);
    border: 1px solid rgba(47, 163, 212, 0.45);
    color: #79D2F6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-subtitle);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-gold-bright);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s ease;
}

.portfolio-link:hover {
    color: #FFE6A7;
    text-decoration: underline;
}

.btn-read-msg {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 169, 106, 0.25);
    color: var(--color-text-sub);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-read-msg:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--color-gold);
    color: #FFFFFF;
}

/* Modal Customizado */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 1.5rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: #1C1008;
    border: 1.5px solid var(--color-gold);
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    padding: 1.8rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 166, 35, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 169, 106, 0.25);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold-bright);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #FFFFFF;
}

.modal-body {
    max-height: 350px;
    overflow-y: auto;
    font-size: 0.94rem;
    margin-bottom: 1.4rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #FFFFFF;
    font-family: var(--font-subtitle);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Botões de Cadastrar (Header & Toolbar) */
.btn-create-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 12px;
    font-family: var(--font-subtitle);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--gradient-solar);
    color: #120A05;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.btn-create-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 166, 35, 0.55);
    color: #000000;
}

.btn-create-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-family: var(--font-subtitle);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(245, 166, 35, 0.15);
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold-bright);
}

.btn-create-toolbar:hover {
    background: var(--gradient-solar);
    color: #120A05;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

/* Modal Form de Cadastro de Participante */
.modal-form-content {
    max-width: 520px;
}

.form-group-modal {
    margin-bottom: 1.1rem;
    text-align: left;
}

.modal-label {
    display: block;
    font-family: var(--font-subtitle);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-sub);
    margin-bottom: 0.4rem;
}

.required-star {
    color: #FF5A5A;
    font-weight: 800;
}

.optional-tag {
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 400;
}

.modal-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

.modal-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
    background: rgba(30, 18, 8, 0.95);
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modal-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    padding-right: 34px;
}

.modal-select option {
    background: #1C1008;
    color: #FFFFFF;
    padding: 8px;
}

.btn-primary-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gradient-solar);
    color: #120A05;
    border: none;
    font-family: var(--font-subtitle);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 9px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.btn-primary-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.55);
    color: #000000;
}





