/* Custom Styles for Auth Pages and User Dashboard */

/* Auth Pages Styling */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 25, 1) 90.2%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

.auth-card {
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group input, 
.form-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
    background: rgba(0, 0, 0, 0.4);
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* User Profile Widget in Sidebar */
.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Accounts Grid layout */
.accounts-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.account-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.account-item-card:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.account-item-card::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.account-item-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.account-item-balance {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.account-item-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* AI Recommendations Layout */
.recs-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rec-item {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--color-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.rec-item:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

/* AI Alert Recommendation Card (Yellow/Amber Warning Style) */
.rec-item.rec-alert {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 4px solid #f59e0b;
}

.rec-item.rec-alert:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

.rec-item.rec-alert .rec-title {
    color: #fcd34d;
}

.rec-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #c7d2fe;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rec-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.rec-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    align-self: flex-end;
}

/* Category Badge Indicators in Transactions Table */
.category-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

/* AI Classification Tag */
.ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.manual-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* Feed List Transaction amounts color styling */
.amount-income {
    color: var(--color-success);
    font-weight: 600;
}

.amount-expense {
    color: #fca5a5;
    font-weight: 600;
}

/* Tab Content Control */
.tab-content {
    display: none;
    animation: tabFadeIn 0.35s ease-out;
}
.tab-content.active {
    display: block;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filter Pills styling */
.filter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}
.filter-pill.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

/* Pending Invoice Cards styling */
.invoice-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-left: 4px solid var(--color-danger);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}
.invoice-card:hover {
    border-color: rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
}
.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.invoice-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.invoice-amount-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.invoice-amount-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.invoice-amount-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.invoice-meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.65rem;
    margin-top: 0.25rem;
}

/* Horizontal Invoice list styling */
.invoice-list-horizontal {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

.invoice-list-horizontal .invoice-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 280px;
}

/* ==========================================
   LAYOUTS E GRIDS RESPONSIVOS
   ========================================== */

/* Grid de KPIs - Ajuste flexível */
.kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Grid Principal (Lançamentos e Form) */
.main-split-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.5rem;
}

/* Grid dos Gráficos Lado a Lado */
.charts-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Grid de 2 campos no Form */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Grid 1.3fr / 0.7fr no Form */
.form-row-split {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 0.75rem;
}

/* Breakpoint para telas menores (empilhamento de grids) */
@media (max-width: 1400px) {
    .main-split-grid {
        grid-template-columns: 1fr;
    }
    .charts-split-grid {
        grid-template-columns: 1fr;
    }
}

/* Visibilidade de Perfil e Ações no Topo Exclusivas para Mobile */
.nav-item-mobile-only,
.mobile-top-user-actions {
    display: none !important;
}

/* Breakpoint para Acessibilidade/Mobile (Sidebar vertical no topo) */
@media (max-width: 992px) {
    .nav-item-mobile-only {
        display: block !important;
    }
    .mobile-top-user-actions {
        display: flex !important;
    }
    body {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 1.5rem;
    }
    .sidebar .brand {
        margin-bottom: 1.5rem;
    }
    .sidebar .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .sidebar .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .sidebar .sidebar-footer {
        display: none; /* Esconder perfil para ganhar espaço em telas muito pequenas */
    }
    .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
}

/* Breakpoint para Mobile Estrito (Campos de formulário únicos) */
@media (max-width: 600px) {
    .form-row-2, .form-row-split {
        grid-template-columns: 1fr;
    }
}

/* Header Responsivo para Mobile e Tablets (Cascata Vertical Completa) */
@media (max-width: 768px) {
    header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    
    .header-title {
        width: 100% !important;
        text-align: left !important;
    }
    
    .header-title h1 {
        font-size: 1.5rem !important;
    }
    
    .header-title p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .header-actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        display: flex !important;
    }
    
    .header-actions > * {
        width: 100% !important;
        flex: none !important;
    }
    
    .header-actions .btn, 
    .header-actions select,
    .header-actions .filter-select {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        font-size: 0.85rem !important;
        padding: 0.75rem 1rem !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        height: auto !important;
    }
}

/* ==========================================
   PREVENÇÃO DE TRANSBORDAMENTO (OVERFLOW)
   ========================================== */

/* Impedir que a área principal cresça além da largura visível em layout flex */
.main-wrapper {
    min-width: 0 !important;
    max-width: calc(100% - 280px) !important;
    width: calc(100% - 280px) !important;
    box-sizing: border-box !important;
}

@media (max-width: 992px) {
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Prevenir que elementos filhos estiquem a grid cell além da largura disponível */
.main-split-grid > *,
.charts-split-grid > *,
.kpis-grid > *,
.grid-cols-2 > * {
    min-width: 0;
}

/* Impedir que inputs e selects com textos longos inflem a largura das células */
.form-group {
    min-width: 0;
}

.form-group input,
.form-group select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Forçar comportamento responsivo nos containers principais de grid */
.main-split-grid,
.charts-split-grid,
.kpis-grid,
header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Permitir rolagem horizontal controlada nas tabelas sem quebrar o layout */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
}

.data-table {
    width: 100%;
    min-width: 750px; /* Garante scroll interno em telas muito pequenas ou zoom alto */
}

/* ==========================================
   MODAL DE CADASTRO PREMIUM
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-overlay .modal-content {
    width: 90%;
    max-width: 580px;
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
    position: relative;
    z-index: 1010;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.modal-header .close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-header .close-btn:hover {
    color: var(--color-danger);
}

/* ==========================================
   INVESTMENT CARD RESPONSIVE LAYOUT
   ========================================== */

.investment-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.investment-main-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

.investment-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #71717a;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.4rem;
}

.investment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

/* Media Queries para Telas Menores e Mobile (iPhone 16 Pro, Celulares) */
@media (max-width: 768px) {
    .investment-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    .investment-summary-grid > div {
        text-align: left !important;
        background: rgba(255, 255, 255, 0.02);
        padding: 0.75rem 1rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .investment-summary-grid > div > div:first-child {
        margin-bottom: 0 !important;
    }
    .investment-main-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
    }
    .investment-details-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }
    .investment-item-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
}

/* Otimização do Modal de Perfil & Segurança em Telas Mobile */
@media (max-width: 600px) {
    #profile-settings-modal .modal-content {
        width: 94% !important;
        max-width: 100% !important;
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
    }

    #profile-settings-modal .modal-header h2 {
        font-size: 1.05rem !important;
    }

    #profile-settings-modal .profile-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }

    #profile-settings-modal .profile-tab-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.65rem 0.35rem !important;
        font-size: 0.78rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        white-space: nowrap !important;
        border-radius: 10px !important;
    }

    #profile-settings-modal input {
        font-size: 0.95rem !important;
        padding: 0.75rem 0.85rem !important;
        min-height: 44px !important;
    }

    #profile-settings-modal .btn {
        min-height: 44px !important;
        font-size: 0.9rem !important;
    }
}

/* Otimização dos Cards de KPIs (Visão Consolidada / Dashboard / Analytics) no Mobile */
@media (max-width: 768px) {
    .kpis-grid,
    .grid-cols-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }

    .stat-card {
        padding: 1rem 0.85rem !important;
        gap: 0.35rem !important;
    }

    .stat-label {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        letter-spacing: 0.5px !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .stat-desc {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
}

@media (max-width: 420px) {
    .kpis-grid,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================
   INTERACTIVE USER TOUR ("Guia ao Usuário") STYLES
   ========================================== */

/* Fullscreen Blur Backdrop Overlay */
.user-tour-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 12, 0.78);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 99990;
    opacity: 0;
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.user-tour-backdrop.active {
    display: block !important;
    opacity: 1 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    pointer-events: auto !important;
}

/* Crisp Glowing Spotlight Box */
.user-tour-spotlight {
    position: fixed;
    z-index: 99993;
    border: 2px solid rgba(167, 139, 250, 0.9);
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(5, 5, 12, 0.78), 
                0 0 35px rgba(167, 139, 250, 0.6), 
                inset 0 0 15px rgba(167, 139, 250, 0.2);
    pointer-events: none;
    opacity: 0;
    display: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-tour-spotlight.active {
    display: block !important;
    opacity: 1 !important;
}

/* Glassmorphism Popover Card */
.user-tour-popover {
    position: fixed;
    z-index: 99998;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: rgba(18, 18, 26, 0.96);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(16px);
    opacity: 0;
    display: none;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-tour-popover.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.tour-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.tour-step-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-step-counter {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 600;
}

.tour-close-btn {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.tour-close-btn:hover {
    color: #ef4444;
}

.tour-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tour-content {
    font-size: 0.88rem;
    color: #d4d4d8;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.btn-tour-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.35);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.btn-tour-action:hover {
    background: rgba(167, 139, 250, 0.3);
    border-color: rgba(167, 139, 250, 0.6);
    color: #fff;
}

.tour-popover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
}

.tour-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tour-dot.active {
    width: 20px;
    border-radius: 10px;
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

.tour-nav-btns {
    display: flex;
    gap: 0.5rem;
}

.btn-tour-nav {
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-tour-nav.btn-prev {
    background: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-tour-nav.btn-prev:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-tour-nav.btn-next {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-tour-nav.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* ==========================================
   TOUR Z-INDEX HIERARCHY (NO BLUR OVERLAP)
   ========================================== */

/* Elevates parent sidebar container above blur backdrop */
.sidebar.tour-parent-elevated {
    z-index: 99991 !important;
}

/* Elevates highlighted elements above backdrop so they are 100% crisp and clear */
.tour-target-elevated {
    position: relative !important;
    z-index: 99992 !important;
    box-shadow: 0 0 35px rgba(167, 139, 250, 0.8), 0 0 0 2px rgba(167, 139, 250, 0.95) !important;
    border-radius: 14px !important;
    transition: box-shadow 0.3s ease !important;
}

/* Elevates Profile Modal above backdrop when opened during tour */
#profile-settings-modal.tour-modal-elevated {
    z-index: 99994 !important;
}

#profile-settings-modal.tour-modal-elevated .modal-content {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(167, 139, 250, 0.6) !important;
    border: 1px solid rgba(167, 139, 250, 0.6) !important;
    z-index: 99995 !important;
}

/* Elevates Popover Card to top-most layer above modals */
.user-tour-popover {
    z-index: 99998 !important;
}

/* Spotlight box outline layer */
.user-tour-spotlight {
    z-index: 99993 !important;
}



