:root {
    --mint-50: #f2fbf5;
    --mint-100: #e7f5ed;
    --mint-200: #ccebd8;
    --mint-300: #a9dbc0;
    --yellow: #fff76a;
    --yellow-soft: #fffba8;
    --surface: #ffffff;
    --ink: #111311;
    --text: #1d211e;
    --muted: #788079;
    --line: rgba(17, 19, 17, .075);
    --positive: #159447;
    --negative: #d94848;
    --warning: #b87700;
    --info: #2563eb;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow: 0 14px 38px rgba(38, 91, 61, .09);
    --shadow-soft: 0 8px 24px rgba(38, 91, 61, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: #91c8b8;
    font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; }

.site-layout { min-height: 100vh; }
.app-shell, .guest-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
    background: linear-gradient(155deg, var(--mint-100) 0%, var(--mint-200) 100%);
}
.app-header, .guest-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 66px;
    padding: max(12px, env(safe-area-inset-top)) 18px 8px;
    background: linear-gradient(180deg, rgba(231,245,237,.98), rgba(231,245,237,.88) 75%, transparent);
    backdrop-filter: blur(10px);
}
.header-title, .guest-page-title { text-align: center; font-size: 14px; font-weight: 700; }
.header-side { display: flex; align-items: center; }
.header-side-end { justify-content: flex-end; }
.header-spacer { width: 40px; }
.icon-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
}
.icon-button:hover { background: var(--surface); }
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    background: var(--ink);
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 50%;
}
.avatar-small { width: 38px; height: 38px; font-size: 11px; }
.brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-weight: 800;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 14px;
}
.app-content, .guest-content { padding: 8px 16px calc(108px + env(safe-area-inset-bottom)); }
.guest-content { padding-bottom: 32px; }
.app-content.no-bottom-nav { padding-bottom: 28px; }

.page-heading { margin: 4px 0 18px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 26px; line-height: 1.15; letter-spacing: -.8px; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 14px; }
.section-heading a { color: var(--muted); font-size: 11px; }

.card {
    padding: 16px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.card + .card { margin-top: 10px; }
.card-muted { background: rgba(255,255,255,.68); }
.balance-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    color: var(--ink);
    background: linear-gradient(145deg, var(--yellow) 0%, #ffff86 100%);
    border: 4px solid rgba(255,255,255,.92);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.balance-label { color: rgba(17,19,17,.65); font-size: 11px; font-weight: 700; }
.balance-value { margin: 5px 0 0; font-size: clamp(28px, 8vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.balance-subtext { margin-top: 8px; font-size: 11px; }
.stat-grid, .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-card { min-width: 0; padding: 14px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.stat-label { color: var(--muted); font-size: 10px; }
.stat-value { margin-top: 5px; color: var(--ink); font-size: 17px; font-weight: 800; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quick-action { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 7px; padding: 12px 5px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.78); border-radius: 18px; }
.quick-action-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--surface); border-radius: 50%; box-shadow: var(--shadow-soft); }

.list-card { overflow: hidden; padding: 0; }
.list-row { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 11px 13px; background: var(--surface); border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-icon { display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px; align-items: center; justify-content: center; background: var(--mint-50); border-radius: 14px; }
.list-icon.dark { color: white; background: var(--ink); }
.list-body { min-width: 0; flex: 1; }
.list-title { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.list-subtitle { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.list-value { flex-shrink: 0; font-size: 12px; font-weight: 800; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.muted { color: var(--muted); }

.form-card { padding: 18px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; margin: 0 0 7px 2px; color: var(--ink); font-size: 11px; font-weight: 700; }
.form-control, .form-select, .form-textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--ink);
    outline: none;
    background: #f7f8f7;
    border: 1px solid transparent;
    border-radius: 16px;
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: var(--ink); background: var(--surface); }
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 48px; }
.input-action { position: absolute; top: 5px; right: 5px; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; border-radius: 12px; }
.form-hint, .form-error { margin: 5px 2px 0; font-size: 10px; }
.form-hint { color: var(--muted); }
.form-error { color: var(--negative); }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; }
.checkbox-row input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--ink); }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; font-weight: 700; border: 0; border-radius: var(--radius-pill); transition: transform .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-dark { color: white; background: var(--ink); }
.button-light { color: var(--ink); background: var(--surface); }
.button-yellow { color: var(--ink); background: var(--yellow); }
.button-danger { color: white; background: var(--negative); }
.button-block { width: 100%; }
.button-small { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.button-row { display: flex; gap: 8px; }
.button-row > * { flex: 1; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; border-radius: var(--radius-pill); }
.badge-success { color: #0b6830; background: #dcf8e7; }
.badge-warning { color: #7a4f00; background: #fff1bd; }
.badge-danger { color: #9c2828; background: #ffe0e0; }
.badge-secondary { color: #606660; background: #ecefec; }

.empty-state { padding: 34px 22px; text-align: center; background: rgba(255,255,255,.75); border-radius: var(--radius-lg); }
.empty-state-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-soft); }
.empty-state h3 { margin: 13px 0 5px; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.app-alert { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; padding: 11px 12px; font-size: 11px; background: var(--surface); border-radius: 15px; box-shadow: var(--shadow-soft); }
.app-alert > span { flex: 1; }
.app-alert-success { color: #0d7135; }
.app-alert-danger { color: #a72f2f; }
.app-alert-warning { color: #8b5a00; }
.app-alert-info { color: #2455a6; }
.alert-close { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; }
.alert-close svg { width: 16px; height: 16px; }

.bottom-nav {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 450px;
    min-height: 68px;
    margin: 0 auto;
    padding: 7px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 25px;
    box-shadow: 0 15px 42px rgba(22,67,43,.18);
    backdrop-filter: blur(16px);
}
.bottom-nav-item { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 8px; font-weight: 700; }
.bottom-nav-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; }
.bottom-nav-icon svg { width: 18px; height: 18px; }
.bottom-nav-item.active { color: var(--ink); }
.bottom-nav-item.active .bottom-nav-icon { color: white; background: var(--ink); }

.desktop-sidebar { display: none; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 17px; font-weight: 800; }
.auth-panel { margin-top: 12px; }
.auth-links { margin-top: 16px; color: var(--muted); font-size: 11px; text-align: center; }
.auth-links a { color: var(--ink); font-weight: 800; }

.filter-tabs { display: flex; gap: 7px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { flex: 0 0 auto; padding: 8px 13px; color: var(--muted); font-size: 10px; font-weight: 700; background: rgba(255,255,255,.62); border-radius: var(--radius-pill); }
.filter-tab.active { color: white; background: var(--ink); }
.phone-grid { display: grid; gap: 10px; }
.phone-card { display: flex; min-height: 130px; overflow: hidden; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.phone-image { display: flex; width: 34%; min-width: 112px; align-items: center; justify-content: center; padding: 12px; background: #f5f7f5; }
.phone-image img { width: 100%; height: 106px; object-fit: contain; }
.phone-card-body { min-width: 0; flex: 1; padding: 13px; }
.phone-card-body h3 { margin: 8px 0 4px; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.phone-card-body p { margin: 0 0 6px; color: var(--muted); font-size: 10px; }
.phone-card-body strong { display: block; color: var(--ink); font-size: 15px; }
.phone-card-body small { color: var(--positive); font-size: 9px; font-weight: 700; }
.device-hero { text-align: center; }
.device-hero-image { height: 190px; margin: -4px 0 10px; }
.device-hero-image img { width: 100%; height: 100%; object-fit: contain; }
.device-hero h1 { margin: 10px 0 3px; color: var(--ink); font-size: 22px; }
.device-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.detail-price { margin: 14px 0; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.progress-track { height: 8px; overflow: hidden; background: #e9edea; border-radius: var(--radius-pill); }
.progress-bar { height: 100%; background: var(--ink); border-radius: inherit; }
.device-card { margin-bottom: 10px; }
.device-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.device-thumb { display: flex; width: 70px; height: 70px; flex: 0 0 70px; align-items: center; justify-content: center; padding: 7px; background: #f5f7f5; border-radius: 18px; }
.device-thumb img { width: 100%; height: 100%; object-fit: contain; }
.device-row h3 { margin: 6px 0 2px; font-size: 14px; }
.device-row p { margin: 0; color: var(--muted); font-size: 9px; }
.device-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.device-metrics span { display: flex; min-width: 0; flex-direction: column; }
.device-metrics small { color: var(--muted); font-size: 9px; }
.device-metrics strong { overflow: hidden; margin-top: 2px; font-size: 11px; text-overflow: ellipsis; }
.network-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.network-option input { position: absolute; opacity: 0; pointer-events: none; }
.network-option > span { display: flex; min-height: 78px; flex-direction: column; justify-content: center; padding: 11px; color: var(--muted); background: #f5f7f5; border: 1px solid transparent; border-radius: 17px; }
.network-option svg { width: 17px; height: 17px; margin-bottom: 6px; }
.network-option strong { color: var(--ink); font-size: 11px; }
.network-option small { font-size: 8px; }
.network-option input:checked + span { color: var(--ink); background: var(--yellow-soft); border-color: var(--ink); }
.referral-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.referral-code strong { font-size: 20px; letter-spacing: 2px; }
.gift-card { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gift-icon { display: inline-flex; width: 48px; height: 48px; flex: 0 0 48px; align-items: center; justify-content: center; background: var(--yellow); border-radius: 16px; }
.gift-card h3 { margin: 0 0 3px; font-size: 13px; }
.gift-card p { margin: 0 0 5px; color: var(--muted); font-size: 9px; }
.notification-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.notification-item.unread { border-left: 4px solid var(--ink); }
.notification-item p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.notification-link { display: inline-block; margin-top: 7px; font-size: 10px; font-weight: 800; }
.profile-card { text-align: center; }
.profile-avatar { width: 76px; height: 76px; margin: 0 auto; font-size: 20px; border-width: 5px; }
.profile-card h1 { margin: 12px 0 2px; font-size: 20px; }
.profile-card p { margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.admin-layout { display: flex; min-height: 100vh; background: linear-gradient(145deg,var(--mint-100),var(--mint-200)); }
.admin-sidebar { display: flex; width: 240px; flex: 0 0 240px; flex-direction: column; padding: 18px 12px; background: rgba(255,255,255,.9); border-right: 1px solid var(--line); }
.admin-sidebar nav { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.admin-main { min-width: 0; flex: 1; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 14px 24px; background: rgba(255,255,255,.45); border-bottom: 1px solid var(--line); }
.admin-topbar small { color: var(--muted); font-size: 9px; }.admin-topbar h1 { margin: 2px 0 0; font-size: 20px; }
.admin-content { max-width: 1280px; padding: 22px 24px 50px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.admin-stat { padding: 16px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }.admin-stat small { display:block;color:var(--muted);font-size:10px }.admin-stat strong { display:block;margin-top:6px;font-size:22px }
.admin-toolbar { display:flex;gap:8px;margin-bottom:12px }.admin-toolbar .form-control { max-width:380px;min-height:42px }
.admin-table-wrap { overflow:auto;background:var(--surface);border-radius:var(--radius-md);box-shadow:var(--shadow-soft) }.admin-table { width:100%;border-collapse:collapse;font-size:11px }.admin-table th,.admin-table td { padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap }.admin-table th { color:var(--muted);font-size:9px;text-transform:uppercase }.admin-table td small { display:block;color:var(--muted);font-size:9px }.admin-actions { display:flex;flex-wrap:wrap;gap:10px }.admin-actions form { display:flex;gap:6px;align-items:center }.admin-actions .form-select { min-height:38px;padding:7px 10px }
@media(max-width:800px){.admin-sidebar{width:68px;flex-basis:68px}.admin-sidebar .sidebar-brand span:last-child,.admin-sidebar .sidebar-link span{display:none}.admin-sidebar .sidebar-link{justify-content:center}.admin-content{padding:14px}.admin-stat-grid{grid-template-columns:repeat(2,1fr)}.admin-topbar{padding:12px 14px}}
.admin-form { max-width:900px }.admin-detail-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:10px }.admin-detail-grid span { padding:10px;color:var(--muted);font-size:9px;background:#f6f8f6;border-radius:13px }.admin-detail-grid strong { display:block;margin-top:4px;color:var(--ink);font-size:11px }
@media(max-width:700px){.admin-detail-grid{grid-template-columns:repeat(2,1fr)}.admin-actions form{width:100%;flex-wrap:wrap}}

@media (min-width: 560px) {
    body { padding: 24px; }
    .app-shell, .guest-shell { max-width: 480px; min-height: calc(100vh - 48px); border: 8px solid rgba(255,255,255,.58); border-radius: 38px; box-shadow: 0 26px 70px rgba(18,61,39,.22); }
    .bottom-nav { bottom: 36px; }
}

@media (min-width: 980px) {
    .site-layout { display: flex; max-width: 840px; margin: 0 auto; align-items: stretch; gap: 22px; }
    .desktop-sidebar { display: flex; width: 230px; min-height: calc(100vh - 48px); flex-direction: column; padding: 20px 14px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.85); border-radius: 30px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
    .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; font-size: 15px; font-weight: 800; }
    .sidebar-brand .brand-mark { width: 34px; height: 34px; border-radius: 12px; }
    .sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; }
    .sidebar-link { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 10px 12px; color: var(--muted); font-size: 11px; font-weight: 700; border-radius: 15px; }
    .sidebar-link svg { width: 18px; height: 18px; }
    .sidebar-link:hover, .sidebar-link.active { color: white; background: var(--ink); }
    .sidebar-logout { margin-top: 16px; }
    .app-shell { margin: 0; }
    .bottom-nav { display: none; }
    .app-content { padding-bottom: 30px; }
}

/*
|--------------------------------------------------------------------------
| AlphaPhones mint banking UI — final visual layer
|--------------------------------------------------------------------------
*/

.app-body,
.guest-body {
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 31%),
        linear-gradient(145deg, #8fc6b6 0%, #a6d5c3 100%);
}

.app-shell,
.guest-shell {
    background:
        radial-gradient(circle at 85% 18%, rgba(255,246,126,.30), transparent 25%),
        linear-gradient(160deg, #e6f5eb 0%, #d3eedc 52%, #c8e9d5 100%);
}

.app-header,
.guest-topbar {
    min-height: 72px;
    padding: max(13px, env(safe-area-inset-top)) 18px 10px;
    background: linear-gradient(180deg, rgba(230,245,235,.98) 0%, rgba(230,245,235,.84) 70%, rgba(230,245,235,0) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.header-title small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 600;
}

.header-title span,
.guest-page-title {
    color: #111311;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.15px;
}

.icon-button {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid transparent;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: rgba(255,255,255,.72);
    border-color: rgba(17,19,17,.05);
    transform: translateY(-1px);
}

.icon-button svg { width: 18px; height: 18px; }
.avatar-small { width: 34px; height: 34px; font-size: 9px; border-width: 2px; }

.app-content {
    padding: 4px 15px calc(100px + env(safe-area-inset-bottom));
}

.page-heading { margin: 3px 3px 15px; }
.page-heading h1 { font-size: 23px; letter-spacing: -1px; }
.page-heading p { max-width: 330px; margin-top: 6px; font-size: 10px; line-height: 1.55; }
.section-heading { margin: 17px 3px 8px; }
.section-heading h2 { font-size: 11px; font-weight: 700; letter-spacing: -.15px; }
.section-heading a { font-size: 9px; }
.compact-section { margin-top: 14px; }

.wallet-panel {
    overflow: hidden;
    padding: 9px 9px 0;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 30px;
    box-shadow: 0 16px 42px rgba(42,87,61,.10);
}

.wallet-panel .balance-card {
    min-height: 144px;
    padding: 18px 18px 16px;
    text-align: center;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(198,186,28,.12);
}

.balance-card {
    padding: 20px;
    background: linear-gradient(145deg, #fff66f 0%, #fffc84 55%, #fff98c 100%);
    border: 5px solid rgba(255,255,255,.92);
    border-radius: 29px;
    box-shadow: 0 14px 38px rgba(42,87,61,.10);
}

.balance-card::after {
    position: absolute;
    top: -60px;
    right: -45px;
    width: 150px;
    height: 150px;
    content: '';
    background: rgba(255,255,255,.22);
    border-radius: 50%;
    pointer-events: none;
}

.balance-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.balance-label { color: rgba(17,19,17,.68); font-size: 9px; font-weight: 600; }
.balance-value { position: relative; z-index: 2; margin-top: 7px; font-size: clamp(29px, 8.5vw, 38px); letter-spacing: -2px; }
.balance-value.is-hidden { letter-spacing: 4px; }
.balance-subtext { position: relative; z-index: 2; margin-top: 7px; font-size: 10px; font-weight: 700; }
.balance-visibility { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; padding: 0; color: rgba(17,19,17,.68); background: transparent; border: 0; border-radius: 50%; }
.balance-visibility svg { width: 14px; height: 14px; }

.wallet-actions {
    margin: 0;
    padding: 9px 5px 10px;
}

.wallet-actions .quick-action {
    gap: 5px;
    padding: 4px 2px;
    color: #636963;
    font-size: 8px;
    background: transparent;
    border-radius: 0;
}

.wallet-actions .quick-action + .quick-action { border-left: 1px solid rgba(17,19,17,.055); }
.wallet-actions .quick-action-icon { width: 32px; height: 32px; color: #353a36; background: transparent; box-shadow: none; }
.wallet-actions .quick-action-icon svg { width: 16px; height: 16px; }
.wallet-actions .quick-action:hover .quick-action-icon { color: white; background: var(--ink); }

.overview-grid { gap: 8px; }
.stat-card {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 18px;
    box-shadow: 0 9px 25px rgba(42,87,61,.065);
}
.stat-label { font-size: 8px; }
.stat-value { margin-top: 4px; font-size: 15px; letter-spacing: -.5px; }

.card {
    border-color: rgba(255,255,255,.82);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(42,87,61,.075);
}

.list-card {
    display: flex;
    overflow: visible;
    flex-direction: column;
    gap: 7px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.list-row {
    min-height: 58px;
    padding: 9px 11px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(42,87,61,.065);
    transition: transform .18s ease, box-shadow .18s ease;
}
.list-row:hover { transform: translateY(-1px); box-shadow: 0 11px 25px rgba(42,87,61,.09); }
.list-row:last-child { border-bottom: 1px solid rgba(255,255,255,.88); }
.list-icon { width: 37px; height: 37px; flex-basis: 37px; background: #eff8f2; border-radius: 13px; }
.list-icon svg { width: 17px; height: 17px; }
.list-title { font-size: 10px; }
.list-subtitle { font-size: 8px; }
.list-value { font-size: 10px; letter-spacing: -.2px; }

.filter-tabs { gap: 6px; margin: 0 0 11px; }
.filter-tab { padding: 7px 12px; font-size: 8px; background: rgba(255,255,255,.62); }
.filter-tab.active { color: white; background: #121412; box-shadow: 0 7px 17px rgba(17,19,17,.15); }
.account-chip { display: flex; width: fit-content; align-items: center; gap: 7px; margin: 1px auto 14px; padding: 7px 11px; color: white; font-size: 8px; background: #121412; border-radius: 999px; box-shadow: 0 8px 18px rgba(17,19,17,.16); }
.account-chip svg { width: 14px; height: 14px; }
.account-chip strong { color: #fff76a; font-size: 8px; }

.phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.phone-card {
    min-height: 224px;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 20px;
    box-shadow: 0 10px 27px rgba(42,87,61,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.phone-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(42,87,61,.11); }
.phone-image { width: 100%; min-width: 0; height: 126px; padding: 10px; background: linear-gradient(145deg, #f5f8f5, #edf5ef); }
.phone-image img { width: 100%; height: 108px; }
.phone-card-body { padding: 11px; }
.phone-card-body h3 { margin-top: 7px; font-size: 11px; }
.phone-card-body p { font-size: 8px; }
.phone-card-body strong { font-size: 13px; }
.phone-card-body small { font-size: 8px; }
.badge { padding: 4px 7px; font-size: 7px; }

.form-card { padding: 16px; }
.form-label { font-size: 9px; }
.form-control,
.form-select,
.form-textarea {
    min-height: 47px;
    background: #f6f7f6;
    border-color: rgba(17,19,17,.025);
    border-radius: 15px;
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus { border-color: rgba(17,19,17,.55); box-shadow: 0 0 0 3px rgba(17,19,17,.045); }

.button { min-height: 46px; font-size: 10px; box-shadow: 0 8px 18px rgba(17,19,17,.08); }
.button-dark { background: #121412; }

.payment-screen { padding-right: 11px; padding-left: 11px; }
.payment-screen > .page-heading { text-align: center; }
.payment-screen > .page-heading p { margin-right: auto; margin-left: auto; }
.payment-screen > .balance-card { min-height: 118px; text-align: center; }
.payment-sheet { padding: 16px; border-radius: 28px; box-shadow: 0 17px 42px rgba(42,87,61,.10); }
.amount-stage { margin: 14px 0 8px; text-align: center; }
.amount-stage .form-label { color: var(--muted); }
.amount-stage .amount-input {
    min-height: 68px;
    padding: 5px;
    text-align: center;
    font-size: clamp(30px, 10vw, 42px);
    font-weight: 800;
    letter-spacing: -2px;
    background: transparent;
    border: 0;
}
.amount-stage .amount-input:focus { box-shadow: none; }
.amount-stage .form-hint { text-align: center; }
.numeric-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 8px 0 14px; }
.numeric-keypad button { min-height: 43px; padding: 0; color: #171917; font-size: 13px; font-weight: 600; background: #f4f5f4; border: 0; border-radius: 13px; transition: transform .1s ease, background .15s ease; }
.numeric-keypad button:hover { background: #ecefec; }
.numeric-keypad button:active { transform: scale(.96); }
.numeric-keypad button svg { width: 16px; height: 16px; }
.network-grid { gap: 6px; }
.network-option > span { min-height: 69px; background: #f6f7f6; border-radius: 15px; }
.network-option input:checked + span { background: #fff98a; border-color: rgba(17,19,17,.8); }

.bottom-nav {
    right: 50%;
    left: auto;
    width: min(330px, calc(100vw - 44px));
    min-height: 61px;
    padding: 6px 9px;
    transform: translateX(50%);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.96);
    border-radius: 999px;
    box-shadow: 0 16px 38px rgba(30,75,49,.18);
}
.bottom-nav-item { gap: 0; font-size: 0; }
.bottom-nav-item > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.bottom-nav-icon { width: 38px; height: 38px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.bottom-nav-icon svg { width: 17px; height: 17px; }
.bottom-nav-item.active .bottom-nav-icon { transform: scale(1.04); box-shadow: inset 0 0 0 3px white, 0 6px 14px rgba(17,19,17,.18); }

.empty-state { background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); }
.app-alert { background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); }
.auth-panel .card { border-radius: 27px; }
.guest-content { padding-right: 18px; padding-left: 18px; }
.admin-body { padding: 0 !important; background: #d8eee0; }

.ui-ready .wallet-panel,
.ui-ready .card,
.ui-ready .phone-card,
.ui-ready .list-row { animation: ui-rise .35s ease both; }

@keyframes ui-rise {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 355px) {
    .phone-grid { grid-template-columns: 1fr; }
    .phone-card { min-height: 130px; flex-direction: row; }
    .phone-image { width: 38%; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media (min-width: 560px) {
    .app-shell,
    .guest-shell {
        max-width: 420px;
        min-height: calc(100vh - 48px);
        border: 7px solid rgba(255,255,255,.56);
        border-radius: 43px;
        box-shadow: 0 28px 76px rgba(20,66,40,.24);
    }
    .bottom-nav { bottom: 38px; }
}

@media (min-width: 980px) {
    .site-layout { max-width: 760px; }
    .app-shell { max-width: 420px; }
    .bottom-nav { display: none; }
}
