/* ============================================ */
/* MAIN.CSS - ESTILOS GLOBAIS DO SANTOBOLETO    */
/* ============================================ */

/* ============================================ */
/* 1. VARIÁVEIS E RESET                         */
/* ============================================ */

:root {
    /* Cores Principais */
    --brand-purple: #26193f;
    --brand-purple-light: #5B4D7D;
    --brand-green: #456a2d;
    --brand-green-light: #5b863f;
    --brand-gold: #D4AF37;
    --brand-gold-light: #fddb6c;
    --lux-gold: #FFD700;
    --brand-beige: #F2EFE0;
    
    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-sidebar: #F8F5EA;
    --bg-card: #FFFFFF;
    --bg-hover: #F0EBE0;
    
    /* Texto */
    --text-main: #1E1A2F;
    --text-muted: #6F6586;
    --text-light: #9A8E7A;
    --text-white: #FFFFFF;
    
    /* Bordas */
    --border-light: #EDE7D9;
    --border-medium: #E4DCCF;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 30px -12px rgba(60, 42, 93, 0.12);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.03);
    
    /* Raio de Borda */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Tipografia */
    --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Montserrat', 'Inter', sans-serif;

    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Z-index */
    --z-sidebar: 20;
    --z-header: 50;
    --z-modal: 1000;
    --z-toast: 3000;
}

/* Reset e Box Sizing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================ */
/* 2. ESTILOS BASE                              */
/* ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Principal com Sidebar */
body.has-sidebar {
    display: flex;
}

/* ============================================ */
/* 3. TIPOGRAFIA                                */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--brand-purple);
}

small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================ */
/* 4. UTILITÁRIOS                               */
/* ============================================ */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }
.align-baseline { align-items: baseline; }

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }
.gap-7 { gap: 2.5rem; }
.gap-8 { gap: 3rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Texto */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-white { color: var(--text-white); }
.text-purple { color: var(--brand-purple); }
.text-green { color: var(--brand-green); }
.text-gold { color: var(--brand-gold); }
.text-lux { color: var(--lux-gold); }

.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.2rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }
.text-3xl { font-size: 2.5rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Truncamento */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Espaçamento */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.5rem; }
.m-6 { margin: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mb-auto { margin-bottom: auto; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-5 { margin-left: 1.5rem; }
.ml-6 { margin-left: 2rem; }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-5 { margin-right: 1.5rem; }
.mr-6 { margin-right: 2rem; }
.mr-auto { margin-right: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }
.p-6 { padding: 2rem; }

.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* ============================================ */
/* 5. BOTÕES                                   */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    line-height: 1.5;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--brand-green);
    color: rgb(255, 255, 255);
}

.btn-primary:hover:not(:disabled) {
    background: var(--brand-purple-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    background: var(--bg-hover);
}

.btn-success {
    background: var(--brand-green);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #1B8A3A;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.btn-block {
    width: 100%;
}

/* ============================================ */
/* 6. CARDS                                    */
/* ============================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: 1.5rem;
}

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

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Card de Boleto */
.boleto-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.boleto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Card de Projeto */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-cover {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ============================================ */
/* 7. FORMULÁRIOS                              */
/* ============================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(60, 42, 93, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control:disabled {
    background: var(--bg-sidebar);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F6586' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Checkbox e Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

/* ============================================ */
/* 8. BADGES E TAGS                            */
/* ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary {
    background: var(--brand-purple);
    color: white;
}

.badge-success {
    background: var(--brand-green-light);
    color: var(--brand-green);
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--brand-gold);
}

.badge-lux {
    background: var(--lux-gold);
    color: var(--brand-purple);
    font-weight: 700;
}

.tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-verified {
    background: #E8F5E9;
    color: #2D6A4F;
}

.tag-pending {
    background: #FEF3C7;
    color: #D97706;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    color: var(--brand-gold);
}

/* ============================================ */
/* 9. AVATARES                                 */
/* ============================================ */

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-purple);
    color: white;
    font-weight: 600;
    overflow: hidden;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 1.8rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid white;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* ============================================ */
/* 10. PROGRESS BARS                           */
/* ============================================ */

.progress {
    height: 8px;
    background: #EFE8DC;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--brand-green);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-bar-gold {
    background: var(--brand-gold);
}

.progress-bar-purple {
    background: var(--brand-purple);
}

.progress-lg {
    height: 12px;
}

/* ============================================ */
/* 11. MODAIS                                  */
/* ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-purple);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    margin-bottom: 1.5rem;
}

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

/* ============================================ */
/* 12. TOASTS E ALERTAS                        */
/* ============================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: var(--z-toast);
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-success {
    background: var(--brand-green);
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: var(--brand-purple);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================ */
/* 13. LOADING STATES                          */
/* ============================================ */

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--brand-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

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

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, #E8E4D8 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================ */
/* 14. TABELAS                                 */
/* ============================================ */

.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

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

.table th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: var(--bg-sidebar);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
}

.table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.table tbody tr:hover {
    background: var(--bg-sidebar);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================ */
/* 15. TABS                                    */
/* ============================================ */

.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-base);
}

.tab:hover {
    color: var(--text-main);
}

.tab.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
}

/* ============================================ */
/* 16. ANIMAÇÕES                               */
/* ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes flameFlicker {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-flame {
    animation: flameFlicker 2s infinite;
}

/* ============================================ */
/* 17. COMPONENTES ESPECÍFICOS                 */
/* ============================================ */

/* Lux Display */
.lux-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--brand-purple) 0%, #5B4D7D 100%);
    border-radius: var(--radius-full);
    color: white;
}

.lux-display i {
    color: var(--lux-gold);
}

.lux-display .amount {
    font-weight: 800;
    font-size: 1.1rem;
}

/* Streak Display */
.streak-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: var(--radius-full);
    color: white;
}

.streak-display i {
    font-size: 1.2rem;
}

.streak-display .days {
    font-weight: 800;
    font-size: 1.2rem;
}

/* Level Card */
.level-card {
    background: linear-gradient(135deg, var(--brand-purple) 0%, #5B4D7D 100%);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-icon {
    font-size: 2rem;
}

.level-info h4 {
    color: white;
    margin-bottom: 2px;
}

.level-info .level-title {
    font-weight: 600;
}

.level-progress {
    margin-top: 8px;
}

/* ============================================ */
/* 18. RESPONSIVIDADE                          */
/* ============================================ */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 1.6rem; }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 { grid-template-columns: 1fr; }
    
    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .tab {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .hide-mobile {
        display: none !important;
    }
}

/* ============================================ */
/* 19. ACESSIBILIDADE                          */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--brand-purple);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-purple);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================ */
/* 20. UTILITÁRIOS DE IMPRESSÃO                */
/* ============================================ */

@media print {
    .sidebar,
    .btn,
    .modal-overlay,
    .toast {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================ */
/* SIDEBAR CORRIGIDA - POSIÇÃO FIXA            */
/* ============================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    white-space: nowrap;
    z-index: var(--z-sidebar);
}

.sidebar:hover {
    width: 280px;
}

/* Ajustes para os elementos internos */
.sidebar .logo-text,
.sidebar .nav-link span,
.sidebar .user-info,
.sidebar .lux-sidebar-card .lux-balance-sidebar span:not(.lux-amount-sidebar),
.sidebar .level-info {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar:hover .logo-text,
.sidebar:hover .nav-link span,
.sidebar:hover .user-info,
.sidebar:hover .lux-sidebar-card .lux-balance-sidebar span:not(.lux-amount-sidebar),
.sidebar:hover .level-info {
    opacity: 1;
    visibility: visible;
}

/* Ajuste para o avatar */
.sidebar .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.sidebar:hover .user-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

/* Ajuste para os ícones */
.sidebar .nav-link i {
    font-size: 1.3rem;
    margin-right: 0;
}

.sidebar:hover .nav-link i {
    margin-right: 14px;
}

/* Centralizar itens quando colapsado */
.sidebar .nav-link {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar:hover .nav-link {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
}

/* Ajuste para o card de Lux */
.lux-sidebar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(60, 42, 93, 0.08);
    border-radius: var(--radius-md);
}

.sidebar:hover .lux-sidebar-card {
    align-items: stretch;
    padding: 1rem;
}

.lux-balance-sidebar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.sidebar:hover .lux-balance-sidebar {
    justify-content: flex-start;
}

.level-progress {
    width: 100%;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
}

.sidebar:hover .level-progress {
    opacity: 1;
    visibility: visible;
}

/* Main content - ajuste para não ficar embaixo da sidebar */
.main-content {
    flex: 1;
    margin-left: 80px;
    padding: 2rem;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

/* Quando a sidebar expande, o conteúdo acompanha */
.sidebar:hover ~ .main-content,
.sidebar:hover + .main-content {
    margin-left: 280px;
}

/* Responsivo: em mobile, sidebar permanece colapsada sem hover */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar:hover {
        width: 60px;
    }
    
    .sidebar:hover .logo-text,
    .sidebar:hover .nav-link span,
    .sidebar:hover .user-info {
        opacity: 0;
        visibility: hidden;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 1rem;
    }
}

/* Controlar o tamanho da imagem da logo */
.logo-img {
    max-width: 150px;
    width: 100%;
    height: auto;
}

/* ===== HERO SECTION 2 COLUNAS ===== */
.gradient-text {
    background: linear-gradient(135deg, 
        var(--brand-purple) 0%, 
        var(--brand-purple-light) 75%, 
        var(--brand-gold) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-section-modern {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
}

.hero-container-two-columns {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* COLUNA ESQUERDA - Conteúdo */
.hero-content-left {
    flex: 1;
    max-width: 50%;
}

.hero-badge {
    color: var(--brand-purple);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: none;
    margin-bottom: 1.5rem;
    background: var(--brand-gold-light);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Adicionar ícone antes do texto */
.hero-badge::before {
    content: "✨";
    font-size: 0.9rem;
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-purple);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--brand-purple);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Botões */
.hero-buttons-modern {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-start {
    background: var(--brand-green, #10b981);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-start:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.btn-how-it-works {
    background: transparent;
    border: 2px solid var(--brand-purple, #3C2A5D);
    color: var(--brand-purple, #3C2A5D);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-how-it-works:hover {
    background: var(--brand-purple, #3C2A5D);
    color: white;
}

/* Estatísticas - lado esquerdo */
.hero-stats-left {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-gold, #DAA520);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--brand-purple);
    letter-spacing: 1px;
}

/* COLUNA DIREITA - Imagem */
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Selo Onça-pintada */
.selo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--brand-gold) 0%, #DAA520 100%);
    color: var(--brand-purple);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.selo-badge i {
    font-size: 1rem;
}

/* Notificação social sobreposta */
.social-notification-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: left;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.5s ease, pulse 3s infinite;
    white-space: nowrap;
    z-index: 10;
}

.social-notification-overlay i {
    color: var(--brand-green);
    font-size: 1.2rem;
}

.social-notification-overlay span {
    color: #4a5568;
    font-size: 0.85rem;
}

.social-notification-overlay strong {
    color: var(--brand-purple);
    font-weight: 700;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(212,175,55,0.3);
    }
}

.hero-image-right {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-large-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

/* Animação flutuante para a imagem */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 968px) {
    .hero-container-two-columns {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content-left {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-image-right {
        max-width: 100%;
    }
    
    .hero-large-image {
        max-width: 300px;
    }
    
    .hero-buttons-modern {
        justify-content: center;
    }
    
    .hero-stats-left {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section-modern {
        padding: 2rem 1rem;
    }
    
    .hero-stats-left {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
}