/* ==========================================================================
   IDSWAP — public interface
   Palette: porcelain / indigo / teal with a soft rose accent.
   ========================================================================== */

:root {
    --bg: #f6f7fc;
    --bg-soft: #eef1f9;
    --bg-elev: #ffffff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --surface-2: rgba(20, 32, 60, 0.04);
    --surface-3: rgba(20, 32, 60, 0.07);
    --border: rgba(20, 32, 60, 0.09);
    --border-strong: rgba(20, 32, 60, 0.16);
    --text: #17213a;
    --text-strong: #0a1124;
    --muted: #4f5c78;
    --muted-2: #6d7994;
    --violet: #4d5ed6;
    --violet-2: #7448ec;
    --cyan: #0d8a72;
    --pink: #d6357e;
    --green: #12855a;
    --red: #c62a45;
    --amber: #b45309;
    --gradient: linear-gradient(135deg, #4d5ed6 0%, #7448ec 48%, #0b8f7a 100%);
    --gradient-soft: linear-gradient(135deg, rgba(79, 99, 230, 0.14), rgba(13, 138, 114, 0.1));
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 28px 70px -46px rgba(24, 39, 75, 0.34), 0 10px 26px -22px rgba(24, 39, 75, 0.14);
    --shadow-glow: 0 18px 45px -22px rgba(77, 94, 214, 0.45);
    --header-h: 76px;
    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 8% -10%, rgba(79, 99, 230, 0.1), transparent 62%),
        radial-gradient(760px 520px at 96% 4%, rgba(13, 138, 114, 0.08), transparent 60%),
        radial-gradient(680px 520px at 60% 110%, rgba(214, 53, 126, 0.05), transparent 65%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    line-height: 1.18;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--violet); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(77, 94, 214, 0.18); color: var(--text-strong); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -0.01em; }
.text-muted { color: var(--muted) !important; }
.hidden, [hidden] { display: none !important; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 18px 40px -32px rgba(24, 39, 75, 0.28);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { border-radius: 11px; box-shadow: 0 8px 24px -14px rgba(77, 94, 214, 0.45); }
.brand__text {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.045em;
    background: linear-gradient(100deg, #0a1124 20%, #43537d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.primary-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 10px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text-strong); background: rgba(77, 94, 214, 0.12); }
.nav-link--button { background: none; border: 0; font-family: inherit; }
.dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: 10px; margin-inline-start: 6px; opacity: 0.7; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 15px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    flex: none;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--border-strong); background: var(--surface-3); transform: translateY(-1px); }
.lang-toggle { width: auto; padding-inline: 11px; gap: 7px; font-size: 13px; font-weight: 600; }
.lang-toggle__code { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }

.wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 16px;
    border-radius: 13px;
    border: 1px solid rgba(77, 94, 214, 0.35);
    background: linear-gradient(135deg, rgba(77, 94, 214, 0.12), rgba(13, 138, 114, 0.08));
    color: #1d2a4c;
    font-size: 13.5px;
    font-weight: 600;
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.wallet-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -18px rgba(77, 94, 214, 0.45); border-color: rgba(77, 94, 214, 0.6); }
.wallet-btn__signal { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: none; }
.wallet-btn.is-connected { border-color: rgba(13, 138, 114, 0.35); background: linear-gradient(135deg, rgba(13, 138, 114, 0.12), rgba(77, 94, 214, 0.08)); }
.wallet-btn.is-connected .wallet-btn__signal { background: var(--green); box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.6); animation: signalPulse 2.4s infinite; }
.wallet-btn__caret { font-size: 10px; opacity: 0.6; }
.menu-toggle { display: none; }

@keyframes signalPulse {
    0% { box-shadow: 0 0 0 0 rgba(18, 133, 90, 0.45); }
    70% { box-shadow: 0 0 0 7px rgba(18, 133, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 133, 90, 0); }
}

.dropdown-menu--glass {
    --bs-dropdown-bg: transparent;
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 30px 70px -32px rgba(24, 39, 75, 0.22);
    min-width: 210px;
}
.dropdown-menu--glass .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--muted);
    background: transparent;
}
.dropdown-menu--glass .dropdown-item i { font-size: 14px; opacity: 0.8; }
.dropdown-menu--glass .dropdown-item:hover,
.dropdown-menu--glass .dropdown-item:focus { background: var(--surface-2); color: var(--text-strong); }
.dropdown-menu--glass .dropdown-item.is-current { color: var(--cyan); }
.dropdown-menu--glass .dropdown-item small { margin-inline-start: auto; color: var(--muted-2); font-size: 11px; }
.dropdown-menu--glass .dropdown-divider { border-color: var(--border); margin: 6px 4px; }
.dropdown-menu--glass .dropdown-header { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); padding: 8px 12px 4px; }
.lang-menu .dropdown-item { justify-content: space-between; }
.chain-menu { min-width: 240px; }
.chain-menu__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chain-color, #627eea); flex: none; box-shadow: 0 0 12px var(--chain-color, #627eea); }

/* ---------------------------------------------------------------- buttons */
.btn { transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border: 0;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    isolation: isolate;
}
.btn-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #3f4fc4, #6435e0 48%, #0a7b69);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.btn-glow:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 55px -20px rgba(77, 94, 214, 0.55); }
.btn-glow:hover::before { opacity: 1; }
.btn-glow:active { transform: translateY(0); }
.btn-glow:disabled, .btn-glow.disabled { opacity: 0.55; transform: none; box-shadow: none; cursor: not-allowed; }
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
}
.btn-soft:hover { border-color: var(--border-strong); background: var(--surface-3); color: var(--text-strong); }
.btn-outline-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(198, 42, 69, 0.3);
    border-radius: 12px;
    background: rgba(198, 42, 69, 0.06);
    color: #b3223c;
    font-size: 13.5px;
    font-weight: 600;
}
.btn-outline-danger:hover { background: rgba(198, 42, 69, 0.12); color: #8f1930; }
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.link-btn:hover { color: var(--cyan); }
.chip-btn {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    transition: all 0.18s ease;
}
.chip-btn:hover { color: var(--cyan); border-color: rgba(13, 138, 114, 0.4); background: rgba(13, 138, 114, 0.08); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 66px 0 30px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center; }
.hero__copy { max-width: 590px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.hero__title { font-size: clamp(2.55rem, 4.6vw, 4.1rem); margin: 18px 0 20px; line-height: 1.04; letter-spacing: -0.035em; }
.hero__title .accent { display: block; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 16.5px; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 12.5px; color: var(--muted-2); }
.hero__trust i { color: var(--cyan); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; max-width: 660px; }
.stat { padding-inline-end: 14px; border-inline-end: 1px solid var(--border); }
.stat:last-child { border: 0; padding-inline-end: 0; }
.stat__value { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 21px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.02em; }
.stat__label { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- swap card */
.swap-card {
    position: relative;
    width: 100%;
    max-width: 476px;
    margin-inline-start: auto;
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 94%, transparent), color-mix(in srgb, var(--bg-elev) 96%, transparent));
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px);
}
.swap-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(77, 94, 214, 0.45), transparent 38%, transparent 62%, rgba(13, 138, 114, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
}
.swap-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.swap-card__heading { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(13, 138, 114, 0.12); animation: livePulse 2.6s infinite; }
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(13, 138, 114, 0.12); }
    50% { box-shadow: 0 0 0 6px rgba(13, 138, 114, 0.03); }
}
.swap-card__tools { display: flex; align-items: center; gap: 6px; }
.chain-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 10px;
}
.chain-chip:hover { border-color: var(--border-strong); color: var(--text-strong); }
.chain-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chain-color, #627eea); box-shadow: 0 0 10px var(--chain-color, #627eea); }

.swap-notice {
    display: flex;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 14px;
    border: 1px solid rgba(180, 83, 9, 0.24);
    background: rgba(245, 158, 11, 0.09);
    border-radius: 13px;
    color: #8a4b07;
    font-size: 12px;
    line-height: 1.5;
}
.swap-notice i { font-size: 15px; margin-top: 1px; }
.swap-notice strong { display: block; color: #743f05; font-size: 12.5px; }
.swap-notice span { color: rgba(116, 63, 5, 0.8); }

.swap-field {
    position: relative;
    padding: 13px 15px 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-2);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.swap-field:hover { border-color: var(--border-strong); }
.swap-field:focus-within { border-color: rgba(77, 94, 214, 0.55); background: rgba(77, 94, 214, 0.05); box-shadow: 0 0 0 3px rgba(77, 94, 214, 0.08); }
.swap-field__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.swap-field__head label { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.balance-btn { border: 0; background: none; padding: 0; font-size: 11.5px; color: var(--muted-2); }
.balance-btn:hover { color: var(--cyan); }
.balance-btn:disabled { opacity: 0.6; }
.swap-field__row { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.swap-amount {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-strong);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(26px, 3vw, 33px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    padding: 2px 0;
}
.swap-amount::placeholder { color: var(--muted-2); opacity: 0.45; }
.swap-amount:focus { outline: none; }
.swap-field__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.swap-usd { font-size: 11.5px; color: var(--muted-2); }
.swap-field__actions { display: flex; gap: 4px; }
.token-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease;
    flex: none;
    max-width: 190px;
}
.token-select:hover { border-color: rgba(77, 94, 214, 0.4); background: var(--surface-3); }
.token-select .bi-chevron-down { font-size: 10px; color: var(--muted); }
.token-select__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.token-select__meta strong { font-size: 13.5px; font-weight: 700; color: var(--text-strong); max-width: 108px; overflow: hidden; text-overflow: ellipsis; }
.token-select__meta small { font-size: 10px; color: var(--muted-2); max-width: 108px; overflow: hidden; text-overflow: ellipsis; }
.token-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #07101f;
    background: linear-gradient(135deg, #8aa3ff, #2ee6c5);
    flex: none;
    overflow: hidden;
    object-fit: cover;
}
.token-avatar--sm { width: 30px; height: 30px; font-size: 9.5px; }
.token-avatar img { width: 100%; height: 100%; object-fit: cover; }

.swap-flip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: -14px auto -12px;
    border-radius: 12px;
    border: 4px solid color-mix(in srgb, var(--bg-elev) 96%, transparent);
    background: var(--surface-solid);
    color: var(--muted);
    font-size: 14px;
    transition: transform 0.35s ease, color 0.2s ease, border-color 0.2s ease;
}
.swap-flip:hover { color: var(--cyan); border-color: rgba(13, 138, 114, 0.3); transform: rotate(180deg); }

.swap-quote-state { font-size: 11px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 6px; }
.swap-quote-state.is-loading::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(77, 94, 214, 0.25);
    border-top-color: var(--violet);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.swap-alert {
    margin-top: 12px;
    padding: 10px 13px;
    border-radius: 12px;
    border: 1px solid rgba(198, 42, 69, 0.26);
    background: rgba(198, 42, 69, 0.06);
    color: #b3223c;
    font-size: 12px;
    line-height: 1.5;
}
.swap-alert.is-warning { border-color: rgba(180, 83, 9, 0.26); background: rgba(245, 158, 11, 0.09); color: #8a4b07; }
.swap-alert.is-info { border-color: rgba(77, 94, 214, 0.24); background: rgba(77, 94, 214, 0.06); color: #3c4bb0; }

.swap-details {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px dashed var(--border);
    border-radius: 15px;
    background: rgba(20, 32, 60, 0.02);
    display: grid;
    gap: 8px;
}
.swap-details__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.swap-details__row span { color: var(--muted-2); }
.swap-details__row strong { font-weight: 600; color: var(--text); text-align: end; }
.swap-details__row--fee strong { color: var(--cyan); }
.swap-details__refresh { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted-2); }
.impact-positive { color: var(--green) !important; }
.impact-negative { color: var(--red) !important; }
.impact-warn { color: var(--amber) !important; }
.impact-neutral { color: var(--text) !important; }

.swap-submit { width: 100%; margin-top: 14px; padding: 16px; font-size: 15.5px; border-radius: 15px; }
.swap-submit[data-state="wrong"] { background: linear-gradient(135deg, #c2740b, #a24a08); }
.swap-submit[data-state="connect"] { background: linear-gradient(135deg, #4d5ed6, #7448ec 60%, #0b8f7a); }
.swap-submit[data-state="loading"] { pointer-events: none; }
.swap-submit__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}
.swap-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 10.5px; color: var(--muted-2); }
.fee-inline { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: inherit; }
.fee-inline i { color: var(--cyan); }
.fee-inline--copy .mono { color: var(--muted-2); }
.fee-inline--copy:hover .mono { color: var(--cyan); }

/* ---------------------------------------------------------------- sections */
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); margin: 12px 0 12px; }
.section-head p { color: var(--muted); font-size: 15px; }
.section-head--start { margin-inline: 0; text-align: start; }

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.panel__head h2, .panel__head h3 { font-size: 16px; margin: 0; }
.panel__body { padding: 22px; }

/* market table */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.data-table thead th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted-2);
    font-weight: 600;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    text-align: start;
}
.data-table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.16s ease; }
.data-table tbody tr:hover { background: rgba(77, 94, 214, 0.045); }
.data-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-link { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.table-link:hover strong { color: var(--violet); }
.table-token__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.table-token__meta strong { font-size: 13.5px; font-weight: 600; }
.table-token__meta small { font-size: 11px; color: var(--muted-2); }
.table-pair { display: flex; align-items: center; gap: 8px; }
.table-pair .token-avatar { width: 26px; height: 26px; font-size: 8px; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.table-actions .btn-soft { padding: 6px 12px; font-size: 11.5px; border-radius: 9px; }
.pool-pair { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: inherit; }
.pool-pair:hover strong { color: var(--violet); }
.pool-pair__icons { display: inline-flex; flex: none; }
.pool-pair__icons .token-avatar + .token-avatar { margin-inline-start: -9px; box-shadow: 0 0 0 2px var(--surface-solid); }
.pool-info-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.pool-info-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pool-info-list span { color: var(--muted-2); }
.pool-info-list strong { font-weight: 600; }

.change-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.change-pill.is-up { color: var(--green); background: rgba(55, 214, 122, 0.1); }
.change-pill.is-down { color: var(--red); background: rgba(255, 93, 108, 0.1); }
.change-pill.is-flat { color: var(--muted); background: var(--surface-2); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
    position: relative;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, var(--surface), color-mix(in srgb, var(--bg-elev) 60%, transparent));
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    top: -60px;
    right: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 94, 214, 0.16), transparent 68%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(77, 94, 214, 0.3); box-shadow: 0 30px 60px -40px rgba(77, 94, 214, 0.5); }
.feature-card:hover::after { opacity: 1; }
.feature-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--gradient-soft);
    border: 1px solid rgba(77, 94, 214, 0.2);
    color: var(--cyan);
    font-size: 19px;
    margin-bottom: 16px;
}
.feature-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.62; }

/* steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step-card {
    position: relative;
    padding: 26px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}
.step-card::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(77, 94, 214, 0.14);
    position: absolute;
    top: 12px;
    right: 20px;
    line-height: 1;
}
.step-card h3 { font-size: 16px; margin: 0 0 8px; }
.step-card p { font-size: 13px; color: var(--muted); }
.step-card .link-btn { margin-top: 14px; color: var(--cyan); }

/* fee band */
.fee-band {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: center;
    padding: 34px 38px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(77, 94, 214, 0.22);
    background:
        radial-gradient(520px 240px at 10% 0%, rgba(77, 94, 214, 0.2), transparent 70%),
        radial-gradient(420px 260px at 100% 100%, rgba(13, 138, 114, 0.13), transparent 70%),
        color-mix(in srgb, var(--surface-solid) 92%, transparent);
    overflow: hidden;
}
.fee-band h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 10px 0 12px; }
.fee-band p { color: var(--muted); font-size: 14px; max-width: 560px; }
.fee-band__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fee-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    color: var(--muted);
}
.fee-pill strong { color: var(--cyan); font-size: 16px; font-family: "Plus Jakarta Sans", sans-serif; }
.fee-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11.5px;
    max-width: 100%;
}
.fee-chip:hover { border-color: rgba(13, 138, 114, 0.35); color: var(--text); }
.fee-chip .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fee-chip--sm { padding: 6px 10px; font-size: 11px; }
.fee-band__note { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-2); }

/* learn cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform 0.28s ease, border-color 0.25s ease, box-shadow 0.3s ease;
    height: 100%;
}
.article-card:hover { transform: translateY(-4px); border-color: rgba(77, 94, 214, 0.32); box-shadow: 0 30px 60px -44px rgba(77, 94, 214, 0.55); }
.article-card__tag { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(13, 138, 114, 0.25); background: rgba(13, 138, 114, 0.07); padding: 3px 8px; border-radius: 6px; }
.article-card h3 { font-size: 16.5px; margin: 2px 0 4px; line-height: 1.35; }
.article-card p { font-size: 13px; color: var(--muted); flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted-2); }
.article-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--violet); }
.article-card:hover .article-card__more { gap: 10px; }

/* cta band */
.cta-band {
    position: relative;
    text-align: center;
    padding: 58px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(77, 94, 214, 0.16);
    background:
        radial-gradient(600px 300px at 50% -20%, rgba(116, 72, 236, 0.14), transparent 70%),
        radial-gradient(520px 280px at 80% 120%, rgba(13, 138, 114, 0.12), transparent 70%),
        linear-gradient(140deg, #f2f4ff, #f8f6ff 60%, #effaf7);
    overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 12px 0 12px; color: var(--text-strong); }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* ---------------------------------------------------------------- page heads */
.page-head { padding: 54px 0 34px; }
.page-head__inner { max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin: 14px 0 12px; }
.page-head p { color: var(--muted); font-size: 15.5px; max-width: 680px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--muted-2); }
.crumbs a:hover { color: var(--cyan); }
.crumbs .bi { font-size: 9px; opacity: 0.6; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    margin-bottom: 22px;
}
.search-field { position: relative; flex: 1; min-width: 220px; }
.search-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 14px; pointer-events: none; }
[dir="rtl"] .search-field i { left: auto; right: 14px; }
.search-field .form-control { padding-inline-start: 40px; }
.form-control, .form-select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 13.5px;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control::placeholder { color: var(--muted-2); opacity: 0.7; }
.form-control:focus, .form-select:focus {
    background: var(--surface-2);
    border-color: rgba(77, 94, 214, 0.55);
    box-shadow: 0 0 0 3px rgba(77, 94, 214, 0.1);
    color: var(--text-strong);
}
.form-select { background-image: var(--bs-form-select-bg-img); }
.form-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.form-hint { font-size: 11.5px; color: var(--muted-2); margin: 8px 0 0; line-height: 1.5; }
.form-error { font-size: 12px; color: #b3223c; margin: 8px 0 0; }
.input-group .form-control { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group .btn { border-start-start-radius: 0; border-end-start-radius: 0; }

.chain-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chain-tabs::-webkit-scrollbar { display: none; }
.chain-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: all 0.18s ease;
}
.chain-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chain-color, #627eea); }
.chain-tab:hover { color: var(--text); background: var(--surface-2); }
.chain-tab.is-active { color: var(--text-strong); border-color: var(--border-strong); background: var(--surface-2); }
.chain-tab.is-active .dot { box-shadow: 0 0 9px var(--chain-color, #627eea); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 11px;
    color: var(--muted);
}
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 600; }
.status-pill--on { color: var(--green); background: rgba(55, 214, 122, 0.1); }

/* token grid */
.token-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.token-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    min-width: 0;
}
.token-card:hover { transform: translateY(-3px); border-color: rgba(77, 94, 214, 0.32); background: var(--surface-3); }
.token-card__meta { min-width: 0; flex: 1; }
.token-card__meta strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--text-strong); }
.token-card__meta small { display: block; font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-card__price { text-align: end; flex: none; }
.token-card__price strong { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.token-card__price small { font-size: 11px; color: var(--muted-2); }
.token-card .token-avatar { width: 40px; height: 40px; font-size: 11px; }

.empty-state { text-align: center; padding: 54px 24px; color: var(--muted); }
.empty-state i { font-size: 34px; color: var(--muted-2); display: block; margin-bottom: 14px; opacity: 0.7; }
.empty-state h3 { font-size: 16px; margin-bottom: 8px; }
.empty-state p { font-size: 13px; max-width: 420px; margin: 0 auto; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------------------------------------------------------------- token page */
.token-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: start; }
.token-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.token-id .token-avatar { width: 58px; height: 58px; font-size: 15px; border-radius: 18px; }
.token-id h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.token-id__sub { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.token-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.token-price { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; }
.token-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.token-stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.token-stat span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); margin-bottom: 4px; }
.token-stat strong { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.token-side { display: flex; flex-direction: column; gap: 12px; }
.token-swap-panel { padding: 20px; }
.token-swap-panel h3 { font-size: 15px; margin-bottom: 12px; }
.contract-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); font-size: 11.5px; color: var(--muted); }
.contract-box .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chart-card { padding: 20px 20px 14px; margin-top: 30px; }
.chart-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-card__head h2 { font-size: 15px; margin: 0; }
.chart-wrap { position: relative; height: 320px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 13px; }

/* ---------------------------------------------------------------- portfolio */
.portfolio-hero { padding-top: 44px; }
.portfolio-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 44px;
    align-items: center;
}
.portfolio-hero__copy { max-width: 560px; }
.portfolio-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.portfolio-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.portfolio-hero__badge i { color: var(--cyan); font-size: 12px; }
.portfolio-console {
    position: relative;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(77, 94, 214, 0.18);
    background:
        radial-gradient(420px 240px at 100% 0%, rgba(13, 138, 114, 0.08), transparent 65%),
        radial-gradient(380px 240px at 0% 100%, rgba(77, 94, 214, 0.1), transparent 70%),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}
.portfolio-console::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(77, 94, 214, 0.38), rgba(255, 255, 255, 0) 45%, rgba(13, 138, 114, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
}
.portfolio-console__head { display: flex; align-items: center; gap: 13px; }
.portfolio-console__icon {
    width: 46px;
    height: 46px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--gradient);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 16px 32px -18px rgba(77, 94, 214, 0.7);
}
.portfolio-console__titles { flex: 1; min-width: 0; }
.portfolio-console__titles strong { display: block; font-size: 15px; }
.portfolio-console__titles small { display: block; font-size: 11.5px; line-height: 1.45; color: var(--muted-2); }
.portfolio-console__chain {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
}
.portfolio-console__chain .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chain-color, #627eea); }
.portfolio-console .portfolio-form { margin-top: 20px; }
.portfolio-console .portfolio-form .search-field { flex: 1 1 100%; min-width: 0; }
.portfolio-console .portfolio-form .search-field .form-control { height: 52px; font-size: 14px; }
.portfolio-console .portfolio-form .btn { flex: 1 1 0; justify-content: center; height: 48px; }
.portfolio-console__networks { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.portfolio-console__label {
    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-2);
}
.portfolio-console__privacy { display: flex; align-items: flex-start; gap: 7px; margin: 16px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted-2); }
.portfolio-console__privacy i { margin-top: 1px; color: var(--cyan); font-size: 12px; }
.portfolio-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.portfolio-form .search-field { min-width: 260px; }
.portfolio-form .btn-soft { padding: 10px 16px; }
.portfolio-summary {
    position: relative;
    padding: 22px 26px 26px;
    margin-bottom: 18px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(77, 94, 214, 0.2);
    background:
        radial-gradient(620px 260px at 0% 0%, rgba(77, 94, 214, 0.13), transparent 70%),
        radial-gradient(460px 240px at 100% 120%, rgba(13, 138, 114, 0.09), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow-card);
}
.portfolio-summary__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.portfolio-summary__wallet { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portfolio-summary__avatar {
    width: 44px;
    height: 44px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(77, 94, 214, 0.16);
    background: var(--gradient-soft);
    color: var(--violet);
    font-size: 18px;
}
.portfolio-summary__who { min-width: 0; }
.portfolio-summary__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-2);
}
.portfolio-summary__who strong { display: block; font-size: 14px; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; }
.portfolio-summary__network { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-2); }
.portfolio-summary__network .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--chain-color, #627eea); }
.portfolio-summary__metrics {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    padding-top: 20px;
}
.portfolio-summary__total span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.portfolio-summary__total strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }
.portfolio-summary__total small { display: block; margin-top: 4px; font-size: 11.5px; }
.portfolio-summary__stat { display: flex; align-items: center; gap: 11px; border-inline-start: 1px solid var(--border); padding-inline-start: 18px; }
.portfolio-summary__stat-icon {
    width: 36px;
    height: 36px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--violet);
    font-size: 14px;
}
.portfolio-summary__stat div > span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.portfolio-summary__stat strong { display: block; margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
.portfolio-summary__refresh { flex: none; }
.portfolio-toolbar { margin-bottom: 16px; }
.portfolio-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    scrollbar-width: none;
}
.portfolio-tabs::-webkit-scrollbar { display: none; }
.portfolio-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}
.portfolio-tab i { font-size: 12px; }
.portfolio-tab:hover { color: var(--text-strong); background: var(--surface-2); }
.portfolio-tab.is-active { color: #fff; background: var(--gradient); box-shadow: 0 12px 26px -16px rgba(77, 94, 214, 0.85); }
.portfolio-tab.is-active:hover { color: #fff; background: var(--gradient); }
.portfolio-tab__count {
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.portfolio-tab.is-active .portfolio-tab__count { background: rgba(255, 255, 255, 0.24); color: #fff; }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.portfolio-actions .btn { padding: 8px 14px; font-size: 12.5px; }
.portfolio-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portfolio-overview__wide { grid-column: 1 / -1; }
.portfolio-filter { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.search-field--sm { min-width: 0; }
.search-field--sm .form-control { height: 42px; font-size: 13px; }
.portfolio-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn.is-active { color: var(--cyan); border-color: rgba(13, 138, 114, 0.4); background: rgba(13, 138, 114, 0.08); }
.portfolio-empty {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 34px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(520px 280px at 0% 0%, rgba(77, 94, 214, 0.1), transparent 68%),
        radial-gradient(420px 260px at 100% 100%, rgba(13, 138, 114, 0.08), transparent 70%),
        var(--surface);
}
.portfolio-empty__copy h3 { margin: 14px 0 8px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.portfolio-empty__copy p { max-width: 420px; color: var(--muted); font-size: 14px; }
.portfolio-empty__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--gradient);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 18px 38px -20px rgba(77, 94, 214, 0.65);
}
.portfolio-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.portfolio-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.portfolio-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-solid);
    box-shadow: 0 14px 30px -28px rgba(24, 39, 75, 0.4);
}
.portfolio-features__icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--cyan);
    font-size: 15px;
}
.portfolio-features strong { display: block; font-size: 13px; }
.portfolio-features small { display: block; font-size: 11.5px; color: var(--muted-2); }

/* ---------------------------------------------------------------- wallet dashboard */
.wallet-hero { padding-top: 40px; }
.wallet-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: center;
}
.wallet-hero__copy h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}
.wallet-hero__copy p { max-width: 520px; color: var(--muted); font-size: 15.5px; }
.wallet-hero__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.wallet-hero__links .btn { padding: 9px 14px; font-size: 12.5px; }
.wallet-dash {
    position: relative;
    padding: 26px;
    border-radius: 30px;
    border: 1px solid rgba(77, 94, 214, 0.2);
    background:
        radial-gradient(440px 260px at 100% 0%, rgba(13, 138, 114, 0.09), transparent 66%),
        radial-gradient(420px 280px at 0% 100%, rgba(77, 94, 214, 0.12), transparent 72%),
        rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    overflow: hidden;
}
.wallet-dash::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(77, 94, 214, 0.4), rgba(255, 255, 255, 0) 48%, rgba(13, 138, 114, 0.32));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.65;
}
.wallet-dash__top { display: flex; align-items: center; gap: 13px; }
.wallet-dash__avatar {
    width: 50px;
    height: 50px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(77, 94, 214, 0.16);
    background: var(--gradient-soft);
    color: var(--violet);
    font-size: 17px;
    font-weight: 700;
}
.wallet-dash__identity { flex: 1; min-width: 0; }
.wallet-dash__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-2);
}
.wallet-dash__eyebrow.is-live { color: var(--cyan); }
.wallet-dash__eyebrow.is-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 3px rgba(13, 138, 114, 0.16);
}
.wallet-dash__identity strong {
    display: block;
    margin: 2px 0 1px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
    font-size: 14.5px;
    letter-spacing: -0.02em;
}
.wallet-dash__network { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-2); }
.wallet-dash__network .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--chain-color, #627eea); }
.wallet-dash__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.wallet-dash__tools .btn { padding: 9px 13px; font-size: 12px; }
.wallet-dash__balance {
    position: relative;
    margin-top: 22px;
    padding: 18px 56px 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(77, 94, 214, 0.18);
    background: linear-gradient(135deg, rgba(77, 94, 214, 0.12), rgba(13, 138, 114, 0.09));
}
.wallet-dash__balance-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-2);
}
.wallet-dash__balance strong {
    display: block;
    margin-top: 4px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
}
.wallet-dash__balance small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted-2); }
.wallet-dash__refresh { position: absolute; top: 16px; inset-inline-end: 16px; }
.wallet-dash__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.wallet-dash__stats > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wallet-dash__stat-icon {
    width: 34px;
    height: 34px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--violet);
    font-size: 13px;
}
.wallet-dash__stats small {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
}
.wallet-dash__stats strong { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.wallet-lookup { margin-top: 20px; }
.wallet-lookup .search-field { flex: 1 1 100%; min-width: 0; }
.wallet-lookup .search-field .form-control { height: 50px; font-size: 14px; }
.wallet-lookup .btn { flex: 1 1 0; justify-content: center; height: 46px; }
.wallet-dash__networks { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border); }
.wallet-dash__networks .chain-tabs { margin-top: 2px; }
.wallet-session {
    margin-top: 18px;
    padding: 24px;
    border-radius: var(--radius-xl);
}
.wallet-session__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.wallet-session__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
}
.wallet-session__head h2 { margin: 8px 0 6px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.wallet-session__head p { margin: 0; max-width: 640px; color: var(--muted-2); font-size: 12.5px; line-height: 1.55; }
.wallet-session__head .btn { flex: none; }
.wallet-session__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 16px;
    padding-top: 18px;
}
.wallet-session__card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
}
.wallet-session__label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}
.wallet-session__label i { color: var(--violet); font-size: 12px; }
.wallet-book-form { display: flex; gap: 8px; }
.wallet-book-form .form-control { height: 38px; min-width: 0; font-size: 12.5px; }
.wallet-book-form .btn { flex: none; padding: 8px 12px; font-size: 11.5px; }
.wallet-book { display: flex; flex-direction: column; margin-top: 10px; max-height: 236px; overflow-y: auto; }
.wallet-book__row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.wallet-book__row:first-child { border-top: 0; }
.wallet-book__main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; }
.wallet-book__avatar {
    width: 34px;
    height: 34px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.wallet-book__avatar--sm { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }
.wallet-book__meta { flex: 1; min-width: 0; }
.wallet-book__meta strong { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-book__meta small { display: block; font-size: 10.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-session__empty { margin: 10px 0 0; font-size: 11.5px; color: var(--muted-2); }
.wallet-recent { display: flex; flex-direction: column; max-height: 236px; overflow-y: auto; }
.wallet-recent__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); color: inherit; }
.wallet-recent__row:first-child { border-top: 0; }
.wallet-recent__row > .bi { margin-inline-start: auto; color: var(--muted-2); font-size: 11px; }
.wallet-session__security {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 0 12px;
    background:
        radial-gradient(240px 160px at 100% 0%, rgba(13, 138, 114, 0.09), transparent 70%),
        color-mix(in srgb, var(--surface-solid) 92%, transparent);
}
.wallet-session__shield {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--gradient);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 14px 28px -18px rgba(77, 94, 214, 0.75);
}
.wallet-session__security h3 { margin: 2px 0 4px; font-size: 13.5px; }
.wallet-session__security p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }
.wallet-session__chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wallet-session__chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}
.wallet-session__chips i { color: var(--cyan); font-size: 10.5px; }
.panel__note { margin: 0; padding: 14px 22px 0; font-size: 12.5px; color: var(--muted-2); }
.asset-list { display: flex; flex-direction: column; }
.asset-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.asset-row:last-child { border-bottom: 0; }
.asset-row__main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: inherit; }
.asset-row__main:hover .asset-row__meta strong { color: var(--violet); }
.asset-row__meta { flex: 1; min-width: 0; }
.asset-row__meta strong { display: block; font-size: 14px; transition: color 0.18s ease; }
.asset-row__meta small { font-size: 11px; color: var(--muted-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-row__amount { text-align: end; font-variant-numeric: tabular-nums; }
.asset-row__amount strong { display: block; font-size: 13.5px; }
.asset-row__amount small { font-size: 11px; color: var(--muted-2); }
.asset-row__actions { display: flex; align-items: center; gap: 4px; }
.asset-row__actions .icon-btn { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.pair-avatars { display: inline-flex; flex: none; }
.pair-avatars .token-avatar + .token-avatar { margin-inline-start: -10px; box-shadow: 0 0 0 2px var(--surface-solid); }
.nft-list { display: flex; flex-direction: column; }
.nft-row { display: flex; align-items: center; gap: 13px; padding: 15px 20px; border-bottom: 1px solid var(--border); color: inherit; }
.nft-row:last-child { border-bottom: 0; }
.nft-row:hover .nft-row__meta strong { color: var(--violet); }
.nft-row__meta { flex: 1; min-width: 0; }
.nft-row__meta strong { display: block; font-size: 13.5px; transition: color 0.18s ease; }
.nft-row__meta small { font-size: 11px; color: var(--muted-2); }
.nft-row__value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 20px 22px; }
.nft-card { display: flex; flex-direction: column; gap: 9px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.nft-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nft-card h3 { margin: 2px 0 0; font-size: 15px; }
.nft-card h3 .text-muted { font-size: 11px; font-weight: 500; }
.nft-card__meta { margin: 0; font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.nft-card__amounts { margin: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nft-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.nft-card__foot strong { font-size: 14px; }
.nft-card__links { display: inline-flex; align-items: center; gap: 4px; }
.nft-card__links .icon-btn { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
.nft-empty { padding: 20px; font-size: 12.5px; color: var(--muted-2); }
.chip--success { color: #0d6b59; border-color: rgba(13, 138, 114, 0.35); background: rgba(13, 138, 114, 0.1); }
.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; align-items: center; gap: 13px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; flex: none; font-size: 14px; }
.activity-icon.is-swap { color: #3d4fc4; background: rgba(77, 94, 214, 0.12); }
.activity-icon.is-liquidity { color: #0d7a65; background: rgba(13, 138, 114, 0.12); }
.activity-main { flex: 1; min-width: 0; }
.activity-main strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-main small { display: block; font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-meta { text-align: end; flex: none; font-variant-numeric: tabular-nums; }
.activity-meta strong { display: block; font-size: 12.5px; }
.activity-meta small { font-size: 10.5px; color: var(--muted-2); }
.activity-row .icon-btn { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.swap-mini { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.swap-mini:last-child { border-bottom: 0; }
.swap-mini__route { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.swap-mini__route i { color: var(--muted-2); font-size: 11px; }
.swap-mini__meta { margin-inline-start: auto; text-align: end; font-size: 11px; color: var(--muted-2); }

/* ---------------------------------------------------------------- learn */
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.prose { font-size: 14.5px; color: color-mix(in srgb, var(--text) 88%, transparent); line-height: 1.8; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin: 34px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose ul { padding-inline-start: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text-strong); }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted-2); margin-bottom: 26px; }
.toc-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px; }
.toc-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 12px; }
.toc-card a { display: block; font-size: 12.5px; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--border); }
.toc-card a:last-child { border-bottom: 0; }
.toc-card a:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- pages */
.page-panel { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); }
.page-panel + .page-panel { margin-top: 20px; }
.legal-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-2); margin-bottom: 8px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(77, 94, 214, 0.35); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: 11px; margin-inline-start: auto; color: var(--muted); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__body { padding: 0 20px 20px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-info__item { display: flex; gap: 13px; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.contact-info__item i { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-soft); color: var(--cyan); font-size: 16px; flex: none; }
.contact-info__item strong { display: block; font-size: 13.5px; }
.contact-info__item small { font-size: 12px; color: var(--muted); }
.alert-flash { padding: 13px 16px; border-radius: 13px; font-size: 13px; margin-bottom: 16px; border: 1px solid; }
.alert-flash--ok { color: #0d6b48; background: rgba(18, 133, 90, 0.07); border-color: rgba(18, 133, 90, 0.24); }
.alert-flash--err { color: #b3223c; background: rgba(198, 42, 69, 0.06); border-color: rgba(198, 42, 69, 0.24); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 70px; padding: 56px 0 24px; background: color-mix(in srgb, var(--bg-soft) 70%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 14px 0 16px; font-size: 12.5px; color: var(--muted); max-width: 280px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-social a:hover { color: var(--cyan); border-color: rgba(13, 138, 114, 0.35); }
.footer-col h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin: 4px 0 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; }
.footer-col a:hover { color: var(--text-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted-2); }
.footer-bottom p { margin: 0; }
.footer-disclaimer { max-width: 560px; text-align: center; }
.footer-built i { color: var(--cyan); }

/* ---------------------------------------------------------------- mobile nav */
.mobile-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1030;
    display: none;
    grid-template-columns: repeat(6, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid var(--border);
}
.mobile-nav__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; font-size: 9.5px; font-weight: 600; color: var(--muted-2); }
.mobile-nav__item i { font-size: 18px; }
.mobile-nav__item.is-active { color: var(--text-strong); }
.mobile-nav__item.is-active i { color: var(--cyan); }
.mobile-nav__item.is-active { background: rgba(77, 94, 214, 0.09); }

/* ---------------------------------------------------------------- drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 1070; background: rgba(15, 23, 42, 0.38); backdrop-filter: blur(4px); animation: fadeIn 0.2s ease; }
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    width: min(360px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    background: var(--bg-elev);
    border-left: 1px solid var(--border);
    transform: translateX(105%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
}
[dir="rtl"] .mobile-drawer { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border); transform: translateX(-105%); }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-wallet { display: flex; align-items: center; gap: 12px; text-align: start; width: 100%; padding: 13px; border-radius: 14px; border: 1px solid rgba(77, 94, 214, 0.32); background: linear-gradient(135deg, rgba(77, 94, 214, 0.14), rgba(13, 138, 114, 0.08)); color: var(--text); }
.drawer-wallet__icon { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-size: 16px; }
.drawer-wallet strong { display: block; font-size: 13.5px; }
.drawer-wallet small { display: block; font-size: 11px; color: var(--muted); }
.mobile-drawer__section { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer__label { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); margin: 6px 8px 8px; }
.mobile-drawer__section a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 11px; font-size: 13.5px; color: var(--muted); }
.mobile-drawer__section a:hover, .mobile-drawer__section a.is-current { color: var(--text-strong); background: var(--surface-2); }
.mobile-drawer__section a i { font-size: 16px; width: 20px; color: var(--muted-2); }
.drawer-languages { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px; }
.drawer-lang { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.drawer-lang.is-current { color: var(--cyan); border-color: rgba(13, 138, 114, 0.35); background: rgba(13, 138, 114, 0.07); }
.mobile-drawer__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.mobile-drawer__foot p { margin-top: 12px; font-size: 10.5px; color: var(--muted-2); text-align: center; }
body.drawer-open { overflow: hidden; }

/* ---------------------------------------------------------------- modals */
.modal-backdrop.show { opacity: 0.62; backdrop-filter: blur(4px); }
.app-modal .modal-content {
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    box-shadow: 0 50px 120px -44px rgba(24, 39, 75, 0.3);
    overflow: hidden;
}
.app-modal .modal-header { align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.app-modal .modal-header .eyebrow { font-size: 9.5px; letter-spacing: 0.14em; }
.app-modal .modal-title { margin-top: 6px; font-size: 18px; }
.app-modal .modal-body { padding: 18px 22px 22px; }
.app-modal .modal-header .icon-btn { margin-inline-start: auto; }
.modal-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface-2); font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.modal-note i { color: var(--cyan); font-size: 14px; margin-top: 1px; }
.modal-note--muted i { color: var(--muted-2); }
.modal-divider { border-color: var(--border); margin: 20px 0; opacity: 1; }

.wallet-option { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-align: start; margin-bottom: 10px; transition: border-color 0.2s ease, background 0.2s ease; }
.wallet-option:hover { border-color: rgba(77, 94, 214, 0.4); background: rgba(77, 94, 214, 0.06); color: var(--text-strong); }
.wallet-option__logo { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-size: 17px; flex: none; }
.wallet-option__logo--alt { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }
.wallet-option__text { min-width: 0; }
.wallet-option__text strong { display: block; font-size: 13.5px; }
.wallet-option__text small { display: block; font-size: 11px; color: var(--muted-2); line-height: 1.4; }
.wallet-connected { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface-2); }
.wallet-avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-size: 18px; flex: none; }
.wallet-connected__meta { min-width: 0; }
.wallet-connected__meta strong { display: block; font-size: 14px; }
.wallet-connected__meta small { font-size: 11px; color: var(--muted-2); }
.wallet-connected .status-pill { margin-inline-start: auto; }
.wallet-address-box { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 13px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--surface-2); font-size: 12px; }
.wallet-address-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-connected-actions { display: flex; gap: 8px; margin-top: 14px; }
.wallet-connected-actions .btn { flex: 1; padding: 10px; font-size: 12.5px; }

.search-field + .token-list { margin-top: 14px; }
.token-list { max-height: 44vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-inline-end: 2px; }
.token-list__empty { padding: 30px 12px; text-align: center; font-size: 12.5px; color: var(--muted-2); }
.token-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 13px; background: transparent; color: var(--text); text-align: start; transition: background 0.16s ease; }
.token-row:hover { background: var(--surface-2); }
.token-row.is-selected { background: rgba(77, 94, 214, 0.1); }
.token-row__meta { min-width: 0; flex: 1; }
.token-row__meta strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.token-row__meta small { display: block; font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-row__price { text-align: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.token-row__price small { display: block; font-size: 10px; color: var(--muted-2); }
.token-badge { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(13, 138, 114, 0.3); padding: 1px 5px; border-radius: 5px; }
.token-import { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.token-import__head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.token-import__head span { font-size: 12.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.token-import__head small { font-size: 11px; color: var(--muted-2); }

.slippage-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.slippage-chip { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.slippage-chip:hover { color: var(--text); border-color: var(--border-strong); }
.slippage-chip.is-active { color: var(--cyan); border-color: rgba(13, 138, 114, 0.45); background: rgba(13, 138, 114, 0.08); }
.slippage-custom { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.slippage-custom input { width: 64px; border: 0; background: transparent; color: var(--text); font-size: 12.5px; padding: 5px 6px; text-align: end; box-shadow: none !important; }
.slippage-custom input:focus { outline: none; }
.slippage-custom span { font-size: 11.5px; color: var(--muted-2); }
.fee-detail__label { display: block; font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.fee-detail__value { font-family: "Plus Jakarta Sans", sans-serif; font-size: 20px; color: var(--cyan); }

.tx-modal { text-align: center; padding: 30px 26px 26px; }
.tx-orb { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--gradient-soft); border: 1px solid rgba(77, 94, 214, 0.3); color: var(--violet); font-size: 26px; }
.tx-orb.is-success { color: var(--green); border-color: rgba(55, 214, 122, 0.4); background: rgba(55, 214, 122, 0.1); }
.tx-orb.is-error { color: var(--red); border-color: rgba(255, 93, 108, 0.4); background: rgba(255, 93, 108, 0.1); }
.tx-modal h2 { font-size: 19px; margin-bottom: 6px; }
.tx-modal > p { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.tx-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tx-step { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--border); font-size: 10.5px; color: var(--muted-2); }
.tx-step.is-done { color: var(--green); border-color: rgba(55, 214, 122, 0.25); background: rgba(55, 214, 122, 0.07); }
.tx-step.is-active { color: var(--violet); border-color: rgba(77, 94, 214, 0.3); background: rgba(77, 94, 214, 0.08); }
.tx-hash { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--surface-2); font-size: 11.5px; margin-bottom: 18px; }
.tx-hash span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.tx-actions { display: flex; gap: 8px; }
.tx-actions .btn { flex: 1; padding: 12px; font-size: 13px; }

/* ---------------------------------------------------------------- toasts */
.toast-stack { position: fixed; right: 18px; bottom: 90px; z-index: 1090; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
[dir="rtl"] .toast-stack { right: auto; left: 18px; }
.toast-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface-solid) 96%, transparent); box-shadow: 0 24px 50px -24px rgba(24, 39, 75, 0.24); font-size: 12.5px; color: var(--text); animation: toastIn 0.25s cubic-bezier(0.2, 0.7, 0.3, 1); backdrop-filter: blur(12px); }
.toast-item i { font-size: 15px; color: var(--cyan); margin-top: 1px; }
.toast-item.is-error i { color: var(--red); }
.toast-item.is-warning i { color: var(--amber); }
.toast-item.is-hide { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- misc */
[data-reveal], .reveal { transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1); will-change: opacity, transform; }
.reveal { opacity: 0; transform: translateY(18px); }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-visible, .reveal.is-visible, .js-reveal [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }
.feature-grid > [data-reveal]:nth-child(2), .card-grid > [data-reveal]:nth-child(2), .learn-grid > [data-reveal]:nth-child(2) { transition-delay: 70ms; }
.feature-grid > [data-reveal]:nth-child(3), .card-grid > [data-reveal]:nth-child(3), .learn-grid > [data-reveal]:nth-child(3) { transition-delay: 140ms; }
.feature-grid > [data-reveal]:nth-child(4), .card-grid > [data-reveal]:nth-child(4), .learn-grid > [data-reveal]:nth-child(4) { transition-delay: 210ms; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .hero__title .accent { background-size: 200% 100%; animation: accentShift 10s ease-in-out infinite; }
}
@keyframes accentShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.marquee-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; font-size: 11px; color: var(--muted-2); }
.marquee-trust span { display: inline-flex; align-items: center; gap: 6px; }
.marquee-trust i { color: var(--cyan); }

.chart-periods { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.chart-periods button { border: 0; background: transparent; color: var(--muted-2); font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.chart-periods button.is-active { color: var(--text-strong); background: var(--surface-3); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
    .hero__grid { gap: 36px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .wallet-hero__grid { gap: 34px; }
    .wallet-session__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wallet-session__security { grid-column: 1 / -1; }
}

@media (max-width: 1099.98px) {
    .site-header__inner { gap: 12px; }
    .primary-nav { margin-inline-start: 4px; }
    .primary-nav .nav-link { padding: 9px 8px; font-size: 12.5px; }
    .header-actions { gap: 6px; }
}

@media (max-width: 991.98px) {
    :root { --header-h: 68px; }
    .primary-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .hero { padding-top: 40px; }
    .hero__grid { grid-template-columns: 1fr; gap: 34px; }
    .hero__copy { max-width: 640px; }
    .hero__title { font-size: clamp(2.3rem, 7vw, 3.3rem); }
    .swap-card { max-width: 520px; margin-inline: auto; }
    .mobile-nav { display: grid; }
    body { padding-bottom: 72px; }
    .site-footer { margin-top: 52px; padding-bottom: 88px; }
    .toast-stack { bottom: 86px; }
    .token-grid { grid-template-columns: repeat(2, 1fr); }
    .token-hero { grid-template-columns: minmax(0, 1fr); }
    .token-side { max-width: 520px; }
    .article-layout { grid-template-columns: 1fr; }
    .toc-card { position: static; order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .portfolio-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .portfolio-hero__copy { max-width: 640px; }
    .portfolio-console { max-width: 560px; }
    .portfolio-summary__metrics { grid-template-columns: 1fr 1fr; }
    .portfolio-summary__total { grid-column: 1 / -1; }
    .portfolio-summary__stat { border-inline-start: 0; padding-inline-start: 0; }
    .wallet-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .wallet-hero__copy { max-width: 640px; }
    .wallet-dash { max-width: 620px; }
    .wallet-session__grid { grid-template-columns: minmax(0, 1fr); }
    .wallet-session__security { grid-column: auto; }
    .portfolio-empty { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .portfolio-overview { grid-template-columns: 1fr; }
    .portfolio-overview__wide { grid-column: auto; }
    .portfolio-tab { padding: 9px 13px; }
    .steps-grid { grid-template-columns: 1fr; }
    .fee-band { grid-template-columns: 1fr; padding: 28px; }
    .card-grid, .learn-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-toggle__code { display: none; }
}

@media (max-width: 767.98px) {
    .container { padding-inline: 18px; }
    .section { padding: 54px 0; }
    .section-head { margin-bottom: 30px; }
    .hero__lead { font-size: 15px; }
    .hero__actions .btn { flex: 1; min-width: 150px; }
    .hero__stats { gap: 10px; grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
    .stat__value { font-size: 18px; }
    .feature-grid, .card-grid, .learn-grid { grid-template-columns: 1fr; }
    .token-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-disclaimer { text-align: start; }
    .page-head { padding-top: 38px; }
    .chart-wrap { height: 260px; }
    .token-stats { grid-template-columns: 1fr 1fr; }
    .filter-bar { padding: 10px; }
    .portfolio-form .search-field { min-width: 100%; }
    .portfolio-form .btn { width: 100%; }
    .swap-card { padding: 16px; border-radius: 24px; }
    .swap-amount { font-size: 28px; }
    .token-select { max-width: 150px; }
    .token-select__meta small { display: none; }
    .app-modal .modal-dialog { margin: 0; max-width: 100%; min-height: 100%; align-items: flex-end; }
    .app-modal .modal-content { border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
    .token-list { max-height: 42vh; }
    .tx-modal { padding: 26px 18px 20px; }
    .wallet-session__head { flex-direction: column; }
    .wallet-session__head .btn { align-self: flex-start; }
    .wallet-dash__top { flex-wrap: wrap; }
    .wallet-dash__tools { margin-inline-start: auto; }
}

@media (max-width: 575.98px) {
    .header-actions { gap: 6px; }
    .wallet-btn { padding: 0 11px; height: 38px; font-size: 12px; }
    .wallet-btn__label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
    .wallet-btn__caret { display: none; }
    .icon-btn { width: 38px; height: 38px; }
    .brand__text { font-size: 19px; }
    .brand__mark { width: 34px; height: 34px; }
    .hero__title { font-size: 2.15rem; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .stat { padding-inline-end: 8px; }
    .swap-field { padding: 12px 13px 11px; }
    .swap-card__foot { font-size: 9.5px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .portfolio-summary { padding: 18px; }
    .portfolio-summary__metrics { gap: 14px; padding-top: 16px; }
    .portfolio-summary__stat strong { font-size: 15px; }
    .portfolio-summary__stat-icon { width: 32px; height: 32px; font-size: 13px; }
    .portfolio-console { padding: 18px; border-radius: 22px; }
    .portfolio-empty { padding: 22px; }
    .nft-grid { grid-template-columns: 1fr; padding: 14px; }
    .asset-row, .activity-row, .nft-row { padding-inline: 14px; }
    .asset-row__actions .icon-btn { width: 32px; height: 32px; }
    .activity-meta small { display: none; }
    .token-price-row { gap: 8px; }
    .toast-stack { left: 12px; right: 12px; max-width: none; bottom: 82px; }
    .tx-steps { display: grid; grid-template-columns: 1fr 1fr; }
    .wallet-dash { padding: 18px; border-radius: 24px; }
    .wallet-dash__top { row-gap: 12px; }
    .wallet-dash__avatar { width: 44px; height: 44px; border-radius: 14px; }
    .wallet-dash__eyebrow { white-space: nowrap; }
    .wallet-dash__identity strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .wallet-dash__tools { flex: 1 1 100%; margin-inline-start: 0; justify-content: flex-end; }
    .wallet-dash__tools .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 11px; }
    .wallet-dash__balance { padding: 16px 48px 16px 16px; }
    .wallet-dash__balance strong { font-size: 1.9rem; }
    .wallet-dash__stats { gap: 8px; }
    .wallet-dash__stat-icon { width: 30px; height: 30px; font-size: 12px; }
    .wallet-dash__stats small { font-size: 8.5px; letter-spacing: 0.04em; }
    .wallet-dash__stats strong { font-size: 13.5px; }
    .wallet-session { padding: 18px; }
    .wallet-book-form { flex-direction: column; }
    .wallet-book-form .btn { width: 100%; justify-content: center; }
    .wallet-hero__links .btn { flex: 1; min-width: 130px; }
}

@media (max-width: 379.98px) {
    .lang-toggle { display: none; }
}

@media (max-width: 339.98px) {
    .header-actions { gap: 4px; }
    .wallet-btn { padding: 0 9px; }
    .wallet-btn__label { max-width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Liquidity
   ========================================================================== */

.lp-auto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(77, 94, 214, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(77, 94, 214, 0.07), rgba(124, 92, 255, 0.04));
}
.lp-auto__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-auto__text strong { font-size: 12.5px; font-weight: 600; color: var(--text-strong); display: inline-flex; align-items: center; gap: 6px; }
.lp-auto__text strong i { color: var(--violet); }
.lp-auto__text small { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.lp-auto .btn { flex: none; white-space: nowrap; }

.lp-section { margin-bottom: 14px; }
.lp-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 8px;
}
.lp-tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lp-tier {
    padding: 9px 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lp-tier strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.lp-tier small { display: block; font-size: 9.5px; color: var(--muted-2); letter-spacing: 0.02em; }
.lp-tier:hover { border-color: var(--border-strong); }
.lp-tier.is-active {
    border-color: rgba(77, 94, 214, 0.5);
    background: rgba(77, 94, 214, 0.08);
    box-shadow: inset 0 0 0 1px rgba(77, 94, 214, 0.14);
}
.lp-tier.is-active strong { color: var(--violet); }

.lp-range { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.lp-range__btn {
    flex: 1 1 auto;
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.lp-range__btn:hover { color: var(--text); }
.lp-range__btn.is-active { background: var(--surface-solid); color: var(--violet); box-shadow: 0 1px 8px rgba(23, 33, 58, 0.08); }
.lp-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lp-input { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.lp-input small { font-weight: 500; color: var(--muted-2); }
.lp-input .form-control { font-size: 13px; }
.lp-init { margin-top: 10px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); }
.lp-init .form-hint { margin: 8px 0 0; }

.lp-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(77, 94, 214, 0.2);
    border-radius: 14px;
    background: rgba(77, 94, 214, 0.06);
    color: var(--muted);
    font-size: 12.5px;
}
.lp-notice i { color: var(--violet); font-size: 15px; line-height: 1.5; }
.lp-notice p { margin: 0; }
.lp-slippage { display: inline-flex; gap: 4px; }
.lp-auto-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(77, 94, 214, 0.1);
    color: var(--violet);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.lp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px; color: var(--muted); text-align: center; }
.lp-empty i { font-size: 30px; color: var(--muted-2); }
.lp-empty p { margin: 0; font-size: 13px; max-width: 340px; }

.lp-positions { display: grid; gap: 10px; }
.lp-pos { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--surface-2); }
.lp-pos__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lp-pos__pair { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-strong); }
.lp-pos__avatars { display: flex; flex: none; }
.lp-pos__avatars .token-avatar + .token-avatar { margin-left: -9px; box-shadow: 0 0 0 2px var(--bg-elev); }
.lp-pos__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; font-size: 11px; color: var(--muted-2); }
.lp-pos__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.lp-pos__stat span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); }
.lp-pos__stat strong { font-size: 12.5px; font-weight: 600; color: var(--text); }
.lp-pos__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.lp-pos__links { display: flex; gap: 14px; font-size: 11.5px; }
.lp-pos__links a { color: var(--muted); }
.lp-pos__links a:hover { color: var(--violet); }

.lp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: 0.01em; }
.lp-badge--in { color: var(--green); background: rgba(18, 133, 90, 0.1); }
.lp-badge--out { color: var(--amber); background: rgba(180, 83, 9, 0.1); }
.lp-badge--closed { color: var(--muted); background: var(--surface-3); }

.lp-remove-summary { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }

@media (max-width: 575.98px) {
    .lp-auto { flex-direction: column; align-items: stretch; }
    .lp-auto .btn { justify-content: center; }
    .lp-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-pos__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-pos__foot { flex-direction: column; align-items: stretch; }
    .lp-range-inputs { grid-template-columns: 1fr; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .primary-nav .nav-link { padding: 9px 8px; font-size: 12.5px; }
}
