/* =========================================================
   KRONA CAPITAL — APP.CSS
   Mobile-first premium fintech UI
========================================================= */

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--bg);
}

body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* =========================================================
   THEME BASE VARIABLES
========================================================= */

body {
    --bg: #060607;
    --bg-soft: #0d0d10;
    --surface: rgba(18, 18, 22, .82);
    --surface-2: rgba(28, 28, 34, .86);
    --surface-3: rgba(255, 255, 255, .06);

    --text: #f7f3ea;
    --muted: #a8a096;
    --muted-2: #756f68;

    --accent: #d8b769;
    --accent-2: #f3d88b;
    --accent-dark: #9d762f;

    --danger: #ff5d5d;
    --success: #54d68a;
    --warning: #ffcb64;

    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);

    --shadow: 0 24px 80px rgba(0, 0, 0, .42);
    --shadow-soft: 0 14px 44px rgba(0, 0, 0, .28);

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 13px;

    --blur: blur(22px);
}

/* =========================================================
   15 PREMIUM THEMES
========================================================= */

body.krona-black {
    --bg: #050506;
    --bg-soft: #0c0c0f;
    --surface: rgba(19, 19, 23, .84);
    --surface-2: rgba(29, 28, 32, .9);
    --text: #fff7e8;
    --muted: #a89d8d;
    --accent: #d9b76d;
    --accent-2: #ffe39d;
    --accent-dark: #8f6928;
}

body.krona-platinum {
    --bg: #08090b;
    --bg-soft: #101217;
    --surface: rgba(28, 31, 38, .86);
    --surface-2: rgba(218, 224, 230, .10);
    --text: #f4f7fa;
    --muted: #aeb8c2;
    --accent: #cfd8df;
    --accent-2: #ffffff;
    --accent-dark: #7c8994;
}

body.krona-royal {
    --bg: #070612;
    --bg-soft: #111026;
    --surface: rgba(21, 18, 42, .88);
    --surface-2: rgba(60, 42, 120, .26);
    --text: #faf6ff;
    --muted: #afa4c8;
    --accent: #a98cff;
    --accent-2: #e4d7ff;
    --accent-dark: #7054c7;
}

body.krona-titanium {
    --bg: #080a0c;
    --bg-soft: #11161a;
    --surface: rgba(23, 28, 33, .88);
    --surface-2: rgba(70, 80, 90, .20);
    --text: #edf4f5;
    --muted: #9aabad;
    --accent: #7ed6d1;
    --accent-2: #d2fffb;
    --accent-dark: #3b9b98;
}

body.krona-ruby {
    --bg: #0c0407;
    --bg-soft: #18080d;
    --surface: rgba(31, 12, 18, .88);
    --surface-2: rgba(130, 20, 50, .20);
    --text: #fff3f6;
    --muted: #c5a0aa;
    --accent: #ff537a;
    --accent-2: #ffb8ca;
    --accent-dark: #b82046;
}

body.krona-sapphire {
    --bg: #030811;
    --bg-soft: #071426;
    --surface: rgba(10, 25, 46, .88);
    --surface-2: rgba(30, 92, 170, .20);
    --text: #eef7ff;
    --muted: #98b2ca;
    --accent: #4da3ff;
    --accent-2: #b8ddff;
    --accent-dark: #176cc4;
}

body.krona-onyx {
    --bg: #020303;
    --bg-soft: #090b0b;
    --surface: rgba(13, 16, 16, .9);
    --surface-2: rgba(255, 255, 255, .045);
    --text: #f2f2ef;
    --muted: #92938e;
    --accent: #b8b093;
    --accent-2: #eee6c9;
    --accent-dark: #767052;
}

body.krona-emerald {
    --bg: #03100b;
    --bg-soft: #071a12;
    --surface: rgba(10, 32, 22, .88);
    --surface-2: rgba(34, 145, 92, .20);
    --text: #effff7;
    --muted: #9ac6b1;
    --accent: #48e39a;
    --accent-2: #b9ffd9;
    --accent-dark: #1e9f64;
}

body.krona-obsidian {
    --bg: #020204;
    --bg-soft: #090910;
    --surface: rgba(14, 14, 24, .9);
    --surface-2: rgba(106, 90, 255, .12);
    --text: #f6f4ff;
    --muted: #9691ad;
    --accent: #6d63ff;
    --accent-2: #d3ceff;
    --accent-dark: #453ac9;
}

body.krona-carbon-gold {
    --bg: #050505;
    --bg-soft: #101010;
    --surface: rgba(24, 24, 22, .9);
    --surface-2: rgba(255, 197, 89, .12);
    --text: #fff9ed;
    --muted: #b2a995;
    --accent: #ffc247;
    --accent-2: #ffe7a8;
    --accent-dark: #b88416;
}

body.krona-midnight {
    --bg: #030712;
    --bg-soft: #09101f;
    --surface: rgba(13, 21, 38, .9);
    --surface-2: rgba(88, 126, 255, .14);
    --text: #eef3ff;
    --muted: #9ba8c4;
    --accent: #7f9cff;
    --accent-2: #dbe4ff;
    --accent-dark: #4969d6;
}

body.krona-ice {
    --bg: #061014;
    --bg-soft: #0b1b21;
    --surface: rgba(15, 35, 42, .88);
    --surface-2: rgba(180, 240, 255, .13);
    --text: #f2fcff;
    --muted: #a5c5cc;
    --accent: #9eeeff;
    --accent-2: #e9fbff;
    --accent-dark: #48a9be;
}

body.krona-graphite {
    --bg: #080808;
    --bg-soft: #121212;
    --surface: rgba(27, 27, 29, .88);
    --surface-2: rgba(255, 255, 255, .075);
    --text: #f5f5f5;
    --muted: #a8a8a8;
    --accent: #a4a7ad;
    --accent-2: #eeeeee;
    --accent-dark: #6e7279;
}

body.krona-imperial {
    --bg: #0d0602;
    --bg-soft: #1a0e05;
    --surface: rgba(34, 18, 7, .9);
    --surface-2: rgba(210, 124, 38, .17);
    --text: #fff5e9;
    --muted: #c5a789;
    --accent: #ff9f43;
    --accent-2: #ffd3a1;
    --accent-dark: #b65b12;
}

body.krona-deep-green {
    --bg: #020c08;
    --bg-soft: #071510;
    --surface: rgba(10, 28, 20, .9);
    --surface-2: rgba(61, 138, 89, .16);
    --text: #effff6;
    --muted: #98b8a5;
    --accent: #9ed66b;
    --accent-2: #d9ffae;
    --accent-dark: #639b32;
}

/* =========================================================
   APP LAYOUT
========================================================= */

.app-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 92px;
    background:
        radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%),
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 16px 28px;
}

.section-title {
    margin: 26px 0 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.03em;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrap {
    width: 46px;
    height: 46px;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), transparent 70%);
    box-shadow: var(--shadow-soft);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    background: var(--surface-2);
}

.topbar-user span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
}

.topbar-user strong {
    display: block;
    font-size: 16px;
    letter-spacing: -.02em;
}

.topbar-action {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: var(--accent-2);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
}

/* =========================================================
   BOTTOM NAV
========================================================= */

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 80;
    transform: translateX(-50%);
    width: min(430px, calc(100% - 24px));
    height: 72px;
    border-radius: 28px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: color-mix(in srgb, var(--surface) 92%, #000 8%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
}

.bottom-nav a {
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    transition: .25s ease;
}

.bottom-nav a svg {
    width: 20px;
    height: 20px;
}

.bottom-nav a.active {
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* =========================================================
   AUTH
========================================================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 24px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.brand-orb {
    width: 54px;
    height: 54px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 25%, var(--accent-2), transparent 25%),
        linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 36%, transparent);
}

.auth-brand span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.auth-brand strong {
    display: block;
    margin-top: 4px;
    font-size: 25px;
    letter-spacing: -.05em;
}

.auth-link {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-link a {
    color: var(--accent-2);
    font-weight: 800;
}

/* =========================================================
   FORMS
========================================================= */

.form-stack {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea,
.input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 16px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, .055);
    transition: .2s ease;
}

.field textarea {
    padding: 14px 16px;
    min-height: 110px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
    border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.username-field {
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
    overflow: hidden;
}

.username-field > span {
    width: 44px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--accent-2);
    font-weight: 900;
    border-right: 1px solid var(--border);
}

.username-field input {
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: 52px;
}

.username-field:focus-within {
    border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -.01em;
    transition: .22s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 45px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #e84141, #ff7a7a);
}

.btn-block {
    width: 100%;
}

/* =========================================================
   ALERTS
========================================================= */

.alert {
    padding: 14px;
    border-radius: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert-error {
    color: #ffdada;
    background: rgba(255, 93, 93, .11);
    border-color: rgba(255, 93, 93, .22);
}

.alert-success {
    color: #d9ffe6;
    background: rgba(84, 214, 138, .11);
    border-color: rgba(84, 214, 138, .22);
}

/* =========================================================
   CARDS
========================================================= */

.card {
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--blur);
}

.card-pad {
    padding: 18px;
}

.glass-card {
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur);
}

/* =========================================================
   DASHBOARD / INDEX
========================================================= */

.krona-card {
    position: relative;
    overflow: hidden;
    min-height: 216px;
    padding: 24px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 28%),
        radial-gradient(circle at 10% 80%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
        linear-gradient(135deg, #101014, #050506 65%, #16120a);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
    box-shadow: var(--shadow);
}

.krona-card::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        linear-gradient(115deg, transparent 0 40%, rgba(255,255,255,.16) 48%, transparent 58%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 14px);
    opacity: .5;
    pointer-events: none;
}

.krona-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
}

.krona-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.krona-chip {
    width: 54px;
    height: 40px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, var(--accent-2), var(--accent-dark));
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.krona-brand {
    text-align: right;
}

.krona-brand span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.krona-brand strong {
    display: block;
    margin-top: 3px;
    color: var(--accent-2);
    font-size: 17px;
    letter-spacing: -.02em;
}

.balance-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.balance-value {
    margin-top: 6px;
    font-size: clamp(32px, 9vw, 50px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.07em;
}

.balance-sub {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   METRICS
========================================================= */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.metric-card {
    padding: 16px;
    min-height: 86px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.metric-card strong {
    display: block;
    font-size: 20px;
    letter-spacing: -.04em;
}

@media (min-width: 768px) {
    .metrics-grid {
        margin-top: 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-card {
        min-height: 122px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .dashboard-grid {
        display: grid;
        gap: 14px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quick-action {
    min-height: 86px;
    border-radius: 23px;
    display: grid;
    place-items: center;
    gap: 7px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

.quick-action svg {
    width: 24px;
    height: 24px;
    color: var(--accent-2);
}

.quick-action span {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}

/* =========================================================
   INVESTMENT CAROUSEL / CARDS
========================================================= */

.invest-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.invest-carousel::-webkit-scrollbar {
    display: none;
}

.invest-card {
    flex: 0 0 82%;
    max-width: 330px;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.invest-img {
    height: 160px;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 32%),
        linear-gradient(135deg, var(--surface-2), var(--bg-soft));
}

.invest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invest-body {
    padding: 16px;
}

.invest-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.invest-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.invest-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 14px 0;
}

.invest-meta div {
    padding: 10px;
    border-radius: 15px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--border);
}

.invest-meta span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.invest-meta strong {
    display: block;
    font-size: 14px;
}

/* =========================================================
   LISTS / TRANSACTIONS
========================================================= */

.list-stack {
    display: grid;
    gap: 12px;
}

.list-item {
    padding: 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.list-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--accent-2);
    background: rgba(255,255,255,.06);
}

.list-item strong {
    display: block;
    font-size: 14px;
}

.list-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.list-value {
    text-align: right;
    font-weight: 900;
}

/* =========================================================
   MODALS
========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: end center;
    padding: 16px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(12px);
}

.modal.active {
    display: grid;
}

.modal-card {
    width: min(460px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 30px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.modal-head h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -.03em;
}

.modal-close {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: var(--text);
    background: var(--surface-2);
}

/* =========================================================
   PROFILE
========================================================= */

.profile-hero {
    padding: 22px;
    text-align: center;
}

.profile-photo {
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
    border-radius: 36px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 33px;
    object-fit: cover;
}

.profile-hero h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.04em;
}

.profile-hero p {
    margin: 6px 0 0;
    color: var(--muted);
}

/* =========================================================
   STATUS BADGES
========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid var(--border);
}

.badge-success {
    color: var(--success);
    background: rgba(84, 214, 138, .10);
}

.badge-warning {
    color: var(--warning);
    background: rgba(255, 203, 100, .10);
}

.badge-danger {
    color: var(--danger);
    background: rgba(255, 93, 93, .10);
}

.krona-card{
    min-height:260px;
}
/* =========================================================
   TABLE-LIKE ADMIN-SAFE RESPONSIVE BLOCKS
========================================================= */

.data-card {
    padding: 14px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row span {
    color: var(--muted);
    font-size: 13px;
}

.data-row strong {
    text-align: right;
    font-size: 13px;
}

/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state {
    padding: 28px 18px;
    text-align: center;
    border-radius: 24px;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border-strong);
}

.empty-state strong {
    display: block;
    color: var(--text);
    margin-bottom: 6px;
}

/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 768px) {
    .page {
        padding: 28px 26px 40px;
    }

    .dashboard-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:18px;
    align-items:start;
}

    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .invest-card {
        flex-basis: 310px;
    }

    .modal {
        place-items: center;
    }

    .bottom-nav {
        bottom: 22px;
    }
}

@media (min-width: 1024px) {
    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .app-shell {
        padding-bottom: 110px;
    }
}

.quick-action svg{
    width:24px;
    height:24px;
    padding:12px;
    box-sizing:content-box;

    border-radius:16px;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,.06),
        rgba(255,255,255,.02)
    );

    border:1px solid rgba(255,255,255,.06);

    color:var(--accent);
}

.quick-action{
    position:relative;
    overflow:hidden;
    min-height:88px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.quick-action svg{
    width:28px;
    height:28px;
    color:var(--accent);
    flex-shrink:0;
}

.quick-action span{
    font-size:13px;
    font-weight:700;
}

.pix-box {
    margin: 18px 0;
    padding: 16px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
}

.pix-qrcode {
    width: min(260px, 100%);
    border-radius: 18px;
    background: #fff;
    padding: 10px;
}

.deposit-values {
    grid-template-columns: repeat(4, 1fr);
}

.deposit-values .quick-action {
    min-height: 74px;
}

.deposit-values .quick-action strong {
    font-size: 18px;
    color: var(--accent-2);
}

.deposit-values .quick-action span {
    font-size: 11px;
}

.deposit-page {
    max-width: 720px;
}

.deposit-hero {
    margin: 20px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.deposit-hero h1 {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 42px;
    letter-spacing: -.06em;
}

.deposit-hero p {
    display: none;
}

.deposit-hero span {
    display: none;
}

.deposit-hero span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.deposit-hero h1 {
    margin: 6px 0 6px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.06em;
}

.deposit-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.deposit-rate {
    min-width: 128px;
    padding: 12px;
    border-radius: 20px;
    text-align: right;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.deposit-rate small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.deposit-rate strong {
    font-size: 13px;
    color: var(--accent-2);
}

.deposit-card-premium {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.deposit-card-premium::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.12) 48%, transparent 58%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
    opacity: .45;
    pointer-events: none;
}

.deposit-card-top,
.deposit-form {
    position: relative;
    z-index: 1;
}

.deposit-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.deposit-card-top span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.deposit-card-top strong {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.06em;
}

.deposit-badge {
    min-width: 54px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--bg);
    font-size: 12px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.deposit-form {
    display: grid;
    gap: 16px;
}

.deposit-input-wrap {
    display: grid;
    gap: 8px;
}

.deposit-input-wrap small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.deposit-input {
    min-height: 68px;
    display: flex;
    align-items: center;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.22);
    overflow: hidden;
}

.deposit-input span {
    width: 58px;
    height: 68px;
    display: grid;
    place-items: center;
    color: var(--accent-2);
    font-weight: 950;
    border-right: 1px solid var(--border);
}

.deposit-input input {
    width: 100%;
    height: 68px;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.deposit-values-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.deposit-values-premium button {
    min-height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -.02em;
    background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    border: 1px solid var(--border);
}

.deposit-values-premium button:active {
    transform: scale(.97);
}

@media (max-width: 520px) {
    .deposit-values-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

.deposit-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.deposit-summary div {
    padding: 14px;
    border-radius: 20px;
    background: rgba(0,0,0,.20);
    border: 1px solid var(--border);
}

.deposit-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.deposit-summary strong {
    font-size: 17px;
}

.deposit-submit {
    min-height: 58px;
    border-radius: 22px;
}

.deposit-result-premium {
    margin-top: 18px;
    padding: 20px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.deposit-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.deposit-result-head span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.deposit-result-head strong {
    font-size: 24px;
}

.pix-box-premium {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background: #fff;
}

.pix-box-premium img {
    width: min(260px, 100%);
    border-radius: 16px;
}

@media (max-width: 520px) {
    .deposit-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .deposit-rate {
        width: 100%;
        text-align: left;
    }

    .deposit-values-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .deposit-summary {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   INVEST PAGE
========================================================= */

.invest-page,
.wallet-page {
    max-width: 980px;
}

.invest-hero,
.wallet-hero {
    margin: 20px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.invest-hero span,
.wallet-hero span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.section-title-center {
    text-align: center;
}

.section-title-center h2 {
    margin: 0;
}

.invest-hero h1,
.wallet-hero h1 {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 42px;
    letter-spacing: -.06em;
}

.invest-hero p,
.wallet-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.invest-wallet {
    min-width: 164px;
    padding: 14px;
    border-radius: 22px;
    text-align: right;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.invest-wallet small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.invest-wallet strong {
    font-size: 15px;
    color: var(--accent-2);
}

.invest-list-premium {
    display: grid;
    gap: 16px;
}

.invest-product-card {
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at 86% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.invest-product-card.is-selected {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.invest-product-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.invest-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invest-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.invest-product-placeholder svg {
    width: 52px;
    height: 52px;
}

.invest-product-tag {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 12px;
    font-weight: 950;
}

.invest-product-body {
    padding: 18px;
}

.invest-product-head h2 {
    margin: 0 0 7px;
    font-size: 21px;
    letter-spacing: -.04em;
}

.invest-product-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.invest-product-metrics {
    margin: 16px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.invest-product-metrics div {
    padding: 13px;
    border-radius: 18px;
    background: rgba(0,0,0,.18);
    border: 1px solid var(--border);
}

.invest-product-metrics span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.invest-product-metrics strong {
    font-size: 14px;
}

.confirm-invest-box {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.confirm-invest-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.confirm-invest-box span {
    color: var(--accent-2);
    font-weight: 950;
}

.modal-form-space {
    margin-top: 14px;
}

/* =========================================================
   WALLET / MY INVEST
========================================================= */

.wallet-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.wallet-summary-card {
    padding: 18px;
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.wallet-summary-card.main {
    background:
        radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        var(--surface);
}

.wallet-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.wallet-summary-card strong {
    font-size: 26px;
    letter-spacing: -.05em;
}

.myinvest-stack {
    display: grid;
    gap: 14px;
}

.myinvest-card {
    padding: 16px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.myinvest-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.myinvest-image {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    color: var(--accent);
    background: rgba(255,255,255,.055);
    border: 1px solid var(--border);
}

.myinvest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myinvest-info {
    min-width: 0;
    flex: 1;
}

.myinvest-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.myinvest-info p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.myinvest-progress {
    margin: 16px 0;
}

.myinvest-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.myinvest-progress-head span {
    color: var(--muted);
    font-size: 12px;
}

.myinvest-progress-head strong {
    color: var(--accent-2);
    font-size: 13px;
}

.progress-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}

.progress-bar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.myinvest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.myinvest-grid div {
    padding: 12px;
    border-radius: 18px;
    background: rgba(0,0,0,.18);
    border: 1px solid var(--border);
}

.myinvest-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
}

.myinvest-grid strong {
    font-size: 13px;
}

@media (min-width: 760px) {
    .invest-list-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .wallet-summary-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .invest-hero,
    .wallet-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .invest-wallet {
        width: 100%;
        text-align: left;
    }

    .invest-product-metrics,
    .myinvest-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   AFFILIATE PAGE
========================================================= */

.affiliate-page {
    max-width: 860px;
}

.affiliate-hero {
    margin: 20px 0 18px;
}

.affiliate-hero span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.affiliate-hero h1 {
    margin: 6px 0 6px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.06em;
}

.affiliate-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.affiliate-card-premium {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.affiliate-card-premium::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.12) 48%, transparent 58%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
    opacity: .38;
    pointer-events: none;
}

.affiliate-card-head,
.affiliate-link-box,
.affiliate-qr {
    position: relative;
    z-index: 1;
}

.affiliate-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.affiliate-card-head span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.affiliate-card-head strong {
    font-size: 26px;
    letter-spacing: -.05em;
}

.affiliate-ring {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.affiliate-link-box {
    min-height: 58px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0,0,0,.26);
    border: 1px solid var(--border);
}

.affiliate-link-box input {
    width: 100%;
    height: 58px;
    border: 0;
    outline: none;
    padding: 0 14px;
    color: var(--text);
    background: transparent;
    font-weight: 700;
    font-size: 13px;
}

.affiliate-link-box button {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--accent-2);
    background: rgba(255,255,255,.06);
    border-left: 1px solid var(--border);
}

.affiliate-qr-card{
    margin-top:20px;
    padding:22px;
    border-radius:28px;
    text-align:center;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.02)
        );
    border:1px solid var(--border);
}

.affiliate-qr-image{
    width:220px;
    height:220px;
    margin:0 auto;
    padding:12px;
    border-radius:24px;
    background:#fff;
}

.affiliate-qr-image img{
    width:100%;
    height:100%;
    display:block;
}

.affiliate-qr-text{
    margin-top:16px;
}

.affiliate-qr-text strong{
    display:block;
    margin-bottom:6px;
    font-size:15px;
}

.affiliate-qr-text span{
    color:var(--muted);
    font-size:12px;
}
}

.affiliate-summary-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.affiliate-summary-card {
    padding: 18px;
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.affiliate-summary-card.main {
    background:
        radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 32%),
        var(--surface);
}

.affiliate-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.affiliate-summary-card strong {
    font-size: 25px;
    letter-spacing: -.05em;
}

.affiliate-levels {
    display: grid;
    gap: 10px;
}

.affiliate-level-card {
    padding: 16px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.affiliate-level-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.affiliate-level-card strong {
    font-size: 20px;
}

.affiliate-level-card small {
    color: var(--accent-2);
    font-weight: 800;
}

.small-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    box-shadow: none;
}

.small-avatar .avatar-img {
    border-radius: 14px;
}

@media (min-width: 760px) {
    .affiliate-summary-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .affiliate-levels {
        grid-template-columns: repeat(3, 1fr);
    }
}

.transfer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transfer-user-card img {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    object-fit: cover;
    background: var(--surface-2);
}

.transfer-user-card strong {
    display: block;
    font-size: 14px;
}

.transfer-user-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.transfer-preview-error strong {
    color: var(--danger);
    font-size: 13px;
}

.transfer-preview-ok strong {
    color: var(--success);
    font-size: 13px;
}


/* =========================================================
   PROFILE PAGE
========================================================= */

.profile-page {
    max-width: 760px;
}

.profile-card-premium {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 24px;
    border-radius: 36px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.profile-card-premium::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.12) 48%, transparent 58%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
    opacity: .34;
    pointer-events: none;
}

.profile-photo-upload,
.profile-main-info,
.profile-balance {
    position: relative;
    z-index: 1;
}

.profile-photo-upload {
    width: 118px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    gap: 9px;
    cursor: pointer;
}

.profile-photo-upload img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 38px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.profile-photo-upload span {
    display: inline-flex;
    min-height: 30px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 11px;
    font-weight: 900;
}

.profile-vip {
    display: inline-flex;
    margin-bottom: 10px;
    min-height: 28px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--accent-2);
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.profile-main-info h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.05em;
}

.profile-main-info p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.profile-balance {
    margin-top: 18px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(0,0,0,.22);
    border: 1px solid var(--border);
}

.profile-balance span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.profile-balance strong {
    font-size: 31px;
    letter-spacing: -.06em;
}

.profile-stats-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-stats-grid div {
    padding: 18px;
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.profile-stats-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.profile-stats-grid strong {
    font-size: 25px;
}

.profile-actions {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.profile-action-card {
    width: 100%;
    min-height: 74px;
    padding: 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-align: left;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.profile-action-card svg {
    width: 24px;
    height: 24px;
    color: var(--accent-2);
    flex: 0 0 auto;
}

.profile-action-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.profile-action-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.profile-action-card.danger svg {
    color: var(--danger);
}

@media (min-width: 760px) {
    .profile-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-action-card.danger {
        grid-column: span 2;
    }
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.topbar-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.topbar-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--bg);
    font-size: 20px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.topbar-brand strong {
    display: block;
    font-size: 15px;
    line-height: 1;
    letter-spacing: -.03em;
}

.topbar-brand span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.topbar-profile {
    width: 44px;
    height: 44px;
    padding: 2px;
    border-radius: 17px;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), transparent 70%);
    border: 1px solid var(--border);
}

.topbar-profile img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    background: var(--surface-2);
}

.transfer-balance {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.transfer-balance span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.transfer-balance strong {
    color: var(--accent-2);
    font-size: 20px;
}

.premium-actions {
    grid-template-columns: repeat(4, 1fr);
}

.quick-action-premium {
    min-height: 82px;
    padding: 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    color: var(--text);
    background:
        radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border: 1px solid var(--border);
}

.quick-symbol {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--bg);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

.quick-action-premium strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.quick-action-premium span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 620px) {
    .premium-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-action-premium {
        min-height: 84px;
    }
}

/* =========================================================
   WITHDRAW PAGE
========================================================= */

.withdraw-page {
    max-width: 720px;
}

.withdraw-hero {
    margin: 20px 0 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
}

.withdraw-hero span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.withdraw-hero h1 {
    margin: 6px 0 6px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.06em;
}

.withdraw-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.withdraw-balance {
    min-width: 138px;
    padding: 14px;
    border-radius: 22px;
    text-align: right;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.withdraw-balance small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.withdraw-balance strong {
    color: var(--accent-2);
    font-size: 15px;
}

.withdraw-card-premium {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.withdraw-card-premium::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.12) 48%, transparent 58%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
    opacity: .35;
    pointer-events: none;
}

.withdraw-card-top,
.withdraw-card-premium form {
    position: relative;
    z-index: 1;
}

.withdraw-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.withdraw-card-top span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.withdraw-card-top strong {
    font-size: 28px;
    letter-spacing: -.05em;
}

.withdraw-badge {
    min-width: 54px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--bg);
    font-size: 12px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.withdraw-note {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.withdraw-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-2);
    font-size: 13px;
}

.withdraw-note span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .withdraw-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .withdraw-balance {
        width: 100%;
        text-align: left;
    }
}



.transaction-item {
    position: relative;
    overflow: hidden;
}

.transaction-item::before {
    content: "";
    width: 4px;
    height: 44%;
    border-radius: 999px;
    position: absolute;
    left: 0;
    top: 28%;
}

.transaction-item.positive::before {
    background: rgba(84, 214, 138, .65);
}

.transaction-item.negative::before {
    background: rgba(255, 93, 93, .65);
}

.transaction-item.profit::before {
    background: rgba(255, 227, 157, .75);
}

.transaction-item.positive .list-value {
    color: rgba(117, 240, 158, .9);
}

.transaction-item.negative .list-value {
    color: rgba(255, 120, 120, .9);
}

.transaction-item.profit .list-value {
    color: rgba(255, 227, 157, .95);
}

.pix-qr-wrap {
    position: relative;
    width: min(260px, 100%);
    aspect-ratio: 1 / 1;
}

.pix-qr-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
}

.pix-qr-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--bg);
    font-size: 20px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 4px solid #fff;
}
.pix-qr-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 4px solid #fff;
    overflow: hidden;
}

.pix-qr-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.krona-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(216,183,105,.16), transparent 34%),
        #050506;
}

.krona-splash-card {
    display: grid;
    place-items: center;
    gap: 10px;
}

.krona-splash-card img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(216,183,105,.25));
}

.krona-splash-card strong {
    font-size: 16px;
    letter-spacing: .14em;
}

.krona-splash-card span {
    color: var(--muted);
    font-size: 12px;
}

.topbar-minimal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}



.deposit-hero-center {
    justify-content: center;
    text-align: center;
    margin: 26px 0 18px;
}

.deposit-hero-center h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.06em;
}
.deposit-card-top {
    justify-content: center;
    text-align: center;
}

.history-more {
    margin-top: 12px;
    text-align: center;
}

.history-more a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    opacity: .85;
    transition: .2s;
}

.history-more a:hover {
    opacity: 1;
}
.section-title-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-more-link {
    flex: 0 0 auto;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    opacity: .85;
}

.history-more-link:active {
    transform: scale(.96);
}

/* =========================================================
   CONTRACT SIMULATOR
========================================================= */

.contract-simulator {
    position: relative;
    overflow: hidden;
    margin: 10px 0 22px;
    padding: 20px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contract-simulator::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.13) 48%, transparent 58%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px);
    opacity: .35;
    pointer-events: none;
}

.contract-simulator > * {
    position: relative;
    z-index: 1;
}

.contract-simulator-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.contract-simulator-head span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
}

.contract-simulator-head h2 {
    margin: 6px 0 6px;
    font-size: 27px;
    line-height: 1;
    letter-spacing: -.06em;
}

.contract-simulator-head p {
    margin: 0;
    max-width: 380px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.contract-badge {
    min-width: 72px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--bg);
    font-size: 12px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.contract-main-value {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(0,0,0,.18);
    border: 1px solid var(--border);
}

.contract-main-value span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.contract-main-value strong {
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.07em;
}

.contract-range {
    display: grid;
    gap: 11px;
    margin-top: 16px;
}

.contract-range div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.contract-range span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.contract-range strong {
    color: var(--accent-2);
    font-size: 13px;
}

.contract-range input[type="range"] {
    width: 100%;
    height: 34px;
    appearance: none;
    background: transparent;
}

.contract-range input[type="range"]::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--accent), var(--accent-2));
}

.contract-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 30px;
    height: 30px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--text);
    border: 6px solid var(--accent);
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.contract-result-grid {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.contract-result-grid div {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.contract-result-grid div.total {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
        rgba(255,255,255,.055);
}

.contract-result-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.contract-result-grid strong {
    font-size: 18px;
    letter-spacing: -.03em;
}

.contract-result-grid .total strong {
    color: var(--accent-2);
    font-size: 25px;
}

@media (max-width: 520px) {
    .contract-simulator {
        padding: 18px;
        border-radius: 30px;
    }

    .contract-simulator-head {
        flex-direction: column;
    }

    .contract-badge {
        display: none;
    }

    .contract-main-value strong {
        font-size: 32px;
    }
}

.auth-card {
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "KRONA";
    position: absolute;
    right: -18px;
    top: 18px;
    color: rgba(255,255,255,.035);
    font-size: 76px;
    font-weight: 950;
    letter-spacing: -.08em;
    pointer-events: none;
}

.auth-brand-premium {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.auth-logo-frame {
    width: 82px;
    height: 82px;
    padding: 5px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow:
        0 22px 55px rgba(0,0,0,.35),
        0 0 40px color-mix(in srgb, var(--accent) 20%, transparent);
}

.auth-logo-frame img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    background: #050506;
}

.auth-title-block span {
    display: inline-flex;
    min-height: 26px;
    padding: 0 10px;
    margin-bottom: 9px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--accent-2);
    background: rgba(255,255,255,.055);
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .14em;
}

.auth-title-block strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.06em;
}

.auth-title-block small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
}

.ref-card {
    min-height: 72px;
    padding: 12px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    background:
        radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
        rgba(255,255,255,.045);
    border: 1px solid var(--border);
}

.ref-card img {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    object-fit: cover;
    background: var(--surface-2);
}

.ref-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.ref-card strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.2;
}

.ref-card small {
    display: block;
    margin-top: 3px;
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 800;
}