@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap");

:root {
    --bg: #050816;
    --bg-deep: #070b1d;
    --bg-soft: rgba(255, 255, 255, 0.04);
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-strong: rgba(16, 22, 44, 0.88);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f7f9ff;
    --muted: #aab5d6;
    --primary: #7c5cff;
    --primary-2: #22c7ff;
    --primary-3: #4de2c5;
    --success: #35d48b;
    --danger: #ff6b81;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1200px;
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --blur: blur(18px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 199, 255, 0.14), transparent 24%),
        radial-gradient(circle at bottom center, rgba(77, 226, 197, 0.08), transparent 24%),
        linear-gradient(180deg, #040711 0%, #060a17 52%, #030611 100%);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body.menu-open,
body.auth-menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent);
    z-index: 0;
}

.site-bg::before,
.site-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.site-bg::before {
    width: 320px;
    height: 320px;
    background: rgba(124, 92, 255, 0.32);
    top: 90px;
    left: -80px;
    animation: floatGlow 9s ease-in-out infinite;
}

.site-bg::after {
    width: 360px;
    height: 360px;
    background: rgba(34, 199, 255, 0.24);
    right: -100px;
    top: 240px;
    animation: floatGlow 12s ease-in-out infinite reverse;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section-head {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--blur);
    border-radius: 999px;
    color: #dce2ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.section-head h2 {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
    max-width: 700px;
}

.glass {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition),
        opacity var(--transition),
        filter var(--transition);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.18) 50%, transparent 90%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #ffffff;
    box-shadow:
        0 16px 38px rgba(124, 92, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.header {
    position: sticky;
    top: 0;
    z-index: 70;
    padding: 18px 0;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(5, 8, 22, 0.86), rgba(5, 8, 22, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.3), rgba(34, 199, 255, 0.3), transparent);
    opacity: 0.8;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform var(--transition);
}

.header__brand:hover {
    transform: translateY(-1px);
}

.header__brand-text strong {
    display: block;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.header__brand-text span {
    color: var(--muted);
    font-size: 13px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header__nav a {
    color: #d9def7;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast), transform var(--transition-fast);
    position: relative;
}

.header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}

.header__nav a:hover,
.header__nav a.is-active {
    color: #ffffff;
    transform: translateY(-1px);
}

.header__nav a:hover::after,
.header__nav a.is-active::after {
    transform: scaleX(1);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__account {
    position: relative;
}

.account-trigger {
    min-width: 0;
    min-height: 58px;
    padding: 0 18px 0 20px;
    justify-content: space-between;
    gap: 12px;
    border-radius: 999px;
    position: relative;
    isolation: isolate;
}

.account-trigger::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    z-index: -1;
}

.account-trigger__text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.account-trigger__name {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    min-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.account-trigger__arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    transition: transform var(--transition), opacity var(--transition);
    opacity: 0.9;
}

.header__account.is-open .account-trigger {
    box-shadow:
        0 18px 42px rgba(124, 92, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.header__account.is-open .account-trigger__arrow {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(430px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(14, 19, 39, 0.98), rgba(8, 12, 28, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
    pointer-events: none;
    overflow: hidden;
}

.account-dropdown::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -50px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 199, 255, 0.16), transparent 65%);
    pointer-events: none;
}

.account-dropdown::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -50px;
    bottom: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.header__account.is-open .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.account-dropdown__panel {
    display: none;
    position: relative;
    z-index: 1;
}

.account-dropdown__panel.is-active {
    display: block;
    animation: fadeSlideIn 0.35s ease;
}

.account-dropdown__head {
    margin-bottom: 18px;
}

.account-dropdown__head h3 {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.05;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.account-dropdown__head p {
    color: var(--muted);
    font-size: 14px;
}

.auth-tabs {
    display: inline-flex;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    gap: 6px;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-tab {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: transparent;
    color: #d9def7;
    cursor: pointer;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
    font-weight: 600;
}

.auth-tab:hover {
    transform: translateY(-1px);
}

.auth-tab.is-active {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(34, 199, 255, 0.2));
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-form {
    display: none;
}

.auth-form.is-active {
    display: block;
    animation: fadeSlideIn 0.35s ease;
}

.auth-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.auth-form__field {
    display: grid;
    gap: 8px;
}

.auth-form__field label {
    color: #e2e7ff;
    font-size: 14px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-form input::placeholder {
    color: #8994b4;
}

.auth-form input:focus {
    border-color: rgba(124, 92, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 0 0 4px rgba(124, 92, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-form__actions {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.auth-form__status {
    color: var(--muted);
    font-size: 13px;
}

.auth-form__status.is-error {
    color: #ffd4db;
}

.auth-form__status.is-success {
    color: #dbffed;
}

.account-menu {
    display: grid;
    gap: 12px;
}

.account-menu__profile {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.account-menu__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-menu__row span {
    color: var(--muted);
    font-size: 14px;
}

.account-menu__row strong {
    text-align: right;
    font-size: 14px;
    word-break: break-word;
    color: #ffffff;
}

.account-menu__actions {
    display: grid;
    gap: 10px;
}

.account-menu__button {
    width: 100%;
}

.header__burger {
    width: 48px;
    height: 48px;
    display: none;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #ffffff;
    cursor: pointer;
    gap: 4px;
    padding: 0 12px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-menu {
    display: none;
}

.hero {
    padding: 70px 0 74px;
}

.hero__wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.hero__content {
    padding: 42px;
    position: relative;
    overflow: hidden;
}

.hero__content::before {
    content: "";
    position: absolute;
    inset: auto -10% -30% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.3), transparent 64%);
    pointer-events: none;
    animation: pulseSoft 7s ease-in-out infinite;
}

.hero__eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(34, 199, 255, 0.08);
    border: 1px solid rgba(34, 199, 255, 0.18);
    color: #dff8ff;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero__title {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    max-width: 720px;
    margin-bottom: 20px;
}

.hero__title span {
    background: linear-gradient(135deg, #ffffff 12%, #7c5cff 55%, #22c7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__description {
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 28px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__tag {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #d9def7;
    font-size: 14px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero__tag:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 92, 255, 0.26);
}

.hero__visual {
    display: grid;
    gap: 18px;
}

.hero-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.hero-card--primary {
    min-height: 260px;
    background:
        linear-gradient(180deg, rgba(124, 92, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.05);
}

.hero-card--primary::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    right: -70px;
    bottom: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 199, 255, 0.22), transparent 70%);
}

.hero-card__label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-card__title {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 34px;
    line-height: 1.04;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.hero-card__text {
    color: var(--muted);
    max-width: 320px;
}

.hero-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.mini-card {
    padding: 22px;
    transition: transform var(--transition), border-color var(--transition);
}

.mini-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.18);
}

.mini-card__value {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}

.mini-card__title {
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 700;
}

.mini-card__desc {
    color: var(--muted);
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stats-card {
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition);
}

.stats-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.18);
}

.stats-card__value {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.05em;
}

.stats-card__title {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
}

.stats-card__desc {
    color: var(--muted);
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px;
    position: relative;
    min-height: 270px;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.2);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(34, 199, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 25px;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.feature-card p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 16px;
}

.feature-card ul {
    display: grid;
    gap: 10px;
}

.feature-card li {
    color: #dde3ff;
    position: relative;
    padding-left: 18px;
    font-size: 14px;
}

.feature-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.experience__left,
.experience__right {
    padding: 32px;
}

.experience__left h3,
.experience__right h3 {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 29px;
    line-height: 1.08;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.experience__left p,
.experience__right p {
    color: var(--muted);
    margin-bottom: 22px;
}

.steps {
    display: grid;
    gap: 16px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, 0.18);
}

.step__number {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(124, 92, 255, 0.25);
}

.step__text strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
}

.step__text span {
    color: var(--muted);
    font-size: 14px;
}

.experience-panel {
    display: grid;
    gap: 16px;
}

.experience-panel__box {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.experience-panel__box:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 199, 255, 0.16);
}

.experience-panel__box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.experience-panel__box span {
    color: var(--muted);
    font-size: 14px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.plan-card {
    padding: 30px;
    position: relative;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.22);
}

.plan-card.is-popular {
    background:
        linear-gradient(180deg, rgba(124, 92, 255, 0.16), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
}

.plan-card.is-popular:hover {
    transform: translateY(-12px);
}

.plan-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(53, 212, 139, 0.12);
    border: 1px solid rgba(53, 212, 139, 0.25);
    color: #dffff0;
    font-size: 13px;
    font-weight: 600;
}

.plan-card__name {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}

.plan-card__desc {
    color: var(--muted);
    min-height: 48px;
    margin-bottom: 20px;
}

.plan-card__price {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 22px;
}

.plan-card__price strong {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-card__price span {
    color: var(--muted);
    margin-bottom: 4px;
}

.plan-card ul {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.plan-card li {
    color: #e9ecff;
    font-size: 15px;
    position: relative;
    padding-left: 20px;
}

.plan-card li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--success);
}

.account-page {
    padding: 96px 0;
}

.account-card {
    padding: 34px;
}

.account-card__head {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.account-card__head h1 {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.account-card__head p {
    color: var(--muted);
    max-width: 760px;
}

.account-card__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.account-card__grid[data-admin-panel] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.account-card__item {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-card__item span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.account-card__item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    word-break: break-word;
}

.account-card__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.account-card__notice {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.22);
    color: #ffd4d4;
    font-size: 15px;
    line-height: 1.5;
}

.account-card__action-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.account-card__action-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 166, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.account-card__action-tile span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-card__action-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.account-card__action-tile p {
    margin-top: auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.footer {
    padding: 34px 0 42px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    padding: 30px;
    margin-bottom: 18px;
}

.footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer__brand strong {
    display: block;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.footer__brand p {
    color: var(--muted);
    max-width: 500px;
}

.footer__links {
    display: flex;
    justify-content: flex-end;
    gap: 44px;
}

.footer__links-group strong {
    display: block;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
}

.footer__links-group a {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
    transition: color var(--transition), transform var(--transition-fast);
}

.footer__links-group a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px 0;
    color: var(--muted);
    font-size: 14px;
    flex-wrap: wrap;
}

.legal {
    padding: 84px 0;
}

.legal__card {
    padding: 34px;
}

.legal__card h1 {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.02;
    margin-bottom: 18px;
    letter-spacing: -0.05em;
}

.legal__card p,
.legal__card li {
    color: var(--muted);
    font-size: 16px;
}

.legal__card h2 {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 24px;
    margin: 26px 0 12px;
    letter-spacing: -0.03em;
}

.legal__card ul {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    list-style: disc;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(16px, -18px, 0) scale(1.06);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes pulseSoft {
    0% {
        opacity: 0.22;
        transform: scale(1);
    }
    50% {
        opacity: 0.34;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.22;
        transform: scale(1);
    }
}

body.modal-open {
    overflow: hidden;
}

.btn-danger {
    border: 1px solid rgba(255, 90, 90, 0.35);
    background: rgba(255, 90, 90, 0.12);
    color: #ffd7d7;
}

.btn-danger:hover {
    border-color: rgba(255, 90, 90, 0.55);
    background: rgba(255, 90, 90, 0.18);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 20, 0.72);
    backdrop-filter: blur(10px);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 28px;
}

.admin-modal__dialog--form {
    width: min(760px, 100%);
}

.admin-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-modal__header h2 {
    margin: 10px 0 0;
    font-size: 34px;
    line-height: 1.1;
}

.admin-modal__close {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.admin-modal__close:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.admin-modal__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.server-list {
    display: grid;
    gap: 18px;
}

.server-list__empty {
    padding: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.server-item {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.server-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.server-item__head h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.15;
    color: #ffffff;
}

.server-item__head span {
    color: var(--muted);
    word-break: break-word;
}

.server-item__delete {
    flex-shrink: 0;
}

.server-item__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.server-item__field {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-item__field span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.server-item__field strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
}

.server-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.server-form__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-form__field span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.server-form__field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.server-form__field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.server-form__field input:focus {
    border-color: rgba(86, 160, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(86, 160, 255, 0.12);
}

.server-form__actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 24px;
}

.admin-modal[hidden] {
    display: none !important;
}

.tariff-list {
    display: grid;
    gap: 14px;
}

.tariff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tariff-row__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tariff-row__left strong {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    word-break: break-word;
}

.tariff-row__left span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.toggle-field {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
}

.toggle-field input {
    display: none;
}

.toggle-field__switch {
    position: relative;
    width: 62px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.toggle-field__switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform var(--transition-fast);
}

.toggle-field input:checked + .toggle-field__switch {
    background: linear-gradient(135deg, rgba(110, 92, 255, 0.9), rgba(27, 174, 255, 0.9));
    border-color: rgba(101, 157, 255, 0.5);
    box-shadow: 0 0 24px rgba(59, 140, 255, 0.28);
}

.toggle-field input:checked + .toggle-field__switch::after {
    transform: translateX(28px);
}

.toggle-field__text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.plans-grid[data-plans-grid] {
    align-items: stretch;
}

.plan-card {
    height: 100%;
}

.plan-card .btn {
    margin-top: auto;
}

.plan-card ul {
    flex-grow: 1;
}

.server-form__field select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    outline: none;
    appearance: none;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.server-form__field select:focus {
    border-color: rgba(86, 160, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(86, 160, 255, 0.12);
}

.server-form__field select option {
    background: #131a2a;
    color: #ffffff;
}

.countries-toolbar {
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.countries-selected-tariff {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.countries-selected-tariff span {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.countries-selected-tariff strong {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    word-break: break-word;
}

.country-list {
    display: grid;
    gap: 14px;
}

.country-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.country-item__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.country-item__left strong {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    word-break: break-word;
}

.country-item__left span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.tariff-row--button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.tariff-row__action {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.payment-method-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.payment-method-card input {
    width: 18px;
    height: 18px;
    accent-color: #56a0ff;
}

.payment-method-card span {
    font-size: 15px;
    font-weight: 600;
}

.payment-method-card:has(input:checked) {
    border-color: rgba(86, 160, 255, 0.55);
    background: rgba(86, 160, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(86, 160, 255, 0.12);
    transform: translateY(-1px);
}

.payment-link-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.payment-link-tools__input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
}

.payment-link-tools__input::selection {
    background: rgba(86, 160, 255, 0.35);
}

.payment-link-tools__copy {
    min-width: 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.balance-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.balance-action-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.balance-action-option input {
    width: 18px;
    height: 18px;
    accent-color: #56a0ff;
}

.balance-action-option span {
    font-size: 15px;
    font-weight: 600;
}

.balance-action-option:has(input:checked) {
    border-color: rgba(86, 160, 255, 0.55);
    background: rgba(86, 160, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(86, 160, 255, 0.12);
    transform: translateY(-1px);
}