/* ═══════════════════════════════════════════════
   TitanPips – Main Stylesheet
   ═══════════════════════════════════════════════ */

:root {
    --blue: #1B6FE8;
    --blue-light: #4F9DFF;
    --blue-pale: #EBF2FF;
    --blue-dark: #0A3799;
    --green: #00C48C;
    --green-pale: #E6FBF5;
    --red: #FF5C5C;
    --red-pale: #FFF0F0;
    --gold: #F5A623;
    --gold-pale: #FEF6E8;
    --white: #FFFFFF;
    --bg: #e8edf5;
    --card: #e8edf5;
    --text: #0D1B3E;
    --muted: #8A96B0;
    --border: rgba(0,0,0,0.06);
    --shadow: 0 4px 24px rgba(27,111,232,0.08);
    --shadow-md: 0 8px 32px rgba(27,111,232,0.12);
    --shadow-lg: 0 16px 48px rgba(27,111,232,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'Poppins', sans-serif; }
input, select, textarea { font-family: 'Poppins', sans-serif; }

/* ── LAYOUT ── */
.container { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 14px;
    position: fixed;
    height: 100vh;
    left: 0; top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.brand-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 16px;
    box-shadow: 0 4px 14px rgba(27,111,232,0.3);
}
.brand-name { font-size: 18px; font-weight: 800; color: var(--blue); }
.brand-tagline { font-size: 10px; color: var(--muted); font-weight: 500; }

.nav-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 18px 0 8px 10px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
    transition: all 0.25s;
}
.nav-item:hover { background: var(--blue-pale); color: var(--blue); }
.nav-item.active { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: white; box-shadow: 0 4px 14px rgba(27,111,232,0.28); }
.nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.nav-badge {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); }

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.sidebar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 700; color: var(--text); }
.sidebar-user-email { font-size: 11px; color: var(--muted); }

/* ── MAIN CONTENT ── */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 22px;
    padding-bottom: 40px;
    min-height: 100vh;
}

/* ── TOP HEADER ── */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.page-title { font-size: 20px; font-weight: 800; color: var(--text); }
.page-subtitle { font-size: 12px; color: var(--muted); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
    width: 38px; height: 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 17px;
    color: var(--text);
    transition: all 0.25s;
    position: relative;
}
.icon-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }
.icon-btn .badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 16px; height: 16px;
    background: var(--red);
    border-radius: 50%;
    font-size: 9px;
    color: white;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}
.user-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s;
}
.user-chip:hover { border-color: var(--blue); }
.user-chip-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 11px;
}
.user-chip-name { font-size: 13px; font-weight: 600; }

/* ── SCREENS ── */
.screen { display: none; animation: pgFadeIn 0.3s ease; }
.screen.active { display: block; }

@keyframes pgFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── HERO CARD ── */
.hero-card {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: white;
    margin-bottom: 22px;
    box-shadow: 0 10px 36px rgba(27,111,232,0.38);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.hero-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.hero-greeting { font-size: 13px; opacity: 0.75; margin-bottom: 2px; }
.hero-name { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.hero-label { font-size: 11px; opacity: 0.65; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-value { font-size: 40px; font-weight: 900; margin-bottom: 4px; letter-spacing: -1px; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px; font-weight: 700;
    border: none; cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s;
}
.hero-btn-white { background: white; color: var(--blue); }
.hero-btn-white:hover { background: #EBF2FF; }
.hero-btn-ghost { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.25); }
.hero-btn-ghost:hover { background: rgba(255,255,255,0.25); }

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.hero-stat {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px;
}
.hero-stat-label { font-size: 11px; opacity: 0.7; margin-bottom: 4px; }
.hero-stat-value { font-size: 20px; font-weight: 800; }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,196,140,0.15);
    border: 1px solid rgba(0,196,140,0.3);
    border-radius: 10px;
    padding: 8px 14px;
    margin-top: 16px;
    font-size: 13px;
}
.live-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pgPulse 2s infinite;
}
@keyframes pgPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,196,140,0.5); }
    50% { box-shadow: 0 0 0 7px rgba(0,196,140,0); }
}

/* ── CARDS GRID ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.card-icon.blue { background: var(--blue-pale); }
.card-icon.green { background: var(--green-pale); }
.card-icon.gold { background: var(--gold-pale); }
.card-icon.red { background: var(--red-pale); }
.card-value { font-size: 26px; font-weight: 800; color: var(--text); margin: 8px 0; }
.card-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px; font-weight: 700;
}
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-red { background: var(--red-pale); color: var(--red); }
.badge-blue { background: var(--blue-pale); color: var(--blue); }
.badge-gold { background: var(--gold-pale); color: var(--gold); }

/* ── CHART CONTAINERS ── */
.chart-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}
.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.chart-title { font-size: 15px; font-weight: 700; }
.chart-canvas-wrap { position: relative; height: 280px; }
.chart-period-btns { display: flex; gap: 6px; }
.period-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}
.period-btn.active, .period-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* ── FORMS ── */
.form-section { margin-bottom: 20px; }
.form-section-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: var(--white);
    color: var(--text);
    transition: all 0.25s;
    appearance: none;
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,111,232,0.12); }
.form-input::placeholder { color: var(--muted); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 42px; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--muted);
    pointer-events: none;
}
.input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.28s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    box-shadow: 0 6px 20px rgba(27,111,232,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(27,111,232,0.42); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-success { background: linear-gradient(135deg, #00C48C, #009E72); color: white; box-shadow: 0 6px 20px rgba(0,196,140,0.28); }
.btn-danger { background: linear-gradient(135deg, #FF5C5C, #CC2929); color: white; box-shadow: 0 6px 20px rgba(255,92,92,0.28); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th {
    background: var(--bg);
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFF; }

/* ── STATUS BADGES ── */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-pending { background: var(--gold-pale); color: var(--gold); }
.status-approved { background: var(--green-pale); color: var(--green); }
.status-rejected { background: var(--red-pale); color: var(--red); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── QUICK ACTION GRID ── */
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.action-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}
.action-item:hover { border-color: var(--blue); background: var(--blue-pale); transform: translateY(-3px); box-shadow: var(--shadow); }
.action-item:hover .action-icon { background: var(--blue); color: white; }
.action-icon {
    width: 44px; height: 44px;
    background: var(--bg);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    transition: all 0.25s;
}
.action-label { font-size: 12px; font-weight: 600; color: var(--text); }

/* ── TRANSACTION LIST ── */
.tx-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.tx-info { flex: 1; }
.tx-name { font-size: 14px; font-weight: 600; }
.tx-date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tx-amount { font-size: 15px; font-weight: 800; }
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--red); }

/* ── PLAN CARDS ── */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}
.plan-card:hover, .plan-card.selected { border-color: var(--blue); box-shadow: 0 8px 28px rgba(27,111,232,0.16); }
.plan-card.featured { border-color: var(--blue); background: var(--blue-pale); }
.plan-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: white;
    font-size: 10px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.plan-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.plan-roi { font-size: 32px; font-weight: 900; color: var(--blue); margin: 8px 0; }
.plan-roi span { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-range { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.plan-features { list-style: none; text-align: left; }
.plan-features li { font-size: 12px; padding: 5px 0; display: flex; gap: 7px; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── REFERRAL ── */
.ref-card {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}
.ref-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0;
}
.ref-code-text { font-size: 16px; font-weight: 800; letter-spacing: 2px; }
.ref-copy-btn {
    background: white; color: var(--blue);
    border: none; border-radius: 8px;
    padding: 6px 12px; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: 'Poppins', sans-serif;
}

/* ── SUPPORT ── */
.support-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.support-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s;
}
.support-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.support-card-icon { font-size: 28px; margin-bottom: 8px; }
.support-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.support-card-text { font-size: 12px; color: var(--muted); }

/* ── SETTINGS ── */
.settings-section {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 18px;
}
.settings-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--bg); }
.settings-icon { font-size: 20px; width: 38px; text-align: center; }
.settings-info { flex: 1; }
.settings-label { font-size: 14px; font-weight: 600; }
.settings-desc { font-size: 12px; color: var(--muted); }
.settings-arrow { color: var(--muted); font-size: 16px; }

/* ── TOGGLE SWITCH ── */
.toggle-switch {
    position: relative; width: 44px; height: 24px;
    display: inline-block;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--border); border-radius: 24px;
    cursor: pointer; transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: white; border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
input:checked + .toggle-slider { background: var(--blue); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── NOTIFICATION TOAST ── */
.toast {
    display: flex; align-items: center; gap: 10px;
    background: var(--text);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    animation: pgSlideIn 0.35s ease;
    margin-top: 8px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.warning { background: var(--gold); }
@keyframes pgSlideIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(13,27,62,0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: pgFadeIn 0.25s;
}
.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: pgSlideUp 0.3s ease;
}
@keyframes pgSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: 800; }
.modal-close {
    width: 32px; height: 32px;
    background: var(--bg); border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    color: var(--muted); transition: all 0.2s;
}
.modal-close:hover { background: var(--red); color: white; }

/* ── SKELETON LOADER ── */
.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, #e8ecf4 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: pgSkeleton 1.6s infinite;
    border-radius: 8px;
}
@keyframes pgSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── PROGRESS BAR ── */
.progress-bar { height: 8px; background: var(--border); border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); transition: width 1s ease; }
.progress-fill.green { background: linear-gradient(90deg, var(--green), #5EE0BA); }
.progress-fill.gold { background: linear-gradient(90deg, var(--gold), #F9C962); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.divider-text {
    display: flex; align-items: center; gap: 12px;
    color: var(--muted); font-size: 12px; font-weight: 600;
    margin: 18px 0;
}
.divider-text::before, .divider-text::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── SECTION HEADER ── */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 700; }
.section-link { font-size: 13px; color: var(--blue); font-weight: 600; cursor: pointer; }
.section-link:hover { text-decoration: underline; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-text { font-size: 13px; color: var(--muted); }

/* ── PROFILE ── */
.profile-header {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: var(--radius-lg);
    padding: 28px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}
.profile-avatar-big {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; margin: 0 auto 12px;
}
.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.profile-tag { font-size: 13px; opacity: 0.75; }
.profile-stats { display: flex; justify-content: center; gap: 32px; margin-top: 16px; }
.profile-stat-num { font-size: 20px; font-weight: 800; }
.profile-stat-label { font-size: 11px; opacity: 0.7; }

/* ── ADMIN STYLES ── */
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.admin-stat-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.admin-stat-value { font-size: 28px; font-weight: 900; color: var(--text); }
.admin-stat-change { font-size: 12px; margin-top: 4px; }

.admin-tab-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}
.admin-tab.active, .admin-tab:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* ── MOBILE HEADER ── */
.mobile-header {
    display: none;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(27,111,232,0.06);
}

/* ── MOBILE BOTTOM TABS ── */
.mobile-tabs {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 999;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.tabs-inner { display: flex; justify-content: space-around; align-items: center; }
.tab-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 2px;
    border: none; background: transparent; cursor: pointer;
    color: var(--muted); font-size: 10px; font-weight: 600;
    transition: all 0.2s;
}
.tab-btn.active { color: var(--blue); }
.tab-icon { font-size: 20px; line-height: 1; }
.tab-btn.active .tab-icon { filter: drop-shadow(0 2px 6px rgba(27,111,232,0.3)); }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.fw-900 { font-weight: 900; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }

/* ── EXTRA REAL-APP FIXES ── */
.nav-item { text-decoration: none; display: flex; }
a.nav-item { color: var(--text); }
a.nav-item.active { color: white; }
a.nav-item:hover { color: var(--blue); }

.tab-btn span:last-child { font-size: 10px; font-weight: 600; }

/* Status colors for DB values */
.status-approved { background: var(--green-pale); color: var(--green); }
.status-pending  { background: var(--gold-pale);  color: var(--gold); }
.status-rejected { background: var(--red-pale);   color: var(--red); }

/* Mobile tabs as links */
.mobile-tabs { display: none; }
a.tab-btn { color: var(--muted); }
a.tab-btn.active { color: var(--blue); }

/* Settings items as links */
a.settings-item { color: inherit; display: flex; }

/* Toasts from PHP flash */
.toast.success { background: var(--green); color: white; }
.toast.error   { background: var(--red);   color: white; }
.toast.warning { background: var(--gold);  color: white; }
.toast.info    { background: var(--blue);  color: white; }

/* mt-20 utility */
.mt-20 { margin-top: 20px; }