:root {
            --bg: #05070d;
            --bg-soft: #0a1422;
            --panel: #0d1523;
            --panel-strong: #152237;
            --panel-glass: rgba(12, 22, 36, 0.72);
            --text: #f8fbff;
            --muted: #a6b5c8;
            --accent: #38e3ff;
            --accent-dark: #5b7cff;
            --accent-warm: #8b7cff;
            --success: #50e3a4;
            --line: rgba(188, 219, 255, 0.16);
            --line-strong: rgba(188, 219, 255, 0.28);
            --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
            --glow: 0 20px 70px rgba(56, 227, 255, 0.18);
        }

        * {
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            margin: 0;
            color: var(--text);
            background: linear-gradient(180deg, #05070d 0%, #08111d 46%, #04070d 100%);
            font-family: Arial, Helvetica, sans-serif;
            letter-spacing: 0;
            color-scheme: dark;
            -webkit-font-smoothing: antialiased;
            text-rendering: geometricPrecision;
        }

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

        .page {
            position: relative;
            isolation: isolate;
            min-height: 100vh;
            overflow: hidden;
            background:
                linear-gradient(112deg, rgba(56, 227, 255, 0.12), transparent 30%),
                linear-gradient(248deg, rgba(139, 124, 255, 0.09), transparent 36%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
        }

        .page::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            background:
                linear-gradient(rgba(188, 219, 255, 0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(188, 219, 255, 0.04) 1px, transparent 1px);
            background-size: 64px 64px;
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
        }

        .wrap {
            position: relative;
            z-index: 1;
            width: min(1120px, calc(100% - 40px));
            margin: 0 auto;
        }

        .topbar {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            margin-top: 16px;
            padding: 14px 18px;
            border: 1px solid rgba(188, 219, 255, 0.14);
            border-radius: 10px;
            background: rgba(8, 15, 25, 0.7);
            box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
            backdrop-filter: blur(18px);
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
            font-weight: 900;
            font-size: 18px;
            line-height: 1.1;
        }

        .cosmos-mark {
            position: relative;
            display: inline-grid;
            place-items: center;
            width: 46px;
            height: 46px;
            flex: 0 0 auto;
            border-radius: 50%;
            background:
                radial-gradient(circle at 50% 50%, #ffffff 0 10%, transparent 11%),
                conic-gradient(from 160deg, var(--accent), var(--accent-warm), var(--accent-dark), var(--accent));
            box-shadow: 0 14px 38px rgba(56, 227, 255, 0.32);
        }

        .cosmos-mark::before {
            content: "";
            position: absolute;
            z-index: 2;
            width: 60px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.78);
            border-left-color: transparent;
            border-right-color: transparent;
            border-radius: 50%;
            transform: rotate(-22deg);
        }

        .nav {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--muted);
            font-size: 14px;
        }

        .nav a {
            padding: 10px 12px;
            border-radius: 8px;
            transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
        }

        .nav a:hover {
            color: var(--text);
            background: rgba(255, 255, 255, 0.08);
        }

        .hero {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
            gap: 46px;
            align-items: center;
            padding: 72px 0 62px;
        }

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

        .kicker {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            padding: 9px 12px;
            border: 1px solid rgba(188, 219, 255, 0.18);
            border-radius: 999px;
            color: var(--muted);
            background: rgba(255, 255, 255, 0.055);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
            font-size: 14px;
            line-height: 1.2;
        }

        .kicker-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 7px rgba(56, 227, 255, 0.14), 0 0 20px rgba(56, 227, 255, 0.72);
        }

        h1 {
            max-width: 760px;
            margin: 0;
            font-size: clamp(44px, 7vw, 86px);
            line-height: 0.94;
            letter-spacing: 0;
        }

        .accent {
            color: var(--accent);
            text-shadow: 0 0 34px rgba(56, 227, 255, 0.22);
        }

        .lead {
            max-width: 620px;
            margin: 24px 0 0;
            color: var(--muted);
            font-size: clamp(17px, 2vw, 21px);
            line-height: 1.65;
        }

        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-top: 34px;
        }

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 52px;
            padding: 0 20px;
            border: 1px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            font-family: inherit;
            font-size: 15px;
            font-weight: 900;
            line-height: 1;
            transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
        }

        .button-primary {
            color: #ffffff;
            border-color: rgba(141, 221, 255, 0.42);
            background:
                radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.42), transparent 18%),
                linear-gradient(135deg, #18d9ff 0%, #256dff 52%, #765cff 100%);
            box-shadow: 0 18px 48px rgba(37, 109, 255, 0.28), 0 0 34px rgba(24, 217, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.34);
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
        }

        .button-secondary {
            color: var(--text);
            border-color: var(--line-strong);
            background: rgba(255, 255, 255, 0.065);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .button:hover,
        .button:focus-visible {
            transform: translateY(-1px);
        }

        .button-primary:hover,
        .button-primary:focus-visible {
            border-color: rgba(196, 237, 255, 0.58);
            background:
                radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.48), transparent 18%),
                linear-gradient(135deg, #33e6ff 0%, #347cff 50%, #8a73ff 100%);
            box-shadow: 0 22px 58px rgba(37, 109, 255, 0.34), 0 0 42px rgba(24, 217, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
        }

        .button-secondary:hover,
        .button-secondary:focus-visible {
            border-color: rgba(56, 227, 255, 0.42);
            background: rgba(56, 227, 255, 0.105);
        }

        .button:disabled,
        .button.disabled-action {
            color: #aebbd0;
            border-color: rgba(188, 219, 255, 0.22);
            background: rgba(255, 255, 255, 0.075);
            opacity: 1;
            cursor: not-allowed;
            box-shadow: none;
            text-shadow: none;
        }

        .visual {
            position: relative;
            min-height: 440px;
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.12), transparent 42%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028)),
                var(--panel);
            box-shadow: var(--shadow), var(--glow);
            overflow: hidden;
        }

        .visual::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 76%);
        }

        .screen {
            position: absolute;
            inset: 28px;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(188, 219, 255, 0.2);
            border-radius: 8px;
            background: rgba(5, 9, 16, 0.82);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
            overflow: hidden;
        }

        .screen-top {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 42px;
            padding: 0 16px;
            border-bottom: 1px solid var(--line);
        }

        .traffic {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.24);
        }

        .traffic:first-child {
            background: var(--accent);
        }

        .screen-body {
            display: grid;
            gap: 18px;
            padding: 24px;
        }

        .player {
            position: relative;
            display: grid;
            place-items: center;
            aspect-ratio: 16 / 9;
            border-radius: 8px;
            overflow: hidden;
            background:
                linear-gradient(145deg, rgba(56, 227, 255, 0.18), transparent 46%),
                linear-gradient(315deg, rgba(139, 124, 255, 0.12), transparent 44%),
                linear-gradient(135deg, #121b2a, #070a11);
            border: 1px solid rgba(188, 219, 255, 0.14);
        }

        .player .cosmos-mark {
            width: 104px;
            height: 104px;
            border-radius: 50%;
            animation: cosmosFloat 3s ease-in-out infinite;
        }

        .player .cosmos-mark::after {
            content: "";
            position: absolute;
            inset: -18px;
            z-index: 1;
            border: 2px solid rgba(255, 255, 255, 0.32);
            border-radius: 24px;
            opacity: 0;
            transform: scale(0.78);
            animation: cosmosPulse 3s ease-out infinite;
        }

        .player .cosmos-mark::before {
            width: 136px;
            height: 42px;
            border-width: 3px;
            border-left-color: transparent;
            border-right-color: transparent;
        }

        .bars {
            display: grid;
            gap: 12px;
        }

        .bar {
            height: 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.1);
        }

        .bar:nth-child(1) {
            width: 82%;
            background: rgba(255, 255, 255, 0.18);
        }

        .bar:nth-child(2) {
            width: 56%;
        }

        .panel-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .mini-panel {
            min-height: 78px;
            padding: 16px;
            border: 1px solid rgba(188, 219, 255, 0.16);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.055);
        }

        .mini-panel strong {
            display: block;
            margin-bottom: 8px;
            font-size: 22px;
        }

        .mini-panel span {
            color: var(--muted);
            font-size: 13px;
        }

        .overview {
            padding: 22px 0 72px;
        }

        .tariffs {
            padding: 0 0 78px;
        }

        .devices {
            padding: 0 0 78px;
        }

        .section-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 22px;
        }

        h2 {
            max-width: 650px;
            margin: 0;
            font-size: clamp(28px, 4vw, 44px);
            line-height: 1.05;
            letter-spacing: 0;
        }

        .section-note {
            max-width: 380px;
            margin: 0;
            color: var(--muted);
            line-height: 1.55;
        }

        .cards {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }

        .card {
            min-height: 188px;
            padding: 24px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
                rgba(10, 18, 30, 0.72);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .card-number {
            display: inline-grid;
            place-items: center;
            width: 38px;
            height: 38px;
            margin-bottom: 24px;
            border-radius: 8px;
            color: #ffffff;
            background:
                radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.45), transparent 22%),
                linear-gradient(135deg, #18d9ff, #256dff 58%, #765cff);
            box-shadow: 0 12px 28px rgba(37, 109, 255, 0.24);
            font-weight: 900;
        }

        .card h3 {
            margin: 0 0 10px;
            font-size: 21px;
            letter-spacing: 0;
        }

        .card p {
            margin: 0;
            color: var(--muted);
            line-height: 1.6;
        }

        .stats {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 22px;
        }

        .stat {
            padding: 11px 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--muted);
            background: rgba(255, 255, 255, 0.055);
            font-size: 14px;
        }

        .device-showcase {
            display: grid;
            grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
            gap: 24px;
            align-items: center;
            padding: 26px;
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.12), transparent 38%),
                linear-gradient(315deg, rgba(139, 124, 255, 0.08), transparent 40%),
                rgba(255, 255, 255, 0.052);
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
            overflow: hidden;
        }

        .device-copy p {
            max-width: 520px;
            margin: 16px 0 0;
            color: var(--muted);
            line-height: 1.6;
        }

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

        .device-card {
            min-height: 238px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 22px 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.032)),
                rgba(7, 13, 22, 0.64);
            text-align: center;
            transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
        }

        .device-card:hover {
            transform: translateY(-5px);
            border-color: rgba(56, 227, 255, 0.62);
            box-shadow: 0 20px 60px rgba(56, 227, 255, 0.16);
        }

        .device-picture {
            position: relative;
            display: grid;
            place-items: center;
            margin-bottom: 18px;
            border: 2px solid rgba(255, 255, 255, 0.22);
            background:
                linear-gradient(145deg, rgba(56, 227, 255, 0.17), transparent 54%),
                #0b111d;
            box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
        }

        .device-picture::before {
            content: "";
            position: absolute;
            border: 1px solid rgba(255, 255, 255, 0.11);
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.28), transparent 46%),
                rgba(255, 255, 255, 0.035);
        }

        .device-picture::after {
            content: "";
            position: absolute;
            background: rgba(255, 255, 255, 0.32);
        }

        .device-play {
            position: relative;
            z-index: 2;
            display: grid;
            place-items: center;
            width: 28px;
            height: 22px;
            border-radius: 7px;
            background: linear-gradient(145deg, var(--accent), var(--accent-dark));
            box-shadow: 0 10px 26px rgba(56, 227, 255, 0.36);
        }

        .device-play::before {
            content: "";
            width: 0;
            height: 0;
            margin-left: 2px;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-left: 8px solid #ffffff;
        }

        .device-phone {
            width: 56px;
            height: 92px;
            border-radius: 16px;
        }

        .device-phone::before {
            inset: 9px 7px 12px;
            border-radius: 10px;
        }

        .device-phone::after {
            bottom: 5px;
            left: 50%;
            width: 14px;
            height: 3px;
            border-radius: 999px;
            transform: translateX(-50%);
        }

        .device-computer {
            width: 102px;
            height: 72px;
            border-radius: 9px;
        }

        .device-computer::before {
            inset: 8px 8px 15px;
            border-radius: 6px;
        }

        .device-computer::after {
            bottom: -16px;
            left: 50%;
            width: 44px;
            height: 18px;
            border-radius: 0 0 8px 8px;
            transform: translateX(-50%);
            clip-path: polygon(35% 0, 65% 0, 76% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 24% 70%);
        }

        .device-tv {
            width: 118px;
            height: 76px;
            border-radius: 10px;
        }

        .device-tv::before {
            inset: 8px;
            border-radius: 7px;
        }

        .device-tv::after {
            bottom: -14px;
            left: 50%;
            width: 52px;
            height: 16px;
            border-radius: 0 0 8px 8px;
            transform: translateX(-50%);
            clip-path: polygon(38% 0, 62% 0, 70% 62%, 100% 62%, 100% 100%, 0 100%, 0 62%, 30% 62%);
        }

        .device-tablet {
            width: 78px;
            height: 104px;
            border-radius: 14px;
        }

        .device-tablet::before {
            inset: 8px;
            border-radius: 10px;
        }

        .device-tablet::after {
            bottom: 4px;
            left: 50%;
            width: 16px;
            height: 3px;
            border-radius: 999px;
            transform: translateX(-50%);
        }

        .device-card h3 {
            margin: 0 0 8px;
            font-size: 20px;
        }

        .device-card p {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.5;
        }

        .trial-panel {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 22px;
            align-items: center;
            margin-bottom: 18px;
            padding: 24px;
            border: 1px solid rgba(56, 227, 255, 0.34);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.16), transparent 42%),
                linear-gradient(315deg, rgba(139, 124, 255, 0.1), transparent 42%),
                rgba(255, 255, 255, 0.06);
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
        }

        .trial-panel h2 {
            margin-bottom: 8px;
        }

        .trial-panel p {
            max-width: 620px;
            margin: 0;
            color: var(--muted);
            line-height: 1.55;
        }

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

        .price-card {
            position: relative;
            min-height: 278px;
            display: flex;
            flex-direction: column;
            padding: 22px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.088), rgba(255, 255, 255, 0.032)),
                rgba(8, 15, 25, 0.72);
            overflow: hidden;
            transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
        }

        a.price-card {
            color: var(--text);
        }

        .price-card::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.2), transparent 42%),
                linear-gradient(315deg, rgba(139, 124, 255, 0.12), transparent 44%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
            opacity: 0;
            transition: opacity 220ms ease;
            pointer-events: none;
        }

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

        .price-card:hover,
        .price-card:focus-within {
            transform: translateY(-6px);
            border-color: rgba(56, 227, 255, 0.78);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.04)),
                rgba(8, 15, 25, 0.78);
            box-shadow: 0 24px 74px rgba(56, 227, 255, 0.22), 0 0 0 1px rgba(56, 227, 255, 0.18) inset;
        }

        .price-card:hover::before,
        .price-card:focus-within::before {
            opacity: 1;
        }

        .price-card.featured {
            border-color: rgba(56, 227, 255, 0.52);
            box-shadow: 0 18px 54px rgba(56, 227, 255, 0.13);
        }

        .plan-badge {
            align-self: flex-start;
            min-height: 28px;
            padding: 7px 10px;
            border-radius: 999px;
            color: #ffffff;
            background:
                radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.4), transparent 22%),
                linear-gradient(135deg, #18d9ff, #256dff 58%, #765cff);
            box-shadow: 0 10px 26px rgba(37, 109, 255, 0.22);
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
        }

        .plan-badge.placeholder {
            visibility: hidden;
        }

        .plan-period {
            margin: 18px 0 0;
            color: var(--muted);
            font-size: 15px;
            font-weight: 800;
        }

        .plan-price {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin: 14px 0;
        }

        .plan-price strong {
            font-size: clamp(34px, 4vw, 48px);
            line-height: 1;
        }

        .plan-price span {
            color: var(--muted);
            font-weight: 800;
        }

        .old-price {
            color: var(--muted);
            font-size: 15px;
            font-weight: 900;
            text-decoration: line-through;
        }

        .discount-chip {
            display: inline-flex;
            align-items: center;
            min-height: 26px;
            padding: 0 9px;
            border: 1px solid rgba(56, 217, 130, 0.42);
            border-radius: 999px;
            color: #8ff0b6;
            background: rgba(56, 217, 130, 0.11);
            font-size: 12px;
            font-weight: 950;
        }

        .plan-note {
            margin: 0 0 22px;
            color: var(--muted);
            line-height: 1.55;
        }

        .price-card .button {
            width: 100%;
            margin-top: auto;
        }

        .tariff-details {
            position: fixed;
            inset: 0;
            z-index: 80;
            display: grid;
            place-items: center;
            padding: 22px;
            background: rgba(0, 0, 0, 0.58);
            backdrop-filter: blur(14px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 220ms ease, visibility 220ms ease;
        }

        .tariff-details:target {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .tariff-modal-backdrop {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

        .tariff-detail-card {
            position: relative;
            z-index: 1;
            width: min(960px, 100%);
            max-height: min(86vh, 820px);
            overflow: auto;
            padding: 26px;
            border: 1px solid rgba(56, 227, 255, 0.34);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.16), transparent 42%),
                linear-gradient(315deg, rgba(139, 124, 255, 0.1), transparent 42%),
                #080f19;
            box-shadow: 0 24px 74px rgba(56, 227, 255, 0.12);
            transform: translateY(16px) scale(0.96);
            transition: transform 220ms ease;
        }

        .tariff-details:target .tariff-detail-card {
            transform: translateY(0) scale(1);
        }

        .tariff-close {
            position: absolute;
            top: 16px;
            right: 16px;
            display: inline-grid;
            place-items: center;
            width: 38px;
            height: 38px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text);
            background: rgba(255, 255, 255, 0.08);
            font-size: 24px;
            line-height: 1;
        }

        .tariff-close:hover {
            border-color: rgba(56, 227, 255, 0.7);
            background: rgba(56, 227, 255, 0.16);
        }

        .tariff-detail-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 22px;
        }

        .tariff-detail-head p {
            max-width: 620px;
            margin: 12px 0 0;
            color: var(--muted);
            line-height: 1.6;
        }

        .tariff-detail-price {
            min-width: 150px;
            text-align: right;
        }

        .tariff-detail-price strong {
            display: block;
            color: var(--text);
            font-size: clamp(34px, 5vw, 56px);
            line-height: 1;
        }

        .tariff-detail-price span {
            color: var(--muted);
            font-weight: 800;
        }

        .tariff-benefits {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 22px;
        }

        .tariff-benefit {
            min-height: 118px;
            padding: 18px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.18);
        }

        .tariff-benefit strong {
            display: block;
            margin-bottom: 8px;
            font-size: 18px;
        }

        .tariff-benefit span {
            color: var(--muted);
            line-height: 1.5;
        }

        .client-list-title {
            margin: 0 0 12px;
            color: var(--muted);
            font-weight: 800;
        }

        .client-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 22px;
        }

        .client-chip {
            padding: 10px 12px;
            border: 1px solid rgba(188, 219, 255, 0.16);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.065);
            color: var(--text);
            font-size: 14px;
        }

        .tariff-detail-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .checkout {
            position: fixed;
            inset: 0;
            z-index: 90;
            display: grid;
            place-items: center;
            width: auto;
            margin: 0;
            padding: 22px;
            background: rgba(0, 0, 0, 0.62);
            backdrop-filter: blur(16px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 220ms ease, visibility 220ms ease;
        }

        .checkout:target {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .checkout-modal-backdrop {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

        .checkout-panel {
            position: relative;
            z-index: 1;
            width: min(920px, 100%);
            max-height: min(86vh, 820px);
            overflow: auto;
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
            gap: 24px;
            align-items: start;
            padding: 24px;
            border: 1px solid rgba(56, 227, 255, 0.34);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.15), transparent 45%),
                linear-gradient(315deg, rgba(139, 124, 255, 0.08), transparent 42%),
                #080f19;
            box-shadow: 0 24px 80px rgba(56, 227, 255, 0.14), 0 30px 90px rgba(0, 0, 0, 0.5);
            transform: translateY(16px) scale(0.96);
            transition: transform 220ms ease;
        }

        .checkout:target .checkout-panel {
            transform: translateY(0) scale(1);
        }

        .trial-checkout .checkout-panel {
            width: min(760px, 100%);
            grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
        }

        .trial-checkout .checkout-copy h2 {
            font-size: clamp(38px, 5vw, 64px);
            line-height: 0.98;
        }

        .checkout-close {
            position: absolute;
            top: 16px;
            right: 16px;
            display: inline-grid;
            place-items: center;
            width: 38px;
            height: 38px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text);
            background: rgba(255, 255, 255, 0.08);
            font-size: 24px;
            line-height: 1;
        }

        .checkout-close:hover {
            border-color: rgba(56, 227, 255, 0.7);
            background: rgba(56, 227, 255, 0.16);
        }

        .checkout-copy p {
            margin: 16px 0 0;
            color: var(--muted);
            line-height: 1.6;
        }

        .checkout-plan-pill {
            display: flex;
            align-items: center;
            gap: 10px;
            width: fit-content;
            max-width: 100%;
            margin: 18px 0 0;
            padding: 10px 12px;
            border: 1px solid rgba(56, 227, 255, 0.34);
            border-radius: 8px;
            background: rgba(56, 227, 255, 0.1);
            color: var(--text);
            font-weight: 900;
        }

        .checkout-copy .notice {
            margin-top: 18px;
        }

        .notice {
            margin-bottom: 18px;
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
        }

        .notice strong {
            display: block;
            margin-bottom: 6px;
        }

        .notice p {
            margin: 0;
            color: var(--muted);
            line-height: 1.5;
        }

        .notice.success {
            border-color: rgba(56, 217, 130, 0.42);
        }

        .notice.error {
            border-color: rgba(56, 227, 255, 0.52);
        }

        .notice.info {
            border-color: rgba(255, 255, 255, 0.24);
        }

        .notice.warning {
            border-color: rgba(255, 176, 32, 0.48);
            background: rgba(255, 176, 32, 0.08);
        }

        .notice[hidden] {
            display: none;
        }

        .notice-close {
            position: absolute;
            top: 10px;
            right: 10px;
            display: inline-grid;
            place-items: center;
            width: 34px;
            height: 34px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text);
            cursor: pointer;
            font-size: 22px;
            font-weight: 900;
            line-height: 1;
        }

        .bind-email-notice {
            position: relative;
            padding-right: 58px;
        }

        .bind-email-notice .button {
            width: fit-content;
            margin-top: 14px;
            min-height: 44px;
        }

        .device-limit-notice {
            margin: 18px 0 0;
        }

        .device-limit-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 12px;
        }

        .device-reset-form {
            margin: 0;
        }

        .email-verification-card {
            margin-top: 18px;
            padding: 16px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.045);
        }

        .email-verification-card h3 {
            margin: 0 0 8px;
            font-size: 20px;
        }

        .email-verification-card p {
            margin: 0 0 14px;
            color: var(--muted);
            line-height: 1.5;
        }

        .resend-code-form {
            margin-top: 10px;
        }

        .email-change-form {
            display: grid;
            gap: 12px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .order-form {
            display: grid;
            gap: 14px;
        }

        .field {
            display: grid;
            gap: 8px;
        }

        .field span {
            color: var(--muted);
            font-size: 14px;
            font-weight: 800;
        }

        .field input,
        .field select {
            width: 100%;
            min-height: 52px;
            padding: 0 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text);
            background: rgba(6, 11, 19, 0.82);
            font: inherit;
            outline: none;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .field input:focus,
        .field select:focus {
            border-color: rgba(56, 227, 255, 0.78);
            box-shadow: 0 0 0 3px rgba(56, 227, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .form-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 6px;
        }

        .form-actions.single {
            grid-template-columns: 1fr;
        }

        .consent-field {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 10px;
            align-items: flex-start;
            margin: 4px 0 10px;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .consent-field input {
            width: 18px;
            height: 18px;
            margin: 1px 0 0;
            accent-color: var(--accent);
        }

        .consent-field a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .result-card {
            margin-top: 16px;
            padding: 16px;
            border: 1px solid rgba(56, 227, 255, 0.32);
            border-radius: 8px;
            background: rgba(56, 227, 255, 0.08);
        }

        .result-card p {
            margin: 8px 0 0;
            color: var(--muted);
            line-height: 1.5;
        }

        .subscription-link {
            display: block;
            margin-top: 12px;
            padding: 12px;
            border-radius: 8px;
            color: #ffffff;
            border: 1px solid rgba(188, 219, 255, 0.12);
            background: rgba(0, 0, 0, 0.26);
            overflow-wrap: anywhere;
            font-size: 14px;
            line-height: 1.45;
        }

        .cabinet {
            padding: 54px 0 90px;
        }

        .admin {
            width: min(1560px, calc(100% - 28px));
            padding: 54px 0 90px;
        }

        .admin-body .topbar {
            display: none;
        }

        .admin-body .page::before {
            opacity: 0.18;
        }

        .admin-shell {
            display: grid;
            grid-template-columns: 270px minmax(0, 1fr);
            gap: 18px;
            align-items: start;
            min-height: calc(100vh - 108px);
        }

        .admin-sidebar {
            position: sticky;
            top: 22px;
            padding: 18px;
            border: 1px solid rgba(40, 215, 235, 0.18);
            border-radius: 10px;
            background:
                linear-gradient(180deg, rgba(16, 215, 234, 0.12), rgba(16, 215, 234, 0.025)),
                rgba(8, 18, 24, 0.88);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
        }

        .admin-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 18px;
            border-bottom: 1px solid rgba(40, 215, 235, 0.16);
            color: var(--text);
            font-size: 20px;
            font-weight: 950;
        }

        .admin-brand-mark {
            display: grid;
            place-items: center;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            color: #52ecff;
            background: rgba(40, 215, 235, 0.13);
            box-shadow: 0 0 30px rgba(40, 215, 235, 0.18);
        }

        .admin-nav-group {
            margin-top: 18px;
        }

        .admin-nav-title {
            display: block;
            margin: 0 0 10px;
            color: #8d9aa7;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .admin-nav-link {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 42px;
            padding: 0 12px;
            border-radius: 8px;
            color: #c8d2dc;
            font-weight: 850;
        }

        .admin-nav-link:hover,
        .admin-nav-link.active {
            color: #62f0ff;
            background: linear-gradient(90deg, rgba(40, 215, 235, 0.18), rgba(40, 215, 235, 0.04));
            box-shadow: inset 3px 0 0 rgba(40, 215, 235, 0.92);
        }

        .admin-main {
            display: grid;
            gap: 16px;
            min-width: 0;
        }

        .admin-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: rgba(18, 22, 30, 0.82);
        }

        .admin-topbar h2 {
            margin: 0;
            font-size: 22px;
        }

        .admin-topbar p {
            margin: 4px 0 0;
            color: var(--muted);
        }

        .admin-topbar-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: flex-end;
        }

        .admin-panel {
            border: 1px solid var(--line);
            border-radius: 10px;
            background: rgba(18, 22, 30, 0.78);
            overflow: hidden;
        }

        .admin-panel-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 16px;
            border-bottom: 1px solid var(--line);
            background: rgba(255, 255, 255, 0.025);
        }

        .admin-panel-head h2 {
            margin: 0;
            font-size: 22px;
        }

        .admin-panel-head p {
            margin: 4px 0 0;
            color: var(--muted);
            line-height: 1.45;
        }

        .admin-panel-body {
            padding: 16px;
        }

        .cabinet-hero {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 22px;
        }

        .cabinet-hero p {
            max-width: 640px;
            margin: 14px 0 0;
            color: var(--muted);
            line-height: 1.6;
        }

        .cabinet-overview {
            display: block;
            margin-bottom: 18px;
        }

        .subscription-status-panel,
        .device-support-panel {
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.12), transparent 46%),
                linear-gradient(315deg, rgba(139, 124, 255, 0.08), transparent 48%),
                rgba(255, 255, 255, 0.052);
            box-shadow: 0 24px 78px rgba(0, 0, 0, 0.3);
        }

        .subscription-status-panel {
            padding: 26px;
        }

        .status-panel-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 22px;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 34px;
            padding: 0 12px;
            border: 1px solid rgba(188, 219, 255, 0.18);
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.24);
            color: var(--text);
            font-size: 13px;
            font-weight: 900;
        }

        .status-pill::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--success);
            box-shadow: 0 0 18px rgba(80, 227, 164, 0.75);
        }

        .status-pill.warning::before {
            background: #ffb020;
            box-shadow: 0 0 18px rgba(255, 176, 32, 0.75);
        }

        .status-pill.danger::before {
            background: var(--accent);
            box-shadow: 0 0 18px rgba(56, 227, 255, 0.75);
        }

        .subscription-status-panel h2 {
            max-width: 620px;
            margin: 18px 0 10px;
            font-size: clamp(34px, 5vw, 60px);
            line-height: 1;
        }

        .subscription-status-panel p {
            max-width: 620px;
            margin: 0;
            color: var(--muted);
            line-height: 1.65;
        }

        .status-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 0;
            justify-content: flex-end;
        }

        .status-actions form {
            margin: 0;
        }

        .disabled-renew {
            position: relative;
            opacity: 0.58;
            cursor: not-allowed;
        }

        .disabled-renew::after {
            content: attr(data-disabled-message);
            position: absolute;
            left: 0;
            bottom: calc(100% + 10px);
            z-index: 2;
            width: min(320px, 82vw);
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 8px;
            background: #181820;
            color: var(--text);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
            font-size: 13px;
            line-height: 1.4;
            opacity: 0;
            pointer-events: none;
            transform: translateY(4px);
            transition: opacity 160ms ease, transform 160ms ease;
        }

        .disabled-renew:hover::after,
        .disabled-renew:focus::after {
            opacity: 1;
            transform: translateY(0);
        }

        .status-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-top: 22px;
        }

        .status-metric {
            display: grid;
            gap: 5px;
            min-height: 92px;
            padding: 16px;
            border: 1px solid rgba(188, 219, 255, 0.14);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.2);
        }

        .status-metric span {
            color: var(--muted);
            font-size: 13px;
            font-weight: 800;
        }

        .status-metric strong {
            overflow-wrap: anywhere;
            font-size: 20px;
        }

        .admin-table-wrap {
            margin-top: 18px;
            border: 1px solid var(--line);
            border-radius: 8px;
            overflow-x: auto;
            background: rgba(255, 255, 255, 0.045);
        }

        .admin-table {
            width: 100%;
            min-width: 1040px;
            border-collapse: collapse;
            font-size: 14px;
        }

        .admin-table th,
        .admin-table td {
            padding: 12px;
            border-bottom: 1px solid var(--line);
            text-align: left;
            vertical-align: top;
        }

        .admin-table th {
            color: var(--muted);
            font-size: 12px;
            text-transform: uppercase;
        }

        .admin-table td {
            color: var(--text);
            overflow-wrap: anywhere;
        }

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

        .admin-section {
            margin-top: 28px;
        }

        .admin-shell .admin-section {
            margin-top: 0;
        }

        .admin-shell .dashboard-grid {
            margin: 0;
        }

        .admin-record-list {
            display: grid;
            gap: 12px;
            margin-top: 18px;
        }

        .admin-panel-body .admin-record-list {
            margin-top: 0;
        }

        .admin-record {
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.035);
        }

        .admin-record-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 14px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--line);
        }

        .admin-record-head h3 {
            margin: 2px 0 0;
            font-size: 20px;
            overflow-wrap: anywhere;
        }

        .admin-muted {
            color: var(--muted);
            font-size: 12px;
            font-weight: 850;
            text-transform: uppercase;
        }

        .admin-chip {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 999px;
            color: var(--text);
            background: rgba(255, 255, 255, 0.06);
            font-size: 12px;
            font-weight: 950;
            white-space: nowrap;
        }

        .admin-chip.good {
            border-color: rgba(56, 217, 130, 0.4);
            color: #8ff0b6;
            background: rgba(56, 217, 130, 0.1);
        }

        .admin-record-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
        }

        .admin-field {
            display: grid;
            gap: 5px;
            min-height: 74px;
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.16);
        }

        .admin-field span {
            color: var(--muted);
            font-size: 12px;
            font-weight: 850;
            text-transform: uppercase;
        }

        .admin-field strong,
        .admin-field code {
            color: var(--text);
            font: inherit;
            font-weight: 850;
            overflow-wrap: anywhere;
        }

        .admin-field code {
            font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
            font-size: 12px;
            line-height: 1.45;
        }

        .admin-record-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }

        .admin-empty {
            padding: 18px;
            border: 1px dashed rgba(255, 255, 255, 0.18);
            border-radius: 8px;
            color: var(--muted);
            background: rgba(255, 255, 255, 0.035);
        }

        .admin-plan-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-top: 18px;
        }

        .admin-panel-body > h3,
        .admin-panel-body form > h3 {
            margin: 18px 0 0;
            color: var(--text);
            font-size: 16px;
        }

        .admin-panel-body > h3:first-child,
        .admin-panel-body form > h3:first-of-type {
            margin-top: 0;
        }

        .admin-plan-card {
            display: grid;
            gap: 12px;
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.035);
        }

        .admin-plan-card h3 {
            margin: 0;
        }

        .admin-plan-preview {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-top: 8px;
            border-top: 1px solid var(--line);
        }

        .admin-plan-preview strong {
            font-size: 24px;
        }

        .admin-plan-card .field {
            gap: 6px;
        }

        .auth-grid {
            width: 100%;
            max-width: 760px;
            margin: 0 auto;
        }

        .auth-card,
        .dashboard-card {
            padding: 24px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
        }

        .auth-card h2,
        .dashboard-card h2 {
            margin-bottom: 12px;
        }

        .auth-card p,
        .dashboard-card p {
            margin: 0 0 18px;
            color: var(--muted);
            line-height: 1.55;
        }

        .cabinet-tabs {
            display: grid;
            gap: 14px;
        }

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

        .auth-switch {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            padding: 6px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.045);
        }

        .auth-switch label {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0 10px;
            border-radius: 8px;
            color: var(--muted);
            cursor: pointer;
            font-size: 14px;
            font-weight: 800;
            text-align: center;
        }

        #auth_link:checked ~ .auth-switch label[for="auth_link"],
        #auth_login:checked ~ .auth-switch label[for="auth_login"],
        #auth_register:checked ~ .auth-switch label[for="auth_register"] {
            color: #05111f;
            background: linear-gradient(135deg, var(--accent), #8adfff);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
        }

        .auth-panel {
            display: none;
        }

        #auth_link:checked ~ .auth-panels .auth-panel-link,
        #auth_login:checked ~ .auth-panels .auth-panel-login,
        #auth_register:checked ~ .auth-panels .auth-panel-register {
            display: block;
        }

        .cabinet-auth-grid {
            max-width: 460px;
            padding: 28px 0 36px;
        }

        .cabinet-auth-grid .cabinet-tabs {
            gap: 0;
        }

        .cabinet-auth-grid .auth-switch {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0 0 0 0);
            clip-path: inset(50%);
            white-space: nowrap;
        }

        .cabinet-auth-card {
            padding: 32px;
            border-color: rgba(188, 219, 255, 0.12);
            background: #121a29;
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
        }

        .cabinet-auth-card h2,
        .cabinet .email-verification-card h3,
        .auth-flow-panel > .email-verification-card h3 {
            max-width: 360px;
            margin: 0 0 8px;
            color: #ffffff;
            font-size: 29px;
            line-height: 1.16;
            letter-spacing: 0;
        }

        .cabinet-auth-card p,
        .cabinet .email-verification-card p,
        .auth-flow-panel > .email-verification-card p {
            margin: 0 0 24px;
            color: #ffffff;
            font-weight: 800;
            line-height: 1.25;
        }

        .cabinet-auth-card .order-form,
        .cabinet .email-verification-card .order-form,
        .auth-flow-panel > .email-verification-card .order-form {
            gap: 16px;
        }

        .cabinet-auth-card .field span,
        .cabinet .email-verification-card .field span,
        .auth-flow-panel > .email-verification-card .field span {
            color: #ffffff;
            font-size: 15px;
            font-weight: 850;
        }

        .cabinet-auth-card .field input,
        .cabinet .email-verification-card .field input,
        .auth-flow-panel > .email-verification-card .field input {
            min-height: 48px;
            border-color: rgba(229, 238, 255, 0.92);
            border-radius: 8px;
            background: #121a29;
            color: #ffffff;
        }

        .cabinet-auth-card .field input::placeholder,
        .cabinet .email-verification-card .field input::placeholder,
        .auth-flow-panel > .email-verification-card .field input::placeholder {
            color: rgba(210, 219, 232, 0.58);
        }

        .cabinet-auth-card .button,
        .cabinet .email-verification-card .button,
        .auth-flow-panel > .email-verification-card .button {
            width: 100%;
            min-height: 46px;
            border-color: rgba(59, 117, 224, 0.72);
            background: #3471dc;
            box-shadow: none;
        }

        .cabinet-auth-card .button:hover,
        .cabinet-auth-card .button:focus-visible,
        .cabinet .email-verification-card .button:hover,
        .cabinet .email-verification-card .button:focus-visible,
        .auth-flow-panel > .email-verification-card .button:hover,
        .auth-flow-panel > .email-verification-card .button:focus-visible {
            border-color: rgba(108, 158, 255, 0.86);
            background: #3d7be8;
            box-shadow: 0 14px 34px rgba(52, 113, 220, 0.22);
        }

        .auth-footer {
            display: grid;
            justify-items: center;
            gap: 10px;
            margin-top: 24px;
            color: rgba(221, 228, 240, 0.78);
            text-align: center;
        }

        .auth-footer-line {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 4px;
            color: rgba(221, 228, 240, 0.78);
            text-align: center;
        }

        .auth-footer a,
        .auth-footer-line a {
            color: #4d8cff;
            font-weight: 800;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .auth-panel-link .auth-footer-line {
            margin-top: 24px;
        }

        .auth-modal-card {
            width: min(460px, 100%);
            max-height: min(86vh, 760px);
        }

        .trial-checkout .auth-flow-panel {
            display: block;
            width: min(460px, 100%);
            padding: 0;
            border: 0;
            background: transparent;
            box-shadow: none;
            overflow: visible;
        }

        .auth-flow-card,
        .auth-flow-panel > .email-verification-card {
            width: 100%;
            max-height: calc(100dvh - 44px);
            overflow: auto;
        }

        .renewal-auth-card {
            width: min(560px, 100%);
        }

        .renew-modal-panel.cabinet-auth-card h2,
        .renew-modal-panel.cabinet-auth-card p {
            max-width: 100%;
            margin-left: 0;
        }

        .renew-modal-panel.cabinet-auth-card p {
            margin-bottom: 24px;
            color: #ffffff;
            font-weight: 800;
            line-height: 1.25;
        }

        .renewal-auth-card .renewal-options {
            grid-template-columns: 1fr;
        }

        .renewal-auth-card .renewal-option {
            min-height: 86px;
            border-color: rgba(229, 238, 255, 0.2);
            background: rgba(4, 9, 17, 0.32);
        }

        .renewal-auth-card .renewal-option:hover,
        .renewal-auth-card .renewal-option:has(input:checked) {
            border-color: rgba(77, 140, 255, 0.92);
            box-shadow: 0 0 0 1px rgba(77, 140, 255, 0.18), 0 14px 34px rgba(52, 113, 220, 0.14);
            transform: none;
        }

        .renewal-auth-card .form-actions {
            grid-template-columns: 1fr;
        }

        .auth-modal-card .renew-modal-close {
            background: rgba(255, 255, 255, 0.06);
        }

        .cabinet .email-verification-card-cabinet,
        .auth-flow-panel > .email-verification-card {
            width: min(460px, 100%);
            margin: 28px auto 36px;
            padding: 32px;
            border-color: rgba(188, 219, 255, 0.12);
            border-radius: 8px;
            background: #121a29;
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
        }

        .auth-flow-panel > .email-verification-card {
            margin: 0;
        }

        .auth-modal-card .email-verification-card {
            width: auto;
            margin: 0;
            padding: 0;
            border: 0;
            background: transparent;
            box-shadow: none;
        }

        .cabinet .email-verification-card .verification-email-display,
        .auth-flow-panel > .email-verification-card .verification-email-display {
            margin-bottom: 16px;
        }

        .cabinet .email-verification-card .verification-email-display input,
        .auth-flow-panel > .email-verification-card .verification-email-display input {
            border-color: transparent;
            background: #aab4c1;
            color: #07101d;
            opacity: 1;
        }

        .verification-code-field {
            display: grid;
            gap: 10px;
        }

        .verification-code-field > span {
            color: #ffffff;
            font-size: 15px;
            font-weight: 850;
        }

        .verification-code-hidden {
            display: none;
        }

        .verification-code-boxes {
            display: grid;
            grid-template-columns: repeat(6, 48px);
            gap: 8px;
            max-width: 100%;
        }

        .verification-code-boxes input {
            width: 48px;
            height: 56px;
            padding: 0;
            border: 2px solid rgba(229, 238, 255, 0.88);
            border-radius: 8px;
            background: #121a29;
            color: #ffffff;
            font: 850 24px/1 Arial, Helvetica, sans-serif;
            text-align: center;
            outline: none;
        }

        .verification-code-boxes input:focus {
            border-color: #4d8cff;
            box-shadow: 0 0 0 3px rgba(77, 140, 255, 0.18);
        }

        .cabinet .email-verification-card input[name="code"],
        .auth-flow-panel > .email-verification-card input[name="code"] {
            width: 332px;
            max-width: 332px;
            min-height: 56px;
            padding: 0 12px;
            border: 0;
            background:
                linear-gradient(90deg, rgba(229, 238, 255, 0.92) 0 2px, transparent 2px 56px) 0 100% / 56px 2px repeat-x,
                repeating-linear-gradient(90deg, #121a29 0 46px, transparent 46px 56px);
            color: #ffffff;
            font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
            font-size: 28px;
            letter-spacing: 29px;
            caret-color: #ffffff;
            box-shadow: none;
        }

        .cabinet .email-verification-card .resend-code-form,
        .cabinet .email-verification-card .email-change-form,
        .auth-flow-panel > .email-verification-card .resend-code-form,
        .auth-flow-panel > .email-verification-card .email-change-form {
            margin-top: 12px;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 16px;
            margin-bottom: 18px;
        }

        .metric {
            min-height: 132px;
            padding: 20px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
        }

        .metric span {
            display: block;
            margin-bottom: 12px;
            color: var(--muted);
            font-size: 14px;
            font-weight: 800;
        }

        .metric strong {
            display: block;
            font-size: clamp(22px, 3vw, 32px);
            line-height: 1.15;
            overflow-wrap: anywhere;
        }

        .cabinet-details {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 16px;
        }

        .referral-card {
            grid-column: 1 / -1;
            overflow: hidden;
            border-color: rgba(56, 227, 255, 0.3);
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.16), transparent 42%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
            box-shadow: 0 24px 76px rgba(56, 227, 255, 0.1);
        }

        .payment-history-card {
            grid-column: 1 / -1;
        }

        .payment-history-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            cursor: pointer;
            list-style: none;
        }

        .payment-history-toggle::-webkit-details-marker {
            display: none;
        }

        .payment-history-toggle h2 {
            margin: 0;
        }

        .payment-history-toggle span {
            display: inline-flex;
            align-items: center;
            min-height: 38px;
            padding: 0 12px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text);
            background: rgba(255, 255, 255, 0.06);
            font-size: 13px;
            font-weight: 900;
            white-space: nowrap;
        }

        .payment-history-toggle span::after {
            content: "↓";
            margin-left: 8px;
            color: var(--accent);
            font-size: 14px;
        }

        .payment-history-card[open] .payment-history-toggle span::after {
            content: "↑";
        }

        .payment-history-list {
            display: grid;
            gap: 10px;
            margin-top: 16px;
        }

        .payment-history-item {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.7fr) auto;
            gap: 12px;
            align-items: center;
            padding: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.16);
        }

        .payment-history-item strong {
            display: block;
            margin-bottom: 4px;
            color: var(--text);
            overflow-wrap: anywhere;
        }

        .payment-history-item span {
            color: var(--muted);
            font-size: 13px;
            font-weight: 800;
        }

        .payment-status {
            display: inline-flex;
            justify-content: center;
            min-width: 98px;
            padding: 8px 10px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 999px;
            color: var(--text);
            font-size: 12px;
            font-weight: 950;
        }

        .payment-status.good {
            border-color: rgba(56, 217, 130, 0.38);
            color: #8ff0b6;
            background: rgba(56, 217, 130, 0.1);
        }

        .payment-status.danger {
            border-color: rgba(56, 227, 255, 0.42);
            color: #ff9aad;
            background: rgba(56, 227, 255, 0.1);
        }

        .payment-status.warning {
            border-color: rgba(255, 176, 32, 0.38);
            color: #ffd28a;
            background: rgba(255, 176, 32, 0.1);
        }

        .referral-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
            gap: 18px;
            align-items: start;
        }

        .referral-hero {
            display: grid;
            gap: 16px;
        }

        .referral-link-panel,
        .referral-balance-panel,
        .referral-activity-panel {
            padding: 16px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.18);
        }

        .referral-link-panel {
            display: grid;
            gap: 12px;
        }

        .referral-copy-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
        }

        .copy-status {
            min-height: 18px;
            color: #8ff0b6;
            font-size: 13px;
            font-weight: 850;
        }

        .referral-rules-title {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 13px;
            font-weight: 900;
            text-transform: uppercase;
        }

        .referral-rules {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .referral-rule,
        .referral-reward {
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.16);
        }

        .referral-rule {
            min-height: 118px;
        }

        .referral-rule strong,
        .referral-reward strong {
            display: block;
            margin-bottom: 4px;
        }

        .referral-rule span,
        .referral-reward span {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .referral-balance-panel {
            display: grid;
            gap: 16px;
            padding: 18px;
            border-color: rgba(255, 255, 255, 0.14);
            background:
                linear-gradient(145deg, rgba(56, 227, 255, 0.12), transparent 52%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
            box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
        }

        .referral-balance-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .referral-balance-value {
            display: block;
            margin-top: 8px;
            font-size: clamp(34px, 5vw, 54px);
            line-height: 0.95;
            font-weight: 950;
        }

        .referral-balance-value span {
            font-size: 22px;
            color: var(--muted);
        }

        .referral-balance-caption {
            display: block;
            margin-top: 8px;
            color: var(--muted);
            font-size: 13px;
            font-weight: 850;
        }

        .referral-mini-stats {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .referral-mini-stat {
            display: grid;
            gap: 5px;
            min-height: 82px;
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.045);
        }

        .referral-mini-stat span {
            color: var(--muted);
            font-size: 12px;
            font-weight: 850;
        }

        .referral-mini-stat strong {
            font-size: 20px;
            overflow-wrap: anywhere;
        }

        .referral-payout-strip {
            display: grid;
            gap: 10px;
            padding: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.18);
        }

        .referral-payout-strip strong {
            font-size: 16px;
        }

        .referral-withdraw-note {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .referral-checklist {
            display: grid;
            gap: 8px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .referral-checklist li {
            display: flex;
            gap: 8px;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .referral-checklist li::before {
            content: "";
            flex: 0 0 auto;
            width: 8px;
            height: 8px;
            margin-top: 6px;
            border-radius: 999px;
            background: #38d982;
            box-shadow: 0 0 16px rgba(56, 217, 130, 0.55);
        }

        .referral-activity-panel {
            margin-top: 16px;
        }

        .referral-activity-panel h3 {
            margin: 0 0 12px;
            font-size: 20px;
        }

        .referral-rewards {
            display: grid;
            gap: 10px;
        }

        .referral-reward form {
            margin-top: 10px;
        }

        .referral-reward.pending {
            border-color: rgba(255, 176, 32, 0.34);
            background:
                linear-gradient(135deg, rgba(255, 176, 32, 0.1), transparent 52%),
                rgba(0, 0, 0, 0.16);
        }

        .referral-reward.pending strong {
            color: #ffd18a;
        }

        .renewal-card {
            display: grid;
            grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
            gap: 22px;
            align-items: start;
            margin-bottom: 18px;
            padding: 24px;
            border: 1px solid rgba(56, 227, 255, 0.28);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.14), transparent 46%),
                rgba(255, 255, 255, 0.05);
            box-shadow: 0 22px 70px rgba(56, 227, 255, 0.08);
        }

        .renewal-card h2 {
            margin: 10px 0 12px;
        }

        .renewal-card p {
            margin: 0;
            color: var(--muted);
            line-height: 1.6;
        }

        .renewal-meta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 18px;
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.18);
            color: var(--text);
            font-weight: 900;
        }

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

        .renewal-option {
            position: relative;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            min-height: 104px;
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
        }

        .renewal-option:hover,
        .renewal-option:has(input:checked) {
            border-color: rgba(56, 227, 255, 0.78);
            box-shadow: 0 0 26px rgba(56, 227, 255, 0.15);
            transform: translateY(-2px);
        }

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

        .renewal-option strong,
        .renewal-option em {
            display: block;
        }

        .renewal-option strong {
            margin-bottom: 6px;
            font-size: 18px;
        }

        .renewal-option em {
            color: var(--muted);
            font-size: 13px;
            font-style: normal;
            line-height: 1.4;
        }

        .renewal-option-price {
            color: var(--text);
            font-size: 22px;
            font-weight: 950;
            white-space: nowrap;
        }

        .renew-modal {
            position: fixed;
            inset: 0;
            z-index: 95;
            display: grid;
            place-items: center;
            padding: 22px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(18px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 180ms ease, visibility 180ms ease;
        }

        .renew-modal:target {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .renew-modal-backdrop {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

        .renew-modal-panel {
            position: relative;
            z-index: 1;
            width: min(920px, 100%);
            max-height: min(86vh, 820px);
            overflow: auto;
            padding: 24px;
            border: 1px solid rgba(56, 227, 255, 0.34);
            border-radius: 8px;
            background: #080f19;
            box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 22px 80px rgba(56, 227, 255, 0.12);
        }

        .renew-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            display: inline-grid;
            place-items: center;
            width: 38px;
            height: 38px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text);
            font-size: 24px;
            font-weight: 900;
        }

        .renew-modal-panel h2 {
            margin: 8px 0 10px;
        }

        .renew-modal-panel p {
            max-width: 620px;
            margin: 0 0 18px;
            color: var(--muted);
            line-height: 1.55;
        }

        .hwid-list {
            display: grid;
            gap: 10px;
            margin-top: 18px;
        }

        .hwid-card {
            display: grid;
            gap: 10px;
            padding: 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.045);
        }

        .hwid-card-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
        }

        .hwid-card-head strong {
            font-size: 17px;
        }

        .hwid-code {
            padding: 10px 12px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.28);
            color: var(--text);
            font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
            font-size: 13px;
            overflow-wrap: anywhere;
        }

        .hwid-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            color: var(--muted);
            font-size: 13px;
            font-weight: 800;
        }

        .hwid-meta span {
            padding: 6px 8px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.045);
        }

        .hwid-empty {
            padding: 18px;
            border: 1px dashed rgba(255, 255, 255, 0.18);
            border-radius: 8px;
            color: var(--muted);
            background: rgba(255, 255, 255, 0.035);
        }

        .detail-list {
            display: grid;
            gap: 12px;
            margin: 0;
        }

        .detail-list div {
            display: grid;
            gap: 4px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--line);
        }

        .detail-list dt {
            color: var(--muted);
            font-size: 13px;
            font-weight: 800;
        }

        .detail-list dd {
            margin: 0;
            overflow-wrap: anywhere;
        }

        .dashboard-card .order-form {
            margin-top: 18px;
        }

        .profile-summary {
            display: grid;
            grid-template-columns: minmax(0, 1.18fr) minmax(150px, 0.82fr);
            gap: 12px;
        }

        .profile-summary div {
            min-height: 94px;
            padding: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.16);
        }

        .profile-summary dt {
            margin-bottom: 8px;
            color: var(--muted);
            font-size: 13px;
            font-weight: 850;
        }

        .profile-summary dd {
            margin: 0;
            color: var(--text);
            font-size: 18px;
            font-weight: 900;
            overflow-wrap: anywhere;
        }

        .profile-summary div:first-child dd {
            font-size: 16px;
            line-height: 1.3;
            word-break: break-word;
        }

        .profile-summary dd.muted {
            color: var(--muted);
        }

        .profile-actions-panel {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 10px;
            margin-top: 16px;
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
        }

        .profile-actions-panel .button {
            width: 100%;
            min-height: 52px;
            justify-content: center;
            text-align: center;
        }

        .profile-actions-panel .button-primary {
            box-shadow: 0 18px 34px rgba(56, 227, 255, 0.24);
        }

        .profile-actions-secondary {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .profile-actions-secondary.single {
            grid-template-columns: 1fr;
        }

        .profile-contact-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .device-upgrade-intro {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 16px;
            align-items: center;
            margin: 12px 0 22px;
            padding: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.045);
        }

        .device-upgrade-meter {
            display: grid;
            place-items: center;
            min-width: 92px;
            min-height: 92px;
            border: 1px solid rgba(56, 227, 255, 0.35);
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(56, 227, 255, 0.18), rgba(255, 255, 255, 0.035));
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        }

        .device-upgrade-meter strong {
            color: var(--text);
            font-size: 28px;
            line-height: 1;
        }

        .device-upgrade-meter span {
            margin-top: 4px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 850;
            text-transform: uppercase;
        }

        .device-upgrade-intro p {
            max-width: none;
            margin: 0;
        }

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

        .device-upgrade-option {
            position: relative;
            display: grid;
            grid-template-rows: auto 1fr auto;
            gap: 12px;
            min-height: 140px;
            padding: 18px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.12)),
                rgba(0, 0, 0, 0.18);
            cursor: pointer;
            overflow: hidden;
            transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
        }

        .device-upgrade-option::after {
            content: "";
            position: absolute;
            inset: auto 18px 0;
            height: 3px;
            border-radius: 999px 999px 0 0;
            background: rgba(56, 227, 255, 0);
            transition: background 180ms ease;
        }

        .device-upgrade-option:hover,
        .device-upgrade-option:has(input:checked) {
            border-color: rgba(56, 227, 255, 0.78);
            box-shadow: 0 20px 44px rgba(56, 227, 255, 0.16);
            transform: translateY(-2px);
        }

        .device-upgrade-option:has(input:checked)::after {
            background: rgba(56, 227, 255, 0.95);
        }

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

        .device-upgrade-title {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .device-upgrade-title strong {
            color: var(--text);
            font-size: 22px;
            line-height: 1.1;
        }

        .device-upgrade-price {
            flex: 0 0 auto;
            padding: 7px 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.22);
            color: var(--text);
            font-size: 14px;
            font-weight: 900;
        }

        .device-upgrade-description {
            color: var(--muted);
            font-size: 14px;
            line-height: 1.45;
        }

        .device-upgrade-new-limit {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 7px 9px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.07);
            color: var(--text);
            font-size: 12px;
            font-weight: 850;
        }

        .cabinet-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 18px;
        }

        .device-support-panel {
            margin-top: 16px;
            padding: 24px;
        }

        .device-support-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 18px;
        }

        .device-support-head h2 {
            margin: 8px 0 0;
        }

        .device-support-head p {
            max-width: 620px;
            margin: 8px 0 0;
            color: var(--muted);
            line-height: 1.55;
        }

        .device-support-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            flex: 0 0 auto;
        }

        .device-support-actions span {
            color: var(--muted);
            font-size: 13px;
            font-weight: 800;
        }

        .cabinet-device-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 18px;
        }

        .cabinet-device {
            min-height: 112px;
            padding: 16px;
            border: 1px solid rgba(188, 219, 255, 0.15);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)),
                rgba(0, 0, 0, 0.18);
        }

        .cabinet-device strong {
            display: block;
            margin-bottom: 6px;
        }

        .cabinet-device span {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .cabinet-client-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .cabinet-client-list span {
            padding: 8px 10px;
            border: 1px solid rgba(188, 219, 255, 0.16);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.065);
            color: var(--text);
            font-size: 13px;
            font-weight: 800;
        }

        .legal-page {
            padding: 56px 0 64px;
        }

        .legal-page h1 {
            margin-bottom: 24px;
        }

        .legal-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            margin-bottom: 16px;
        }

        .legal-card {
            padding: 24px;
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            background:
                linear-gradient(135deg, rgba(56, 227, 255, 0.1), transparent 46%),
                rgba(255, 255, 255, 0.05);
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
        }

        .legal-card + .legal-card {
            margin-top: 16px;
        }

        .legal-card h2 {
            margin: 0 0 14px;
            font-size: clamp(24px, 3vw, 34px);
        }

        .legal-card p {
            margin: 0 0 12px;
            color: var(--muted);
            line-height: 1.65;
        }

        .legal-card p:last-child {
            margin-bottom: 0;
        }

        .legal-card a {
            color: var(--accent);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .legal-list {
            display: grid;
            gap: 10px;
            margin: 0;
        }

        .legal-list div {
            display: grid;
            gap: 4px;
            padding: 12px;
            border: 1px solid rgba(188, 219, 255, 0.12);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.18);
        }

        .legal-list dt {
            color: var(--muted);
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
        }

        .legal-list dd {
            margin: 0;
            color: var(--text);
            overflow-wrap: anywhere;
            font-weight: 850;
        }

        .site-footer {
            position: relative;
            z-index: 1;
            padding: 30px 0 34px;
            border-top: 1px solid var(--line);
            background: rgba(3, 8, 14, 0.58);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(260px, 0.8fr);
            gap: 22px;
            align-items: start;
        }

        .footer-brand p {
            max-width: 480px;
            margin: 14px 0 0;
            color: var(--muted);
            line-height: 1.55;
        }

        .footer-links,
        .footer-requisites {
            display: grid;
            gap: 9px;
        }

        .footer-links a,
        .footer-requisites a {
            color: var(--text);
        }

        .footer-links a:hover,
        .footer-requisites a:hover {
            color: var(--accent);
        }

        .footer-requisites {
            color: var(--muted);
            font-size: 14px;
            line-height: 1.45;
        }

        .footer-requisites strong {
            color: var(--text);
        }

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

            50% {
                transform: translateY(-8px) scale(1.04);
            }
        }

        @keyframes cosmosPulse {
            0% {
                opacity: 0;
                transform: scale(0.78);
            }

            28% {
                opacity: 0.58;
            }

            100% {
                opacity: 0;
                transform: scale(1.28);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .player .cosmos-mark,
            .player .cosmos-mark::after {
                animation: none;
            }

            .price-card,
            .price-card::before {
                transition: none;
            }

            .price-card:hover,
            .price-card:focus-within {
                transform: none;
            }

            .tariff-details,
            .tariff-detail-card,
            .checkout,
            .checkout-panel,
            .renew-modal,
            .renewal-option {
                transition: none;
            }
        }

        @media (max-width: 1080px) {
            .wrap {
                width: min(100% - 32px, 1120px);
            }

            .topbar {
                gap: 16px;
            }

            .nav {
                flex-wrap: wrap;
                justify-content: flex-end;
            }

            .nav a {
                padding: 9px 10px;
            }

            .hero {
                grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
                gap: 32px;
            }

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

            .device-showcase {
                grid-template-columns: 1fr;
            }

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

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

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

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

        @media (max-width: 860px) {
            .topbar {
                align-items: flex-start;
                flex-direction: column;
                margin-top: 10px;
                padding: 12px;
            }

            .nav {
                width: 100%;
                overflow-x: auto;
                padding-bottom: 4px;
                flex-wrap: nowrap;
                justify-content: flex-start;
                scrollbar-width: thin;
            }

            .nav a {
                flex: 0 0 auto;
                white-space: nowrap;
            }

            .hero {
                grid-template-columns: 1fr;
                gap: 30px;
                padding: 38px 0 48px;
            }

            h1 {
                font-size: clamp(40px, 11vw, 68px);
                line-height: 0.98;
            }

            h2 {
                font-size: clamp(28px, 7vw, 42px);
            }

            .visual {
                min-height: 390px;
            }

            .section-head {
                align-items: flex-start;
                flex-direction: column;
            }

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

            .device-showcase {
                grid-template-columns: 1fr;
            }

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

            .trial-panel {
                grid-template-columns: 1fr;
            }

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

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

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

            .tariff-detail-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .tariff-detail-price {
                text-align: left;
            }

            .tariff-benefits {
                grid-template-columns: 1fr;
            }

            .checkout-panel {
                grid-template-columns: 1fr;
                width: min(680px, 100%);
            }

            .trial-checkout .checkout-panel {
                grid-template-columns: 1fr;
                width: min(680px, 100%);
            }

            .checkout-copy {
                padding-right: 46px;
            }

            .trial-checkout .checkout-copy h2 {
                font-size: clamp(34px, 8vw, 52px);
                line-height: 1.04;
            }

            .cabinet-hero {
                align-items: flex-start;
                flex-direction: column;
            }

            .cabinet-overview,
            .dashboard-grid,
            .renewal-card,
            .cabinet-details,
            .admin-shell,
            .referral-layout {
                grid-template-columns: 1fr;
            }

            .admin-sidebar {
                position: static;
            }

            .admin-topbar,
            .admin-panel-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .referral-rules {
                grid-template-columns: 1fr;
            }

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

            .status-panel-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .status-actions {
                justify-content: flex-start;
            }

            .status-metrics {
                grid-template-columns: 1fr;
            }

            .device-support-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .device-support-actions {
                width: 100%;
                align-items: stretch;
            }

            .auth-grid {
                max-width: none;
            }

            .auth-switch {
                grid-template-columns: 1fr;
            }

            .profile-summary {
                grid-template-columns: 1fr;
            }

            .profile-actions-panel {
                grid-template-columns: 1fr;
            }

            .profile-actions-secondary {
                grid-template-columns: 1fr;
            }

            .profile-contact-actions {
                grid-template-columns: 1fr;
            }

            .device-upgrade-intro {
                grid-template-columns: 1fr;
            }

            .device-upgrade-meter {
                width: 100%;
            }

            .device-upgrade-grid {
                grid-template-columns: 1fr;
            }

            .renewal-options {
                grid-template-columns: 1fr;
            }

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

        @media (max-width: 520px) {
            .wrap {
                width: min(100% - 24px, 1120px);
            }

            .topbar {
                border-radius: 8px;
            }

            .brand {
                font-size: 16px;
            }

            .cosmos-mark {
                width: 42px;
                height: 42px;
            }

            .hero {
                gap: 26px;
                padding-top: 30px;
                padding-bottom: 44px;
            }

            h1 {
                font-size: clamp(36px, 13vw, 52px);
            }

            .lead {
                margin-top: 18px;
                font-size: 16px;
                line-height: 1.55;
            }

            .actions {
                display: grid;
                gap: 10px;
            }

            .referral-copy-row,
            .referral-mini-stats,
            .payment-history-item {
                grid-template-columns: 1fr;
            }

            .button {
                width: 100%;
                min-height: 50px;
                padding: 0 14px;
                white-space: normal;
                line-height: 1.18;
                text-align: center;
            }

            .visual {
                min-height: 330px;
            }

            .screen {
                inset: 14px;
            }

            .screen-body {
                padding: 16px;
            }

            .panel-row {
                grid-template-columns: 1fr;
            }

            .player .cosmos-mark {
                width: 78px;
                height: 78px;
            }

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

            .admin-plan-grid {
                grid-template-columns: 1fr;
            }

            .admin-record-grid {
                grid-template-columns: 1fr;
            }

            .admin-record-head {
                flex-direction: column;
            }

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

            .cabinet-device-grid {
                grid-template-columns: 1fr;
            }

            .trial-panel {
                padding: 20px;
            }

            .form-actions {
                grid-template-columns: 1fr;
            }

            .checkout,
            .tariff-details,
            .renew-modal {
                align-items: stretch;
                place-items: stretch;
                padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
            }

            .checkout-panel,
            .trial-checkout .checkout-panel,
            .tariff-detail-card,
            .renew-modal-panel {
                width: 100%;
                max-height: calc(100dvh - 20px);
                padding: 16px;
                border-radius: 8px;
            }

            .checkout:target .checkout-panel,
            .tariff-details:target .tariff-detail-card {
                transform: none;
            }

            .checkout-panel,
            .trial-checkout .checkout-panel {
                gap: 16px;
                grid-template-columns: 1fr;
            }

            .checkout-copy {
                padding-right: 46px;
            }

            .checkout-copy .kicker {
                margin-bottom: 12px;
            }

            .checkout-copy p {
                font-size: 15px;
                line-height: 1.5;
            }

            .trial-checkout .checkout-copy h2 {
                font-size: clamp(30px, 10vw, 42px);
                line-height: 1.05;
            }

            .checkout-close,
            .tariff-close,
            .renew-modal-close {
                top: 12px;
                right: 12px;
                width: 40px;
                height: 40px;
                background: rgba(12, 22, 36, 0.92);
            }

            .field {
                gap: 7px;
            }

            .field input,
            .field select {
                min-height: 50px;
                font-size: 16px;
            }

            .price-card,
            .card,
            .device-card,
            .subscription-status-panel,
            .device-support-panel,
            .renewal-card,
            .auth-card,
            .dashboard-card {
                padding: 18px;
            }

            .status-actions,
            .tariff-detail-actions,
            .cabinet-actions {
                display: grid;
                grid-template-columns: 1fr;
                width: 100%;
            }

            .device-support-actions {
                align-items: stretch;
            }

            .client-list,
            .cabinet-client-list {
                gap: 7px;
            }

            .client-chip,
            .cabinet-client-list span {
                font-size: 12px;
                padding: 8px 9px;
            }

            .legal-page {
                padding: 34px 0 44px;
            }

            .legal-card {
                padding: 18px;
            }

            .site-footer {
                padding: 24px 0;
            }
        }

        @media (max-width: 560px) {
            .cabinet-auth-grid {
                padding: 14px 0 28px;
            }

            .cabinet-auth-card,
            .cabinet .email-verification-card-cabinet,
            .auth-flow-panel > .email-verification-card {
                padding: 24px;
            }

            .cabinet-auth-card h2,
            .cabinet .email-verification-card h3,
            .auth-flow-panel > .email-verification-card h3 {
                font-size: 27px;
            }

            .auth-modal-card {
                width: 100%;
            }

            .cabinet .email-verification-card input[name="code"],
            .auth-flow-panel > .email-verification-card input[name="code"] {
                width: 288px;
                max-width: 100%;
                font-size: 24px;
                letter-spacing: 23px;
                background:
                    linear-gradient(90deg, rgba(229, 238, 255, 0.92) 0 2px, transparent 2px 48px) 0 100% / 48px 2px repeat-x,
                    repeating-linear-gradient(90deg, #121a29 0 40px, transparent 40px 48px);
            }

            .verification-code-boxes {
                grid-template-columns: repeat(6, minmax(0, 1fr));
                gap: 7px;
            }

            .verification-code-boxes input {
                width: 100%;
                height: 54px;
            }
        }

        .trial-checkout .auth-flow-panel {
            display: block;
            width: min(460px, 100%);
            max-height: none;
            padding: 0;
            border: 0;
            background: transparent;
            box-shadow: none;
            overflow: visible;
        }

        .renew-modal-panel.renewal-auth-card {
            width: min(560px, 100%);
        }
