:root {
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 150ms;
    --dur: 260ms;
    --dur-slow: 480ms;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    --container: 1120px;
    --container-narrow: 760px;
    --nav-height: 64px;

    --fs-display: clamp(48px, 7.4vw, 92px);
    --fs-h1: clamp(36px, 5vw, 56px);
    --fs-h2: clamp(32px, 4.4vw, 52px);
    --fs-h3: 21px;
    --fs-lead: clamp(18px, 1.5vw, 21px);
    --fs-body: 17px;
    --fs-small: 16px;
    --fs-caption: 15px;
    --fs-micro: 14px;
}

:root, [data-theme="dark"] {
    color-scheme: dark;
    --bg: #000000;
    --bg-soft: #0b0b0c;
    --surface: #111113;
    --surface-2: #19191c;
    --surface-3: #242428;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --primary: #f5f5f7;
    --primary-text: #000000;
    --primary-hover: #ffffff;
    --focus: #0a84ff;
    --overlay: rgba(0, 0, 0, 0.62);
    --shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.8);
    --glow: radial-gradient(60% 55% at 50% 0%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
    --nav-bg: rgba(0, 0, 0, 0.72);

    --green: #30d158;
    --red: #ff453a;
    --amber: #ff9f0a;
    --blue: #0a84ff;
    --violet: #bf5af2;
    --pink: #ff375f;
    --green-soft: rgba(48, 209, 88, 0.14);
    --red-soft: rgba(255, 69, 58, 0.14);
    --amber-soft: rgba(255, 159, 10, 0.15);
    --blue-soft: rgba(10, 132, 255, 0.15);
    --violet-soft: rgba(191, 90, 242, 0.15);
    --pink-soft: rgba(255, 55, 95, 0.15);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #fbfbfd;
    --bg-soft: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-3: #e8e8ed;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --text: #1d1d1f;
    --text-2: #424245;
    --text-3: #6e6e73;
    --primary: #1d1d1f;
    --primary-text: #ffffff;
    --primary-hover: #000000;
    --focus: #0071e3;
    --overlay: rgba(0, 0, 0, 0.3);
    --shadow: 0 24px 64px -28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, 0.18);
    --glow: radial-gradient(60% 55% at 50% 0%, rgba(0, 113, 227, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    --nav-bg: rgba(251, 251, 253, 0.78);

    --green: #248a3d;
    --red: #d70015;
    --amber: #c93400;
    --blue: #0066cc;
    --violet: #8944ab;
    --pink: #d30f45;
    --green-soft: rgba(36, 138, 61, 0.1);
    --red-soft: rgba(215, 0, 21, 0.08);
    --amber-soft: rgba(201, 52, 0, 0.09);
    --blue-soft: rgba(0, 102, 204, 0.09);
    --violet-soft: rgba(137, 68, 171, 0.1);
    --pink-soft: rgba(211, 15, 69, 0.09);
}

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

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-color: var(--surface-3) transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.011em;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

::selection {
    background: color-mix(in srgb, var(--focus) 38%, transparent);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border: 3px solid var(--bg);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

img, svg {
    display: block;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.1;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

button, input, select, textarea {
    font: inherit;
    letter-spacing: inherit;
    caret-color: var(--focus);
}

code, kbd, .mono {
    font-family: var(--font-mono);
    font-size: 0.92em;
    letter-spacing: 0;
}

.num, .tabular {
    font-variant-numeric: tabular-nums;
}

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 22px;
    height: 22px;
}

.flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--space-12));
    margin: 0 auto;
    padding: 0 var(--space-6);
}

main {
    flex: 1;
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-4);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 30px;
    height: 30px;
    color: var(--text);
    display: grid;
    place-items: center;
}

.brand-mark svg {
    width: 30px;
    height: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav-link .icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.nav-link:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.nav-link.active {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 9%, transparent);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.icon-btn:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

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

.theme-toggle .icon {
    transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

.theme-switched .theme-toggle .icon {
    animation: spin-in var(--dur-slow) var(--ease);
}

@keyframes spin-in {
    from {
        transform: rotate(-90deg) scale(0.6);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

.dropdown {
    position: relative;
}

.dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.dropdown > summary::-webkit-details-marker {
    display: none;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 6px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow);
    z-index: 60;
    transform-origin: top right;
    animation: menu-in 180ms var(--ease);
}

@keyframes menu-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dropdown-head {
    padding: 10px 12px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.dropdown-head strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 450;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.dropdown-item .icon {
    color: var(--text-2);
}

.dropdown-item .check-mark {
    margin-left: auto;
    color: var(--focus);
}

.dropdown-item:hover, .dropdown-item.active {
    background: color-mix(in srgb, var(--text) 7%, transparent);
}

.dropdown-item.danger:hover, .dropdown-item.danger:hover .icon {
    color: var(--red);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(140deg, var(--surface-3), var(--surface-2));
    box-shadow: inset 0 0 0 1px var(--border-strong);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    transition: box-shadow var(--dur-fast) var(--ease);
}

.avatar-trigger {
    display: block;
    border-radius: 999px;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.avatar-trigger:hover {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent);
}

.avatar-trigger:active {
    transform: scale(0.95);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 15px;
}

img.avatar {
    object-fit: cover;
    background: var(--surface-2);
}

.avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 28px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 36px;
}

.avatar-edit {
    position: relative;
    flex-shrink: 0;
}

.avatar-hover {
    position: relative;
    display: grid;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease);
}

.avatar-overlay .icon {
    width: 24px;
    height: 24px;
    transform: scale(0.9);
    transition: transform var(--dur) var(--ease);
}

.avatar-hover:hover .avatar-overlay,
.avatar-hover:focus-within .avatar-overlay {
    opacity: 1;
}

.avatar-hover:hover .avatar-overlay .icon {
    transform: none;
}

.avatar-edit input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.nav-burger {
    display: none;
}

.btn {
    --btn-bg: var(--surface-2);
    --btn-color: var(--text);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    background: var(--btn-bg);
    color: var(--btn-color);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.012em;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.btn:hover {
    --btn-bg: var(--surface-3);
}

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

.btn[disabled], .btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn-primary {
    --btn-bg: var(--primary);
    --btn-color: var(--primary-text);
}

.btn-primary:hover {
    --btn-bg: var(--primary-hover);
    box-shadow: 0 8px 28px -10px color-mix(in srgb, var(--primary) 55%, transparent);
}

.btn-ghost {
    --btn-bg: transparent;
}

.btn-ghost:hover {
    --btn-bg: color-mix(in srgb, var(--text) 7%, transparent);
}

.btn-outline {
    --btn-bg: transparent;
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn-outline:hover {
    --btn-bg: color-mix(in srgb, var(--text) 5%, transparent);
}

.btn-danger {
    --btn-bg: var(--red-soft);
    --btn-color: var(--red);
}

.btn-danger:hover {
    --btn-bg: var(--red);
    --btn-color: #fff;
}

.btn-success {
    --btn-bg: var(--green-soft);
    --btn-color: var(--green);
}

.btn-success:hover {
    --btn-bg: var(--green);
    --btn-color: #fff;
}

.btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 16px;
}

.btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 15px;
    gap: 6px;
}

.btn-sm .icon {
    width: 15px;
    height: 15px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 34px;
    padding: 0;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--focus);
    font-size: 15px;
    font-weight: 500;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-link .icon {
    width: 15px;
    height: 15px;
    transition: transform var(--dur-fast) var(--ease);
}

.btn-link:hover .icon {
    transform: translateX(2px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text-2);
    white-space: nowrap;
}

.badge .icon {
    width: 13px;
    height: 13px;
}

.badge-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.badge-green, .status-PAID {
    background: var(--green-soft);
    color: var(--green);
}

.badge-red, .status-CHARGEBACKED, .role-ADMIN {
    background: var(--red-soft);
    color: var(--red);
}

.badge-amber, .status-PENDING {
    background: var(--amber-soft);
    color: var(--amber);
}

.badge-blue, .role-MODERATOR {
    background: var(--blue-soft);
    color: var(--blue);
}

.badge-violet {
    background: var(--violet-soft);
    color: var(--violet);
}

.badge-pink, .role-MEDIA {
    background: var(--pink-soft);
    color: var(--pink);
}

.status-CANCELED, .status-EXPIRED {
    color: var(--text-3);
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: inset 0 0 0 1px var(--border);
}

.card-text {
    font-size: var(--fs-small);
    line-height: 1.55;
    max-width: 62ch;
}

.card-flat {
    background: var(--surface-2);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.card-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.018em;
}

.icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--text) 7%, transparent);
    color: var(--text);
    flex-shrink: 0;
}

.icon-tile.green {
    background: var(--green-soft);
    color: var(--green);
}

.icon-tile.red {
    background: var(--red-soft);
    color: var(--red);
}

.icon-tile.amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.icon-tile.blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.icon-tile.violet {
    background: var(--violet-soft);
    color: var(--violet);
}

.icon-tile.pink {
    background: var(--pink-soft);
    color: var(--pink);
}

.section {
    padding: var(--space-32) 0;
}

.section-tight {
    padding: var(--space-20) 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
}

.separator {
    display: block;
    height: 1px;
    margin: 0;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);
}

.section-head {
    max-width: 680px;
    margin: 0 auto var(--space-16);
    text-align: center;
}

.section-head h2 {
    font-size: var(--fs-h2);
    letter-spacing: -0.032em;
    line-height: 1.06;
}

.section-head p {
    margin-top: var(--space-5);
    color: var(--text-2);
    font-size: var(--fs-lead);
    line-height: 1.45;
}

.hero {
    position: relative;
    padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% 0 auto;
    height: 120%;
    background: var(--glow);
    z-index: -1;
    pointer-events: none;
}

.hero-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: var(--fs-display);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.hero h1 .line {
    display: block;
}

.hero h1 .fade {
    color: var(--text-3);
}

.hero-lead {
    margin-top: var(--space-8);
    max-width: 600px;
    color: var(--text-2);
    font-size: var(--fs-lead);
    line-height: 1.45;
}

.hero-actions {
    margin-top: var(--space-10);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.hero h1 .line {
    overflow: hidden;
    padding: 0 0.04em 0.12em;
    margin-bottom: -0.12em;
}

.hero h1 .line-inner {
    position: relative;
    display: inline-block;
}

.hero [data-intro], .page-head .container > *, .account > *, .auth-card {
    opacity: 0;
}

.hero .line-inner[data-intro] {
    opacity: 1;
    top: 1.15em;
}

.hero [data-intro]:not(.line-inner), .page-head .container > *, .auth-card {
    position: relative;
}

.hero::before {
    opacity: 0;
}

.fonts-ready .hero::before {
    animation: glow-in 1800ms var(--ease) both;
}

.fonts-ready .hero .line-inner[data-intro] {
    animation: mask-rise 1150ms cubic-bezier(0.19, 1, 0.22, 1) both;
    animation-delay: calc(var(--i, 0) * 120ms + 60ms);
}

.fonts-ready .hero [data-intro]:not(.line-inner) {
    animation: enter 1000ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 110ms + 220ms);
}

.fonts-ready .page-head .container > *, .fonts-ready .auth-card {
    animation: enter 900ms var(--ease) both;
}

.fonts-ready .account > * {
    animation: fade-in 700ms var(--ease) both;
}

.fonts-ready .page-head .container > :nth-child(2), .fonts-ready .account > :nth-child(2) {
    animation-delay: 80ms;
}

.fonts-ready .page-head .container > :nth-child(3) {
    animation-delay: 160ms;
}

.fonts-ready .page-head .container > :nth-child(n+4) {
    animation-delay: 240ms;
}

@keyframes mask-rise {
    from {
        top: 1.15em;
    }
    to {
        top: 0;
    }
}

@keyframes enter {
    from {
        opacity: 0;
        top: 14px;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glow-in {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.feature {
    padding: var(--space-10) var(--space-8) var(--space-10) 0;
    border-bottom: 1px solid var(--border);
}

.feature:nth-child(3n + 2), .feature:nth-child(3n + 3) {
    padding-left: var(--space-8);
    border-left: 1px solid var(--border);
}

.feature .icon-tile {
    margin-bottom: var(--space-6);
}

.feature h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.feature p {
    margin-top: var(--space-2);
    color: var(--text-2);
    font-size: var(--fs-small);
    line-height: 1.55;
    max-width: 34ch;
}

.support {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-16);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
}

.support h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    letter-spacing: -0.03em;
}

.support p {
    margin-top: var(--space-5);
    color: var(--text-2);
    font-size: var(--fs-lead);
    line-height: 1.45;
}

.support .btn {
    margin-top: var(--space-8);
}

.chat {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px var(--border);
}

.chat-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.chat-head .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-text);
}

.chat-head .brand-mark svg {
    width: 22px;
    height: 22px;
}

.chat-head > div {
    display: grid;
    gap: 1px;
}

.chat-head strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.chat-head small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
    color: var(--text-3);
    font-size: var(--fs-caption);
}

.chat-head small::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
}

.message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 82%;
}

.message.me {
    align-self: flex-end;
    align-items: flex-end;
}

.bubble {
    position: relative;
    isolation: isolate;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.4;
    background: var(--surface-3);
    color: var(--text);
}

.message.me .bubble {
    background: var(--blue);
    color: #fff;
}

.message.tail.me .bubble {
    border-bottom-right-radius: 4px;
}

.message.tail.them .bubble {
    border-bottom-left-radius: 4px;
}

.message.them:not(.tail) .bubble {
    border-bottom-left-radius: 8px;
}

.message.tail .bubble::before, .message.tail .bubble::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 20px;
}

.message.me.tail .bubble::before {
    right: -7px;
    width: 20px;
    background: var(--blue);
    border-bottom-left-radius: 16px 14px;
    z-index: -1;
}

.message.me.tail .bubble::after {
    right: -14px;
    width: 14px;
    background: var(--bg-soft);
    border-bottom-left-radius: 10px;
    z-index: -1;
}

.message.them.tail .bubble::before {
    left: -7px;
    width: 20px;
    background: var(--surface-3);
    border-bottom-right-radius: 16px 14px;
    z-index: -1;
}

.message.them.tail .bubble::after {
    left: -14px;
    width: 14px;
    background: var(--bg-soft);
    border-bottom-right-radius: 10px;
    z-index: -1;
}

.message small {
    padding: 0 6px;
    color: var(--text-3);
    font-size: 13.5px;
}

.typing {
    display: inline-flex;
    gap: 4px;
    align-self: flex-start;
    padding: 12px 15px;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    background: var(--surface-3);
}

.typing i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--text-3);
    animation: typing 1.4s var(--ease-in-out) infinite;
}

.typing i:nth-child(2) {
    animation-delay: 0.18s;
}

.typing i:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: none;
        opacity: 0.45;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.steps::before {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), var(--border-strong) 50%, var(--border-strong));
}

.step {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--border-strong);
    color: var(--text);
    margin-bottom: var(--space-6);
}

.step-icon .icon {
    width: 22px;
    height: 22px;
}

.step:last-child .step-icon {
    background: var(--primary);
    color: var(--primary-text);
    box-shadow: none;
}

.step h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.step p {
    margin-top: var(--space-2);
    max-width: 30ch;
    color: var(--text-2);
    font-size: var(--fs-small);
    line-height: 1.55;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
    row-gap: 0;
    max-width: 940px;
    margin: 0 auto;
}

.product {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.product:hover {
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.product > .icon-tile {
    justify-self: start;
}

.product > .icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.product > .icon-tile .icon {
    width: 22px;
    height: 22px;
}

.product > h3 {
    margin-top: var(--space-6);
    font-size: 28px;
    letter-spacing: -0.03em;
}

.product-desc {
    margin-top: var(--space-2);
    color: var(--text-2);
    font-size: var(--fs-small);
    line-height: 1.55;
    min-height: 3.1em;
}

.price {
    margin-top: var(--space-8);
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.price-from {
    color: var(--text-2);
    font-size: 17px;
    font-weight: 500;
}

.price strong {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.price-note {
    color: var(--text-3);
    font-size: var(--fs-small);
}

.features-list {
    list-style: none;
    margin: var(--space-8) 0 0;
    padding: var(--space-8) 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    align-content: start;
    gap: var(--space-3);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-small);
    color: var(--text);
}

.features-list li .icon {
    width: 18px;
    height: 18px;
    color: var(--green);
}

.product-foot {
    align-self: end;
    padding-top: var(--space-10);
}

.options {
    display: grid;
    gap: var(--space-2);
}

.option {
    position: relative;
    display: block;
    cursor: pointer;
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-body {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 14px 16px;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--border-strong);
    transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.option:hover .option-body {
    background: color-mix(in srgb, var(--text) 3%, transparent);
}

.option input:checked + .option-body {
    box-shadow: inset 0 0 0 2px var(--focus);
    background: color-mix(in srgb, var(--focus) 7%, transparent);
}

.option input:focus-visible + .option-body {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.option-radio {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--border-strong);
    flex-shrink: 0;
    transition: box-shadow var(--dur-fast) var(--ease);
}

.option input:checked + .option-body .option-radio {
    box-shadow: inset 0 0 0 6px var(--focus);
}

.option-main {
    flex: 1;
    min-width: 0;
}

.option-main strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.option-main small {
    display: block;
    margin-top: 2px;
    color: var(--text-3);
    font-size: var(--fs-caption);
}

.option-price {
    text-align: right;
}

.option-price strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.option-price .badge {
    margin-top: 4px;
}

.summary {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-5) 0 0;
    border-top: 1px solid var(--border);
    font-size: var(--fs-small);
}

.summary div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    color: var(--text-2);
}

.summary .total {
    margin-top: var(--space-2);
    color: var(--text);
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.summary .discount {
    color: var(--green);
}

.summary span:last-child {
    font-variant-numeric: tabular-nums;
}

.pay-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-3);
    font-size: var(--fs-caption);
}

.pay-divider::before, .pay-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.funpay-btn {
    gap: 10px;
}

.funpay-logo {
    width: 74px;
    height: auto;
    flex-shrink: 0;
}

.promo-toggle {
    justify-self: start;
    font-size: 15px;
}

.promo-box {
    display: grid;
    gap: var(--space-2);
}

[data-promo-input]::placeholder {
    text-transform: none;
    letter-spacing: normal;
}

.promo-row {
    display: flex;
    gap: var(--space-2);
}

.promo-row .input-wrap {
    flex: 1;
}

.promo-note {
    font-size: var(--fs-caption);
    min-height: 0;
}

.promo-note:empty {
    display: none;
}

.promo-note.ok {
    color: var(--green);
}

.promo-note.err {
    color: var(--red);
}

.faq {
    max-width: var(--container-narrow);
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq details:last-child {
    border-bottom: 0;
}

.faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-1);
    cursor: pointer;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.35;
    transition: color var(--dur-fast) var(--ease);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--text-2);
}

.faq .plus {
    position: relative;
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--text) 7%, transparent);
    transition: background-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}

.faq .plus::before, .faq .plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 1.75px;
    border-radius: 2px;
    background: var(--text);
    transform: translate(-50%, -50%);
    transition: transform var(--dur) var(--ease);
}

.faq .plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] .plus {
    transform: rotate(180deg);
}

.faq details[open] .plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq .answer {
    overflow: hidden;
}

.faq .answer p {
    padding: 0 var(--space-12) var(--space-6) var(--space-1);
    color: var(--text-2);
    font-size: var(--fs-small);
    line-height: 1.6;
    max-width: 68ch;
}

.cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: var(--space-24) var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
    isolation: isolate;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--glow);
    z-index: -1;
}

.cta h2 {
    font-size: var(--fs-h2);
    letter-spacing: -0.032em;
}

.cta p {
    margin: var(--space-5) auto var(--space-10);
    max-width: 480px;
    color: var(--text-2);
    font-size: var(--fs-lead);
    line-height: 1.45;
}

.footer {
    margin-top: var(--space-16);
    padding: var(--space-16) 0 var(--space-10);
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: var(--space-10);
}

.footer h4, .footer li, .footer-about p {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.006em;
}

.footer h4 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
}

.footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: color var(--dur-fast) var(--ease);
}

.footer a .icon {
    width: 16px;
    height: 16px;
}

.footer a:hover {
    color: var(--text);
}

.footer-about p {
    margin-top: var(--space-4);
    max-width: 320px;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    color: var(--text-3);
    font-size: 15px;
}

.field {
    display: grid;
    align-content: start;
    gap: var(--space-2);
}

.field label, .label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-wrap {
    position: relative;
}

.input-wrap > .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color var(--dur-fast) var(--ease);
}

.input-wrap:focus-within > .icon {
    color: var(--focus);
}

.input-wrap > .input {
    padding-left: 44px;
}

.input, .select, .textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 0;
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--border);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.input::placeholder, .textarea::placeholder {
    color: var(--text-3);
}

.textarea {
    height: auto;
    min-height: 104px;
    padding: 12px 16px;
    resize: vertical;
    line-height: 1.5;
}

.select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.input:hover, .select:hover, .textarea:hover {
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.input:focus, .select:focus, .textarea:focus {
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--focus), 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent);
}

.input.invalid {
    box-shadow: inset 0 0 0 1.5px var(--red);
}

.input[disabled], .select[disabled], .textarea[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.input-sm, .select-sm {
    height: 38px;
    font-size: 15px;
    border-radius: 10px;
}

.input-wrap > .input-sm {
    padding-left: 40px;
}

.input-wrap:has(.input-sm) > .icon {
    left: 13px;
    width: 16px;
    height: 16px;
}

.error-text {
    position: relative;
    color: var(--red);
    font-size: var(--fs-caption);
    animation: fade-up var(--dur) var(--ease);
}

.hint {
    color: var(--text-3);
    font-size: var(--fs-caption);
    line-height: 1.5;
}

@keyframes fade-up {
    from {
        opacity: 0;
        top: -3px;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-2);
    user-select: none;
}

.check input {
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 6px;
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1.5px var(--border-strong);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.check input:checked {
    background: var(--focus);
    box-shadow: none;
}

.check input:checked::after {
    content: "";
    width: 10px;
    height: 5.5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    animation: pop-in var(--dur-fast) var(--ease);
}

@keyframes pop-in {
    from {
        transform: rotate(-45deg) translate(1px, -1px) scale(0.4);
    }
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
}

.switch input {
    appearance: none;
    width: 46px;
    height: 28px;
    margin: 0;
    border-radius: 999px;
    background: var(--surface-3);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--dur) var(--ease);
}

.switch input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform var(--dur) var(--ease);
}

.switch input:checked {
    background: var(--green);
}

.switch input:checked::after {
    transform: translateX(18px);
}

.auth {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--nav-height));
    padding: var(--space-16) var(--space-5) var(--space-24);
    isolation: isolate;
}

.auth::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--glow);
    z-index: -1;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card > .brand-mark {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-6);
}

.auth-card > .brand-mark svg {
    width: 48px;
    height: 48px;
}

.auth-card h1 {
    text-align: center;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.auth-card .lead {
    text-align: center;
    margin-top: var(--space-3);
    color: var(--text-2);
    font-size: 17px;
}

.auth-form {
    margin-top: var(--space-10);
    display: grid;
    gap: var(--space-5);
}

.auth-form .btn-primary {
    margin-top: var(--space-2);
}

.auth-foot {
    margin-top: var(--space-8);
    text-align: center;
    font-size: 15px;
    color: var(--text-2);
}

.auth-foot a, .link {
    color: var(--focus);
    font-weight: 500;
}

.link-muted {
    color: var(--text-2);
    font-size: 15px;
    transition: color var(--dur-fast) var(--ease);
}

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

.auth-foot a:hover, .link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.alert {
    position: relative;
    display: flex;
    gap: var(--space-3);
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface-2);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
    animation: fade-up var(--dur) var(--ease);
}

.alert .icon {
    flex-shrink: 0;
}

.alert strong {
    color: var(--text);
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.alert-error {
    background: var(--red-soft);
}

.alert-error .icon {
    color: var(--red);
}

.alert-success {
    background: var(--green-soft);
}

.alert-success .icon {
    color: var(--green);
}

.alert-warn {
    background: var(--amber-soft);
}

.alert-warn .icon {
    color: var(--amber);
}

.alert-info {
    background: var(--blue-soft);
}

.alert-info .icon {
    color: var(--blue);
}

.alert .actions {
    margin-left: auto;
    align-self: center;
}

.toast-stack {
    position: fixed;
    right: var(--space-6);
    bottom: var(--space-6);
    z-index: 100;
    display: grid;
    gap: var(--space-2);
}

.toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 300px;
    max-width: 400px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-2) 92%, transparent);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow);
    font-size: 15px;
    animation: toast-in 420ms var(--ease);
}

.toast.success .icon {
    color: var(--green);
}

.toast.error .icon {
    color: var(--red);
}

.toast.hide {
    opacity: 0;
    top: 8px;
    transition: opacity 200ms var(--ease-in-out), top 200ms var(--ease-in-out);
}

.toast button {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--red);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background-color var(--dur-fast) var(--ease);
}

.toast button:hover {
    color: var(--red);
    background: color-mix(in srgb, var(--red) 14%, transparent);
}

@keyframes toast-in {
    from {
        opacity: 0;
        top: 16px;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

.page-head {
    padding: var(--space-24) 0 var(--space-12);
}

.page-head h1 {
    font-size: var(--fs-h1);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.page-head p {
    margin-top: var(--space-5);
    color: var(--text-2);
    font-size: var(--fs-lead);
    line-height: 1.45;
    max-width: 620px;
}

.page-head.center {
    text-align: center;
}

.page-head.center p {
    margin-left: auto;
    margin-right: auto;
}

.legal ol {
    list-style: none;
    margin: var(--space-4) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
}

.legal li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--space-2);
}

.legal-num {
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.doc .page-head .icon-tile {
    margin-inline: auto;
}

.doc .prose {
    margin-inline: auto;
    padding-bottom: var(--space-16);
}

.doc .prose .updated {
    display: flex;
    justify-content: center;
}

.prose {
    max-width: 680px;
    color: var(--text-2);
    font-size: var(--fs-body);
    line-height: 1.7;
}

.prose h2 {
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.022em;
    margin: var(--space-12) 0 var(--space-3);
}

.prose p + p {
    margin-top: var(--space-4);
}

.prose .updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-3);
}

.account {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--space-12);
    padding-top: var(--space-12);
}

.account-main {
    display: grid;
    gap: var(--space-6);
    align-content: start;
    min-width: 0;
}

.account-title h1 {
    font-size: 34px;
    letter-spacing: -0.032em;
}

.account-title p {
    margin-top: var(--space-2);
    color: var(--text-2);
    font-size: 16px;
}

.side-nav {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-12));
    align-self: start;
    display: grid;
    gap: 2px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.side-link .icon {
    width: 18px;
    height: 18px;
}

.side-link:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 5%, transparent);
}

.side-link.active {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 9%, transparent);
}

.side-sep {
    height: 1px;
    background: var(--border);
    margin: var(--space-3) var(--space-3);
}

.stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.wrap {
    flex-wrap: wrap;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.key-form {
    display: grid;
    gap: var(--space-5);
}

.key-form-head {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.key-form-row {
    display: flex;
    gap: var(--space-2);
}

.key-form-row .input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.key-form-row .input::placeholder {
    letter-spacing: 0.06em;
}

.key-form-row .btn {
    height: 48px;
}

@media (max-width: 560px) {
    .key-form-row {
        flex-direction: column;
    }
}

.profile-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.profile-card h2 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    font-size: 26px;
    letter-spacing: -0.028em;
}

.profile-meta {
    margin-top: var(--space-2);
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    color: var(--text-2);
    font-size: 15px;
}

.profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-meta .icon {
    width: 15px;
    height: 15px;
    color: var(--text-3);
}

.stat {
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
}

.stat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
}

.stat-label .icon-tile {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.stat-label .icon-tile .icon {
    width: 17px;
    height: 17px;
}

.stat-value {
    margin-top: var(--space-5);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.stat-value.off {
    color: var(--text-2);
}

.stat-sub {
    margin-top: var(--space-1);
    color: var(--text-3);
    font-size: 15px;
    line-height: 1.45;
}

.stat .btn {
    margin-top: auto;
    align-self: flex-start;
}

.stat-sub {
    margin-bottom: var(--space-5);
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.table th {
    text-align: left;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-3);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr {
    transition: background-color var(--dur-fast) var(--ease);
}

.table tbody tr:hover {
    background: color-mix(in srgb, var(--text) 3%, transparent);
}

.table .num {
    text-align: right;
}

.table .actions {
    text-align: right;
    white-space: nowrap;
}

.cell-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.cell-user .avatar {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.cell-user strong {
    font-weight: 600;
    display: block;
}

.cell-user small {
    color: var(--text-3);
    font-size: 15px;
}

.empty {
    padding: var(--space-16) var(--space-6);
    text-align: center;
    color: var(--text-2);
    display: grid;
    justify-items: center;
    gap: var(--space-3);
    font-size: 15px;
}

.empty .icon-tile {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin-bottom: var(--space-1);
}

.empty .icon-tile .icon {
    width: 22px;
    height: 22px;
}

.empty .btn {
    margin-top: var(--space-2);
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-4);
    color: var(--text-3);
    font-size: 15px;
}

.pager .row {
    gap: var(--space-2);
}

.kv {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0;
    margin: 0;
    font-size: 15px;
}

.kv dt, .kv dd {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.kv dt {
    color: var(--text-2);
}

.kv dd {
    margin: 0;
    word-break: break-word;
}

.kv dt:last-of-type, .kv dd:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.copy-field {
    display: flex;
    gap: var(--space-2);
}

.copy-field .input {
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 0.04em;
}

.copy-field .btn-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.totp-panel {
    overflow: hidden;
}

.totp-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-8);
}

.qr {
    width: 176px;
    height: 176px;
    padding: 12px;
    border-radius: var(--radius);
    background: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.qr svg, .qr img {
    width: 100%;
    height: 100%;
}

.order-status {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-6) 0 var(--space-2);
}

.order-status .icon-tile {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    margin-bottom: var(--space-3);
    animation: pop-scale 600ms var(--ease);
}

.order-status .icon-tile .icon {
    width: 32px;
    height: 32px;
}

.order-status h2 {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.order-status p {
    max-width: 44ch;
}

@keyframes pop-scale {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

.spin {
    animation: spin 1s linear infinite;
}

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

dialog {
    border: 0;
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: var(--text);
    padding: 0;
    width: min(500px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    box-shadow: var(--shadow);
    overflow: auto;
}

dialog[open] {
    animation: dialog-in 380ms var(--ease);
}

dialog.closing {
    animation: dialog-out 180ms var(--ease-in-out) forwards;
}

dialog::backdrop {
    background: var(--overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: backdrop-in 300ms var(--ease);
}

dialog.closing::backdrop {
    animation: backdrop-out 180ms var(--ease-in-out) forwards;
}

@keyframes dialog-in {
    from {
        opacity: 0;
        top: 16px;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

@keyframes dialog-out {
    to {
        opacity: 0;
        top: 8px;
    }
}

@keyframes backdrop-in {
    from {
        opacity: 0;
    }
}

@keyframes backdrop-out {
    to {
        opacity: 0;
    }
}

.dialog-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-6) 0;
}

.dialog-head h3 {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.022em;
}

.dialog-head small {
    display: block;
    margin-top: 2px;
    color: var(--text-3);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.dialog-head .icon-btn {
    margin-left: auto;
    align-self: flex-start;
    width: 32px;
    height: 32px;
    background: color-mix(in srgb, var(--text) 7%, transparent);
}

.dialog-body {
    padding: var(--space-6);
    display: grid;
    gap: var(--space-5);
}

dialog.dialog-wide {
    width: min(680px, calc(100vw - 32px));
}

.form-section {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: grid;
    gap: var(--space-4);
}

.form-section + .form-section {
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.form-section > legend {
    padding: 0;
    margin-bottom: var(--space-4);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.form-grid .full {
    grid-column: 1 / -1;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--border-strong);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.choice span:hover {
    background: color-mix(in srgb, var(--text) 5%, transparent);
}

.choice input:checked + span {
    background: var(--primary);
    color: var(--primary-text);
    box-shadow: none;
}

.choice input:focus-visible + span {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.input-suffix {
    position: relative;
}

.input-suffix .input {
    padding-right: 52px;
}

.input-suffix input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.input-suffix input[type="number"]::-webkit-inner-spin-button,
.input-suffix input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-suffix-sm {
    width: 128px;
}

.input-suffix-sm .input {
    padding-right: 48px;
}

.input-suffix-sm > span {
    right: 12px;
    font-size: 15px;
}

.input-suffix > span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 15px;
    pointer-events: none;
}

.dialog-foot {
    padding: 0 var(--space-6) var(--space-6);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

.dialog-foot.stacked {
    display: grid;
    justify-content: stretch;
}

.dialog-foot.stacked .hint {
    text-align: center;
}

.error-page {
    min-height: calc(100vh - var(--nav-height) - 240px);
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--space-20) var(--space-5);
}

.error-code {
    font-size: clamp(96px, 16vw, 168px);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.error-page h1 {
    margin-top: var(--space-4);
    font-size: 30px;
    letter-spacing: -0.03em;
}

.error-page p {
    margin: var(--space-3) auto var(--space-8);
    color: var(--text-2);
    max-width: 420px;
}

.reveal {
    position: relative;
    top: 24px;
    opacity: 0;
    transition: opacity 900ms var(--ease), top 900ms var(--ease);
}

.reveal.in {
    top: 0;
    opacity: 1;
}

.no-js .reveal, .no-js .hero [data-intro], .no-js .hero::before, .no-js .page-head .container > *, .no-js .account > *, .no-js .auth-card {
    opacity: 1;
    top: 0;
    transform: none;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    .reveal, .hero [data-intro], .hero::before, .page-head .container > *, .account > *, .auth-card {
        opacity: 1;
        top: 0;
        transform: none;
    }
}

@media (max-width: 1000px) {
    .nav-links {
        display: none;
    }

    .nav-inner {
        grid-template-columns: 1fr auto;
    }

    .nav-burger {
        display: block;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature, .feature:nth-child(3n + 2), .feature:nth-child(3n + 3) {
        padding: var(--space-8) var(--space-6) var(--space-8) 0;
        border-left: 0;
    }

    .feature:nth-child(2n) {
        padding-left: var(--space-6);
        border-left: 1px solid var(--border);
    }

    .support {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        padding: var(--space-10);
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding-top: var(--space-8);
    }

    .side-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: var(--space-1);
        margin: 0 calc(var(--space-4) * -1);
        padding: 0 var(--space-4);
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 32px), transparent 100%);
    }

    .side-nav::-webkit-scrollbar {
        display: none;
    }

    .side-link {
        white-space: nowrap;
    }

    .side-sep {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --fs-body: 16px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-20) 0;
    }

    .section-tight {
        padding: var(--space-16) 0;
    }

    .section-head {
        margin-bottom: var(--space-10);
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature, .feature:nth-child(2n), .feature:nth-child(3n + 2), .feature:nth-child(3n + 3) {
        padding: var(--space-6) 0;
        border-left: 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .steps::before {
        display: none;
    }

    .products-grid, .grid-2, .grid-4 {
        grid-template-columns: 1fr;
    }

    .product {
        padding: var(--space-8);
    }

    .product + .product {
        margin-top: var(--space-5);
    }

    .support {
        padding: var(--space-6);
    }

    .nav-actions .nav-signup {
        display: none;
    }

    .nav-actions .nav-signin {
        --btn-bg: var(--primary);
        --btn-color: var(--primary-text);
    }

    .kv {
        grid-template-columns: 1fr;
    }

    .kv dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8) var(--space-6);
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .toast-stack {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
    }

    .toast {
        min-width: 0;
        max-width: none;
    }

    .faq .answer p {
        padding-right: var(--space-4);
    }

    .cta {
        padding: var(--space-16) var(--space-5);
    }
}

@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: var(--space-5);
    }

    .card-head {
        flex-wrap: wrap;
        margin-bottom: var(--space-5);
    }

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .profile-card h2 {
        font-size: 22px;
    }

    .profile-meta {
        flex-direction: column;
        gap: var(--space-2);
    }

    .kv {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}
