/* Updated: 2025-11-12 - v9 - Critical scroll fix: fixed .app-container positioning and height, added proper flex constraints */
:root {
    --color-bg-primary: #050301;
    --color-bg-secondary: #100703;
    --color-surface: rgba(26, 14, 7, 0.88);
    --color-surface-strong: rgba(34, 18, 9, 0.94);
    --color-border: rgba(255, 153, 40, 0.28);
    --color-border-strong: rgba(255, 180, 80, 0.45);
    --color-text-primary: #fff4e8;
    --color-text-secondary: rgba(255, 226, 198, 0.82);
    --color-muted: rgba(255, 217, 182, 0.62);
    --color-accent: #ff8a1d;
    --color-accent-strong: #ff6500;
    --color-success: #33eeb2;
    --color-danger: #ff6b6b;

    --gradient-card: linear-gradient(145deg, rgba(37, 19, 9, 0.92) 0%, rgba(18, 9, 5, 0.85) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 125, 0, 0.3) 0%, rgba(255, 95, 0, 0.45) 100%);
    --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.48);
    --shadow-strong: 0 34px 68px rgba(255, 110, 10, 0.28);

    --space-xxs: 4px;
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 28px;
    --space-xxl: 42px;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --layout-max: 560px;

    --duration-fast: 0.18s;
    --duration-medium: 0.28s;

    --setup-stack-gap: clamp(14px, 3.5vw, 18px);

    /* Aliases for compact UI variables (fix unresolved vars) */
    --text: var(--color-text-primary);
    --text-muted: var(--color-text-secondary);
    --accent: var(--color-accent);
    --accent-strong: var(--color-accent-strong);
    --primary: var(--accent);
    --bg-primary: var(--color-bg-primary);
    --bg-secondary: var(--color-bg-secondary);
    --card-bg: rgba(26, 14, 7, 0.88);
    --border-color: var(--color-border);
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    --orange: var(--color-accent);

    --paper-pattern-base: #d5c9b1;
    --paper-pattern-ink: #968c72;
    --paper-pattern-opacity: 0.46;
    --paper-pattern-fallback-opacity: 0.10;
    --paper-pattern-tile-width: 804px;
    --paper-pattern-offset-y: -22px;
    --paper-pattern-url: var(--paper-pattern-url-png);
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;          /* документ сам не скроллится */
    overscroll-behavior: none;   /* отключаем scroll chaining у корня */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text-primary);
    background: var(--paper-pattern-base);
    overflow: hidden;
    overscroll-behavior: none;    /* дубль на всякий случай для body */
    touch-action: pan-y;
}


/* Единая переменная высоты приложения: вычисляем один раз и используем в .app-container */
:root {
  --vh: 1vh;                              /* базовый фолбэк (JS обновляет через visualViewport) */
  --app-minh: calc(var(--vh) * 100);      /* единый источник истины для высоты скролл-контейнера */
  --app-scroll-end-gap: 12px;
  --app-account-scroll-end-gap: 22px;     /* небольшой хвост только для длинных экранов вроде профиля */
  --paper-stage-min-height: calc(var(--app-minh, 100vh) - var(--paper-container-pad-start, 0px) - var(--paper-container-pad-end, 0px));
}
@supports (height: 100svh) {
  :root { --vh: 1svh; }                   /* если dvh недоступен — используем svh */
}
@supports (height: 100dvh) {
  :root { --vh: 1dvh; }                   /* если поддерживаются оба, dvh должен победить svh */
}

/* Фон-прослойка должна пропускать клики и жесты к интерфейсу */
.app-background { pointer-events: none; }

/* Ссылки без синих подсветок и без тач-хайлайта iOS */
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;  /* Убираем iOS highlight */
    -webkit-touch-callout: none;  /* Убираем callout на iOS */
    box-sizing: border-box;  /* Предотвращаем wiggle от border */
    background: none;
    border: none;
    cursor: pointer;
}

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

.app-container {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-height: var(--app-minh, 100vh);
    height: var(--app-minh, 100vh);

    padding-inline: clamp(16px, 4vw, 32px);
    padding-block: clamp(24px, 6vh, 56px);
    padding-block-start: calc(clamp(24px, 6vh, 56px) + env(safe-area-inset-top, 0px));
    /* уменьшаем глобальный запас снизу — визуальный баланс сверху/снизу */
    padding-block-end:   calc(clamp(24px, 6vh, 56px) + env(safe-area-inset-bottom, 0px) + 12px);

    /* держим небольшой «буфер» для фокуса/клавы, но без лишнего воздуха */
    scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.web-nav-back {
    position: fixed;
    z-index: 1305;
    top: calc(env(safe-area-inset-top, 0px) + clamp(28px, 5.2vh, 42px));
    left: max(
        calc(env(safe-area-inset-left, 0px) + 10px),
        calc((100vw - min(var(--layout-max), calc(100vw - (2 * clamp(16px, 4vw, 32px))))) / 2 - 60px)
    );
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid rgba(94, 96, 78, 0.65);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(221, 212, 193, 0.96) 100%);
    color: #5e604e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 24px rgba(94, 96, 78, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px) scale(0.96);
    transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.web-nav-back svg {
    width: 21px;
    height: 21px;
}

.web-nav-back.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.web-nav-back.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.web-nav-back:hover {
    border-color: rgba(94, 96, 78, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(228, 219, 200, 0.98) 100%);
    box-shadow:
        0 14px 28px rgba(94, 96, 78, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.web-nav-back:active {
    transform: translateX(0) scale(0.97);
    box-shadow:
        0 8px 18px rgba(94, 96, 78, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.yf-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #5e604e;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yf-lang-switcher::before {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 136px;
    max-width: max(100%, 136px);
    height: 9px;
    background: transparent;
}

.yf-lang-switcher__trigger {
    min-width: 54px;
    height: 32px;
    padding: 0 9px 0 11px;
    border: 1px solid rgba(94, 96, 78, 0.22);
    border-radius: 999px;
    appearance: none;
    background: rgba(255, 255, 255, 0.44);
    color: rgba(94, 96, 78, 0.72);
    box-shadow:
        0 8px 18px rgba(94, 96, 78, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.yf-lang-switcher__trigger:hover,
.yf-lang-switcher:focus-within .yf-lang-switcher__trigger {
    border-color: rgba(94, 96, 78, 0.38);
    background: rgba(255, 255, 255, 0.78);
    color: #4f523f;
    box-shadow:
        0 12px 24px rgba(94, 96, 78, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.yf-lang-switcher__trigger:active {
    transform: scale(0.97);
}

.yf-lang-switcher__current {
    min-width: 18px;
    text-align: center;
}

.yf-lang-switcher__chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    opacity: 0.68;
    transition: transform .16s ease, opacity .16s ease;
}

.yf-lang-switcher:hover .yf-lang-switcher__chevron,
.yf-lang-switcher:focus-within .yf-lang-switcher__chevron {
    transform: translateY(1px) rotate(225deg);
    opacity: 0.88;
}

.yf-lang-switcher__menu {
    position: absolute;
    z-index: 3;
    top: calc(100% + 7px);
    right: 0;
    min-width: 136px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(94, 96, 78, 0.22);
    background: rgba(248, 244, 234, 0.94);
    box-shadow:
        0 18px 38px rgba(79, 82, 63, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(0.98);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease;
}

.yf-lang-switcher:hover .yf-lang-switcher__menu,
.yf-lang-switcher:focus-within .yf-lang-switcher__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.yf-lang-switcher__option {
    width: 100%;
    min-height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: 11px;
    appearance: none;
    background: transparent;
    color: rgba(94, 96, 78, 0.76);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.yf-lang-switcher__option:hover,
.yf-lang-switcher__option:focus-visible {
    background: rgba(94, 96, 78, 0.1);
    color: #3f4233;
    outline: none;
}

.yf-lang-switcher__option.is-active {
    background: rgba(94, 96, 78, 0.14);
    color: #3f4233;
}

.yf-lang-switcher__option-code {
    width: 24px;
    flex: 0 0 auto;
    color: rgba(94, 96, 78, 0.58);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.yf-lang-switcher__option-name {
    min-width: 0;
    flex: 1;
    text-align: left;
    letter-spacing: 0;
}

.yf-lang-switcher--floating {
    position: fixed;
    z-index: 1305;
    top: calc(env(safe-area-inset-top, 0px) + clamp(14px, 3vh, 24px));
    right: max(
        calc(env(safe-area-inset-right, 0px) + 14px),
        calc((100vw - min(var(--layout-max), calc(100vw - (2 * clamp(16px, 4vw, 32px))))) / 2 + 14px)
    );
}

body.page-auth-figma .yf-lang-switcher--floating {
    right: max(
        calc(env(safe-area-inset-right, 0px) + 14px),
        calc((100vw - min(760px, calc(100vw - (2 * clamp(18px, 4vw, 36px))))) / 2 + 10px)
    );
}

.yf-lang-switcher--profile {
    flex: 0 0 auto;
}

.yf-lang-switcher--profile::before {
    top: auto;
    right: auto;
    bottom: 100%;
    left: 0;
}

.yf-lang-switcher--profile .yf-lang-switcher__menu {
    top: auto;
    right: auto;
    bottom: calc(100% + 7px);
    left: 0;
    transform: translateY(4px) scale(0.98);
    transform-origin: bottom left;
}

.yf-lang-switcher--profile:hover .yf-lang-switcher__menu,
.yf-lang-switcher--profile:focus-within .yf-lang-switcher__menu {
    transform: translateY(0) scale(1);
}

@media (max-width: 860px) {
    .web-nav-back {
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        left: calc(env(safe-area-inset-left, 0px) + 10px);
        width: 40px;
        height: 40px;
        border-radius: 13px;
        transform: translateY(-4px) scale(0.96);
    }

    .web-nav-back.is-visible {
        transform: translateY(0) scale(1);
    }

    .web-nav-back:active {
        transform: translateY(0) scale(0.97);
    }

    .web-nav-back svg {
        width: 18px;
        height: 18px;
    }

    .yf-lang-switcher--floating {
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        right: calc(env(safe-area-inset-right, 0px) + 10px);
    }

    .app-container.app-container--web-back {
        padding-block-start: calc(clamp(24px, 6vh, 56px) + env(safe-area-inset-top, 0px) + 34px);
    }
}

@media (max-width: 420px) {
    .web-nav-back {
        left: calc(env(safe-area-inset-left, 0px) + 8px);
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .web-nav-back svg {
        width: 17px;
        height: 17px;
    }

    .yf-lang-switcher {
        font-size: 11px;
    }

    .yf-lang-switcher__trigger {
        min-width: 50px;
        height: 30px;
        padding-inline: 9px 8px;
    }

    .yf-lang-switcher__menu {
        min-width: 128px;
        border-radius: 15px;
    }

    .yf-lang-switcher::before {
        width: 128px;
        max-width: max(100%, 128px);
    }

    .yf-lang-switcher__option {
        min-height: 30px;
        font-size: 11px;
    }

    .app-container.app-container--web-back {
        padding-block-start: calc(clamp(24px, 6vh, 56px) + env(safe-area-inset-top, 0px) + 30px);
    }
}

.app-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 250, 240, 0.52) 0%, rgba(255, 250, 240, 0) 34%),
        #d5c9b1;
    color: #000000;
    z-index: 5;
    transition: opacity 0.2s ease;
}

.app-fallback.hidden {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.app-fallback-content {
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px 20px;
    border: 2px solid #5e604e;
    border-radius: 15px;
    background: #ddd4c1;
    box-shadow: 0 22px 48px rgba(94, 96, 78, 0.16);
}

.app-fallback-content button {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    background: #5e604e;
    color: #ffffff;
    font-weight: 600;
}

.view-unsupported {
    justify-content: center;
    align-items: center;
}

.unsupported-card {
    width: 100%;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    background: rgba(20, 10, 6, 0.85);
    border: 1px solid rgba(255, 170, 110, 0.35);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.unsupported-card p {
    margin: 0;
    color: var(--text-muted, rgba(255, 226, 198, 0.82));
    line-height: 1.4;
}

.view-auth {
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
}

.auth2-wrap {
    width: min(760px, 100%);
    margin-inline: auto;
    display: grid;
    gap: 14px;
    color: #f7f8ff;
    position: relative;
}

.auth2-toast-layer {
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(-14px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.auth2-toast-layer.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.auth2-toast {
    min-width: min(520px, calc(100vw - 28px));
    max-width: min(660px, calc(100vw - 28px));
    border-radius: 22px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #6f8ad6;
    background: linear-gradient(135deg, #4f679f 0%, #3d5087 100%);
    box-shadow: 0 18px 42px rgba(6, 10, 30, 0.58);
    color: #e7eeff;
    font-size: clamp(16px, 1.6vw, 24px);
    line-height: 1.35;
}

.auth2-toast--error {
    border-color: #d56a80;
    background: linear-gradient(135deg, #9c4e61 0%, #7f415b 100%);
    color: #ffe2e2;
}

.auth2-toast--success {
    border-color: #52b89f;
    background: linear-gradient(135deg, #2f7c71 0%, #2f6866 100%);
    color: #e2fff5;
}

.auth2-toast-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.auth2-toast-icon svg {
    width: 24px;
    height: 24px;
}

.auth2-toast-text {
    font-weight: 500;
}

.auth2-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.auth2-logo {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 168, 101, 0.46);
    background: linear-gradient(140deg, rgba(27, 12, 10, 0.94) 0%, rgba(18, 8, 22, 0.92) 100%);
    box-shadow:
        0 16px 46px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(255, 124, 34, 0.26),
        inset 0 1px 0 rgba(255, 214, 171, 0.1);
    flex: 0 0 auto;
    overflow: hidden;
}

.auth2-logo svg,
.auth2-logo img,
.auth2-logo .auth2-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transform: scale(1.22);
    transform-origin: center;
}

.auth2-title {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #f7f8ff;
    white-space: nowrap;
    text-wrap: nowrap;
}

.auth2-subtitle {
    margin: 0;
    text-align: center;
    color: rgba(196, 202, 224, 0.92);
    font-size: clamp(14px, 1.3vw, 20px);
    line-height: 1.4;
}

.auth2-card {
    width: 100%;
    border-radius: 30px;
    padding: clamp(18px, 2.6vw, 30px);
    border: 1px solid rgba(156, 165, 203, 0.26);
    background: linear-gradient(140deg, rgba(67, 40, 96, 0.36) 0%, rgba(30, 20, 64, 0.58) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 14px;
}

.auth2-card--notice {
    gap: 12px;
}

.auth2-link-final-notice {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(97, 211, 169, 0.42);
    background: rgba(41, 106, 92, 0.24);
    color: rgba(220, 255, 246, 0.96);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.auth2-link-final-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #61d3a9;
}

.auth2-link-final-icon svg {
    width: 18px;
    height: 18px;
}

.auth2-link-final-subtext {
    margin: 0;
    color: rgba(198, 204, 226, 0.9);
    font-size: 13px;
    line-height: 1.45;
}

.auth2-link-hint {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(102, 180, 255, 0.45);
    background: rgba(56, 82, 134, 0.24);
    color: rgba(225, 242, 255, 0.95);
    font-size: 13px;
    line-height: 1.45;
}

.auth2-link-hint-icon svg {
    width: 16px;
    height: 16px;
}

.auth2-form {
    display: grid;
    gap: 11px;
}

.auth2-label {
    font-size: clamp(13px, 0.95vw, 16px);
    line-height: 1.35;
    color: rgba(226, 229, 241, 0.96);
    font-weight: 500;
}

.auth2-input {
    width: 100%;
    height: clamp(50px, 4.2vw, 60px);
    border-radius: 18px;
    border: 1px solid rgba(148, 154, 182, 0.36);
    background: rgba(143, 150, 170, 0.1);
    color: #f6f8ff;
    padding: 0 18px;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.3;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.auth2-input::placeholder {
    color: rgba(137, 146, 170, 0.8);
}

.auth2-input:focus {
    border-color: rgba(120, 163, 255, 0.68);
    background: rgba(150, 160, 186, 0.14);
    box-shadow: 0 0 0 4px rgba(73, 107, 211, 0.22);
}

.auth2-password-wrap {
    position: relative;
}

.auth2-input--password {
    padding-right: 54px;
}

.auth2-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: rgba(169, 176, 199, 0.9);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.auth2-password-toggle:hover {
    color: rgba(219, 224, 242, 0.97);
}

.auth2-password-toggle svg {
    width: 22px;
    height: 22px;
}

.auth2-primary-btn {
    width: 100%;
    min-height: clamp(52px, 4.8vw, 62px);
    border-radius: 18px;
    border: 2px solid #5e604e;
    padding: 0 22px;
    color: #fffdf8;
    font-size: clamp(17px, 1.3vw, 22px);
    font-weight: 700;
    letter-spacing: -0.01em;
    background: #5e604e;
    box-shadow:
        0 4px 0 #4a4c3d,
        0 10px 20px rgba(94, 96, 78, 0.18);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}

.auth2-primary-btn:hover {
    transform: translateY(-1px);
    background: #676a58;
    border-color: #676a58;
    box-shadow:
        0 5px 0 #4a4c3d,
        0 12px 24px rgba(94, 96, 78, 0.22);
}

.auth2-primary-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a4c3d;
}

.auth2-card .auth-inline-message {
    margin-top: -2px;
    margin-bottom: -2px;
    border-radius: 14px;
    font-size: clamp(14px, 1.5vw, 20px);
    padding: 10px 14px;
}

.auth2-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth2-row--between {
    justify-content: space-between;
}

.auth2-row--center {
    justify-content: center;
}

.auth2-passkey-add-row {
    margin-top: -2px;
}

.auth2-link {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.35;
    cursor: pointer;
    transition: color .16s ease;
}

.auth2-link--muted {
    color: rgba(169, 176, 199, 0.9);
}

.auth2-link--muted:hover {
    color: rgba(208, 214, 237, 0.98);
}

.auth2-link--accent {
    color: #ff9f44;
    font-weight: 600;
}

.auth2-link--accent:hover {
    color: #ffb066;
}

.auth2-link--passkey-add {
    font-size: 13px;
}

.auth2-divider-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.auth2-divider-line {
    width: 100%;
    height: 1px;
    background: rgba(156, 162, 192, 0.18);
}

.auth2-divider-pill {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 3px 24px;
    border-radius: 999px;
    background: rgba(8, 5, 24, 0.74);
    color: rgba(166, 173, 197, 0.95);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.2;
    white-space: nowrap;
}

.auth2-alt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.6vw, 22px);
    margin-top: 2px;
}

.auth2-alt-card {
    position: relative;
}

.auth2-alt-card .auth2-alt-btn {
    width: 100%;
}

.auth2-alt-btn {
    min-height: clamp(58px, 5.5vw, 74px);
    border-radius: 18px;
    border: 1px solid rgba(145, 151, 181, 0.3);
    background: rgba(134, 143, 172, 0.08);
    color: #f3f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
    padding: 0 16px;
}

.auth2-alt-btn:hover {
    border-color: rgba(171, 178, 206, 0.56);
    background: rgba(151, 161, 192, 0.12);
}

.auth2-alt-btn--telegram.is-focus {
    border-color: rgba(138, 187, 255, 0.86);
    box-shadow: 0 0 0 4px rgba(94, 147, 255, 0.24);
}

.auth2-alt-btn:disabled,
.auth2-alt-btn.is-unavailable {
    opacity: 0.56;
    cursor: not-allowed;
}

.auth2-alt-btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.2) 50%, transparent 90%);
    transform: translateX(-100%);
    animation: auth2Shimmer 1.25s linear infinite;
}

.auth2-alt-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    pointer-events: none;
}

.auth2-alt-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
}

.auth2-alt-icon svg {
    width: 25px;
    height: 25px;
}

.auth2-alt-icon--telegram {
    color: #64a8ff;
}

.auth2-alt-icon--passkey {
    color: #40d98e;
}

.auth2-alt-label {
    font-size: clamp(15px, 1.15vw, 19px);
    font-weight: 600;
    line-height: 1.2;
}

.auth2-telegram-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border-radius: 18px;
    overflow: hidden;
    pointer-events: none;
}

.auth2-telegram-overlay script {
    display: none;
}

.auth2-telegram-overlay iframe {
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    opacity: 0.001;
    border: 0;
    display: block;
}

.auth2-alt-card--telegram.is-unavailable .auth2-telegram-overlay {
    display: none;
}

.auth2-alt-card--telegram.is-armed .auth2-telegram-overlay {
    pointer-events: auto;
}

.auth2-bottom-copy {
    text-align: center;
    color: rgba(156, 163, 189, 0.9);
    font-size: clamp(14px, 1.05vw, 17px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .auth2-title {
        font-size: clamp(30px, 6vw, 38px);
    }

    .auth2-subtitle {
        font-size: clamp(14px, 2.2vw, 18px);
    }

    .auth2-card {
        border-radius: 26px;
        padding: clamp(18px, 3vw, 26px);
    }
}

@media (max-width: 760px) {
    .auth2-toast {
        min-width: min(420px, calc(100vw - 22px));
        max-width: min(420px, calc(100vw - 22px));
        border-radius: 16px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .auth2-toast-icon,
    .auth2-toast-icon svg {
        width: 20px;
        height: 20px;
    }

    .auth2-wrap {
        gap: 14px;
    }

    .auth2-title-row {
        gap: 12px;
    }

    .auth2-logo {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .auth2-logo svg,
    .auth2-logo img,
    .auth2-logo .auth2-logo-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        transform: scale(1.22);
    }

    .auth2-title {
        font-size: clamp(26px, 8.2vw, 34px);
    }

    .auth2-subtitle {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    .auth2-card {
        border-radius: 26px;
        padding: 18px;
        gap: 14px;
    }

    .auth2-label {
        font-size: 15px;
    }

    .auth2-input {
        height: 54px;
        border-radius: 18px;
        padding: 0 16px;
        font-size: 14px;
    }

    .auth2-input--password {
        padding-right: 54px;
    }

    .auth2-password-toggle {
        right: 14px;
        width: 28px;
        height: 28px;
    }

    .auth2-password-toggle svg {
        width: 21px;
        height: 21px;
    }

    .auth2-primary-btn {
        min-height: 54px;
        border-radius: 18px;
        font-size: 17px;
    }

    .auth2-link {
        font-size: 14px;
    }

    .auth2-divider-pill {
        font-size: 12px;
    }

    .auth2-alt-btn {
        min-height: 56px;
        border-radius: 18px;
        gap: 9px;
    }

    .auth2-alt-icon,
    .auth2-alt-icon svg {
        width: 19px;
        height: 19px;
    }

    .auth2-alt-label {
        font-size: 14px;
    }

    .auth2-bottom-copy {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .auth2-title-row {
        gap: 10px;
    }

    .auth2-logo {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .auth2-title {
        font-size: clamp(22px, 8vw, 30px);
        line-height: 1.03;
    }
}

@media (max-width: 380px) {
    .auth2-logo {
        width: 56px;
        height: 56px;
    }

    .auth2-title {
        font-size: clamp(20px, 7.6vw, 26px);
    }
}

@keyframes auth2Shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.auth-stage {
    width: min(560px, 100%);
    margin-inline: auto;
}

.auth-card {
    width: 100%;
    border-radius: 28px;
    padding: clamp(22px, 3.2vw, 30px);
    border: 1px solid rgba(255, 154, 72, 0.46);
    background: linear-gradient(155deg, rgba(20, 18, 21, 0.96) 0%, rgba(23, 15, 14, 0.94) 56%, rgba(22, 11, 8, 0.92) 100%);
    box-shadow:
        0 28px 58px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 136, 40, 0.1) inset;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-header {
    display: grid;
    gap: 8px;
    margin-bottom: 2px;
}

.auth-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #ffd7b5;
    background: linear-gradient(145deg, rgba(255, 146, 56, 0.3) 0%, rgba(255, 106, 36, 0.2) 100%);
}

.auth-icon svg {
    width: 20px;
    height: 20px;
}

.auth-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 34px);
    line-height: 1.1;
}

.auth-subtitle {
    margin: 0;
    color: rgba(255, 230, 206, 0.86);
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.4;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 224, 198, 0.9);
}

.auth-input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255, 168, 93, 0.42);
    background: rgba(12, 14, 18, 0.88);
    color: var(--text, #fff4e8);
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-input:focus {
    border-color: rgba(255, 150, 58, 0.86);
    box-shadow: 0 0 0 3px rgba(255, 124, 36, 0.26);
}

.auth-meta-row {
    display: flex;
    justify-content: flex-start;
    margin-top: -1px;
}

.auth-meta-row--center {
    justify-content: center;
}

.auth-text-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    color: rgba(255, 216, 178, 0.82);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color .16s ease;
}

.auth-text-btn:hover {
    color: rgba(255, 236, 215, 0.98);
}

.auth-text-btn--accent {
    color: rgba(255, 172, 104, 0.95);
}

.auth-text-btn--accent:hover {
    color: rgba(255, 197, 146, 1);
}

.auth-text-btn--muted {
    color: rgba(255, 207, 166, 0.74);
}

.auth-text-btn--muted:hover {
    color: rgba(255, 227, 197, 0.92);
}

.auth-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.auth-actions--primary {
    margin-top: 4px;
}

.auth-btn-main,
.auth-btn-passkey {
    width: 100%;
    justify-content: center;
}

.auth-btn-main {
    min-height: 58px;
    font-size: 19px;
    font-weight: 800;
}

.auth-register-block {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.auth-register-caption {
    color: rgba(255, 216, 179, 0.8);
    font-size: 13px;
    text-align: center;
}

.auth-actions--register {
    margin-top: 0;
}

.auth-btn-register {
    width: 100%;
    min-height: 54px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(255, 163, 92, 0.2) 0%, rgba(34, 20, 18, 0.92) 100%) !important;
    border-color: rgba(255, 177, 106, 0.48) !important;
    color: rgba(255, 238, 220, 0.96) !important;
    box-shadow: 0 18px 40px rgba(255, 110, 28, 0.2) !important;
}

.auth-btn-register:hover {
    border-color: rgba(255, 192, 134, 0.64) !important;
    box-shadow: 0 22px 46px rgba(255, 123, 40, 0.28) !important;
}

.auth-alt-section {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 214, 178, 0.64);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 176, 120, 0.28);
    margin: 0 10px;
}

.auth-telegram-zone {
    display: grid;
    gap: 7px;
    border-radius: 16px;
    border: 1px solid rgba(255, 163, 88, 0.34);
    background: linear-gradient(150deg, rgba(31, 20, 20, 0.8) 0%, rgba(24, 14, 14, 0.68) 100%);
    padding: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-telegram-zone.is-focus {
    border-color: rgba(255, 190, 128, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 135, 48, 0.23);
}

.auth-alt-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 236, 214, 0.96);
}

.auth-alt-subtitle {
    margin: 0;
    color: rgba(255, 214, 178, 0.78);
    font-size: 12px;
    line-height: 1.4;
}

.auth-telegram-widget {
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-passkey-row {
    margin-top: 0;
}

.auth-passkey-compact {
    display: flex;
    justify-content: center;
}

.auth-btn-passkey {
    width: auto;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 650;
    border-color: rgba(255, 168, 93, 0.34);
    color: rgba(255, 231, 206, 0.9);
    background: rgba(27, 18, 18, 0.7);
}

.auth-btn-passkey svg {
    width: 17px;
    height: 17px;
}

.auth-link-hint {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(111, 202, 255, 0.35);
    background: rgba(40, 86, 117, 0.22);
    color: #d4efff;
    font-size: 13px;
    line-height: 1.45;
}

.auth-link-hint-icon svg {
    width: 16px;
    height: 16px;
}

.auth-widget-hint {
    text-align: center;
    color: rgba(255, 214, 178, 0.75);
    font-size: 12px;
    line-height: 1.45;
}

.auth-inline-message {
    display: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-inline-message.is-visible {
    display: block;
}

.auth-inline-message--error {
    border: 1px solid rgba(255, 125, 125, 0.38);
    background: rgba(95, 20, 20, 0.34);
    color: rgba(255, 203, 203, 0.96);
}

.auth-inline-message--info {
    border: 1px solid rgba(255, 172, 105, 0.34);
    background: rgba(62, 33, 15, 0.34);
    color: rgba(255, 223, 191, 0.95);
}

.auth-inline-message--success {
    border: 1px solid rgba(90, 215, 165, 0.38);
    background: rgba(19, 67, 49, 0.32);
    color: rgba(189, 255, 232, 0.96);
}

.auth-recovery-spam-hint {
    display: none;
    margin: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid rgba(118, 156, 255, 0.36);
    background: rgba(36, 52, 94, 0.32);
    color: rgba(208, 223, 255, 0.96);
}

.auth-recovery-spam-hint.is-visible {
    display: block;
}

.auth-reset-note {
    border: 1px solid rgba(255, 172, 105, 0.34);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(62, 33, 15, 0.34);
    color: rgba(255, 223, 191, 0.95);
    font-size: 13px;
    line-height: 1.45;
}

.auth-widget-hint--muted {
    border: 1px solid rgba(255, 172, 105, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(34, 22, 19, 0.5);
}

.auth2-modal,
.auth-recovery-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    padding: clamp(16px, 3vw, 28px);
    background: rgba(7, 8, 18, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.auth2-modal.show,
.auth-recovery-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.auth2-modal-card,
.auth-recovery-card {
    width: min(520px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(156, 165, 203, 0.34);
    background: linear-gradient(140deg, rgba(67, 40, 96, 0.42) 0%, rgba(30, 20, 64, 0.76) 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 32px 74px rgba(0, 0, 0, 0.56),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    padding: clamp(18px, 2.8vw, 24px);
    display: grid;
    gap: 12px;
    position: relative;
}

.auth2-modal-close,
.auth-recovery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(157, 165, 196, 0.28);
    background: rgba(148, 157, 188, 0.16);
    color: rgba(235, 239, 255, 0.9);
    display: grid;
    place-items: center;
}

.auth2-modal-close svg,
.auth-recovery-close svg {
    width: 18px;
    height: 18px;
}

.auth2-modal-icon,
.auth-recovery-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffb067;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18) 0%, rgba(255, 140, 66, 0.12) 100%);
}

.auth2-modal-icon svg,
.auth-recovery-icon svg {
    width: 27px;
    height: 27px;
}

.auth2-modal-title,
.auth-recovery-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #f7f8ff;
    padding-right: 40px;
}

.auth2-modal-text,
.auth-recovery-text {
    margin: 0;
    font-size: clamp(14px, 1.05vw, 17px);
    color: rgba(198, 204, 226, 0.94);
    line-height: 1.45;
}

.auth2-modal-text b {
    color: #f7f8ff;
    font-weight: 600;
}

.auth-recovery-form {
    display: grid;
    gap: 10px;
}

.auth-recovery-input {
    height: clamp(54px, 5.6vw, 68px);
}

.auth-recovery-actions {
    display: grid;
    gap: 10px;
}

.auth-recovery-btn {
    width: 100%;
    min-height: clamp(48px, 4.6vw, 58px);
    border-radius: 16px;
    border: 1px solid rgba(145, 151, 181, 0.34);
    background: rgba(134, 143, 172, 0.1);
    color: #f3f6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 600;
}

.auth-recovery-btn svg {
    width: 20px;
    height: 20px;
}

.auth-recovery-btn-send,
.auth-recovery-btn-main {
    border-color: #5e604e;
    background: #5e604e;
    color: #fffdf8;
    box-shadow:
        0 4px 0 #4a4c3d,
        0 10px 20px rgba(94, 96, 78, 0.18);
}

.auth-recovery-btn-passkey,
.auth-recovery-btn-support {
    background: rgba(134, 143, 172, 0.08);
}

.auth-recovery-btn:hover {
    border-color: rgba(171, 178, 206, 0.56);
    background: rgba(151, 161, 192, 0.14);
}

.auth-recovery-btn-send:hover,
.auth-recovery-btn-main:hover {
    background: #676a58;
    border-color: #676a58;
    box-shadow:
        0 5px 0 #4a4c3d,
        0 12px 24px rgba(94, 96, 78, 0.22);
}

.auth2-verify-card {
    width: min(500px, 100%);
}

.auth2-verify-form {
    display: grid;
    gap: 10px;
}

.auth2-verify-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth2-verify-label-hint {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: rgba(170, 177, 201, 0.9);
    white-space: nowrap;
}

.auth2-code-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: clamp(4px, 0.8vw, 8px);
}

.auth2-code-cell {
    height: clamp(46px, 4.2vw, 54px);
    border-radius: 12px;
    border: 1px solid rgba(148, 154, 182, 0.36);
    background: rgba(143, 150, 170, 0.1);
    color: #f6f8ff;
    text-align: center;
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.auth2-code-cell:focus {
    border-color: rgba(120, 163, 255, 0.68);
    background: rgba(150, 160, 186, 0.14);
    box-shadow: 0 0 0 3px rgba(73, 107, 211, 0.22);
}

.auth2-verify-submit {
    margin-top: 2px;
}

.auth2-verify-actions {
    margin-top: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth2-verify-actions--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.auth2-passkey-delete-btn {
    min-height: clamp(38px, 3.3vw, 44px);
    font-size: clamp(14px, 0.96vw, 16px);
    border-radius: 12px;
    opacity: 0.92;
}

.auth2-modal-icon--telegram {
    color: #64a8ff;
    background: linear-gradient(135deg, rgba(64, 144, 255, 0.2) 0%, rgba(51, 111, 224, 0.14) 100%);
}

.auth2-telegram-preflight-card {
    gap: 14px;
}

.auth2-telegram-preflight-note {
    display: grid;
    gap: 9px;
    border-radius: 14px;
    border: 1px solid rgba(147, 156, 192, 0.28);
    background: rgba(82, 95, 131, 0.14);
    padding: 12px;
}

.auth2-telegram-preflight-note-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(219, 225, 245, 0.95);
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.4;
}

.auth2-telegram-preflight-note-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: rgba(145, 199, 255, 0.95);
}

.auth2-telegram-preflight-note-icon svg {
    width: 16px;
    height: 16px;
}

.auth2-telegram-preflight-status {
    border-radius: 14px;
    border: 1px solid rgba(147, 156, 192, 0.28);
    background: rgba(80, 90, 122, 0.16);
    padding: 10px 12px;
    color: rgba(221, 228, 248, 0.95);
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth2-telegram-preflight-status--info {
    border-color: rgba(120, 170, 255, 0.38);
    background: rgba(78, 112, 176, 0.16);
}

.auth2-telegram-preflight-status--loading {
    border-color: rgba(255, 179, 107, 0.44);
    background: rgba(96, 64, 26, 0.22);
}

.auth2-telegram-preflight-status--failed {
    border-color: rgba(255, 133, 129, 0.44);
    background: rgba(98, 35, 39, 0.2);
}

.auth2-telegram-preflight-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-top-color: rgba(255, 184, 116, 0.95);
    animation: auth2TelegramSpin .8s linear infinite;
    flex-shrink: 0;
}

.auth2-telegram-preflight-actions {
    margin-top: 2px;
}

.auth2-telegram-preflight-confirm {
    min-width: clamp(190px, 50%, 260px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth2-telegram-preflight-manual {
    min-height: 46px;
    font-size: 14px;
}

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

.auth2-link-choice-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.auth2-link-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgba(150, 158, 187, 0.34);
    background: rgba(118, 126, 154, 0.14);
    padding: 10px 12px;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
    cursor: pointer;
}

.auth2-link-choice input[type="radio"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #ff8f4f;
    flex: 0 0 auto;
}

.auth2-link-choice-main {
    min-width: 0;
}

.auth2-link-choice-title {
    font-size: 14px;
    font-weight: 700;
    color: #f4f6ff;
    margin-bottom: 3px;
}

.auth2-link-choice-details {
    color: rgba(196, 203, 226, 0.95);
    font-size: 13px;
    line-height: 1.4;
}

.auth2-link-choice-key {
    display: inline-block;
    margin-top: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: rgba(238, 241, 255, 0.96);
    word-break: break-all;
}

.auth2-link-choice.is-selected {
    border-color: rgba(255, 166, 94, 0.82);
    background: rgba(121, 74, 36, 0.35);
    box-shadow: 0 0 0 2px rgba(255, 147, 70, 0.2);
}

.auth2-modal--confirm {
    z-index: 1210;
    background: rgba(4, 6, 14, 0.7);
}

.auth2-confirm-card {
    width: min(470px, 100%);
}

.auth2-modal-icon--warn {
    color: #ffb673;
    background: linear-gradient(135deg, rgba(255, 115, 80, 0.22) 0%, rgba(255, 149, 84, 0.14) 100%);
}

.auth2-confirm-actions {
    margin-top: 4px;
    display: grid;
    gap: 10px;
}

.auth2-secondary-btn,
.auth2-danger-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(164, 171, 200, 0.34);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.auth2-secondary-btn {
    color: rgba(231, 236, 255, 0.96);
    background: rgba(117, 124, 154, 0.24);
}

.auth2-secondary-btn:hover {
    border-color: rgba(200, 206, 230, 0.5);
    background: rgba(138, 145, 174, 0.3);
}

.auth2-danger-btn {
    color: #ffe7dd;
    border-color: rgba(255, 141, 108, 0.5);
    background: linear-gradient(135deg, rgba(157, 58, 43, 0.62) 0%, rgba(125, 44, 34, 0.66) 100%);
}

.auth2-danger-btn:hover {
    border-color: rgba(255, 171, 140, 0.72);
    box-shadow: 0 12px 24px rgba(125, 44, 34, 0.36);
}

.auth2-secondary-btn:active,
.auth2-danger-btn:active {
    transform: translateY(1px);
}

.auth2-secondary-btn:disabled,
.auth2-danger-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.auth2-verify-resend-hint {
    margin: 0;
    min-height: 16px;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(170, 177, 201, 0.9);
}

.auth2-link[disabled],
.auth2-link.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.auth2-verify-note {
    margin: 0;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    border: 1px solid rgba(156, 162, 192, 0.3);
    background: rgba(100, 109, 149, 0.18);
    color: rgba(222, 229, 249, 0.96);
}

.auth2-verify-note--warn {
    border-color: rgba(255, 182, 102, 0.48);
    background: rgba(138, 93, 54, 0.28);
    color: rgba(255, 226, 192, 0.98);
}

.auth2-verify-note--debug {
    border-color: rgba(116, 204, 255, 0.44);
    background: rgba(53, 86, 138, 0.28);
    color: rgba(220, 240, 255, 0.98);
}

.auth2-verify-spam-hint {
    margin: 8px 0 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    border: 1px solid rgba(255, 136, 136, 0.34);
    background: linear-gradient(135deg, rgba(109, 42, 52, 0.34) 0%, rgba(77, 35, 52, 0.28) 100%);
    color: rgba(255, 214, 214, 0.96);
}

@media (max-width: 760px) {
    .auth2-modal,
    .auth-recovery-modal {
        padding: 12px;
    }

    .auth2-modal-card,
    .auth-recovery-card {
        border-radius: 20px;
        padding: 14px;
        gap: 10px;
    }

    .auth2-modal-icon,
    .auth-recovery-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .auth2-modal-icon svg,
    .auth-recovery-icon svg {
        width: 23px;
        height: 23px;
    }

    .auth2-modal-title,
    .auth-recovery-title {
        font-size: clamp(24px, 8.6vw, 34px);
        padding-right: 30px;
    }

    .auth2-modal-text,
    .auth-recovery-text {
        font-size: 14px;
    }

    .auth-recovery-btn {
        min-height: 46px;
        border-radius: 16px;
        font-size: 15px;
    }

    .auth2-verify-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth2-code-grid {
        gap: 5px;
    }

    .auth2-code-cell {
        height: 42px;
        border-radius: 10px;
        font-size: 18px;
    }
}

.app-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    padding: clamp(16px, 4vw, 30px);
    background: rgba(8, 4, 9, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.app-notice-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.app-notice {
    width: min(480px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 176, 109, 0.38);
    background: linear-gradient(160deg, rgba(32, 14, 12, 0.96) 0%, rgba(16, 8, 10, 0.94) 100%);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.52);
    padding: 20px;
    display: grid;
    gap: 10px;
    transform: translateY(10px) scale(.985);
    transition: transform .2s ease;
    position: relative;
}

.app-notice-overlay.show .app-notice {
    transform: translateY(0) scale(1);
}

.app-notice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 227, 200, 0.82);
}

.app-notice-close svg {
    width: 16px;
    height: 16px;
}

.app-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 138, 29, 0.15);
    color: rgba(255, 198, 140, 0.94);
}

.app-notice--success .app-notice-icon {
    background: rgba(65, 220, 170, 0.16);
    color: rgba(149, 255, 226, 0.96);
}

.app-notice--error .app-notice-icon {
    background: rgba(255, 107, 107, 0.15);
    color: rgba(255, 171, 171, 0.96);
}

.app-notice-icon svg {
    width: 20px;
    height: 20px;
}

.app-notice-title {
    margin: 0;
    font-size: 22px;
}

.app-notice-message {
    margin: 0;
    color: rgba(255, 219, 190, 0.88);
    line-height: 1.5;
    font-size: 15px;
}

.app-notice-actions {
    margin-top: 2px;
}

.app-notice-btn {
    width: 100%;
    justify-content: center;
}

body.page-home-figma .app-notice-overlay,
body.page-auth-figma .app-notice-overlay {
    background:
        radial-gradient(circle at 50% 44%, rgba(221, 212, 193, 0.34) 0%, rgba(221, 212, 193, 0.12) 30%, rgba(221, 212, 193, 0) 58%),
        rgba(61, 55, 38, 0.28);
    backdrop-filter: blur(8px) saturate(92%);
    -webkit-backdrop-filter: blur(8px) saturate(92%);
}

body.page-home-figma .app-notice,
body.page-auth-figma .app-notice {
    width: min(420px, 100%);
    border: 2px solid #5e604e;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.08) 100%),
        #ddd4c1;
    color: #171510;
    box-shadow:
        0 24px 54px rgba(94, 96, 78, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
    padding: 22px 18px 18px;
    gap: 12px;
}

body.page-home-figma .app-notice-close,
body.page-auth-figma .app-notice-close {
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.36);
    color: #5e604e;
}

body.page-home-figma .app-notice-icon,
body.page-auth-figma .app-notice-icon {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(94, 96, 78, 0.26);
    border-radius: 16px;
    background: rgba(94, 96, 78, 0.10);
    color: #5e604e;
}

body.page-home-figma .app-notice--success .app-notice-icon,
body.page-auth-figma .app-notice--success .app-notice-icon {
    background: rgba(93, 139, 102, 0.14);
    color: #4f7657;
}

body.page-home-figma .app-notice--error .app-notice-icon,
body.page-auth-figma .app-notice--error .app-notice-icon {
    background: rgba(156, 89, 77, 0.12);
    color: #8a4f45;
}

body.page-home-figma .app-notice-title,
body.page-auth-figma .app-notice-title {
    color: #171510;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

body.page-home-figma .app-notice-message,
body.page-auth-figma .app-notice-message {
    color: #5f5a4d;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.42;
}

body.page-home-figma .app-notice-btn,
body.page-auth-figma .app-notice-btn {
    min-height: 44px;
    border: 2px solid #5e604e !important;
    border-radius: 13px;
    background: #5e604e !important;
    color: #fffdf8 !important;
    box-shadow:
        0 3px 0 #4a4c3d,
        0 10px 20px rgba(94, 96, 78, 0.18) !important;
}

.app-container[data-view="auth"] {
    padding-block-start: calc(clamp(16px, 4vh, 30px) + env(safe-area-inset-top, 0px));
    padding-block-end: calc(clamp(16px, 4vh, 30px) + env(safe-area-inset-bottom, 0px));
}

@media (max-height: 820px) and (min-width: 720px) {
    .app-container[data-view="auth"] {
        padding-block-start: calc(clamp(12px, 3vh, 20px) + env(safe-area-inset-top, 0px));
        padding-block-end: calc(clamp(12px, 3vh, 20px) + env(safe-area-inset-bottom, 0px));
    }

    .auth-card {
        padding: 20px;
        border-radius: 22px;
        gap: 10px;
    }

    .auth-title {
        font-size: 30px;
    }

    .auth-subtitle {
        font-size: 16px;
    }

    .auth-input {
        height: 46px;
        font-size: 15px;
    }

    .auth-btn-main {
        min-height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 680px) {
    .auth-stage {
        width: min(100%, 540px);
    }

    .auth-card {
        border-radius: 22px;
        padding: 18px;
    }

    .auth-title {
        font-size: clamp(28px, 7.4vw, 34px);
    }

    .auth-subtitle {
        font-size: 15px;
    }
}

.pay-note-telegram {
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(128, 214, 255, 0.32);
    background: rgba(37, 77, 104, 0.22);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px;
    color: rgba(220, 245, 255, 0.92);
    font-size: 12px;
    line-height: 1.45;
}

.pay-note-telegram-icon svg {
    width: 14px;
    height: 14px;
}

/* Аккуратная вертикальная центровка для «коротких» экранов (не ломает скролл) */
.app-container.center-when-short > *:first-child {
    margin-top: 0;
    margin-bottom: 0;
}

.app-container.app-container--center > *:first-child {
    margin-top: auto;
    margin-bottom: auto;
}


.app-container--center {
    place-items: center;
}

.app-container--center .app-shell {
    margin-block: 0; /* избегаем паразитных отступов при центрировании */
}

@media (max-width: 520px) {
    .app-container {
        padding-inline: clamp(18px, 6vw, 26px);
    }
}

.app-shell {
    position: relative;
    width: min(var(--layout-max), 100%);
    max-height: none; /* <- больше не подрезаем контент внутри */
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 170, 110, 0.45) !important;
    background: linear-gradient(155deg, rgba(30, 12, 8, 0.88) 0%, rgba(24, 10, 28, 0.85) 50%, rgba(10, 4, 18, 0.85) 100%) !important;
    backdrop-filter: blur(42px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(42px) saturate(150%) !important;
    box-shadow:
        0 32px 78px rgba(0, 0, 0, 0.7),
        0 0 68px rgba(255, 120, 30, 0.32),
        inset 0 1px 2px rgba(255, 200, 150, 0.18) !important;
    overflow: visible;
}

.app-shell::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 188, 120, 0.55) 0%, rgba(255, 110, 20, 0.32) 55%, rgba(170, 70, 255, 0.25) 100%) !important;
    mix-blend-mode: screen;
    opacity: 0.65 !important;
    filter: blur(26px);
    pointer-events: none;
}

.app-shell--auth {
    width: min(920px, 100%) !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-shell--auth::before {
    display: none !important;
}

/* Error state - only red border, NO red glow */
.app-shell--error {
    border: 2px solid rgba(255, 100, 100, 0.5) !important;
    /* Background stays the same as normal app-shell */
    box-shadow:
        0 32px 78px rgba(0, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 200, 150, 0.18) !important;
}

.app-shell--error::before {
    /* Keep brand orange glow, NO red */
    background: linear-gradient(135deg, rgba(255, 188, 120, 0.55) 0%, rgba(255, 110, 20, 0.32) 55%, rgba(170, 70, 255, 0.25) 100%) !important;
    opacity: 0.65 !important;
    filter: blur(26px);
}

.view {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    flex: 1;
    min-height: 0;
    max-height: none;     /* даём контенту расти */
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;    /* не создаём второй скролл */
}

.view-root {
    background: transparent;
    border: none;
    box-shadow: none;
    will-change: auto;
    transition: none;
}

/* Disable opacity swap to prevent visible flicker across browsers */
.view-root.is-updating {
    opacity: 1;
    transform: none;
}

.view-scroll {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    overflow: visible;   /* чтобы скролл был только у .app-container */
    padding-right: 4px;
}

.view-scroll::-webkit-scrollbar {
    width: 4px;
}

.view-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 160, 60, 0.25);
    border-radius: 999px;
}

/* View Page Title - Beautiful header without back button */
.view-page-title {
    margin: 0 0 var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    font-size: clamp(22px, 5.5vw, 26px);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--color-text-primary);
    background: rgba(51, 238, 178, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 238, 178, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

/* REMOVED .card::before - no more inner gradient overlay with sharp corners */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #fff6ec;
    transition: transform var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast), border var(--duration-fast), opacity var(--duration-fast);
    text-align: center;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn.is-loading {
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}

/* Стили .btn-primary и .btn-secondary перенесены ниже в файл (строки ~1628) */

.btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ffd7a2;
}

.section-subtitle {
    font-size: 13px;
    color: var(--color-muted);
}

.body-text {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
}

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

@media (max-width: 460px) {
    .plan-chip-grid {
        grid-template-columns: 1fr;
    }
}

.plan-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 150, 40, 0.22);
    background: rgba(27, 15, 9, 0.82);
    transition: all var(--duration-fast);
}

.plan-chip:hover {
    border-color: var(--color-border-strong);
}

.plan-chip.is-active {
    background: rgba(255, 120, 0, 0.2);
    border-color: rgba(255, 180, 70, 0.6);
    box-shadow: 0 0 24px rgba(255, 140, 0, 0.22);
}

.plan-chip-title {
    font-size: 15px;
    font-weight: 600;
}

.plan-chip-desc {
    font-size: 12px;
    color: var(--color-muted);
}

.plan-overview {
    background: rgba(26, 14, 8, 0.9);
}

.plan-overview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.plan-overview-title {
    font-size: 15px;
    font-weight: 600;
}

.plan-overview-sub {
    font-size: 12px;
    color: var(--color-muted);
}

.plan-overview-price {
    font-size: 24px;
    font-weight: 700;
    color: #ffd9a7;
}

.plan-overview-note {
    font-size: 12px;
    color: var(--color-muted);
}

.payment-option-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 150, 40, 0.22);
    background: rgba(24, 13, 7, 0.82);
    transition: transform var(--duration-fast), border var(--duration-fast);
}

.payment-option:hover {
    transform: translateY(-1px);
    border-color: var(--color-border-strong);
}

.payment-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.payment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.payment-title {
    font-size: 14px;
    font-weight: 600;
}

.payment-sub {
    font-size: 12px;
    color: var(--color-muted);
}

.payment-arrow svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 230, 200, 0.7);
}

.payment-hint {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: var(--space-sm);
}

.setup-intro {
    gap: var(--space-md);
}

.platform-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 165, 60, 0.16);
}

.platform-switch-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 220, 190, 0.72);
}

.platform-switch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.platform-chip {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 155, 45, 0.3);
    background: rgba(26, 15, 9, 0.78);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--duration-fast);
}

.platform-chip.is-active {
    background: rgba(255, 120, 0, 0.24);
    border-color: rgba(255, 170, 60, 0.6);
    cursor: default;
}

.platform-chip:not(.is-active):hover {
    transform: translateY(-1px);
    border-color: var(--color-border-strong);
}

.platform-chip:disabled {
    opacity: 0.75;
    cursor: default;
}

.setup-stages {
    gap: var(--space-md);
}

.setup-stage {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 520px) {
    .setup-stage {
        flex-direction: column;
    }
}

.stage-index {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 160, 60, 0.4);
    background: rgba(255, 120, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffd9a8;
}

.stage-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stage-title {
    font-size: 15px;
    font-weight: 600;
}

.stage-text {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.5;
}

.stage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (max-width: 520px) {
    .stage-actions {
        flex-direction: column;
    }
}

.stage-note {
    font-size: 12px;
    color: var(--color-muted);
}

.store-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 150, 40, 0.24);
    background: rgba(26, 15, 9, 0.8);
    color: var(--color-text-primary);
    transition: all var(--duration-fast);
    width: 100%;
}

.store-button svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.store-button span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
}

.store-button span small {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-muted);
}

.store-button:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
}

.account-state {
    font-size: 20px;
    font-weight: 600;
}

.account-state.is-active {
    color: #ffeede;
}

.account-state.is-idle {
    color: rgba(255, 226, 198, 0.7);
}

.account-meta {
    font-size: 13px;
    color: var(--color-muted);
}

.account-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 160, 60, 0.16);
}

.account-link-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.account-link-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 224, 195, 0.76);
}

.account-link-hint {
    font-size: 12px;
    color: var(--color-muted);
}

.chip-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 160, 60, 0.32);
    background: rgba(255, 120, 0, 0.12);
    color: var(--color-text-primary);
    transition: all var(--duration-fast);
}

.chip-button svg {
    width: 16px;
    height: 16px;
}

.chip-button:hover {
    border-color: var(--color-border-strong);
    background: rgba(255, 120, 0, 0.22);
}

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

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

.input-row {
    display: flex;
    gap: var(--space-sm);
}

@media (max-width: 520px) {
    .input-row {
        flex-direction: column;
    }
}

.input {
    flex: 1;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 150, 40, 0.28);
    background: rgba(26, 15, 9, 0.82);
    color: var(--color-text-primary);
    font-size: 14px;
}

.input::placeholder {
    color: rgba(255, 220, 190, 0.36);
}

.input:focus {
    outline: none;
    border-color: var(--color-border-strong);
    box-shadow: 0 0 22px rgba(255, 140, 0, 0.22);
}


.empty-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 155, 45, 0.36);
    background: rgba(26, 15, 9, 0.78);
    color: var(--color-muted);
    text-align: center;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.empty-subtitle {
    font-size: 13px;
    color: var(--color-muted);
}

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

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 155, 45, 0.22);
    background: rgba(26, 15, 9, 0.78);
}

.stat-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 224, 195, 0.68);
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffd9a7;
}

/* ===== REFERRAL PROGRAM STYLES ===== */

/* Referral Hero Section */
.referral-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.referral-title {
    margin: 0;
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    background: linear-gradient(135deg, #fff4e8 0%, #ffd9a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-promo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 138, 29, 0.15) 0%, rgba(255, 101, 0, 0.08) 100%);
    border: 2px solid rgba(255, 138, 29, 0.35);
    box-shadow:
        0 12px 28px rgba(255, 110, 20, 0.25),
        inset 0 1px 2px rgba(255, 200, 150, 0.15);
    overflow: hidden;
}

.referral-promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 200, 150, 0.12), rgba(255, 138, 29, 0.05) 50%, transparent);
    opacity: 0.8;
    pointer-events: none;
}

.referral-promo-icon {
    position: relative;
    width: clamp(56px, 14vw, 72px);
    height: clamp(56px, 14vw, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.referral-promo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 16px rgba(255, 138, 29, 0.5));
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 6px 16px rgba(255, 138, 29, 0.5));
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 8px 20px rgba(255, 138, 29, 0.7));
    }
}

.referral-promo-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.referral-promo-bonus {
    font-size: clamp(26px, 6.5vw, 34px);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(255, 138, 29, 0.4);
}

.referral-promo-text {
    font-size: clamp(13px, 3.2vw, 16px);
    font-weight: 500;
    color: var(--color-text-primary);
}

.referral-description {
    margin: 0;
    font-size: clamp(13px, 3.2vw, 15px);
    line-height: 1.5;
    color: var(--color-muted);
    text-align: center;
}

/* Main Invite Button */
.referral-main-btn {
    width: 100%;
    margin-top: 8px;
}

/* Invited By Section - Inline Transformation */
.referral-invited-by-section {
    margin-top: 5px;
}

.referral-invited-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(10, 5, 15, 0.4) 100%);
    border: 1px solid rgba(255, 170, 110, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.referral-invited-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 5, 15, 0.5) 100%);
    border-color: rgba(255, 170, 110, 0.25);
}

.referral-invited-text {
    font-size: clamp(12px, 3vw, 13px);
    font-weight: 500;
    color: var(--color-muted);
}

.referral-invited-arrow {
    width: 18px;
    height: 18px;
    color: var(--color-muted);
    flex-shrink: 0;
}

/* Inline Input Group (like promo codes) */
.referral-invited-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.referral-invited-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: clamp(13px, 3.2vw, 14px);
    font-family: 'Monaco', 'Menlo', monospace;
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 170, 110, 0.25);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.25s ease;
}

.referral-invited-input::placeholder {
    color: var(--color-muted);
    opacity: 0.6;
}

.referral-invited-input:focus {
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 138, 29, 0.15);
}

.referral-invited-submit-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff6500 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
}

.referral-invited-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 138, 29, 0.4);
}

.referral-invited-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Referral Stats Modal */
.referral-stats-modal .help-modal-content {
    max-width: clamp(340px, 90vw, 420px);
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (max-width: 420px) {
    .referral-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

.referral-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.08) 0%, rgba(10, 5, 15, 0.5) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.25);
    border-radius: var(--radius-md);
}

.referral-stat-icon {
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    color: var(--color-accent);
    opacity: 0.8;
}

.referral-stat-icon svg {
    width: 100%;
    height: 100%;
}

.referral-stat-value {
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
}

.referral-stat-label {
    font-size: clamp(11px, 2.8vw, 13px);
    font-weight: 500;
    color: var(--color-muted);
    text-align: center;
}

.skeleton-line {
    margin-top: var(--space-sm);
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(255, 205, 150, 0.08) 0%, rgba(255, 205, 150, 0.28) 50%, rgba(255, 205, 150, 0.08) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.3s ease-in-out infinite;
}

.list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 155, 45, 0.22);
    background: rgba(26, 15, 9, 0.82);
    transition: transform var(--duration-fast), border var(--duration-fast);
}

.list-item:hover {
    transform: translateY(-1px);
    border-color: var(--color-border-strong);
}

.list-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.list-title {
    font-size: 14px;
    font-weight: 600;
}

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

.list-icon svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 226, 198, 0.7);
}

.list-tight .list-item {
    padding: var(--space-sm) var(--space-md);
}

.pulse-highlight {
    animation: pulseOutline 0.85s ease-in-out 2;
}

.loading-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 250, 240, 0.52) 0%, rgba(255, 250, 240, 0) 34%),
        #d5c9b1;
    z-index: 18000;
    transition: opacity var(--duration-fast), visibility var(--duration-fast);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.view-boot {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.paper-loader-stage {
    position: relative;
    width: min(402px, 100%);
    min-height: var(--app-minh, 100vh);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px;
    box-sizing: border-box;
}

.paper-loader-stage--boot {
    min-height: 715px;
}

.paper-loader-shadow {
    display: none;
}

.paper-loader-card {
    position: relative;
    z-index: 1;
    width: min(370px, calc(100vw - 32px));
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.paper-loader-brand,
.logo-text {
    margin-top: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.8px;
    color: #000000;
}

.paper-loader-spinner {
    width: 74px;
    height: 74px;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(94, 96, 78, 0.16);
    background: transparent;
}

.paper-loader-spinner__ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(94, 96, 78, 0.18);
    border-top-color: #5e604e;
    border-right-color: #8d9470;
    animation: spin 0.95s linear infinite;
}

.paper-loader-status,
.loading-text {
    margin-top: 18px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.68);
}

.paper-loader-caption {
    margin-top: 14px;
    max-width: 320px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.2px;
    color: rgba(0, 0, 0, 0.56);
}

.paper-loader-progress {
    width: 100%;
    height: 6px;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(94, 96, 78, 0.14);
    overflow: hidden;
}

.paper-loader-progress-fill {
    display: block;
    width: 44%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5e604e 0%, #9ea57f 100%);
    animation: paperLoaderSweep 1.55s ease-in-out infinite;
}

.loading-telegram-hint {
    position: relative;
    z-index: 1;
    width: min(370px, calc(100vw - 32px));
    padding: 16px 18px 17px;
    box-sizing: border-box;
    border-radius: 15px;
    background: #ddd4c1;
    border: 2px solid rgba(94, 96, 78, 0.72);
    box-shadow: 0 16px 34px rgba(94, 96, 78, 0.14);
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.34s ease,
        transform 0.34s ease,
        box-shadow 0.34s ease;
    pointer-events: none;
}

.loading-telegram-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.loading-telegram-hint__topline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.loading-telegram-hint__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #5e604e;
    background: rgba(94, 96, 78, 0.12);
    border: 1px solid rgba(94, 96, 78, 0.22);
}

.loading-telegram-hint__icon svg {
    width: 17px;
    height: 17px;
}

.loading-telegram-hint__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(94, 96, 78, 0.12);
    border: 1px solid rgba(94, 96, 78, 0.16);
    color: #5e604e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.loading-telegram-hint__title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
}

.loading-telegram-hint__text {
    margin: 8px 0 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.58);
}

@media (max-width: 520px) {
    .paper-loader-card {
        min-height: 0;
        padding: 0;
    }

    .paper-loader-brand,
    .logo-text {
        font-size: 26px;
        line-height: 28px;
    }

    .loading-telegram-hint {
        width: calc(100vw - 28px);
        padding: 15px 15px 16px;
    }

    .loading-telegram-hint__title {
        font-size: 15px;
    }

    .loading-telegram-hint__text {
        font-size: 12.5px;
    }
}

button:focus-visible,
.input:focus-visible,
.chip-button:focus-visible {
    outline: 2px solid rgba(255, 160, 60, 0.65);
    outline-offset: 2px;
}

@keyframes twinkle {
    0% { opacity: 0.35; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.04); }
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes beamTilt {
    0%, 100% { transform: rotate(-6deg) scale(1.05); }
    50% { transform: rotate(6deg) scale(1.12); }
}

@keyframes particleFloat {
    0% { transform: translate3d(0, 0, 0); opacity: 0.4; }
    50% { transform: translate3d(20px, -30px, 0); opacity: 0.7; }
    100% { transform: translate3d(-10px, -60px, 0); opacity: 0.4; }
}


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

@keyframes pulseOutline {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.45); }
    100% { box-shadow: 0 0 0 24px rgba(255, 140, 0, 0); }
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Liquid Glass Home Experience ===== */
.app-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--paper-pattern-base);
}

.bg-canvas{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.app-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--paper-pattern-base);
    pointer-events: none;
}

.app-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        var(--paper-pattern-url, url("../img/global-bg/pattern-tile.png"))
        left var(--paper-pattern-offset-y) / var(--paper-pattern-tile-width) auto
        repeat;
    opacity: var(--paper-pattern-fallback-opacity);
    mix-blend-mode: normal;
    pointer-events: none;
}

@keyframes meshFlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(15px, -20px, 0) scale(1.03);
    }
    66% {
        transform: translate3d(-18px, 15px, 0) scale(0.97);
    }
}

@keyframes meshPulse {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(10px, -12px, 0) scale(1.02);
        opacity: 0.75;
    }
}

/* Lite background for Android / weak WebView */
html.bg-lite .app-background::before,
html.bg-lite .app-background::after {
    opacity: 0.4 !important;
}

/* Legacy beam layer removed: background animation no longer mounts in DOM */

html.page-auth-figma,
body.page-auth-figma {
    background: #d5c9b1 !important;
}

body.page-auth-figma {
    --paper-pattern-base: #d5c9b1;
    --paper-pattern-ink: #968c72;
    --paper-pattern-opacity: 0.56;
    --paper-pattern-fallback-opacity: 0.14;
    --paper-pattern-tile-width: 804px;
    --paper-pattern-offset-y: -22px;
    --paper-pattern-url: var(--paper-pattern-url-png);
    --auth-paper-surface: #ddd4c1;
    --auth-paper-surface-strong: #e6ddce;
    --auth-paper-fill: #eee5d7;
    --auth-paper-fill-focus: #f7f0e4;
    --auth-paper-border: #5e604e;
    --auth-paper-border-soft: rgba(94, 96, 78, 0.28);
    --auth-paper-text: #171510;
    --auth-paper-muted: #6f6a5c;
    --auth-paper-muted-strong: #4f4b41;
    --auth-paper-telegram: #3e79b3;
    --auth-paper-passkey: #62815f;
    --auth-paper-success: #5d8b66;
    --auth-paper-danger: #9c594d;
}

body.page-auth-figma .app-background {
    display: block;
    overflow: hidden;
    background: var(--paper-pattern-base);
}

body.page-auth-figma .app-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 38%),
        var(--paper-pattern-base);
    opacity: 1;
    pointer-events: none;
}

body.page-auth-figma .app-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        var(--paper-pattern-url, url("../img/global-bg/pattern-tile.png"))
        left var(--paper-pattern-offset-y) / var(--paper-pattern-tile-width) auto
        repeat;
    opacity: var(--paper-pattern-fallback-opacity);
    mix-blend-mode: multiply;
    pointer-events: none;
}

@supports ((-webkit-mask-image: -webkit-linear-gradient(black, black)) or (mask-image: linear-gradient(black, black))) {
    body.page-auth-figma .app-background::after {
        background: var(--paper-pattern-ink);
        background-repeat: no-repeat;
        -webkit-mask-image: var(--paper-pattern-url, url("../img/global-bg/pattern-tile.png"));
        mask-image: var(--paper-pattern-url, url("../img/global-bg/pattern-tile.png"));
        -webkit-mask-repeat: repeat;
        mask-repeat: repeat;
        -webkit-mask-size: var(--paper-pattern-tile-width) auto;
        mask-size: var(--paper-pattern-tile-width) auto;
        -webkit-mask-position: left var(--paper-pattern-offset-y);
        mask-position: left var(--paper-pattern-offset-y);
        opacity: var(--paper-pattern-opacity);
        mix-blend-mode: multiply;
    }
}

html.bg-lite.page-auth-figma .app-background::before {
    opacity: 1 !important;
}

html.bg-lite.page-auth-figma .app-background::after {
    opacity: var(--paper-pattern-opacity, 0.56) !important;
}

body.page-auth-figma #appContainer {
    padding-inline: clamp(18px, 4vw, 36px);
    padding-block-start: calc(clamp(20px, 5vh, 44px) + env(safe-area-inset-top, 0px));
    padding-block-end: calc(clamp(20px, 5vh, 44px) + env(safe-area-inset-bottom, 0px) + 14px);
}

body.page-auth-figma .app-shell--auth {
    width: min(760px, 100%) !important;
}

body.page-auth-figma .view-auth {
    justify-content: center;
}

body.page-auth-figma .auth2-wrap {
    width: min(760px, 100%);
    gap: 12px;
    color: var(--auth-paper-text);
}

body.page-auth-figma .auth2-hero-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: clamp(14px, 2.2vw, 18px);
    border-radius: 24px;
    border: 2px solid var(--auth-paper-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.08) 100%),
        var(--auth-paper-surface-strong);
    box-shadow:
        0 10px 22px rgba(94, 96, 78, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
    overflow: hidden;
}

body.page-auth-figma .auth2-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -44px -54px auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(94, 96, 78, 0.14), rgba(94, 96, 78, 0));
    pointer-events: none;
}

body.page-auth-figma .auth2-hero-card--notice {
    border-color: rgba(93, 139, 102, 0.9);
}

body.page-auth-figma .auth2-title-row {
    position: relative;
    z-index: 1;
    gap: 14px;
}

body.page-auth-figma .auth2-logo {
    width: 74px;
    height: 74px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--auth-paper-border);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 55%),
        #cfc1a7;
    box-shadow:
        0 12px 24px rgba(94, 96, 78, 0.14),
        inset 0 0 0 10px rgba(255, 255, 255, 0.16);
}

body.page-auth-figma .auth2-logo svg,
body.page-auth-figma .auth2-logo img,
body.page-auth-figma .auth2-logo .auth2-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transform: none;
    filter: none !important;
    opacity: 1;
}

body.page-auth-figma .auth2-title {
    position: relative;
    z-index: 1;
    color: var(--auth-paper-text);
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: -0.03em;
    text-shadow: none;
}

body.page-auth-figma .auth2-subtitle {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin-inline: auto;
    color: var(--auth-paper-muted);
    font-size: clamp(15px, 1.15vw, 19px);
}

body.page-auth-figma .auth2-card {
    position: relative;
    border-radius: 26px;
    border: 2px solid var(--auth-paper-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 100%),
        var(--auth-paper-surface);
    box-shadow:
        0 14px 28px rgba(94, 96, 78, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.44);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 14px;
    padding: 18px;
}

body.page-auth-figma .auth2-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

body.page-auth-figma .auth2-card > * {
    position: relative;
    z-index: 1;
}

body.page-auth-figma .auth2-link-final-notice {
    border-color: rgba(93, 139, 102, 0.4);
    background: rgba(93, 139, 102, 0.12);
    color: var(--auth-paper-text);
}

body.page-auth-figma .auth2-link-final-icon {
    color: var(--auth-paper-success);
}

body.page-auth-figma .auth2-link-final-subtext {
    color: var(--auth-paper-muted);
}

body.page-auth-figma .auth2-link-hint {
    border: 1.5px solid rgba(94, 96, 78, 0.3);
    background: rgba(255, 255, 255, 0.44);
    color: var(--auth-paper-muted-strong);
}

body.page-auth-figma .auth2-link-hint-icon {
    color: var(--auth-paper-border);
}

body.page-auth-figma .auth2-form {
    gap: 10px;
}

body.page-auth-figma .auth2-label {
    color: var(--auth-paper-muted-strong);
    font-weight: 700;
}

body.page-auth-figma .auth2-input {
    height: clamp(50px, 4.2vw, 56px);
    border: 1.5px solid rgba(94, 96, 78, 0.42);
    background: var(--auth-paper-fill);
    color: var(--auth-paper-text);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.page-auth-figma .auth2-input::placeholder {
    color: rgba(111, 106, 92, 0.78);
}

body.page-auth-figma .auth2-input:focus,
body.page-auth-figma .auth2-code-cell:focus {
    border-color: var(--auth-paper-border);
    background: var(--auth-paper-fill-focus);
    box-shadow: 0 0 0 4px rgba(94, 96, 78, 0.12);
}

body.page-auth-figma .auth2-password-toggle {
    color: rgba(94, 96, 78, 0.9);
    border-radius: 10px;
}

body.page-auth-figma .auth2-password-toggle:hover {
    color: var(--auth-paper-text);
    background: rgba(94, 96, 78, 0.08);
}

body.page-auth-figma .auth2-primary-btn,
body.page-auth-figma .auth-btn-main,
body.page-auth-figma .auth-recovery-btn-send,
body.page-auth-figma .auth-recovery-btn-main {
    background: var(--auth-paper-border) !important;
    border: 2px solid var(--auth-paper-border) !important;
    color: #fffdf8;
    border-radius: 16px;
    box-shadow:
        0 4px 0 #4a4c3d,
        0 10px 20px rgba(153, 126, 68, 0.24) !important;
}

body.page-auth-figma .auth2-primary-btn:hover,
body.page-auth-figma .auth-btn-main:hover,
body.page-auth-figma .auth-recovery-btn-send:hover,
body.page-auth-figma .auth-recovery-btn-main:hover {
    transform: translateY(-1px);
    background: #676a58 !important;
    border-color: #676a58 !important;
    box-shadow:
        0 5px 0 #4a4c3d,
        0 12px 24px rgba(153, 126, 68, 0.3) !important;
}

body.page-auth-figma .auth2-primary-btn:active,
body.page-auth-figma .auth-btn-main:active,
body.page-auth-figma .auth-recovery-btn-send:active,
body.page-auth-figma .auth-recovery-btn-main:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a4c3d !important;
}

body.page-auth-figma .auth2-card .auth-inline-message,
body.page-auth-figma .auth-inline-message {
    border-radius: 14px;
}

body.page-auth-figma .auth-inline-message--error {
    border: 1px solid rgba(156, 89, 77, 0.3);
    background: rgba(156, 89, 77, 0.1);
    color: #6f3027;
}

body.page-auth-figma .auth-inline-message--info {
    border: 1px solid rgba(138, 107, 61, 0.3);
    background: rgba(138, 107, 61, 0.1);
    color: #6a5431;
}

body.page-auth-figma .auth-inline-message--success {
    border: 1px solid rgba(93, 139, 102, 0.32);
    background: rgba(93, 139, 102, 0.1);
    color: #34533b;
}

body.page-auth-figma .auth2-row {
    gap: 10px;
    flex-wrap: wrap;
}

body.page-auth-figma .auth2-row--between {
    justify-content: space-between;
}

body.page-auth-figma .auth2-link {
    font-weight: 700;
}

body.page-auth-figma .auth2-link--muted {
    color: var(--auth-paper-muted);
}

body.page-auth-figma .auth2-link--muted:hover {
    color: var(--auth-paper-muted-strong);
}

body.page-auth-figma .auth2-link--accent {
    color: var(--auth-paper-border);
}

body.page-auth-figma .auth2-link--accent:hover {
    color: #46483b;
}

body.page-auth-figma .auth2-divider-line {
    background: rgba(94, 96, 78, 0.26);
}

body.page-auth-figma .auth2-divider-pill {
    padding: 4px 18px;
    border: 1px solid rgba(94, 96, 78, 0.16);
    background: rgba(245, 240, 232, 0.94);
    color: var(--auth-paper-muted);
}

body.page-auth-figma .auth2-alt-grid {
    gap: 12px;
    margin-top: 12px;
}

body.page-auth-figma .auth2-alt-btn {
    min-height: 72px;
    justify-content: flex-start;
    border: 2px solid rgba(94, 96, 78, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.06) 100%),
        #e7dfd2;
    border-radius: 18px;
    padding: 10px 12px;
    color: var(--auth-paper-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

body.page-auth-figma .auth2-alt-btn:hover {
    border-color: var(--auth-paper-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 100%),
        #ebe3d6;
    box-shadow:
        0 14px 24px rgba(94, 96, 78, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

body.page-auth-figma .auth2-alt-visual {
    justify-content: flex-start;
    gap: 12px;
}

body.page-auth-figma .auth2-alt-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(94, 96, 78, 0.16);
    background: rgba(255, 255, 255, 0.58);
    flex: 0 0 auto;
}

body.page-auth-figma .auth2-alt-icon--telegram {
    color: var(--auth-paper-telegram);
}

body.page-auth-figma .auth2-alt-icon--passkey {
    color: var(--auth-paper-passkey);
}

body.page-auth-figma .auth2-alt-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

body.page-auth-figma .auth2-alt-label {
    color: var(--auth-paper-text);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 800;
}

body.page-auth-figma .auth2-alt-meta {
    display: block;
    color: var(--auth-paper-muted);
    font-size: 11px;
    line-height: 1.32;
}

body.page-auth-figma .auth2-alt-btn:disabled,
body.page-auth-figma .auth2-alt-btn.is-unavailable {
    opacity: 0.62;
    filter: saturate(0.78);
}

body.page-auth-figma .auth2-alt-btn.is-loading::after {
    background: linear-gradient(120deg, transparent 10%, rgba(94, 96, 78, 0.16) 50%, transparent 90%);
}

body.page-auth-figma .auth2-bottom-copy {
    color: #686453;
    font-weight: 700;
    font-size: 13px;
}

body.page-auth-figma .auth2-bottom-copy .auth2-link--accent {
    color: #525445;
}

body.page-auth-figma .auth2-bottom-copy .auth2-link--accent:hover {
    color: #3f4136;
}

body.page-auth-figma .auth2-toast {
    border: 2px solid var(--auth-paper-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.14) 100%),
        var(--auth-paper-surface-strong);
    color: var(--auth-paper-text);
    box-shadow: 0 16px 32px rgba(94, 96, 78, 0.16);
}

body.page-auth-figma .auth2-toast--error {
    border-color: rgba(156, 89, 77, 0.58);
    color: #6f3027;
}

body.page-auth-figma .auth2-toast--success {
    border-color: rgba(93, 139, 102, 0.6);
    color: #34533b;
}

body.page-auth-figma .auth2-modal,
body.page-auth-figma .auth-recovery-modal {
    background: rgba(87, 76, 49, 0.22);
    backdrop-filter: blur(10px) saturate(108%);
    -webkit-backdrop-filter: blur(10px) saturate(108%);
}

body.page-auth-figma .auth2-modal-card,
body.page-auth-figma .auth-recovery-card {
    border: 2px solid var(--auth-paper-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%),
        var(--auth-paper-surface-strong);
    box-shadow:
        0 16px 30px rgba(94, 96, 78, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    color: var(--auth-paper-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.page-auth-figma .auth2-modal-close,
body.page-auth-figma .auth-recovery-close {
    border: 1.5px solid rgba(94, 96, 78, 0.24);
    background: rgba(255, 255, 255, 0.56);
    color: var(--auth-paper-muted-strong);
}

body.page-auth-figma .auth2-modal-icon,
body.page-auth-figma .auth-recovery-icon {
    color: var(--auth-paper-border);
    background: rgba(94, 96, 78, 0.12);
}

body.page-auth-figma .auth2-modal-icon--telegram {
    color: var(--auth-paper-telegram);
    background: rgba(62, 121, 179, 0.12);
}

body.page-auth-figma .auth2-modal-icon--warn {
    color: #8a6b3d;
    background: rgba(138, 107, 61, 0.12);
}

body.page-auth-figma .auth2-modal-title,
body.page-auth-figma .auth-recovery-title {
    color: var(--auth-paper-text);
}

body.page-auth-figma .auth2-modal-text,
body.page-auth-figma .auth-recovery-text {
    color: var(--auth-paper-muted);
}

body.page-auth-figma .auth2-modal-text b {
    color: var(--auth-paper-text);
}

body.page-auth-figma .auth2-verify-label-hint,
body.page-auth-figma .auth2-verify-resend-hint {
    color: rgba(98, 92, 79, 0.82);
}

body.page-auth-figma .auth2-verify-note {
    border-color: rgba(94, 96, 78, 0.16);
    background: rgba(255, 255, 255, 0.58);
    color: #4c473c;
}

body.page-auth-figma .auth2-verify-note--warn {
    border-color: rgba(191, 123, 54, 0.34);
    background: linear-gradient(180deg, rgba(250, 223, 190, 0.92) 0%, rgba(245, 212, 176, 0.86) 100%);
    color: #684720;
}

body.page-auth-figma .auth2-verify-note--debug {
    border-color: rgba(84, 131, 180, 0.28);
    background: linear-gradient(180deg, rgba(219, 236, 249, 0.94) 0%, rgba(206, 227, 245, 0.88) 100%);
    color: #274b68;
}

body.page-auth-figma .auth2-verify-spam-hint {
    border-color: rgba(190, 128, 118, 0.30);
    background: linear-gradient(180deg, rgba(245, 219, 215, 0.92) 0%, rgba(239, 207, 202, 0.88) 100%);
    color: #76433f;
}

body.page-auth-figma .auth-recovery-spam-hint {
    border: 1.5px solid rgba(156, 89, 77, 0.38);
    background: linear-gradient(180deg, rgba(246, 220, 216, 0.96) 0%, rgba(239, 204, 198, 0.92) 100%);
    color: #68312d;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

body.page-auth-figma .auth-recovery-btn,
body.page-auth-figma .auth2-secondary-btn {
    border: 1.5px solid rgba(94, 96, 78, 0.34);
    background: rgba(255, 255, 255, 0.5);
    color: var(--auth-paper-text);
}

body.page-auth-figma .auth-recovery-btn:hover,
body.page-auth-figma .auth2-secondary-btn:hover {
    border-color: rgba(94, 96, 78, 0.48);
    background: rgba(255, 255, 255, 0.68);
}

body.page-auth-figma .auth-recovery-btn-passkey,
body.page-auth-figma .auth-recovery-btn-support {
    background: rgba(255, 255, 255, 0.44);
}

body.page-auth-figma .auth-recovery-btn-send,
body.page-auth-figma .auth-recovery-btn-main {
    border: 2px solid rgba(94, 96, 78, 0.72) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 100%),
        #d7e1c9 !important;
    color: #182014 !important;
    box-shadow:
        0 4px 0 rgba(94, 96, 78, 0.42),
        0 12px 24px rgba(94, 96, 78, 0.16) !important;
}

body.page-auth-figma .auth-recovery-btn-send:hover,
body.page-auth-figma .auth-recovery-btn-main:hover {
    border-color: rgba(94, 96, 78, 0.88) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 100%),
        #e0e8d4 !important;
    color: #11150d !important;
    box-shadow:
        0 5px 0 rgba(94, 96, 78, 0.46),
        0 14px 26px rgba(94, 96, 78, 0.18) !important;
}

body.page-auth-figma .auth-recovery-btn-send:active,
body.page-auth-figma .auth-recovery-btn-main:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(94, 96, 78, 0.5) !important;
}

body.page-auth-figma .auth-recovery-btn-send:disabled,
body.page-auth-figma .auth-recovery-btn-main:disabled {
    border-color: rgba(94, 96, 78, 0.38) !important;
    background: #d9d5ca !important;
    color: rgba(23, 21, 16, 0.62) !important;
    box-shadow: none !important;
}

body.page-auth-figma .auth2-danger-btn {
    color: #fff7f3;
    border: 1.5px solid rgba(156, 89, 77, 0.5);
    background: linear-gradient(180deg, #b56d5f 0%, #9c594d 100%);
}

body.page-auth-figma .auth2-danger-btn:hover {
    border-color: rgba(156, 89, 77, 0.74);
    box-shadow: 0 12px 24px rgba(156, 89, 77, 0.24);
}

body.page-auth-figma .auth2-code-cell {
    border: 1.5px solid rgba(94, 96, 78, 0.42);
    background: var(--auth-paper-fill);
    color: var(--auth-paper-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.page-auth-figma .auth2-telegram-preflight-note,
body.page-auth-figma .auth2-telegram-preflight-status,
body.page-auth-figma .auth2-link-choice {
    border-color: rgba(94, 96, 78, 0.26);
    background: rgba(255, 255, 255, 0.44);
    color: var(--auth-paper-muted-strong);
}

body.page-auth-figma .auth2-telegram-preflight-note-icon {
    color: var(--auth-paper-telegram);
}

body.page-auth-figma .auth2-telegram-preflight-status--info {
    border-color: rgba(62, 121, 179, 0.28);
    background: rgba(62, 121, 179, 0.08);
}

body.page-auth-figma .auth2-telegram-preflight-status--loading {
    border-color: rgba(138, 107, 61, 0.28);
    background: rgba(138, 107, 61, 0.08);
}

body.page-auth-figma .auth2-telegram-preflight-status--failed {
    border-color: rgba(156, 89, 77, 0.28);
    background: rgba(156, 89, 77, 0.08);
}

body.page-auth-figma .auth2-telegram-preflight-spinner {
    border-color: rgba(94, 96, 78, 0.24);
    border-top-color: var(--auth-paper-border);
}

body.page-auth-figma .auth2-link-choice input[type="radio"] {
    accent-color: var(--auth-paper-border);
}

body.page-auth-figma .auth2-link-choice-title {
    color: var(--auth-paper-text);
}

body.page-auth-figma .auth2-link-choice-details {
    color: var(--auth-paper-muted);
}

body.page-auth-figma .auth2-link-choice-key {
    color: var(--auth-paper-muted-strong);
}

body.page-auth-figma .auth2-link-choice.is-selected {
    border-color: var(--auth-paper-border);
    background: rgba(94, 96, 78, 0.12);
    box-shadow: 0 0 0 3px rgba(94, 96, 78, 0.08);
}

body.page-home-figma .auth2-modal,
body.page-home-figma .auth-recovery-modal {
    background: rgba(65, 58, 42, 0.26);
    backdrop-filter: blur(10px) saturate(96%);
    -webkit-backdrop-filter: blur(10px) saturate(96%);
}

body.page-home-figma .auth2-modal-card,
body.page-home-figma .auth-recovery-card {
    width: min(520px, calc(100vw - 32px));
    border: 2px solid #5e604e;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 100%),
        #ddd4c1;
    color: #171510;
    box-shadow:
        0 24px 54px rgba(94, 96, 78, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.page-home-figma .auth2-modal-close,
body.page-home-figma .auth-recovery-close {
    border: 1.5px solid rgba(94, 96, 78, 0.24);
    background: rgba(255, 255, 255, 0.48);
    color: #5e604e;
}

body.page-home-figma .auth2-modal-icon,
body.page-home-figma .auth-recovery-icon {
    border: 2px solid rgba(94, 96, 78, 0.22);
    background: rgba(94, 96, 78, 0.10);
    color: #5e604e;
}

body.page-home-figma .auth2-modal-icon--warn {
    border-color: rgba(138, 107, 61, 0.28);
    background: rgba(138, 107, 61, 0.12);
    color: #7a6137;
}

body.page-home-figma .auth2-modal-title,
body.page-home-figma .auth-recovery-title {
    color: #171510;
    letter-spacing: -0.04em;
    text-shadow: none;
}

body.page-home-figma .auth2-modal-text,
body.page-home-figma .auth-recovery-text {
    color: #625d51;
    font-weight: 650;
}

body.page-home-figma .auth2-modal-text b {
    color: #4f4b41;
    font-weight: 800;
}

body.page-home-figma .auth2-label {
    color: #4e4a40;
    font-weight: 800;
}

body.page-home-figma .auth2-verify-label-hint,
body.page-home-figma .auth2-verify-resend-hint {
    color: #7a7466;
    font-weight: 700;
}

body.page-home-figma .auth2-primary-btn,
body.page-home-figma .auth-btn-main,
body.page-home-figma .auth-recovery-btn-send,
body.page-home-figma .auth-recovery-btn-main {
    background: #5e604e !important;
    border: 2px solid #5e604e !important;
    color: #fffdf8;
    border-radius: 15px;
    box-shadow:
        0 4px 0 #4a4c3d,
        0 10px 20px rgba(94, 96, 78, 0.18) !important;
}

body.page-home-figma .auth2-primary-btn:hover,
body.page-home-figma .auth-btn-main:hover,
body.page-home-figma .auth-recovery-btn-send:hover,
body.page-home-figma .auth-recovery-btn-main:hover {
    background: #676a58 !important;
    border-color: #676a58 !important;
}

body.page-home-figma .auth2-link--accent,
body.page-home-figma .auth2-link--muted {
    color: #5e604e;
    font-weight: 800;
}

body.page-home-figma .auth2-link--accent:hover,
body.page-home-figma .auth2-link--muted:hover {
    color: #45473a;
}

body.page-home-figma .auth2-secondary-btn,
body.page-home-figma .auth-recovery-btn {
    border: 1.5px solid rgba(94, 96, 78, 0.34);
    background: rgba(255, 255, 255, 0.50);
    color: #171510;
}

body.page-home-figma .auth2-secondary-btn:hover,
body.page-home-figma .auth-recovery-btn:hover {
    border-color: rgba(94, 96, 78, 0.50);
    background: rgba(255, 255, 255, 0.68);
}

body.page-home-figma .auth2-danger-btn,
body.page-home-figma .auth2-passkey-delete-btn {
    border: 1.5px solid rgba(156, 89, 77, 0.54);
    background: linear-gradient(180deg, #b56d5f 0%, #9c594d 100%);
    color: #fff7f3;
}

body.page-home-figma .auth2-danger-btn:hover,
body.page-home-figma .auth2-passkey-delete-btn:hover {
    border-color: rgba(156, 89, 77, 0.74);
    box-shadow: 0 12px 24px rgba(156, 89, 77, 0.22);
}

body.page-home-figma .auth2-input,
body.page-home-figma .auth2-code-cell {
    border: 1.5px solid rgba(94, 96, 78, 0.42);
    background: #eee5d7;
    color: #171510;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.page-home-figma .auth-inline-message--error {
    border: 1px solid rgba(156, 89, 77, 0.30);
    background: rgba(156, 89, 77, 0.10);
    color: #6f3027;
}

body.page-home-figma .auth-inline-message--info {
    border: 1px solid rgba(138, 107, 61, 0.30);
    background: rgba(138, 107, 61, 0.10);
    color: #6a5431;
}

body.page-home-figma .auth2-verify-note {
    border-color: rgba(94, 96, 78, 0.18);
    background: rgba(255, 250, 242, 0.72);
    color: #4d493f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

body.page-home-figma .auth2-verify-note--warn {
    border-color: rgba(214, 153, 87, 0.54);
    background: linear-gradient(180deg, rgba(248, 219, 184, 0.96) 0%, rgba(242, 206, 167, 0.92) 100%);
    color: #72451f;
}

body.page-home-figma .auth2-verify-note--debug {
    border-color: rgba(98, 140, 182, 0.34);
    background: linear-gradient(180deg, rgba(219, 231, 243, 0.96) 0%, rgba(208, 224, 239, 0.92) 100%);
    color: #294b68;
}

body.page-home-figma .auth2-verify-spam-hint {
    border-color: rgba(196, 140, 132, 0.42);
    background: linear-gradient(180deg, rgba(240, 213, 209, 0.96) 0%, rgba(233, 200, 194, 0.92) 100%);
    color: #784744;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body.page-home-figma .help-modal {
    background:
        radial-gradient(circle at 50% 44%, rgba(221, 212, 193, 0.32) 0%, rgba(221, 212, 193, 0.12) 30%, rgba(221, 212, 193, 0) 58%),
        rgba(61, 55, 38, 0.28);
    backdrop-filter: blur(10px) saturate(94%);
    -webkit-backdrop-filter: blur(10px) saturate(94%);
}

body.page-home-figma .help-modal-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.08) 100%),
        #ddd4c1;
    border: 2px solid #5e604e;
    color: #171510;
    box-shadow:
        0 24px 54px rgba(94, 96, 78, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.page-home-figma .help-modal-close {
    background: rgba(255, 255, 255, 0.42);
    color: #5e604e;
    border-color: rgba(94, 96, 78, 0.24);
}

body.page-home-figma .help-modal-title,
body.page-home-figma .help-modal-intro,
body.page-home-figma .help-modal-content h2,
body.page-home-figma .help-modal-content h3,
body.page-home-figma .help-modal-content p {
    color: #171510;
    text-shadow: none;
}

body.page-home-figma .device-picker-overlay {
    justify-content: center;
    background:
        radial-gradient(circle at 50% 44%, rgba(221, 212, 193, 0.32) 0%, rgba(221, 212, 193, 0.10) 34%, rgba(221, 212, 193, 0) 62%),
        rgba(61, 55, 38, 0.28);
    backdrop-filter: blur(10px) saturate(94%);
    -webkit-backdrop-filter: blur(10px) saturate(94%);
}

body.page-home-figma .device-picker-sheet {
    box-sizing: border-box;
    border: 2px solid #5e604e;
    border-bottom: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.08) 100%),
        #ddd4c1;
    color: #171510;
    box-shadow:
        0 -18px 42px rgba(94, 96, 78, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

body.page-home-figma .device-picker-handle {
    background: rgba(94, 96, 78, 0.32);
}

body.page-home-figma .device-picker-title,
body.page-home-figma .device-picker-btn {
    color: #171510;
}

body.page-home-figma .device-picker-btn {
    border-color: rgba(94, 96, 78, 0.36);
    background: rgba(255, 255, 255, 0.40);
}

body.page-home-figma .device-picker-btn.active {
    border-color: #5e604e;
    background: #5e604e;
    color: #fffdf8;
    box-shadow: 0 10px 22px rgba(94, 96, 78, 0.18);
}

@media (min-width: 720px) {
    body.page-home-figma .device-picker-overlay {
        align-items: center;
        padding: clamp(18px, 4vw, 32px);
    }

    body.page-home-figma .device-picker-sheet {
        width: min(440px, calc(100vw - 36px));
        border-bottom: 2px solid #5e604e;
        border-radius: 20px;
        box-shadow:
            0 24px 54px rgba(94, 96, 78, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.46);
    }
}

@media (max-width: 760px) {
    body.page-auth-figma .auth2-hero-card,
    body.page-auth-figma .auth2-card {
        border-radius: 22px;
        padding: 16px;
    }

    body.page-auth-figma .auth2-title-row {
        gap: 12px;
    }

    body.page-auth-figma .auth2-logo {
        width: 64px;
        height: 64px;
    }

    body.page-auth-figma .auth2-title {
        font-size: clamp(26px, 7vw, 34px);
    }

    body.page-auth-figma .auth2-subtitle {
        font-size: 16px;
    }

    body.page-auth-figma .auth2-input {
        height: 52px;
        font-size: 15px;
    }

    body.page-auth-figma .auth2-alt-btn {
        min-height: 66px;
        padding: 10px;
    }

    body.page-auth-figma .auth2-alt-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 560px) {
    body.page-auth-figma .auth2-row--between {
        justify-content: center;
    }

    body.page-auth-figma .auth2-alt-meta {
        display: none;
    }
}

@media (max-width: 430px) {
    body.page-auth-figma .auth2-alt-grid {
        grid-template-columns: 1fr;
    }

    body.page-auth-figma .auth2-title-row {
        gap: 10px;
    }

    body.page-auth-figma .auth2-logo {
        width: 58px;
        height: 58px;
    }

    body.page-auth-figma .auth2-title {
        white-space: normal;
        text-wrap: balance;
        text-align: center;
        font-size: clamp(22px, 8vw, 30px);
    }
}

html.page-home-figma,
body.page-home-figma {
    background: #d5c9b1 !important;
}

body.page-home-figma {
    --paper-pattern-base: #d5c9b1;
    --paper-pattern-ink: #968c72;
    --paper-pattern-opacity: 0.46;
    --paper-pattern-fallback-opacity: 0.10;
    --paper-pattern-tile-width: 804px;
    --paper-pattern-offset-y: -22px;
    --paper-pattern-url: var(--paper-pattern-url-png);
}

body.page-home-figma .app-background {
    display: block;
    overflow: hidden;
    background: var(--paper-pattern-base);
}

body.page-home-figma .app-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--paper-pattern-base);
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
}

body.page-home-figma .app-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        var(--paper-pattern-url, url("../img/global-bg/pattern-tile.png"))
        left var(--paper-pattern-offset-y) / var(--paper-pattern-tile-width) auto
        repeat;
    opacity: var(--paper-pattern-fallback-opacity);
    filter: none;
    mix-blend-mode: normal;
    pointer-events: none;
}

@supports ((-webkit-mask-image: -webkit-linear-gradient(black, black)) or (mask-image: linear-gradient(black, black))) {
    body.page-home-figma .app-background::after {
        background: var(--paper-pattern-ink);
        background-repeat: no-repeat;
        -webkit-mask-image: var(--paper-pattern-url, url("../img/global-bg/pattern-tile.png"));
        mask-image: var(--paper-pattern-url, url("../img/global-bg/pattern-tile.png"));
        -webkit-mask-repeat: repeat;
        mask-repeat: repeat;
        -webkit-mask-size: var(--paper-pattern-tile-width) auto;
        mask-size: var(--paper-pattern-tile-width) auto;
        -webkit-mask-position: left var(--paper-pattern-offset-y);
        mask-position: left var(--paper-pattern-offset-y);
        opacity: var(--paper-pattern-opacity);
    }
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    body.page-auth-figma,
    body.page-home-figma {
        --paper-pattern-url: var(--paper-pattern-url-webp);
    }
}

body.page-home-figma #appContainer {
    --paper-container-pad-start: calc(env(safe-area-inset-top, 0px) + 12px);
    --paper-container-pad-end: calc(env(safe-area-inset-bottom, 0px) + var(--app-scroll-end-gap));
    --paper-stage-min-height: calc(var(--app-minh, 100vh) - var(--paper-container-pad-start) - var(--paper-container-pad-end));
    padding-inline: 0;
    padding-block-start: var(--paper-container-pad-start);
    padding-block-end: var(--paper-container-pad-end);
    scroll-padding-bottom: calc(var(--paper-container-pad-end) + 8px);
}

body.page-home-figma #appContainer[data-view="home"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="account"] {
    --paper-container-pad-start: calc(env(safe-area-inset-top, 0px) + 14px);
    --paper-container-pad-end: calc(env(safe-area-inset-bottom, 0px) + var(--app-account-scroll-end-gap));
    padding-inline: 0;
    scroll-padding-bottom: calc(var(--paper-container-pad-end) + 8px);
}

body.page-home-figma #appContainer[data-view="promokod"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="setup"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="help"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="help-setup"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="referral"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="info"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="about"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="guides"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="plans"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="device-payment"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="payment-pending"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="payment-success"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="payment-error"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="device-management"] {
    padding-inline: 0;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-home-figma #appContainer[data-view="unsupported"] {
    padding-inline: 0;
}

body.page-home-figma #appContainer[data-view="boot"] {
    padding-inline: 0;
}

body.page-home-figma .app-shell--home {
    width: min(402px, 100%) !important;
    margin-inline: auto;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible;
}

body.page-home-figma .app-shell--home::before {
    display: none !important;
}

@media (min-width: 860px) and (min-height: 620px) {
    body.page-home-figma {
        --paper-desktop-shell-width: clamp(452px, min(40vw, 64dvh), 540px);
        --paper-desktop-shell-pad: clamp(18px, 2.2vw, 24px);
    }

    body.page-home-figma #appContainer {
        --paper-container-pad-start: calc(clamp(14px, 3vh, 40px) + env(safe-area-inset-top, 0px));
        --paper-container-pad-end: calc(clamp(14px, 3vh, 40px) + env(safe-area-inset-bottom, 0px));
        --paper-stage-min-height: calc(var(--app-minh, 100vh) - var(--paper-container-pad-start) - var(--paper-container-pad-end));
        padding-inline: clamp(24px, 6vw, 84px) !important;
        padding-block-start: var(--paper-container-pad-start) !important;
        padding-block-end: var(--paper-container-pad-end) !important;
        scroll-padding-bottom: calc(var(--paper-container-pad-end) + 8px);
    }

    body.page-home-figma #appContainer[data-view="account"] {
        --paper-container-pad-start: calc(clamp(14px, 3vh, 40px) + env(safe-area-inset-top, 0px));
        --paper-container-pad-end: calc(clamp(14px, 3vh, 40px) + env(safe-area-inset-bottom, 0px));
        --paper-stage-min-height: calc(var(--app-minh, 100vh) - var(--paper-container-pad-start) - var(--paper-container-pad-end));
    }

    body.page-home-figma #appContainer:not([data-view="home"]):not([data-view="account"]) .app-shell--home {
        width: min(760px, calc(100vw - 48px)) !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.page-home-figma #appContainer[data-view="home"] .app-shell--home,
    body.page-home-figma #appContainer[data-view="account"] .app-shell--home {
        width: min(var(--paper-desktop-shell-width), calc(100vw - 48px)) !important;
        padding: var(--paper-desktop-shell-pad) !important;
        border: 2px solid rgba(94, 96, 78, 0.72) !important;
        border-radius: 28px !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%),
            rgba(221, 212, 193, 0.58) !important;
        box-shadow:
            0 28px 70px rgba(94, 96, 78, 0.17),
            inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
        overflow: visible;
    }

    body.page-home-figma #appContainer:not([data-view="home"]):not([data-view="account"]) .app-shell--home::before {
        display: none !important;
    }

    body.page-home-figma #appContainer[data-view="home"] .app-shell--home::before,
    body.page-home-figma #appContainer[data-view="account"] .app-shell--home::before {
        display: block !important;
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: transparent !important;
        opacity: 1 !important;
        filter: none;
        mix-blend-mode: normal;
        pointer-events: none;
    }

    body.page-home-figma .view-home--figma,
    body.page-home-figma .view-account--figma,
    body.page-home-figma .view-promokod--figma,
    body.page-home-figma .view-help-figma,
    body.page-home-figma .view-help-troubleshoot-figma,
    body.page-home-figma .view-referral-figma,
    body.page-home-figma .view-setup-figma,
    body.page-home-figma .view-plans--figma {
        max-width: 100%;
    }

    body.page-home-figma .view-promokod--figma,
    body.page-home-figma .view-help-figma,
    body.page-home-figma .view-help-troubleshoot-figma,
    body.page-home-figma .view-referral-figma,
    body.page-home-figma .view-setup-figma,
    body.page-home-figma .view-plans--figma {
        width: min(760px, 100%);
    }

    body.page-home-figma .promo-figma-stage,
    body.page-home-figma .help-figma-stage,
    body.page-home-figma .help-troubleshoot-figma-stage,
    body.page-home-figma .referral-figma-stage,
    body.page-home-figma .plans-figma-stage,
    body.page-home-figma .view-setup-figma {
        min-height: var(--paper-stage-min-height);
        padding-inline: clamp(18px, 3vw, 28px);
    }

    body.page-home-figma .promo-figma-card,
    body.page-home-figma .help-figma-card,
    body.page-home-figma .help-troubleshoot-figma-card,
    body.page-home-figma .referral-figma-card,
    body.page-home-figma .plans-figma-card,
    body.page-home-figma .plans-empty {
        width: min(680px, 100%);
        max-width: none;
    }

    body.page-home-figma .promo-figma-shadow,
    body.page-home-figma .help-figma-shadow,
    body.page-home-figma .help-troubleshoot-figma-shadow,
    body.page-home-figma .referral-figma-shadow {
        width: min(680px, 100%);
        max-width: none;
    }

    body.page-home-figma .help-figma-card {
        padding: 36px 28px 28px;
        min-height: 0;
    }

    body.page-home-figma .help-figma-title {
        font-size: clamp(30px, 3.1vw, 38px);
        line-height: 1;
        text-align: center;
    }

    body.page-home-figma .help-figma-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 28px;
    }

    body.page-home-figma .help-figma-item {
        min-height: 190px;
        padding: 18px 14px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    body.page-home-figma .help-figma-item-art {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 112px !important;
        height: 88px !important;
        margin: 0 auto 12px;
    }

    body.page-home-figma .help-figma-item-copy {
        align-items: center;
        min-height: 0;
    }

    body.page-home-figma .help-figma-item-title {
        font-size: clamp(22px, 2vw, 28px);
        line-height: 1.04;
        text-wrap: balance;
    }

    body.page-home-figma .help-figma-item-subtitle {
        font-size: clamp(15px, 1.35vw, 18px);
        line-height: 1.25;
        text-wrap: balance;
    }

    body.page-home-figma .help-figma-cta {
        height: 52px;
        margin-top: 20px;
        font-size: 18px;
    }

    body.page-home-figma .referral-figma-card {
        padding: 36px 28px 28px;
        min-height: 0;
    }

    body.page-home-figma .referral-figma-title {
        text-align: center;
        font-size: clamp(30px, 3.1vw, 38px);
        line-height: 1;
    }

    body.page-home-figma .referral-figma-promo {
        min-height: 190px;
        margin-top: 28px;
        padding: 22px 26px;
        display: grid;
        grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1fr);
        align-items: center;
        gap: 28px;
    }

    body.page-home-figma .referral-figma-promo-art {
        width: 190px;
        height: 150px;
        flex: none;
        justify-self: center;
    }

    body.page-home-figma .referral-figma-promo-copy {
        align-items: flex-start;
        gap: 10px;
    }

    body.page-home-figma .referral-figma-promo-bonus {
        font-size: clamp(34px, 3.3vw, 46px);
        line-height: 1;
    }

    body.page-home-figma .referral-figma-promo-text {
        max-width: 18ch;
        font-size: clamp(18px, 1.8vw, 24px);
        line-height: 1.18;
    }

    body.page-home-figma .referral-figma-action {
        height: 52px;
        font-size: 18px;
    }

    body.page-home-figma .promo-figma-card {
        min-height: 460px;
        padding: 36px 32px 28px;
    }

    body.page-home-figma .promo-figma-title {
        margin-bottom: 28px;
        font-size: clamp(30px, 3.1vw, 38px);
        line-height: 1;
    }

    body.page-home-figma .promo-figma-input-row {
        grid-template-columns: minmax(0, 1fr) 58px;
        gap: 16px;
        margin-bottom: 22px;
    }

    body.page-home-figma .promo-figma-input,
    body.page-home-figma .promo-figma-submit {
        min-height: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 18px;
    }

    body.page-home-figma .promo-figma-note {
        margin-bottom: 22px;
        text-align: center;
        font-size: 18px;
        line-height: 1.28;
    }

    body.page-home-figma .promo-figma-list-box,
    body.page-home-figma .promo-figma-empty-box {
        min-height: 220px;
    }

    body.page-home-figma .promo-figma-list-scroll {
        max-height: 220px;
    }

    body.page-home-figma .promo-figma-empty-title {
        font-size: 20px;
    }

    body.page-home-figma .plans-figma-card,
    body.page-home-figma .plans-empty {
        padding: 34px 28px 28px;
    }

    body.page-home-figma .plans-title {
        font-size: clamp(30px, 3.1vw, 38px);
        line-height: 1;
    }

    body.page-home-figma .plans-subtitle {
        max-width: 460px;
        font-size: 18px;
        line-height: 1.28;
    }

    body.page-home-figma .referral-figma-stats-stage,
    body.page-home-figma .device-manager-stage {
        width: min(760px, calc(100vw - 48px));
        padding: 24px;
    }

    body.page-home-figma .referral-figma-stats-shadow,
    body.page-home-figma .device-manager-shadow {
        width: min(620px, 100%);
        height: 320px;
    }

    body.page-home-figma .referral-figma-stats-card {
        width: min(620px, 100%);
        min-height: 0;
        padding: 34px 28px 28px;
        border-radius: 20px;
    }

    body.page-home-figma .referral-figma-stats-title {
        font-size: clamp(30px, 3.1vw, 38px);
        line-height: 1;
    }

    body.page-home-figma .referral-figma-stats-intro {
        margin-top: 14px;
        font-size: 17px;
        line-height: 1.3;
    }

    body.page-home-figma .referral-figma-stats-grid {
        gap: 14px;
        margin-top: 24px;
    }

    body.page-home-figma .referral-figma-stat-card {
        min-height: 148px;
        justify-content: center;
        padding: 18px 12px;
    }

    body.page-home-figma .referral-figma-stat-icon {
        width: 44px;
        height: 44px;
    }

    body.page-home-figma .referral-figma-stat-value {
        margin-top: 8px;
        font-size: 30px;
        line-height: 1;
    }

    body.page-home-figma .referral-figma-stat-label {
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.16;
    }

    body.page-home-figma .help-platform-guide-stage {
        width: min(620px, calc(100vw - 48px));
    }

    body.page-home-figma .help-platform-guide-shadow {
        width: min(620px, 100%);
        height: 360px;
    }

    body.page-home-figma .help-platform-guide-card {
        padding: 36px 30px 28px;
        border-radius: 20px;
        max-height: min(82dvh, 720px);
    }

    body.page-home-figma .help-platform-guide-title {
        text-align: center;
        font-size: clamp(30px, 3.1vw, 38px);
        line-height: 1;
    }

    body.page-home-figma .help-platform-guide-subtitle {
        margin: 12px auto 24px;
        text-align: center;
        font-size: 18px;
        line-height: 1.25;
    }

    body.page-home-figma .help-platform-guide-steps {
        gap: 12px;
    }

    body.page-home-figma .help-platform-guide-step {
        align-items: center;
        padding: 14px 16px;
        border: 1.5px solid rgba(94, 96, 78, 0.24);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.24);
    }

    body.page-home-figma .help-platform-guide-step-num {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    body.page-home-figma .help-platform-guide-step-text {
        font-size: 17px;
        line-height: 1.32;
    }

    body.page-home-figma .help-platform-guide-action,
    body.page-home-figma .help-platform-guide-secondary {
        min-height: 52px;
        border-radius: 15px;
        font-size: 18px;
    }

    body.page-home-figma .device-manager-shell {
        width: min(560px, 100%);
        min-height: 0;
        padding: 34px 24px 24px;
        border-radius: 20px;
    }

    body.page-home-figma .device-figma-header {
        align-items: center;
        padding-inline: 12px;
        text-align: center;
    }

    body.page-home-figma .device-figma-title {
        font-size: clamp(30px, 3.1vw, 38px);
        line-height: 1;
    }

    body.page-home-figma .device-figma-usage,
    body.page-home-figma .device-figma-note {
        font-size: 16px;
        line-height: 1.3;
    }

    body.page-home-figma .device-figma-box,
    body.page-home-figma .device-figma-warning {
        width: 100%;
        min-height: 220px;
    }

    body.page-home-figma .device-figma-list,
    body.page-home-figma .device-figma-empty {
        min-height: 198px;
        max-height: 240px;
    }
}

.view-setup-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--paper-stage-min-height);
}

.setup-figma-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.setup-figma-card {
    position: relative;
    width: min(370px, calc(100vw - 32px));
    padding: 16px 13px 14px;
    box-sizing: border-box;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    min-height: 421px;
    box-shadow: 0 18px 42px rgba(94, 96, 78, 0.24);
}

.setup-figma-card--step-1 {
    min-height: 421px;
}

.setup-figma-card--step-1.setup-figma-card--downloads-single {
    min-height: 342px;
}

.setup-figma-card--step-1.setup-figma-card--downloads-multi {
    min-height: 406px;
}

.setup-figma-card--step-1.setup-figma-card--downloads-linux {
    min-height: 504px;
}

.setup-figma-card--step-3 {
    min-height: 452px;
}

.setup-figma-card--step-2 {
    padding: 0;
    min-height: 362px;
}

.setup-figma-card--tv {
    min-height: 465px;
}

.setup-figma-card--tv.setup-figma-card--step-1 {
    min-height: 420px;
}

.setup-figma-card--tv.setup-figma-card--step-1 .setup-figma-body {
    min-height: 252px;
}

.setup-figma-card--tv.setup-figma-card--step-1 .setup-figma-action--primary {
    margin-top: auto;
}

.setup-figma-card--tv.setup-figma-card--step-2 {
    min-height: 490px;
}

.setup-figma-card--tv.setup-figma-card--step-3 {
    min-height: 442px;
}

.setup-figma-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.setup-figma-close svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.setup-figma-close:hover {
    background: rgba(94, 96, 78, 0.08);
}

.setup-figma-close:active {
    transform: scale(0.96);
}

.setup-figma-progress {
    width: 100%;
    padding-top: 12px;
}

.setup-figma-card--step-2 .setup-figma-progress {
    position: absolute;
    left: 40px;
    top: 45px;
    width: 290px;
    padding-top: 0;
}

.setup-figma-progress-track {
    width: min(290px, calc(100% - 40px));
    height: 0;
    margin: 0 auto;
    border-top: 4px solid #DDD4C1;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15);
    position: relative;
}

.setup-figma-progress-fill {
    position: absolute;
    left: 0;
    top: -4px;
    height: 0;
    border-top: 4px solid #5E604E;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15);
}

.setup-figma-progress-label {
    margin-top: 16px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.setup-figma-card--step-2 .setup-figma-progress-track {
    width: 290px;
}

.setup-figma-card--step-2 .setup-figma-progress-label {
    margin-top: 16px;
}

.setup-figma-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.setup-figma-title-row.is-success {
    margin-top: 18px;
}

.setup-figma-card--step-2 .setup-figma-title-row {
    position: absolute;
    left: 38px;
    top: 85px;
    margin-top: 0;
    gap: 18px;
    justify-content: flex-start;
}

.setup-figma-icon {
    width: 51px;
    height: 51px;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.setup-figma-icon svg {
    width: 31px;
    height: 31px;
}

.setup-figma-icon.is-success svg {
    width: 28px;
    height: 28px;
}

.setup-figma-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #000000;
}

.setup-figma-subtitle {
    margin: 14px 0 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.setup-figma-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.setup-figma-card--step-1 .setup-figma-body {
    gap: 24px;
}

.setup-figma-card--step-1.setup-figma-card--downloads-single .setup-figma-body {
    gap: 30px;
}

.setup-figma-card--step-1.setup-figma-card--downloads-linux .setup-figma-body {
    gap: 18px;
}

.setup-figma-card--step-2 .setup-figma-body {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 191px;
    margin-top: 0;
    gap: 0;
}

.setup-figma-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setup-figma-downloads--linux {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.setup-figma-download {
    position: relative;
    width: 100%;
    height: 68px;
    min-height: 68px;
    padding: 0 16px 0 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    color: #5E604E;
    cursor: pointer;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.setup-figma-download.is-primary {
    box-shadow: 4px 3px 0 #5E604E;
}

.setup-figma-download-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5E604E;
}

.setup-figma-download-icon svg {
    width: 28px;
    height: 28px;
}

.setup-figma-download-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setup-figma-download-copy--package {
    width: 100%;
    gap: 0;
}

.setup-figma-download-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.setup-figma-download-name {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.setup-figma-download-hint {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.setup-figma-download--package {
    height: 56px;
    min-height: 56px;
    padding: 0 10px 0 11px;
    gap: 8px;
    border-radius: 12px;
}

.setup-figma-download--package.is-primary {
    box-shadow: none;
}

.setup-figma-download--package .setup-figma-download-icon {
    width: 26px;
    height: 26px;
}

.setup-figma-download--package .setup-figma-download-icon svg {
    width: 26px;
    height: 26px;
}

.setup-figma-download-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.setup-figma-download-icon--deb {
    color: #6E7361;
}

.setup-figma-download-icon--rpm {
    color: #6E7361;
}

.setup-figma-download-icon--arch {
    color: #6E7361;
}

.setup-figma-download--package .setup-figma-download-name {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.2px;
}

.setup-figma-download-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.setup-figma-download-badge--deb {
    background: linear-gradient(135deg, #B28D6A 0%, #C89E78 100%);
}

.setup-figma-download-badge--rpm {
    background: linear-gradient(135deg, #A56C5B 0%, #BF8371 100%);
}

.setup-figma-download-badge--arch {
    background: linear-gradient(135deg, #6E8799 0%, #88A4B5 100%);
}

.setup-figma-download:hover {
    border-color: #676A58;
}

.setup-figma-download:active {
    transform: scale(0.995);
}

.setup-figma-action {
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.setup-figma-action--primary {
    background: #5E604E;
    color: #FFFFFF;
}

.setup-figma-action--ghost,
.setup-figma-action--muted {
    background: #BDB5A5;
    border: 2px solid rgba(94, 96, 78, 0.58);
    color: #FFFFFF;
}

.setup-figma-action--manual {
    background: #DDD4C1;
    border: 2px solid #5E604E;
    color: #5E604E;
}

.setup-figma-card--step-2 .setup-figma-action {
    width: min(340px, 100%);
    max-width: 100%;
    align-self: center;
}

.setup-figma-card--step-2 .setup-figma-inline-link,
.setup-figma-card--step-2 .setup-figma-helper {
    max-width: 100%;
    padding-inline: 4px;
    box-sizing: border-box;
    line-height: 1.35;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.setup-figma-action:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
}

.setup-figma-action:active:not(:disabled) {
    transform: scale(0.99);
}

.setup-figma-action:disabled {
    opacity: 0.82;
    cursor: default;
}

.setup-figma-inline-link {
    align-self: center;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.setup-figma-card--step-2 .setup-figma-inline-link {
    margin-top: 10px;
}

.setup-figma-card--step-2 .setup-figma-helper,
.setup-figma-card--step-2 .setup-figma-body > .setup-figma-action--manual {
    margin-top: 10px;
}

.setup-figma-card--step-2 .setup-figma-body > .setup-figma-action--primary {
    margin-top: 18px;
}

.setup-figma-inline-link:hover {
    color: rgba(0, 0, 0, 0.7);
}

.setup-figma-helper {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

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

.setup-figma-list.is-multiline .setup-figma-list-item {
    align-items: flex-start;
    height: auto;
    min-height: 60px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.setup-figma-list-item {
    height: 60px;
    min-height: 60px;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
}

.setup-figma-list-num {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: 1px solid #5E604E;
    background: rgba(94, 96, 78, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.setup-figma-list-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.setup-figma-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setup-figma-card--tv.setup-figma-card--step-2 .setup-figma-body {
    top: 162px;
    bottom: 18px;
    gap: 10px;
}

.setup-figma-card--tv.setup-figma-card--step-2 .setup-figma-list {
    gap: 8px;
}

.setup-figma-card--tv.setup-figma-card--step-2 .setup-figma-list.is-multiline .setup-figma-list-item {
    min-height: 56px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.setup-figma-card--tv.setup-figma-card--step-2 .setup-figma-helper {
    line-height: 1.28;
}

.setup-figma-card--tv.setup-figma-card--step-2 .setup-figma-action--primary {
    margin-top: auto;
}

.setup-figma-card--tv.setup-figma-card--step-3 {
    min-height: 396px;
}

.setup-figma-card--tv.setup-figma-card--step-3 .setup-figma-body {
    min-height: 0;
    gap: 12px;
}

.setup-figma-card--tv.setup-figma-card--step-3 .setup-figma-footer-actions {
    margin-top: 14px;
}

@media (min-width: 860px) {
    body.page-home-figma #appContainer[data-view="setup"] .app-shell,
    body.page-home-figma #appContainer[data-view="setup"] .app-shell--home {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }

    body.page-home-figma #appContainer[data-view="setup"] .app-shell::before,
    body.page-home-figma #appContainer[data-view="setup"] .app-shell--home::before {
        display: none !important;
    }

    .view-setup-figma {
        max-width: 760px;
    }

    .setup-figma-stage {
        padding: 20px clamp(20px, 3vw, 28px);
    }

    .setup-figma-card {
        width: min(620px, 100%);
        min-height: 480px;
        padding: 22px 22px 20px;
        border-radius: 18px;
        box-shadow: 0 24px 52px rgba(94, 96, 78, 0.2);
    }

    .setup-figma-card--step-1 {
        min-height: 480px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-single {
        min-height: 420px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-multi {
        min-height: 470px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-linux {
        min-height: 560px;
    }

    .setup-figma-card--step-2 {
        min-height: 440px;
    }

    .setup-figma-card--step-3 {
        min-height: 500px;
    }

    .setup-figma-progress {
        padding-top: 16px;
    }

    .setup-figma-progress-track {
        width: min(420px, calc(100% - 120px));
        border-top-width: 5px;
    }

    .setup-figma-progress-fill {
        top: -5px;
        border-top-width: 5px;
    }

    .setup-figma-progress-label {
        margin-top: 18px;
        font-size: 15px;
    }

    .setup-figma-card--step-2 .setup-figma-progress {
        left: 50%;
        top: 40px;
        width: min(420px, calc(100% - 160px));
        transform: translateX(-50%);
    }

    .setup-figma-card--step-2 .setup-figma-progress-track {
        width: 100%;
    }

    .setup-figma-title-row {
        gap: 16px;
        margin-top: 18px;
    }

    .setup-figma-card--step-2 .setup-figma-title-row {
        left: 50%;
        top: 96px;
        width: min(480px, calc(100% - 160px));
        transform: translateX(-50%);
        gap: 20px;
        justify-content: center;
    }

    .setup-figma-icon {
        width: 64px;
        height: 64px;
    }

    .setup-figma-icon svg {
        width: 36px;
        height: 36px;
    }

    .setup-figma-title {
        font-size: 28px;
        line-height: 1.1;
    }

    .setup-figma-subtitle {
        margin-top: 16px;
        font-size: 16px;
    }

    .setup-figma-body {
        margin-top: 22px;
        gap: 16px;
    }

    .setup-figma-card--step-1 .setup-figma-body {
        gap: 22px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-single .setup-figma-body {
        gap: 26px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-linux .setup-figma-body {
        gap: 18px;
    }

    .setup-figma-card--step-2 .setup-figma-body {
        left: 50%;
        right: auto;
        top: 220px;
        width: min(480px, calc(100% - 160px));
        transform: translateX(-50%);
    }

    .setup-figma-download {
        height: 76px;
        min-height: 76px;
        padding: 0 18px 0 16px;
        gap: 16px;
        border-radius: 16px;
    }

    .setup-figma-download-icon {
        width: 44px;
        height: 44px;
    }

    .setup-figma-download-icon svg {
        width: 32px;
        height: 32px;
    }

    .setup-figma-download-name {
        font-size: 22px;
    }

    .setup-figma-download-hint {
        font-size: 17px;
    }

    .setup-figma-downloads--linux {
        gap: 12px;
    }

    .setup-figma-download--package {
        height: 60px;
        min-height: 60px;
        padding: 0 12px;
        gap: 10px;
    }

    .setup-figma-download--package .setup-figma-download-icon {
        width: 30px;
        height: 30px;
    }

    .setup-figma-download--package .setup-figma-download-icon svg {
        width: 30px;
        height: 30px;
    }

    .setup-figma-download--package .setup-figma-download-name {
        font-size: 15px;
    }

    .setup-figma-download-badge {
        min-width: 58px;
        height: 32px;
        font-size: 12px;
    }

    .setup-figma-action {
        height: 44px;
        min-height: 44px;
        font-size: 17px;
        border-radius: 12px;
    }

    .setup-figma-card--step-2 .setup-figma-action {
        width: min(440px, 100%);
    }

    .setup-figma-inline-link,
    .setup-figma-helper {
        font-size: 15px;
    }

    .setup-figma-card--step-2 .setup-figma-inline-link {
        margin-top: 12px;
    }

    .setup-figma-card--step-2 .setup-figma-helper,
    .setup-figma-card--step-2 .setup-figma-body > .setup-figma-action--manual {
        margin-top: 12px;
    }

    .setup-figma-card--step-2 .setup-figma-body > .setup-figma-action--primary {
        margin-top: 20px;
    }

    .setup-figma-list-item {
        height: 68px;
        min-height: 68px;
        padding: 0 18px;
        gap: 16px;
        border-radius: 16px;
    }

    .setup-figma-list.is-multiline .setup-figma-list-item {
        min-height: 72px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .setup-figma-list-num {
        width: 28px;
        height: 28px;
        font-size: 17px;
    }

    .setup-figma-list-text {
        font-size: 17px;
    }
}

@media (max-width: 390px) {
    .setup-figma-stage {
        padding: 12px;
    }

    .setup-figma-card {
        width: calc(100vw - 24px);
        min-height: 400px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-single {
        min-height: 330px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-multi {
        min-height: 392px;
    }

    .setup-figma-card--step-1.setup-figma-card--downloads-linux {
        min-height: 474px;
    }

    .setup-figma-card--step-2 {
        min-height: 350px;
    }

    .setup-figma-card--step-3,
    .setup-figma-card--tv {
        min-height: 440px;
    }

    .setup-figma-card--tv.setup-figma-card--step-1 {
        min-height: 404px;
    }

    .setup-figma-card--tv.setup-figma-card--step-1 .setup-figma-body {
        min-height: 236px;
    }

    .setup-figma-card--tv.setup-figma-card--step-2 {
        min-height: 470px;
    }

    .setup-figma-card--tv.setup-figma-card--step-2 .setup-figma-body {
        top: 156px;
        bottom: 14px;
        gap: 8px;
    }

    .setup-figma-card--tv.setup-figma-card--step-2 .setup-figma-list.is-multiline .setup-figma-list-item {
        min-height: 52px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .setup-figma-card--tv.setup-figma-card--step-3 {
        min-height: 382px;
    }

    .setup-figma-card--tv.setup-figma-card--step-3 .setup-figma-body {
        gap: 10px;
    }

    .setup-figma-card--tv.setup-figma-card--step-3 .setup-figma-footer-actions {
        margin-top: 12px;
    }

    .setup-figma-download-name,
    .setup-figma-title {
        font-size: 18px;
    }

    .setup-figma-download-hint,
    .setup-figma-list-text {
        font-size: 15px;
    }

    .setup-figma-downloads--linux {
        gap: 8px;
    }

    .setup-figma-download--package {
        height: 52px;
        min-height: 52px;
        padding: 0 8px 0 9px;
        gap: 7px;
    }

    .setup-figma-download--package .setup-figma-download-icon {
        width: 24px;
        height: 24px;
    }

    .setup-figma-download--package .setup-figma-download-icon svg {
        width: 24px;
        height: 24px;
    }

    .setup-figma-download--package .setup-figma-download-name {
        font-size: 13px;
    }

    .setup-figma-download-badge {
        min-width: 48px;
        height: 27px;
        padding: 0 8px;
        font-size: 10px;
    }
}

.view-home--figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    gap: 0 !important;
    padding: 0;
}

.home-ad-panel,
.home-status-panel,
.home-shortcut-card {
    box-sizing: border-box;
    position: relative;
    border: 2px solid #5e604e;
    border-radius: 15px;
    background: #ddd4c1;
    box-shadow: none;
    overflow: hidden;
}

.home-ad-panel {
    width: calc(100% - 50px);
    aspect-ratio: 352 / 95;
    margin: 0 25px 15px;
    padding: 0;
    display: block;
}

.home-ad-panel__media {
    position: absolute;
    inset: 0;
}

.home-ad-panel__banner {
    position: absolute;
    inset: 0;
}

.home-ad-panel__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-figma-asset,
.home-figma-asset img {
    display: block;
    user-select: none;
    pointer-events: none;
}

.home-figma-asset img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-ad-panel__scroll-wrap {
    position: absolute;
    left: -6.2%;
    top: -12.2%;
    width: 38.4%;
    height: 129%;
    overflow: hidden;
}

.home-ad-panel__scroll {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-ad-panel__helmet {
    position: absolute;
    left: 51.2%;
    top: 50%;
    width: 38%;
    height: 38%;
    transform: translate(-50%, -50%);
}

.home-ad-panel__paper-area {
    position: absolute;
    left: 31.2%;
    top: 13.1%;
    width: 39.6%;
    height: 66.2%;
    overflow: hidden;
    pointer-events: none;
}

.home-ad-panel__helmet--custom {
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-ad-panel__helmet--custom img {
    max-width: 100%;
    max-height: 100%;
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    transform: translateY(4%);
    display: block;
    user-select: none;
    pointer-events: none;
}

.home-ad-panel__helmet img,
.home-ad-panel__helmet--custom img {
    object-position: 50% 50%;
}

.home-ad-panel__content {
    position: absolute;
    left: 26.988636%;
    top: 22.4%;
    right: 12px;
    min-width: 0;
}

.home-ad-panel__content--dense {
    top: 19.6%;
}

.home-ad-panel__title {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(22px, 5.8vw, 24px);
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.home-ad-panel__subtitle {
    margin: 8px 0 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
    display: block;
    max-width: 100%;
    max-height: 36px;
    overflow: hidden;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: break-word;
}

.home-ad-panel__content--dense .home-ad-panel__title {
    font-size: clamp(20px, 5.3vw, 22px);
    line-height: 20px;
}

.home-ad-panel__content--dense .home-ad-panel__subtitle {
    margin-top: 5px;
    font-size: 13px;
    line-height: 16px;
    max-height: 32px;
}

.home-status-panel {
    width: calc(100% - 32px);
    aspect-ratio: 370 / 265;
    margin: 0 16px 15px;
    padding: 0;
}

.home-status-panel--compact {
    aspect-ratio: 370 / 230;
}

.home-status-panel--minimal {
    aspect-ratio: 370 / 145;
}

.home-status-panel__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-status-panel--minimal .home-status-panel__inner {
    height: auto;
    aspect-ratio: 370 / 265;
}

.home-status-panel__bird {
    position: absolute;
    top: 2.30%;
    left: 28.05%;
    width: 41.78%;
    height: 38.90%;
}

.home-status-panel__bird-asset {
    width: 100%;
    height: 100%;
}

.home-status-panel__headline {
    position: absolute;
    top: 42.40%;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
}

.home-status-panel__dot {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background: #40c662;
}

.home-status-panel__dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(3.05px);
}

.home-status-panel__dot.is-idle {
    background: #8c7a56;
}

.home-status-panel__value {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(22px, 5.8vw, 24px);
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
    text-align: center;
    white-space: nowrap;
}

.home-status-panel__meta {
    position: absolute;
    left: 4.054054%;
    width: 91.891892%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.home-status-panel__meta:nth-of-type(3) {
    top: 58.10%;
}

.home-status-panel__meta:nth-of-type(4) {
    top: 69.40%;
}

.home-status-panel--compact .home-action-btn--compact {
    top: 74%;
    height: 16.5%;
}

.home-status-panel__label,
.home-status-panel__data {
    color: rgba(0, 0, 0, 0.5);
}

.home-status-panel__data {
    text-align: right;
}

.home-action-stack {
    display: grid;
    gap: 10px;
    margin: 0 16px 15px;
}

.home-action-btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 2px solid rgba(94, 96, 78, 0.5);
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.home-action-btn--filled {
    background: #5e604e;
    color: #ffffff;
    border-color: #5e604e;
    box-shadow: none;
}

.home-action-btn--ghost {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-shadow: none;
}

.home-action-btn--compact {
    position: absolute;
    top: 80%;
    left: 4.054054%;
    width: 91.891892%;
    height: 14.339623%;
    min-height: 0;
}

.home-action-btn--install {
    width: calc(100% - 32px);
    margin: 0 16px;
}

.home-action-btn:active,
.home-shortcut-card:active {
    transform: scale(0.985);
}

.home-shortcut-grid {
    display: grid;
    grid-template-columns: 117fr 116fr 117fr;
    gap: 10px;
    margin: 0 16px 15px;
}

body.page-home-figma #appContainer[data-view="home"] .home-shortcut-grid {
    margin-bottom: 0;
}

.home-shortcut-card {
    width: 100%;
    aspect-ratio: 117 / 128;
    padding: 0;
    appearance: none;
    display: block;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-shortcut-card--help {
    aspect-ratio: 116 / 128;
}

.home-shortcut-card__art {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: block;
}

.home-shortcut-card__art .home-figma-asset {
    position: absolute;
}

.home-shortcut-card__profile-asset {
    left: -8.00%;
    top: 2.00%;
    width: 112.00%;
    height: 68.00%;
}

.home-shortcut-card__art--help {
    overflow: hidden;
}

.home-shortcut-card__help-asset {
    left: -8.00%;
    top: 5.50%;
    width: 118.00%;
    height: 66.00%;
}

.home-shortcut-card__invite-asset {
    left: -8.00%;
    top: 3.00%;
    width: 118.00%;
    height: 66.00%;
}

.home-shortcut-card__label {
    position: absolute;
    top: 71.09375%;
    left: 50%;
    width: calc(100% - 8px);
    margin: 0;
    transform: translateX(-50%);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: color 0.16s ease;
}

.view-account--figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    gap: 0 !important;
    padding: 0;
}

.view-scroll--account-figma {
    gap: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0;
}

.profile-figma-card {
    box-sizing: border-box;
    position: relative;
    width: calc(100% - 32px);
    margin: 0 16px 10px;
    border: 2px solid #5e604e;
    border-radius: 15px;
    background: #ddd4c1;
    box-shadow: none;
    overflow: hidden;
}

.profile-figma-id-card {
    min-height: 76px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
}

.profile-figma-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.profile-figma-id-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    color: #5e604e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-figma-id-icon svg {
    width: 58px;
    height: 58px;
}

.profile-figma-id-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.profile-figma-id-label,
.profile-figma-id-value {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
}

.profile-figma-id-label {
    color: #000000;
}

.profile-figma-id-value {
    color: #5e604e;
}

.profile-figma-status-panel {
    margin-bottom: 10px;
}

.profile-figma-servers-card {
    padding: 15px;
}

.profile-figma-servers-card--trial {
    min-height: 0;
}

.profile-figma-servers-card--paid {
    min-height: 0;
}

.profile-figma-section-title {
    margin: 0 0 15px;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.profile-figma-servers-body {
    display: flex;
    flex-direction: column;
}

.profile-figma-server-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 5px;
}

.profile-figma-server-row + .profile-figma-server-row {
    margin-top: 5px;
}

.profile-figma-server-row--filled,
.profile-figma-server-row--locked {
    background: rgba(94, 96, 78, 0.2);
}

.profile-figma-server-row--locked {
    min-height: 36px;
}

.profile-figma-servers-note {
    margin: 5px 0 0 8px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.profile-figma-servers-note + .profile-figma-server-row {
    margin-top: 5px;
}

.profile-figma-server-flag {
    flex: 0 0 24px;
    width: 24px;
    text-align: center;
    font-size: 24px;
    line-height: 22px;
}

.profile-figma-server-text {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5e604e;
}

.profile-figma-server-lock {
    margin-left: auto;
    width: 20px;
    height: 20px;
    color: #5e604e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.profile-figma-server-lock svg {
    width: 20px;
    height: 20px;
}

.profile-figma-server-lock-asset {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.profile-figma-server-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.22s ease, opacity 0.16s ease;
}

.profile-figma-server-extra.is-expanded {
    max-height: 1200px;
    opacity: 1;
}

.profile-figma-server-extra .profile-figma-server-row:first-child {
    margin-top: 5px;
}

.profile-figma-server-toggle {
    margin: 10px auto 0;
    align-self: center;
    min-height: 26px;
    padding: 0 12px;
    border: 1px solid rgba(94, 96, 78, 0.38);
    border-radius: 13px;
    background: rgba(94, 96, 78, 0.08);
    color: #5e604e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.profile-figma-server-toggle-icon {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease;
}

.profile-figma-server-toggle-icon svg {
    width: 12px;
    height: 12px;
}

.profile-figma-server-toggle.is-expanded .profile-figma-server-toggle-icon {
    transform: rotate(180deg);
}

.profile-figma-devices-card {
    min-height: 62px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-figma-device-btn {
    width: min(193px, 100%);
    min-height: 32px;
    padding: 0 10px;
    border: none;
    appearance: none;
    border-radius: 10px;
    background: #5e604e;
    color: #ffffff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-figma-device-count {
    flex: 0 0 auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5e604e;
    text-align: right;
}

.profile-figma-link-card {
    min-height: 62px;
    padding: 0;
}

.profile-figma-link-card--secondary {
    min-height: 76px;
}

.profile-figma-link-btn {
    width: 100%;
    min-height: 62px;
    padding: 12px 15px 12px 10px;
    border: none;
    appearance: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.profile-figma-link-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #5e604e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-figma-link-icon svg {
    width: 34px;
    height: 34px;
}

.profile-figma-promo-asset {
    width: 34px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.profile-figma-link-icon--secondary {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.profile-figma-link-icon--secondary svg {
    width: 24px;
    height: 24px;
}

.profile-figma-link-btn > .profile-figma-link-title {
    flex: 1 1 auto;
    text-align: left;
}

.profile-figma-link-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
    transition: color 0.16s ease;
}

.profile-figma-link-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.profile-figma-link-card--secondary .profile-figma-link-title {
    font-size: 16px;
    color: #000000;
}

.profile-figma-link-card--secondary .profile-figma-link-btn {
    min-height: 76px;
}

.profile-figma-link-hint {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);
}

.profile-figma-link-arrow {
    margin-left: auto;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    color: #5e604e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, color 0.16s ease;
}

.profile-figma-link-arrow svg {
    width: 21px;
    height: 21px;
}

.profile-figma-device-btn:active,
.profile-figma-link-btn:active,
.profile-figma-logout-btn:active {
    transform: scale(0.985);
}

.profile-figma-footer-tools {
    margin: 0 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-figma-logout-wrap {
    margin: 0 16px 8px;
}

.profile-figma-footer-tools .profile-figma-logout-wrap {
    margin: 0;
}

.profile-figma-logout-btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(94, 96, 78, 0.35);
    appearance: none;
    background: rgba(94, 96, 78, 0.12);
    color: #5e604e;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.profile-figma-logout-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-figma-logout-icon svg {
    width: 14px;
    height: 14px;
}

.view-promokod--figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    gap: 0 !important;
    padding: 0;
}

.view-scroll--promokod-figma {
    gap: 0 !important;
    padding-right: 0 !important;
}

.promo-figma-stage {
    position: relative;
    min-height: var(--paper-stage-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.promo-figma-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% - 32px);
    max-width: 370px;
    height: 324px;
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.promo-figma-card {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 370px;
    min-height: 353px;
    padding: 30px 15px 15px;
    border: 2px solid #5e604e;
    border-radius: 15px;
    background: #ddd4c1;
    box-shadow: none;
}

.promo-figma-title {
    margin: 0 0 30px;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.promo-figma-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.promo-figma-input {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1.5px solid #5e604e;
    border-radius: 10px;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.82);
}

.promo-figma-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.promo-figma-input:focus {
    outline: none;
    border-color: #5e604e;
}

.promo-figma-submit {
    width: 38px;
    height: 38px;
    border: none;
    appearance: none;
    border-radius: 10px;
    background: #5e604e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.promo-figma-submit svg {
    width: 18px;
    height: 18px;
}

.promo-figma-note {
    margin: 0 0 15px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.promo-figma-list-box,
.promo-figma-empty-box {
    width: 100%;
    min-height: 153px;
    border: 1px solid #5e604e;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.promo-figma-list-scroll {
    max-height: 153px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}

.promo-figma-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.promo-figma-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(94, 96, 78, 0.4);
    border-radius: 999px;
}

.promo-figma-code-row {
    width: 100%;
    min-height: 41px;
    padding: 0 10px;
    border: 1.5px solid #5e604e;
    border-radius: 12px;
    appearance: none;
    background: #5e604e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.4px;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.promo-figma-code-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promo-figma-code-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease;
}

.promo-figma-code-arrow svg {
    width: 18px;
    height: 18px;
}

.promo-figma-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
}

.promo-figma-empty-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-figma-empty-asset {
    width: 35px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.promo-figma-empty-title {
    margin: 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.promo-figma-submit:active,
.promo-figma-code-row:active {
    transform: scale(0.985);
}

.view-help-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.help-figma-stage {
    position: relative;
    min-height: var(--paper-stage-min-height);
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
}

.help-figma-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(370px, calc(100vw - 32px));
    height: 407px;
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.help-figma-card {
    position: relative;
    z-index: 1;
    width: min(370px, calc(100vw - 32px));
    min-height: 399px;
    margin: auto;
    padding: 30px 15px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
}

.help-figma-title {
    margin: 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.help-figma-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.help-figma-close svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.help-figma-items {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.help-figma-item {
    position: relative;
    width: 100%;
    min-height: 68px;
    padding: 10px 14px 10px 82px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    color: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.help-figma-item-art {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    pointer-events: none;
}

.help-figma-item-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.help-figma-item--setup .help-figma-item-art {
    left: -2px;
    top: 1px;
    width: 86px;
    height: 66px;
}

.help-figma-item--troubleshoot .help-figma-item-art {
    left: 2px;
    top: 9px;
    width: 80px;
    height: 51px;
}

.help-figma-item--support .help-figma-item-art {
    left: 6px;
    top: 6px;
    width: 76px;
    height: 60px;
}

.help-figma-item-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
}

.help-figma-item-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.help-figma-item-subtitle {
    margin-top: 4px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.help-figma-cta {
    width: 100%;
    height: 38px;
    margin-top: 15px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: #5E604E;
    color: #FFFFFF;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.view-help-troubleshoot-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.help-troubleshoot-figma-stage {
    position: relative;
    min-height: var(--paper-stage-min-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    box-sizing: border-box;
}

.help-troubleshoot-figma-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(370px, calc(100vw - 32px));
    height: 440px;
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    opacity: 0.64;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.help-troubleshoot-figma-card {
    position: relative;
    z-index: 1;
    width: min(370px, calc(100vw - 32px));
    min-height: 440px;
    margin-block: auto;
    padding: 18px 14px 16px 16px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    display: flex;
    flex-direction: column;
}

.help-troubleshoot-figma-close {
    position: absolute;
    top: 11px;
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.help-troubleshoot-figma-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.help-troubleshoot-figma-block + .help-troubleshoot-figma-block {
    margin-top: 24px;
}

.help-troubleshoot-figma-heading {
    margin: 0;
    max-width: calc(100% - 30px);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(18px, 5vw, 20px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.5px;
    color: #000000;
    white-space: nowrap;
}

.help-troubleshoot-figma-copy {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-troubleshoot-figma-line {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(14px, 4.4vw, 16px);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -0.45px;
    color: rgba(0, 0, 0, 0.5);
}

.help-troubleshoot-figma-emphasis {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
}

.help-troubleshoot-figma-tail {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
}

@media (min-width: 520px) {
    .help-troubleshoot-figma-heading {
        font-size: 20px;
    }

    .help-troubleshoot-figma-line {
        font-size: 16px;
    }
}

.help-troubleshoot-figma-support {
    width: 100%;
    height: 38px;
    margin-top: 18px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: #5E604E;
    color: #FFFFFF;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

@media (min-width: 860px) {
    .help-troubleshoot-figma-card {
        min-height: 0;
        padding: 20px 14px 20px 16px;
    }

    .help-troubleshoot-figma-support {
        margin-top: 22px;
    }
}

.view-referral-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.referral-figma-stage {
    position: relative;
    min-height: var(--paper-stage-min-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    box-sizing: border-box;
}

.referral-figma-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(370px, calc(100vw - 32px));
    height: 276px;
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    opacity: 0.64;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.referral-figma-card {
    position: relative;
    z-index: 1;
    width: min(370px, calc(100vw - 32px));
    min-height: 258px;
    margin-block: auto;
    padding: 30px 15px 15px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
}

.referral-figma-title {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.referral-figma-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.referral-figma-close svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.referral-figma-promo {
    width: 100%;
    min-height: 105px;
    margin-top: 20px;
    padding: 12px 14px 12px 12px;
    box-sizing: border-box;
    border: 1px solid #5E604E;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.referral-figma-promo-art {
    flex: 0 0 124px;
    width: 124px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-figma-promo-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.referral-figma-promo-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.referral-figma-promo-bonus {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.referral-figma-promo-text {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.referral-figma-action {
    width: 100%;
    height: 38px;
    margin-top: 15px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.referral-figma-action--primary {
    background: #5E604E;
    color: #FFFFFF;
}

.referral-figma-action--secondary {
    margin-top: 10px;
    background: #BDB5A5;
    border: 2px solid rgba(94, 96, 78, 0.58);
    color: #FFFFFF;
}

.referral-figma-stats-modal {
    background: rgba(58, 50, 38, 0.34);
    backdrop-filter: blur(10px) saturate(90%);
    -webkit-backdrop-filter: blur(10px) saturate(90%);
}

.referral-figma-stats-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(221, 212, 193, 0.22) 0%, rgba(221, 212, 193, 0.1) 28%, rgba(221, 212, 193, 0) 56%),
        rgba(48, 40, 28, 0.2);
    pointer-events: none;
}

.referral-figma-stats-stage {
    position: relative;
    z-index: 1;
    width: min(402px, 100vw);
    min-height: var(--app-minh, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.referral-figma-stats-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(370px, calc(100vw - 32px));
    height: 248px;
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    opacity: 0.64;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.referral-figma-stats-card {
    position: relative;
    width: min(370px, calc(100vw - 32px));
    min-height: 230px;
    padding: 24px 12px 16px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
}

.referral-figma-stats-close {
    top: 5px;
    right: 5px;
}

.referral-figma-stats-title {
    margin: 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.referral-figma-stats-intro {
    margin: 15px 0 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.referral-figma-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 25px;
}

.referral-figma-stat-card {
    min-height: 107px;
    padding: 11px 8px 10px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.referral-figma-stat-icon {
    width: 36px;
    height: 36px;
    color: #5E604E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-figma-stat-icon svg {
    width: 28px;
    height: 28px;
}

.referral-figma-stat-value {
    margin-top: 4px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.referral-figma-stat-label {
    margin-top: 6px;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

@media (hover: hover) and (pointer: fine) {
    .home-action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
    }

    .home-action-btn--filled:hover {
        background: #676a58;
        border-color: #676a58;
    }

    .home-action-btn--ghost:hover {
        background: rgba(94, 96, 78, 0.28);
        border-color: rgba(94, 96, 78, 0.66);
    }

    .home-shortcut-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
    }

    .home-shortcut-card:hover .home-shortcut-card__label {
        color: rgba(0, 0, 0, 0.64);
    }

    .profile-figma-device-btn:hover {
        transform: translateY(-1px);
        background: #676a58;
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
    }

    .profile-figma-link-btn:hover {
        background: rgba(94, 96, 78, 0.08);
    }

    .profile-figma-link-btn:hover .profile-figma-link-title {
        color: rgba(0, 0, 0, 0.92);
    }

    .profile-figma-link-btn:hover .profile-figma-link-arrow {
        transform: translateX(2px);
    }

    .profile-figma-logout-btn:hover {
        transform: translateY(-1px);
        background: rgba(94, 96, 78, 0.16);
        border-color: rgba(94, 96, 78, 0.42);
        box-shadow: 0 8px 18px rgba(94, 96, 78, 0.12);
    }

    body.page-home-figma #appContainer[data-view="account"] .profile-figma-logout-wrap {
        margin-bottom: 0;
    }

    .promo-figma-submit:hover {
        transform: translateY(-1px);
        background: #676a58;
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
    }

    .promo-figma-code-row:hover {
        transform: translateY(-1px);
        background: #676a58;
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
    }

    .promo-figma-code-row:hover .promo-figma-code-arrow {
        transform: translateX(2px);
    }

    .device-manager-close:hover {
        background: rgba(94, 96, 78, 0.1);
        box-shadow: 0 8px 16px rgba(94, 96, 78, 0.1);
    }

    .device-figma-row-action:hover {
        transform: translateY(-1px);
        background: #676a58;
        box-shadow: 0 8px 16px rgba(94, 96, 78, 0.12);
    }

    .help-figma-close:hover {
        background: rgba(94, 96, 78, 0.1);
        box-shadow: 0 8px 16px rgba(94, 96, 78, 0.1);
    }

    .help-figma-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
        border-color: #676A58;
    }

    .help-figma-cta:hover {
        transform: translateY(-1px);
        background: #676A58;
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
    }

    .referral-figma-close:hover {
        background: rgba(94, 96, 78, 0.1);
        box-shadow: 0 8px 16px rgba(94, 96, 78, 0.1);
    }

    .referral-figma-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(94, 96, 78, 0.14);
    }

    .referral-figma-action--primary:hover {
        background: #676A58;
    }

    .referral-figma-action--secondary:hover {
        background: #C3BBAA;
    }
}

@media (max-width: 390px) {
    .referral-figma-title,
    .referral-figma-stats-title {
        font-size: 22px;
    }

    .referral-figma-promo {
        gap: 10px;
    }

    .referral-figma-promo-art {
        flex-basis: 84px;
        width: 84px;
        height: 72px;
    }

    .referral-figma-promo-bonus {
        font-size: 22px;
    }

    .referral-figma-promo-text,
    .referral-figma-action {
        font-size: 15px;
    }

    .referral-figma-stats-grid {
        gap: 8px;
    }

    .referral-figma-stat-label {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .home-ad-panel__title,
    .home-status-panel__value {
        font-size: 22px;
    }

    .home-status-panel__meta,
    .home-action-btn,
    .home-shortcut-card__label {
        font-size: 15px;
    }

    .home-shortcut-grid {
        gap: 8px;
        margin-bottom: 12px;
    }

    .home-action-stack {
        margin-bottom: 12px;
    }

    .profile-figma-id-label,
    .profile-figma-id-value,
    .profile-figma-server-text,
    .profile-figma-device-btn,
    .profile-figma-link-card--secondary .profile-figma-link-title {
        font-size: 15px;
    }

    .profile-figma-link-title,
    .profile-figma-device-count,
    .profile-figma-section-title {
        font-size: 18px;
    }

    .promo-figma-title {
        font-size: 22px;
    }
}

.view--single {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 4.5vw, 20px); /* ближе карточки, как «раньше» */
    max-width: 100%;
    overflow: visible;
}


.home-hero {
    position: relative;
    border-radius: 32px;
    padding: clamp(26px, 7vw, 36px);
    background: linear-gradient(155deg, rgba(30, 12, 8, 0.95) 0%, rgba(24, 10, 28, 0.9) 50%, rgba(10, 4, 18, 0.9) 100%);
    border: 1px solid rgba(255, 170, 110, 0.32);
    box-shadow:
        0 46px 110px rgba(4, 0, 0, 0.6),
        0 0 52px rgba(255, 96, 10, 0.24);
    backdrop-filter: blur(38px) saturate(140%);
    overflow: visible;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255, 188, 120, 0.5), rgba(255, 110, 20, 0.22) 50%, rgba(170, 70, 255, 0.2) 100%);
    mix-blend-mode: screen;
    opacity: 0.5;
    filter: blur(22px);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 12% 14%;
    border-radius: calc(var(--radius-lg) * 1.6);
    background: radial-gradient(circle at 28% 24%, rgba(255, 220, 180, 0.2), rgba(255, 90, 10, 0.1) 58%, transparent 82%);
    opacity: 0.58;
    pointer-events: none;
}

.brand-header,
.home-status,
.home-hero .status-line,
.home-hero .subline {
    position: relative;
    z-index: 1;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 5vw, 24px);
    margin-bottom: clamp(18px, 5vw, 26px);
    overflow: visible;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: clamp(12px, 4vw, 18px);
}

.brand-logo-img {
    position: relative;
    width: clamp(48px, 10vw, 60px);
    height: clamp(48px, 10vw, 60px);
    border-radius: 18px;
    background: center/cover no-repeat url("/miniapp/static/img/logo.svg"), radial-gradient(circle at 30% 30%, #ffe9cb 0%, #ffb568 42%, #ff6a00 100%);
    box-shadow: 0 16px 32px rgba(255, 120, 0, 0.38);
    overflow: hidden;
}

.brand-logo-img::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), rgba(255, 110, 0, 0.18) 55%, transparent 85%);
    mix-blend-mode: screen;
}

.brand-logo-img::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.18) 60%, rgba(255, 255, 255, 0) 90%, rgba(255, 255, 255, 0.18));
    filter: blur(10px);
    animation: rotateGlow 12s linear infinite;
}

.brand-name {
    font-size: clamp(20px, 5.8vw, 24px);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff5e8;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

.info-fab-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-fab-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(35, 20, 11, 0.92);
    border: 1px solid rgba(255, 165, 60, 0.32);
    color: #fff5e6;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    z-index: 25;
}

.info-fab {
    /* Иконка информации не двигается; центр выравнивается через align-items в .brand-header */
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 180, 110, 0.32);
    background: rgba(22, 10, 6, 0.68);
    display: grid;
    place-items: center;
    color: #fff3e0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease;
    overflow: visible;
    z-index: 2;
}

.info-fab:hover {
    /* без сдвига; только стиль */
    border-color: rgba(255, 200, 140, 0.55);
    background: rgba(32, 16, 12, 0.82);
    box-shadow: 0 20px 38px rgba(255, 110, 20, 0.32);
}

.home-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(18px, 4.8vw, 20px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff7ec;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #33eeb2;
    box-shadow: 0 0 16px rgba(51, 238, 178, 0.75), 0 0 32px rgba(51, 238, 178, 0.45);
}

.dot--idle { background: #ff4d4f; box-shadow: 0 0 12px rgba(255,77,79,.6), 0 0 20px rgba(255,77,79,.3); }

.subline {
    font-size: clamp(13px, 4.2vw, 15px);
    color: rgba(255, 236, 222, 0.9);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.home-cta-group {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 4.5vw, 22px);
}

.home-cta-group .btn {
    width: 100%;
}

.btn {
    --btn-gap: 10px;
    --badge-margin: clamp(6px, 2.2vw, 10px);
    --badge-scale: 1;
    --badge-shift: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap);
    height: clamp(58px, 13vw, 66px);
    border-radius: 18px;
    padding: 0 clamp(22px, 5vw, 28px);
    border: 1px solid rgba(255, 175, 115, 0.32);
    font-size: clamp(15px, 4vw, 17px);
    font-weight: 700;
    color: #fff5ec;
    background: rgba(18, 8, 6, 0.82);
    box-shadow: 0 26px 64px rgba(4, 0, 0, 0.42);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    will-change: transform, box-shadow;
}

.btn-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.glass-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%);
    mix-blend-mode: screen;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.glass-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 200, 150, 0.12);
    opacity: 0.7;
    pointer-events: none;
}

.btn-primary {
    /* Благородный оранжевый: янтарь → мандарин → кармель */
    background: linear-gradient(135deg, #ff9738 0%, #ff7a2e 48%, #ff5c24 100%) !important;
    border-color: rgba(255, 180, 110, 0.55) !important;
    box-shadow: 0 28px 62px rgba(255, 110, 40, 0.36) !important;
    color: #fff7ec !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 34px 72px rgba(255, 120, 50, 0.42) !important;
}

.btn-secondary {
    background: linear-gradient(125deg, rgba(255, 170, 90, 0.2) 0%, rgba(44, 18, 12, 0.78) 60%, rgba(24, 10, 12, 0.86) 100%);
    border-color: rgba(255, 170, 100, 0.36);
    color: rgba(255, 242, 230, 0.94);
}

.btn-secondary:hover {
    background: linear-gradient(125deg, rgba(255, 190, 120, 0.24) 0%, rgba(60, 24, 18, 0.84) 100%);
    border-color: rgba(255, 200, 130, 0.48);
    box-shadow: 0 30px 62px rgba(255, 120, 40, 0.3);
}

.home-setup-cta {
    box-shadow: 0 24px 52px rgba(255, 120, 40, 0.22);
}

.home-setup-cta:hover {
    background: linear-gradient(125deg, rgba(255, 170, 100, 0.22) 0%, rgba(48, 20, 13, 0.82) 100%);
    border-color: rgba(255, 195, 125, 0.46);
    box-shadow: 0 20px 44px rgba(255, 142, 70, 0.26);
}

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

.btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn .btn-badge {
    margin-left: auto;
    margin-right: var(--badge-margin);
    padding: 8px 12px;
    font-size: clamp(11px, 3vw, 12px);
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255, 170, 90, 0.2);
    border: 1px solid rgba(255, 198, 130, 0.44);
    color: #fff4e4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform-origin: center right;
    transform: translateX(var(--badge-shift)) scale(var(--badge-scale));
}

@supports selector(:has(*)) {
  .btn:has(.btn-badge){ padding-right: clamp(10px, 3vw, 14px); }
}

.bottom-actions {
    margin-top: clamp(10px, 3vw, 18px);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 4vw, 20px);
    align-items: start;
}

.action-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.action-circle-btn {
    position: relative;
    width: clamp(86px, 20vw, 104px);
    height: clamp(86px, 20vw, 104px);
    border-radius: 50%;
    border: 1px solid rgba(255, 170, 110, 0.38);
    background: rgba(26, 12, 9, 0.82);
    display: grid;
    place-items: center;
    color: #fff6ec;
    box-shadow: 0 26px 52px rgba(4, 0, 0, 0.46);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.action-circle-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.action-circle-btn::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 190, 130, 0.2);
    opacity: 0.6;
    pointer-events: none;
}

.action-circle-icon,
.action-circle-bonus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.action-circle-icon svg {
    width: clamp(28px, 6vw, 34px);
    height: clamp(28px, 6vw, 34px);
}

.action-circle-bonus {
    opacity: 0;
    transform: scale(0.84);
    min-width: 100%;
    padding: 0 4px;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff6eb;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    text-align: center;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.action-circle-bonus-line {
    display: block;
    letter-spacing: inherit;
}

.action-circle-bonus-line:first-child {
    font-size: clamp(18px, 4.8vw, 20px);
    letter-spacing: 0.12em;
}

.action-circle-bonus-line:last-child {
    font-size: clamp(11px, 2.6vw, 12px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .action-circle--ref:hover .action-circle-icon,
    .action-circle--ref:focus-within .action-circle-icon {
        opacity: 0;
        transform: scale(0.78);
    }

    .action-circle--ref:hover .action-circle-bonus,
    .action-circle--ref:focus-within .action-circle-bonus {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fallback для устройств без hover — показываем бонус при активном состоянии */
.action-circle--ref:active .action-circle-icon {
    opacity: 0;
    transform: scale(0.78);
}

.action-circle--ref:active .action-circle-bonus {
    opacity: 1;
    transform: scale(1);
}

.action-circle--ref:focus-visible .action-circle-icon {
    opacity: 0;
    transform: scale(0.78);
}

.action-circle--ref:focus-visible .action-circle-bonus {
    opacity: 1;
    transform: scale(1);
}

.action-circle:hover .action-circle-btn {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(255, 205, 140, 0.68);
    background: rgba(42, 18, 12, 0.88);
    box-shadow: 0 30px 68px rgba(255, 110, 20, 0.35);
}

.action-label {
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 700;
    color: #fff6eb;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
    .bottom-actions {
        gap: clamp(12px, 4vw, 16px);
    }
    .action-circle-btn {
        width: clamp(76px, 22vw, 96px);
        height: clamp(76px, 22vw, 96px);
    }
}

@media (max-height: 720px) {
    .btn {
        height: 54px;
    }
    .action-circle-btn {
        width: 74px;
        height: 74px;
    }
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .home-hero {
        backdrop-filter: none;
        background: linear-gradient(150deg, rgba(30, 12, 8, 0.95) 0%, rgba(26, 10, 22, 0.92) 48%, rgba(12, 6, 16, 0.94) 100%);
    }

    /* REMOVED .home-hero::before override */

    .glass-button::before,
    .glass-button::after,
    .action-circle-btn::before,
    .action-circle-btn::after {
        opacity: 0.4;
    }
}

@supports not (mix-blend-mode: overlay) {
    .app-background::after {
        mix-blend-mode: normal;
        opacity: 0.4;
    }
}


/* АДАПТИВ */
@media (max-height: 720px) {
    .btn {
        height: 52px;
        font-size: 15px;
    }
    .brand-logo-img {
        width: 40px;
        height: 40px;
    }
    .action-circle-btn {
        width: 76px;
        height: 76px;
    }
    .action-label {
        font-size: 12px;
    }
}

@media (max-height: 640px) {
    .btn {
        height: 50px;
        font-size: 14px;
    }
    .home-hero {
        padding: 16px;
    }
    .view.view-home.view--single {
        gap: 14px;
    }
    .action-circle-btn {
        width: 70px;
        height: 70px;
    }
    .action-circle-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 360px) {
    .action-label {
        font-size: 11px;
    }
    .btn .btn-badge {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* ================================
   COMPACT SUBSCRIPTION UI (в стиле конкурента)
   ================================ */

.view--compact {
    overflow: visible;
    min-height: 0;
    width: 100%;
}

.view.view-plans.view--single.view--compact {
    width: 100%;
}

.plans-compact-container {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.6vw, 14px);
    height: 100%;
    overflow: visible;
}


/* Заголовки */
.plans-title {
    font-size: clamp(1.12rem, 4vw, 1.34rem);
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin: 0;
    letter-spacing: -0.01em;
}

.plans-subtitle {
    max-width: none;
    font-size: clamp(0.74rem, 2.6vw, 0.84rem);
    color: rgba(255, 224, 198, 0.68);
    text-align: center;
    margin: 0 auto;
    line-height: 1.15;
}

/* Empty state */
.plans-empty {
    text-align: center;
    padding: clamp(32px, 8vw, 48px);
}

.plans-empty h2 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.plans-empty p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: var(--text-muted);
    line-height: 1.5;
}

/* Селектор устройств */
.device-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 11px;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(45, 40, 29, 0.92) 0%, rgba(27, 24, 18, 0.88) 100%);
    border: 1.4px solid rgba(94, 96, 78, 0.42);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    overflow: visible;
    align-items: center;
    isolation: isolate;
    position: relative;
    z-index: 1;
}

.device-selector-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2px;
}

.device-selector-label {
    font-size: clamp(0.8rem, 2.6vw, 0.88rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.3;
}

.device-selector-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.device-selector-text strong {
    color: #DDD4C1;
    font-weight: 700;
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
}

.device-selector-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.device-selector-icon-inline svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(221, 212, 193, 0.9);
    stroke: currentColor;
    filter: drop-shadow(0 1px 2px rgba(94, 96, 78, 0.3));
}

/* Убираем старый абсолютный icon */
.device-selector-icon {
    display: none;
}

.device-selector-icon svg {
    display: none;
}

/* Строка с цифрой и степперами */
.device-counter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 2px;
}

/* Красивый badge с цифрой - более компактный */
.device-count-badge {
    position: relative;
    min-width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(94, 96, 78, 0.22) 0%, rgba(114, 116, 95, 0.14) 100%);
    border: 1.5px solid rgba(94, 96, 78, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow:
        0 0 12px rgba(94, 96, 78, 0.18),
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.device-count-badge:active {
    transform: scale(0.97);
    background: linear-gradient(145deg, rgba(94, 96, 78, 0.28) 0%, rgba(114, 116, 95, 0.18) 100%);
    border-color: rgba(94, 96, 78, 0.58);
    box-shadow:
        0 0 16px rgba(94, 96, 78, 0.24),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.device-count-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #DDD4C1;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(94, 96, 78, 0.24);
}

.device-slider-wrapper {
    width: 100%;
    max-width: 100%;
}

.device-label {
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 600;
    color: var(--text);
    text-align: center;
    display: block;
    width: 100%;
}

.device-slider {
    position: relative;
    width: min(280px, 100%);
    margin-inline: auto;
    --device-dot-size: clamp(24px, 6vw, 28px);
    --device-dot-radius: calc(var(--device-dot-size) / 2);
}

.device-track {
    position: relative;
    width: calc(100% - var(--device-dot-size));
    margin: 0 calc(var(--device-dot-radius));
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.14));
    border-radius: 2px;
    overflow: hidden;
}
/* Hover-анимация info только на десктопе */
.touch-device .info-fab-tooltip { display: none !important; }

@media (hover: hover) and (pointer: fine) {
  html:not(.touch-device) .info-fab:hover { transform: scale(1.04); }
  html:not(.touch-device) .info-fab-wrapper:hover .info-fab-tooltip,
  html:not(.touch-device) .info-fab-wrapper:focus-within .info-fab-tooltip {
      opacity: 1;
      transform: translate(-50%, 0);
  }
}

.device-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    /* width задается inline в HTML через style="width: ..." */
    background: linear-gradient(90deg, #5E604E 0%, #72745f 50%, #908c76 100%);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 0;
    padding: 0 calc(var(--device-dot-radius));
    width: 100%;
    box-sizing: border-box;
}

.device-dot {
    width: var(--device-dot-size);
    height: var(--device-dot-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(94, 96, 78, 0.35);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    contain: layout style paint;
}

.device-dot:hover {
    background: rgba(94, 96, 78, 0.25);
    border-color: rgba(94, 96, 78, 0.6);
    /* Убираем scale чтобы не было reflow */
}

.device-dot.is-active {
    background: #5E604E;
    border-color: #5E604E;
    box-shadow: 0 0 16px rgba(94, 96, 78, 0.5);
}

.device-dot.is-on {
    background: rgba(114, 116, 95, 0.45);
    border-color: rgba(114, 116, 95, 0.85);
    box-shadow: 0 0 12px rgba(94, 96, 78, 0.45);
}

/* Красивые кнопки степпера */
.device-stepper-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.4px solid rgba(94, 96, 78, 0.4);
    background: rgba(94, 96, 78, 0.13);
    color: #DDD4C1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.device-stepper-btn svg {
    width: 15px;
    height: 15px;
}

.device-stepper-btn:disabled {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

.device-stepper-btn:active {
    background: rgba(94, 96, 78, 0.22);
    transform: scale(0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* Интерактивный слайдер */
.device-slider-interactive {
    position: relative;
    width: 100%;
    padding: 8px 16px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.device-slider-interactive:active {
    cursor: grabbing;
}

.device-track {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: visible;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.device-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #5E604E 0%, #72745f 50%, #908c76 100%);
    border-radius: 3px;
    transition: width 0.15s ease;
    pointer-events: none;
    box-shadow: 0 0 7px rgba(94, 96, 78, 0.24);
}

/* Красивый ползунок (thumb) */
.device-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: left 0.15s ease;
    z-index: 2;
}

.device-thumb-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #72745f 0%, #5E604E 100%);
    border-radius: 50%;
    border: 2.4px solid rgba(221, 212, 193, 0.58);
    box-shadow:
        0 0 0 4px rgba(94, 96, 78, 0.18),
        0 3px 9px rgba(0, 0, 0, 0.26),
        0 0 16px rgba(94, 96, 78, 0.34),
        inset 0 1px 2px rgba(255, 255, 255, 0.26);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-slider-interactive:active .device-thumb-inner {
    transform: scale(1.3);
    border-color: rgba(221, 212, 193, 0.72);
    box-shadow:
        0 0 0 8px rgba(94, 96, 78, 0.3),
        0 4px 14px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(94, 96, 78, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.device-slider-interactive.is-dragging .device-thumb,
.device-slider-interactive.is-dragging .device-fill {
    transition: none !important;
}

/* Убираем маркеры - они не нужны */
.device-markers {
    display: none;
}

/* Bottom Sheet пикер устройств */
.device-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.device-picker-sheet {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(180deg, #1c0f1d 0%, #10070f 100%);
    border-radius: 20px 20px 0 0;
    padding: 18px 16px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.device-picker-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 12px;
}

.device-picker-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.device-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.device-picker-btn {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1.4px solid rgba(94, 96, 78, 0.32);
    background: rgba(94, 96, 78, 0.1);
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-picker-btn.active {
    background: #5E604E;
    color: #fff;
    border-color: #5E604E;
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(94, 96, 78, 0.45);
}

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

/* Сетка тарифов 2x2 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 2.5vw, 14px);
    width: 100%;
    margin-top: clamp(8px, 2vw, 12px);
    overflow: visible;
}

/* Карточка тарифа */
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;  /* Уменьшен gap */
    padding: clamp(12px, 3vw, 16px);  /* Уменьшен padding */
    min-height: clamp(100px, 24vw, 120px);  /* Уменьшена высота */
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(30, 12, 8, 0.75) 0%, rgba(24, 10, 28, 0.7) 50%, rgba(10, 4, 18, 0.7) 100%);
    border: 2px solid rgba(255, 170, 110, 0.32);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    overflow: visible;
}

/* REMOVED .plan-card::before - no more inner gradient overlays */

.plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 170, 110, 0.55);
    box-shadow:
        0 12px 32px rgba(255, 96, 10, 0.25),
        0 6px 18px rgba(255, 96, 10, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.12);
}

.plan-card.is-selected {
    background: rgba(255, 120, 40, 0.15);
    border-color: rgba(255, 140, 60, 0.7);
    transform: scale(1.02);
    box-shadow:
        0 12px 32px rgba(255, 100, 20, 0.28),
        0 6px 18px rgba(255, 100, 20, 0.20),
        0 0 32px rgba(255, 120, 40, 0.22);
}

/* Бейдж "ПОПУЛЯРНЫЙ" */
.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 5;
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6500 0%, #ff8a1d 100%);
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(255, 100, 20, 0.35);
}
@supports selector(:has(*)) {
  .plan-card:has(.plan-badge) { padding-top: clamp(28px, 6vw, 32px); }
}
/* Fallback: если :has не поддерживается */
.plan-card.is-popular { padding-top: clamp(24px, 5vw, 28px); }

.plan-card-duration {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    min-height: 1.3em;  /* Резервируем место */
}

.plan-card-price {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ff8a1d 0%, #ff6500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    min-height: 1.3em;  /* Резервируем место */
}

.plan-card-monthly {
    font-size: clamp(0.72rem, 2.3vw, 0.8rem);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    min-height: 1.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.plan-card-monthly svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    margin: 0;
    transform: translateY(0);
    stroke: var(--text-muted);
    opacity: 0.9;
}

.plan-card-monthly svg circle[fill="currentColor"] {
    fill: var(--text-muted);
}

.plan-card-monthly svg rect,
.plan-card-monthly svg line {
    stroke: var(--text-muted);
}

/* Кнопка оплаты */
.btn-pay {
    --pay-btn-max: 100%;
    width: 100%;
    margin-top: clamp(10px, 2.8vw, 14px);
    max-width: var(--pay-btn-max);
    align-self: center;
    min-height: clamp(54px, 11.5vw, 64px);
    border-radius: clamp(16px, 4.2vw, 20px);
    font-size: clamp(1rem, 3.3vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 0 clamp(18px, 4vw, 24px);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.plans-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 380px) {
    .btn-pay {
        --pay-btn-max: 100%;
        font-size: 0.98rem;
    }
}


/* Payment Page - Rebuilt from scratch */
.pay-page {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 3.2vw, 18px);
    width: 100%;
}

.pay-title {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin: 0 0 clamp(4px, 1vw, 8px) 0;
}

.pay-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: clamp(14px, 3.5vw, 18px);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(30, 12, 8, 0.75) 0%, rgba(24, 10, 28, 0.7) 50%, rgba(10, 4, 18, 0.7) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.35);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.pay-summary.is-loading {
    position: relative;
    opacity: 0.9;
}

.pay-upgrade-row {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 14px);
    padding: 6px 0;
}

.pay-upgrade-icon {
    flex-shrink: 0;
    width: clamp(34px, 7vw, 40px);
    height: clamp(34px, 7vw, 40px);
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(255, 138, 29, 0.95), rgba(255, 101, 0, 0.95));
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(255, 138, 29, 0.32);
    color: #120705;
}

.pay-upgrade-icon svg {
    width: clamp(20px, 5.5vw, 24px);
    height: clamp(20px, 5.5vw, 24px);
}

.pay-upgrade-text {
    font-size: clamp(1rem, 3.2vw, 1.1rem);
    font-weight: 700;
    color: var(--text);
}

.device-upgrade-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 138, 29, 0.35);
    color: var(--accent);
    background: rgba(255, 138, 29, 0.12);
    font-weight: 600;
    line-height: 1;
}

.device-upgrade-pill-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(6px, 1.8vw, 12px);
    row-gap: 4px;
}

.pay-row-term {
    flex-wrap: nowrap;
    align-items: baseline;
}

.pay-row-term .pay-label {
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: clamp(6px, 1.4vw, 12px);
}

.pay-row-term .pay-value {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(4px, 1.4vw, 6px);
    min-width: 0;
    white-space: nowrap;
    flex: 1 1 auto;
}

.pay-row-term.is-tight .pay-value {
    gap: clamp(2px, 1vw, 4px);
}

.pay-row--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 170, 110, 0.25);
}

.pay-label {
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    color: var(--text-muted);
    flex-shrink: 0;
}

.pay-value {
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 600;
    color: var(--text);
    margin-left: auto;
    text-align: right;
    min-width: 0;
    word-break: break-word;
}

.pay-term {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 1.2vw, 6px);
    white-space: nowrap;
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-end;
    font-size: clamp(0.9rem, 3vw, 1rem); /* совпадает с pay-value */
}

.pay-row-term.is-tight .pay-term {
    gap: clamp(2px, 0.8vw, 4px);
}

.pay-term--loading {
    justify-content: flex-start;
    color: var(--text-muted);
    gap: 10px;
}

.pay-term-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: rgba(255, 255, 255, 0.75);
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}

.pay-term-math {
    font-size: clamp(0.72rem, 2.1vw, 0.9rem);
    font-weight: 500;
    color: var(--text-muted);
}

.pay-term-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    opacity: 0.85;
}

.pay-term-arrow svg {
    width: clamp(10px, 2.4vw, 16px);
    height: clamp(8px, 2.2vw, 10px);
    display: block;
}

.pay-term-result {
    font-size: inherit;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.pay-loading-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    color: var(--text-muted);
    padding-top: 6px;
}

.pay-price {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ff8a1d 0%, #ff6500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: auto;
    text-align: right;
}

.pay-benefit {
    margin-top: 8px;
    padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2.5vw, 12px);
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.15);
    font-size: clamp(0.75rem, 2.3vw, 0.82rem);
    font-weight: 500;
    color: rgba(139, 195, 74, 0.85);
    text-align: center;
    line-height: 1.3;
}

.pay-back {
    align-self: flex-start;
    margin-top: -6px;
    min-height: 32px;
    padding: clamp(4px, 1.2vw, 6px) clamp(10px, 2.6vw, 12px);
    font-size: clamp(0.72rem, 2.3vw, 0.8rem);
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.pay-back:hover {
    opacity: 0.8;
    color: var(--accent);
}

.pay-back:active {
    opacity: 1;
}

.pay-methods {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 12px);
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: clamp(14px, 3.5vw, 18px);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(30, 12, 8, 0.75) 0%, rgba(24, 10, 28, 0.7) 50%, rgba(10, 4, 18, 0.7) 100%);
    border: 2px solid rgba(255, 170, 110, 0.32);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: left;
    position: relative;
}

.pay-method--rated {
    padding-right: clamp(86px, 22vw, 120px);
}

.pay-method.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

.pay-method:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 170, 110, 0.55);
    box-shadow:
        0 12px 32px rgba(255, 96, 10, 0.25),
        0 6px 18px rgba(255, 96, 10, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.12);
}

.pay-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.pay-method-icon svg {
    width: 100%;
    height: 100%;
}

.pay-method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pay-method-name {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    font-weight: 700;
    color: var(--text);
}

.pay-method-desc {
    font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    color: var(--text-muted);
}

.pay-method-rate {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 170, 110, 0.35);
    background: rgba(18, 8, 14, 0.6);
    font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
    font-variation-settings: "wght" 400;
}

.pay-method-rate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95em;
    height: 0.95em;
    color: currentColor;
    line-height: 1;
}

.pay-method-rate-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

/* Responsive для очень маленьких экранов */
@media (max-width: 360px) {
    .plans-grid {
        gap: 8px;
    }

    .plan-card {
        min-height: 100px;
        padding: 12px;
    }

    .device-selector {
        padding: 9px 11px 10px;
        gap: 5px;
    }

    .device-selector-label {
        font-size: 0.78rem;
    }

    .device-selector-icon-inline svg {
        width: 16px;
        height: 16px;
    }

    .payment-method-icon {
        width: 32px;
        height: 32px;
    }
}

.plans-compact-container--tariffs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-period-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(54, 24, 12, 0.9) 0%, rgba(30, 12, 16, 0.86) 100%);
    border: 1px solid rgba(255, 184, 120, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 214, 0.04),
        0 14px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
    overflow: hidden;
}

.pricing-period-tabs::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 155, 78, 0.18) 0%, transparent 34%),
        radial-gradient(circle at 80% 78%, rgba(255, 132, 60, 0.08) 0%, transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.pricing-period-tab {
    position: relative;
    display: grid;
    grid-template-rows: 1fr 20px;
    justify-items: center;
    align-content: center;
    min-width: 0;
    min-height: 72px;
    padding: 11px 6px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 228, 204, 0.56);
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.pricing-period-tab:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 1px;
    height: 36px;
    transform: translateY(-50%);
    background: rgba(255, 196, 146, 0.1);
}

.pricing-period-tab.is-active {
    color: #fff8ef;
    background: linear-gradient(135deg, rgba(255, 142, 48, 0.98) 0%, rgba(255, 92, 24, 0.92) 100%);
    border-color: rgba(255, 218, 188, 0.28);
    box-shadow:
        0 12px 24px rgba(255, 120, 40, 0.24),
        inset 0 1px 0 rgba(255, 240, 224, 0.22);
}

.pricing-period-tab--single .pricing-period-title {
    grid-row: 1 / span 2;
    align-self: center;
}

.pricing-period-tab--single .pricing-period-discount {
    display: none;
}

.pricing-period-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.pricing-period-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 186, 128, 0.14);
    background: rgba(255, 146, 62, 0.12);
    color: rgba(255, 215, 186, 0.9);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.pricing-period-discount.is-empty {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.pricing-period-tab.is-active .pricing-period-discount {
    border-color: rgba(255, 243, 229, 0.22);
    background: rgba(255, 248, 241, 0.16);
    color: #fff8f1;
}

.pricing-period-note {
    display: none;
}

.pricing-period-badge {
    display: none;
}

.pricing-tariff-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.pricing-tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 118px;
    padding: 12px 12px 10px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 180, 110, 0.16);
    background: linear-gradient(145deg, rgba(42, 18, 11, 0.96) 0%, rgba(22, 10, 14, 0.93) 100%);
    color: var(--color-text-primary);
    text-align: left;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: box-shadow, border-color;
    transition:
        border-color 260ms ease,
        box-shadow 280ms ease,
        background 260ms ease;
}

.pricing-tariff-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 52% 30%, rgba(255, 144, 62, 0.26) 0%, transparent 46%),
        radial-gradient(circle at 86% 18%, rgba(255, 122, 40, 0.15) 0%, transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
}

.pricing-tariff-card::after {
    display: none;
}

.pricing-tariff-card.is-selected {
    border-color: rgba(255, 170, 90, 0.72);
    background: linear-gradient(145deg, rgba(60, 27, 14, 0.98) 0%, rgba(28, 12, 16, 0.95) 100%);
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 170, 90, 0.24),
        inset 0 1px 0 rgba(255, 232, 210, 0.07);
}

.pricing-tariff-card.is-selected::before {
    opacity: 0.52;
}

.pricing-tariff-card--featured {
    border-color: rgba(255, 150, 68, 0.34);
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 118, 34, 0.08);
}

.pricing-tariff-hit {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 24px;
    padding: 0 10px;
    border-radius: 0 18px 0 14px;
    background: linear-gradient(135deg, #ff8a2f 0%, #ff6b1e 100%);
    border-left: 1px solid rgba(255, 235, 214, 0.14);
    border-bottom: 1px solid rgba(255, 235, 214, 0.12);
    color: #fff8f1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    box-shadow: 0 8px 14px rgba(255, 101, 24, 0.14);
    pointer-events: none;
}

.pricing-tariff-card--management {
    min-height: 132px;
}

.pricing-tariff-badge,
.pricing-tariff-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pricing-tariff-badge {
    background: linear-gradient(135deg, rgba(255, 132, 40, 0.92) 0%, rgba(255, 90, 22, 0.92) 100%);
    color: #fff7ef;
}

.pricing-tariff-status {
    right: auto;
    left: 10px;
    background: rgba(51, 238, 178, 0.16);
    border: 1px solid rgba(51, 238, 178, 0.24);
    color: #9df8d8;
}

.pricing-tariff-name {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 233, 214, 0.62);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-tariff-card--featured .pricing-tariff-name {
    padding-right: 56px;
}

@media (hover: hover) and (pointer: fine) {
    .pricing-tariff-card--featured:not(.pricing-tariff-card--management) .pricing-tariff-hit {
        min-width: 52px;
        height: 22px;
        padding: 0 8px;
        border-radius: 0 16px 0 13px;
        font-size: 8px;
    }

    .pricing-tariff-card--featured:not(.pricing-tariff-card--management) .pricing-tariff-name {
        padding-right: 50px;
    }
}

.pricing-tariff-price {
    margin-top: 4px;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: var(--color-accent);
    text-shadow: 0 6px 14px rgba(255, 120, 40, 0.18);
}

.pricing-tariff-price--static {
    font-size: 18px;
}

.pricing-tariff-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.pricing-tariff-device {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 239, 222, 0.9);
    line-height: 1;
}

.pricing-tariff-device > span:last-child {
    display: inline-flex;
    align-items: center;
    align-self: center;
    line-height: 1;
    min-height: 16px;
    font-variant-numeric: tabular-nums;
}

.pricing-tariff-device-icon {
    display: inline-grid;
    place-items: center;
    align-self: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    line-height: 0;
    color: rgba(255, 232, 212, 0.78);
}

.pricing-tariff-device-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pricing-tariff-price-note,
.pricing-tariff-features,
.pricing-tariff-feature,
.pricing-tariff-summary {
    display: none;
}

.pricing-selection-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 13px 13px 14px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(54, 22, 11, 0.92) 0%, rgba(26, 10, 16, 0.92) 100%);
    border: 1px solid rgba(255, 168, 98, 0.2);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

@media (hover: hover) and (pointer: fine) {
    .pricing-period-tab:hover:not(.is-active) {
        color: rgba(255, 239, 224, 0.82);
        background: rgba(255, 148, 58, 0.06);
        border-color: rgba(255, 178, 112, 0.14);
    }

    .pricing-tariff-card:hover {
        background: linear-gradient(145deg, rgba(50, 22, 13, 0.98) 0%, rgba(24, 10, 14, 0.95) 100%);
        border-color: rgba(255, 178, 110, 0.32);
        box-shadow:
            0 22px 36px rgba(0, 0, 0, 0.24),
            0 0 0 1px rgba(255, 162, 92, 0.16);
    }

    .pricing-tariff-card:hover::before,
    .pricing-tariff-card:focus-visible::before {
        opacity: 0.82;
    }

    .pricing-tariff-card.is-selected:hover {
        background: linear-gradient(145deg, rgba(60, 27, 14, 0.98) 0%, rgba(28, 12, 16, 0.95) 100%);
        border-color: rgba(255, 170, 90, 0.72);
        box-shadow:
            0 18px 30px rgba(0, 0, 0, 0.22),
            0 0 0 1px rgba(255, 170, 90, 0.24),
            0 0 28px rgba(255, 124, 46, 0.08),
            inset 0 1px 0 rgba(255, 232, 210, 0.07);
    }

    .pricing-tariff-card:hover .pricing-tariff-price {
        text-shadow: 0 10px 22px rgba(255, 120, 40, 0.22);
    }

    .pricing-tariff-card:hover .pricing-tariff-device {
        color: rgba(255, 245, 234, 0.96);
    }

    .pricing-selection-button.btn-primary:hover {
        transform: none !important;
        box-shadow: 0 22px 34px rgba(255, 108, 34, 0.24) !important;
        filter: brightness(1.03);
    }
}

.pricing-tariff-card:focus-visible,
.pricing-period-tab:focus-visible {
    outline: none;
}

.pricing-tariff-card:active,
.pricing-period-tab:active,
.pricing-selection-button:active {
    transform: none !important;
    filter: none !important;
}

.pricing-selection-button.btn-primary:active {
    box-shadow: 0 18px 30px rgba(255, 108, 34, 0.22) !important;
    filter: none;
}

.pricing-selection-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "label feature price"
        "main main price";
    align-items: flex-start;
    row-gap: 3px;
    column-gap: 10px;
}

.pricing-selection-copy {
    grid-area: main;
}

.pricing-selection-copy,
.pricing-selection-price {
    min-width: 0;
}

.pricing-selection-label {
    grid-area: label;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 224, 196, 0.58);
}

.pricing-selection-name {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #fff8f1;
    line-height: 1.2;
}

.pricing-selection-feature {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(255, 226, 198, 0.72);
}

.pricing-selection-feature--inline {
    grid-area: feature;
    margin-top: 0;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
    min-width: 0;
    align-self: start;
}

.pricing-selection-panel--purchase .pricing-selection-feature--inline {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: start;
    gap: 3px;
    flex-wrap: nowrap;
}

.pricing-selection-panel--purchase-compact-name .pricing-selection-name {
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
}

.pricing-selection-panel--purchase-wide-price .pricing-selection-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label price"
        "main price"
        "feature price";
    row-gap: 4px;
    column-gap: 10px;
}

.pricing-selection-panel--purchase-wide-price .pricing-selection-feature--inline {
    justify-self: start;
    align-self: end;
    text-align: left;
    margin-top: 0;
}

.pricing-selection-panel--purchase-wide-price .pricing-selection-price {
    align-self: stretch;
    justify-content: space-between;
    padding-top: 1px;
}

@media (hover: hover) and (pointer: fine) {
    .pricing-selection-panel--purchase .pricing-selection-feature--inline {
        gap: 2px;
        font-size: 10px;
    }

    .pricing-selection-panel--purchase .pricing-selection-help {
        width: 12px;
        height: 12px;
        font-size: 8px;
    }
}

.pricing-selection-feature-copy {
    display: inline;
}

.pricing-selection-help {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 190, 142, 0.44);
    border-radius: 999px;
    background: rgba(255, 158, 86, 0.1);
    color: rgba(255, 226, 198, 0.92);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transform: translateY(-0.5px);
}

.pricing-selection-help:hover {
    background: rgba(255, 158, 86, 0.16);
    border-color: rgba(255, 190, 142, 0.56);
}

.pricing-selection-price {
    grid-area: price;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: start;
    text-align: right;
}

.pricing-selection-summary > .pricing-selection-copy .pricing-selection-name {
    margin-top: 0;
}

.subscription-manage-action-panel .pricing-selection-summary {
    grid-template-areas:
        "label label feature"
        "main main price";
}

.subscription-manage-action-panel .pricing-selection-feature--inline {
    justify-self: end;
}

.subscription-manage-action-panel .pricing-selection-summary--unlimited-device {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label price"
        "main price"
        "feature price";
    row-gap: 4px;
    column-gap: 12px;
}

.subscription-manage-action-panel .pricing-selection-summary--unlimited-device .pricing-selection-copy {
    padding-right: 8px;
}

.subscription-manage-action-panel .pricing-selection-summary--unlimited-device .pricing-selection-feature--inline {
    grid-area: feature;
    justify-self: start;
    align-self: start;
    text-align: left;
}

.subscription-manage-action-panel .pricing-selection-summary--unlimited-device .pricing-selection-price {
    align-self: start;
    justify-self: end;
    padding-top: 1px;
}

.subscription-manage-action-panel .pricing-selection-summary--unlimited-device .subscription-manage-selection-total {
    font-size: 16px;
    line-height: 1.12;
    white-space: nowrap;
    text-align: right;
}

.pricing-selection-total {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
}

.pricing-selection-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 226, 198, 0.68);
}

.pricing-selection-sub.is-empty {
    visibility: hidden;
    opacity: 0;
}

.subscription-manage-action-panel .pricing-selection-summary--scheduled {
    grid-template-areas:
        "label label feature"
        "main main price"
        "meta meta meta";
}

.subscription-manage-selection-total--date {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.subscription-manage-selection-meta--scheduled {
    grid-area: meta;
    margin-top: 2px;
    white-space: nowrap;
}

.pricing-selection-button {
    width: 100%;
    margin-top: 2px;
    box-shadow: 0 18px 30px rgba(255, 108, 34, 0.22) !important;
}

.plans-compact-container--renewal,
.subscription-manage-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-manage-container {
    padding: 2px 6px 0;
}

.plans-compact-container--renewal .plans-title,
.subscription-manage-container .plans-title {
    font-size: clamp(1.06rem, 3.6vw, 1.24rem);
}

.plans-compact-container--renewal .plans-subtitle,
.subscription-manage-container .plans-subtitle {
    font-size: clamp(0.7rem, 2.3vw, 0.78rem);
    line-height: 1.1;
}

.subscription-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(66, 30, 14, 0.92) 0%, rgba(34, 12, 18, 0.9) 100%);
    border: 1px solid rgba(255, 175, 108, 0.18);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.subscription-status-card--management {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.subscription-status-card--unlimited .subscription-status-row {
    flex-wrap: nowrap;
    gap: 5px;
}

.subscription-status-card--unlimited .subscription-status-devices {
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.subscription-status-card--unlimited .subscription-status-device-icon {
    width: 13px;
    height: 13px;
}

.subscription-status-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.subscription-status-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex-wrap: wrap;
}

.subscription-status-dot {
    color: rgba(255, 224, 196, 0.56);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    align-self: center;
    flex-shrink: 0;
}

.subscription-status-device-icon {
    width: 14px;
    height: 14px;
    display: inline-grid;
    place-items: center;
    align-self: center;
    line-height: 0;
    color: rgba(255, 224, 196, 0.82);
    flex-shrink: 0;
}

.subscription-status-device-icon svg {
    width: 100%;
    height: 100%;
}

.subscription-status-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff8f1;
    line-height: 1.15;
}

.subscription-status-devices {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 224, 196, 0.66);
    line-height: 1;
    min-width: 0;
}

.subscription-status-devices--icon-right {
    gap: 4px;
}

.subscription-status-devices > span:last-child {
    display: inline-flex;
    align-items: center;
    align-self: center;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.subscription-status-expiry {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 224, 196, 0.68);
}

.subscription-status-expiry span {
    color: #fff8f1;
    font-weight: 700;
}

.subscription-status-action {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid rgba(255, 174, 108, 0.2);
    border-radius: 999px;
    background: rgba(255, 144, 56, 0.1);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.plans-compact-container--renewal .subscription-status-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 15px;
    row-gap: 0;
}

.plans-compact-container--renewal .subscription-status-copy {
    min-width: 0;
    overflow: hidden;
}

.plans-compact-container--renewal .subscription-status-row {
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}

.plans-compact-container--renewal .subscription-status-name {
    flex: 0 0 auto;
    white-space: nowrap;
}

.plans-compact-container--renewal .subscription-status-devices {
    flex: 0 0 auto;
    gap: 4px;
    font-size: 12.5px;
    white-space: nowrap;
}

.plans-compact-container--renewal .subscription-status-action {
    margin-left: 0;
    justify-self: end;
    padding: 8px 13px;
    font-size: 11px;
}

.plans-compact-container--renewal .subscription-status-device-icon {
    width: 14px;
    height: 14px;
}

.plans-compact-container--renewal .subscription-status-devices--icon-right {
    gap: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .plans-compact-container--renewal .pricing-renewal-price-row {
        gap: 5px;
    }

    .plans-compact-container--renewal .pricing-renewal-price {
        font-size: 28px;
    }

    .plans-compact-container--renewal .pricing-renewal-sub {
        font-size: 11px;
        line-height: 1;
    }

    .plans-compact-container--renewal .pricing-renewal-card--wide-price .pricing-renewal-price-row {
        width: 100%;
        flex-wrap: wrap;
        align-items: flex-end;
        row-gap: 2px;
        column-gap: 4px;
    }

    .plans-compact-container--renewal .pricing-renewal-card--wide-price .pricing-renewal-sub {
        width: 100%;
        text-align: right;
        font-size: 11px;
        line-height: 1.05;
    }
}

.subscription-status-usage {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 9px 11px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.subscription-manage-state--top .subscription-status-usage {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
    row-gap: 3px;
    padding: 9px 10px;
}

.subscription-status-usage-value {
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
}

.subscription-status-usage-label {
    font-size: 11px;
    color: rgba(255, 224, 196, 0.56);
}

.subscription-manage-state--top .subscription-status-usage-label {
    width: auto;
    text-align: center;
}

.subscription-status-usage-part,
.subscription-status-usage-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.subscription-manage-state--top .subscription-status-usage-value--split {
    width: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    column-gap: 0;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    margin: 0 auto;
}

.subscription-pending-badge {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 16px;
    background: rgba(255, 146, 60, 0.08);
    border: 1px dashed rgba(255, 178, 112, 0.24);
    color: rgba(255, 232, 212, 0.86);
    font-size: 12px;
    line-height: 1.35;
}

.subscription-pending-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.subscription-pending-content {
    min-width: 0;
}

.subscription-pending-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 224, 196, 0.64);
}

.subscription-pending-text {
    margin-top: 2px;
    color: rgba(255, 236, 220, 0.9);
    word-break: break-word;
}

.subscription-pending-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 205, 166, 0.86);
    flex-shrink: 0;
}

.subscription-pending-icon svg {
    width: 100%;
    height: 100%;
}

.subscription-pending-action {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 182, 120, 0.24);
    border-radius: 10px;
    background: rgba(255, 160, 88, 0.08);
    color: rgba(255, 184, 128, 0.92);
    cursor: pointer;
    padding: 0;
}

.subscription-pending-action svg {
    width: 12px;
    height: 12px;
}

.subscription-pending-action:active {
    transform: none;
    filter: none;
}

.pricing-renewal-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pricing-renewal-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 224, 196, 0.56);
    text-align: center;
}

.pricing-renewal-label--left {
    text-align: left;
}

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

.pricing-renewal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    height: 98px;
    padding: 11px 12px 10px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 180, 110, 0.16);
    background: linear-gradient(145deg, rgba(42, 18, 11, 0.96) 0%, rgba(22, 10, 14, 0.93) 100%);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    text-align: left;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        border-color 240ms ease,
        box-shadow 240ms ease,
        background 240ms ease;
}

.pricing-renewal-card.is-selected {
    border-color: rgba(255, 170, 90, 0.72);
    background: linear-gradient(145deg, rgba(60, 27, 14, 0.98) 0%, rgba(28, 12, 16, 0.95) 100%);
    box-shadow:
        0 14px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 170, 90, 0.24),
        inset 0 1px 0 rgba(255, 232, 210, 0.07);
}

.pricing-renewal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 20%, rgba(255, 136, 44, 0.2) 0%, transparent 28%),
        radial-gradient(circle at 30% 70%, rgba(255, 120, 42, 0.13) 0%, transparent 44%);
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.pricing-renewal-card.is-selected::before {
    opacity: 0.7;
}

.pricing-renewal-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 144, 56, 0.12);
    border: 1px solid rgba(255, 178, 112, 0.14);
    color: rgba(255, 232, 212, 0.86);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pricing-renewal-name {
    max-width: calc(100% - 46px);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff8f1;
    white-space: nowrap;
}

.pricing-renewal-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: nowrap;
    min-height: 30px;
}

.pricing-renewal-price {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: var(--color-accent);
    text-shadow: 0 6px 14px rgba(255, 120, 40, 0.18);
    white-space: nowrap;
}

.pricing-renewal-sub {
    font-size: 11px;
    line-height: 1;
    color: rgba(255, 224, 196, 0.64);
    white-space: nowrap;
}

.pricing-renewal-card--wide-price .pricing-renewal-price-row {
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-end;
    row-gap: 2px;
    column-gap: 4px;
}

.pricing-renewal-card--wide-price .pricing-renewal-sub {
    width: 100%;
    text-align: right;
    font-size: 10px;
    line-height: 1.05;
}

.pricing-renewal-sub.is-empty {
    visibility: hidden;
    opacity: 0;
}

.pricing-selection-panel--renewal {
    margin-top: 0;
    gap: 8px;
    padding: 11px 12px 12px;
}

.pricing-selection-panel--renewal .pricing-selection-summary {
    gap: 10px;
}

.pricing-selection-panel--renewal .pricing-selection-name {
    white-space: nowrap;
}

.view-plans--figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.view-plans--figma .plans-figma-stage {
    width: 100%;
    min-height: var(--paper-stage-min-height);
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    box-sizing: border-box;
}

.view-plans--figma .plans-compact-container {
    height: auto;
    overflow: visible;
}

.view-plans--figma .plans-figma-card {
    width: min(370px, 100%);
    margin: auto;
    padding: 22px 15px 15px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.16);
}

.view-plans--figma .plans-figma-card--purchase,
.view-plans--figma .plans-figma-card--renewal {
    gap: 12px;
}

.view-plans--figma .plans-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.view-plans--figma .plans-subtitle {
    max-width: 320px;
    margin-inline: auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.view-plans--figma .plans-empty {
    width: min(370px, 100%);
    margin: 0 auto;
    padding: 32px 20px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.16);
}

.view-plans--figma .plans-empty h2 {
    color: #000000;
}

.view-plans--figma .plans-empty p {
    color: rgba(0, 0, 0, 0.5);
}

.view-plans--figma .pricing-period-tabs {
    gap: 4px;
    padding: 4px;
    border-radius: 15px;
    background: #DDD4C1;
    border: 2px solid #5E604E;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.view-plans--figma .pricing-period-tabs::before,
.view-plans--figma .pricing-tariff-card::before,
.view-plans--figma .pricing-renewal-card::before {
    display: none;
}

.view-plans--figma .pricing-period-tab {
    position: relative;
    z-index: 0;
    min-height: 58px;
    padding: 10px 4px 8px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    color: #5E604E;
}

.view-plans--figma .pricing-period-tab.is-active {
    background: #5E604E;
    border-color: #5E604E;
    color: #FFFFFF;
    box-shadow: none;
    z-index: 1;
}

.view-plans--figma .pricing-period-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.view-plans--figma .pricing-period-tab--single .pricing-period-title {
    transform: translateY(7px);
}

.view-plans--figma .pricing-period-discount {
    min-width: 44px;
    min-height: 20px;
    padding: 0 7px;
    border: 0;
    background: rgba(94, 96, 78, 0.14);
    color: #5E604E;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-plans--figma .pricing-period-tab.is-active .pricing-period-discount {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.view-plans--figma .pricing-period-tab:not(:first-child)::before {
    display: block;
    left: -2px;
    top: 50%;
    width: 1px;
    height: 28px;
    transform: translateY(-50%);
    background: rgba(94, 96, 78, 0.22);
}

.view-plans--figma .pricing-period-tab.is-active::before,
.view-plans--figma .pricing-period-tab.is-active + .pricing-period-tab::before {
    opacity: 0;
}

.view-plans--figma .pricing-tariff-section,
.view-plans--figma .pricing-renewal-section {
    gap: 10px;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.view-plans--figma .pricing-tariff-grid,
.view-plans--figma .pricing-renewal-grid {
    gap: 10px;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-card {
    min-height: 68px;
    padding: 10px 14px;
}

.view-plans--figma .pricing-tariff-card,
.view-plans--figma .pricing-renewal-card {
    position: relative;
    min-height: 108px;
    height: auto;
    padding: 12px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    box-shadow: none;
    color: #5E604E;
    overflow: visible;
    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 220ms ease,
        box-shadow 240ms ease,
        background 220ms ease;
}

.view-plans--figma .pricing-tariff-card::before,
.view-plans--figma .pricing-renewal-card::before {
    display: none;
    opacity: 0 !important;
    background: none;
}

.view-plans--figma .pricing-tariff-card::after,
.view-plans--figma .pricing-renewal-card::after {
    display: none;
    content: none;
}

.view-plans--figma .pricing-tariff-card.is-selected,
.view-plans--figma .pricing-renewal-card.is-selected {
    background: #DDD4C1;
    border-color: #5E604E;
    transform: none;
    box-shadow: 3px 3px 0 #5E604E;
    filter: none;
    z-index: 1;
}

.view-plans--figma .pricing-tariff-card--featured {
    border-color: #5E604E;
    box-shadow: none;
}

.view-plans--figma .pricing-tariff-hit,
.view-plans--figma .pricing-renewal-badge {
    top: -2px;
    right: -2px;
    min-width: 0;
    height: 28px;
    padding: 0 13px 0 12px;
    border: 0;
    border-radius: 0 15px 0 15px;
    background: #5E604E;
    color: #FFFFFF;
    box-shadow: none;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.view-plans--figma .pricing-tariff-name {
    margin-top: 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.view-plans--figma .pricing-tariff-card--featured .pricing-tariff-name {
    padding-right: 54px;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-card--purchase-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 10px 14px;
    text-align: left;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-row-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-row-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-row-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 94px;
    margin-top: 2px;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-name {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.52);
    letter-spacing: 0.06em;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-card--purchase-row.pricing-tariff-card--featured .pricing-tariff-name {
    padding-right: 0;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-price {
    margin-top: 0;
    font-size: 24px;
    line-height: 1;
    white-space: nowrap;
    text-align: right;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-meta {
    margin-top: 0;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-device {
    font-size: 13px;
    line-height: 1;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-device > span:last-child {
    min-height: 0;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-card--featured .pricing-tariff-hit {
    top: -2px;
    right: -2px;
    min-width: 42px;
    height: 22px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 0 13px 0 12px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.view-plans--figma .plans-figma-card--purchase .pricing-tariff-card--purchase-row.pricing-tariff-card--featured .pricing-tariff-row-side {
    padding-top: 7px;
}

.view-plans--figma .pricing-renewal-name {
    max-width: calc(100% - 48px);
    color: #000000;
    font-size: 14px;
    font-weight: 600;
}

.view-plans--figma .pricing-tariff-price,
.view-plans--figma .pricing-renewal-price {
    color: #000000;
    text-shadow: none;
}

.view-plans--figma .pricing-tariff-price {
    font-size: 28px;
}

.view-plans--figma .pricing-renewal-price-row {
    min-height: 28px;
}

.view-plans--figma .pricing-renewal-price {
    font-size: 28px;
}

.view-plans--figma .pricing-tariff-device,
.view-plans--figma .pricing-renewal-sub,
.view-plans--figma .pricing-selection-label,
.view-plans--figma .pricing-selection-feature,
.view-plans--figma .pricing-selection-sub {
    color: #5E604E;
}

.view-plans--figma .pricing-tariff-device {
    font-size: 13px;
    font-weight: 600;
}

.view-plans--figma .pricing-tariff-device-icon {
    width: 15px;
    height: 15px;
    color: #5E604E;
}

.view-plans--figma .pricing-renewal-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: -0.3px;
    text-transform: none;
    color: rgba(0, 0, 0, 0.5);
}

.view-plans--figma .pricing-selection-panel {
    gap: 12px;
    padding: 14px 15px 15px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    box-shadow: none;
}

.view-plans--figma .pricing-selection-summary {
    column-gap: 12px;
    row-gap: 4px;
}

.view-plans--figma .pricing-selection-label {
    font-size: 12px;
    font-weight: 600;
}

.view-plans--figma .pricing-selection-name {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
}

.view-plans--figma .pricing-selection-total {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: #000000;
}

.view-plans--figma .pricing-selection-sub,
.view-plans--figma .pricing-selection-feature {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.view-plans--figma .pricing-selection-feature--inline {
    white-space: normal;
    align-items: center;
    gap: 6px;
}

.view-plans--figma .pricing-selection-feature-copy {
    display: inline-flex;
    align-items: center;
}

.view-plans--figma .pricing-selection-help {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(94, 96, 78, 0.22);
    background: rgba(94, 96, 78, 0.1);
    color: rgba(94, 96, 78, 0.62);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    transform: none;
}

.view-plans--figma .pricing-selection-button,
.view-plans--figma .btn-pay,
.view-plans--figma .subscription-status-action {
    min-height: 38px;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: #5E604E;
    color: #FFFFFF;
    box-shadow: none !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
}

.view-plans--figma .pricing-selection-button.btn-primary,
.view-plans--figma .btn-pay.btn-primary {
    background: #5E604E !important;
    border-color: #5E604E !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.view-plans--figma .plans-cta .btn-pay {
    margin-top: 0;
}

.view-plans--figma .subscription-status-card {
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    box-shadow: none;
}

.view-plans--figma .subscription-status-name {
    color: #000000;
}

.view-plans--figma .plans-compact-container--renewal .subscription-status-action {
    border: 2px solid rgba(94, 96, 78, 0.18);
    background: rgba(94, 96, 78, 0.1);
    color: #5E604E;
}

.view-plans--figma .subscription-status-dot,
.view-plans--figma .subscription-status-devices,
.view-plans--figma .subscription-status-expiry,
.view-plans--figma .subscription-status-device-icon {
    color: #5E604E;
}

.view-plans--figma .subscription-pending-badge {
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(94, 96, 78, 0.08);
    border: 1px dashed rgba(94, 96, 78, 0.42);
    color: #5E604E;
}

.view-plans--figma .subscription-pending-title,
.view-plans--figma .subscription-pending-text,
.view-plans--figma .subscription-pending-icon,
.view-plans--figma .subscription-pending-action {
    color: #5E604E;
}

.view-plans--figma .subscription-pending-action {
    border-color: rgba(94, 96, 78, 0.35);
    background: rgba(94, 96, 78, 0.08);
}

.view-plans--figma .device-selector {
    gap: 8px;
    padding: 14px 14px 15px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.view-plans--figma .device-selector-label,
.view-plans--figma .device-selector-text,
.view-plans--figma .device-label {
    color: #5E604E;
}

.view-plans--figma .device-selector-text strong,
.view-plans--figma .device-count-value {
    color: #000000;
    text-shadow: none;
}

.view-plans--figma .device-selector-icon-inline svg,
.view-plans--figma .device-stepper-btn,
.view-plans--figma .device-stepper-btn svg {
    color: #5E604E;
    stroke: currentColor;
    filter: none;
}

.view-plans--figma .device-count-badge {
    background: rgba(94, 96, 78, 0.12);
    border-color: rgba(94, 96, 78, 0.48);
    box-shadow: none;
}

.view-plans--figma .device-stepper-btn {
    background: rgba(94, 96, 78, 0.12);
    border-color: rgba(94, 96, 78, 0.42);
    box-shadow: none;
}

.view-plans--figma .device-stepper-btn:disabled {
    background: rgba(94, 96, 78, 0.06);
    border-color: rgba(94, 96, 78, 0.18);
    color: rgba(94, 96, 78, 0.35);
}

.view-plans--figma .device-track {
    background: rgba(94, 96, 78, 0.16);
    box-shadow: none;
}

.view-plans--figma .device-fill {
    background: linear-gradient(90deg, #72745f 0%, #5E604E 100%);
    box-shadow: none;
}

.view-plans--figma .device-thumb-inner {
    background: #5E604E;
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(94, 96, 78, 0.12);
}

@media (hover: hover) and (pointer: fine) {
    .view-plans--figma .pricing-period-tab:hover:not(.is-active) {
        background: rgba(94, 96, 78, 0.08);
        border-color: rgba(94, 96, 78, 0.22);
        color: #4E503F;
    }

    .view-plans--figma .pricing-tariff-card:hover,
    .view-plans--figma .pricing-renewal-card:hover:not(.is-selected) {
        background: #DDD4C1;
        border-color: #5E604E;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(94, 96, 78, 0.12);
    }

    .view-plans--figma .pricing-tariff-card.is-selected:hover,
    .view-plans--figma .pricing-renewal-card.is-selected:hover {
        background: #DDD4C1;
        border-color: #5E604E;
        transform: none;
        box-shadow: 3px 3px 0 #5E604E;
        filter: none;
    }

    .view-plans--figma .pricing-tariff-card:hover .pricing-tariff-price,
    .view-plans--figma .pricing-renewal-card:hover .pricing-renewal-price {
        text-shadow: none;
    }

    .view-plans--figma .pricing-tariff-card:hover .pricing-tariff-device,
    .view-plans--figma .pricing-tariff-card:hover .pricing-tariff-device-icon {
        color: #5E604E;
    }

    .view-plans--figma .pricing-selection-button:hover,
    .view-plans--figma .btn-pay:hover,
    .view-plans--figma .subscription-status-action:hover,
    .view-plans--figma .device-stepper-btn:hover {
        transform: translateY(-1px);
        filter: none;
    }

    .view-plans--figma .pricing-selection-help:hover {
        background: rgba(94, 96, 78, 0.14);
        border-color: rgba(94, 96, 78, 0.34);
        color: #5E604E;
        transform: translateY(-1px);
    }

    .view-plans--figma .plans-compact-container--renewal .subscription-status-action:hover {
        background: rgba(94, 96, 78, 0.14);
        border-color: rgba(94, 96, 78, 0.28);
        color: #4E503F;
        box-shadow: 0 8px 18px rgba(94, 96, 78, 0.08) !important;
    }

    .view-plans--figma .pricing-selection-button.btn-primary:hover,
    .view-plans--figma .btn-pay.btn-primary:hover {
        box-shadow: 0 10px 24px rgba(94, 96, 78, 0.16) !important;
    }

    .view-plans--figma .pricing-tariff-card:active,
    .view-plans--figma .pricing-renewal-card:active {
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 18px rgba(94, 96, 78, 0.12) !important;
    }

    .view-plans--figma .pricing-tariff-card.is-selected:active,
    .view-plans--figma .pricing-renewal-card.is-selected:active {
        background: #DDD4C1;
        border-color: #5E604E;
        transform: none !important;
        box-shadow: 3px 3px 0 #5E604E !important;
        filter: none;
    }

    .view-plans--figma .pricing-selection-button.btn-primary:active,
    .view-plans--figma .btn-pay.btn-primary:active {
        box-shadow: none !important;
    }
}

@media (max-width: 390px) {
    .view-plans--figma .plans-figma-stage {
        padding: 0 12px;
    }

    .view-plans--figma .plans-figma-card {
        padding: 20px 12px 14px;
    }

    .view-plans--figma .plans-title {
        font-size: 22px;
    }

    .view-plans--figma .pricing-period-tab {
        min-height: 54px;
        padding-inline: 3px;
    }

    .view-plans--figma .pricing-period-title {
        font-size: 12px;
    }

    .view-plans--figma .pricing-tariff-grid,
    .view-plans--figma .pricing-renewal-grid {
        gap: 8px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-grid {
        gap: 8px;
    }

    .view-plans--figma .pricing-tariff-card,
    .view-plans--figma .pricing-renewal-card {
        min-height: 102px;
        padding: 11px 10px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-card {
        min-height: 64px;
        padding: 9px 12px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-card--purchase-row {
        gap: 10px;
        min-height: 64px;
        padding: 9px 12px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-row-side {
        min-width: 82px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-card--featured .pricing-tariff-hit {
        min-width: 40px;
        height: 20px;
        padding: 0 9px;
        border-radius: 0 12px 0 11px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-card--purchase-row.pricing-tariff-card--featured .pricing-tariff-row-side {
        padding-top: 6px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-price {
        font-size: 22px;
    }

    .view-plans--figma .plans-figma-card--purchase .pricing-tariff-device {
        font-size: 12px;
    }

    .view-plans--figma .pricing-tariff-price,
    .view-plans--figma .pricing-renewal-price,
    .view-plans--figma .pricing-selection-total {
        font-size: 25px;
    }

    .view-plans--figma .pricing-selection-name {
        font-size: 16px;
    }

    .setup-figma-card--step-2 .setup-figma-action {
        width: 100%;
        min-height: 40px;
        font-size: 14px;
        line-height: 18px;
        padding-inline: 10px;
        white-space: normal;
    }

    .setup-figma-card--step-2 .setup-figma-inline-link,
    .setup-figma-card--step-2 .setup-figma-helper {
        font-size: 13px;
        line-height: 1.3;
        padding-inline: 8px;
    }

    .plans-compact-container--renewal .subscription-status-devices {
        font-size: 13px;
        gap: 5px;
    }

    .plans-compact-container--renewal .subscription-status-device-icon {
        width: 15px;
        height: 15px;
    }
}

.view-payment-method-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.payment-figma-stage {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: var(--paper-stage-min-height);
    justify-content: flex-start;
    padding: 0 16px 24px;
    box-sizing: border-box;
}

.payment-figma-shadow {
    position: absolute;
    width: min(370px, 100%);
    height: 460px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    pointer-events: none;
}

.payment-figma-card {
    position: relative;
    width: min(370px, 100%);
    min-height: 460px;
    margin-block: auto;
    padding: 30px 15px 19px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
}

.payment-figma-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.payment-figma-close svg {
    width: 22px;
    height: 22px;
    display: block;
}

.payment-figma-title {
    margin: 0 0 25px;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.payment-figma-summary {
    display: flex;
    flex-direction: column;
    width: min(340px, 100%);
    min-height: 117px;
    margin: 0 auto;
    padding: 20px 10px 10px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #5E604E;
    background: rgba(94, 96, 78, 0.3);
    --payment-summary-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --payment-summary-letter: -0.4px;
    --payment-summary-weight: 600;
    --payment-summary-line: 22px;
    --payment-summary-top-size: 12px;
    --payment-summary-bottom-size: 14px;
}

.payment-figma-summary-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-figma-summary-divider {
    width: 100%;
    height: 1px;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
}

.payment-figma-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
}

.payment-figma-row--total {
    align-items: end;
    margin-top: auto;
}

.payment-figma-label {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.payment-figma-value {
    min-width: 0;
    text-align: right;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.payment-figma-value--stack {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.payment-figma-value-main {
    font-family: var(--payment-summary-font);
    font-size: var(--payment-summary-bottom-size);
    font-weight: var(--payment-summary-weight);
    line-height: var(--payment-summary-line);
    letter-spacing: var(--payment-summary-letter);
    color: #FFFFFF;
    white-space: nowrap;
}

.payment-figma-value-sub {
    margin-top: 0;
    font-family: var(--payment-summary-font);
    font-size: var(--payment-summary-top-size);
    font-weight: var(--payment-summary-weight);
    line-height: var(--payment-summary-line);
    letter-spacing: var(--payment-summary-letter);
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.payment-figma-term {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.payment-figma-term-top {
    font-family: var(--payment-summary-font);
    font-size: var(--payment-summary-top-size);
    font-weight: var(--payment-summary-weight);
    line-height: var(--payment-summary-line);
    letter-spacing: var(--payment-summary-letter);
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.payment-figma-term-bottom {
    font-family: var(--payment-summary-font);
    font-size: var(--payment-summary-bottom-size);
    font-weight: var(--payment-summary-weight);
    line-height: var(--payment-summary-line);
    letter-spacing: var(--payment-summary-letter);
    color: #FFFFFF;
    white-space: nowrap;
}

.payment-figma-term--loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5E604E;
}

.payment-figma-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(94, 96, 78, 0.22);
    border-top-color: #5E604E;
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}

.payment-figma-price {
    justify-self: end;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.payment-figma-methods {
    width: min(340px, 100%);
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.payment-figma-method {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    column-gap: 15px;
    min-height: 68px;
    width: 100%;
    padding: 4px 15px 4px 5px;
    box-sizing: border-box;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    text-align: left;
    color: #5E604E;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms ease;
}

.payment-figma-method.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.payment-figma-method--featured {
    min-height: 71px;
    box-shadow: 3px 3px 0 #5E604E;
}

.payment-figma-method-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5E604E;
}

.payment-figma-method-icon-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.payment-figma-method-icon-image--sbp {
    width: 48px;
    height: 52px;
}

.payment-figma-method-icon-image--crypto {
    width: 33px;
    height: 46px;
}

.payment-figma-method-icon-image--stars {
    width: 43px;
    height: 51px;
}

.payment-figma-method-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-figma-method-name {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.payment-figma-method-desc {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.payment-figma-method--stars {
    padding-right: 15px;
}

.payment-figma-method-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    box-sizing: border-box;
    min-height: 21px;
    height: 21px;
    padding: 0 15px;
    border-radius: 25px;
    border: 1px solid #5E604E;
    background: rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.payment-figma-method--stars .payment-figma-method-desc {
    white-space: nowrap;
}

.payment-figma-loading-note {
    width: min(340px, 100%);
    margin: 12px auto 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1.5px solid rgba(94, 96, 78, 0.24);
    background: rgba(94, 96, 78, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #5E604E;
}

.view-payment-method-figma .pay-note-telegram {
    margin-top: 10px;
    border-radius: 12px;
    border: 1.5px solid rgba(94, 96, 78, 0.22);
    background: rgba(94, 96, 78, 0.08);
    color: #5E604E;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.view-payment-method-figma .pay-note-telegram a {
    color: #5E604E;
    font-weight: 600;
}

.view-payment-method-figma .pay-note-telegram-icon {
    color: #5E604E;
}

.view-payment-method-figma .pay-note-telegram-icon svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 860px) {
    .view-payment-method-figma {
        max-width: 760px;
    }

    .payment-figma-stage {
        padding: 20px clamp(20px, 3vw, 28px) 28px;
    }

    .payment-figma-shadow {
        width: min(620px, 100%);
        height: 520px;
        border-radius: 18px;
        filter: blur(48px);
    }

    .payment-figma-card {
        width: min(620px, 100%);
        min-height: 520px;
        padding: 34px 22px 22px;
        border-radius: 18px;
        box-shadow: 0 28px 62px rgba(94, 96, 78, 0.2);
    }

    .payment-figma-title {
        margin-bottom: 28px;
        font-size: 28px;
        line-height: 1.1;
    }

    .payment-figma-summary {
        width: min(520px, 100%);
        min-height: 140px;
        padding: 24px 16px 14px;
        border-radius: 12px;
        --payment-summary-top-size: 13px;
        --payment-summary-bottom-size: 15px;
    }

    .payment-figma-row {
        grid-template-columns: 100px minmax(0, 1fr);
        column-gap: 12px;
    }

    .payment-figma-label,
    .payment-figma-value {
        font-size: 15px;
    }

    .payment-figma-price {
        font-size: 28px;
    }

    .payment-figma-methods {
        width: min(520px, 100%);
        margin-top: 24px;
        gap: 12px;
    }

    .payment-figma-method {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 76px;
        padding: 6px 18px 6px 8px;
        border-radius: 16px;
    }

    .payment-figma-method--featured {
        min-height: 80px;
    }

    .payment-figma-method-icon {
        width: 66px;
        height: 66px;
    }

    .payment-figma-method-icon-image--sbp {
        width: 54px;
        height: 58px;
    }

    .payment-figma-method-icon-image--crypto {
        width: 38px;
        height: 52px;
    }

    .payment-figma-method-icon-image--stars {
        width: 48px;
        height: 56px;
    }

    .payment-figma-method-name {
        font-size: 24px;
    }

    .payment-figma-method-desc {
        font-size: 17px;
    }

    .payment-figma-method-chip {
        top: 12px;
        right: 12px;
        min-height: 24px;
        height: 24px;
        font-size: 13px;
    }

    .payment-figma-loading-note {
        width: min(520px, 100%);
        font-size: 13px;
    }

    .view-payment-method-figma .pay-note-telegram {
        font-size: 13px;
    }
}

.view-payment-pending-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.payment-pending-figma-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: var(--paper-stage-min-height);
    padding: 16px;
    box-sizing: border-box;
}

.payment-pending-figma-shadow {
    position: absolute;
    width: min(370px, 100%);
    height: 433px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    pointer-events: none;
}

.payment-pending-figma-card {
    position: relative;
    width: min(370px, 100%);
    min-height: 433px;
    margin-block: auto;
    padding: 119px 15px 18px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.22);
    display: flex;
    flex-direction: column;
}

.payment-pending-figma-card--empty {
    min-height: 360px;
}

.payment-pending-figma-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.payment-pending-figma-close svg {
    width: 15px;
    height: 15px;
    display: block;
}

.payment-pending-figma-loader {
    position: absolute;
    top: 30px;
    left: 20px;
    width: 59px;
    height: 59px;
    border-radius: 999px;
    border-width: 6px;
    border-style: solid;
    border-color: #5E604E #5E604E transparent #5E604E;
    transform: rotate(32deg);
    animation: paymentPendingFigmaSpin 1.35s linear infinite;
    pointer-events: none;
}

.payment-pending-figma-loader--idle {
    animation: none;
    opacity: 0.72;
}

@keyframes paymentPendingFigmaSpin {
    from {
        transform: rotate(32deg);
    }
    to {
        transform: rotate(392deg);
    }
}

.payment-pending-figma-title {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.payment-pending-figma-subtitle {
    margin: 15px 0 13px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.payment-pending-figma-subtitle--empty {
    max-width: 240px;
}

.payment-pending-figma-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.2);
}

.payment-pending-figma-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-pending-figma-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    min-height: 22px;
}

.payment-pending-figma-label,
.payment-pending-figma-value {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
}

.payment-pending-figma-label {
    color: rgba(0, 0, 0, 0.5);
}

.payment-pending-figma-value {
    margin-left: auto;
    text-align: right;
    color: #5E604E;
}

.payment-pending-figma-manual {
    margin-top: 20px;
    margin-bottom: 18px;
}

.payment-pending-figma-primary,
.payment-pending-figma-secondary {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.payment-pending-figma-primary {
    border: 0;
    background: #5E604E;
    color: #FFFFFF;
}

.payment-pending-figma-note {
    width: 100%;
    max-width: 324px;
    margin: 8px auto 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.payment-pending-figma-secondary {
    border: 2px solid rgba(164, 48, 61, 0.6);
    background: rgba(164, 48, 61, 0.2);
    color: #FFFFFF;
    box-shadow: none;
}

.payment-pending-figma-card > .payment-pending-figma-secondary {
    margin-top: auto;
}

.payment-pending-figma-secondary--muted {
    border-color: rgba(94, 96, 78, 0.22);
    background: rgba(94, 96, 78, 0.08);
    color: #5E604E;
}

.payment-pending-figma-empty-actions {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.payment-cancel-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(49, 45, 33, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 9998;
}

.payment-cancel-confirm-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.payment-cancel-confirm {
    position: fixed;
    inset: 0;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 9999;
}

.payment-cancel-confirm.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.payment-cancel-confirm-shadow {
    position: absolute;
    width: min(370px, calc(100vw - 32px));
    height: 288px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    pointer-events: none;
}

.payment-cancel-confirm-card {
    position: relative;
    width: min(370px, 100%);
    padding: 26px 18px 18px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.22);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.24s ease;
}

.payment-cancel-confirm.active .payment-cancel-confirm-card {
    transform: scale(1) translateY(0);
}

.payment-cancel-confirm-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.payment-cancel-confirm-close svg {
    width: 18px;
    height: 18px;
}

.payment-cancel-confirm-badge {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 999px;
    border: 2px solid #A4303D;
    background: rgba(164, 48, 61, 0.12);
    color: #A4303D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.payment-cancel-confirm-title {
    margin: 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.payment-cancel-confirm-text {
    margin: 14px 0 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.2px;
    color: rgba(0, 0, 0, 0.66);
}

.payment-cancel-confirm-actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.payment-cancel-confirm-btn {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.payment-cancel-confirm-btn--primary {
    border: 0;
    background: #5E604E;
    color: #FFFFFF;
}

.payment-cancel-confirm-btn--danger {
    border: 2px solid rgba(164, 48, 61, 0.55);
    background: rgba(164, 48, 61, 0.14);
    color: #A4303D;
}

@media (hover: hover) and (pointer: fine) {
    .payment-pending-figma-close:hover,
    .payment-cancel-confirm-close:hover {
        color: #4E503F;
        background: rgba(94, 96, 78, 0.08);
    }

    .payment-pending-figma-primary:hover,
    .payment-cancel-confirm-btn--primary:hover {
        transform: translateY(-1px);
        background: #565848;
    }

    .payment-pending-figma-secondary:hover {
        transform: translateY(-1px);
        background: rgba(164, 48, 61, 0.26);
        border-color: rgba(164, 48, 61, 0.72);
    }

    .payment-pending-figma-secondary--muted:hover {
        background: rgba(94, 96, 78, 0.12);
        border-color: rgba(94, 96, 78, 0.28);
    }

    .payment-cancel-confirm-btn--danger:hover {
        transform: translateY(-1px);
        background: rgba(164, 48, 61, 0.2);
        border-color: rgba(164, 48, 61, 0.68);
    }
}

.payment-pending-figma-close:active,
.payment-pending-figma-primary:active,
.payment-pending-figma-secondary:active,
.payment-cancel-confirm-close:active,
.payment-cancel-confirm-btn:active {
    transform: none;
}

@media (max-width: 390px) {
    .payment-pending-figma-stage {
        padding-inline: 14px;
    }

    .payment-pending-figma-card {
        padding: 110px 14px 14px;
        min-height: 420px;
    }

    .payment-pending-figma-loader {
        top: 26px;
        left: 18px;
    }

    .payment-pending-figma-title,
    .payment-cancel-confirm-title {
        font-size: 22px;
    }

    .payment-pending-figma-subtitle,
    .payment-pending-figma-label,
    .payment-pending-figma-value,
    .payment-cancel-confirm-text {
        font-size: 14px;
    }
}

.view-payment-result-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
}

.payment-result-figma-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: var(--paper-stage-min-height);
    padding: 16px;
    box-sizing: border-box;
}

.payment-result-figma-shadow {
    position: absolute;
    width: min(370px, 100%);
    height: 375px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    pointer-events: none;
}

.payment-result-figma-card {
    position: relative;
    width: min(370px, 100%);
    min-height: 375px;
    margin-block: auto;
    padding: 119px 15px 15px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.22);
    display: flex;
    flex-direction: column;
}

.payment-result-figma-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.payment-result-figma-close svg {
    width: 15px;
    height: 15px;
    display: block;
}

.payment-result-figma-icon {
    position: absolute;
    top: 27px;
    left: 15px;
    width: 65px;
    height: 65px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-result-figma-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.payment-result-figma-title {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.payment-result-figma-subtitle {
    margin: 15px 0 13px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.payment-result-figma-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.2);
}

.payment-result-figma-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-result-figma-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    min-height: 22px;
}

.payment-result-figma-label,
.payment-result-figma-value {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
}

.payment-result-figma-label {
    color: rgba(0, 0, 0, 0.5);
}

.payment-result-figma-value {
    margin-left: auto;
    text-align: right;
    color: #5E604E;
}

.payment-result-figma-primary {
    width: 100%;
    min-height: 38px;
    margin-top: 18px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #5E604E;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

.payment-result-figma-note {
    width: 100%;
    max-width: 324px;
    margin: 8px auto 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 13px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

@media (hover: hover) and (pointer: fine) {
    .payment-result-figma-close:hover {
        color: #4E503F;
        background: rgba(94, 96, 78, 0.08);
    }

    .payment-result-figma-primary:hover {
        transform: translateY(-1px);
        background: #565848;
    }
}

.payment-result-figma-close:active,
.payment-result-figma-primary:active {
    transform: none;
}

@media (max-width: 390px) {
    .payment-result-figma-stage {
        padding-inline: 14px;
    }

    .payment-result-figma-card {
        padding: 110px 14px 14px;
        min-height: 370px;
    }

    .payment-result-figma-icon {
        top: 24px;
        left: 14px;
        width: 60px;
        height: 60px;
    }

    .payment-result-figma-title {
        font-size: 22px;
    }

    .payment-result-figma-subtitle,
    .payment-result-figma-label,
    .payment-result-figma-value {
        font-size: 14px;
    }
}

.view-unsupported-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--paper-stage-min-height);
}

.unsupported-figma-stage {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.unsupported-figma-shadow {
    position: absolute;
    inset-inline: 28px;
    bottom: 8px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(94, 96, 78, 0.24) 0%, rgba(94, 96, 78, 0.08) 52%, transparent 80%);
    filter: blur(28px);
    pointer-events: none;
}

.unsupported-figma-card {
    position: relative;
    width: min(370px, 100%);
    margin-block: auto;
    padding: 18px;
    box-sizing: border-box;
    border-radius: 18px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    box-shadow: 0 24px 56px rgba(94, 96, 78, 0.18);
}

.unsupported-figma-panel {
    padding: 26px 18px 18px;
    border-radius: 18px;
    border: 2px solid rgba(94, 96, 78, 0.34);
    background: #C8C0B0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.unsupported-figma-title {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #000000;
}

.unsupported-figma-text {
    margin: 0;
    max-width: 280px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #5E604E;
}

.unsupported-figma-text--secondary {
    margin-top: -6px;
}

.unsupported-figma-action {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: #5E604E;
    color: #FFFFFF;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .payment-figma-close:hover {
        color: #4E503F;
    }

    .payment-figma-method:hover {
        background: #E2D8C5;
    }

    .payment-figma-method:active {
        background: #DDD4C1;
    }

    .unsupported-figma-action:hover {
        transform: translateY(-1px);
        background: #565848;
    }

    .unsupported-figma-action:active {
        transform: none;
    }
}

@media (max-width: 390px) {
    .payment-figma-stage {
        padding-inline: 14px;
    }

    .payment-figma-card {
        width: 100%;
        min-height: 448px;
        padding-inline: 12px;
    }

    .payment-figma-method {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 10px;
        padding-inline: 4px 12px;
    }

    .payment-figma-method-icon {
        width: 56px;
        height: 56px;
    }

    .payment-figma-method--stars {
        padding-right: 12px;
    }

    .payment-figma-method-chip {
        padding-inline: 12px;
        font-size: 11px;
    }

    .unsupported-figma-card {
        padding: 14px;
    }

    .unsupported-figma-panel {
        padding: 22px 14px 16px;
    }

    .unsupported-figma-title {
        font-size: 22px;
    }

    .unsupported-figma-text {
        font-size: 15px;
    }
}

.subscription-manage-grid {
    gap: 8px;
}

.view-device-management-figma {
    width: 100%;
    max-width: 402px;
    margin-inline: auto;
    min-height: var(--paper-stage-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
    background: transparent;
}

.device-management-figma-stage {
    display: contents;
}

.device-management-figma-shadow {
    display: none !important;
}

.device-management-figma-card {
    position: relative;
    width: 100%;
    max-width: 370px;
    margin: auto;
    padding: 24px 18px 18px;
    box-sizing: border-box;
    border: 2px solid #5E604E;
    border-radius: 15px;
    background: #DDD4C1;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.14);
}

.device-management-figma-card--compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px 22px;
    text-align: center;
}

.device-mgmt-loading,
.device-mgmt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #5E604E;
}

.device-mgmt-empty h3,
.device-mgmt-empty p,
.device-mgmt-loading p {
    margin: 0;
}

.device-mgmt-empty h3 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    color: #000000;
}

.device-mgmt-empty p,
.device-mgmt-loading p {
    max-width: 260px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.5);
}

.device-mgmt-empty .empty-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5E604E;
}

.device-mgmt-empty .empty-icon svg {
    width: 100%;
    height: 100%;
}

.view-device-management-figma .subscription-manage-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 18px 18px;
}

.view-device-management-figma .plans-title {
    margin: 0;
    text-align: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.view-device-management-figma .subscription-manage-state {
    gap: 8px;
    padding: 14px 14px 13px;
    border-radius: 15px;
    border: 1px solid rgba(94, 96, 78, 0.34);
    background: rgba(94, 96, 78, 0.12);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.view-device-management-figma .subscription-manage-state--top .subscription-manage-state-text {
    white-space: normal;
}

.view-device-management-figma .subscription-manage-state--neutral {
    border-style: dashed;
    background: rgba(94, 96, 78, 0.08);
}

.view-device-management-figma .subscription-manage-state--upgrade {
    border-color: rgba(71, 107, 81, 0.36);
    background: rgba(95, 124, 95, 0.14);
}

.view-device-management-figma .subscription-manage-state--downgrade {
    border-color: rgba(125, 94, 86, 0.34);
    background: rgba(141, 114, 107, 0.14);
}

.view-device-management-figma .subscription-manage-state--warning {
    border-color: rgba(112, 101, 76, 0.34);
    background: rgba(144, 132, 103, 0.14);
}

.view-device-management-figma .subscription-manage-state-head {
    align-items: center;
}

.view-device-management-figma .subscription-manage-state-icon,
.view-device-management-figma .subscription-pending-icon,
.view-device-management-figma .subscription-manage-error-icon {
    color: #5E604E;
}

.view-device-management-figma .subscription-manage-state-title {
    color: #000000;
}

.view-device-management-figma .subscription-manage-state--upgrade .subscription-manage-state-icon {
    color: #476B51;
}

.view-device-management-figma .subscription-manage-state--downgrade .subscription-manage-state-icon {
    color: #7D5E56;
}

.view-device-management-figma .subscription-manage-state--warning .subscription-manage-state-icon {
    color: #6E6349;
}

.view-device-management-figma .subscription-manage-state--upgrade .subscription-manage-state-title,
.view-device-management-figma .subscription-manage-state--downgrade .subscription-manage-state-title {
    color: #000000;
}

.view-device-management-figma .subscription-manage-state-strong {
    color: #000000;
}

.view-device-management-figma .subscription-manage-state--upgrade .subscription-manage-state-text,
.view-device-management-figma .subscription-manage-state--downgrade .subscription-manage-state-text {
    color: rgba(0, 0, 0, 0.58);
}

.view-device-management-figma .subscription-manage-state-text,
.view-device-management-figma .subscription-manage-selection-meta,
.view-device-management-figma .subscription-pending-text,
.view-device-management-figma .subscription-manage-error {
    color: rgba(0, 0, 0, 0.56);
}

.view-device-management-figma .subscription-manage-state--top .subscription-status-usage,
.view-device-management-figma .subscription-status-usage {
    background: rgba(221, 212, 193, 0.78);
    border: 1px solid rgba(94, 96, 78, 0.24);
}

.view-device-management-figma .subscription-status-usage-value {
    color: #48634D;
}

.view-device-management-figma .subscription-status-usage-label {
    color: rgba(0, 0, 0, 0.42);
}

.view-device-management-figma .pricing-renewal-label--left {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

.view-device-management-figma .pricing-tariff-grid--management {
    padding-top: 10px;
    column-gap: 10px;
    row-gap: 18px;
}

.view-device-management-figma .pricing-tariff-card--management {
    gap: 3px;
    min-height: 92px;
    padding: 12px 12px 10px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.view-device-management-figma .pricing-tariff-card--management::before {
    display: none;
}

.view-device-management-figma .pricing-tariff-card--management.is-selected {
    background: #DDD4C1;
    border-color: #5E604E;
    box-shadow: 3px 3px 0 #5E604E;
}

.view-device-management-figma .pricing-tariff-card--management .pricing-tariff-name {
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.view-device-management-figma .pricing-tariff-card--management .pricing-tariff-meta {
    margin-top: 0;
}

.view-device-management-figma .pricing-tariff-card--management .pricing-tariff-device,
.view-device-management-figma .pricing-tariff-card--management .pricing-tariff-device-icon {
    color: #5E604E;
    font-size: 13px;
}

.view-device-management-figma .pricing-tariff-card--management .pricing-tariff-hit {
    top: -2px;
    left: 50%;
    right: auto;
    transform: translate(-50%, -58%);
    height: 22px;
    padding: 0 10px;
    border-radius: 8px;
    background: #6D725A;
    color: #FFFFFF;
    box-shadow: none;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.view-device-management-figma .subscription-pending-badge {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(94, 96, 78, 0.34);
    background: rgba(94, 96, 78, 0.08);
    box-shadow: none;
}

.view-device-management-figma .subscription-pending-title {
    color: #5E604E;
}

.view-device-management-figma .subscription-pending-action {
    color: #5E604E;
}

.view-device-management-figma .subscription-manage-error {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(196, 165, 124, 0.18);
    border: 1px solid rgba(170, 135, 89, 0.3);
}

.view-device-management-figma .device-limit-minpay-strip {
    padding: 12px 12px 12px 14px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: rgba(94, 96, 78, 0.1);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.view-device-management-figma .device-limit-minpay-strip-title {
    color: #000000;
}

.view-device-management-figma .device-limit-minpay-strip-note,
.view-device-management-figma .device-limit-minpay-strip-side-label,
.view-device-management-figma .device-limit-alt-hint {
    color: rgba(0, 0, 0, 0.56);
}

.view-device-management-figma .device-limit-minpay-strip-price {
    color: #48634D;
}

.view-device-management-figma .device-limit-alt-hint {
    border-color: rgba(94, 96, 78, 0.28);
    background: rgba(94, 96, 78, 0.06);
}

.view-device-management-figma .device-limit-alt-dot {
    background: #48634D;
}

.view-device-management-figma .subscription-manage-action-panel {
    margin-top: 0;
    padding: 14px 15px 15px;
    border-radius: 15px;
    border: 2px solid #5E604E;
    background: #DDD4C1;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.view-device-management-figma .pricing-selection-label,
.view-device-management-figma .pricing-selection-feature,
.view-device-management-figma .pricing-selection-sub {
    color: #5E604E;
}

.view-device-management-figma .pricing-selection-total,
.view-device-management-figma .pricing-selection-name,
.view-device-management-figma .subscription-manage-selection-total--date {
    color: #000000;
}

.view-device-management-figma .pricing-selection-help {
    border-color: rgba(94, 96, 78, 0.24);
    background: rgba(94, 96, 78, 0.12);
    color: #5E604E;
}

.view-device-management-figma .pricing-selection-button {
    min-height: 56px;
    border-radius: 16px;
    background: #5E604E !important;
    border: 2px solid #5E604E !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.view-device-management-figma .pricing-selection-button[disabled] {
    background: rgba(94, 96, 78, 0.5) !important;
    border-color: rgba(94, 96, 78, 0.5) !important;
    color: rgba(255, 255, 255, 0.76) !important;
}

.view-device-management-figma .device-limit-price-calc-btn {
    border-color: rgba(94, 96, 78, 0.28);
    background: rgba(94, 96, 78, 0.08);
    color: #5E604E;
    box-shadow: none;
}

.view-device-management-figma .device-limit-price-calc-icon {
    color: #5E604E;
}

.pricing-tariff-grid--management {
    column-gap: 12px;
    row-gap: 18px;
    padding-top: 12px;
}

.pricing-tariff-management-spacer {
    flex: 1 1 auto;
    min-height: 4px;
}

.pricing-tariff-card--management {
    gap: 3px;
    min-height: 74px;
    padding: 10px 10px 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: visible;
    isolation: isolate;
}

.pricing-tariff-card--management::before {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 184, 120, 0.14) 0%, transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.pricing-tariff-card--management.is-selected {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 170, 90, 0.58);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(255, 170, 90, 0.18),
        inset 0 1px 0 rgba(255, 232, 210, 0.07);
}

.pricing-tariff-card--management .pricing-tariff-name {
    margin-top: 0;
    padding-right: 0;
}

.pricing-tariff-card--management.pricing-tariff-card--featured .pricing-tariff-name {
    padding-right: 0;
    padding-top: 10px;
}

.pricing-tariff-card--management .pricing-tariff-hit {
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    transform: translate(-50%, -58%);
    min-width: 0;
    max-width: calc(100% - 28px);
    height: 18px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 7px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 5px 10px rgba(255, 101, 24, 0.14);
    z-index: 3;
}

.pricing-tariff-card--management .pricing-tariff-meta {
    margin-top: 2px;
}

.pricing-tariff-card--management .pricing-tariff-device {
    font-size: 11px;
    gap: 4px;
}

.pricing-tariff-card--management .pricing-tariff-device-icon {
    width: 15px;
    height: 15px;
}

.subscription-manage-state {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.subscription-manage-state--top {
    gap: 6px;
}

.subscription-manage-state-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.subscription-manage-state-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.subscription-manage-state--top .subscription-manage-state-text {
    margin-top: 0;
    width: 100%;
    white-space: nowrap;
}

.subscription-manage-state--upgrade {
    border-color: rgba(142, 216, 176, 0.28);
    background: rgba(86, 160, 124, 0.1);
}

.subscription-manage-state--downgrade {
    border-color: rgba(255, 123, 117, 0.34);
    background: rgba(170, 48, 52, 0.14);
}

.subscription-manage-state--warning {
    border-color: rgba(243, 156, 122, 0.3);
    background: rgba(188, 86, 68, 0.11);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.subscription-manage-state--neutral {
    border-style: dashed;
}

.subscription-manage-state--neutral .subscription-manage-state-top-row {
    align-items: center;
}

.subscription-manage-state--neutral .subscription-manage-state-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subscription-manage-state--neutral .subscription-manage-state-head {
    align-items: center;
}

.subscription-manage-state--neutral .subscription-manage-state-text--inline {
    margin-top: 6px;
    width: auto;
    white-space: nowrap;
}

.subscription-manage-state--upgrade .subscription-manage-state-icon {
    color: rgba(160, 234, 194, 0.94);
}

.subscription-manage-state--downgrade .subscription-manage-state-icon {
    color: rgba(255, 166, 144, 0.98);
}

.subscription-manage-state--upgrade .subscription-manage-state-top-row,
.subscription-manage-state--downgrade .subscription-manage-state-top-row {
    align-items: center;
}

.subscription-manage-state--upgrade .subscription-manage-state-head,
.subscription-manage-state--downgrade .subscription-manage-state-head {
    align-items: center;
}

.subscription-manage-state--warning .subscription-manage-state-icon {
    color: rgba(255, 194, 154, 0.95);
}

.subscription-manage-state-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.subscription-manage-state-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 203, 164, 0.9);
    flex-shrink: 0;
}

.subscription-manage-state-icon svg {
    width: 100%;
    height: 100%;
}

.subscription-manage-state-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff8f1;
    line-height: 1.15;
}

.subscription-manage-state--upgrade .subscription-manage-state-title,
.subscription-manage-state--downgrade .subscription-manage-state-title {
    font-size: 15px;
    line-height: 1.1;
}

.subscription-manage-state-strong {
    font-weight: 900;
    color: #fff8f1;
}

.subscription-manage-state-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 232, 212, 0.82);
}

.subscription-manage-action-panel {
    margin-top: 0;
    padding: 11px 12px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.subscription-manage-selection-meta {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 224, 196, 0.72);
}

.subscription-manage-selection-meta--scheduled {
    max-width: none;
    width: 100%;
}

.subscription-manage-selection-total {
    font-size: 20px;
}

.subscription-manage-error {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255, 176, 112, 0.08);
    border: 1px solid rgba(255, 184, 120, 0.2);
    color: rgba(255, 228, 214, 0.92);
    font-size: 12px;
    line-height: 1.35;
}

.subscription-manage-error-icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscription-manage-error-icon svg {
    width: 100%;
    height: 100%;
}

.subscription-manage-price-footer {
    margin-top: 2px;
}

.pricing-current-tariff {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.pricing-current-tariff-copy,
.pricing-current-tariff-usage {
    min-width: 0;
}

.pricing-current-tariff-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}

.pricing-current-tariff-name {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 800;
    color: #fff8f1;
}

.pricing-current-tariff-meta {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 232, 210, 0.8);
}

.pricing-current-tariff-usage {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 146, 60, 0.08);
    border: 1px solid rgba(255, 180, 110, 0.16);
}

.pricing-current-tariff-usage-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent);
}

.pricing-current-tariff-usage-label {
    font-size: 11px;
    color: var(--color-muted);
}

.pricing-legacy-note {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 214, 150, 0.07);
    border: 1px solid rgba(255, 190, 120, 0.12);
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 232, 212, 0.82);
}

.pricing-legacy-note-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.pricing-legacy-note-icon svg {
    width: 100%;
    height: 100%;
}

.device-summary-badge {
    min-width: 0;
    max-width: 52%;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 560px) and (hover: none), (max-width: 560px) and (pointer: coarse) {
    .plans-compact-container--renewal,
    .subscription-manage-container {
        gap: 10px;
    }

    .subscription-manage-container {
        padding: 2px 3px 0;
    }

    .plans-compact-container--renewal .plans-title,
    .subscription-manage-container .plans-title {
        font-size: 1.34rem;
        line-height: 1.06;
    }

    .plans-compact-container--renewal .plans-subtitle,
    .subscription-manage-container .plans-subtitle {
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .subscription-status-card {
        padding: 13px 14px;
        border-radius: 18px;
        gap: 12px;
    }

    .subscription-status-card--management {
        gap: 11px;
    }

    .subscription-status-name {
        font-size: 18px;
    }

    .subscription-status-dot {
        font-size: 12px;
    }

    .subscription-status-devices,
    .subscription-status-expiry {
        font-size: 13px;
    }

    .subscription-status-card--unlimited .subscription-status-devices {
        gap: 5px;
        font-size: 13px;
    }

    .subscription-status-action {
        padding: 9px 15px;
        font-size: 13px;
    }

    .subscription-status-usage {
        align-items: flex-start;
    }

    .subscription-status-usage-value {
        font-size: 19px;
    }

    .subscription-pending-badge {
        gap: 9px;
        padding: 9px 11px;
    }

    .subscription-pending-title {
        font-size: 12px;
    }

    .subscription-pending-text {
        font-size: 13px;
        line-height: 1.35;
    }

    .pricing-renewal-label {
        font-size: 12px;
    }

    .pricing-renewal-card {
        height: 100px;
        padding: 11px 12px 11px;
    }

    .pricing-renewal-name {
        font-size: 14px;
        max-width: calc(100% - 44px);
    }

    .pricing-renewal-price {
        font-size: 30px;
    }

    .pricing-renewal-sub {
        font-size: 12px;
    }

    .pricing-renewal-card--wide-price .pricing-renewal-sub {
        font-size: 11px;
        line-height: 1.08;
    }

    .pricing-selection-panel.pricing-selection-panel--renewal {
        padding: 13px 14px 14px;
    }

    .pricing-selection-panel--renewal .pricing-selection-label {
        font-size: 12.5px;
    }

    .pricing-selection-panel--renewal .pricing-selection-name {
        font-size: 18px;
    }

    .pricing-selection-panel--renewal .pricing-selection-total {
        font-size: 25px;
    }

    .pricing-selection-panel--renewal .pricing-selection-sub {
        font-size: 12.5px;
    }

    .subscription-manage-state {
        padding: 12px 13px;
        border-radius: 16px;
    }

    .subscription-manage-state--top {
        gap: 11px;
    }

    .subscription-manage-state-title {
        font-size: 16px;
    }

    .subscription-manage-state-text,
    .subscription-manage-selection-meta {
        font-size: 13px;
        line-height: 1.45;
    }

    .subscription-manage-container .subscription-manage-state-top-row {
        gap: 9px;
    }

    .subscription-manage-container .subscription-manage-state--top .subscription-manage-state-title {
        font-size: 14px;
        line-height: 1.15;
    }

    .subscription-manage-container .subscription-manage-state--top .subscription-manage-state-text {
        font-size: 10.5px;
        line-height: 1.25;
    }

    .subscription-manage-container .subscription-manage-state--upgrade .subscription-manage-state-title,
    .subscription-manage-container .subscription-manage-state--downgrade .subscription-manage-state-title {
        display: inline-flex;
        font-size: 16px;
        line-height: 1.08;
        max-width: none;
        white-space: nowrap;
    }

    .subscription-manage-container .subscription-manage-state--upgrade .subscription-manage-state-text,
    .subscription-manage-container .subscription-manage-state--downgrade .subscription-manage-state-text {
        font-size: 13px;
        line-height: 1.22;
        white-space: normal;
    }

    .subscription-manage-container .pricing-tariff-status {
        min-height: 26px;
        padding: 0 10px;
        font-size: 10.5px;
    }

    .pricing-period-tabs {
        padding: 3px;
    }

    .pricing-period-tab {
        min-height: 64px;
        padding: 9px 4px;
        border-radius: 16px;
        grid-template-rows: 1fr 18px;
    }

    .pricing-period-title {
        font-size: 12px;
    }

    .pricing-period-discount {
        min-width: 40px;
        min-height: 18px;
        padding: 0 7px;
        font-size: 9px;
    }

    .pricing-tariff-card {
        min-height: 110px;
        padding: 11px 11px 10px;
    }

    .pricing-tariff-card--management {
        min-height: 78px;
        padding: 10px 10px 9px;
    }

    .pricing-tariff-grid--management {
        column-gap: 11px;
        row-gap: 18px;
        padding-top: 12px;
    }

    .pricing-tariff-hit {
        min-width: 52px;
        height: 22px;
        padding: 0 9px;
        border-radius: 0 16px 0 13px;
        font-size: 8px;
    }

    .pricing-tariff-card--featured .pricing-tariff-name {
        padding-right: 50px;
    }

    .pricing-tariff-card--management.pricing-tariff-card--featured .pricing-tariff-name {
        padding-right: 0;
        padding-top: 9px;
    }

    .pricing-tariff-card--management .pricing-tariff-name {
        font-size: 13px;
    }

    .pricing-tariff-card--management .pricing-tariff-device {
        font-size: 12.5px;
        gap: 4px;
    }

    .pricing-tariff-card--management .pricing-tariff-device-icon {
        width: 15px;
        height: 15px;
    }

    .pricing-tariff-price {
        font-size: 26px;
    }

    .pricing-current-tariff {
        flex-direction: column;
    }

    .pricing-current-tariff-usage {
        align-items: flex-start;
    }

    .pricing-selection-panel {
        gap: 8px;
        padding: 11px;
    }

    .pricing-selection-total {
        font-size: 22px;
    }

    .subscription-manage-action-panel {
        padding: 13px 14px 14px;
    }

    .subscription-manage-action-panel .pricing-selection-label {
        font-size: 12.5px;
    }

    .subscription-manage-action-panel .pricing-selection-name {
        font-size: 18px;
    }

    .subscription-manage-action-panel .subscription-manage-selection-total {
        font-size: 23px;
    }

    .subscription-manage-action-panel .pricing-selection-summary--unlimited-device .subscription-manage-selection-total {
        font-size: 15px;
    }

    .subscription-manage-action-panel .subscription-manage-selection-total--date {
        font-size: 16px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .pricing-renewal-card:hover:not(.is-selected) {
        border-color: rgba(255, 178, 110, 0.32);
        box-shadow:
            0 22px 36px rgba(0, 0, 0, 0.24),
            0 0 0 1px rgba(255, 162, 92, 0.16);
        background: linear-gradient(145deg, rgba(50, 22, 13, 0.98) 0%, rgba(24, 10, 14, 0.95) 100%);
    }

    .pricing-renewal-card:hover:not(.is-selected)::before {
        opacity: 0.82;
    }

    .pricing-renewal-card.is-selected:hover {
        border-color: rgba(255, 170, 90, 0.72);
        background: linear-gradient(145deg, rgba(60, 27, 14, 0.98) 0%, rgba(28, 12, 16, 0.95) 100%);
        box-shadow:
            0 14px 24px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 170, 90, 0.24),
            inset 0 1px 0 rgba(255, 232, 210, 0.07);
    }

    .pricing-renewal-card.is-selected:hover::before {
        opacity: 0.7;
    }

    .pricing-tariff-card--management:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 190, 128, 0.22);
        box-shadow:
            0 10px 20px rgba(0, 0, 0, 0.16),
            0 0 0 1px rgba(255, 184, 120, 0.12);
    }

    .pricing-tariff-card--management.is-selected:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 170, 90, 0.58);
        box-shadow:
            0 10px 22px rgba(0, 0, 0, 0.16),
            0 0 0 1px rgba(255, 170, 90, 0.18),
            inset 0 1px 0 rgba(255, 232, 210, 0.07);
    }

    .pricing-tariff-card--management.is-selected:hover::before {
        opacity: 0.52;
    }

    .subscription-status-action:hover {
        background: rgba(255, 144, 56, 0.16);
        border-color: rgba(255, 174, 108, 0.32);
    }
}

.pricing-renewal-card:focus-visible,
.subscription-status-action:focus-visible {
    outline: none;
}

.pricing-renewal-card:active,
.subscription-status-action:active,
.subscription-manage-container .device-limit-price-calc-btn:active {
    transform: none !important;
    filter: none !important;
}

.pricing-renewal-card:active {
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 162, 92, 0.1) !important;
}

.pricing-renewal-card.is-selected:active {
    border-color: rgba(255, 170, 90, 0.72);
    background: linear-gradient(145deg, rgba(60, 27, 14, 0.98) 0%, rgba(28, 12, 16, 0.95) 100%);
    box-shadow:
        0 14px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 170, 90, 0.24),
        inset 0 1px 0 rgba(255, 232, 210, 0.07) !important;
}

.subscription-status-action:active {
    background: rgba(255, 144, 56, 0.12);
}

.subscription-manage-container .device-limit-price-calc-btn:active {
    background: rgba(255, 255, 255, 0.08);
}

.view-device-management-figma .device-mgmt-empty .btn-primary {
    min-width: 220px;
    min-height: 52px;
    border-radius: 15px;
    background: #5E604E;
    box-shadow: none !important;
}

.view-device-management-figma .device-limit-price-calc-btn:active {
    background: rgba(94, 96, 78, 0.14) !important;
}

@media (hover: hover) and (pointer: fine) {
    .view-device-management-figma .pricing-tariff-card--management:hover {
        background: #E2D8C5;
        border-color: #5E604E;
        box-shadow: 0 8px 18px rgba(94, 96, 78, 0.12);
    }

    .view-device-management-figma .pricing-tariff-card--management.is-selected:hover {
        background: #DDD4C1;
        border-color: #5E604E;
        box-shadow: 3px 3px 0 #5E604E;
    }

    .view-device-management-figma .pricing-selection-button:hover,
    .view-device-management-figma .device-mgmt-empty .btn-primary:hover {
        transform: translateY(-1px);
        background: #565848 !important;
        border-color: #565848 !important;
        box-shadow: 0 10px 24px rgba(94, 96, 78, 0.16) !important;
    }

    .view-device-management-figma .pricing-selection-button[disabled]:hover {
        transform: none;
        background: rgba(94, 96, 78, 0.5) !important;
        border-color: rgba(94, 96, 78, 0.5) !important;
        box-shadow: none !important;
    }

    .view-device-management-figma .device-limit-price-calc-btn:hover,
    .view-device-management-figma .pricing-selection-help:hover,
    .view-device-management-figma .subscription-pending-action:hover {
        background: rgba(94, 96, 78, 0.14);
        border-color: rgba(94, 96, 78, 0.34);
        color: #4E503F;
    }
}

.view-device-management-figma .pricing-selection-button:active,
.view-device-management-figma .pricing-selection-button.btn-primary:active {
    background: #545647 !important;
    border-color: #545647 !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

@media (max-width: 390px) {
    .view-device-management-figma {
        padding: 0 12px;
    }

    .device-management-figma-card,
    .view-device-management-figma .subscription-manage-container {
        padding: 20px 14px 14px;
    }

    .view-device-management-figma .plans-title {
        font-size: 22px;
    }
}

/* ========================================
   ACCOUNT VIEW 2.0
   ======================================== */

.account-scroll {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 5vw, 24px);
    padding-right: 4px;
}

.account-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 5vw, 24px);
}

.account-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(14px, 3.8vw, 18px);
    padding: clamp(18px, 4.5vw, 24px);
    border-radius: clamp(24px, 7vw, 32px);
    background: var(--gradient-card);
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.account-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 200, 150, 0.12);
    pointer-events: none;
}

.account-card--id {
    justify-content: flex-start;
}

.account-card-icon {
    flex-shrink: 0;
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.2) 0%, rgba(20, 10, 30, 0.7) 100%);
    border: 2px solid rgba(255, 170, 110, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 10px 22px rgba(255, 120, 40, 0.24);
}

.account-card-icon svg {
    width: clamp(24px, 5.5vw, 28px);
    height: clamp(24px, 5.5vw, 28px);
}

.account-card-id {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: clamp(0.95rem, 3.2vw, 1.05rem);
    font-weight: 600;
}

.account-card-id-label {
    color: var(--text-muted);
}

.account-card-id-value {
    color: var(--accent);
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.02em;
}

.account-card--subscription {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(14px, 4vw, 18px);
}

.account-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-card-title {
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.account-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: clamp(0.75rem, 2.6vw, 0.85rem);
    font-weight: 700;
    border: 1.5px solid rgba(255, 170, 110, 0.3);
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.1) 0%, rgba(20, 10, 30, 0.55) 100%);
    color: var(--text);
}

.account-status.is-active {
    border-color: rgba(51, 238, 178, 0.45);
    background: linear-gradient(135deg, rgba(51, 238, 178, 0.18) 0%, rgba(20, 10, 30, 0.6) 100%);
}

.account-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 90, 40, 0.95);
    box-shadow: 0 0 10px rgba(255, 90, 40, 0.55);
}

.account-status.is-active .account-status-dot {
    background: #33eeb2;
    box-shadow: 0 0 14px rgba(51, 238, 178, 0.72);
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 3vw, 14px);
}

.account-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 3vw, 16px);
    font-size: clamp(0.88rem, 3vw, 1rem);
    color: var(--text);
}

.account-info-label {
    color: var(--text);
    font-weight: 600;
}

.account-info-value {
    color: var(--text-muted);
    font-weight: 600;
}

.account-info-accent {
    color: var(--accent);
    font-weight: 700;
    font-size: clamp(0.95rem, 3.2vw, 1.1rem);
}

.account-empty {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 16px);
}

.account-empty-title {
    margin: 0;
    font-size: clamp(1.05rem, 3.6vw, 1.2rem);
    font-weight: 700;
    color: var(--text);
}

.account-empty-text {
    margin: 0;
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    color: var(--text-muted);
}

.account-empty-btn {
    width: 100%;
    justify-content: center;
}

.account-card--promo {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(32, 18, 9, 0.92) 0%, rgba(18, 9, 6, 0.88) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-card--promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(255, 120, 40, 0.22);
    border-color: rgba(255, 190, 130, 0.5);
}

.account-card--promo:active {
    transform: translateY(0);
}

.account-promo-icon {
    flex-shrink: 0;
    width: clamp(48px, 11vw, 56px);
    height: clamp(48px, 11vw, 56px);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.16) 0%, rgba(32, 16, 28, 0.72) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.account-promo-icon svg {
    width: clamp(22px, 5vw, 26px);
    height: clamp(22px, 5vw, 26px);
}

.account-promo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.account-promo-title {
    font-size: clamp(1rem, 3.4vw, 1.1rem);
    font-weight: 700;
    color: var(--text);
}

.account-promo-hint {
    font-size: clamp(0.8rem, 2.6vw, 0.9rem);
    color: var(--text-muted);
}

.account-promo-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.account-promo-arrow svg {
    width: 20px;
    height: 20px;
}

@media (max-height: 720px) {
    .account-card {
        padding: clamp(16px, 4vw, 20px);
    }
}

.home-hero {
    position: relative;
    border-radius: 32px;
    padding: clamp(26px, 7vw, 36px);
    background: linear-gradient(155deg, rgba(30, 12, 8, 0.95) 0%, rgba(24, 10, 28, 0.9) 50%, rgba(10, 4, 18, 0.9) 100%);
    border: 1px solid rgba(255, 170, 110, 0.32);
    box-shadow:
        0 46px 110px rgba(4, 0, 0, 0.6),
        0 0 52px rgba(255, 96, 10, 0.24);
    backdrop-filter: blur(38px) saturate(140%);
    overflow: visible;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255, 188, 120, 0.5), rgba(255, 110, 20, 0.22) 50%, rgba(170, 70, 255, 0.2) 100%);
    mix-blend-mode: screen;
    opacity: 0.5;
    filter: blur(22px);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 12% 14%;
    border-radius: calc(var(--radius-lg) * 1.6);
    background: radial-gradient(circle at 28% 24%, rgba(255, 220, 180, 0.2), rgba(255, 90, 10, 0.1) 58%, transparent 82%);
    opacity: 0.58;
    pointer-events: none;
}

.brand-header,
.home-status,
.home-hero .status-line,
.home-hero .subline {
    position: relative;
    z-index: 1;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 5vw, 24px);
    margin-bottom: clamp(18px, 5vw, 26px);
    overflow: visible;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: clamp(12px, 4vw, 18px);
}

.brand-logo-img {
    position: relative;
    width: clamp(48px, 10vw, 60px);
    height: clamp(48px, 10vw, 60px);
    border-radius: 18px;
    background: center/cover no-repeat url("/miniapp/static/img/logo.svg"), radial-gradient(circle at 30% 30%, #ffe9cb 0%, #ffb568 42%, #ff6a00 100%);
    box-shadow: 0 16px 32px rgba(255, 120, 0, 0.38);
    overflow: hidden;
}

.brand-logo-img::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), rgba(255, 110, 0, 0.18) 55%, transparent 85%);
    mix-blend-mode: screen;
}

.brand-logo-img::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.18) 60%, rgba(255, 255, 255, 0) 90%, rgba(255, 255, 255, 0.18));
    filter: blur(10px);
    animation: rotateGlow 12s linear infinite;
}

.brand-name {
    font-size: clamp(20px, 5.8vw, 24px);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff5e8;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

.info-fab-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-fab-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(35, 20, 11, 0.92);
    border: 1px solid rgba(255, 165, 60, 0.32);
    color: #fff5e6;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    z-index: 25;
}

.info-fab {
    /* Иконка информации не двигается; центр выравнивается через align-items в .brand-header */
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 180, 110, 0.32);
    background: rgba(22, 10, 6, 0.68);
    display: grid;
    place-items: center;
    color: #fff3e0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease;
    overflow: visible;
    z-index: 2;
}

.info-fab:hover {
    /* без сдвига; только стиль */
    border-color: rgba(255, 200, 140, 0.55);
    background: rgba(32, 16, 12, 0.82);
    box-shadow: 0 20px 38px rgba(255, 110, 20, 0.32);
}

.home-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(18px, 4.8vw, 20px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff7ec;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #33eeb2;
    box-shadow: 0 0 16px rgba(51, 238, 178, 0.75), 0 0 32px rgba(51, 238, 178, 0.45);
}

.dot--idle { background: #ff4d4f; box-shadow: 0 0 12px rgba(255,77,79,.6), 0 0 20px rgba(255,77,79,.3); }

.subline {
    font-size: clamp(13px, 4.2vw, 15px);
    color: rgba(255, 236, 222, 0.9);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.home-cta-group {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 4.5vw, 22px);
}

.home-cta-group .btn {
    width: 100%;
}

.btn {
    --btn-gap: 10px;
    --badge-margin: clamp(6px, 2.2vw, 10px);
    --badge-scale: 1;
    --badge-shift: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap);
    height: clamp(58px, 13vw, 66px);
    border-radius: 18px;
    padding: 0 clamp(22px, 5vw, 28px);
    border: 1px solid rgba(255, 175, 115, 0.32);
    font-size: clamp(15px, 4vw, 17px);
    font-weight: 700;
    color: #fff5ec;
    background: rgba(18, 8, 6, 0.82);
    box-shadow: 0 26px 64px rgba(4, 0, 0, 0.42);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    will-change: transform, box-shadow;
}

.btn-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.glass-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%);
    mix-blend-mode: screen;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.glass-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 200, 150, 0.12);
    opacity: 0.7;
    pointer-events: none;
}

.btn-primary {
    /* Благородный оранжевый: янтарь → мандарин → кармель */
    background: linear-gradient(135deg, #ff9738 0%, #ff7a2e 48%, #ff5c24 100%) !important;
    border-color: rgba(255, 180, 110, 0.55) !important;
    box-shadow: 0 28px 62px rgba(255, 110, 40, 0.36) !important;
    color: #fff7ec !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 34px 72px rgba(255, 120, 50, 0.42) !important;
}

.btn-secondary {
    background: linear-gradient(125deg, rgba(255, 170, 90, 0.2) 0%, rgba(44, 18, 12, 0.78) 60%, rgba(24, 10, 12, 0.86) 100%);
    border-color: rgba(255, 170, 100, 0.36);
    color: rgba(255, 242, 230, 0.94);
}

.btn-secondary:hover {
    background: linear-gradient(125deg, rgba(255, 190, 120, 0.24) 0%, rgba(60, 24, 18, 0.84) 100%);
    border-color: rgba(255, 200, 130, 0.48);
    box-shadow: 0 30px 62px rgba(255, 120, 40, 0.3);
}

.home-setup-cta {
    box-shadow: 0 24px 52px rgba(255, 120, 40, 0.22);
}

.home-setup-cta:hover {
    background: linear-gradient(125deg, rgba(255, 170, 100, 0.22) 0%, rgba(48, 20, 13, 0.82) 100%);
    border-color: rgba(255, 195, 125, 0.46);
    box-shadow: 0 20px 44px rgba(255, 142, 70, 0.26);
}

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

.btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn .btn-badge {
    margin-left: auto;
    margin-right: var(--badge-margin);
    padding: 8px 12px;
    font-size: clamp(11px, 3vw, 12px);
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255, 170, 90, 0.2);
    border: 1px solid rgba(255, 198, 130, 0.44);
    color: #fff4e4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform-origin: center right;
    transform: translateX(var(--badge-shift)) scale(var(--badge-scale));
}

@supports selector(:has(*)) {
  .btn:has(.btn-badge){ padding-right: clamp(10px, 3vw, 14px); }
}

.bottom-actions {
    margin-top: clamp(10px, 3vw, 18px);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 4vw, 20px);
    align-items: start;
}

.action-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.action-circle-btn {
    position: relative;
    width: clamp(86px, 20vw, 104px);
    height: clamp(86px, 20vw, 104px);
    border-radius: 50%;
    border: 1px solid rgba(255, 170, 110, 0.38);
    background: rgba(26, 12, 9, 0.82);
    display: grid;
    place-items: center;
    color: #fff6ec;
    box-shadow: 0 26px 52px rgba(4, 0, 0, 0.46);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.action-circle-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.action-circle-btn::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 190, 130, 0.2);
    opacity: 0.6;
    pointer-events: none;
}

.action-circle-icon,
.action-circle-bonus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.action-circle-icon svg {
    width: clamp(28px, 6vw, 34px);
    height: clamp(28px, 6vw, 34px);
}

.action-circle-bonus {
    opacity: 0;
    transform: scale(0.84);
    min-width: 100%;
    padding: 0 4px;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff6eb;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    text-align: center;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.action-circle-bonus-line {
    display: block;
    letter-spacing: inherit;
}

.action-circle-bonus-line:first-child {
    font-size: clamp(18px, 4.8vw, 20px);
    letter-spacing: 0.12em;
}

.action-circle-bonus-line:last-child {
    font-size: clamp(11px, 2.6vw, 12px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .action-circle--ref:hover .action-circle-icon,
    .action-circle--ref:focus-within .action-circle-icon {
        opacity: 0;
        transform: scale(0.78);
    }

    .action-circle--ref:hover .action-circle-bonus,
    .action-circle--ref:focus-within .action-circle-bonus {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fallback для устройств без hover — показываем бонус при активном состоянии */
.action-circle--ref:active .action-circle-icon {
    opacity: 0;
    transform: scale(0.78);
}

.action-circle--ref:active .action-circle-bonus {
    opacity: 1;
    transform: scale(1);
}

.action-circle--ref:focus-visible .action-circle-icon {
    opacity: 0;
    transform: scale(0.78);
}

.action-circle--ref:focus-visible .action-circle-bonus {
    opacity: 1;
    transform: scale(1);
}

.action-circle:hover .action-circle-btn {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(255, 205, 140, 0.68);
    background: rgba(42, 18, 12, 0.88);
    box-shadow: 0 30px 68px rgba(255, 110, 20, 0.35);
}

.action-label {
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 700;
    color: #fff6eb;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
    .bottom-actions {
        gap: clamp(12px, 4vw, 16px);
    }
    .action-circle-btn {
        width: clamp(76px, 22vw, 96px);
        height: clamp(76px, 22vw, 96px);
    }
}

@media (max-height: 720px) {
    .btn {
        height: 54px;
    }
    .action-circle-btn {
        width: 74px;
        height: 74px;
    }
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .home-hero {
        backdrop-filter: none;
        background: linear-gradient(150deg, rgba(30, 12, 8, 0.95) 0%, rgba(26, 10, 22, 0.92) 48%, rgba(12, 6, 16, 0.94) 100%);
    }

    /* REMOVED .home-hero::before override */

    .glass-button::before,
    .glass-button::after,
    .action-circle-btn::before,
    .action-circle-btn::after {
        opacity: 0.4;
    }
}

@supports not (mix-blend-mode: overlay) {
    .app-background::after {
        mix-blend-mode: normal;
        opacity: 0.4;
    }
}


/* АДАПТИВ */
@media (max-height: 720px) {
    .btn {
        height: 52px;
        font-size: 15px;
    }
    .brand-logo-img {
        width: 40px;
        height: 40px;
    }
    .action-circle-btn {
        width: 76px;
        height: 76px;
    }
    .action-label {
        font-size: 12px;
    }
}

@media (max-height: 640px) {
    .btn {
        height: 50px;
        font-size: 14px;
    }
    .home-hero {
        padding: 16px;
    }
    .view.view-home.view--single {
        gap: 14px;
    }
    .action-circle-btn {
        width: 70px;
        height: 70px;
    }
    .action-circle-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 360px) {
    .action-label {
        font-size: 11px;
    }
    .btn .btn-badge {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* ========================================
   ACCOUNT VIEW - CLEAN CARDS (NO BACKGROUND)
   ======================================== */

.view-account {
    background: none !important;
    box-shadow: none !important;
}

.view-account .view-scroll {
    background: none !important;
    box-shadow: none !important;
    padding-right: 4px;
    /* важное: больше не режем подсветку/тени/трансформации */
    overflow: visible;
}


/* Clean card without background/border (Liquid Glass style) */
.account-card-clean {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 16px);
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========================================
   HELP SECTION - LIQUID GLASS DESIGN
   ======================================== */

/* Help view container */
.view-help .view-scroll,
.view-help-setup .view-scroll,
.view-help-troubleshoot .view-scroll {
    gap: clamp(16px, 4vw, 20px);
    overflow: visible;
    padding-bottom: clamp(20px, 5vw, 24px);
}

/* Help Section Header */
.help-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2.5vw, 12px);
    padding: clamp(20px, 5vw, 24px) clamp(16px, 4vw, 20px);
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.06) 0%, rgba(10, 5, 15, 0.4) 100%);
    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    border: 1.5px solid rgba(255, 170, 110, 0.2);
    border-radius: 18px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
}

.help-section-icon {
    width: clamp(48px, 11vw, 56px);
    height: clamp(48px, 11vw, 56px);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.2) 0%, rgba(20, 10, 30, 0.7) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.help-section-icon svg {
    width: clamp(24px, 6vw, 28px);
    height: clamp(24px, 6vw, 28px);
}

.help-section-title {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.help-section-subtitle {
    font-size: clamp(0.85rem, 2.7vw, 0.94rem);
    color: var(--text-muted);
    opacity: 0.85;
    line-height: 1.5;
    margin: 0;
}

/* Modal Window */
.help-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 24px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-modal.show {
    opacity: 1;
    visibility: visible;
}

.help-modal-content {
    position: relative;
    width: 100%;
    max-width: clamp(340px, 90vw, 480px);
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: clamp(24px, 6vw, 32px);
    background: linear-gradient(155deg, rgba(30, 12, 8, 0.95) 0%, rgba(24, 10, 28, 0.92) 50%, rgba(10, 4, 18, 0.92) 100%);
    backdrop-filter: blur(38px) saturate(140%);
    -webkit-backdrop-filter: blur(38px) saturate(140%);
    border: 2px solid rgba(255, 170, 110, 0.35);
    border-radius: 20px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.8),
        0 0 48px rgba(255, 140, 60, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-modal.show .help-modal-content {
    transform: scale(1);
}

.whitelist-info-modal {
    background: rgba(49, 45, 33, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.whitelist-info-modal .help-modal-content {
    max-width: clamp(320px, 88vw, 420px);
    padding: 24px 22px 20px;
    background: #DDD4C1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid #5E604E;
    border-radius: 15px;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.22);
}

.whitelist-info-modal .help-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: transparent;
    border: 0;
    color: #5E604E;
}

.whitelist-info-badge {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #5E604E;
    background: rgba(94, 96, 78, 0.1);
    color: #5E604E;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.help-modal-title.whitelist-info-title {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #171711;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    padding-right: 0;
    margin-bottom: 14px;
}

.help-modal-intro.whitelist-info-text {
    margin: 0;
    text-align: left;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.58;
    letter-spacing: -0.2px;
    color: rgba(51, 52, 40, 0.96);
}

@media (hover: hover) and (pointer: fine) {
    .whitelist-info-modal .help-modal-close:hover {
        background: rgba(94, 96, 78, 0.08);
        border: 1.5px solid rgba(94, 96, 78, 0.18);
        color: #4E503F;
        transform: translateY(-1px);
    }
}

.whitelist-info-modal .help-modal-close:active,
.view-plans--figma .pricing-selection-help:active,
.view-plans--figma .plans-compact-container--renewal .subscription-status-action:active {
    transform: none !important;
}

.view-plans--figma .pricing-selection-help:active {
    background: rgba(94, 96, 78, 0.12);
    border-color: rgba(94, 96, 78, 0.28);
}

.view-plans--figma .plans-compact-container--renewal .subscription-status-action:active {
    background: rgba(94, 96, 78, 0.12);
    border-color: rgba(94, 96, 78, 0.24);
    box-shadow: none !important;
}

.help-platform-guide-modal {
    background: rgba(213, 201, 177, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.help-platform-guide-stage {
    position: relative;
    width: min(370px, 100%);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-modal.show .help-platform-guide-stage {
    opacity: 1;
    transform: scale(1);
}

.help-platform-guide-shadow {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    pointer-events: none;
}

.help-platform-guide-card {
    position: relative;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 27px 15px 15px;
    background: #DDD4C1;
    border: 2px solid #5E604E;
    border-radius: 15px;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.22);
}

.help-platform-guide-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5E604E;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.help-platform-guide-close svg {
    width: 15px;
    height: 15px;
}

.help-platform-guide-title {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.help-platform-guide-subtitle {
    margin: 5px 0 25px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.help-platform-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.help-platform-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.help-platform-guide-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 1px solid #5E604E;
    background: rgba(94, 96, 78, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.help-platform-guide-step-text {
    min-width: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.help-platform-guide-step-text a {
    color: #5E604E !important;
    font-weight: 600;
    text-decoration: underline;
}

.help-platform-guide-action,
.help-platform-guide-secondary {
    width: 100%;
    min-height: 38px;
    margin-top: 30px;
    border: 0;
    border-radius: 10px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.help-platform-guide-action {
    background: #5E604E;
    color: #FFFFFF;
}

.help-platform-guide-secondary {
    margin-top: 10px;
    background: rgba(94, 96, 78, 0.1);
    border: 1px solid rgba(94, 96, 78, 0.22);
    color: #5E604E;
}

@media (hover: hover) and (pointer: fine) {
    .help-platform-guide-close:hover {
        background: rgba(94, 96, 78, 0.08);
        transform: translateY(-1px);
    }

    .help-platform-guide-action:hover,
    .help-platform-guide-secondary:hover {
        transform: translateY(-1px);
    }

    .help-platform-guide-action:hover {
        background: #565848;
    }

    .help-platform-guide-secondary:hover {
        background: rgba(94, 96, 78, 0.14);
        border-color: rgba(94, 96, 78, 0.28);
    }
}

.help-platform-guide-close:active,
.help-platform-guide-action:active,
.help-platform-guide-secondary:active {
    transform: none;
}

@media (max-width: 390px) {
    .help-platform-guide-card {
        padding: 25px 14px 14px;
    }

    .help-platform-guide-title {
        font-size: 22px;
    }

    .help-platform-guide-subtitle,
    .help-platform-guide-step-text {
        font-size: 15px;
    }

    .help-platform-guide-action,
    .help-platform-guide-secondary {
        margin-top: 22px;
    }

    .help-platform-guide-secondary {
        margin-top: 10px;
    }
}

/* Promo modals in paper theme */
.promo-activate-modal,
.promo-subs-modal {
    background: rgba(49, 45, 33, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.promo-activate-modal .help-modal-content,
.promo-subs-modal .help-modal-content {
    width: min(370px, calc(100vw - 32px));
    max-width: 370px;
    padding: 24px 18px 18px;
    background: #ddd4c1;
    border: 2px solid #5e604e;
    border-radius: 15px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 24px 54px rgba(94, 96, 78, 0.22);
}

.promo-paper-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #5e604e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.promo-paper-close svg {
    width: 20px;
    height: 20px;
}

.promo-activate-hero,
.promo-subs-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: 2px;
}

.promo-activate-icon,
.promo-subs-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 2px solid #5e604e;
    background: rgba(94, 96, 78, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e604e;
    box-shadow: none;
}

.promo-activate-icon svg,
.promo-subs-icon svg {
    width: 24px;
    height: 24px;
}

.promo-activate-title,
.promo-subs-title {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.4px;
    color: #000000;
}

.promo-activate-code {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid #5e604e;
    background: rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0.08em;
    color: #5e604e;
    text-transform: uppercase;
}

.promo-activate-text,
.promo-subs-text {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: -0.2px;
    color: rgba(0, 0, 0, 0.66);
}

.promo-activate-text strong {
    font-weight: 600;
    color: #5e604e;
}

.promo-subs-actions,
.promo-activate-actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

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

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

.promo-activate-btn,
.promo-subs-btn,
.promo-subs-status-card .promo-subs-use {
    min-height: 42px;
    width: 100%;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid #5e604e;
    appearance: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.promo-activate-btn--accept,
.promo-subs-btn--primary,
.promo-subs-status-card .promo-subs-use {
    background: #5e604e;
    color: #ffffff;
}

.promo-activate-btn--decline,
.promo-subs-btn--secondary {
    background: rgba(94, 96, 78, 0.08);
    color: #5e604e;
}

.promo-subs-check-btn.is-loading {
    pointer-events: none;
    opacity: 0.84;
}

.promo-subs-btn-icon,
.promo-subs-btn-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-subs-btn-icon svg,
.promo-subs-btn-spinner svg {
    width: 18px;
    height: 18px;
}

.promo-subs-btn-spinner svg {
    animation: spin 0.9s linear infinite;
}

.promo-subs-status {
    margin-top: 16px;
    display: none;
}

.promo-subs-status.is-visible {
    display: block;
}

.promo-subs-status-card {
    padding: clamp(14px, 3.5vw, 18px);
    border-radius: 14px;
    border: 1.5px solid rgba(94, 96, 78, 0.18);
    background: rgba(94, 96, 78, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    animation: promoStatusSlide 0.3s ease;
}

.promo-subs-status-card.is-success {
    border-color: rgba(94, 96, 78, 0.28);
    background: rgba(94, 96, 78, 0.1);
}

.promo-subs-status-card.is-fail {
    border-color: rgba(139, 77, 65, 0.28);
    background: rgba(139, 77, 65, 0.08);
}

.promo-subs-status-indicator {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1.5px solid rgba(94, 96, 78, 0.18);
    background: rgba(94, 96, 78, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e604e;
    animation: promoStatusPop 0.45s ease;
}

.promo-subs-status-card.is-fail .promo-subs-status-indicator {
    color: #8b4d41;
    border-color: rgba(139, 77, 65, 0.28);
    background: rgba(139, 77, 65, 0.08);
}

.promo-subs-status-icon svg,
.promo-subs-status-spinner svg {
    width: 22px;
    height: 22px;
}

.promo-subs-status-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-subs-status-spinner svg {
    animation: spin 0.9s linear infinite;
}

.promo-subs-status-text {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: -0.2px;
    color: rgba(0, 0, 0, 0.72);
}

.promo-subs-status-card .promo-subs-subscribe,
.promo-subs-status-card .promo-subs-use {
    margin-top: 2px;
}

.promo-subs-status-hint {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 420px) {
    .promo-activate-actions {
        grid-template-columns: 1fr;
    }
}

@media (hover: hover) and (pointer: fine) {
    .promo-paper-close:hover {
        background: rgba(94, 96, 78, 0.08);
        color: #4e503f;
        transform: translateY(-1px);
    }

    .promo-activate-btn--accept:hover,
    .promo-subs-btn--primary:hover,
    .promo-subs-status-card .promo-subs-use:hover {
        background: #545742;
        box-shadow: 0 10px 24px rgba(94, 96, 78, 0.18);
        transform: translateY(-1px);
    }

    .promo-activate-btn--decline:hover,
    .promo-subs-btn--secondary:hover {
        background: rgba(94, 96, 78, 0.12);
        transform: translateY(-1px);
    }
}

.promo-paper-close:active,
.promo-activate-btn:active,
.promo-subs-btn:active,
.promo-subs-status-card .promo-subs-use:active {
    transform: none;
    box-shadow: none;
}

@keyframes promoStatusPop {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes promoStatusSlide {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-manager-modal {
    padding: 0;
    background: rgba(58, 50, 38, 0.34);
    backdrop-filter: blur(10px) saturate(90%);
    -webkit-backdrop-filter: blur(10px) saturate(90%);
}

.device-manager-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(221, 212, 193, 0.22) 0%, rgba(221, 212, 193, 0.1) 28%, rgba(221, 212, 193, 0) 56%),
        rgba(48, 40, 28, 0.2);
    pointer-events: none;
}

.device-manager-stage {
    position: relative;
    z-index: 1;
    width: min(402px, 100vw);
    min-height: var(--app-minh, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-manager-modal.show .device-manager-stage {
    transform: translateY(0);
}

.device-manager-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(370px, calc(100vw - 32px));
    height: 324px;
    border-radius: 15px;
    background: rgba(94, 96, 78, 0.5);
    filter: blur(41.75px);
    opacity: 0.64;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.device-manager-shell {
    position: relative;
    width: min(370px, calc(100vw - 32px));
    min-height: 353px;
    padding: 28px 14px 14px;
    background: #DDD4C1;
    border: 2px solid #5E604E;
    border-radius: 15px;
    box-sizing: border-box;
    color: #000000;
}

.device-manager-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5E604E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.device-manager-close svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.device-manager-close:active {
    transform: scale(0.96);
}

.device-manager-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    scrollbar-width: auto;
}

.device-manager-inner::-webkit-scrollbar {
    width: 0;
}

.device-manager-inner::-webkit-scrollbar-thumb {
    background: transparent;
}

.device-figma-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 13px 0 15px;
}

.device-figma-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #000000;
}

.device-figma-usage {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #5E604E;
}

.device-figma-note {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.device-figma-box {
    width: 340px;
    min-height: 194px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #5E604E;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.device-figma-box.has-devices {
    display: block;
}

.device-figma-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 172px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 96, 78, 0.38) transparent;
}

.device-figma-list::-webkit-scrollbar {
    width: 4px;
}

.device-figma-list::-webkit-scrollbar-thumb {
    background: rgba(94, 96, 78, 0.38);
    border-radius: 999px;
}

.device-figma-row-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.device-figma-row-item.is-selected {
    padding: 8px 8px 10px;
    border-radius: 12px;
    background: rgba(94, 96, 78, 0.08);
}

.device-figma-row {
    min-height: 38px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.device-figma-row-icon {
    width: 18px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5E604E;
}

.device-figma-row-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.device-figma-row-title {
    min-width: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #5E604E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-figma-row-action {
    min-width: 125px;
    height: 26px;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: #5E604E;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.device-figma-row-action:active {
    transform: scale(0.98);
}

.device-figma-row-action[disabled] {
    opacity: 0.78;
    cursor: default;
}

.device-figma-row-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.device-figma-row-spinner svg {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

.device-figma-empty {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 18px 20px;
    box-sizing: border-box;
}

.device-figma-empty-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5E604E;
}

.device-figma-empty-icon svg {
    width: 40px;
    height: 40px;
}

.device-figma-empty-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #000000;
}

.device-figma-empty-hint {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: rgba(0, 0, 0, 0.5);
}

.device-figma-warning {
    width: 340px;
    min-height: 194px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #5E604E;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    color: #5E604E;
}

.device-figma-warning-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.device-figma-warning-icon svg {
    width: 24px;
    height: 24px;
}

.device-figma-warning-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: rgba(0, 0, 0, 0.64);
}

@media (max-width: 390px) {
    .device-manager-stage {
        padding: 12px;
    }

    .device-manager-shadow,
    .device-manager-shell {
        width: calc(100vw - 24px);
    }

    .device-figma-box,
    .device-figma-warning {
        width: 100%;
    }

    .device-figma-row {
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: start;
    }

    .device-figma-row-title {
        grid-column: 2;
        grid-row: 1;
    }

    .device-figma-row-action {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        min-width: 112px;
        margin-top: 2px;
    }

    .device-action-modal,
    .device-limit-panel {
        width: min(420px, calc(100vw - 20px));
        padding: 24px 18px 18px;
    }

    .device-limit-panel-summary {
        gap: 8px;
    }

    .device-limit-panel-stat {
        padding: 11px 12px;
    }

    .device-limit-panel-stat-value {
        font-size: 20px;
    }
}

.device-action-modal {
    width: min(420px, calc(100vw - 28px));
}

.device-action-modal-icon {
    color: #5E604E;
    background: rgba(94, 96, 78, 0.08);
}

.device-limit-modal {
    position: fixed;
    inset: 0;
    z-index: 18020;
}

.device-limit-panel {
    width: min(430px, calc(100vw - 28px));
    padding: 26px 22px 20px;
}

.device-limit-panel-icon {
    color: #5E604E;
    background: rgba(94, 96, 78, 0.08);
}

.device-limit-panel-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.device-limit-panel-stat {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(94, 96, 78, 0.18);
    background: rgba(94, 96, 78, 0.06);
    text-align: left;
}

.device-limit-panel-stat-label {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.54);
}

.device-limit-panel-stat-value {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.4px;
}

.device-limit-panel-actions {
    margin-top: 18px;
    flex-direction: column;
}

.device-limit-panel-actions .device-downgrade-modal-btn {
    width: 100%;
}

.help-modal-close {
    position: absolute;
    top: clamp(12px, 3vw, 16px);
    right: clamp(12px, 3vw, 16px);
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.1) 0%, rgba(10, 5, 15, 0.5) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.2);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.help-modal-close:hover {
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.15) 0%, rgba(10, 5, 15, 0.6) 100%);
    border-color: rgba(255, 170, 110, 0.35);
    color: var(--text);
    transform: scale(1.05);
}

.help-modal-close:active {
    transform: scale(0.95);
}

.help-modal-close svg {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
}

.help-modal-title {
    font-size: clamp(1.3rem, 4.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 clamp(8px, 2vw, 12px);
    padding-right: clamp(40px, 10vw, 50px);
    line-height: 1.3;
}

.help-modal-intro {
    font-size: clamp(0.92rem, 3.1vw, 1.02rem);
    color: var(--text-muted);
    margin: 0 0 clamp(16px, 4vw, 20px);
    line-height: 1.5;
}

/* Platform Setup Detail (Modal) */
.help-platform-detail {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 4.5vw, 22px);
}

.help-platform-detail-header {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3.5vw, 16px);
}

.help-platform-detail-icon {
    flex-shrink: 0;
    width: clamp(56px, 13vw, 68px);
    height: clamp(56px, 13vw, 68px);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.15) 0%, rgba(20, 10, 30, 0.6) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.help-platform-detail-icon svg {
    width: clamp(28px, 7vw, 36px);
    height: clamp(28px, 7vw, 36px);
}

.help-platform-detail-info {
    flex: 1;
    min-width: 0;
}

.help-platform-detail-name {
    font-size: clamp(1.15rem, 4vw, 1.3rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 clamp(4px, 1vw, 6px);
    line-height: 1.3;
}

.help-platform-detail-app {
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    color: var(--text-muted);
    opacity: 0.75;
}

.help-platform-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: clamp(14px, 3.5vw, 16px);
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.06) 0%, rgba(10, 5, 15, 0.4) 100%);
    border: 1px solid rgba(255, 170, 110, 0.15);
    border-radius: 12px;
    opacity: 0.9;
}

.help-platform-download-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(12px, 3vw, 14px);
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.15) 0%, rgba(20, 10, 30, 0.6) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.3);
    border-radius: 12px;
    color: var(--accent);
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 140, 60, 0.2);
}

.help-platform-download-button svg {
    width: clamp(18px, 4.5vw, 22px);
    height: clamp(18px, 4.5vw, 22px);
}

.help-platform-download-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 170, 110, 0.5);
    box-shadow: 0 8px 20px rgba(255, 140, 60, 0.3);
}

.help-platform-download-button:active {
    transform: translateY(0);
}

.help-platform-download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 2.5vw, 12px);
}

.help-platform-alternative {
    font-size: clamp(0.82rem, 2.6vw, 0.9rem);
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding: clamp(10px, 2.5vw, 12px) clamp(14px, 3.5vw, 16px);
    background: rgba(255, 140, 60, 0.05);
    border-radius: 10px;
    border-left: 3px solid rgba(255, 140, 60, 0.4);
}

.help-platform-alt-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.8vw, 8px);
    margin-top: clamp(10px, 2.5vw, 12px);
    padding: clamp(10px, 2.8vw, 12px);
    background: rgba(255, 140, 60, 0.08);
    border: 1px solid rgba(255, 170, 110, 0.35);
    border-radius: 12px;
    color: var(--accent);
    font-size: clamp(0.88rem, 2.9vw, 0.96rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(255, 140, 60, 0.18);
}

.help-platform-alt-button svg {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
}

.help-platform-alt-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 140, 60, 0.25);
}

.help-platform-alt-button:active {
    transform: translateY(0);
}

.help-platform-detail-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 12px);
}

.help-platform-detail-step {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2.5vw, 12px);
    font-size: clamp(0.88rem, 2.9vw, 0.98rem);
    color: var(--text);
    line-height: 1.5;
}

.help-platform-detail-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(26px, 6.5vw, 30px);
    height: clamp(26px, 6.5vw, 30px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.2) 0%, rgba(20, 10, 30, 0.7) 100%);
    border: 1px solid rgba(255, 170, 110, 0.35);
    font-size: clamp(0.78rem, 2.5vw, 0.88rem);
    font-weight: 700;
    color: var(--accent);
}

.help-platform-detail-step-text {
    flex: 1;
    min-width: 0;
}

.help-platform-detail-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(14px, 3.5vw, 16px);
    background: linear-gradient(135deg, #33eeb2 0%, #2dd4a0 100%);
    border: none;
    border-radius: 14px;
    color: #0a0515;
    font-size: clamp(0.95rem, 3.2vw, 1.05rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 20px rgba(51, 238, 178, 0.3),
        0 2px 8px rgba(51, 238, 178, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.help-platform-detail-button svg {
    width: clamp(18px, 4.5vw, 22px);
    height: clamp(18px, 4.5vw, 22px);
}

.help-platform-detail-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 42px rgba(51, 238, 178, 0.5),
        0 8px 24px rgba(51, 238, 178, 0.35),
        0 2px 12px rgba(51, 238, 178, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.help-platform-detail-button:active {
    transform: translateY(0) scale(0.98);
}

/* Platform Tutorials */
.help-platform-tutorial {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 3.5vw, 16px);
    padding: clamp(18px, 4.5vw, 22px);
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.04) 0%, rgba(10, 5, 15, 0.35) 100%);
    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    border: 1.5px solid rgba(255, 170, 110, 0.15);
    border-radius: 16px;
    margin-bottom: clamp(14px, 3.5vw, 16px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: visible;
}

.help-platform-tutorial-header {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3.5vw, 16px);
}

.help-platform-tutorial-icon {
    flex-shrink: 0;
    width: clamp(52px, 12vw, 64px);
    height: clamp(52px, 12vw, 64px);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.15) 0%, rgba(20, 10, 30, 0.6) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.help-platform-tutorial-icon svg {
    width: clamp(26px, 6.5vw, 32px);
    height: clamp(26px, 6.5vw, 32px);
}

.help-platform-tutorial-info {
    flex: 1;
    min-width: 0;
}

.help-platform-tutorial-name {
    font-size: clamp(1.05rem, 3.8vw, 1.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: clamp(2px, 0.5vw, 4px);
}

.help-platform-tutorial-app {
    font-size: clamp(0.82rem, 2.7vw, 0.92rem);
    color: var(--text-muted);
    opacity: 0.75;
}

.help-platform-tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 10px);
}

.help-platform-tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 2.5vw, 12px);
    font-size: clamp(0.88rem, 2.9vw, 0.98rem);
    color: var(--text);
    line-height: 1.5;
}

.help-platform-tutorial-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(24px, 6vw, 28px);
    height: clamp(24px, 6vw, 28px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.2) 0%, rgba(20, 10, 30, 0.7) 100%);
    border: 1px solid rgba(255, 170, 110, 0.35);
    font-size: clamp(0.75rem, 2.4vw, 0.85rem);
    font-weight: 700;
    color: var(--accent);
}

.help-platform-tutorial-step-text {
    flex: 1;
    min-width: 0;
}

.help-platform-tutorial-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(14px, 3.5vw, 16px);
    background: linear-gradient(135deg, #33eeb2 0%, #2dd4a0 100%);
    border: none;
    border-radius: 14px;
    color: #0a0515;
    font-size: clamp(0.95rem, 3.2vw, 1.05rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 20px rgba(51, 238, 178, 0.3),
        0 2px 8px rgba(51, 238, 178, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.help-platform-tutorial-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 42px rgba(51, 238, 178, 0.5),
        0 8px 24px rgba(51, 238, 178, 0.35),
        0 2px 12px rgba(51, 238, 178, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.help-platform-tutorial-button:active {
    transform: translateY(0) scale(0.98);
}

/* Modal step numbers */
/* Responsive adjustments for small screens */
@media (max-width: 360px) {
    .help-modal-content {
        padding: 20px;
    }
}

/* ================================
   ANDROID TV SETUP - Liquid Glass Style
   ================================ */

/* TV Info Card - Liquid Glass (новая структура: header + text) */
.tv-setup-info-card {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(12px, 3vw, 16px);
    margin: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(51, 238, 178, 0.06) 0%, rgba(10, 5, 15, 0.4) 100%);
    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    border: 1.5px solid rgba(51, 238, 178, 0.15);
    border-radius: 14px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: visible;
}

/* Header: иконка + заголовок в одной строке */
.tv-setup-info-header {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.5vw, 12px);
}

.tv-setup-info-icon {
    flex-shrink: 0;
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(51, 238, 178, 0.15) 0%, rgba(20, 10, 30, 0.6) 100%);
    border: 1.5px solid rgba(51, 238, 178, 0.25);
    border-radius: 10px;
    color: var(--primary);
}

.tv-setup-info-icon svg {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
}

.tv-setup-info-title {
    margin: 0;
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
    flex: 1;
}

/* Text: во всю ширину под header */
.tv-setup-info-text {
    margin: 0;
    font-size: clamp(13px, 3.2vw, 14px);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.5;
    width: 100%;
    text-align: center;
}

.tv-setup-info-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Left-aligned version for step 2 */
.tv-setup-info-text.text-left {
    text-align: left;
}

/* TV Step Cards - 3 numbered cards */
.tv-step-cards {
    display: flex;
    flex-direction: column;
    gap: var(--setup-stack-gap);
    margin-top: 0;
}

/* Reduced top margin for step 2 */
.tv-step-cards-reduced {
    margin-top: 0;
}

.tv-step-card {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 14px);
    padding: clamp(12px, 3vw, 14px);
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.05) 0%, rgba(10, 5, 15, 0.35) 100%);
    backdrop-filter: blur(14px) saturate(105%);
    -webkit-backdrop-filter: blur(14px) saturate(105%);
    border: 1.5px solid rgba(255, 170, 110, 0.12);
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.tv-step-number {
    flex-shrink: 0;
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.2) 0%, rgba(20, 10, 30, 0.7) 100%);
    border: 1.5px solid rgba(255, 170, 110, 0.3);
    border-radius: 10px;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: var(--accent);
}

.tv-step-text {
    flex: 1;
    margin: 0;
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.tv-step-text strong {
    color: var(--primary);
    font-weight: 700;
}

/* TV Final Steps - Step 3 cards */
.tv-final-steps {
    display: flex;
    flex-direction: column;
    gap: var(--setup-stack-gap);
    margin-top: 0;
    margin-bottom: clamp(14px, 3.5vw, 20px);
}

.tv-final-step {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(14px, 3.5vw, 18px);
    background: linear-gradient(135deg, rgba(51, 238, 178, 0.06) 0%, rgba(10, 5, 15, 0.4) 100%);
    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    border: 1.5px solid rgba(51, 238, 178, 0.15);
    border-radius: 16px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: visible;
}

.tv-final-header {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
}

.tv-final-icon {
    flex-shrink: 0;
    width: clamp(40px, 10vw, 46px);
    height: clamp(40px, 10vw, 46px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(51, 238, 178, 0.18) 0%, rgba(20, 10, 30, 0.65) 100%);
    border: 1.5px solid rgba(51, 238, 178, 0.28);
    border-radius: 12px;
    color: var(--primary);
}

.tv-final-icon svg {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
}

.tv-final-title {
    margin: 0;
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.tv-final-text {
    margin: 0;
    width: 100%;
    font-size: clamp(13px, 3.2vw, 14px);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.tv-final-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* =====================================================
   PAYMENT STATUS VIEWS - ANIMATIONS & STYLES
   ===================================================== */

@keyframes paperLoaderSweep {
    0% {
        transform: translateX(-110%);
    }
    50% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(250%);
    }
}

/* ============================================
   BOTTOM SHEET для подтверждения отмены платежа
   ============================================ */

/* Backdrop (полупрозрачный фон) */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Контейнер bottom sheet */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--color-bg-primary);
    border-radius: clamp(20px, 5vw, 24px) clamp(20px, 5vw, 24px) 0 0;
    padding: clamp(20px, 5vw, 28px);
    box-shadow:
        0 -4px 20px rgba(0, 0, 0, 0.3),
        0 -2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.bottom-sheet.active {
    transform: translateY(0);
}

/* Handle (полоска сверху для свайпа) */
.bottom-sheet-handle {
    width: clamp(36px, 10vw, 40px);
    height: clamp(4px, 1vw, 5px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto clamp(16px, 4vw, 20px);
}

/* Заголовок */
.bottom-sheet-title {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.5vw, 12px);
    font-size: clamp(18px, 4.5vw, 20px);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: clamp(12px, 3vw, 16px);
}

.bottom-sheet-title-icon {
    flex-shrink: 0;
    width: clamp(22px, 5.5vw, 24px);
    height: clamp(22px, 5.5vw, 24px);
}

/* Текст предупреждения */
.bottom-sheet-text {
    font-size: clamp(14px, 3.5vw, 15px);
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: clamp(20px, 5vw, 24px);
}

/* Кнопки */
.bottom-sheet-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 12px);
}

.bottom-sheet-btn {
    width: 100%;
    padding: clamp(14px, 3.5vw, 16px);
    border-radius: clamp(12px, 3vw, 14px);
    font-size: clamp(15px, 3.7vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-align: center;
}

/* Основная кнопка (Дождаться) */
.bottom-sheet-btn--primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 133, 29, 0.3);
}

.bottom-sheet-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 133, 29, 0.4);
}

.bottom-sheet-btn--primary:active {
    transform: translateY(0);
}

/* Второстепенная кнопка (Отменить) */
.bottom-sheet-btn--danger {
    background: transparent;
    border: 1.5px solid rgba(255, 100, 100, 0.3);
    color: rgba(255, 102, 102, 0.9);
}

.bottom-sheet-btn--danger:hover {
    background: rgba(255, 70, 70, 0.1);
    border-color: rgba(255, 100, 100, 0.4);
}

.bottom-sheet-btn--danger:active {
    transform: scale(0.98);
}

.bottom-sheet-btn--compact {
    width: auto;
    min-height: clamp(40px, 3.6vw, 44px);
    padding: clamp(10px, 2.6vw, 12px) clamp(14px, 3.4vw, 18px);
    font-size: clamp(13px, 3.2vw, 14px);
    align-self: center;
}

.telegram-launch-abort-backdrop {
    z-index: 1215;
    background: rgba(6, 8, 18, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.telegram-launch-abort-sheet {
    z-index: 1216;
    left: 12px;
    right: 12px;
    margin: 0 auto 10px;
    width: min(560px, calc(100vw - 24px));
    border: 1px solid rgba(255, 170, 112, 0.28);
    background:
        radial-gradient(130% 180% at 10% -10%, rgba(255, 170, 112, 0.18) 0%, rgba(255, 170, 112, 0) 52%),
        linear-gradient(165deg, rgba(40, 16, 14, 0.92) 0%, rgba(20, 10, 26, 0.94) 100%);
}

.telegram-launch-abort-sheet .bottom-sheet-title {
    margin-bottom: clamp(10px, 2.8vw, 14px);
}

.telegram-launch-abort-sheet .bottom-sheet-text {
    margin-bottom: clamp(18px, 4.4vw, 22px);
    color: rgba(236, 221, 210, 0.92);
}

.telegram-launch-abort-sheet .bottom-sheet-btn--danger {
    border-color: rgba(255, 128, 114, 0.42);
    color: rgba(255, 177, 167, 0.95);
}

.telegram-launch-abort-sheet .bottom-sheet-btn--danger:hover {
    background: rgba(255, 92, 92, 0.12);
}


.device-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 15px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-summary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.device-summary-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.device-summary-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-summary-label {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.device-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    flex-shrink: 0;
}

.device-summary-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(255, 180, 100, 0.85);
    stroke: currentColor;
    filter: drop-shadow(0 1px 2px rgba(255, 140, 70, 0.25));
}

.device-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 140, 60, 0.16) 0%, rgba(255, 170, 110, 0.12) 100%);
    border: 1.2px solid rgba(255, 170, 110, 0.45);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 0 8px rgba(255, 140, 60, 0.15);
    flex-shrink: 0;
}

.device-summary-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}
.device-summary-change {
    font-size: 14px;                 /* было 13px */
    font-weight: 500;
    color: var(--accent);
    border: none;
    background: rgba(255, 138, 29, 0.15);
    border-radius: 999px;
    padding: 7px 16px;               /* было 6px 14px */
    white-space: nowrap;
    flex-shrink: 0;
}

.device-summary-dates {
    font-size: 13px;
    color: var(--text-muted);
}

.device-pending-badge {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 138, 29, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.device-pending-badge .btn-link {
    color: var(--accent);
    border: none;
    background: transparent;
    font-size: 13px;
    text-decoration: underline;
}

/* Адаптивность для device-summary */
@media (max-width: 400px) {
    .device-summary-card {
        padding: 13px 15px;
        gap: 10px;
    }

    .device-summary-content {
        gap: 5px;
    }

    .device-summary-main {
        gap: 6px;
    }

    .device-summary-label {
        font-size: 12px;
        gap: 4px;
    }

    .device-summary-badge {
        min-width: 30px;
        height: 24px;
        padding: 3px 9px;
        font-size: 15px;
    }

    .device-summary-change {
        font-size: 13.5px;
        padding: 11px 14px;
    }
}

@media (max-width: 360px) {
    .device-summary-card {
        padding: 13px 14px;
        gap: 8px;
    }

    .device-summary-content {
        gap: 5px;
    }

    .device-summary-main {
        gap: 5px;
    }

    .device-summary-label {
        font-size: 11.5px;
    }

    .device-summary-icon svg {
        width: 14px;
        height: 14px;
    }

    .device-summary-badge {
        min-width: 28px;
        height: 22px;
        padding: 2px 8px;
        font-size: 14px;
    }

    .device-summary-change {
        font-size: 12.5px;
        padding: 5px 11px;
    }
}

.plans-cta-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}


.change-devices-modal .help-modal-content {
    max-width: 420px;
}

.change-devices-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.change-devices-status,
.change-devices-info {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin: 8px 0;
}

.change-devices-error {
    text-align: center;
    color: #ff6868;
    font-size: 14px;
    margin: 8px 0;
}

.change-devices-extension {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.pill-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    background: transparent;
    color: #fff;
    font-size: 13px;
}

.pill.active {
    background: rgba(255, 138, 29, 0.2);
    border-color: var(--accent);
}

.change-devices-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* ===================================
   DEVICE LIMIT MANAGEMENT STYLES
   =================================== */

/* Main Container */
.device-limit-container {
    max-width: 100%;
    padding: 10px 6px;
    box-sizing: border-box;
    overflow: visible;
}

/* ===================================
   TOP CARD: Header + Current Status
   =================================== */
.device-limit-header {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 18px 12px 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
}

.device-limit-header-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.device-limit-header-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.device-limit-divider {
    display: none;
}

.device-limit-current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.device-limit-current-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.device-limit-current-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.device-limit-current-icon svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   BOTTOM CARD: Selector (Compact)
   =================================== */
.device-limit-selector-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 138, 29, 0.35);
    border-radius: 24px;
    padding: 14px 8px 12px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 138, 29, 0.1);
}

.device-limit-selector-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 138, 29, 0.95);
    letter-spacing: 0.3px;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(255, 138, 29, 0.3);
}

/* Controls: -/+/Display */
.device-limit-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.device-limit-btn-compact {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 138, 29, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 29, 0.35);
    color: #ff8a1d;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 10px rgba(255, 138, 29, 0.15);
}

.device-limit-btn-compact:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.device-limit-btn-compact:active {
    transform: scale(0.94);
    background: rgba(255, 138, 29, 0.2);
    border-color: rgba(255, 138, 29, 0.5);
    box-shadow: 0 1px 5px rgba(255, 138, 29, 0.25);
}

.device-limit-display-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 54px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.device-limit-display-compact:hover {
    background: rgba(255, 170, 110, 0.15);
    border-color: rgba(255, 170, 110, 0.4);
    transform: scale(1.05);
}

.device-limit-display-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(255, 138, 29, 0.5);
}

/* Slider Wrapper with Inline Labels */
.device-limit-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.device-limit-slider {
    flex: 1;
    height: 5px;
    border-radius: 2.5px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Slider Thumb */
.device-limit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff8a1d 0%, #ff6500 100%);
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 138, 29, 0.6),
                0 1px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.device-limit-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff8a1d 0%, #ff6500 100%);
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 138, 29, 0.6),
                0 1px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.device-limit-slider:active::-webkit-slider-thumb {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 138, 29, 0.8),
                0 2px 6px rgba(0, 0, 0, 0.5);
}

.device-limit-slider:active::-moz-range-thumb {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 138, 29, 0.8),
                0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Slider Labels (Inline) */
.device-limit-slider-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ===================================
   ACTION STATES
   =================================== */

/* No Change State */
.device-limit-no-change {
    margin-top: 12px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 138, 29, 0.15);
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

.device-limit-no-change-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Upgrade/Downgrade States */
.device-limit-action-card {
    margin-top: 12px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 138, 29, 0.25);
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

.device-limit-action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.device-limit-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 138, 29, 0.15);
}

.device-limit-action-icon svg {
    width: 16px;
    height: 16px;
}

.device-limit-action-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.device-limit-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.device-limit-price-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.device-limit-price-value {
    font-size: 17px;
    font-weight: 700;
    color: #ff8a1d;
}

.device-limit-action-description {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 7px 0 0 0;
    line-height: 1.4;
}

.device-limit-price-info-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 138, 29, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.device-limit-price-info-toggle:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.device-limit-price-info-toggle-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 138, 29, 0.9);
}

.device-limit-price-info-toggle-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.device-limit-price-info-toggle-icon.open {
    transform: rotate(180deg);
}

.device-limit-price-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-limit-price-info-content.open {
    max-height: 300px;
}

.device-limit-price-info-inner {
    padding: 10px 10px 0;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

/* Downgrade Warning */
.device-limit-warning {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255, 69, 0, 0.12);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
}

.device-limit-warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.device-limit-warning-icon svg {
    width: 16px;
    height: 16px;
    color: #ff6500;
}

.device-limit-warning-text {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin: 0;
}

/* Action Buttons */
.device-limit-button-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.device-limit-button {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.device-limit-button-primary {
    background: linear-gradient(135deg, #ff8a1d 0%, #ff6500 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 138, 29, 0.3);
}

.device-limit-button-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(255, 138, 29, 0.4);
}

.device-limit-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.device-limit-button-secondary:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.98);
}

.device-limit-downgrade-container {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-limit-change-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 138, 29, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.device-limit-change-icon {
    width: 22px;
    height: 22px;
    color: #ff8a1d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-limit-change-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-change-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.device-limit-downgrade-meta-card {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-limit-downgrade-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.device-limit-downgrade-meta-row span:last-child {
    white-space: nowrap;
}

.device-limit-downgrade-meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 201, 148, 0.9);
}

.device-limit-downgrade-meta-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-downgrade-warning {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 134, 84, 0.5);
    background: linear-gradient(150deg, rgba(255, 150, 102, 0.18), rgba(86, 10, 20, 0.72));
    box-shadow: 0 18px 28px rgba(11, 0, 4, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-limit-downgrade-warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-limit-downgrade-warning-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: rgba(255, 193, 140, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-limit-downgrade-warning-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-downgrade-warning-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff4eb;
    letter-spacing: -0.2px;
}

.device-limit-downgrade-warning-text {
    margin: 0;
    font-size: 13.2px;
    line-height: 1.45;
    color: rgba(255, 238, 227, 0.9);
}

.device-limit-downgrade-details-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.device-limit-downgrade-details-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding-right: 20px;
}

.device-limit-downgrade-details-label {
    flex: 1;
    white-space: nowrap;
}

.device-limit-downgrade-details-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 183, 103, 0.9);
}

.device-limit-downgrade-details-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-downgrade-details-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.device-limit-downgrade-details.is-open .device-limit-downgrade-details-chevron {
    transform: rotate(180deg);
}

.device-limit-downgrade-details-content {
    padding: 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-limit-downgrade-details.is-open .device-limit-downgrade-details-content {
    padding-top: 12px;
    padding-bottom: 14px;
}

.device-limit-downgrade-details-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 245, 236, 0.88);
}

.device-limit-downgrade-tip {
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.device-limit-downgrade-tip-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 207, 139, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.device-limit-downgrade-tip-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-downgrade-tip p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
}

/* Info Title with Icon */
.device-limit-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.device-limit-info-title-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.device-limit-info-title-icon svg {
    width: 100%;
    height: 100%;
}

/* Price Detail Text */
.device-limit-price-detail {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    line-height: 1.4;
}

/* Price Info Container */
.device-limit-price-info {
    margin-top: 10px;
}

.device-limit-price-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.device-limit-price-info-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.device-limit-price-info-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-price-info-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.device-limit-price-info-arrow svg {
    width: 100%;
    height: 100%;
}

.device-limit-price-info-text {
    margin: 0;
    line-height: 1.6;
}

/* Warning Icon (Large, centered) */
.device-limit-warning-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-limit-warning-icon svg {
    width: 100%;
    height: 100%;
    color: #ff8a1d;
    opacity: 0.9;
}

/* Warning Title */
.device-limit-warning-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-align: center;
}

/* Warning Text */
.device-limit-warning-text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
    line-height: 1.5;
    text-align: center;
}

.device-limit-warning-text:last-of-type {
    margin-bottom: 0;
}

/* Tip/Advice Block */
.device-limit-tip {
    margin-top: 12px;
    padding: 11px 13px;
    background: rgba(255, 138, 29, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255, 138, 29, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(255, 138, 29, 0.15);
}

.device-limit-tip-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.device-limit-tip-icon svg {
    width: 100%;
    height: 100%;
    color: #ff8a1d;
    opacity: 0.9;
}

.device-limit-tip-text {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.device-limit-tip-text strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Action Button (Single) */
.device-limit-action-btn {
    width: 100%;
    padding: 13px 18px;
    margin-top: 12px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(135deg, #ff8a1d 0%, #ff6500 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 138, 29, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.device-limit-action-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 3px 12px rgba(255, 138, 29, 0.5),
                0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   UPGRADE STATE - NEW DESIGN
   =================================== */

.device-limit-upgrade-container {
    margin-top: 12px;
}

/* Device Increase Info */
.device-limit-upgrade-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 138, 29, 0.3);
    border-radius: 14px;
    margin-bottom: 10px;
}

.device-limit-upgrade-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ff8a1d;
    flex-shrink: 0;
}

.device-limit-upgrade-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-upgrade-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

/* Price Display Row */
/* Micro Info Button */
.device-limit-price-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(94, 96, 78, 0.08);
    border: 1px solid rgba(94, 96, 78, 0.24);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10.5px;
    font-weight: 500;
    color: #5E604E;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.device-limit-price-calc-btn:hover {
    background: rgba(94, 96, 78, 0.12);
    border-color: rgba(94, 96, 78, 0.34);
}

.device-limit-price-calc-btn:active {
    transform: scale(0.96);
    background: rgba(94, 96, 78, 0.16);
}

.device-limit-price-calc-icon {
    display: flex;
    align-items: center;
    width: 14px;
    height: 14px;
}

.device-limit-price-calc-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-price-calc-text {
    line-height: 1;
}

.device-limit-price-calc-footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.device-limit-action-btn:disabled {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    text-shadow: none;
}

/* Extension Periods Selection */
.device-limit-extension-container {
    margin-bottom: 20px;
}

.device-limit-extension-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffe2c6;
    margin: 0 0 12px 0;
}

.device-limit-extension-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.device-limit-extension-btn {
    height: auto;
    padding: 14px;
    background: rgba(255, 138, 29, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255, 138, 29, 0.25);
    border-radius: 14px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.device-limit-extension-btn.selected {
    opacity: 1;
    border: 1px solid #ff8c46;
    box-shadow: 0 4px 16px rgba(255, 138, 29, 0.4),
                inset 0 1px 0 rgba(255, 138, 29, 0.2);
    background: rgba(255, 138, 29, 0.2);
}

.device-limit-extension-btn:active {
    transform: scale(0.96);
}

.device-limit-extension-badge {
    font-size: 9px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.device-limit-extension-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.device-limit-extension-price {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.device-limit-extension-total {
    font-size: 11px;
    opacity: 0.6;
}

/* Auto min-payment card */
.device-limit-minpay-compact {
    margin-top: 8px;
}

.device-limit-minpay-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid rgba(255, 168, 76, 0.9);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.device-limit-minpay-strip-copy {
    min-width: 0;
}

.device-limit-minpay-strip-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff8f1;
}

.device-limit-minpay-strip-note {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 224, 196, 0.72);
}

.device-limit-minpay-strip-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex: 0 0 auto;
}

.device-limit-minpay-strip-price {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    white-space: nowrap;
}

.device-limit-minpay-strip-side-label {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    color: rgba(255, 224, 196, 0.68);
    white-space: nowrap;
}

.device-limit-minpay-card {
    margin-top: 8px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.device-limit-minpay-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.device-limit-minpay-badge {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #ffe2c6;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.device-limit-minpay-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.device-limit-minpay-subtitle {
    margin: 0;
    color: rgba(255, 226, 198, 0.7);
    font-size: 11px;
    line-height: 1.35;
}

.device-limit-minpay-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 10px;
    background: rgba(255, 146, 60, 0.08);
    border: 1px solid rgba(255, 178, 112, 0.18);
    color: #ffe2c6;
}

.device-limit-minpay-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.device-limit-minpay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #ffe2c6;
}

.device-limit-minpay-row-label {
    opacity: 0.9;
}

.device-limit-minpay-row-value {
    font-weight: 700;
    color: #ffffff;
}

.device-limit-minpay-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.device-limit-minpay-note {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 226, 198, 0.8);
    line-height: 1.35;
}

.device-limit-minpay-note-icon {
    width: 16px;
    height: 16px;
    color: #ffb468;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-limit-alt-hint {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 178, 112, 0.24);
    background: rgba(255, 255, 255, 0.04);
    color: #ffe2c6;
    font-size: 11px;
    line-height: 1.35;
    display: flex;
    gap: 7px;
}

@media (max-width: 560px) {
    .device-limit-minpay-strip {
        gap: 12px;
        padding: 11px 11px 11px 12px;
    }

    .device-limit-minpay-strip-title {
        font-size: 14px;
    }

    .device-limit-minpay-strip-price {
        font-size: 17px;
    }

    .device-limit-minpay-strip-note,
    .device-limit-minpay-strip-side-label {
        font-size: 10px;
    }
}

.device-limit-alt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff8a1d;
    margin-top: 6px;
    flex-shrink: 0;
}

.device-limit-manual-block {
    margin-top: 12px;
}

.device-limit-manual-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #ffe2c6;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-limit-manual-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.device-limit-manual-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-limit-manual-toggle-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
}

.device-limit-manual-toggle-chevron {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.device-limit-manual-toggle-chevron.open {
    transform: rotate(180deg);
}

.device-limit-manual-content {
    display: none;
    margin-top: 10px;
}

.device-limit-manual-content.open {
    display: block;
}

.device-limit-manual-hint {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: rgba(255, 226, 198, 0.72);
    line-height: 1.45;
}

.device-limit-extension-grid--manual {
    margin-top: 4px;
}

.device-limit-auto-reset {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 180, 104, 0.4);
    background: rgba(255, 180, 104, 0.08);
    color: #ffb468;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-limit-auto-reset:active {
    transform: scale(0.98);
}

/* Error Block */
.device-limit-error {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.device-limit-error-icon {
    width: 20px;
    height: 20px;
    color: #f44336;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-limit-error-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-error-text {
    font-size: 13px;
    color: rgba(244, 67, 54, 0.9);
    margin: 0;
}

/* ===================================
   DEVICE DOWNGRADE CONFIRM MODAL
   =================================== */

#renewCurrentTariffConfirmContainer,
#scheduledDowngradeCancelConfirmContainer,
#deviceDowngradeConfirmContainer,
#deviceRemovalConfirmContainer {
    position: fixed;
    inset: 0;
    z-index: 18000;
}

.device-downgrade-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(49, 45, 33, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
    animation: modalOverlayFade 0.25s ease;
}

.device-downgrade-modal {
    width: min(420px, calc(100vw - 28px));
    background: #DDD4C1;
    border-radius: 22px;
    border: 2px solid #5E604E;
    padding: 28px 22px 20px;
    box-shadow: 0 28px 64px rgba(94, 96, 78, 0.22);
    text-align: center;
    animation: popModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-downgrade-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    color: #5E604E;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(94, 96, 78, 0.28);
    background: rgba(94, 96, 78, 0.08);
}

.device-downgrade-modal-icon svg {
    width: 28px;
    height: 28px;
}

.device-downgrade-modal-title {
    margin: 0 0 12px;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #000000;
}

.device-downgrade-modal-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.62);
}

.device-downgrade-modal-text strong {
    color: #000000;
    font-weight: 700;
}

.device-downgrade-modal-date {
    color: #5E604E;
    font-weight: 700;
}

.device-downgrade-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.device-downgrade-modal-btn {
    flex: 1;
    border-radius: 14px;
    padding: 13px 14px;
    min-height: 52px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.device-downgrade-modal-btn.primary {
    border: 2px solid #5E604E;
    background: #5E604E;
    color: #FFFFFF;
    box-shadow: none;
}

.device-downgrade-modal-btn.secondary {
    border: 2px solid rgba(94, 96, 78, 0.42);
    background: rgba(94, 96, 78, 0.08);
    color: #5E604E;
}

.device-downgrade-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.device-downgrade-modal-btn:not(:disabled):active {
    transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
    .device-downgrade-modal-btn.primary:hover {
        background: #545647;
        border-color: #545647;
    }

    .device-downgrade-modal-btn.secondary:hover {
        background: rgba(94, 96, 78, 0.14);
        border-color: rgba(94, 96, 78, 0.56);
    }
}

@media (max-width: 390px) {
    .device-downgrade-modal {
        width: min(420px, calc(100vw - 20px));
        padding: 24px 18px 18px;
    }

    .device-downgrade-modal-actions {
        gap: 10px;
    }

    .device-downgrade-modal-btn {
        min-height: 48px;
        font-size: 14px;
    }
}

/* ===================================
   PRICE CALCULATION MODAL
   =================================== */

body.price-modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(49, 45, 33, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
    z-index: 10000;
    animation: modalOverlayFade 0.25s ease;
}

@keyframes modalOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.device-limit-price-modal {
    width: min(560px, calc(100vw - 28px));
    max-width: 100%;
    background: #DDD4C1;
    border-radius: 22px;
    box-shadow: 0 28px 64px rgba(94, 96, 78, 0.22);
    border: 2px solid #5E604E;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popModal {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.device-limit-price-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(20px, 4vw, 28px) clamp(22px, 5vw, 36px) 12px;
    border-bottom: 1px solid rgba(94, 96, 78, 0.18);
}

.device-limit-price-modal-title {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: -0.3px;
}

.device-limit-price-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(94, 96, 78, 0.08);
    border: 1px solid rgba(94, 96, 78, 0.18);
    color: #5E604E;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.device-limit-price-modal-close:active {
    transform: scale(0.96);
    background: rgba(94, 96, 78, 0.14);
}

.device-limit-price-modal-close svg {
    width: 20px;
    height: 20px;
}

.device-limit-price-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: clamp(18px, 4vw, 28px) clamp(22px, 5vw, 36px) clamp(24px, 5vw, 32px);
}

/* Calculation Row */
.device-limit-calc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(94, 96, 78, 0.06);
    border: 1px solid rgba(94, 96, 78, 0.14);
    border-radius: 16px;
    margin-bottom: 10px;
}

.device-limit-calc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(94, 96, 78, 0.1);
    color: #5E604E;
    flex-shrink: 0;
}

.device-limit-calc-row--current .device-limit-calc-icon {
    background: rgba(94, 96, 78, 0.1);
    color: #5E604E;
}

.device-limit-calc-row--new .device-limit-calc-icon {
    background: rgba(72, 99, 77, 0.12);
    color: #48634D;
}

.device-limit-calc-row--delta .device-limit-calc-icon {
    background: rgba(117, 99, 73, 0.12);
    color: #756349;
}

.device-limit-calc-row--days .device-limit-calc-icon {
    background: rgba(94, 96, 78, 0.12);
    color: #5B614C;
}

.device-limit-calc-icon svg {
    width: 18px;
    height: 18px;
}

.device-limit-calc-content {
    flex: 1;
}

.device-limit-calc-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(51, 52, 40, 0.68);
    margin-bottom: 3px;
}

.device-limit-calc-value {
    font-size: 15px;
    font-weight: 700;
    color: #11110D;
}

/* Divider */
.device-limit-calc-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(94, 96, 78, 0.22), transparent);
    margin: 16px 0;
}

/* Explanation */
.device-limit-calc-explanation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(94, 96, 78, 0.08);
    border: 1px solid rgba(94, 96, 78, 0.18);
    border-radius: 12px;
    margin-bottom: 14px;
}

.device-limit-calc-explanation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #5E604E;
    flex-shrink: 0;
    margin-top: 2px;
}

.device-limit-calc-explanation-icon svg {
    width: 100%;
    height: 100%;
}

.device-limit-calc-explanation-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(51, 52, 40, 0.84);
    line-height: 1.5;
    margin: 0;
}

.device-limit-calc-explanation-text strong {
    font-weight: 600;
    color: #171711;
}

.device-limit-calc-breakdown {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-limit-calc-row--muted {
    background: rgba(94, 96, 78, 0.04);
    border: 1px solid rgba(94, 96, 78, 0.1);
    margin-bottom: 0;
}

/* Total */
.device-limit-calc-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(94, 96, 78, 0.1);
    border: 1px solid rgba(94, 96, 78, 0.22);
    border-radius: 14px;
    box-shadow: none;
}

.device-limit-calc-total-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(51, 52, 40, 0.78);
}

.device-limit-calc-total-value {
    font-size: 24px;
    font-weight: 800;
    color: #171711;
    letter-spacing: -1px;
    text-shadow: none;
}

.device-limit-price-modal-footer {
    padding: 16px clamp(20px, 4vw, 36px) 24px;
    border-top: 1px solid rgba(94, 96, 78, 0.18);
}

.device-limit-price-modal-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 12px 18px;
    background: #5E604E;
    border: 2px solid #5E604E;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.device-limit-price-modal-btn:active {
    transform: translateY(1px);
    background: #545647;
    border-color: #545647;
}

@media (hover: hover) and (pointer: fine) {
    .device-limit-price-modal-close:hover {
        background: rgba(94, 96, 78, 0.12);
        border-color: rgba(94, 96, 78, 0.26);
        color: #4E503F;
        transform: translateY(-1px);
    }

    .device-limit-price-modal-btn:hover {
        background: #565848;
        border-color: #565848;
        transform: translateY(-1px);
    }
}
