:root {
    color-scheme: light;
    --background: #f6f7fb;
    --text-primary: #101828;
    --text-secondary: #667085;
    --text-soft: #8a90a6;
    --accent-purple: #7b4dff;
    --accent-violet: #9b5cff;
    --accent-pink: #e78bff;
    --accent-blue: #8aa8ff;
    --danger: #e5484d;
    --glass: rgba(255,255,255,.22);
    --glass-strong: rgba(255,255,255,.42);
    --glass-soft: rgba(255,255,255,.14);
    --glass-border: rgba(255,255,255,.54);
    --line: rgba(92,96,128,.09);
    --shadow: rgba(52,36,104,.07);
    --screen-padding: clamp(16px, 4.5%, 26px);
    --gap: 16px;
    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --radius-xl: 38px;
    --pill: 999px;
    --nav-height: 78px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #11131b;
    --text-primary: #f6f7fb;
    --text-secondary: #a7adbf;
    --text-soft: #7f8497;
    --glass: rgba(35,38,52,.42);
    --glass-strong: rgba(48,51,68,.62);
    --glass-soft: rgba(255,255,255,.08);
    --glass-border: rgba(255,255,255,.16);
    --line: rgba(255,255,255,.09);
    --shadow: rgba(0,0,0,.32);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--background);
}

body {
    width: 100%;
    height: 100%;
    min-width: 320px;
    margin: 0;
    overflow: hidden;
    color: var(--text-primary);
    font-family: var(--font);
    background:
        radial-gradient(circle at 16% 0%, rgba(255,255,255,.95), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(231,139,255,.11), transparent 24%),
        radial-gradient(circle at 12% 100%, rgba(138,168,255,.10), transparent 32%),
        linear-gradient(180deg, #fbfcff 0%, #f6f7fb 56%, #f1f2f7 100%);
}

.liquid-glass-filters {
    position: fixed;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at 18% 0%, rgba(123,77,255,.14), transparent 25%),
        radial-gradient(circle at 86% 12%, rgba(231,139,255,.10), transparent 24%),
        linear-gradient(180deg, #171927 0%, var(--background) 100%);
}

button,
a,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-root {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.boot-screen {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
}

.boot-screen img {
    width: 120px;
}

.boot-screen span {
    font-weight: 720;
    letter-spacing: .28em;
}

.app-shell {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: min(100%, 450px);
    height: 100dvh;
    min-height: 0;
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top)) var(--screen-padding) calc(8px + env(safe-area-inset-bottom));
    overflow: hidden;
}

.content-viewport {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: var(--gap);
    overflow-y: auto;
    overflow-x: clip;
    padding-bottom: calc(var(--nav-height) + 22px + env(safe-area-inset-bottom));
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.app-shell.no-bottom-nav .content-viewport {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.content-viewport::-webkit-scrollbar {
    display: none;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
}

.brand-row {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(123,77,255,.22));
}

.brand-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 720;
    letter-spacing: .30em;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.sub-header {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    align-items: center;
    min-height: 54px;
}

.sub-header-title {
    margin: 0;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 30px;
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-header-spacer {
    width: 50px;
    height: 50px;
}

.round-button,
.avatar,
.icon-button,
.copy-button {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--glass-border);
    color: #43475c;
    background:
        linear-gradient(145deg, rgba(255,255,255,.44), rgba(255,255,255,.16)),
        radial-gradient(circle at 30% 12%, rgba(255,255,255,.54), transparent 42%);
    box-shadow:
        0 12px 28px rgba(52,36,104,.07),
        inset 0 0 0 1px rgba(255,255,255,.22),
        inset 0 1px 1px rgba(255,255,255,.58),
        inset 0 -10px 22px rgba(112,95,164,.05);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.round-button,
.avatar,
.icon-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.sub-header .icon-button {
    width: 50px;
    height: 50px;
}

.avatar,
.profile-avatar {
    color: #fff;
    font-weight: 760;
    background:
        linear-gradient(145deg, rgba(255,255,255,.34), transparent 44%),
        radial-gradient(circle at 64% 18%, rgba(231,139,255,.82), transparent 38%),
        linear-gradient(145deg, #c17cff 0%, var(--accent-purple) 58%, #6735df 100%);
    box-shadow:
        0 18px 34px rgba(123,77,255,.23),
        inset 0 0 0 1px rgba(255,255,255,.42),
        inset 0 1px 2px rgba(255,255,255,.68);
}

.avatar {
    font-size: 24px;
}

.avatar .ui-icon {
    width: 27px;
    height: 27px;
    stroke-width: 1.9;
}

.page-title,
.sub-page-lead {
    display: grid;
    gap: 7px;
}

.page-title h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 38px;
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: 0;
}

.page-title p,
.sub-page-lead p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.25;
}

.wave {
    font-size: .76em;
}

.screen-stack {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 12px;
}

.screen-stack::before {
    content: "";
    position: absolute;
    inset: 44px 0 42px;
    z-index: 0;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 42px;
    background:
        radial-gradient(circle at 18% 8%, rgba(255,255,255,.28), transparent 34%),
        radial-gradient(circle at 92% 28%, rgba(231,139,255,.12), transparent 34%),
        radial-gradient(circle at 12% 88%, rgba(138,168,255,.10), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.42),
        inset 0 -1px 1px rgba(117,96,170,.06);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    opacity: .66;
    pointer-events: none;
}

.screen-stack::after {
    content: "";
    position: absolute;
    inset: 26px 8px 22px;
    z-index: 0;
    border-radius: 38px;
    background:
        linear-gradient(115deg, transparent 0 16%, rgba(255,255,255,.20) 34%, transparent 54%),
        linear-gradient(180deg, transparent, rgba(231,139,255,.07), transparent);
    filter: blur(12px);
    opacity: .42;
    pointer-events: none;
}

.screen-stack > * {
    position: relative;
    z-index: 1;
}

.glass-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255,255,255,.42), rgba(255,255,255,.18)),
        radial-gradient(circle at 18% 0%, rgba(255,255,255,.48), transparent 34%),
        radial-gradient(circle at 96% 14%, rgba(231,139,255,.08), transparent 30%),
        radial-gradient(circle at 12% 100%, rgba(138,168,255,.06), transparent 34%);
    box-shadow:
        0 18px 46px var(--shadow),
        inset 0 0 0 1px rgba(255,255,255,.22),
        inset 0 1px 1px rgba(255,255,255,.64),
        inset 0 -16px 30px rgba(124,101,180,.06);
    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.24);
    pointer-events: none;
}

.glass-card::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 8px;
    height: 38%;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,.28), transparent),
        linear-gradient(115deg, transparent, rgba(231,139,255,.08), transparent);
    opacity: .54;
    pointer-events: none;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.subscription-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 204px;
    padding: 22px;
    border-radius: var(--radius-xl);
}

.subscription-copy {
    min-width: 0;
}

.subscription-copy p,
.subscription-copy span,
.mini-card p,
.connection-key-card p,
.total-subscription-card p,
.balance-summary-card p,
.ref-link-card p,
.ref-stat-card p {
    margin: 0;
    color: var(--text-secondary);
}

.subscription-copy h2 {
    margin: 6px 0 16px;
    color: var(--accent-purple);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.subscription-copy strong {
    display: block;
    margin-top: 5px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 760;
}

.soft-icon,
.wallet-orb {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.50);
    border-radius: 20px;
    color: var(--accent-purple);
    background:
        linear-gradient(145deg, rgba(255,255,255,.44), rgba(255,255,255,.16)),
        radial-gradient(circle at 70% 18%, rgba(231,139,255,.22), transparent 42%);
    box-shadow:
        0 12px 24px rgba(52,36,104,.07),
        inset 0 1px 1px rgba(255,255,255,.62),
        inset 0 -12px 22px rgba(123,77,255,.05);
}

.traffic-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 142px;
    height: 142px;
    flex: 0 0 auto;
    border-radius: 50%;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.46) 0 53%, transparent 54%),
        conic-gradient(from -22deg, var(--accent-pink) 0 20%, var(--accent-purple) 20% 72%, rgba(202,193,232,.56) 72% 100%);
    box-shadow:
        inset 0 0 18px rgba(255,255,255,.66),
        inset 0 -22px 28px rgba(123,77,255,.09),
        0 16px 28px rgba(110,70,205,.10);
}

.traffic-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.48);
    background: rgba(255,255,255,.20);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.58);
}

.traffic-ring strong,
.traffic-ring span {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
}

.traffic-ring strong {
    transform: translateY(-12px);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.traffic-ring span {
    transform: translateY(30px);
    color: var(--text-secondary);
    font-size: 15px;
}

.two-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-card {
    min-height: 168px;
    padding: 18px 16px 14px;
    text-align: center;
}

.line-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    color: var(--accent-purple);
}

.mini-card strong {
    display: block;
    margin: 9px 0 8px;
    color: var(--text-primary);
    font-size: 34px;
    font-weight: 780;
    line-height: 1;
}

.mini-card small {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 520;
}

.inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 0 0;
    border: 1px solid transparent;
    border-top: 1px solid var(--line);
    color: var(--accent-purple);
    background: transparent;
    font-size: 16px;
    font-weight: 560;
}

.connection-key-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 14px 14px 14px 20px;
    border-radius: var(--radius-lg);
}

.connection-key-card strong {
    display: block;
    overflow: hidden;
    margin-top: 8px;
    color: var(--text-primary);
    font-size: 20px;
    letter-spacing: .28em;
    white-space: nowrap;
}

.copy-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--accent-purple);
    flex: 0 0 auto;
}

.liquid-button {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 14px 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 14% 10%, rgba(255,255,255,.46), transparent 34%),
        linear-gradient(135deg, rgba(231,139,255,.94) 0%, rgba(123,77,255,.96) 52%, rgba(138,168,255,.94) 100%);
    box-shadow:
        0 18px 36px rgba(104,68,210,.22),
        inset 0 0 0 1px rgba(255,255,255,.34),
        inset 0 1px 1px rgba(255,255,255,.70),
        inset 0 -28px 50px rgba(35,22,124,.22);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.liquid-button.loading {
    cursor: wait;
    opacity: .88;
}

.liquid-button.loading .liquid-button-icon {
    animation: paymentPulse 1s ease-in-out infinite;
}

@keyframes paymentPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(.94);
    }
}

.liquid-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(255,255,255,.28), transparent 42%),
        radial-gradient(circle at 94% 0%, rgba(255,255,255,.24), transparent 32%);
    pointer-events: none;
}

.liquid-button > * {
    position: relative;
    z-index: 1;
}

.liquid-button-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,.20);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.44),
        inset 0 1px 1px rgba(255,255,255,.48);
}

.liquid-button strong,
.liquid-button small {
    display: block;
}

.liquid-button strong {
    font-size: 25px;
    font-weight: 760;
    line-height: 1.08;
}

.liquid-button small {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.18;
    opacity: .9;
}

.balance-summary-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    min-height: 138px;
    padding: 20px;
}

.balance-summary-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.balance-summary-card small {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.selector-card,
.device-stepper-card,
.total-subscription-card,
.topup-card,
.history-card,
.settings-card,
.ref-link-card,
.how-card,
.recent-card,
.notification-detail-card {
    padding: 20px;
}

.glass-card h2,
.section-line h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.14;
}

.period-options {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.period-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: rgba(255,255,255,.14);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.16),
        inset 0 1px 1px rgba(255,255,255,.34);
}

.period-option.active {
    border-color: rgba(123,77,255,.42);
    background:
        linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.14)),
        radial-gradient(circle at 98% 0%, rgba(231,139,255,.10), transparent 36%);
    box-shadow:
        0 10px 22px rgba(123,77,255,.08),
        inset 0 0 0 1px rgba(255,255,255,.28);
}

.radio-dot {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(102,112,133,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.46);
}

.period-option.active .radio-dot {
    border-color: rgba(123,77,255,.44);
    background: radial-gradient(circle, var(--accent-purple) 0 48%, transparent 50%);
}

.period-option em {
    padding: 5px 9px;
    border-radius: var(--pill);
    color: var(--accent-purple);
    background: rgba(255,255,255,.22);
    font-size: 14px;
    font-style: normal;
}

.period-option b {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 760;
}

.section-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-line span,
.pricing-note {
    color: var(--text-secondary);
}

.pricing-note {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.3;
}

.stepper {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    margin-top: 14px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.14);
}

.stepper button,
.device-pips button,
.amount-grid button {
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background: rgba(255,255,255,.18);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.14),
        inset 0 1px 1px rgba(255,255,255,.34);
}

.amount-grid button {
    white-space: nowrap;
}

.stepper button {
    color: var(--accent-purple);
    font-size: 25px;
}

.stepper strong {
    text-align: center;
    font-size: 19px;
    font-weight: 650;
}

.device-pips,
.amount-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.device-pips button.active,
.amount-grid button.active {
    color: #fff;
    border-color: rgba(255,255,255,.54);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    box-shadow:
        0 10px 22px rgba(123,77,255,.13),
        inset 0 1px 1px rgba(255,255,255,.44);
}

.total-subscription-card h2 {
    margin: 5px 0;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.total-subscription-card span {
    display: block;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    margin-top: 12px;
    padding: 8px 8px 8px 16px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.14);
}

.copy-field span {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ref-stat-card {
    min-height: 150px;
    padding: 18px;
}

.ref-stat-card p {
    max-width: calc(100% - 48px);
    line-height: 1.18;
}

.ref-stat-card strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--accent-purple);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.ref-stat-card > .ui-icon {
    position: absolute;
    top: 18px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--accent-purple);
    border-radius: 18px;
    background: rgba(255,255,255,.16);
    opacity: .88;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 16px 0 14px;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.steps span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    color: var(--accent-purple);
    background: rgba(255,255,255,.18);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.42);
}

.terms {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.35;
}

.list-box,
.settings-list,
.history-list {
    display: grid;
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.list-row,
.settings-row,
.history-row {
    display: grid;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--line);
    color: var(--text-primary);
    background: transparent;
    text-align: left;
}

.list-row:last-child,
.settings-row:last-child,
.history-row:last-child {
    border-bottom: 0;
}

.list-row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 0 12px;
}

.list-row span,
.history-row time,
.settings-row span,
.settings-row small {
    color: var(--text-secondary);
}

.recent-card .liquid-button {
    margin-top: 14px;
}

.profile-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 20px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    font-size: 40px;
}

.profile-card h2 {
    margin: 0 0 4px;
    font-size: 30px;
    line-height: 1.05;
}

.profile-card p {
    margin: 0 0 10px;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--pill);
    color: var(--accent-purple);
    background: rgba(255,255,255,.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}

.status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-purple);
}

.settings-card {
    padding: 16px;
}

.settings-card h2 {
    margin: 0 0 10px 4px;
    font-size: 20px;
    font-weight: 640;
}

.settings-row {
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 0 10px;
}

.settings-row strong {
    font-weight: 620;
}

.settings-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--accent-purple);
    border-radius: 12px;
    background: rgba(255,255,255,.18);
}

.notification-row {
    grid-template-columns: 40px minmax(0, 1fr) 52px;
    min-height: 70px;
}

.notification-row small {
    grid-column: 2 / 3;
    min-width: 0;
    margin-top: -10px;
    font-size: 13px;
    line-height: 1.2;
}

.notification-row .toggle {
    justify-self: end;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    border-radius: var(--pill);
    background: rgba(111,116,137,.14);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.30),
        inset 0 1px 1px rgba(255,255,255,.28);
}

.toggle i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 12px rgba(20,20,30,.18);
    transition: transform .18s ease;
}

.toggle.active {
    background: linear-gradient(135deg, var(--accent-purple), #6d5dff);
}

.toggle.active i {
    transform: translateX(20px);
}

.logout-card {
    padding: 8px;
}

.logout-button {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    border: 0;
    color: var(--danger);
    background: transparent;
    text-align: left;
    font-size: 18px;
}

.input-row,
.pay-method {
    display: grid;
    grid-template-columns: 34px auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 60px;
    margin-top: 12px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: rgba(255,255,255,.12);
}

.input-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    background: transparent;
    text-align: right;
}

.pay-method {
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    text-align: left;
}

.topup-card .liquid-button {
    margin-top: 14px;
}

.history-row {
    grid-template-columns: 82px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 0 12px;
}

.history-row strong.positive {
    color: var(--accent-purple);
}

.notice-bell {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    color: var(--accent-purple);
    border-radius: 50%;
    background: rgba(255,255,255,.30);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.64);
}

.notification-detail-card p,
.notification-detail-card span {
    color: var(--text-secondary);
}

.notification-detail-card strong {
    display: block;
    margin: 6px 0 8px;
}

.notification-detail-card .liquid-button {
    margin-top: 16px;
}

.secondary-button {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: var(--radius-md);
    color: var(--accent-purple);
    background: rgba(255,255,255,.24);
}

.bottom-nav {
    --glass-x: 50%;
    --glass-y: 50%;
    --glass-edge: 0;
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: min(calc(100% - (var(--screen-padding) * 2) - 2px), 390px);
    min-height: 78px;
    padding: 7px;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--pill);
    background: rgba(240,249,255,.08);
    box-shadow:
        0 6px 6px rgba(0,0,0,.20),
        0 0 20px rgba(0,0,0,.10),
        0 14px 34px rgba(0,0,0,.34),
        0 22px 44px rgba(57,42,130,.16),
        0 0 0 1px rgba(16,18,32,.10),
        inset 0 1px 0 rgba(255,255,255,.20);
    backdrop-filter: blur(10px) saturate(1.7) contrast(1.12);
    -webkit-backdrop-filter: blur(10px) saturate(1.7) contrast(1.12);
    overflow: hidden;
    isolation: isolate;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.bottom-nav::before {
    content: none;
}

.liquid-glass-filter-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.nav-glass-filter-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.liquid-glass-surface,
.liquid-glass-main-wash,
.liquid-glass-main-rim,
.liquid-glass-active-wash,
.liquid-glass-active-rim {
    position: absolute;
    pointer-events: none;
}

.liquid-glass-surface {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: inherit;
    background: rgba(255,255,255,.01);
    -webkit-backdrop-filter: blur(3px) saturate(1.45) contrast(1.08);
    backdrop-filter: blur(3px) saturate(1.45) contrast(1.08);
    filter: url("#glass-distortion");
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        inset 0 -1px 0 rgba(255,255,255,.05);
}

.liquid-glass-main-wash {
    z-index: 2;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    background: rgba(255,255,255,.22);
    box-shadow: none;
}

.liquid-glass-main-rim {
    z-index: 5;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow:
        inset 2px 2px 1px 0 rgba(255,255,255,.44),
        inset -1px -1px 1px 1px rgba(255,255,255,.30),
        inset 0 -10px 20px -18px rgba(40,30,82,.38);
    opacity: .92;
}

.bottom-nav.is-touching {
    background: rgba(240,249,255,.08);
}

.bottom-nav.is-touching::before {
    opacity: .42;
}

.nav-active-capsule {
    position: absolute;
    top: var(--lg-lens-inset, 7px);
    bottom: var(--lg-lens-inset, 7px);
    left: 0;
    z-index: 3;
    width: var(--lg-lens-width, calc((100% - 22px) / 3));
    overflow: hidden;
    border: 0;
    border-radius: var(--pill);
    opacity: var(--lg-lens-opacity, 0);
    background: rgba(255,255,255,.023);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.31),
        inset 0 -1px 0 rgba(255,255,255,.065),
        0 4px 14px rgba(0,0,0,.055);
    transform: translate3d(var(--lg-lens-x, 7px), 0, 0);
    transition:
        transform 500ms cubic-bezier(.2, .9, .2, 1),
        width 500ms cubic-bezier(.2, .9, .2, 1),
        opacity 160ms ease;
    will-change: transform, width;
    backdrop-filter: blur(22px) saturate(178%);
    -webkit-backdrop-filter: blur(22px) saturate(178%);
    pointer-events: none;
}

.liquid-glass-active-wash {
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(90% 150% at 15% -30%, rgba(255,255,255,.18), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.012) 52%, rgba(255,255,255,.03));
}

.liquid-glass-active-rim {
    z-index: 1;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background:
        linear-gradient(122deg, rgba(255,255,255,.92), rgba(96,220,255,.34) 23%, rgba(255,255,255,.10) 49%, rgba(255,150,216,.29) 77%, rgba(255,255,255,.76));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .76;
}

.bottom-nav.nav-none .nav-active-capsule {
    opacity: 0;
}

.nav-item {
    position: relative;
    isolation: isolate;
    z-index: 10;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    min-height: 62px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    color: rgba(255,255,255,.78);
    background: transparent;
    font-size: 13px;
    font-weight: 680;
    letter-spacing: 0;
    text-shadow:
        0 1px 2px rgba(0,0,0,.62),
        0 0 10px rgba(0,0,0,.18);
    transition: color .18s ease, transform .18s ease, filter .18s ease;
}

.nav-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: transparent;
    opacity: 0;
    transition: opacity .18s ease;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 11px;
    bottom: 11px;
    width: 1px;
    border-radius: var(--pill);
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.08), transparent);
    opacity: .28;
    pointer-events: none;
}

.nav-item:first-child::after {
    display: none;
}

.nav-item:active {
    transform: scale(.985);
}

.nav-item.active {
    color: #9C73FF;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    font-weight: 730;
    text-shadow:
        0 1px 2px rgba(0,0,0,.48),
        0 0 12px rgba(48,32,96,.18);
}

.nav-item.active::before {
    opacity: 0;
    background:
        radial-gradient(circle at 50% 14%, rgba(255,255,255,.06), transparent 44%),
        linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent);
}

.nav-item .ui-icon {
    width: 30px;
    height: 30px;
    justify-self: center;
    filter:
        drop-shadow(0 1px 2px rgba(0,0,0,.46))
        drop-shadow(0 0 9px rgba(0,0,0,.16));
    stroke-width: 2.15;
}

.nav-item[data-screen="invite"] .ui-icon {
    transform: translateX(2px);
}

.nav-item span {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item.active span {
    background: none;
    color: inherit;
}

.nav-item.active .ui-icon {
    filter:
        drop-shadow(0 1px 2px rgba(0,0,0,.38))
        drop-shadow(0 0 10px rgba(48,32,96,.18));
}

@media (prefers-reduced-motion: reduce) {
    .nav-active-capsule {
        transition-duration: 1ms;
    }
}

.toast-host {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-height) + 32px + env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    justify-items: center;
    gap: 8px;
    width: min(calc(100% - 32px), 420px);
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.66);
    border-radius: var(--pill);
    color: var(--text-primary);
    background: rgba(255,255,255,.52);
    box-shadow: 0 18px 40px rgba(40,20,90,.12);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    animation: toastIn .22s ease both;
}

.toast.leaving {
    animation: toastOut .24s ease both;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(12px); }
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    align-items: end;
    padding: 16px;
    background: rgba(32,28,50,.18);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.sheet-card {
    position: relative;
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    background:
        linear-gradient(145deg, rgba(255,255,255,.66), rgba(255,255,255,.32)),
        radial-gradient(circle at 14% 0%, rgba(255,255,255,.72), transparent 36%);
    box-shadow:
        0 24px 70px rgba(40,20,90,.18),
        inset 0 0 0 1px rgba(255,255,255,.34),
        inset 0 1px 1px rgba(255,255,255,.86),
        inset 0 -20px 36px rgba(122,98,178,.12);
    backdrop-filter: blur(34px) saturate(180%);
    -webkit-backdrop-filter: blur(34px) saturate(180%);
}

.sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(255,255,255,.34);
    font-size: 24px;
}

.sheet-card h2 {
    margin: 0 44px 8px 0;
    font-size: 30px;
    line-height: 1.05;
}

.sheet-card p {
    margin: 0;
    color: var(--text-secondary);
}

.platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.platform-row span {
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: var(--pill);
    color: var(--text-secondary);
    background: rgba(255,255,255,.26);
}

.platform-row span.active {
    color: #fff;
    border-color: rgba(255,255,255,.68);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
}

.connect-steps {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--text-primary);
}

.error-card {
    padding: 20px;
}

.error-card h1 {
    margin: 0 0 8px;
}

.ui-icon {
    display: block;
    width: 24px;
    height: 24px;
    color: currentColor;
    flex: 0 0 auto;
    overflow: visible;
}

@media (max-width: 430px) {
    :root {
        --gap: 12px;
        --screen-padding: 18px;
    }

    .app-shell {
        padding-top: calc(12px + env(safe-area-inset-top));
    }

    .app-header {
        min-height: 56px;
        gap: 10px;
    }

    .brand-row {
        gap: 10px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-row span {
        font-size: 15px;
        letter-spacing: .22em;
    }

    .round-button,
    .avatar,
    .icon-button {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
    }

    .page-title h1 {
        font-size: 34px;
    }

    .page-title p,
    .sub-page-lead p {
        font-size: 17px;
    }

    .subscription-card {
        min-height: 178px;
        padding: 17px;
    }

    .subscription-copy h2 {
        margin-bottom: 12px;
        font-size: 33px;
    }

    .subscription-copy strong {
        font-size: 18px;
    }

    .soft-icon,
    .wallet-orb {
        width: 54px;
        height: 54px;
        margin-bottom: 8px;
    }

    .traffic-ring {
        width: 116px;
        height: 116px;
    }

    .traffic-ring strong {
        font-size: 35px;
    }

    .traffic-ring span {
        transform: translateY(27px);
        font-size: 14px;
    }

    .mini-card {
        min-height: 146px;
        padding: 16px 14px 12px;
    }

    .line-icon {
        margin-bottom: 4px;
    }

    .mini-card strong {
        margin: 6px 0 4px;
        font-size: 31px;
    }

    .inline-action {
        margin-top: 4px;
        padding-top: 8px;
    }

    .connection-key-card {
        min-height: 74px;
        padding: 12px 14px 12px 18px;
    }

    .liquid-button {
        min-height: 78px;
        gap: 12px;
        padding: 12px 16px;
    }

    .liquid-button-icon {
        width: 52px;
        height: 52px;
    }

    .liquid-button strong {
        font-size: 23px;
    }

    .liquid-button small {
        font-size: 13px;
        line-height: 1.12;
    }
}

@media (max-width: 374px) {
    :root {
        --gap: 12px;
        --screen-padding: 14px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-row span {
        font-size: 14px;
        letter-spacing: .18em;
    }

    .round-button,
    .avatar,
    .icon-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .page-title h1 {
        font-size: 32px;
    }

    .page-title p,
    .sub-page-lead p {
        font-size: 16px;
    }

    .subscription-card {
        min-height: 170px;
        padding: 16px;
    }

    .subscription-copy h2 {
        font-size: 31px;
    }

    .subscription-copy strong {
        font-size: 18px;
    }

    .soft-icon,
    .wallet-orb {
        width: 52px;
        height: 52px;
        margin-bottom: 8px;
    }

    .traffic-ring {
        width: 104px;
        height: 104px;
    }

    .traffic-ring strong {
        font-size: 32px;
    }

    .traffic-ring span {
        transform: translateY(26px);
        font-size: 13px;
    }

    .mini-card {
        min-height: 142px;
        padding: 14px 10px 10px;
    }

    .mini-card strong {
        font-size: 29px;
    }

    .connection-key-card {
        min-height: 74px;
        padding: 12px 14px 12px 18px;
    }

    .liquid-button strong {
        font-size: 22px;
    }

    .liquid-button small,
    .period-option em {
        display: none;
    }

    .period-option {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

@media (max-height: 760px) {
    .home-cta {
        order: 3;
    }

    .home-cta small {
        display: none;
    }

    .home-stack .connection-key-card {
        order: 4;
    }
}

@media (min-width: 760px) {
    .app-shell {
        width: min(100%, 960px);
    }

    .home-stack,
    .profile-stack,
    .invite-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .subscription-card,
    .ref-link-card,
    .profile-card,
    .settings-card,
    .logout-card,
    .recent-card,
    .how-card {
        grid-column: span 2;
    }

    .bottom-nav {
        width: min(calc(100% - (var(--screen-padding) * 2)), 408px);
    }
}

/* Main screen refresh from the provided layout */
.app-shell {
    width: min(100%, 432px);
    padding: max(24px, env(safe-area-inset-top)) 30px calc(14px + env(safe-area-inset-bottom));
}

.content-viewport {
    gap: 12px;
}

.home-topbar {
    min-height: 64px;
    margin-right: -2px;
    margin-left: -2px;
    padding: 8px 10px 8px 12px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.30), rgba(255,255,255,.10)),
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
    box-shadow:
        0 8px 24px rgba(69,47,118,.08),
        inset 0 1.5px 1px rgba(255,255,255,.92),
        inset 0 -1.5px 2px rgba(100,73,156,.08);
}

.home-topbar .brand-row {
    gap: 13px;
}

.home-topbar .brand-logo {
    width: 53px;
    height: 53px;
    filter: drop-shadow(0 8px 12px rgba(110,54,218,.20));
}

.home-topbar .brand-row span {
    margin-top: 1px;
    font-family: Montserrat, "Avenir Next", var(--font);
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 3.75px;
}

.home-topbar .round-button,
.home-topbar .avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
}

.home-topbar .avatar {
    font-size: 21px;
    font-weight: 520;
}

.page-title {
    gap: 7px;
    margin: 12px 7px -1px;
}

.page-title h1 {
    font-size: 29px;
    line-height: 34px;
    font-weight: 760;
}

.page-title p {
    font-size: 16px;
    line-height: 20px;
}

.home-stack {
    gap: 12px;
}

.home-stack::before,
.home-stack::after {
    display: none;
}

.subscription-card {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 183px;
    padding: 23px 15px 20px 24px;
    border-radius: 29px;
}

.subscription-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    width: 205px;
    min-width: 0;
}

.subscription-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.award-tile {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 18px;
    color: #8f43ec;
    background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,255,255,.14));
    box-shadow:
        0 2px 4px rgba(63,41,99,.09),
        0 9px 19px rgba(78,53,126,.08),
        inset 0 1.5px 1px rgba(255,255,255,.98),
        inset 0 -1.5px 2px rgba(117,77,181,.12);
}

.award-tile .ui-icon {
    width: 34px;
    height: 34px;
}

.subscription-label,
.expires span {
    display: block;
    color: #5f5a70;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
}

.subscription-status {
    display: block;
    margin-top: 6px;
    color: transparent;
    font-size: 28px;
    line-height: 30px;
    font-weight: 760;
    background: linear-gradient(100deg, #8743ed, #bb42ef 78%);
    -webkit-background-clip: text;
    background-clip: text;
}

.expires {
    padding-left: 2px;
}

.expires strong {
    display: block;
    margin-top: 6px;
    color: #15131d;
    font-size: 16px;
    line-height: 18px;
    font-weight: 760;
    white-space: nowrap;
}

.traffic-ring {
    width: 146px;
    height: 146px;
    filter: drop-shadow(0 12px 15px rgba(126,57,232,.14));
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.40) 0 44%, transparent 45%),
        conic-gradient(from -96deg, #ef66ea 0 38%, #b43ff0 38% 73%, #6555f0 73% 88%, rgba(215,199,244,.48) 88% 100%);
}

.traffic-ring::before {
    inset: 23px;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,.74), transparent 31%),
        linear-gradient(145deg, rgba(255,255,255,.35), rgba(255,255,255,.10));
}

.traffic-ring strong {
    transform: translateY(-12px);
    color: #09080d;
    font-size: 36px;
    line-height: 35px;
    font-weight: 700;
}

.traffic-ring span {
    transform: translateY(30px);
    color: #5e5a6c;
    font-size: 15px;
    line-height: 16px;
}

.home-stat-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 118px;
    aspect-ratio: 1.43 / 1;
    padding: 0;
    border-radius: 25px;
    color: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.home-stat-card .stat-icon {
    position: absolute;
    top: 14px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: #8f43ec;
}

.home-stat-card .stat-icon .ui-icon {
    width: 28px;
    height: 28px;
}

.stat-card-chevron {
    position: absolute;
    top: 13px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 50%;
    color: #8c43e8;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.64), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.10));
    box-shadow:
        0 5px 12px rgba(74,49,118,.075),
        inset 0 1px 1px rgba(255,255,255,.94),
        inset 0 -1px 1px rgba(110,72,170,.08);
}

.stat-card-chevron .ui-icon {
    width: 16px;
    height: 16px;
}

.stat-label {
    position: absolute;
    top: 54px;
    left: 16px;
    color: #5f5b6f;
    font-size: 15px;
    line-height: 18px;
}

.stat-value {
    position: absolute;
    left: 16px;
    bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.stat-value strong {
    color: #111019;
    font-size: 32px;
    line-height: .95;
    font-weight: 720;
}

.stat-value span {
    color: #666174;
    font-size: 15px;
    white-space: nowrap;
}

.connection-key-card {
    min-height: 72px;
    padding: 10px 12px 10px 20px;
    border-radius: 24px;
}

.key-copy p {
    color: #514d60;
    font-size: 14px;
    line-height: 17px;
}

.key-mask {
    display: flex;
    gap: 11px;
    margin-top: 9px;
}

.dot-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot-group i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #29263d;
    box-shadow: 0 1px 1px rgba(32,27,54,.18);
}

.connection-key-card .copy-button {
    width: 50px;
    height: 50px;
}

.home-cta {
    min-height: 89px;
    padding: 13px 18px 13px 14px;
    border-radius: 29px;
    background:
        radial-gradient(105px 72px at 5% 7%, rgba(255,255,255,.52), transparent 67%),
        radial-gradient(180px 110px at 37% 112%, rgba(244,57,239,.72), transparent 69%),
        radial-gradient(170px 115px at 86% 17%, rgba(93,114,255,.63), transparent 72%),
        linear-gradient(115deg, rgba(230,116,234,.92) 0%, rgba(184,65,238,.93) 38%, rgba(113,78,238,.92) 68%, rgba(103,126,236,.92) 100%);
}

.home-cta .liquid-button-icon {
    width: 61px;
    height: 61px;
}

.home-cta strong {
    font-size: 24px;
    line-height: 27px;
    font-weight: 650;
}

.home-cta small {
    max-width: 215px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 17px;
}

@media (max-width: 390px) {
    .app-shell {
        padding-right: 18px;
        padding-left: 18px;
    }

    .home-topbar {
        margin-right: 0;
        margin-left: 0;
        padding: 8px 9px 8px 10px;
    }

    .home-topbar .brand-logo {
        width: 48px;
        height: 48px;
    }

    .home-topbar .brand-row span {
        font-size: 9px;
        letter-spacing: 3.1px;
    }

    .home-topbar .round-button,
    .home-topbar .avatar {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .subscription-copy {
        width: 190px;
    }

    .traffic-ring {
        width: 132px;
        height: 132px;
    }

    .traffic-ring strong {
        font-size: 33px;
    }

    .home-cta strong {
        font-size: 21px;
    }

    .home-cta small {
        font-size: 12px;
        line-height: 15px;
    }
}
