:root {
    --bg-base: #070a10;
    --bg-mid: #0d121c;
    --bg-top: #111724;

    --glass: rgba(237, 242, 255, 0.08);
    --glass-strong: rgba(237, 242, 255, 0.11);
    --glass-soft: rgba(237, 242, 255, 0.06);
    --stroke: rgba(255, 255, 255, 0.12);
    --stroke-soft: rgba(255, 255, 255, 0.08);

    --text: rgba(248, 251, 255, 0.94);
    --text-soft: rgba(228, 236, 255, 0.74);
    --text-muted: rgba(207, 218, 242, 0.58);

    --shadow-1: 0 14px 30px rgba(0, 0, 0, 0.45);
    --shadow-2: 0 24px 56px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 30px 64px rgba(0, 0, 0, 0.6);

    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --pad: 20px;
    --gap: 16px;

    --accent: #3d5f99;
    --accent-deep: #2f4e82;
    --accent-soft: rgba(114, 146, 204, 0.3);

    --yellow: #f5c86a;
    --blue: #7aa5ff;
    --green: #51cc95;
    --red: #ff6170;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(120% 100% at 20% -10%, #172032 0%, transparent 55%),
        radial-gradient(100% 90% at 100% 0%, #121a2a 0%, transparent 58%);
    font-family: "SF Pro Text", "SF Pro Display", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
    font-weight: 500;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

button,
input {
    font: inherit;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.center {
    text-align: center;
}

.muted {
    color: var(--text-muted);
}

.app {
    position: relative;
    min-height: 100vh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.bg {
    position: fixed;
    inset: 0;
    background: url("../assets/images/fon.jpg") center center / cover no-repeat;
    z-index: -3;
    transform: translateZ(0);
}

.bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 12, 0.68), rgba(6, 10, 15, 0.76));
    z-index: -2;
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 70% at 70% 25%, rgba(175, 198, 239, 0.18), transparent 58%);
    opacity: 0.7;
    z-index: -1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
}

.topbar__right {
    gap: 10px;
}

.icon-btn {
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(240, 244, 255, 0.1), rgba(240, 244, 255, 0.05));
    border: 1px solid var(--stroke);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-1);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.icon-btn:active {
    transform: scale(0.98);
}

.icon-btn--avatar {
    width: 54px;
    height: 54px;
    padding: 0;
    overflow: hidden;
}

.topbar__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-pill);
}

.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 66px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, rgba(238, 244, 255, 0.14), rgba(238, 244, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3px;
    overflow: hidden;
}

.lang-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.86));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
    transition: transform 0.28s cubic-bezier(0.3, 0.95, 0.35, 1);
    z-index: 1;
}

.lang-toggle::after {
    content: "EN";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(22, 33, 52, 0.92);
    text-transform: uppercase;
    transition: transform 0.28s cubic-bezier(0.3, 0.95, 0.35, 1);
    z-index: 2;
}

.lang-toggle[data-lang="es"]::before {
    left: 33px;
}

.lang-toggle[data-lang="es"]::after {
    content: "ES";
    left: 33px;
}

.icon-btn--bell-rect {
    width: 56px;
    height: 48px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.bell__icon {
    width: 21px;
    height: 21px;
    opacity: 0.95;
}

.badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    display: grid;
    place-items: center;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: rgba(245, 250, 255, 0.96);
    background: linear-gradient(180deg, #5674af, #415f96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(34, 52, 87, 0.55);
}

.screen {
    padding: 0 var(--pad);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.safe-bottom {
    height: env(safe-area-inset-bottom);
}

.wallet-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0 0;
    z-index: 2;
}

.wallet-panel::before {
    content: none;
}

.wallet-panel::after {
    content: none;
}

.wallet-panel__kicker {
    order: 2;
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(228, 237, 255, 0.6);
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
}

.ai-load {
    margin-bottom: 6px;
}

.wallet-panel__value {
    order: 1;
    margin: 0;
    font-size: clamp(64px, 16.5vw, 72px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: rgba(247, 251, 255, 0.98);
    text-align: center;
    text-shadow: 0 10px 24px rgba(2, 5, 10, 0.46);
}

.percent {
    margin-bottom: 4px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.dot--yellow {
    background: var(--yellow);
}

.dot--blue {
    background: var(--blue);
}

.dot--green {
    background: var(--green);
}

.dot--glow.dot--yellow {
    box-shadow: 0 0 0 3px rgba(245, 200, 106, 0.15), 0 0 14px rgba(245, 200, 106, 0.38);
}

.model-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulseDot 2.4s ease-in-out infinite;
    box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
    color: #facc15;
}

.model-dot.yellow,
.model-dot.dot--yellow {
    background: #facc15;
    color: #facc15;
}

.model-dot.blue,
.model-dot.dot--blue {
    background: #60a5fa;
    color: #60a5fa;
}

.model-dot.green,
.model-dot.dot--green {
    background: #34d399;
    color: #34d399;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6), 0 0 6px currentColor, 0 0 12px currentColor;
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0), 0 0 6px currentColor, 0 0 12px currentColor;
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 6px currentColor, 0 0 12px currentColor;
        opacity: 1;
    }
}

.dot--glow.dot--blue {
    box-shadow: 0 0 0 3px rgba(122, 165, 255, 0.14), 0 0 14px rgba(122, 165, 255, 0.36);
}

.dot--glow.dot--green {
    box-shadow: 0 0 0 3px rgba(81, 204, 149, 0.14), 0 0 14px rgba(81, 204, 149, 0.34);
}

.model-select {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 0;
    order: 3;
    z-index: 10;
}

.container-model {
    position: static;
    width: 100%;
    max-width: 420px;
    margin: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.model-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 18px;
}

.model-select__btn {
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 auto;
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.model-select__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.99);
}

.model-select__btn:active {
    transform: scale(0.97);
}

.model-select__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 0 1 auto;
    text-align: center;
    white-space: nowrap;
}

.chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(241, 246, 255, 0.82);
    border-bottom: 2px solid rgba(241, 246, 255, 0.82);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.model-select.is-open .chev {
    transform: rotate(-135deg) translate(-2px, -1px);
}

.model-select__menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    max-width: 560px;
    min-width: 220px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: rgba(17, 24, 36, 0.86);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 8px;
    display: none;
    z-index: 60;
}

.model-select.is-open .model-select__menu {
    display: block;
    animation: pop 0.22s ease-out;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

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

.menu-item {
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-md);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    color: var(--text-soft);
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-item.is-active {
    background: rgba(122, 165, 255, 0.14);
    border-color: rgba(122, 165, 255, 0.32);
}

.menu-item span:last-child {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.card {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(244, 248, 255, 0.1), rgba(244, 248, 255, 0.04));
    border: 1px solid var(--stroke);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.card__header {
    padding: 18px 18px 0;
}

.card-wrap--form {
    display: flex;
    justify-content: center;
    width: 100%;
}

.card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: rgba(248, 252, 255, 0.9);
}

.card--form {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.select-data {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.select-data h2,
.select-data label,
.select-data p,
.select-data .field__label,
.select-data .hint {
    width: 100%;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.card--form .card__header {
    padding: 0;
}

.form {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.field__label {
    margin: 18px 0 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.field:first-child .field__label {
    margin-top: 0;
}

.field__control {
    width: 100%;
    min-height: 58px;
    padding: 0 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.09), rgba(244, 248, 255, 0.04));
    border: 1px solid var(--stroke-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.2s ease;
}

.input,
.select,
.input-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-left: 0;
    margin-right: 0;
}

.field__control:active {
    transform: scale(0.99);
    background: rgba(255, 255, 255, 0.12);
}

.field__control.is-disabled {
    opacity: 0.6;
    filter: grayscale(0.15);
}

.field__left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.token {
    display: inline-flex;
    align-items: center;
    max-width: 200px;
    padding: 11px 14px;
    border-radius: var(--radius-pill);
    background: rgba(242, 247, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 251, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tap {
    padding: 6px 10px;
    margin: 0;
}

.token--placeholder {
    color: rgba(219, 229, 249, 0.76);
}

.field__chev {
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(248, 252, 255, 0.66);
    border-bottom: 2px solid rgba(248, 252, 255, 0.66);
    transform: rotate(45deg);
}

.arrow {
    margin-left: auto;
}

.field__right {
    display: flex;
    align-items: center;
}

.field__meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding-right: 4px;
}

.hint {
    margin-top: 8px;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(216, 226, 247, 0.64);
}

.cta {
    width: 100%;
    height: 58px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta:active {
    transform: scale(0.98);
}

.cta.active {
    background: linear-gradient(180deg, rgba(80, 140, 255, 0.35), rgba(80, 140, 255, 0.15));
    border: 1px solid rgba(120, 170, 255, 0.4);
    box-shadow: 0 0 20px rgba(80, 140, 255, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cta.active:active {
    transform: scale(0.98);
}

.cta__icon {
    display: none;
    width: 18px;
    height: 18px;
    opacity: 0.94;
    flex: 0 0 auto;
}

.cta__text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    text-align: center;
    line-height: 1;
}

.input span,
.input .value,
.input .tap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    position: static;
    width: auto;
    min-width: 0;
}

.pill,
.input {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card__title,
.field__label,
.total__label,
.total__value,
.analyzer__title,
.analyzer__sub,
.faq-panel__title,
.faq__q,
.faq__a,
.modal__title,
.notify2__title,
.notify2__desc,
.benefit__title,
.benefit__desc,
.notify2__note,
.signal__title,
.signal__meta,
.signal__note,
.sigcard__label,
.sigcard__value,
.srow__k,
.srow__v {
    margin-top: 0;
    margin-bottom: 0;
}

.total {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 0;
}

.success-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.total__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
}

.total__value {
    font-size: 14px;
    font-weight: 700;
    color: rgba(100, 255, 180, 0.9);
}

.analyzer {
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, rgba(244, 248, 255, 0.09), rgba(244, 248, 255, 0.04));
    border: 1px solid var(--stroke-soft);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 16px;
}

.analyzer__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-pill);
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(250, 252, 255, 0.94);
    animation: spin 0.9s linear infinite;
}

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

.analyzer__title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(250, 252, 255, 0.9);
}

.analyzer__sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.faq-panel {
    padding-top: 10px;
}

.faq-panel__head {
    padding: 0 2px 10px;
}

.faq-panel__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: rgba(250, 252, 255, 0.9);
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq__item {
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, rgba(244, 248, 255, 0.08), rgba(244, 248, 255, 0.03));
    border: 1px solid var(--stroke-soft);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.faq__q {
    list-style: none;
    padding: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(245, 250, 255, 0.9);
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__qtext {
    flex: 1;
    min-width: 0;
}

.faq__icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(245, 250, 255, 0.78);
    border-bottom: 2px solid rgba(245, 250, 255, 0.78);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

details[open] .faq__icon {
    transform: rotate(-135deg) translate(-2px, -1px);
}

.faq__a {
    padding: 0 14px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
}

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 24;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal--center {
    align-items: center;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 10, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.modal__sheet {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
    background: rgba(14, 20, 30, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-3);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.modal__sheet--dialog {
    border-radius: 24px;
    margin: 0 var(--pad);
    max-height: 78vh;
    overflow: hidden;
    padding-bottom: 12px;
    transform: translateY(10px) scale(0.985);
}

.modal__sheet--notify {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.modal.is-visible .modal__backdrop {
    opacity: 1;
}

.modal.is-visible .modal__sheet {
    transform: translateY(0);
    opacity: 1;
}

.modal.is-visible .modal__sheet--dialog {
    transform: translateY(0) scale(1);
}

.modal__handle {
    width: 46px;
    height: 5px;
    border-radius: var(--radius-pill);
    margin: 10px auto 6px;
    background: rgba(255, 255, 255, 0.26);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.modal__title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(248, 251, 255, 0.95);
}

.modal__close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    display: grid;
    place-items: center;
    font-size: 14px;
    background: rgba(245, 250, 255, 0.07);
    border: 1px solid var(--stroke-soft);
    color: rgba(246, 250, 255, 0.9);
}

.modal__content {
    max-height: calc(78vh - 58px);
    overflow: auto;
    padding: 10px 12px 4px;
}

.market-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.seg-btn {
    min-height: 46px;
    border-radius: var(--radius-md);
    background: rgba(244, 248, 255, 0.07);
    border: 1px solid var(--stroke-soft);
    color: rgba(245, 250, 255, 0.88);
    font-weight: 600;
}

.seg-btn.is-active {
    background: rgba(123, 157, 220, 0.22);
    border-color: rgba(162, 190, 243, 0.44);
}

.market-note,
.expiry-note {
    padding: 0 4px 10px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(225, 234, 250, 0.72);
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.search {
    flex: 1;
    min-height: 46px;
    border-radius: var(--radius-md);
    padding: 0 13px;
    background: rgba(244, 248, 255, 0.07);
    border: 1px solid var(--stroke-soft);
    color: rgba(248, 251, 255, 0.93);
    outline: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.search::placeholder {
    color: rgba(215, 226, 247, 0.66);
}

.clear-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(244, 248, 255, 0.08);
    border: 1px solid var(--stroke-soft);
    color: rgba(247, 251, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
}

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
}

.chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: rgba(244, 248, 255, 0.07);
    border: 1px solid var(--stroke-soft);
    color: rgba(244, 249, 255, 0.84);
    font-size: 12px;
    font-weight: 600;
}

.chip.is-active {
    background: rgba(123, 157, 220, 0.2);
    border-color: rgba(162, 190, 243, 0.42);
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list--sections {
    gap: 14px;
}

.list-section__title {
    margin: 8px 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(209, 221, 246, 0.58);
}

.list-item {
    width: 100%;
    min-height: 56px;
    padding: 10px 13px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(244, 248, 255, 0.08);
    border: 1px solid var(--stroke-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.16s ease, border-color 0.2s ease;
}

.list-item:active {
    transform: scale(0.99);
}

.list-item.is-selected {
    background: rgba(123, 157, 220, 0.2);
    border-color: rgba(166, 194, 244, 0.46);
}

.list-item__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.list-item__title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(247, 251, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item__sub {
    font-size: 12px;
    color: var(--text-muted);
}

.list-item__right {
    font-size: 12px;
    font-weight: 600;
    color: rgba(222, 234, 255, 0.74);
    white-space: nowrap;
}

.pair.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.4);
}

.pair-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
}

.empty {
    margin: 14px 0 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(244, 248, 255, 0.06);
    border: 1px solid var(--stroke-soft);
    color: var(--text-soft);
    font-size: 13px;
}

.signal {
    padding: 18px 16px 16px;
    text-align: center;
}

.signal__title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(233, 241, 255, 0.78);
}

.signal__big {
    margin: 2px 0 8px;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 14px 26px rgba(0, 0, 0, 0.52);
}

.signal__meta {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(220, 231, 250, 0.74);
}

.signal__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 12px;
}

.sigcard {
    border-radius: 16px;
    background: rgba(244, 248, 255, 0.07);
    border: 1px solid var(--stroke-soft);
    padding: 10px;
    text-align: left;
}

.sigcard__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(214, 226, 247, 0.65);
}

.sigcard__value {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(247, 251, 255, 0.9);
}

.signal__details {
    margin-bottom: 14px;
    padding: 10px;
    text-align: left;
    border-radius: 16px;
    background: rgba(244, 248, 255, 0.07);
    border: 1px solid var(--stroke-soft);
}

.srow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 2px;
}

.srow + .srow {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.srow__k {
    font-size: 12px;
    font-weight: 600;
    color: rgba(220, 230, 248, 0.7);
}

.srow__v {
    font-size: 12px;
    font-weight: 700;
    color: rgba(247, 251, 255, 0.9);
    white-space: nowrap;
}

.signal__actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    min-height: 50px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--stroke-soft);
    transition: transform 0.18s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: linear-gradient(160deg, rgba(126, 158, 218, 0.56), rgba(74, 102, 157, 0.64));
    color: rgba(250, 252, 255, 0.95);
}

.btn--ghost {
    background: rgba(244, 248, 255, 0.07);
    color: rgba(240, 247, 255, 0.88);
}

.signal__note {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(214, 225, 246, 0.62);
}

.signal.is-buy .signal__big {
    color: var(--green);
    text-shadow: 0 16px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(81, 204, 149, 0.35);
}

.signal.is-sell .signal__big {
    color: var(--red);
    text-shadow: 0 16px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 97, 112, 0.34);
}

.notify2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notify2__body {
    padding: 0 4px 2px;
}

.notify2__title {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    color: rgba(250, 253, 255, 0.95);
}

.notify2__desc {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(236, 244, 255, 0.9);
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(244, 248, 255, 0.1), rgba(244, 248, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.benefit__badge {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: rgba(247, 251, 255, 0.96);
    background: rgba(123, 157, 220, 0.3);
    border: 1px solid rgba(166, 194, 244, 0.5);
}

.benefit__title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(248, 252, 255, 0.93);
}

.benefit__desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(227, 237, 255, 0.83);
}

.notify2__footer {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notify2__note {
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(230, 240, 255, 0.84);
}

.notify2__btn {
    min-height: 52px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(250, 252, 255, 0.95);
    background: linear-gradient(160deg, rgba(126, 158, 218, 0.56), rgba(74, 102, 157, 0.64));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 30px rgba(20, 31, 54, 0.46);
    transition: transform 0.2s ease;
}

.notify2__btn:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .screen,
    .topbar {
        max-width: 430px;
        margin: 0 auto;
    }
}

/* === FORCE ALIGN FIX === */

.select-data,
.select-data * {
  box-sizing: border-box !important;
}

/* карточка */
.select-data {
  max-width: 420px !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

/* заголовки и текст */
.select-data h2,
.select-data label,
.select-data p {
  width: 100% !important;
  text-align: left !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
}

/* инпут контейнер */
.select-data .input,
.select-data .select,
.select-data .input-wrapper {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  padding: 0 16px !important;
  margin: 0 0 16px 0 !important;

  transform: none !important;
  left: auto !important;
}

/* кнопка внутри */
.select-data .input span,
.select-data .input .value {
  margin: 0 !important;
  padding: 0 !important;
}

.select-data .input .tap {
  margin: 0 !important;
  padding: 6px 10px !important;
  min-width: 0 !important;
  width: auto !important;
  position: static !important;
}

/* стрелка */
.select-data .arrow {
  margin-left: auto !important;
}

/* кнопка */
.select-data button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* success */
.select-data .success-row {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* === SELECT-DATA GRID SYSTEM FIX === */
.select-data {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
}

.select-data .form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}

.select-data .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-data .field__label {
  font-size: 14px;
  opacity: 0.7;
  margin: 0;
}

.select-data .field__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  box-sizing: border-box;
  margin: 0;
}

.select-data .field__left {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: auto;
}

.select-data .field__left span {
  margin: 0;
  padding: 0;
}

.select-data .field__right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.select-data .hint {
  font-size: 12px;
  opacity: 0.6;
  margin-top: -4px;
}

.select-data .cta {
  margin-top: 8px;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-data .success-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.select-data .field__control,
.select-data .field__left,
.select-data .field__right {
  transform: none !important;
  left: auto !important;
}

/* === PREMIUM FINTECH POLISH === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.06);
}

.field__label {
  opacity: 0.7;
  letter-spacing: 0.3px;
}

.hint {
  opacity: 0.5;
  line-height: 1.4;
}

.card,
.field__control,
.cta {
  transition: all 0.25s ease;
}

.cta {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.cta:active::after {
  opacity: 1;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(80, 140, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(80, 140, 255, 0.4);
  }
}

.cta.active {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.confidence-bar {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px auto 8px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8cff, #60a5fa);
  box-shadow: 0 0 10px rgba(80, 140, 255, 0.4);
  position: relative;
  overflow: hidden;
  animation: barGlow 3s ease-in-out infinite;
  transition: width 0.6s ease;
}

.confidence-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@keyframes barGlow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(80, 140, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(80, 140, 255, 0.5);
  }
}

.total__value {
  transition: all 0.3s ease;
}

.total__value.active {
  color: #4ade80;
  transform: scale(1.05);
}

/* === HIDE TOP PROGRESS STRIP === */
progress,
.progress,
.progress-bar,
.loader,
.loading,
.bar,
[role="progressbar"] {
  display: none !important;
}

/* === CONFIDENCE BAR ORDER/POSITION FIX === */
.wallet-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wallet-panel__value {
  order: 1;
}

.confidence-bar {
  order: 2;
  position: static !important;
  transform: none !important;
  top: auto !important;
}

.ai-load {
  order: 3;
}

/* === PREMIUM UI ENHANCEMENTS === */
.wallet-panel__value {
  text-shadow: 0 0 10px rgba(120, 180, 255, 0.25), 0 0 30px rgba(120, 180, 255, 0.15);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

.model-dot {
  box-shadow: 0 0 6px currentColor, 0 0 14px currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.confidence-fill {
  background: linear-gradient(90deg, #4da3ff, #6ecbff, #4da3ff);
  background-size: 200% 100%;
  animation: flow 3s linear infinite;
}

@keyframes flow {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.cta.active {
  box-shadow: 0 0 20px rgba(100, 160, 255, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.cta {
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s;
}

.cta:hover::after {
  left: 100%;
}

.card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.field__control {
  transition: all 0.25s ease;
}

.field__control:hover {
  box-shadow: 0 0 12px rgba(120, 160, 255, 0.15);
}

.field__control:active {
  transform: scale(0.98);
}

.total__value {
  text-shadow: 0 0 8px rgba(80, 255, 180, 0.3);
}

.total__value::before {
  content: "●";
  margin-right: 6px;
  color: #4cffb0;
}

body::before {
  animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-2%, -2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

.card,
.cta,
.field__control {
  transition: all 0.3s ease;
}

/* === IOS CTA / BACKGROUND REFINEMENTS === */
body::before {
  animation: none !important;
  transform: none !important;
}

.cta.active {
  animation: none !important;
  background: linear-gradient(180deg, #4da3ff, #2f7cff);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(60, 120, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.cta:active {
  transform: scale(0.97);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4);
}

.cta:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* === PREMIUM IOS GLASS REFINEMENTS === */
.wallet-panel__value {
  background: linear-gradient(180deg, #ffffff, #cfe6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(120, 180, 255, 0.35), 0 0 40px rgba(120, 180, 255, 0.15);
}

.model-dot {
  box-shadow: 0 0 8px currentColor, 0 0 18px currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

.confidence-bar {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.confidence-fill {
  background: linear-gradient(90deg, #4da3ff, #7fd6ff, #4da3ff);
  background-size: 200% 100%;
  animation: flow 3s linear infinite;
}

@keyframes flow {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 25px 50px rgba(0, 0, 0, 0.45);
}

.field__control {
  transition: all 0.25s ease;
}

.field__control:hover {
  box-shadow: 0 0 14px rgba(120, 160, 255, 0.2);
}

.field__control.active {
  border: 1px solid rgba(100, 160, 255, 0.5);
  box-shadow: 0 0 18px rgba(100, 160, 255, 0.25);
}

.field__control:active {
  transform: scale(0.98);
}

.field__label {
  letter-spacing: 0.4px;
  opacity: 0.85;
}

.hint {
  opacity: 0.6;
}

.card,
.field__control {
  transition: all 0.3s ease;
}

/* === CENTER ANALYZING OVERLAY === */
.analyzer,
.analyzing,
#analyzer,
#analyzing,
.loading,
.analysis-state {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  border-radius: 18px;
  background: rgba(20, 30, 50, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(80, 140, 255, 0.25), 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.analyzer.active,
.analyzing.active,
#analyzer.active,
#analyzing.active,
.loading.active,
.analysis-state.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

body.analysis-active::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
}

.analyzer .spinner,
.analyzing .spinner,
.loading .spinner,
.analysis-state .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top: 3px solid #6fb1ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 12px rgba(100, 160, 255, 0.4);
}

.analyzing strong,
.analyzing-title,
.analyzer__title {
  font-size: 16px;
  font-weight: 600;
  color: #e8f2ff;
}

.analyzing span,
.analyzing-sub,
.analyzer__sub {
  font-size: 13px;
  opacity: 0.7;
}

.analyzer,
.analyzing {
  animation: fadeInScale 0.25s ease;
}

.analyzer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.analyzing-title,
.analyzing-sub,
.analyzer__title,
.analyzer__sub {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* === PREMIUM MICRO EFFECTS === */
.card {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card.active {
  box-shadow: 0 0 40px rgba(80, 140, 255, 0.12), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.field__control {
  transition: all 0.25s ease;
}

.field__control:active,
.field__control:focus {
  box-shadow: 0 0 0 1px rgba(100, 160, 255, 0.4), 0 0 18px rgba(80, 140, 255, 0.25);
  transform: scale(0.995);
}

.total__value::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35ff9c;
  margin-right: 8px;
  box-shadow: 0 0 10px rgba(50, 255, 150, 0.6);
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 255, 150, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(50, 255, 150, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 255, 150, 0);
  }
}

.cta {
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
}

.cta.active::before {
  animation: sweep 2.5s infinite;
}

@keyframes sweep {
  0% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

.wallet-panel__value {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 25px rgba(120, 180, 255, 0.25);
}

/* === PREMIUM GLASS REFRACTION CARD === */
.card {
  position: relative;
  overflow: hidden;
  background: rgba(20, 30, 50, 0.6);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(0, 0, 0, 0.25) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(200px circle at var(--x, 50%) var(--y, 50%), rgba(120, 180, 255, 0.12), transparent 60%);
  opacity: var(--card-light-opacity, 0);
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card.active {
  box-shadow: 0 0 40px rgba(80, 140, 255, 0.12), 0 25px 70px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
