/* =============================================
   NC Internet - Sistema de Afiliados
   Light Theme - Fintech Premium
   ============================================= */

:root {
    --primary: #FF6B00;
    --primary-light: #FF8A33;
    --primary-dark: #E05E00;
    --primary-glow: rgba(255, 107, 0, 0.08);
    --primary-glow-strong: rgba(255, 107, 0, 0.15);
    --white: #FFFFFF;
    --bg: #F5F6FA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFBFE;
    --bg-input: #F5F6FA;
    --bg-sidebar: #FFFFFF;
    --border: #E2E5F0;
    --border-light: #D0D4E0;
    --text: #2D3147;
    --text-muted: #7C829B;
    --text-light: #5A6080;
    --success: #0ABF7B;
    --success-bg: rgba(10, 191, 123, 0.08);
    --danger: #F03D5F;
    --danger-bg: rgba(240, 61, 95, 0.08);
    --warning: #F0A020;
    --warning-bg: rgba(240, 160, 32, 0.08);
    --info: #2080F0;
    --info-bg: rgba(32, 128, 240, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

h1, h2, h3, h4 { font-weight: 600; color: var(--text); line-height: 1.3; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

/* ---- AUTH PAGES ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF5EE 0%, var(--bg) 50%, #FFF0E6 100%);
    position: relative;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo h1 { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.auth-logo h1 span { color: var(--primary); }
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.7rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active, .auth-tab:hover { background: var(--primary); color: var(--white); }

/* ---- DASHBOARD LAYOUT ---- */
.dashboard { display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
    box-shadow: 1px 0 8px rgba(0,0,0,0.03);
}

.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-header h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-header h2 span { color: var(--primary); }
.sidebar-header small { display: block; color: var(--text-muted); font-size: 0.75rem; margin-top: 0.2rem; }

.sidebar-nav { flex: 1; padding: 0.75rem 0; overflow-y: auto; }

.sidebar-nav a, .sidebar-nav button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.sidebar-nav a:hover, .sidebar-nav button:hover { color: var(--primary); background: var(--primary-glow); }

.sidebar-nav a.active {
    color: var(--primary);
    background: var(--primary-glow);
    border-right: 3px solid var(--primary);
    font-weight: 500;
}

.sidebar-nav .nav-icon { width: 20px; text-align: center; font-size: 1.05rem; }

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

.sidebar-user { display: flex; align-items: center; gap: 0.75rem; }

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-glow-strong);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info strong { display: block; font-size: 0.85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info small { color: var(--text-muted); font-size: 0.75rem; }

/* ---- MAIN CONTENT ---- */
.main-content { flex: 1; margin-left: 260px; min-height: 100vh; }

.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title h1 { font-size: 1.3rem; }
.topbar-title p { font-size: 0.85rem; color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 0.25rem; }

.content { padding: 2rem; max-width: 1400px; }

/* ---- CARDS ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow); }

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

.card-header h3 { font-size: 1rem; }

/* ---- STAT CARDS ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-card .stat-icon.orange { background: var(--primary-glow-strong); color: var(--primary); }
.stat-card .stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-card .stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-card .stat-icon.blue { background: var(--info-bg); color: var(--info); }

.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 0.3rem; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--text-light); }
.form-group label .required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237C829B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-row-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; }

.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.5rem 0; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); box-shadow: 0 4px 16px rgba(255,107,0,0.25); transform: translateY(-1px); }

.btn-secondary { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-light); background: var(--bg); }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #09a86b; color: var(--white); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #d63452; color: var(--white); }

.btn-warning { background: var(--warning); color: var(--white); }
.btn-warning:hover { background: #d89018; color: var(--white); }

.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover { color: var(--primary); background: var(--primary-glow); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; border-radius: 6px; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; border-radius: 5px; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-icon { padding: 0.5rem; width: 36px; height: 36px; }

/* ---- TABLES ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

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

table th {
    background: var(--bg);
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table td { padding: 0.85rem 1rem; font-size: 0.88rem; border-bottom: 1px solid var(--border); color: var(--text); }
table tbody tr { transition: var(--transition); }
table tbody tr:hover { background: var(--primary-glow); }
table tbody tr:last-child td { border-bottom: none; }

/* ---- BADGES ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.73rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.badge-primary { background: var(--primary-glow-strong); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-dark { background: #f0f0f5; color: #777; }
.badge-secondary { background: #f0f1f5; color: var(--text-muted); }
.badge-bonus { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); color: #E65100; }

/* ---- ALERTS ---- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

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

.alert-icon { font-size: 1.1rem; }
.alert-success { background: var(--success-bg); color: #067d50; border: 1px solid rgba(10,191,123,0.15); }
.alert-error { background: var(--danger-bg); color: #b02940; border: 1px solid rgba(240,61,95,0.15); }
.alert-warning { background: var(--warning-bg); color: #a06800; border: 1px solid rgba(240,160,32,0.15); }
.alert-info { background: var(--info-bg); color: #1560b0; border: 1px solid rgba(32,128,240,0.15); }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 1.5rem; }

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.05rem; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; padding: 0.25rem; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

/* ---- COPY INPUT ---- */
.copy-group { display: flex; gap: 0; }
.copy-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1; }
.copy-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* ---- FILTER BAR ---- */
.filter-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-bar .form-control { max-width: 200px; padding: 0.6rem 0.9rem; font-size: 0.85rem; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }

.tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    font-weight: 500;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- PUBLIC PAGES ---- */
.public-wrapper { min-height: 100vh; background: var(--bg); }

.public-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.public-header h1 { font-size: 1.3rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.public-header h1 span { color: var(--primary); }

.public-content { max-width: 680px; margin: 2rem auto; padding: 0 1.5rem; }
.public-content .card { padding: 2rem; }

.referral-info {
    background: var(--primary-glow);
    border: 1px solid rgba(255,107,0,0.15);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.referral-info .ref-icon { font-size: 1.3rem; }

/* ---- PLAN SELECTOR ---- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }

.plan-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--bg-card);
}

.plan-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.plan-card.selected { border-color: var(--primary); background: var(--primary-glow); }

.plan-card .plan-speed { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.plan-card .plan-name { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.plan-card .plan-price { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-top: 0.5rem; }
.plan-card .plan-features { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

.plan-card .plan-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
}

.plan-card.selected .plan-check { background: var(--primary); border-color: var(--primary); color: var(--white); }
.plan-card input[type="radio"] { display: none; }

.addon-option {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
    background: var(--bg-card);
}

.addon-option:hover { border-color: var(--border-light); }
.addon-option.selected { border-color: var(--primary); background: var(--primary-glow); }

/* ---- LOADING ---- */
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .spinner { width: 16px; height: 16px; }

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }

.timeline-item { position: relative; margin-bottom: 1.25rem; padding-bottom: 0.5rem; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    z-index: 1;
}

.timeline-item .timeline-date { font-size: 0.75rem; color: var(--text-muted); }
.timeline-item .timeline-text { font-size: 0.88rem; margin-top: 0.2rem; }
.timeline-item .timeline-obs { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; font-style: italic; }

/* ---- SALDO CARD ---- */
.saldo-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #FF9F45 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255,107,0,0.25);
}

.saldo-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.saldo-card .saldo-label { font-size: 0.85rem; opacity: 0.9; margin-bottom: 0.3rem; }
.saldo-card .saldo-valor { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.saldo-card .saldo-acumulado { font-size: 0.8rem; opacity: 0.8; margin-top: 0.75rem; }

/* ---- SUCCESS PAGE ---- */
.success-page { text-align: center; padding: 3rem 1.5rem; }

.success-page .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.success-page h2 { margin-bottom: 0.5rem; }
.success-page p { color: var(--text-muted); }

/* ---- PROFILE / DETAIL GRID ---- */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item { padding: 0.5rem 0; }
.detail-item .detail-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem; }
.detail-item .detail-value { font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* ---- EXTRATO / STATEMENT ---- */
.extrato-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.extrato-item:last-child { border-bottom: none; }
.extrato-item .extrato-desc { font-size: 0.88rem; }
.extrato-item .extrato-desc small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.extrato-item .extrato-valor { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.extrato-item .extrato-valor.positivo { color: var(--success); }
.extrato-item .extrato-valor.negativo { color: var(--danger); }

/* ---- MATERIAL CARD ---- */
.material-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.material-card:hover { box-shadow: var(--shadow); }
.material-card .material-type { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); margin-bottom: 0.5rem; }
.material-card h4 { margin-bottom: 0.3rem; }
.material-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

/* ---- CHART PLACEHOLDER ---- */
.chart-container { position: relative; width: 100%; min-height: 300px; }
.chart-container canvas { width: 100% !important; }

/* ---- LANDING PAGE ---- */
.landing-hero {
    background: linear-gradient(135deg, #FFF5EE 0%, #FFFFFF 50%, #FFF0E6 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-glow);
    filter: blur(80px);
}

.landing-hero h1 { font-size: 2.5rem; font-weight: 800; max-width: 700px; margin: 0 auto 1rem; position: relative; z-index: 1; }
.landing-hero h1 span { color: var(--primary); }
.landing-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; position: relative; z-index: 1; }

.landing-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.landing-nav .logo { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.landing-nav .logo span { color: var(--primary); }

.landing-section { max-width: 1000px; margin: 0 auto; padding: 4rem 2rem; }
.landing-section h2 { text-align: center; margin-bottom: 2.5rem; font-size: 1.8rem; }

.landing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.landing-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.landing-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.landing-step .step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; margin: 0 auto 1rem; }
.landing-step h3 { margin-bottom: 0.5rem; }
.landing-step p { font-size: 0.9rem; color: var(--text-muted); }

.landing-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.landing-plan {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.landing-plan:hover { border-color: var(--primary); }
.landing-plan.featured { border-color: var(--primary); position: relative; }
.landing-plan.featured::before { content: 'Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 0.2rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.landing-plan .plan-speed { font-size: 2rem; font-weight: 800; color: var(--primary); }
.landing-plan .plan-price { font-size: 1.4rem; font-weight: 700; margin: 0.5rem 0; }
.landing-plan .plan-price small { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

.landing-cta { background: var(--primary); color: var(--white); padding: 3rem 2rem; text-align: center; border-radius: var(--radius-lg); margin: 2rem auto; max-width: 1000px; }
.landing-cta h2 { color: var(--white); margin-bottom: 0.5rem; }
.landing-cta p { opacity: 0.9; margin-bottom: 1.5rem; }

.landing-footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); }

/* ---- FAIXAS CONFIG ---- */
.faixa-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.faixa-row .form-control { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
.faixa-row label { font-size: 0.7rem; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: block; }
    .content { padding: 1.25rem; }
    .topbar { padding: 0.75rem 1.25rem; }
    .form-row, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: 1fr 1fr; }
    .auth-box { padding: 1.75rem; }
    .filter-bar .form-control { max-width: 100%; }
    .public-content { padding: 0 1rem; }
    table { font-size: 0.82rem; }
    table th, table td { padding: 0.65rem; }
    h1 { font-size: 1.4rem; }
    .landing-hero h1 { font-size: 1.8rem; }
    .landing-hero p { font-size: 1rem; }
    .faixa-row { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; }
    .detail-grid { grid-template-columns: 1fr; }
}

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 99; display: none; }
.sidebar-overlay.active { display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
