/*
 * AXIES APP — Fintech interface layer
 * Loaded after the legacy stylesheet so production logic can stay untouched.
 */

:root {
    --fintech-ink: #f8f7ff;
    --fintech-muted: #aaa6bb;
    --fintech-subtle: #777386;
    --fintech-violet: #9274f2;
    --fintech-violet-bright: #b59cff;
    --fintech-teal: #63d4ca;
    --fintech-green: #52d69b;
    --fintech-danger: #ff6b7c;
    --fintech-surface: rgba(13, 14, 31, 0.82);
    --fintech-surface-soft: rgba(255, 255, 255, 0.055);
    --fintech-surface-strong: rgba(8, 9, 24, 0.72);
    --fintech-stroke: rgba(255, 255, 255, 0.12);
    --fintech-stroke-soft: rgba(255, 255, 255, 0.075);
    --fintech-stroke-focus: rgba(181, 156, 255, 0.52);
    --fintech-shadow: 0 28px 90px rgba(5, 3, 22, 0.46);
    --fintech-gradient: linear-gradient(100deg, #7357e7 0%, #9b77ef 55%, #5fc6c0 100%);
    --fintech-radius-card: 28px;
    --fintech-radius-field: 20px;
    --fintech-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    color-scheme: dark;
}

html.compact-desktop-fit {
    scrollbar-width: none;
}

html.compact-desktop-fit::-webkit-scrollbar {
    display: none;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--fintech-ink);
}

button,
input {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--fintech-violet-bright);
    outline-offset: 3px;
}

input:focus-visible {
    outline: none;
}

/* Header */
.header {
    background: rgba(8, 9, 24, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow: 0 14px 48px rgba(3, 4, 16, 0.26);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.header-container {
    max-width: 1480px;
    min-height: 72px;
    padding: 0.75rem 1.75rem;
    gap: 1.25rem;
}

.logo-link {
    gap: 0.65rem;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    filter: drop-shadow(0 9px 20px rgba(126, 94, 233, 0.34));
}

.logo-text {
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.main-nav {
    gap: 0.2rem;
    margin-left: 0.85rem;
    padding: 0.28rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 12px;
    background: rgba(3, 4, 16, 0.24);
}

.nav-btn {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    color: var(--fintech-subtle);
    font-size: 0.82rem;
    font-weight: 750;
}

.nav-btn:hover {
    color: var(--fintech-ink);
    background: rgba(255, 255, 255, 0.045);
}

.nav-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-btn.active::after {
    display: none;
}

.balance-cards {
    gap: 0.45rem;
    margin-right: 0.5rem;
}

.balance-card {
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.45rem 0.65rem;
    border-color: var(--fintech-stroke-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.balance-card:hover {
    border-color: rgba(181, 156, 255, 0.34);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 28px rgba(10, 6, 32, 0.25);
    transform: translateY(-1px);
}

.balance-icon,
.balance-icon img {
    width: 24px;
    height: 24px;
}

.balance-label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
}

.balance-amount {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.connect-btn {
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: var(--fintech-gradient);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow:
        0 12px 30px rgba(109, 78, 220, 0.33),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 38px rgba(109, 78, 220, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.logout-dropdown {
    border-color: var(--fintech-stroke);
    border-radius: 14px;
    background: rgba(12, 13, 30, 0.94);
    box-shadow: var(--fintech-shadow);
}

/* Main Buy view */
.main-content {
    padding: 5.8rem 1.5rem 3.5rem;
    align-items: flex-start;
}

.presale-container {
    max-width: 560px;
}

@media (min-width: 769px) {
    .presale-container {
        zoom: var(--buy-panel-scale, 1);
    }

    html.compact-desktop-fit .main-content {
        min-height: 0;
        padding-top: 4.7rem;
        padding-bottom: 0.65rem;
    }
}

.presale-header {
    margin: 0 auto 1rem;
    animation: fintechRise 0.55s var(--fintech-ease) both;
}

.network-kicker {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.48rem;
    margin: 0 auto 0.72rem;
    padding: 0.4rem 0.58rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 999px;
    background: rgba(8, 9, 24, 0.46);
    color: var(--fintech-muted);
    font-size: 0.68rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.network-kicker img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.network-kicker-divider {
    width: 1px;
    height: 14px;
    background: var(--fintech-stroke);
}

.network-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #bceae6;
}

.network-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fintech-teal);
    box-shadow: 0 0 12px rgba(99, 212, 202, 0.75);
}

.presale-title {
    margin-bottom: 0.38rem;
    color: var(--fintech-ink);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.055em;
}

.gradient-text {
    background: linear-gradient(100deg, #d0c2ff 0%, #a98cf6 48%, #75ddd4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.presale-subtitle {
    color: var(--fintech-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.swap-card-modern {
    overflow: hidden;
    padding: 0.78rem;
    border: 1px solid rgba(220, 209, 255, 0.17);
    border-radius: var(--fintech-radius-card);
    background:
        linear-gradient(145deg, rgba(38, 31, 70, 0.88), rgba(8, 9, 23, 0.94)),
        var(--fintech-surface);
    box-shadow:
        var(--fintech-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(32px) saturate(135%);
    -webkit-backdrop-filter: blur(32px) saturate(135%);
    animation: fintechSwapIn 0.72s 0.04s var(--fintech-ease) both;
    transition:
        border-color 0.4s var(--fintech-ease),
        box-shadow 0.4s var(--fintech-ease),
        transform 0.4s var(--fintech-ease);
}

.swap-card-modern::before {
    height: 180px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 24% 0%, rgba(185, 155, 255, 0.16), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
    opacity: 1;
}

.swap-card-modern::after {
    inset: auto -15% -65% 45%;
    width: 70%;
    height: 90%;
    border-radius: 50%;
    background: rgba(61, 186, 180, 0.11);
    filter: blur(65px);
    opacity: 1;
}

.swap-card-modern > * {
    position: relative;
    z-index: 2;
}

.swap-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    padding: 0.25rem 0.35rem 0.2rem;
}

.swap-card-eyebrow {
    display: block;
    margin-bottom: 0.14rem;
    color: var(--fintech-subtle);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.swap-card-title {
    margin: 0;
    color: var(--fintech-ink);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.payment-token-switch {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.26rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 13px;
    background: rgba(4, 5, 17, 0.3);
}

.payment-token-option {
    min-width: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--fintech-subtle);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        color 0.32s var(--fintech-ease),
        background 0.32s var(--fintech-ease),
        border-color 0.32s var(--fintech-ease),
        box-shadow 0.32s var(--fintech-ease),
        transform 0.32s var(--fintech-ease);
}

.payment-token-option img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.66;
    filter: saturate(0.7);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.payment-token-option:hover {
    color: var(--fintech-ink);
    background: rgba(255, 255, 255, 0.05);
}

.payment-token-option.active {
    border-color: rgba(184, 158, 255, 0.22);
    color: white;
    background: linear-gradient(145deg, rgba(151, 117, 244, 0.25), rgba(255, 255, 255, 0.07));
    box-shadow:
        0 8px 24px rgba(34, 21, 82, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.payment-token-option.active img {
    opacity: 1;
    filter: none;
}

.payment-token-option:active {
    transform: scale(0.97);
}

.transaction-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
}

.transaction-flow .swap-section {
    width: 100%;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.46rem;
}

.send-section {
    animation: fintechFieldIn 0.58s 0.12s var(--fintech-ease) both;
}

.receive-section {
    animation: fintechFieldIn 0.58s 0.2s var(--fintech-ease) both;
}

.swap-label {
    margin: 0;
    color: var(--fintech-muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.transaction-flow .swap-section > .swap-label {
    padding-inline: 1rem;
    transition: color 0.3s var(--fintech-ease);
}

.swap-input-wrapper {
    min-height: 94px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px 132px;
    grid-template-rows: minmax(92px, 1fr);
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 23px;
    background: rgba(6, 7, 19, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
        border-color 0.38s var(--fintech-ease),
        background 0.38s var(--fintech-ease),
        box-shadow 0.38s var(--fintech-ease),
        transform 0.38s var(--fintech-ease);
}

.send-section .swap-input-wrapper {
    border-color: rgba(181, 156, 255, 0.25);
}

.receive-section .swap-input-wrapper {
    background: rgba(255, 255, 255, 0.055);
}

.swap-input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.swap-input-wrapper:focus-within {
    border-color: var(--fintech-stroke-focus);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04));
    box-shadow:
        0 0 0 4px rgba(146, 116, 242, 0.09),
        0 0 34px rgba(124, 87, 225, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.swap-section:focus-within > .swap-label {
    color: #cabdff;
}

.swap-input-modern {
    color: var(--fintech-ink);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: clamp(2.15rem, 3.8vw, 3rem);
    font-weight: 750;
    height: 1em;
    line-height: 1;
    letter-spacing: -0.055em;
    font-variant-numeric: tabular-nums;
}

.transaction-flow .input-group {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    justify-content: center;
    min-height: 92px;
    padding: 0.65rem 1rem 0.82rem;
    box-sizing: border-box;
}

.swap-input-modern::placeholder {
    color: rgba(248, 247, 255, 0.25);
}

.usd-equivalent-modern {
    margin-top: 0.1rem;
    color: var(--fintech-subtle);
    font-size: 0.7rem;
}

.transaction-flow .usd-equivalent-modern {
    position: absolute;
    bottom: 0.58rem;
    left: 1rem;
    margin: 0;
}

.vertical-divider {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 1px;
    height: 52px;
    margin: 0;
    background: var(--fintech-stroke-soft);
}

.token-identity {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    width: auto;
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    padding: 0.55rem 0.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--fintech-ink);
    cursor: default;
    pointer-events: none;
}

.token-identity .token-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 7px 15px rgba(0, 0, 0, 0.22));
}

.receive-section .token-identity .token-icon {
    width: 39px;
    height: 39px;
}

.token-identity .token-symbol {
    color: white;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.token-selector,
.token-selector-disabled {
    width: auto;
    min-width: 112px;
    padding: 0.65rem 0.7rem;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    background: rgba(7, 8, 21, 0.52);
    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.token-selector:hover {
    border-color: rgba(181, 156, 255, 0.34);
    background: rgba(20, 18, 45, 0.72);
    box-shadow: 0 10px 28px rgba(37, 23, 87, 0.24);
    transform: translateY(-1px);
}

.token-selector-disabled:hover {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(7, 8, 21, 0.52);
}

.token-icon,
.token-selector-disabled .token-icon {
    width: 28px;
    height: 28px;
}

.token-symbol {
    font-size: 0.82rem;
    font-weight: 800;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
}

.amount-info {
    min-height: 18px;
    margin: 0.18rem 0 0;
    color: var(--fintech-subtle);
    font-size: 0.68rem;
}

.transaction-flow .amount-info {
    position: absolute;
    right: 1rem;
    bottom: 0.58rem;
    left: 1rem;
    margin: 0;
}

.has-usd-equivalent .amount-display {
    visibility: hidden;
}

.amount-display,
.available-label {
    color: var(--fintech-subtle);
}

.available-label span {
    color: #c2b3f5;
}

.quick-amount-buttons {
    gap: 0.3rem;
    margin-top: 0.45rem;
}

.quick-btn,
.quick-amount-btn {
    min-width: 0;
    padding: 0.42rem 0.62rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--fintech-muted);
    font-size: 0.67rem;
    font-weight: 800;
    box-shadow: none;
}

.quick-btn:hover,
.quick-amount-btn:hover {
    border-color: rgba(181, 156, 255, 0.28);
    background: rgba(151, 117, 244, 0.13);
    color: white;
    box-shadow: none;
    transform: translateY(-1px);
}

.swap-arrow-modern {
    position: relative;
    z-index: 5;
    margin: -0.78rem auto -0.78rem;
    width: 44px;
    height: 44px;
    padding: 0;
    overflow: visible;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: 0 0 28px rgba(146, 109, 240, 0.44);
    animation: fintechArrowFloat 3.6s var(--fintech-ease) infinite;
}

.swap-arrow-modern::before,
.swap-arrow-modern::after {
    content: none;
    display: none;
}

.swap-arrow-modern svg {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 5px solid rgba(31, 27, 55, 0.94);
    border-radius: 50%;
    background: linear-gradient(145deg, #a689f7, #6f54d9);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition:
        transform 0.36s var(--fintech-ease),
        box-shadow 0.36s var(--fintech-ease);
}

.swap-arrow-modern:hover svg {
    transform: translateY(2px) scale(1.04);
}

.price-details-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    height: 66px;
    min-height: 66px;
    overflow: hidden;
    margin-top: 0.85rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-sizing: border-box;
    animation: fintechFieldIn 0.58s 0.28s var(--fintech-ease) both;
}

.price-row {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.7rem;
    box-sizing: border-box;
}

.price-row:last-child {
    align-items: flex-end;
    text-align: right;
}

.price-row + .price-row {
    border-top: 0;
    border-left: 1px solid var(--fintech-stroke-soft);
}

.price-row:not(:last-child) {
    border-bottom: 0;
}

.price-label {
    color: var(--fintech-subtle);
    font-size: 0.65rem;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.price-value {
    color: var(--fintech-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.price-details-modern .price-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.price-value.gradient-text,
#receiveAmountText.gradient-text {
    background: linear-gradient(100deg, #cbbcff, #79ddd4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.buy-button-modern {
    min-height: 56px;
    margin-top: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: var(--fintech-gradient);
    color: white;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow:
        0 14px 36px rgba(109, 78, 220, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.23);
    animation: fintechFieldIn 0.58s 0.35s var(--fintech-ease) both;
    transition:
        transform 0.4s var(--fintech-ease),
        box-shadow 0.4s var(--fintech-ease),
        filter 0.4s var(--fintech-ease);
}

.buy-button-modern::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.buy-button-modern:hover:not(:disabled) {
    background: var(--fintech-gradient);
    box-shadow:
        0 18px 44px rgba(109, 78, 220, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    filter: saturate(1.08) brightness(1.04);
}

.buy-button-modern:disabled {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.38);
    box-shadow: none;
    opacity: 1;
}

/* Sale progress */
.price-progress-container {
    max-width: 560px;
    margin: 0.75rem auto 0;
}

.price-progress-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 110px;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--fintech-stroke);
    border-radius: 18px;
    background: rgba(10, 11, 28, 0.7);
    box-shadow:
        0 18px 50px rgba(5, 3, 22, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.price-progress-card::before {
    display: none;
}

.price-point {
    min-width: 0;
    gap: 0.2rem;
}

.price-point .price-label {
    font-size: 0.58rem;
}

.price-point .price-value,
.next-price .price-value {
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
}

.price-progress-bar {
    gap: 0.35rem;
}

.progress-bar-bg {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
    background: linear-gradient(90deg, #7559e4, #aa86f1 55%, #61d3ca);
    background-size: 200% 100%;
    box-shadow: 0 0 18px rgba(145, 109, 239, 0.34);
    animation: fintechProgressFlow 4.8s ease-in-out infinite;
}

.progress-text,
.progress-percentage {
    font-size: 0.65rem;
}

.progress-text {
    color: var(--fintech-subtle);
}

.progress-percentage {
    color: #91e1db;
}

/* Staking */
.staking-container {
    width: 100%;
    max-width: 1120px;
}

.staking-subnav {
    margin-bottom: 0.8rem;
    padding: 0.25rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 12px;
    background: rgba(8, 9, 24, 0.56);
}

.staking-subnav-btn {
    min-width: 112px;
    padding: 0.55rem 1rem;
    border-radius: 9px;
    color: var(--fintech-subtle);
    font-size: 0.76rem;
    font-weight: 800;
}

.staking-subnav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.045);
}

.staking-subnav-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.staking-balance-card {
    margin-bottom: 0.75rem;
    padding: 0.82rem 1rem;
    border: 1px solid var(--fintech-stroke);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(31, 26, 59, 0.72), rgba(8, 9, 24, 0.76));
    box-shadow:
        0 16px 44px rgba(5, 3, 22, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.balance-info-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
}

.balance-label-staking {
    margin: 0;
    color: var(--fintech-subtle);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.balance-amount-staking {
    gap: 0.5rem;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.balance-token-icon {
    width: 26px;
    height: 26px;
}

.token-symbol-gray {
    color: var(--fintech-muted);
    font-size: 0.82rem;
}

.staking-config-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.95rem;
}

.staking-left-section,
.staking-right-section {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.75rem;
}

.staking-period-section,
.staking-amount-section,
.rewards-section {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
}

.staking-amount-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.42rem;
}

.staking-label-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--fintech-violet);
}

.staking-minimum {
    margin-left: auto;
    color: var(--fintech-text-soft);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.staking-period-section .swap-label,
.staking-left-section .swap-label,
.rewards-section .swap-label {
    margin-left: 0;
}

.period-slider-container {
    margin: 0.8rem 0 0;
}

.period-slider {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6e50d6 0%, #a481ef 52%, #62d3ca 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.period-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border: 4px solid rgba(30, 25, 52, 0.96);
    background: #a88af3;
    box-shadow: 0 0 20px rgba(167, 134, 243, 0.56);
}

.period-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 4px solid rgba(30, 25, 52, 0.96);
    background: #a88af3;
    box-shadow: 0 0 20px rgba(167, 134, 243, 0.56);
}

.period-labels {
    margin-top: 0.55rem;
    padding: 0;
}

.period-label {
    color: var(--fintech-subtle);
    font-size: 0.62rem;
}

.period-info-card,
.rewards-card {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(4, 5, 17, 0.22);
}

.period-info-row,
.reward-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.48rem 0;
}

.period-info-row:not(:last-child),
.reward-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label,
.reward-label {
    color: var(--fintech-subtle);
    font-size: 0.7rem;
}

.info-value,
.reward-value {
    color: var(--fintech-ink);
    font-size: 0.76rem;
    font-weight: 800;
}

.reward-row.total-row {
    margin-top: 0.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 212, 202, 0.17);
}

.reward-value-large {
    background: linear-gradient(100deg, #cdbfff, #72ddd4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.05rem;
}

.staking-amount-section .swap-input-wrapper {
    grid-template-columns: minmax(0, 1fr) 1px 132px;
    grid-template-rows: minmax(92px, 1fr);
    align-items: stretch;
    min-height: 94px;
    padding: 0;
}

.staking-amount-section .input-group {
    display: flex;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    justify-content: center;
    min-height: 92px;
    padding: 0.7rem 1rem;
    box-sizing: border-box;
}

.staking-amount-section .swap-input-modern {
    height: 1em;
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1;
}

.staking-token-identity {
    display: flex;
    min-width: 0;
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.staking-token-identity .token-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.staking-token-identity .token-symbol {
    color: var(--fintech-text);
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.staking-amount-section .quick-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.staking-amount-section .quick-amount-btn {
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--fintech-text-muted);
    font-size: 0.76rem;
    font-weight: 750;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.staking-amount-section .quick-amount-btn:hover {
    border-color: rgba(153, 113, 255, 0.46);
    background: rgba(123, 86, 236, 0.12);
    color: var(--fintech-text);
    transform: translateY(-1px);
}

.staking-amount-section .quick-amount-btn:active {
    transform: translateY(0);
}

.rewards-section {
    flex: 1;
}

.staking-right-section #stakeBtn {
    min-height: 48px;
    border-radius: 14px;
}

.multiple-stakes-container {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.my-stake-card,
.stake-card,
.no-active-stake-message,
.no-stakes-message {
    border-color: var(--fintech-stroke);
    border-radius: 18px;
    background: rgba(10, 11, 28, 0.72);
    box-shadow: 0 18px 48px rgba(5, 3, 22, 0.26);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.my-stake-card {
    display: grid;
    min-width: 0;
    gap: 1rem;
    padding: 1.1rem;
}

.my-stake-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.my-stake-item {
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.032);
}

.my-stake-label {
    color: var(--fintech-subtle);
    font-size: 0.66rem;
}

.my-stake-value {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--fintech-ink);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-stake-value.gradient,
.my-stake-value.reward,
.stake-profit-value {
    background: linear-gradient(100deg, #cdbfff, #72ddd4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    animation: none;
}

.my-stake-progress-bar,
.stake-progress-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.07);
}

.my-stake-progress-fill,
.stake-progress-fill {
    background: linear-gradient(90deg, #7758e4, #aa86ef, #62d3ca);
    animation: none;
}

.my-stake-withdraw-btn,
.withdraw-btn {
    border-radius: 11px;
    background: linear-gradient(100deg, #3caa7b, #55d69b);
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(47, 160, 111, 0.25);
}

.no-active-stake-message,
.no-stakes-message {
    border-style: dashed;
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.65rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

/* Modals */
.modal-overlay {
    background: rgba(4, 5, 16, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    max-width: 520px;
    padding: 1.2rem;
    border: 1px solid rgba(220, 209, 255, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(55, 43, 100, 0.72), rgba(10, 12, 29, 0.96)),
        var(--fintech-surface);
    box-shadow:
        0 34px 110px rgba(3, 2, 14, 0.64),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(32px) saturate(135%);
    -webkit-backdrop-filter: blur(32px) saturate(135%);
}

.modal-content::before {
    height: 120px;
    border-radius: inherit;
    background: radial-gradient(circle at 24% 0%, rgba(185, 155, 255, 0.18), transparent 65%);
}

.modal-content-sm {
    max-width: 420px;
}

#walletModal .modal-content {
    max-width: 480px;
}

.modal-header {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.2rem;
}

.modal-title {
    margin: 0;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.modal-subtitle {
    margin: 0.25rem 0 0;
    color: var(--fintech-subtle);
    font-size: 0.72rem;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-color: var(--fintech-stroke-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--fintech-muted);
}

.modal-close:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: rotate(90deg);
}

.wallet-options {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
}

.wallet-option,
.token-list-item {
    min-width: 0;
    gap: 0.7rem;
    padding: 0.85rem;
    border: 1px solid var(--fintech-stroke-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.038);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.wallet-option {
    position: relative;
    width: 100%;
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    padding: 0.72rem 0.82rem;
    text-align: left;
    transition:
        transform 0.35s var(--fintech-ease),
        border-color 0.35s var(--fintech-ease),
        background 0.35s var(--fintech-ease),
        box-shadow 0.35s var(--fintech-ease);
}

.wallet-option::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0.3rem;
    border-top: 1.5px solid var(--fintech-subtle);
    border-right: 1.5px solid var(--fintech-subtle);
    transform: rotate(45deg);
    transition:
        transform 0.35s var(--fintech-ease),
        border-color 0.35s var(--fintech-ease);
}

.wallet-option:hover,
.token-list-item:hover {
    border-color: rgba(181, 156, 255, 0.34);
    background: rgba(151, 117, 244, 0.1);
    box-shadow:
        0 13px 34px rgba(23, 13, 59, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.wallet-option:hover {
    transform: translateX(3px);
}

.wallet-option:hover::after {
    border-color: var(--fintech-violet-bright);
    transform: translateX(2px) rotate(45deg);
}

.wallet-option:active,
.token-list-item:active {
    transform: translateY(0) scale(0.98);
}

.wallet-option:active {
    transform: translateX(1px) scale(0.99);
}

.wallet-option.is-connecting {
    cursor: progress;
    opacity: 0.72;
    pointer-events: none;
}

.wallet-option.is-connecting::after {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(181, 156, 255, 0.24);
    border-top-color: var(--fintech-violet-bright);
    border-radius: 50%;
    transform: none;
    animation: walletOptionSpin 0.75s linear infinite;
}

.walletconnect-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 20px;
    padding: 0.05rem 0.45rem;
    color: var(--fintech-subtle);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.walletconnect-divider::before,
.walletconnect-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, transparent, rgba(181, 156, 255, 0.18));
}

.walletconnect-divider::after {
    background: linear-gradient(90deg, rgba(92, 188, 255, 0.18), transparent);
}

.walletconnect-option {
    border-color: rgba(79, 163, 255, 0.16);
    background:
        linear-gradient(100deg, rgba(58, 153, 252, 0.065), transparent 52%),
        rgba(255, 255, 255, 0.038);
}

.walletconnect-option:hover {
    border-color: rgba(84, 172, 255, 0.36);
    background:
        linear-gradient(100deg, rgba(58, 153, 252, 0.13), rgba(151, 117, 244, 0.07)),
        rgba(255, 255, 255, 0.045);
}

.walletconnect-icon {
    border-color: rgba(78, 169, 255, 0.12);
    background: rgba(58, 153, 252, 0.08);
}

.walletconnect-icon img {
    filter: invert(55%) sepia(91%) saturate(2676%) hue-rotate(187deg) brightness(101%) contrast(98%);
}

.wallet-icon {
    width: 40px;
    height: 40px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(4, 5, 17, 0.22);
}

.wallet-name {
    min-width: 0;
    overflow: hidden;
    color: var(--fintech-ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
}

.token-list {
    position: relative;
    z-index: 1;
    gap: 0.55rem;
}

.token-list-icon {
    width: 38px;
    height: 38px;
}

.token-list-icon img {
    width: 32px;
    height: 32px;
}

.token-list-name {
    color: var(--fintech-ink);
    font-size: 0.86rem;
}

.token-list-balance {
    color: var(--fintech-subtle);
    font-size: 0.68rem;
}

/* Mobile menu */
.mobile-menu-content {
    border-top: 1px solid rgba(220, 209, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(55, 43, 100, 0.86), rgba(10, 12, 29, 0.98)),
        var(--fintech-surface);
    box-shadow: 0 -28px 90px rgba(3, 2, 14, 0.5);
}

.mobile-menu-content::before {
    background: radial-gradient(circle at 30% 0%, rgba(185, 155, 255, 0.18), transparent 65%);
}

.mobile-menu-content::after {
    background: linear-gradient(90deg, transparent, rgba(181, 156, 255, 0.65), rgba(99, 212, 202, 0.55), transparent);
}

.mobile-menu-wallet,
.mobile-menu-item {
    border-color: var(--fintech-stroke-soft);
    background: rgba(255, 255, 255, 0.045);
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    border-color: rgba(181, 156, 255, 0.32);
    background: rgba(151, 117, 244, 0.12);
    transform: translateX(3px);
}

.mobile-logout-btn {
    border-color: rgba(255, 107, 124, 0.25);
    background: rgba(255, 107, 124, 0.09);
    box-shadow: none;
}

.mobile-logout-btn:hover,
.mobile-logout-btn:active {
    border-color: rgba(255, 107, 124, 0.4);
    background: rgba(255, 107, 124, 0.14);
    box-shadow: none;
}

/* Notifications */
.notification {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    background: rgba(10, 11, 28, 0.92) !important;
    box-shadow:
        0 18px 50px rgba(3, 2, 14, 0.46),
        inset 3px 0 0 var(--fintech-violet) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
}

.notification-success {
    box-shadow:
        0 18px 50px rgba(3, 2, 14, 0.46),
        inset 3px 0 0 var(--fintech-green) !important;
}

.notification-warning {
    box-shadow:
        0 18px 50px rgba(3, 2, 14, 0.46),
        inset 3px 0 0 #f5b84f !important;
}

.notification-error {
    box-shadow:
        0 18px 50px rgba(3, 2, 14, 0.46),
        inset 3px 0 0 var(--fintech-danger) !important;
}

/* Footer */
.footer {
    position: relative;
    padding: 0.8rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 9, 24, 0.64);
    box-shadow: 0 -12px 38px rgba(3, 4, 16, 0.2);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.footer-text {
    color: var(--fintech-subtle);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.035em;
}

@keyframes fintechRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fintechSwapIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fintechFieldIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fintechArrowFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(2px);
    }
}

@keyframes fintechProgressFlow {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes walletOptionSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Compact laptops and tablets */
@media (max-width: 1100px) {
    .presale-container {
        max-width: 560px;
    }

    .header-container {
        padding-inline: 1.2rem;
    }

    .balance-cards {
        display: none !important;
    }

    .transaction-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .swap-input-wrapper {
        padding: 0;
    }

    .vertical-divider {
        margin-inline: 0;
    }

    .token-selector,
    .token-selector-disabled {
        min-width: 100px;
        padding: 0.55rem;
    }

    .staking-container {
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .main-content {
        padding-inline: 1rem;
    }

    .transaction-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .swap-arrow-modern {
        margin: -0.72rem auto;
        z-index: 4;
    }

    .swap-arrow-modern svg {
        width: 42px;
        height: 42px;
        transform: none;
    }

    .swap-arrow-modern:hover svg {
        transform: translateY(2px);
    }

    .staking-config-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .staking-right-section {
        min-height: 0;
    }

    .my-stake-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        min-height: 64px;
        padding: 0.62rem 0.85rem;
        gap: 0.65rem;
    }

    .logo-img {
        width: 34px;
        height: 34px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .connect-btn {
        min-height: 40px;
        padding: 0.6rem 0.8rem;
        font-size: 0.72rem;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        margin-left: 0.2rem;
        border-color: var(--fintech-stroke);
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.055);
        box-shadow: none;
    }

    .main-content {
        padding: 5.25rem 0.72rem 4.8rem;
    }

    .presale-header {
        margin-bottom: 0.9rem;
    }

    .network-kicker {
        margin-bottom: 0.58rem;
        font-size: 0.61rem;
    }

    .presale-title {
        margin-bottom: 0.25rem;
        font-size: 2rem;
    }

    .presale-subtitle {
        font-size: 0.78rem;
    }

    .swap-card-modern {
        padding: 0.75rem;
        border-radius: 22px;
    }

    .swap-card-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
        margin-bottom: 0.75rem;
        padding: 0 0.1rem;
    }

    .swap-card-title {
        font-size: 1.05rem;
    }

    .payment-token-switch {
        width: 100%;
    }

    .payment-token-option {
        flex: 1;
        min-width: 0;
        min-height: 42px;
        padding: 0.5rem;
    }

    .swap-label {
        margin-bottom: 0;
    }

    .swap-input-wrapper {
        min-height: 76px;
        grid-template-columns: minmax(0, 1fr) 1px 108px;
        grid-template-rows: minmax(74px, 1fr);
        padding: 0;
        border-radius: 16px;
    }

    .transaction-flow .swap-section > .swap-label {
        padding-inline: 0.75rem;
    }

    .swap-input-modern {
        font-size: 1.95rem;
    }

    .transaction-flow .input-group {
        min-height: 74px;
        padding: 0.42rem 0.75rem 0.62rem;
    }

    .vertical-divider {
        height: 42px;
        margin: 0;
    }

    .token-selector,
    .token-selector-disabled {
        width: auto;
        min-width: 96px;
        padding: 0.48rem 0.55rem;
        border-radius: 11px;
    }

    .token-identity {
        width: auto;
        min-width: 0;
        min-height: 46px;
        gap: 0.5rem;
        padding: 0.4rem 0.2rem;
    }

    .token-identity .token-icon {
        width: 30px;
        height: 30px;
    }

    .receive-section .token-identity .token-icon {
        width: 33px;
        height: 33px;
    }

    .token-identity .token-symbol {
        font-size: 0.9rem;
    }

    .token-icon,
    .token-selector-disabled .token-icon {
        width: 24px;
        height: 24px;
    }

    .amount-info {
        min-height: 16px;
        margin-top: 0.32rem;
    }

    .transaction-flow .amount-info {
        right: 0.75rem;
        bottom: 0.42rem;
        left: 0.75rem;
    }

    .transaction-flow .usd-equivalent-modern {
        bottom: 0.42rem;
        left: 0.75rem;
    }

    .quick-amount-buttons {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .quick-btn,
    .quick-amount-btn {
        min-height: 36px;
        padding: 0.35rem;
    }

    .price-details-modern {
        grid-template-columns: minmax(0, 1fr);
        height: 88px;
        min-height: 88px;
        padding: 0.15rem 0.65rem;
    }

    .price-row {
        height: 44px;
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.45rem 0.35rem;
    }

    .price-row:last-child {
        align-items: center;
        text-align: left;
    }

    .price-details-modern .price-value {
        flex: 0 1 auto;
        min-width: 0;
    }

    .price-row + .price-row {
        border-top: 1px solid var(--fintech-stroke-soft);
        border-left: 0;
    }

    .buy-button-modern {
        min-height: 52px;
        margin-top: 0.6rem;
    }

    .price-progress-container {
        margin-top: 0.6rem;
    }

    .price-progress-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.75rem;
        border-radius: 16px;
    }

    .price-progress-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .price-point {
        width: auto;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .next-price {
        align-items: flex-end;
    }

    .staking-container {
        max-width: 100%;
        padding: 0;
    }

    .staking-subnav {
        width: 100%;
    }

    .staking-subnav-btn {
        flex: 1;
        min-width: 0;
        min-height: 42px;
    }

    .staking-balance-card {
        padding: 0.75rem;
    }

    .balance-info-section {
        gap: 0.65rem;
    }

    .balance-label-staking {
        font-size: 0.6rem;
    }

    .balance-amount-staking {
        justify-content: flex-end;
        font-size: 1rem;
        text-align: right;
    }

    .balance-token-icon {
        width: 23px;
        height: 23px;
    }

    .staking-config-card {
        gap: 0.65rem;
        padding: 0.7rem;
    }

    .staking-period-section,
    .staking-amount-section,
    .rewards-section {
        padding: 0.8rem;
        border-radius: 15px;
    }

    .period-label {
        font-size: 0.54rem;
    }

    .staking-amount-section .swap-input-wrapper {
        grid-template-columns: minmax(0, 1fr) 1px 108px;
        min-height: 76px;
    }

    .staking-amount-section .input-group {
        min-height: 74px;
        padding-inline: 0.75rem;
    }

    .staking-amount-section .swap-input-modern {
        font-size: 1.95rem;
    }

    .staking-token-identity {
        padding-inline: 0.62rem;
    }

    .staking-token-identity .token-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .staking-token-identity .token-symbol {
        font-size: 0.9rem;
    }

    .my-stake-grid {
        gap: 0.65rem;
    }

    .my-stake-bottom-row {
        align-items: stretch;
        flex-direction: column;
        gap: 0.85rem;
    }

    .my-stake-withdraw-btn {
        width: 100%;
        min-width: 0;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content,
    .modal-content-sm {
        max-width: none;
        padding: 1rem 0.85rem max(1rem, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        animation-name: fintechSheetUp;
    }

    #walletModal .modal-content {
        max-width: none;
    }

    .wallet-options {
        gap: 0.45rem;
    }

    .wallet-option {
        min-height: 68px;
        padding: 0.75rem;
    }

    .wallet-icon {
        width: 36px;
        height: 36px;
    }

    .wallet-name {
        font-size: 0.76rem;
    }

    .footer {
        padding: 0.68rem 0.85rem;
    }

    .footer-text {
        font-size: 0.62rem;
    }
}

@media (max-width: 420px) {
    .main-content {
        padding-inline: 0.55rem;
    }

    .network-kicker-divider,
    .network-kicker > span:nth-of-type(1) {
        display: none;
    }

    .swap-input-modern {
        font-size: 1.72rem;
    }

    .token-selector,
    .token-selector-disabled {
        min-width: 88px;
    }

    .token-identity {
        width: auto;
        min-width: 0;
        gap: 0.42rem;
    }

    .swap-input-wrapper {
        grid-template-columns: minmax(0, 1fr) 1px 94px;
    }

    .token-identity .token-icon {
        width: 27px;
        height: 27px;
    }

    .receive-section .token-identity .token-icon {
        width: 29px;
        height: 29px;
    }

    .token-identity .token-symbol {
        font-size: 0.82rem;
    }

    .token-symbol {
        font-size: 0.75rem;
    }

    .price-label {
        font-size: 0.58rem;
    }

    .price-value {
        font-size: 0.72rem;
    }

    .wallet-option {
        min-height: 60px;
        flex-direction: row;
    }

    .my-stake-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .staking-amount-section .swap-input-wrapper {
        grid-template-columns: minmax(0, 1fr) 1px 94px;
    }

    .staking-token-identity {
        gap: 0.42rem;
        padding-inline: 0.45rem;
    }

    .staking-token-identity .token-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .staking-token-identity .token-symbol {
        font-size: 0.82rem;
    }
}

@keyframes fintechSheetUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
