:root {
    /* Premium Dark Theme */
    --bg-main: #080c18;
    --bg-surface: rgba(20, 28, 48, 0.8);
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-primary: #f1f5f9;
    --text-secondary: #7c8db0;
    --border-color: rgba(255, 255, 255, 0.07);

    --accent: #7c3aed;
    --accent-2: #6366f1;
    --accent-hover: #8b5cf6;
    --accent-glow: rgba(124, 58, 237, 0.35);

    --success: #10b981;
    --danger: #f43f5e;
    --warning: #f59e0b;
    --success-light: rgba(16, 185, 129, 0.12);
    --danger-light: rgba(244, 63, 94, 0.12);

    --glass-bg: rgba(14, 21, 40, 0.75);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-blur: blur(20px);

    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --card-hover-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    --bg-main: #eef2fb;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-main);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99, 102, 241, 0.14) 0%, transparent 60%);
    color: var(--text-primary);
    min-height: 100vh;
    transition: var(--transition);
}

/* Base Layout */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* TOP BAR */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0 0.5rem 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 1rem;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent);
    color: var(--accent-hover);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.icon-btn:active {
    transform: scale(0.95);
}

.greeting-box {
    display: flex;
    flex-direction: column;
}

.greeting-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 500;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent) 0%, #d946ef 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3), 0 8px 20px rgba(124, 58, 237, 0.4);
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.5), 0 12px 25px rgba(124, 58, 237, 0.5);
}

/* BALANCE CARD */
.dashboard-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.premium-card {
    background: linear-gradient(135deg, var(--accent) 0%, #9333ea 50%, #d946ef 100%);
    border-radius: 2rem;
    padding: 2rem 2rem 1.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 70%;
    height: 160%;
    background: rgba(255, 255, 255, 0.07);
    transform: rotate(-20deg);
    border-radius: 50%;
}

.bg-shape {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-header i {
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.card-header i:hover {
    opacity: 0.7;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    line-height: 1;
}

.card-footer-info {
    font-size: 0.78rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* STATS ROW */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-hover), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stat-box:hover::after {
    opacity: 1;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(14, 21, 40, 0.9);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.income-box .stat-icon {
    background: var(--success-light);
    color: var(--success);
}

.expense-box .stat-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-details span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-details strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* TRANSACTIONS SECTION */
.section-title {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--accent-hover));
    border-radius: 2px;
}

/* MODERN FORM */
.modern-form {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 2rem;
    border-radius: 1.8rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.type-selectors {
    display: flex;
    gap: 1rem;
}

.type-radio {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.type-radio input {
    position: absolute;
    opacity: 0;
}

.radio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--input-bg);
    border: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.income-radio input:checked~.radio-content {
    background: var(--success-light);
    border-color: var(--success);
    color: var(--success);
}

.expense-radio input:checked~.radio-content {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

.input-flex-row {
    display: flex;
    gap: 1rem;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.input-field {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1.2rem;
    padding: 0 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.input-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: rgba(0, 0, 0, 0.25);
}

.input-field i,
.input-field span {
    color: var(--text-secondary);
    margin-right: 0.8rem;
}

.input-field span {
    font-weight: 600;
    font-size: 1.1rem;
}

.input-field input {
    width: 100%;
    padding: 1.2rem 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.amount-field input {
    font-size: 1.3rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: scale(0.97);
}

.full-width {
    width: 100%;
}

/* TRANSACTION LIST ELEMENTS */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* Custom Scrollbar for Transactions List */
.transactions-list::-webkit-scrollbar {
    width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.transactions-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.tx-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.tx-item:hover {
    transform: translateX(5px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tx-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tx-icon.inc {
    background: var(--success-light);
    color: var(--success);
}

.tx-icon.exp {
    background: var(--danger-light);
    color: var(--danger);
}

.tx-info h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.tx-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tx-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.tx-amount {
    font-size: 1.1rem;
    font-weight: 600;
}

.tx-amount.inc {
    color: var(--success);
}

.tx-amount.exp {
    color: var(--danger);
}

.tx-delete {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.tx-delete:hover {
    opacity: 1;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    display: none;
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-state span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* SIDEBAR & MODAL */
.sidebar-overlay,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    z-index: 101;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.2);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-icon {
    width: 35px;
    height: 35px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 1rem;
    flex: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
    transform: translateX(4px);
}

.sidebar-footer {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

/* SETTINGS MODAL */
.modal-content {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    z-index: 102;
    border-radius: 2rem 2rem 0 0;
    padding: 2.5rem 2rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-content {
    /* Mobile behavior */
    bottom: 0;
}

@media(min-width: 600px) {
    .modal-content {
        max-width: 550px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -60%);
        bottom: auto !important;
        border-radius: 1.8rem;
        border: 1px solid var(--glass-border);
        box-shadow: var(--card-shadow);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .modal-overlay.active .modal-content {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.setting-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.modern-input:focus {
    border-color: var(--accent);
}

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

[data-theme="dark"] .slider {
    background-color: var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Animations */
@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tx-item {
    animation: popIn 0.3s ease-out forwards;
}

/* Desktop Responsive Layout */
@media (min-width: 850px) {
    .app-container {
        padding: 1rem 2rem 4rem 2rem;
        max-width: 1700px;
        width: 95%;
        margin: 0 auto;
    }

    #dashboard-view {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        grid-template-areas:
            "filter filter"
            "dash history";
        gap: 2rem 5%;
        width: 100%;
        align-items: start;
    }

    .month-filter-section {
        grid-area: filter;
        margin-bottom: 0 !important;
        /* Let CSS Grid handle gap */
    }

    .dashboard-carousel {
        grid-area: dash;
        flex-direction: column;
        /* Stack cards vertically on left */
        gap: 2rem;
        margin-bottom: 0;
    }

    .premium-card {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 200px;
    }

    .stats-row {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1.2rem;
    }

    .stat-box {
        flex: 1;
    }

    .history-section {
        grid-area: history;
        margin-top: 0;
    }
}

/* --- NOVO CALENDÁRIO (PREMIUM COMPACTO) --- */
.calendar-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin: 0 auto 2.5rem auto;
    max-width: 500px;
}

.calendar-header h3 {
    font-size: 1.2rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text; /* Compatibilidade */
    -webkit-text-fill-color: transparent;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.calendar-day.current {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    color: white;
}

.calendar-day:hover:not(.current) {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.calendar-day.current {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: white;
}

.calendar-day.has-done {
    background: var(--success); /* Verde sólido vibrante */
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    border: none;
}

.calendar-day.has-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.calendar-day.has-pending::after,
.calendar-day.has-done::after {
    display: none; /* Remove a bolinha antiga */
}

.calendar-day.current.has-done,
.calendar-day.current.has-pending {
    color: white;
    border-color: transparent;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* --- MELHORIAS RELATÓRIO --- */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--card-hover-shadow);
    background: rgba(255, 255, 255, 0.05);
}

.report-card .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.report-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.category-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.tag-fixo { background: rgba(99, 102, 241, 0.1); color: var(--accent); }
.tag-variavel { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.tag-lazer { background: rgba(16, 185, 129, 0.1); color: var(--success); }

/* --- MELHORIAS CLIENTE --- */
.client-search-box {
    margin-bottom: 1.5rem;
}

.client-stat-pill {
    background: var(--input-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- ABAS DO MODAL --- */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.3rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 9px;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* UPDATE MODAL V2.3 */
.update-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.update-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.update-card {
    background: var(--bg-surface);
    width: 90%;
    max-width: 500px;
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: var(--transition);
}

.update-modal-overlay.active .update-card {
    transform: scale(1);
}

.update-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.update-content {
    padding: 2.5rem;
}

.update-tag {
    background: var(--accent);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.update-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.update-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.update-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.update-list li i {
    color: var(--success);
    margin-top: 0.3rem;
    font-size: 1.1rem;
}

.update-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    justify-content: center;
}

.dont-show-again input {
    accent-color: var(--accent);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.dont-show-again:hover {
    color: var(--text-primary);
}