/* ================================================
   EASTERN UNION XPRESS DELIVERIES
   CSS - Mobile First | Navy + Orange | Premium Logistics
   Developed by Infinity Skybound Digital Ltd
   ================================================ */

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Colors */
    --primary: #001F3F;
    --primary-light: #003366;
    --primary-dark: #000F1F;
    --accent: #FF6B00;
    --accent-light: #FF8C33;
    --accent-dark: #CC5500;
    --success: #00875A;
    --warning: #FFAB00;
    --danger: #CC0000;
    --info: #0065BD;

    /* Neutrals */
    --white: #FFFFFF;
    --bg: #F4F6FA;
    --bg2: #EAECF4;
    --surface: #FFFFFF;
    --border: #DDE2EE;
    --text: #0D1B2A;
    --text-secondary: #5A6A7A;
    --text-muted: #94A3B8;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --shadow-card: 0 2px 8px rgba(0,31,63,0.08);

    /* Nav */
    --bottom-nav-h: 64px;
    --header-h: 56px;
    --sidebar-w: 240px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark Mode */
.dark {
    --primary: #001F3F;
    --bg: #0D1117;
    --bg2: #161B22;
    --surface: #1C2333;
    --border: #2D3748;
    --text: #E8ECF0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    overflow: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ================================================
   SCREENS
   ================================================ */
.screen {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: var(--bg);
}

/* ================================================
   AUTH SCREEN
   ================================================ */
.auth-bg {
    position: fixed;
    inset: 0;
    background: var(--primary);
    overflow: hidden;
    z-index: 0;
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    animation: blobFloat 8s ease-in-out infinite;
}

.blob1 {
    width: 400px; height: 400px;
    background: #FF6B00;
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.blob2 {
    width: 300px; height: 300px;
    background: #0066FF;
    bottom: -80px; left: -80px;
    animation-delay: 3s;
}

.blob3 {
    width: 200px; height: 200px;
    background: #FF6B00;
    top: 40%; left: 40%;
    animation-delay: 6s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(15px,-15px) scale(1.05); }
    66% { transform: translate(-10px,10px) scale(0.95); }
}

.auth-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 48px 20px 24px;
    overflow-y: auto;
    overscroll-behavior: none;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    line-height: 1;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    flex: 1;
    max-height: fit-content;
}

.auth-tabs {
    display: flex;
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--r-sm);
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: none;
    animation: fadeUp 0.3s ease;
}

.auth-form.active {
    display: block;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,31,63,0.08);
}

.input-icon {
    width: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.input-icon svg { width: 16px; height: 16px; }

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 12px 12px 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    outline: none;
    min-width: 0;
}

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

.input-toggle {
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
}

.input-suffix {
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.phone-prefix {
    padding: 12px 8px 12px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    border-right: 1.5px solid var(--border);
    flex-shrink: 0;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-developer {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-top: 20px;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* OTP */
.otp-header {
    text-align: center;
    margin-bottom: 24px;
}

.otp-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.otp-icon svg { width: 28px; height: 28px; }

.otp-header h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.otp-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-digit {
    width: 44px;
    height: 52px;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button { -webkit-appearance: none; }

.otp-digit:focus {
    border-color: var(--accent);
}

.otp-resend {
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ussd-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--r-md);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ussd-fallback svg { width: 16px; height: 16px; color: var(--info); flex-shrink: 0; }

/* ================================================
   MAIN APP LAYOUT
   ================================================ */
#main-screen {
    display: flex;
    height: 100%;
}

/* Sidebar (Desktop) */
.sidebar {
    width: var(--sidebar-w);
    height: 100%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.sidebar-tagline {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: var(--r-md);
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 2px;
    text-align: left;
}

.sidebar-nav .nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-nav .nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar-nav .nav-item.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-user:hover { background: rgba(255,255,255,0.05); }

.sidebar-username {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.sidebar-balance {
    font-size: 12px;
    color: var(--accent-light);
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}

/* App Header */
.app-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 12px;
    z-index: 10;
    padding-top: env(safe-area-inset-top, 0);
}

.header-back {
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary);
    border-radius: var(--r-sm);
}

.header-back svg { width: 20px; height: 20px; }
.header-back.hidden { display: none; }

.header-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    flex: 1;
}

.dark .header-title { color: var(--text); }

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.header-btn {
    width: 36px; height: 36px;
    border: none;
    background: var(--bg);
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    transition: background 0.2s;
}

.header-btn:hover { background: var(--bg2); }
.header-btn svg { width: 18px; height: 18px; }

.notif-badge {
    position: absolute;
    top: 4px; right: 4px;
    width: 16px; height: 16px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-badge.hidden { display: none; }

/* Page Wrapper */
.page-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Pages */
.page {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    display: none;
    animation: slideInRight 0.3s cubic-bezier(0.4,0,0.2,1);
}

.page.active { display: block; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

.page.slide-back { animation: slideInLeft 0.3s cubic-bezier(0.4,0,0.2,1); }

.page-content {
    padding: 16px;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
}

/* Bottom Nav */
.bottom-nav {
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 100;
}

.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 4px;
}

.bnav-item svg { width: 22px; height: 22px; transition: transform 0.2s; }
.bnav-item:active svg { transform: scale(0.9); }

.bnav-item.active {
    color: var(--accent);
}

.bnav-item.active svg {
    stroke: var(--accent);
}

/* ================================================
   HOME PAGE
   ================================================ */
.welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.welcome-greeting {
    font-size: 13px;
    color: var(--text-secondary);
}

.welcome-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.wallet-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--r-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.wallet-pill:active { transform: scale(0.97); }
.wallet-pill svg { width: 16px; height: 16px; }

/* Carousel */
.carousel-container {
    margin: 0 -16px;
    position: relative;
    margin-bottom: 20px;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel-slide {
    min-width: 100%;
    scroll-snap-align: start;
}

.banner-slide {
    height: 180px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    color: white;
    z-index: 1;
}

.banner-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.banner-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.banner-content p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.banner-btn {
    padding: 8px 18px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.banner-btn:active { transform: scale(0.97); }

.banner-art {
    font-size: 64px;
    opacity: 0.85;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--surface);
}

.dot {
    width: 6px; height: 6px;
    border-radius: 3px;
    background: var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.dot.active {
    width: 20px;
    background: var(--accent);
}

/* Warehouse Card */
.warehouse-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 20px;
    color: white;
}

.warehouse-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.warehouse-flag { font-size: 24px; }

.warehouse-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.warehouse-code {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.copy-btn {
    margin-left: auto;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--r-sm);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:active { background: rgba(255,255,255,0.1); }
.copy-btn svg { width: 16px; height: 16px; }

.warehouse-address {
    font-size: 12px;
    opacity: 0.7;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--r-sm);
    line-height: 1.6;
}

/* Section Title */
.section-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header .section-title { margin-bottom: 0; }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    border: none;
    background: var(--surface);
    border-radius: var(--r-md);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

.quick-action:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-sm);
}

.qa-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-icon svg { width: 20px; height: 20px; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.stat-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.stat-icon.blue { background: #E8F4FD; color: #0066CC; }
.stat-icon.orange { background: #FFF0E6; color: #FF6B00; }
.stat-icon.green { background: #E8FFE8; color: #008800; }
.stat-icon.purple { background: #F0E8FF; color: #6600CC; }
.stat-icon svg { width: 18px; height: 18px; }

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================================
   CARDS & LISTS
   ================================================ */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card, .order-card, .address-card, .outlet-card, .appointment-card, .txn-item {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.15s;
}

.package-card:active, .order-card:active { transform: scale(0.99); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.card-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending { background: #FFF3E0; color: #E65100; }
.status-badge.arrived { background: #E8F5E9; color: #2E7D32; }
.status-badge.processing { background: #E3F2FD; color: #1565C0; }
.status-badge.shipped, .status-badge.in_transit { background: #F3E5F5; color: #6A1B9A; }
.status-badge.delivered { background: #E8F5E9; color: #1B5E20; }
.status-badge.cancelled { background: #FFEBEE; color: #B71C1C; }
.status-badge.forecast { background: #F3F4F6; color: #374151; }
.status-badge.customs { background: #FFF3CD; color: #856404; }

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-meta svg { width: 13px; height: 13px; }

/* Tracking Timeline */
.tracking-timeline {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.timeline-step {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 26px;
    width: 2px;
    height: calc(100% + 4px);
    background: var(--border);
}

.timeline-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--surface);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-dot.active {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,107,0,0.15);
}

.timeline-dot.done { background: var(--success); }

.timeline-info .timeline-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: capitalize;
}

.timeline-info .timeline-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.timeline-info .timeline-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* ================================================
   PAGE ACTIONS
   ================================================ */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ================================================
   WALLET PAGE
   ================================================ */
.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, #003580 100%);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.balance-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.balance-label {
    font-size: 13px;
    opacity: 0.7;
}

.flag-row {
    font-size: 13px;
    opacity: 0.7;
}

.balance-amount {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

.bal-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--r-md);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-body);
}

.bal-action-btn:active { background: rgba(255,255,255,0.2); }
.bal-action-btn svg { width: 18px; height: 18px; }

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pm-logo {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
}

.pm-logo.flutterwave { background: #F5A623; }
.pm-logo.paystack { background: #00C3F7; }
.pm-logo.paypal { background: #003087; }
.pm-logo.globalpay { background: #EF3131; }
.pm-logo.providus { background: #008753; }
.pm-logo.alipay { background: #1677FF; }
.pm-logo.wechat { background: #07C160; }
.pm-logo.bank { background: #6B7280; }

/* Transaction Items */
.txn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.txn-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.txn-icon.credit { background: #E8F5E9; color: var(--success); }
.txn-icon.debit { background: #FFEBEE; color: var(--danger); }
.txn-icon svg { width: 18px; height: 18px; }

.txn-info { flex: 1; }

.txn-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.txn-date {
    font-size: 12px;
    color: var(--text-muted);
}

.txn-amount {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.txn-amount.credit { color: var(--success); }
.txn-amount.debit { color: var(--danger); }

/* ================================================
   ADDRESS CARDS
   ================================================ */
.address-card {
    border: 1.5px solid var(--border);
    padding: 16px;
}

.address-default-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #FFF0E6;
    color: var(--accent);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.address-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.address-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.address-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ================================================
   OUTLETS
   ================================================ */
.outlet-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.map-placeholder {
    height: 200px;
    background: var(--bg2);
    border-radius: var(--r-lg);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-overlay {
    text-align: center;
    color: var(--text-muted);
}

.map-overlay svg { width: 32px; height: 32px; margin-bottom: 8px; }
.map-overlay p { font-size: 13px; }

.outlet-card {
    cursor: default;
}

.outlet-country {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.outlet-name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.outlet-addr {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.outlet-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.outlet-service-tag {
    padding: 3px 8px;
    background: var(--bg);
    border-radius: var(--r-full);
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================================
   CHAT PAGE
   ================================================ */
.chat-page {
    display: none;
    flex-direction: column;
    padding: 0;
}

.chat-page.active {
    display: flex !important;
}

.chat-header-bar {
    padding: 12px 16px;
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: white;
}

.agent-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.agent-status {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #00E676;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message.user .msg-avatar {
    background: var(--accent);
}

.msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot .msg-bubble {
    background: var(--surface);
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-message.user .msg-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-quick-replies {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    overflow-x: auto;
    background: var(--surface);
    border-top: 1px solid var(--border);
    scrollbar-width: none;
}

.chat-quick-replies::-webkit-scrollbar { display: none; }

.quick-reply {
    padding: 6px 14px;
    border: 1.5px solid var(--primary);
    border-radius: var(--r-full);
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.quick-reply:active {
    background: var(--primary);
    color: white;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    padding-bottom: calc(10px + var(--safe-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.chat-attach-btn {
    width: 40px; height: 40px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.chat-attach-btn svg { width: 18px; height: 18px; }

#chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    outline: none;
    user-select: text;
    -webkit-user-select: text;
}

#chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 40px; height: 40px;
    border: none;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chat-send-btn:active { background: var(--primary-light); }
.chat-send-btn svg { width: 18px; height: 18px; }

/* ================================================
   CALCULATOR
   ================================================ */
.calc-hero {
    text-align: center;
    padding: 24px 0 20px;
}

.calc-hero h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.calc-hero p {
    color: var(--text-secondary);
    font-size: 14px;
}

.calc-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.method-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.method-btn.active {
    border-color: var(--primary);
    background: rgba(0,31,63,0.04);
}

.method-icon { font-size: 24px; }
.method-name { font-size: 12px; font-weight: 600; color: var(--text); }
.method-days { font-size: 11px; color: var(--text-muted); }

.calc-result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.calc-result.hidden { display: none; }

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.result-row strong { color: var(--text); }

.result-row.highlight {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.result-row.highlight strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--accent);
}

.rate-table {
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.rate-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.rate-row.header {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.rate-row:last-child { border-bottom: none; }

/* ================================================
   REFERRAL PAGE
   ================================================ */
.referral-hero {
    text-align: center;
    padding: 20px 0;
}

.referral-emoji { font-size: 60px; margin-bottom: 12px; }

.referral-hero h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.referral-hero p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.referral-code-card {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C33 100%);
    border-radius: var(--r-xl);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.referral-code-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.referral-code {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.referral-code-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ref-stat {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.ref-stat.highlight {
    background: var(--primary);
    color: white;
}

.ref-stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.ref-stat.highlight .ref-stat-value { color: white; }

.ref-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.ref-stat.highlight .ref-stat-label { color: rgba(255,255,255,0.7); }

/* How It Works */
.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.hiw-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-card);
}

.hiw-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hiw-step h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.hiw-step p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ================================================
   SETTINGS PAGE
   ================================================ */
.profile-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--r-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.profile-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-info h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.profile-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.settings-email { margin-top: 2px; }

.edit-profile-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--r-sm);
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-profile-btn svg { width: 16px; height: 16px; }

.settings-group {
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.settings-group-title {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid var(--border);
}

.settings-item:first-of-type { border-top: none; }
.settings-item:active { background: var(--bg); }
.settings-item svg { width: 18px; height: 18px; color: var(--text-secondary); }

.settings-item span {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

.chevron { color: var(--text-muted) !important; }

.settings-control {
    margin-left: auto;
}

.settings-control select {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
}

.settings-value {
    font-size: 13px;
    color: var(--text-muted);
}

/* Toggle */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: white;
    left: 3px; top: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.settings-item.danger { border-top: 1px solid #FFEBEE; }

.app-credit {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 20px 0 8px;
    line-height: 1.8;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:active { transform: scale(0.98); background: var(--accent-dark); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-primary.btn-full { width: 100%; }

.btn-primary.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:active { background: rgba(255,255,255,0.25); }
.btn-outline svg { width: 16px; height: 16px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-ghost.btn-full { width: 100%; }
.btn-ghost:active { background: var(--bg); }

.btn-otp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-otp svg { width: 16px; height: 16px; }

.link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
}

/* ================================================
   BOTTOM SHEET & MODALS
   ================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    z-index: 300;
    padding-bottom: calc(24px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 92vh;
    overflow-y: auto;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 36px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto;
}

#sheet-content {
    padding: 8px 20px 16px;
}

.sheet-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

/* ================================================
   MISC UI
   ================================================ */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 32px;
    color: var(--text-muted);
}

.loading-spinner svg { width: 28px; height: 28px; }

.spin {
    animation: spin 1s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.6;
}

.empty-state-sm {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Toast */
#toast-container {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
.toast.warning { background: var(--warning); color: var(--text); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

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

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

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.loader-overlay.hidden { display: none; }

.loader-box {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 32px;
    text-align: center;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
}

.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

#loader-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* User Avatars */
.user-avatar-sm {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-xs {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}

.info-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon.blue { background: #E8F4FD; color: var(--info); }
.info-icon.orange { background: #FFF0E6; color: var(--accent); }
.info-icon svg { width: 20px; height: 20px; }

.info-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Consolidate Bar */
.consolidate-bar {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
    left: 16px;
    right: 16px;
    background: var(--primary);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.consolidate-bar.hidden { display: none; }

.consolidate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.consolidate-info span { color: white; font-size: 13px; font-weight: 600; }
.consolidate-hint { opacity: 0.7 !important; font-size: 12px !important; }

/* Pull to Refresh */
.pull-refresh-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 13px;
    transition: height 0.3s;
}

.pull-refresh-indicator.active {
    height: 48px;
}

.ptr-icon { width: 18px; height: 18px; }
.ptr-icon.spinning { animation: spin 0.8s linear infinite; }

/* Addr tabs */
.addr-tabs {
    display: flex;
    gap: 8px;
}

/* QR Code */
.qr-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: var(--r-md);
    margin: 16px 0;
}

/* Hidden */
.hidden { display: none !important; }

/* ================================================
   RESPONSIVE - DESKTOP
   ================================================ */
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .sidebar { display: flex; }

    .page-content {
        padding-bottom: 24px;
        max-width: 720px;
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .quick-actions { grid-template-columns: repeat(8, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .payment-methods { grid-template-columns: repeat(8, 1fr); }

    .bottom-sheet {
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        max-width: 560px;
        border-radius: 24px 24px 0 0;
    }

    .bottom-sheet.open {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 767px) {
    .sidebar { display: none; }
}
