* { box-sizing: border-box; }
:root {
    --nav: #061636;
    --blue: #0d6efd;
    --green: #079b50;
    --text: #10203f;
    --muted: #6d7890;
    --line: #dce6f5;
    --bg: #f6f9fd;
    --surface: #ffffff;
    --shadow: 0 12px 28px rgba(14, 36, 75, .09);
}
body {
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.topbar {
    height: 62px;
    background: var(--nav);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}
.brand strong { display: block; font-size: 20px; line-height: 1; }
.brand small { display: block; font-size: 10px; color: rgba(255,255,255,.75); margin-top: 3px; }
.brand.dark small { color: var(--muted); }
.brand-mark {
    color: #1488ff;
    transform: skewY(-20deg);
    letter-spacing: -3px;
    font-weight: 900;
    font-size: 20px;
}
.topbar nav { display: flex; gap: 34px; font-weight: 700; font-size: 12px; }
.topbar nav a { color: rgba(255,255,255,.86); }
.topbar nav .active { color: #2e91ff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
    border: 0;
    border-radius: 5px;
    padding: 11px 20px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}
.btn.primary { background: var(--blue); color: white; box-shadow: 0 7px 16px rgba(13,110,253,.2); }
.btn.ghost { color: white; border: 1px solid rgba(255,255,255,.48); background: transparent; }
.panel-main .btn.ghost, .auth-card .btn.ghost { color: var(--text); border-color: var(--line); }
.btn.wide { width: 100%; }
main { max-width: 1220px; margin: 0 auto; padding: 0 18px 42px; }
.flash {
    margin: 12px auto;
    padding: 12px 16px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: white;
    font-weight: 700;
}
.flash.success { color: #087948; border-color: #b7ecd2; background: #eefff6; }
.flash.error { color: #b42318; border-color: #ffd2cd; background: #fff5f4; }
.trust-strip {
    background: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.trust-strip div {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    padding: 13px 34px;
    border-right: 1px solid var(--line);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip span {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #edf5ff;
}
.trust-strip strong { font-size: 13px; }
.trust-strip small { color: var(--muted); font-size: 11px; }
.headline {
    margin: 18px 0 16px;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}
.headline h1 { margin: 0; font-size: 28px; letter-spacing: 0; }
.headline p { grid-column: 1 / -1; margin: -7px 0 0; color: var(--muted); font-size: 13px; }
.line { height: 2px; max-width: 60px; justify-self: end; background: linear-gradient(90deg, transparent, #2b82ff); }
.headline .line:last-of-type { justify-self: start; background: linear-gradient(90deg, #2b82ff, transparent); }
.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.plan-card {
    background: white;
    position: relative;
    border: 1px solid color-mix(in srgb, var(--accent), white 62%);
    border-radius: 8px;
    padding: 18px 16px 13px;
    min-height: 286px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.plan-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--accent);
}
.number {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 900;
}
.ribbon {
    position: absolute;
    right: -29px;
    top: 9px;
    transform: rotate(34deg);
    background: var(--accent);
    color: white;
    width: 112px;
    text-align: center;
    padding: 5px 0;
    font-size: 10px;
    font-weight: 900;
}
.fruit {
    width: 112px;
    height: 100px;
    margin: 16px auto -6px 0;
    background-image: url("fruit-assets.png");
    background-size: 200% 200%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 8px 7px rgba(0,0,0,.16));
}
.fruit-apple { background-position: 0 0; }
.fruit-mango { background-position: 100% 0; }
.fruit-orange { background-position: 0 100%; }
.fruit-banana { background-position: 100% 100%; }
.plan-card h2 {
    position: absolute;
    top: 74px;
    right: 18px;
    max-width: 136px;
    margin: 0;
    color: var(--accent);
    font-size: 20px;
    line-height: 1.15;
    text-align: center;
}
.stars { color: #ffb300; position: absolute; top: 128px; right: 52px; letter-spacing: 2px; font-size: 13px; }
.plan-card dl { margin: 5px 0 12px; }
.plan-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #edf1f7;
    font-size: 12px;
}
.plan-card dt:before { content: "▣"; margin-right: 8px; color: var(--accent); font-size: 10px; }
.plan-card dt { color: #4f5b70; }
.plan-card dd { margin: 0; font-weight: 900; color: var(--accent); }
.invest-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 13px 16px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font-weight: 900;
    font-size: 12px;
}
.calculator, .checkout, .info-grid {
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(22, 54, 93, .06);
    border-radius: 8px;
}
.calculator {
    display: grid;
    grid-template-columns: 1.4fr 1.25fr 1.2fr .75fr 1fr;
    gap: 18px;
    align-items: center;
    margin: 18px 0 12px;
    padding: 13px 18px;
    background: #eef5ff;
}
.calc-title { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: center; }
.calc-title span { grid-row: 1 / 3; font-size: 34px; }
.calc-title strong { font-size: 13px; }
.calc-title small, label, .checkout p { color: var(--muted); font-size: 11px; font-weight: 700; }
label { display: grid; gap: 6px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 11px 12px;
    color: var(--text);
    background: white;
    outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #75adff; box-shadow: 0 0 0 3px rgba(13,110,253,.1); }
.return-box small { color: var(--muted); display: block; }
.return-box strong { color: var(--green); font-size: 28px; }
.checkout {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 28px;
    padding: 18px;
}
.checkout h3 { margin: 0; font-size: 15px; color: #0d3479; }
.checkout p { margin: 3px 0 13px; }
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 13px;
}
.quick-amounts button, .inline-form button {
    border: 1px solid var(--line);
    background: #fbfdff;
    border-radius: 5px;
    padding: 9px 10px;
    font-weight: 800;
    color: #1f3154;
    cursor: pointer;
}
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 12px;
}
.payment-grid label {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
}
.payment-grid input { width: auto; }
.payment-grid span { color: var(--text); font-weight: 900; }
.payment-grid small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.payment-grid b { color: var(--blue); font-size: 13px; }
.pay-bar {
    grid-column: 1 / -1;
    border: 0;
    border-radius: 6px;
    background: #079b50;
    color: white;
    min-height: 36px;
    font-weight: 900;
    cursor: pointer;
}
.pay-bar span { margin-left: 16px; font-size: 11px; font-weight: 700; opacity: .9; }
.info-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
}
.info-grid div { padding: 18px; background: white; }
.info-grid h3 { margin: 0 0 7px; color: #0d3479; }
.info-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, #e8f2ff, #f8fbff 50%);
}
.auth-shell { max-width: 430px; width: 100%; }
.auth-card, .panel-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.auth-card { padding: 26px; margin-top: 16px; display: grid; gap: 14px; }
.auth-card h1 { margin: 0; }
.auth-card p { margin: 0; text-align: center; color: var(--muted); }
.auth-card a { color: var(--blue); font-weight: 900; }
.hint { text-align: center; color: var(--muted); }
.panel-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar .brand { margin-bottom: 24px; }
.sidebar a:not(.brand) {
    padding: 12px 14px;
    border-radius: 6px;
    color: #334464;
    font-weight: 800;
}
.sidebar a.active, .sidebar a:not(.brand):hover { background: #edf5ff; color: var(--blue); }
.admin-side { background: #061636; }
.admin-side a:not(.brand), .admin-side .brand { color: white; }
.panel-main {
    max-width: none;
    margin: 0;
    padding: 28px;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.panel-head h1 { margin: 0; font-size: 28px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); }
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.stats div {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(22, 54, 93, .06);
}
.stats small { display: block; color: var(--muted); font-weight: 800; }
.stats strong { display: block; margin-top: 8px; font-size: 26px; color: #0c3c82; }
.panel-card { padding: 18px; margin-bottom: 18px; }
.panel-card h2 { margin: 0 0 14px; font-size: 20px; }
.panel-card h3 { margin: 16px 0 9px; color: #0d3479; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #edf1f7; vertical-align: top; }
th { color: #53627a; font-size: 12px; text-transform: uppercase; letter-spacing: 0; background: #f8fbff; }
.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
    background: #edf1f7;
    color: #526076;
}
.status.approved { background: #e8fff3; color: #087948; }
.status.pending { background: #fff7df; color: #9a6600; }
.status.rejected { background: #fff0f0; color: #c0342b; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.stack-form { display: grid; gap: 13px; }
.request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf1f7;
    padding: 9px 0;
    margin: 0;
}
.admin-plans {
    display: grid;
    gap: 12px;
}
.plan-edit {
    display: grid;
    grid-template-columns: 82px repeat(auto-fit, minmax(92px, 1fr));
    gap: 9px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    background: #fbfdff;
}
.admin-plan-photo {
    align-self: stretch;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.admin-photo {
    width: 72px;
    height: 64px;
    margin: 0;
    object-fit: contain;
}
.plan-photo {
    object-fit: contain;
}
.new-plan h3 { grid-column: 1 / -1; margin: 0; }
.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px;
}
.inline-form input { width: 110px; padding: 8px; }
.inline-form button { padding: 8px 10px; }
@media (max-width: 980px) {
    .topbar { height: auto; min-height: 62px; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
    .topbar nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; overflow-x: auto; }
    .plans, .trust-strip, .info-grid { grid-template-columns: repeat(2, 1fr); }
    .calculator, .checkout, .two-col, .stats { grid-template-columns: 1fr; }
    .panel-page { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; }
    .sidebar .brand { min-width: 180px; margin-bottom: 0; }
    .plan-edit { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    main, .panel-main { padding: 14px; }
    .plans, .trust-strip, .info-grid, .payment-grid, .quick-amounts { grid-template-columns: 1fr; }
    .topbar nav { font-size: 11px; }
    .headline { grid-template-columns: 1fr; }
    .headline .line { display: none; }
    .checkout { padding: 14px; }
    .plan-card h2 { font-size: 18px; }
}

.app-dashboard {
    background: #f5f8ff;
}
.app-shell {
    max-width: 1180px;
    padding: 12px 18px 96px;
}
.app-top {
    display: grid;
    grid-template-columns: 34px 1fr 34px 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.app-brand strong {
    color: #1272dd;
    font-size: 20px;
}
.app-brand small {
    color: #4f5b70;
}
.icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    color: #152340;
    font-size: 20px;
    cursor: pointer;
}
.avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0969e8;
    color: white;
    font-weight: 900;
}
.wallet-hero {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #061d45;
    color: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 12px 26px rgba(6, 29, 69, .18);
}
.profile-dot {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: #0d6efd;
    font-size: 26px;
}
.wallet-hero small {
    color: rgba(255,255,255,.76);
    font-weight: 700;
}
.wallet-hero h1 {
    margin: 5px 0 2px;
    font-size: 23px;
    line-height: 1.1;
}
.wallet-hero h1 span {
    color: #ffbd1a;
    font-size: 14px;
}
.wallet-hero p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
}
.wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    max-width: 274px;
}
.mini-btn {
    width: 132px;
    min-width: 0;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mini-btn.fill {
    background: #0d6efd;
    color: white;
    box-shadow: 0 7px 16px rgba(13, 110, 253, .28);
}
.mini-btn.withdraw {
    border-color: #7c3aed;
    background: #7c3aed;
    color: white;
    box-shadow: 0 7px 16px rgba(124, 58, 237, .28);
}
.mini-btn-icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    border-radius: 4px;
    background: rgba(255,255,255,.18);
    font-size: 17px;
    line-height: 1;
}
.withdraw-icon {
    font-size: 14px;
}
.mini-btn:hover {
    transform: translateY(-1px);
}
.mini-btn.fill:hover {
    background: #0062e6;
    box-shadow: 0 9px 20px rgba(13, 110, 253, .34);
}
.mini-btn.withdraw:hover {
    border-color: #6d28d9;
    background: #6d28d9;
    box-shadow: 0 9px 20px rgba(124, 58, 237, .34);
}
.mini-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,.45);
    outline-offset: 2px;
}
.wallet-amounts {
    min-width: 190px;
}
.wallet-amounts strong {
    display: block;
    font-size: 28px;
    margin: 4px 0 18px;
}
.wallet-amounts b {
    display: block;
    font-size: 17px;
    margin-top: 4px;
}
.dashboard-balances {
    min-width: 310px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dashboard-balances .balance-card {
    min-width: 0;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.dashboard-balances .total-balance {
    background: #0d6efd;
}
.dashboard-balances .wallet-balance {
    background: #00a86b;
}
.dashboard-balances .balance-card small {
    color: rgba(255,255,255,.82);
    font-size: 10px;
}
.dashboard-balances .balance-card strong {
    margin: 7px 0 0;
    color: white;
    font-size: 22px;
    line-height: 1;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.metric-grid div {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 9px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    box-shadow: 0 5px 18px rgba(16, 38, 79, .06);
}
.metric-grid span {
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #edf5ff;
    color: #0d6efd;
    font-weight: 900;
}
.metric-grid small {
    color: #5c6a82;
    font-size: 11px;
    font-weight: 800;
}
.metric-grid strong {
    color: #071c42;
    font-size: 15px;
}
.earning-options {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.metric-card {
    min-width: 0;
    min-height: 104px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 10px;
    padding: 14px 8px;
    color: white;
    text-align: center;
    box-shadow: 0 9px 20px rgba(16, 38, 79, .1);
    overflow: hidden;
}
.metric-card span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.2);
    color: white;
    font-weight: 900;
}
.metric-card small {
    color: rgba(255,255,255,.86);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
}
.metric-card strong {
    color: white;
    font-size: 15px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.metric-card.invest {
    background: linear-gradient(135deg, #126bff, #073ea8);
}
.metric-card.recharge {
    background: linear-gradient(135deg, #13a356, #047741);
}
.metric-card.wallet {
    background: linear-gradient(135deg, #7c3aed, #4f24b8);
}
.metric-card.today {
    background: linear-gradient(135deg, #f59e0b, #d15a00);
}
.metric-card.income {
    background: linear-gradient(135deg, #f45114, #c12c0a);
}
.metric-card.team {
    background: linear-gradient(135deg, #0891b2, #075985);
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 6px 0 12px;
}
.section-title h2 {
    margin: 0;
    font-size: 22px;
}
.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 700;
}
.section-title a {
    color: #0d6efd;
    font-weight: 900;
    font-size: 13px;
}
.dash-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.dashboard-plan-card {
    min-width: 0;
    min-height: 398px;
    padding: 20px 20px 16px;
}
.dashboard-plan-card .fruit {
    margin-top: 22px;
}
.dashboard-plan-card h2 {
    top: 82px;
    right: 22px;
    max-width: 160px;
    font-size: 22px;
}
.dashboard-plan-card .stars {
    top: 138px;
    right: 48px;
}
.dashboard-plan-card dl {
    margin-top: 10px;
}
.dashboard-plan-card dl div {
    padding: 8px 0;
    font-size: 14px;
}
.dashboard-plan-card form {
    margin-top: 14px;
}
.dashboard-invest-btn {
    min-height: 48px;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}
.dash-plan {
    position: relative;
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16, 38, 79, .06);
}
.dash-ribbon {
    position: absolute;
    left: -28px;
    top: 13px;
    width: 106px;
    transform: rotate(-33deg);
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 900;
}
.dash-fruit.fruit {
    width: 92px;
    height: 92px;
    margin: 14px 0 0;
    align-self: start;
}
.dash-plan-body h3 {
    color: var(--accent);
    margin: 4px 0;
    font-size: 19px;
}
.dash-plan-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.dash-plan-body small, .plan-meta span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.dash-plan-body strong {
    color: #162542;
    font-size: 15px;
}
.plan-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 9px;
    align-items: end;
}
.plan-meta b {
    display: block;
    color: var(--accent);
    font-size: 17px;
    margin-top: 4px;
}
.plan-meta em {
    background: color-mix(in srgb, var(--accent), white 85%);
    color: var(--accent);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}
.dash-plan form {
    grid-column: 1 / -1;
}
.dash-invest {
    width: 100%;
    border: 0;
    border-radius: 5px;
    background: var(--accent);
    color: white;
    min-height: 36px;
    font-weight: 900;
    cursor: pointer;
}
.secure-band {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 16px;
    align-items: center;
    margin: 18px 0;
    background: #edf5ff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
}
.shield {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcebff;
    font-size: 24px;
}
.secure-band h3 {
    margin: 0 0 5px;
}
.secure-band p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}
.secure-art {
    font-size: 54px;
}
.quick-tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16, 38, 79, .05);
}
.quick-tools a {
    text-align: center;
    padding: 18px 10px;
    border-right: 1px solid #edf1f7;
}
.quick-tools a:last-child {
    border-right: 0;
}
.quick-tools span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    border-radius: 8px;
    background: #edf5ff;
    color: #0d6efd;
    font-weight: 900;
}
.quick-tools strong, .quick-tools small {
    display: block;
}
.quick-tools strong {
    font-size: 12px;
}
.quick-tools small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}
.dash-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}
.profile-tools {
    grid-template-columns: repeat(3, 1fr);
}
.app-calc {
    grid-template-columns: 1.15fr 1fr 1fr .8fr;
}
.dash-plan .stack-form {
    gap: 9px;
}
.dash-plan .stack-form label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.dash-plan .stack-form input {
    padding: 9px 10px;
}
.request-row small {
    color: var(--muted);
    font-weight: 700;
}
.wallet-page-card, .profile-hero {
    margin-bottom: 16px;
}
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    padding: 8px 8px 10px;
    box-shadow: 0 -10px 30px rgba(16, 38, 79, .11);
}
.bottom-nav a {
    display: grid;
    place-items: center;
    gap: 4px;
    color: #67748b;
    font-weight: 900;
    font-size: 19px;
}
.bottom-nav span {
    font-size: 11px;
}
.bottom-nav .active {
    color: #0d6efd;
}
.bottom-nav .wallet-tab {
    width: 56px;
    height: 56px;
    margin: -34px auto 0;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    box-shadow: 0 10px 22px rgba(13, 110, 253, .3);
}
@media (max-width: 980px) {
    .dash-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .app-shell {
        padding: 10px 12px 92px;
    }
    .wallet-hero {
        grid-template-columns: 50px 1fr;
        padding: 18px;
    }
    .wallet-amounts {
        grid-column: 2;
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 8px;
    }
    .dashboard-balances {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        max-width: 232px;
        margin-top: 10px;
    }
    .dashboard-balances .balance-card {
        min-height: 68px;
        padding: 10px;
    }
    .dashboard-balances .balance-card strong {
        font-size: 16px;
    }
    .metric-grid, .dash-plans, .quick-tools, .dash-history, .app-calc {
        grid-template-columns: 1fr 1fr;
    }
    .earning-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .metric-card {
        min-height: 92px;
        padding: 11px 6px;
    }
    .metric-grid div {
        padding: 10px;
    }
    .secure-art {
        display: none;
    }
}
@media (max-width: 600px) {
    .dash-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .dashboard-plan-card {
        min-height: 326px;
        padding: 12px 10px 10px;
    }
    .dashboard-plan-card .number {
        left: 8px;
        top: 9px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .dashboard-plan-card .ribbon {
        right: -34px;
        top: 7px;
        font-size: 8px;
    }
    .dashboard-plan-card .fruit {
        width: 68px;
        height: 68px;
        margin: 20px 0 0;
    }
    .dashboard-plan-card h2 {
        top: 55px;
        right: 8px;
        max-width: 82px;
        font-size: 15px;
    }
    .dashboard-plan-card .stars {
        position: static;
        margin: -5px 0 3px;
        text-align: right;
        font-size: 9px;
        letter-spacing: 1px;
    }
    .dashboard-plan-card dl {
        margin: 0 0 8px;
    }
    .dashboard-plan-card dl div {
        padding: 5px 0;
        font-size: 9px;
    }
    .dashboard-plan-card dt:before {
        margin-right: 4px;
        font-size: 7px;
    }
    .dashboard-plan-card form {
        margin-top: 8px;
    }
    .dashboard-invest-btn {
        min-height: 34px;
        padding: 8px 4px;
        font-size: 10px;
    }
}
@media (max-width: 460px) {
    .app-top {
        grid-template-columns: 28px 1fr 28px 36px;
        gap: 6px;
    }
    .app-brand strong {
        font-size: 17px;
    }
    .wallet-hero {
        grid-template-columns: 46px 1fr;
        gap: 10px;
    }
    .profile-dot {
        width: 44px;
        height: 44px;
    }
    .wallet-actions {
        gap: 8px;
        width: 100%;
        max-width: 232px;
    }
    .mini-btn {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        min-height: 38px;
        padding: 8px 9px;
        font-size: 11px;
        gap: 6px;
    }
    .mini-btn-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        font-size: 15px;
    }
    .metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }
    .earning-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .metric-grid div {
        display: block;
        min-height: 78px;
        padding: 9px 6px;
        text-align: center;
    }
    .metric-grid span {
        width: 28px;
        height: 28px;
        margin: 0 auto 5px;
        font-size: 12px;
    }
    .metric-grid small {
        display: block;
        font-size: 8px;
        line-height: 1.15;
    }
    .metric-grid strong {
        display: block;
        margin-top: 4px;
        font-size: 11px;
    }
    .metric-card {
        min-height: 82px;
        padding: 9px 4px;
        gap: 5px;
    }
    .metric-card span {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }
    .metric-card small {
        font-size: 8px;
    }
    .metric-card strong {
        font-size: 10px;
        margin-top: 0;
    }
    .dash-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .quick-tools {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .dash-history, .app-calc {
        grid-template-columns: 1fr;
    }
    .request-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .dash-plan {
        grid-template-columns: 66px 1fr;
        gap: 8px;
        padding: 10px;
    }
    .dash-fruit.fruit {
        width: 62px;
        height: 62px;
        margin-top: 8px;
    }
    .dash-plan-body h3 {
        font-size: 14px;
        margin-top: 2px;
    }
    .dash-plan-body p {
        font-size: 9px;
        margin-bottom: 8px;
    }
    .dash-plan-body small, .plan-meta span {
        font-size: 8px;
    }
    .dash-plan-body strong {
        font-size: 10px;
    }
    .plan-meta {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .plan-meta b {
        font-size: 12px;
    }
    .plan-meta em {
        grid-column: 1 / -1;
        width: max-content;
        max-width: 100%;
        padding: 4px 6px;
        font-size: 8px;
    }
    .dash-invest {
        min-height: 30px;
        font-size: 10px;
    }
    .quick-tools a {
        padding: 12px 4px;
    }
    .quick-tools span {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }
    .quick-tools strong {
        font-size: 8px;
        line-height: 1.1;
    }
    .quick-tools small {
        font-size: 7px;
    }
    .secure-band {
        grid-template-columns: 48px 1fr;
    }
    .secure-band h3 {
        font-size: 13px;
    }
    .secure-band p {
        font-size: 10px;
    }
}
