:root {
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --gold-light: #FFF9C4;
    --black: #000000;
    --black-dark: #050505;
    --black-light: #1A1A1A;
    --gray: #8A8A8A;
    --gray-light: #E5E5E5;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success: #00E676;
    --danger: #FF1744;
    --warning: #FF9100;
    --info: #2979FF;
    --money: #00C853;
    --pause: #FF4081;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Sora', sans-serif;
    background: radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 45%), var(--black-dark);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 14px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

#particles-js {
    position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(5, 5, 5, 0.98));
    border-right: 1px solid rgba(255, 215, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 5;
}

.sidebar-brand {
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray-light);
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    text-align: left;
}

.nav-item i {
    width: 18px;
    text-align: center;
    color: var(--gold);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.nav-item.is-active {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.sidebar-footer-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 6px;
}

.sidebar-footer-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.sidebar-footer-note {
    font-size: 10px;
    color: var(--gray);
    margin-top: 6px;
}

.content-area {
    min-width: 0;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-backdrop {
    display: none;
}

.tab-panel {
    display: none;
    animation: tabIn 0.4s ease;
}

.tab-panel.is-active {
    display: block;
}

@keyframes tabIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 4;
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

.app-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
    background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.1); border-radius: var(--radius);
    padding: 30px 25px; box-shadow: var(--shadow); width: 100%; max-width: 400px; text-align: center;
    transform: scale(0.9); opacity: 0;
    animation: loginEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes loginEntrance {
    0% { transform: scale(0.9); opacity: 0; }
    70% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}
.brand-logo {
    font-size: 36px; font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 8px; letter-spacing: -1px;
}
.brand-tagline { font-size: 14px; color: var(--gray); margin-bottom: 30px; }

.input-group { margin-bottom: 15px; text-align: left; position: relative; }
.input-label { display: block; font-size: 12px; color: var(--gray); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
    width: 100%; padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius); color: var(--white); font-size: 14px;
    font-family: 'Sora', sans-serif; transition: var(--transition);
}

select option {
    background-color: #1A1A1A; 
    color: var(--white); 
    padding: 10px;
}

textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.validating { border-color: var(--warning) !important; box-shadow: 0 0 0 2px rgba(255, 145, 0, 0.2) !important; }
.valid { border-color: var(--success) !important; box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2) !important; }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(255, 23, 68, 0.2) !important; }

.validation-indicator {
    position: absolute; right: 12px; top: 38px;
    width: 16px; height: 16px; border-radius: 50%; display: none;
}
.validating-indicator { display: block; background: var(--warning); animation: pulse 1.5s infinite; }
.valid-indicator { display: block; background: var(--success); }
.invalid-indicator { display: block; background: var(--danger); }

@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

.btn {
    width: 100%; padding: 14px 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none; border-radius: var(--radius); color: var(--black);
    font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition);
    position: relative; overflow: hidden; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-danger { background: linear-gradient(135deg, #ff5252, #d50000); color: white; }
.btn-success { background: linear-gradient(135deg, #69f0ae, #00c853); color: var(--black); }
.btn-info { background: linear-gradient(135deg, #448aff, #2962ff); color: white; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-outline-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: rgba(255,215,0,0.1); color: var(--white); }

.dashboard-header {
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3); padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
    transform: translateY(-20px); opacity: 0;
    animation: headerEntrance 0.6s ease-out 0.3s forwards;
}
@keyframes headerEntrance {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.logo-mini { font-size: 18px; font-weight: 800; color: var(--gold); }
.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--black); font-size: 14px;
}

.dashboard-content { padding: 20px; max-width: 1600px; margin: 0 auto; }

.section {
    background: rgba(15, 15, 15, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
    position: relative; overflow: hidden;
    transform: translateY(20px); opacity: 0;
    animation: sectionEntrance 0.5s ease-out forwards;
}
.section:nth-child(1) { animation-delay: 0.4s; }
.section:nth-child(2) { animation-delay: 0.5s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.7s; }
.section:nth-child(n+5) { animation-delay: 0s; animation: none; opacity: 1; transform: none; }

@keyframes sectionEntrance {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.hidden { display: none !important; }

#planos-section, #mass-update-section, #export-section {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--gold); opacity: 0.5;
}
.section.finance-section::before { background: var(--money); }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 16px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--gold); font-size: 14px; }

.metrics-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 20px;
}
.metric-card {
    background: rgba(20, 20, 20, 0.8); border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: var(--radius); padding: 15px; transition: var(--transition);
}
.metric-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.metric-value { font-size: 24px; font-weight: 800; color: var(--gold); margin-bottom: 5px; }
.metric-label { font-size: 11px; color: var(--gray); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.metric-card-finance { border-color: rgba(0, 200, 83, 0.2); }
.metric-card-finance:hover { border-color: var(--money); }
.metric-card-finance .metric-value { color: var(--money); }

.finance-detail-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px;
}
.finance-sub-card {
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: var(--radius); border-left: 2px solid var(--money);
}

.premium-lock-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(12px);
    z-index: 10; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s ease;
    animation: borderPulse 4s infinite alternate;
}

@keyframes borderPulse {
    0% { border-color: rgba(255, 215, 0, 0.1); box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
    100% { border-color: rgba(255, 215, 0, 0.3); box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.05); }
}

.lock-icon { font-size: 48px; color: var(--gold); margin-bottom: 15px; filter: drop-shadow(0 0 10px rgba(255,215,0,0.3)); }
.lock-title { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }

.lock-cta-text { font-size: 14px; color: var(--gold); margin-bottom: 20px; font-weight: 600; max-width: 400px; }

.premium-btn-group {
    display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;
}

.table-container { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 0 -20px; 
    padding: 0 20px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    background: rgba(255,255,255,0.01);
}

.data-table th {
    text-align: left;
    padding: 14px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    vertical-align: middle;
    background: rgba(255,255,255,0.01);
    transition: var(--transition);
}

.data-table tr:hover td {
    background: rgba(255, 215, 0, 0.05);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td:first-child {
    border-left: 3px solid transparent;
    transition: border-left-color 0.3s ease;
}

.data-table tr:hover td:first-child {
    border-left-color: var(--gold);
}

.data-table td:nth-child(1) {
    min-width: 180px;
    max-width: 220px;
}

.data-table td:nth-child(2) {
    min-width: 100px;
    text-align: center;
}

.data-table td:nth-child(3) {
    min-width: 100px;
    font-weight: 600;
}

.data-table td:nth-child(4) {
    min-width: 120px;
}

.data-table td:nth-child(5) {
    min-width: 120px;
    color: var(--gray);
}

.data-table td:nth-child(6) {
    min-width: 150px;
}

.data-table td:nth-child(7),
.data-table td:nth-child(8) {
    min-width: 80px;
    text-align: center;
}

.status-badge { 
    padding: 5px 10px; 
    border-radius: 16px; 
    font-size: 10px; 
    font-weight: 700; 
    text-transform: uppercase; 
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.status-badge.concluido { background: rgba(0, 230, 118, 0.15); color: #00E676; border: 1px solid rgba(0, 230, 118, 0.3); }
.status-badge.processo { background: rgba(255, 215, 0, 0.15); color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.3); }
.status-badge.aguardando { background: rgba(255, 255, 255, 0.1); color: var(--gray); border: 1px solid rgba(255, 255, 255, 0.2); }
.status-badge.service-clean { background: rgba(13, 71, 161, 0.2); color: #448AFF; border: 1px solid #2962FF; }
.status-badge.service-offer { background: rgba(255, 64, 129, 0.15); color: #FF4081; border: 1px solid #F50057; }
.status-badge.pausado { background: rgba(255, 64, 129, 0.15); color: #FF4081; border: 1px solid rgba(255, 64, 129, 0.3); }

.orgao-chip {
    display: inline-flex;
    align-items: center;
    margin: 2px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: var(--gray);
    min-width: 40px;
    justify-content: center;
    transition: var(--transition);
}
.orgao-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.orgao-chip.done { border-color: rgba(0, 230, 118, 0.3); color: #00E676; background: rgba(0, 230, 118, 0.05); }
.orgao-chip.proc { border-color: rgba(255, 215, 0, 0.3); color: var(--gold); background: rgba(255, 215, 0, 0.05); }
.orgao-chip.aguardando { border-color: rgba(255, 255, 255, 0.2); color: var(--gray); background: rgba(255, 255, 255, 0.05); }

.cpf-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.cpf-badge i { color: var(--gold); font-size: 12px; }

.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 10px 0; }
.plano-card {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 25px; border-radius: 16px; 
    position: relative; overflow: hidden; transition: all 0.3s ease;
    display: flex; flex-direction: column; justify-content: space-between;
}
.plano-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.2); }

.plano-card.iniciante { border-top: 4px solid #33aaff; }
.plano-card.recommended { border-top: 4px solid var(--gold); background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), transparent); }
.plano-card.pro { border-top: 4px solid #ff6b00; }
.plano-card.premium { border: 1px solid rgba(255,255,255,0.2); background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%); }
.plano-card.infinity { border: 1px solid rgba(138, 43, 226, 0.5); background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(0,0,0,0.8) 100%); box-shadow: 0 0 15px rgba(138, 43, 226, 0.1); }
.plano-card.infinity:hover { box-shadow: 0 0 25px rgba(138, 43, 226, 0.3); border-color: #a050ff; }

.plano-title { font-size: 20px; font-weight: 800; margin-bottom: 5px; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; }
.plano-price { font-size: 32px; font-weight: 900; color: var(--gold); margin: 15px 0; }
.plano-price span { font-size: 14px; color: var(--gray); font-weight: 400; }
.plano-features { list-style: none; margin: 15px 0 25px 0; color: var(--gray-light); font-size: 13px; line-height: 1.8; }
.plano-features li { display: flex; align-items: flex-start; gap: 8px; }
.plano-features li i { margin-top: 5px; font-size: 10px; }

.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); z-index: 1000;
    align-items: center; justify-content: center; padding: 20px;
}
.modal-content {
    background: #0f0f0f; border: 1px solid var(--gold-dark); border-radius: var(--radius);
    padding: 25px; width: 100%; max-width: 500px; position: relative; max-height: 90vh; overflow-y: auto;
}
.close-button { position: absolute; top: 15px; right: 15px; color: var(--gray); font-size: 20px; cursor: pointer; }

.message { padding: 12px; border-radius: var(--radius); margin-top: 12px; font-size: 12px; text-align: center; }
.message.error { background: rgba(255, 23, 68, 0.1); color: #ff1744; border: 1px solid #ff1744; }
.message.success { background: rgba(0, 230, 118, 0.1); color: #00e676; border: 1px solid #00e676; }

.filter-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 15px 0; align-items: flex-end; }
.orgao-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.orgao-btn { 
    background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 16px; 
    font-size: 10px; cursor: pointer; border: 1px solid transparent; transition: var(--transition);
}
.orgao-btn.active { background: var(--gold); color: var(--black); font-weight: bold; }

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1); border-top: 3px solid var(--gold);
    border-radius: 50%; width: 25px; height: 25px; animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.info-modal-content {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border: 2px solid var(--gold); border-radius: var(--radius);
    padding: 25px; width: 100%; max-width: 400px; position: relative;
}

.btn-small { padding: 8px 12px; font-size: 12px; }
.chart-container { position: relative; height: 200px; width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.expandable-section { cursor: pointer; transition: var(--transition); }
.expandable-section:hover { background: rgba(255, 255, 255, 0.05); }

.contract-expired-screen {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--black-dark); z-index: 10000; align-items: center; justify-content: center; padding: 20px;
}
.contract-expired-card {
    background: rgba(10, 10, 10, 0.95); border: 2px solid var(--danger);
    border-radius: var(--radius); padding: 30px; max-width: 500px; width: 100%; text-align: center;
}

.pagination-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: white; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer; transition: var(--transition); font-size: 10px;
}
.pagination-btn:hover { background: var(--gold); color: black; border-color: var(--gold); }
.pagination-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}
.audio-toggle {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}
.audio-toggle:hover {
    background: var(--gold);
    color: var(--black);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}
.benefit-card {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.benefit-icon { color: var(--gold); font-size: 20px; margin-bottom: 8px; }
.benefit-title { font-weight: 700; color: white; font-size: 13px; margin-bottom: 4px; }
.benefit-desc { color: var(--gray); font-size: 11px; line-height: 1.3; }

.dia-section {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes highlightNew {
    0% { background: rgba(255, 215, 0, 0.3); }
    100% { background: rgba(255, 255, 255, 0.02); }
}

.highlight-new {
    animation: highlightNew 2s ease-out;
}

.payment-alert {
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1), rgba(255, 23, 68, 0.05));
    border: 1px solid rgba(255, 64, 129, 0.3);
    border-left: 4px solid var(--pause);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
    0% { box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(255, 64, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 64, 129, 0); }
}

.payment-alert-title {
    color: var(--pause);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-alert-message {
    color: var(--gray-light);
    font-size: 12px;
    line-height: 1.4;
}

.month-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0 20px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(20, 20, 20, 0.8);
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.month-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.month-nav-btn:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    transform: scale(1.1);
}

.month-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--gray) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.current-month-display {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    text-align: center;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.month-indicator {
    font-size: 11px;
    color: var(--gray);
    text-align: center;
    margin-top: 5px;
}

.btn-today {
    background: linear-gradient(135deg, #448aff, #2962ff);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 138, 255, 0.2);
}

.clientes-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
    padding-right: 5px;
    border-radius: var(--radius);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) rgba(255, 255, 255, 0.05);
}

.clientes-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.clientes-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.clientes-scroll-container::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

.dia-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dia-pagination-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.dia-pagination-btn:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    transform: scale(1.1);
}

.dia-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--gray) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dia-pagination-info {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.resumo-orgao-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.resumo-status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 80px;
    text-align: center;
    border: 1px solid;
}

.resumo-status-badge.concluido {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    border-color: rgba(0, 230, 118, 0.3);
}

.resumo-status-badge.processo {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.3);
}

.resumo-status-badge.aguardando {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray);
    border-color: rgba(255, 255, 255, 0.2);
}

.resumo-orgaos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

#proof-preview {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#proof-preview-image {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

#proof-preview-image:hover {
    transform: scale(1.05);
}

#proof-preview-info {
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}

input[type="file"] {
    border: 2px dashed rgba(255,215,0,0.3);
    background: rgba(255,255,255,0.02);
    padding: 20px;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--gold);
    background: rgba(255,255,255,0.05);
}

input[type="file"]::file-selector-button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

#viewDocumentModal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
}

#document-viewer {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 500px;
    position: relative;
}

#document-pdf-viewer {
    background: white;
}

#document-image-viewer {
    background: rgba(0,0,0,0.3);
    object-fit: contain;
}

#document-loading {
    background: rgba(0,0,0,0.7);
    border-radius: var(--radius);
}

#document-type-badge {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.file-attached-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.file-attached-indicator i {
    font-size: 12px;
}

.btn-document-view {
    background: rgba(41, 121, 255, 0.1);
    border: 1px solid rgba(41, 121, 255, 0.3);
    color: #2979FF;
}

.btn-document-view:hover {
    background: rgba(41, 121, 255, 0.2);
    border-color: #2979FF;
}

.btn-document-no-file {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    cursor: not-allowed;
}

.btn-document-no-file:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}

.comprovante-info-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius);
    padding: 15px;
    margin-top: 15px;
    font-size: 11px;
    color: var(--gold);
}

.comprovante-info-box i {
    margin-right: 8px;
    font-size: 14px;
}

.drag-drop-area {
    border: 3px dashed rgba(255, 215, 0, 0.3);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-area:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.drag-drop-area.drag-over {
    border-color: var(--success);
    background: rgba(0, 230, 118, 0.05);
}

.drag-drop-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 15px;
    opacity: 0.7;
}

.drag-drop-text {
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 10px;
}

.drag-drop-subtext {
    color: var(--gray);
    font-size: 10px;
    opacity: 0.7;
}

.client-info-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-name {
    font-weight: 700;
    font-size: 13px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-cpf {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.service-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-type-badge.limpa-nome {
    background: rgba(68, 138, 255, 0.15);
    color: #448AFF;
    border: 1px solid rgba(68, 138, 255, 0.3);
}

.service-type-badge.ofertas {
    background: rgba(255, 64, 129, 0.15);
    color: #FF4081;
    border: 1px solid rgba(255, 64, 129, 0.3);
}

.value-cell {
    font-size: 13px;
    font-weight: 600;
    color: var(--money);
    text-align: center;
}

.status-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orgaos-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
}

.actions-cell {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.action-btn.edit {
    background: rgba(41, 121, 255, 0.1);
    color: #2979FF;
    border: 1px solid rgba(41, 121, 255, 0.3);
}

.action-btn.edit:hover {
    background: rgba(41, 121, 255, 0.2);
    transform: scale(1.1);
}

.action-btn.document {
    background: rgba(0, 230, 118, 0.1);
    color: #00E676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.action-btn.document:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: scale(1.1);
}

.action-btn.document:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
}

tr.payment-pending td {
    background: rgba(255, 64, 129, 0.05) !important;
    border-left: 3px solid var(--pause);
}

tr.payment-pending:hover td {
    background: rgba(255, 64, 129, 0.1) !important;
}

tr.concluded td {
    opacity: 0.8;
}

tr.concluded:hover td {
    opacity: 1;
}

.data-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}

.data-table tr:nth-child(even):hover td {
    background: rgba(255, 215, 0, 0.05);
}

@media (max-width: 1024px) {
    .data-table {
        min-width: 800px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .client-name {
        font-size: 12px;
    }
    
    .client-cpf {
        font-size: 9px;
    }
    
    .status-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
    
    .orgao-chip {
        font-size: 8px;
        padding: 2px 6px;
        min-width: 35px;
    }
}

@media (max-width: 768px) {
    .dashboard-content { padding: 15px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .planos-grid { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; gap: 10px; padding: 10px 15px; }
    .user-info { width: 100%; justify-content: space-between; }
    .finance-detail-grid { grid-template-columns: 1fr; }
    .audio-controls { bottom: 10px; right: 10px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .clientes-scroll-container { max-height: 300px; }
    .resumo-orgaos-grid { grid-template-columns: 1fr; }
    .month-selector-container { flex-direction: column; }
    .month-selector { flex-direction: column; gap: 10px; padding: 15px; }
    .current-month-display { min-width: auto; }
    #viewDocumentModal .modal-content { margin: 10px; padding: 15px; }
    #document-viewer { min-height: 300px; }
    
    .table-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .data-table {
        min-width: 700px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 6px;
        font-size: 10px;
    }
    
    .client-name {
        font-size: 11px;
    }
    
    .client-cpf {
        font-size: 8px;
    }
    
    .action-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 4px;
        font-size: 9px;
    }
    
    .status-badge {
        font-size: 8px;
        padding: 3px 6px;
    }
    
    .orgao-chip {
        font-size: 7px;
        padding: 1px 4px;
        min-width: 30px;
    }
    
    .action-btn {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }
}
