/* ================================================================
   PUA Portal — Responsive CSS (Mobile-first)
   ================================================================ */

:root {
    --green-900: #0d3320;
    --green-800: #145228;
    --green-700: #1a5632;
    --green-600: #22723f;
    --green-500: #2d9a54;
    --green-400: #4ade80;
    --green-100: #dcfce7;
    --green-50:  #f0fdf4;

    --gray-900: #111;
    --gray-800: #1f1f1f;
    --gray-700: #333;
    --gray-600: #555;
    --gray-500: #777;
    --gray-400: #999;
    --gray-300: #ccc;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50:  #fafafa;

    --white: #ffffff;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --info: #2563eb;
    --info-bg: #eff6ff;

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --transition: 0.2s ease;

    --sidebar-width: 260px;
    --header-height: 60px;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.55;
    min-height: 100vh;
}
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────── */
h1 { font-size: 1.6rem; font-weight: 700; color: var(--green-900); margin-bottom: 8px; }
h2 { font-size: 1.3rem; font-weight: 600; color: var(--green-800); margin-bottom: 8px; }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
p { margin-bottom: 12px; }

/* ── Layout ─────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--green-900);
    color: var(--white);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 { color: var(--white); font-size: 1.15rem; margin: 0; }
.sidebar-header small { color: var(--green-400); font-size: 0.8rem; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav a, .sidebar-nav span {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    transition: background var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.sidebar-nav a.active { border-left: 3px solid var(--green-400); }
.sidebar-nav .nav-section {
    padding: 16px 20px 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green-400);
    font-weight: 600;
}
.nav-badge {
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
}
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* Main content area */
.main-content {
    flex: 1;
    margin-left: 0;
    min-width: 0;
}

/* Top header */
.top-header {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 12px;
}
.hamburger {
    background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); color: var(--gray-700); font-size: 1.3rem;
}
.hamburger:hover { background: var(--gray-100); }
.top-header h1 { font-size: 1.1rem; margin: 0; flex: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Page body */
.page-body { padding: 16px; }

/* ── Cards ──────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}
.card-header h2 { margin: 0; font-size: 1.05rem; }
.card-header h3 { margin: 0; }

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-700);
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card.accent {
    background: var(--green-700);
    color: var(--white);
}
.stat-card.accent .stat-value { color: var(--white); }
.stat-card.accent .stat-label { color: var(--green-100); }

/* ── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--gray-700);
}
.form-group label span.required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
    color: var(--gray-800);
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus {
    border-color: var(--green-600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,86,50,0.12);
}
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
    text-decoration: none;
    line-height: 1.4;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-600); color: var(--white); }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; color: var(--white); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--green-700);
    color: var(--green-700);
}
.btn-outline:hover { background: var(--green-50); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Alerts ─────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.alert-success { background: var(--green-50); border: 1px solid #86efac; color: #166534; }
.alert-error   { background: var(--danger-bg); border: 1px solid #fca5a5; color: #991b1b; }
.alert-warning { background: var(--warning-bg); border: 1px solid #fcd34d; color: #92400e; }
.alert-info    { background: var(--info-bg); border: 1px solid #93c5fd; color: #1e40af; }

/* ── Table ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.table th, .table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.table tr:hover td { background: var(--green-50); }

/* ── Badge / Tag ────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-active   { background: var(--green-100); color: var(--green-800); }
.badge-pending  { background: var(--warning-bg); color: #92400e; }
.badge-suspended{ background: var(--danger-bg); color: var(--danger); }
.badge-admin    { background: #ede9fe; color: #5b21b6; }

/* ── Avatar ─────────────────────────────────────── */
.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--green-600);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.7rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }

/* ── Referral box ───────────────────────────────── */
.referral-box {
    background: var(--green-50);
    border: 2px dashed var(--green-400);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.referral-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-700);
    letter-spacing: 3px;
    margin: 8px 0;
}
.referral-link {
    font-size: 0.8rem;
    color: var(--gray-500);
    word-break: break-all;
}
.copy-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 16px;
    background: var(--green-700); color: var(--white);
    border: none; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; margin-top: 8px;
}
.copy-btn:hover { background: var(--green-600); }

/* ── Chat ───────────────────────────────────────── */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 32px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
}
.chat-msg.own { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble {
    background: var(--gray-100);
    padding: 10px 14px;
    border-radius: 12px 12px 12px 4px;
    font-size: 0.9rem;
}
.chat-msg.own .chat-bubble {
    background: var(--green-700);
    color: var(--white);
    border-radius: 12px 12px 4px 12px;
}
.chat-sender {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green-700);
    margin-bottom: 2px;
}
.chat-time {
    font-size: 0.68rem;
    color: var(--gray-400);
    margin-top: 4px;
}
.chat-msg.own .chat-time { color: rgba(255,255,255,0.7); }
.chat-pinned {
    background: var(--warning-bg);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.chat-attachment {
    margin-top: 6px;
}
.chat-attachment img {
    max-width: 200px;
    border-radius: var(--radius-sm);
}
.chat-attachment a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}
.chat-input-bar {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}
.chat-input-bar textarea {
    flex: 1;
    border: 1.5px solid var(--gray-300);
    border-radius: 20px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    max-height: 100px;
    min-height: 38px;
}
.chat-input-bar textarea:focus {
    border-color: var(--green-600);
    outline: none;
}
.chat-input-bar .send-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--green-700);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.chat-input-bar .send-btn:hover { background: var(--green-600); }
.chat-input-bar .attach-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* ── Polls ──────────────────────────────────────── */
.poll-card { border-left: 4px solid var(--green-600); }
.poll-option {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    display: flex; align-items: center; gap: 10px;
}
.poll-option:hover { border-color: var(--green-500); background: var(--green-50); }
.poll-option.selected { border-color: var(--green-700); background: var(--green-50); }
.poll-option input[type="radio"] { accent-color: var(--green-700); }
.poll-bar {
    height: 28px;
    background: var(--gray-100);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 6px;
    position: relative;
}
.poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-600), var(--green-400));
    border-radius: 14px;
    transition: width 0.6s ease;
    min-width: 2px;
}
.poll-bar-label {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* ── Wallet ─────────────────────────────────────── */
.wallet-balance {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}
.wallet-balance .balance-label { font-size: 0.85rem; opacity: 0.8; }
.wallet-balance .balance-value { font-size: 2.2rem; font-weight: 700; margin: 4px 0; }
.wallet-balance .balance-naira { font-size: 0.9rem; opacity: 0.7; }
.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

/* ── Leaderboard ────────────────────────────────── */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}
.leaderboard-rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.leaderboard-item:nth-child(1) .leaderboard-rank { background: #fbbf24; color: #fff; }
.leaderboard-item:nth-child(2) .leaderboard-rank { background: #9ca3af; color: #fff; }
.leaderboard-item:nth-child(3) .leaderboard-rank { background: #cd7f32; color: #fff; }
.leaderboard-name { flex: 1; font-weight: 500; }
.leaderboard-pts { font-weight: 700; color: var(--green-700); }

/* ── Groups sidebar list ────────────────────────── */
.group-list { list-style: none; }
.group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    cursor: pointer;
}
.group-item:hover { background: var(--gray-100); }
.group-item.active { background: var(--green-50); }
.group-tier-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.tier-general  { background: #e0e7ff; color: #3730a3; }
.tier-state    { background: #fce7f3; color: #9d174d; }
.tier-lga      { background: #fff7ed; color: #9a3412; }
.tier-ward     { background: #f0fdf4; color: #166534; }

/* ── Public pages (login, register) ─────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
}
.auth-card h1 {
    text-align: center;
    margin-bottom: 4px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.auth-logo {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-700);
}

/* ── Landing page ───────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}
.hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--white); color: var(--green-800); }
.hero-actions .btn-primary:hover { background: var(--gray-100); }
.hero-actions .btn-outline { border-color: var(--white); color: var(--white); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.1); }
.features {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    text-align: center;
}
.feature-icon {
    width: 48px; height: 48px;
    background: var(--green-50);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
}
.landing-footer {
    text-align: center;
    padding: 24px;
    color: var(--gray-500);
    font-size: 0.82rem;
    border-top: 1px solid var(--gray-200);
}

/* ── Overlay for mobile sidebar ─────────────────── */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 90;
    display: none;
}
.sidebar-overlay.show { display: block; }

/* ── Tabs ───────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 16px;
    overflow-x: auto;
}
.tab {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color var(--transition);
}
.tab:hover { color: var(--gray-700); }
.tab.active { color: var(--green-700); border-bottom-color: var(--green-700); }

/* ── Empty state ────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

/* ── Modal ──────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.modal-close {
    width: 32px; height: 32px;
    background: var(--gray-100);
    border: none; border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}

/* ── Pagination ─────────────────────────────────── */
.pagination {
    display: flex; gap: 4px; justify-content: center;
    margin-top: 16px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}
.pagination a { background: var(--gray-100); color: var(--gray-700); }
.pagination a:hover { background: var(--gray-200); }
.pagination .active { background: var(--green-700); color: var(--white); }

/* ── Utility ────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-500); }
.text-sm     { font-size: 0.82rem; }
.text-danger { color: var(--danger); }
.text-green  { color: var(--green-700); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================================
   TABLET — 640px+
   ================================================================ */
@media (min-width: 640px) {
    .auth-card { padding: 40px 36px; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .wallet-actions { grid-template-columns: 1fr 1fr 1fr; }
}

/* ================================================================
   DESKTOP — 1024px+
   ================================================================ */
@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
        position: fixed;
    }
    .main-content {
        margin-left: var(--sidebar-width);
    }
    .hamburger { display: none; }
    .sidebar-overlay { display: none !important; }

    .page-body { padding: 24px 32px; }
    .hero { padding: 80px 40px; }
    .hero h1 { font-size: 2.8rem; }
    .feature-grid { grid-template-columns: 1fr 1fr 1fr; }

    .chat-container { height: calc(100vh - var(--header-height) - 48px); }
}

/* ================================================================
   LARGE DESKTOP — 1280px+
   ================================================================ */
@media (min-width: 1280px) {
    .page-body { padding: 28px 40px; max-width: 1200px; }
}
