/* ============================================================
   MOOD FS SHOP — витрина фриспинов, написана с нуля.
   Страница живёт в #fsShopRoot и переключает содержимое через
   data-fs-state: loading | ready | filtered | empty | error | guest.
   Порядок файла: состояния → hero → тулбар → сетка карточек →
   пустые состояния → «как это работает» → модалки → адаптив → светлая тема.
   ============================================================ */

/* ------------------------------------------------------------
   1. ОБОЛОЧКА И ПЕРЕКЛЮЧЕНИЕ СОСТОЯНИЙ
   ------------------------------------------------------------ */
.fsshop {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding-top: var(--space-2);
}

.fsshop-skeleton,
.fsshop-grid,
.fsshop-toolbar,
#fsShopNoResults,
#fsShopEmpty,
#fsShopError,
#fsShopGuest {
    display: none;
}

.fsshop[data-fs-state="loading"] .fsshop-skeleton { display: grid; }
.fsshop[data-fs-state="ready"] .fsshop-grid { display: grid; }

.fsshop[data-fs-state="ready"] .fsshop-toolbar,
.fsshop[data-fs-state="filtered"] .fsshop-toolbar { display: flex; }

.fsshop[data-fs-state="filtered"] #fsShopNoResults,
.fsshop[data-fs-state="empty"] #fsShopEmpty,
.fsshop[data-fs-state="error"] #fsShopError,
.fsshop[data-fs-state="guest"] #fsShopGuest { display: flex; }

.fsshop[data-fs-state="guest"] .fsshop-wallet,
.fsshop[data-fs-state="guest"] .fsshop-hero__note { display: none; }

/* ------------------------------------------------------------
   2. HERO
   ------------------------------------------------------------ */
.fsshop-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(105% 130% at 0% 0%, rgba(45, 212, 191, 0.16) 0%, transparent 58%),
        radial-gradient(105% 130% at 100% 100%, rgba(251, 113, 133, 0.14) 0%, transparent 58%),
        var(--bg-elevated);
}

.fsshop-hero__glow {
    position: absolute;
    top: -140px;
    right: 18%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0) 70%);
    pointer-events: none;
}

.fsshop-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: var(--space-6);
    align-items: center;
    padding: clamp(22px, 3.6vw, 40px);
}

.fsshop-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 5px 12px 5px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fsshop-hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}

.fsshop-hero__title {
    margin-bottom: 10px;
    font-size: clamp(26px, 3.4vw, 40px);
}

.fsshop-hero__sub {
    max-width: 46ch;
    color: var(--text-muted);
    font-size: 15px;
}

.fsshop-hero__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 13px;
}

.fsshop-hero__note-icon {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--accent);
}

/* ------------------------------------------------------------
   3. КОШЕЛЁК POIN
   ------------------------------------------------------------ */
.fsshop-wallet {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-glow);
    background: var(--glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.fsshop-wallet__label {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fsshop-wallet__value {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 6px;
}

.fsshop-wallet__amount {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fsshop-wallet__unit {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.fsshop-wallet__rate {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 12.5px;
}

.fsshop-wallet__exchange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-4);
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: border-color var(--dur-2) var(--ease-out),
                background var(--dur-2) var(--ease-out),
                color var(--dur-2) var(--ease-out);
}

.fsshop-wallet__exchange svg { width: 17px; height: 17px; }

.fsshop-wallet__exchange:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.fsshop-wallet__exchange:disabled { opacity: 0.5; }

/* ------------------------------------------------------------
   4. ТУЛБАР: ФИЛЬТРЫ, ПЕРЕКЛЮЧАТЕЛЬ, СОРТИРОВКА
   ------------------------------------------------------------ */
.fsshop-toolbar {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

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

.fsshop-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    transition: color var(--dur-2) var(--ease-out),
                background var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out);
}

.fsshop-tab:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.fsshop-tab.is-active {
    border-color: transparent;
    background: var(--accent-dim);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent-glow);
}

.fsshop-tab__count {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.fsshop-tab.is-active .fsshop-tab__count {
    background: var(--accent);
    color: var(--btn-primary-text);
}

.fsshop-toolbar__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

/* Переключатель «только доступные» */
.fsshop-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.fsshop-switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.fsshop-switch__track {
    position: relative;
    width: 40px;
    height: 22px;
    flex: none;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    transition: background var(--dur-2) var(--ease-out);
}

.fsshop-switch__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: transform var(--dur-2) var(--ease-out),
                background var(--dur-2) var(--ease-out);
}

.fsshop-switch__text {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.fsshop-switch__input:checked + .fsshop-switch__track { background: var(--accent-dim); }

.fsshop-switch__input:checked + .fsshop-switch__track .fsshop-switch__knob {
    transform: translateX(18px);
    background: var(--accent);
}

.fsshop-switch__input:focus-visible + .fsshop-switch__track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Сортировка */
.fsshop-sort { position: relative; }

.fsshop-sort__select {
    -webkit-appearance: none;
    appearance: none;
    padding: 10px 38px 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--dur-2) var(--ease-out);
}

.fsshop-sort__select:hover { border-color: var(--border-strong); }

.fsshop-sort__chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    transform: translateY(-50%);
    pointer-events: none;
}

/* ------------------------------------------------------------
   5. СКЕЛЕТОНЫ
   ------------------------------------------------------------ */
.fsshop-grid,
.fsshop-skeleton {
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: var(--space-4);
}

/* Высота совпадает с реальной карточкой, иначе сетка прыгает после загрузки. */
.fsshop-skel {
    display: block;
    height: 334px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(100deg,
        var(--surface) 20%,
        var(--surface-2) 40%,
        var(--surface) 60%);
    background-size: 220% 100%;
    animation: fsshop-shimmer 1.5s linear infinite;
}

@keyframes fsshop-shimmer {
    from { background-position: 140% 0; }
    to { background-position: -40% 0; }
}

/* ------------------------------------------------------------
   6. КАРТОЧКА ПАКЕТА — «отрывной билет»
   ------------------------------------------------------------ */
.fsshop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform var(--dur-2) var(--ease-out),
                border-color var(--dur-2) var(--ease-out),
                box-shadow var(--dur-2) var(--ease-out);
}

.fsshop-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-md);
}

.fsshop-card[data-fs-affordable="0"] { opacity: 0.72; }
.fsshop-card[data-fs-affordable="0"]:hover { border-color: var(--border-strong); }

/* Верхняя часть билета */
.fsshop-card__top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-5) var(--space-4) var(--space-5);
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(45, 212, 191, 0.18) 0%, transparent 62%),
        var(--surface);
}

/* Премиум подсвечиваем по краям, а не под цифрой: тёплая заливка
   в центре съедала контраст градиентного текста. */
.fsshop-card[data-fs-type="premium"] .fsshop-card__top {
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(251, 113, 133, 0.2) 0%, transparent 70%),
        radial-gradient(90% 60% at 100% 0%, rgba(251, 191, 36, 0.14) 0%, transparent 70%),
        var(--surface);
}

/* Выемки перфорации по краям стыка */
.fsshop-card__top::before,
.fsshop-card__top::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
}

.fsshop-card__top::before { left: -10px; }
.fsshop-card__top::after { right: -10px; }

.fsshop-card__shine {
    position: absolute;
    top: -60%;
    left: -30%;
    width: 60%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: rotate(18deg);
    transition: transform var(--dur-3) var(--ease-out), left var(--dur-3) var(--ease-out);
    pointer-events: none;
}

.fsshop-card:hover .fsshop-card__shine { left: 90%; }

.fsshop-card__count {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Только background-image: шорткенд background сбросил бы background-clip: text. */
.fsshop-card[data-fs-type="premium"] .fsshop-card__count {
    background-image: linear-gradient(135deg, #FDE0A3 0%, #FB7185 100%);
}

.fsshop-card__count-label {
    margin-top: 2px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fsshop-card__bet {
    margin-top: 4px;
    color: var(--text-dim);
    font-size: 12.5px;
}

.fsshop-card__slots {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.fsshop-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Плотная заливка, а не тёплый градиент: на его жёлтом конце
   мелкий текст бейджа терял контраст. */
.fsshop-badge--premium {
    background: var(--accent-2);
    color: #2B0A12;
}

.fsshop-card__top .fsshop-badge--premium {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Нижняя часть билета */
.fsshop-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-4);
}

.fsshop-card__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    border-top: 2px dashed var(--border-strong);
}

.fsshop-card__specs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: var(--space-4);
}

.fsshop-card__spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

/* Место уступает подпись, а не значение: она может усечься. */
.fsshop-card__spec dt {
    min-width: 0;
    overflow: hidden;
    color: var(--text-dim);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsshop-card__spec dd {
    flex: none;
    color: var(--text);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.fsshop-card__spec--urgent dd { color: var(--warning); }

.fsshop-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: auto;
}

.fsshop-card__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.fsshop-card__price-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.fsshop-card__price-unit {
    flex: none;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
}

.fsshop-card__buy {
    flex: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: var(--grad-brand);
    color: var(--btn-primary-text);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-cta);
    transition: transform var(--dur-1) var(--ease-out),
                box-shadow var(--dur-2) var(--ease-out),
                filter var(--dur-2) var(--ease-out);
}

.fsshop-card__buy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta-hover);
    filter: brightness(1.06);
}

.fsshop-card__buy:active:not(:disabled) { transform: translateY(0); }

.fsshop-card__buy:disabled {
    background: var(--surface-3);
    color: var(--text-dim);
    box-shadow: none;
}

.fsshop-card__lack {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
}

/* ------------------------------------------------------------
   7. ПУСТЫЕ СОСТОЯНИЯ
   ------------------------------------------------------------ */
.fsshop-state {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: clamp(32px, 6vw, 64px) var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px dashed var(--border-strong);
    background: var(--surface);
    text-align: center;
}

.fsshop-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-2);
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
}

.fsshop-state__icon svg { width: 27px; height: 27px; }

.fsshop-state__icon--error {
    background: var(--danger-dim);
    color: var(--danger);
}

.fsshop-state__title { font-size: 20px; }

.fsshop-state__text {
    max-width: 44ch;
    color: var(--text-muted);
    font-size: 14.5px;
}

.fsshop-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.fsshop-state__btn {
    padding: 11px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: border-color var(--dur-2) var(--ease-out),
                background var(--dur-2) var(--ease-out),
                color var(--dur-2) var(--ease-out);
}

.fsshop-state__btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.fsshop-state__btn--primary {
    border-color: transparent;
    background: var(--grad-brand);
    color: var(--btn-primary-text);
    box-shadow: var(--shadow-cta);
}

.fsshop-state__btn--primary:hover {
    border-color: transparent;
    background: var(--grad-brand);
    color: var(--btn-primary-text);
    filter: brightness(1.06);
}

/* Сообщение о пустой выборке — компактнее остальных состояний */
.fsshop-state--filter {
    gap: var(--space-3);
    padding: var(--space-6) var(--space-5);
}

/* ------------------------------------------------------------
   8. «КАК ЭТО РАБОТАЕТ»
   ------------------------------------------------------------ */
.fsshop-how {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.fsshop-how__title {
    margin-bottom: var(--space-4);
    font-size: 18px;
}

.fsshop-how__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.fsshop-how__step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.fsshop-how__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
}

.fsshop-how__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.fsshop-how__step-title {
    color: var(--text);
    font-size: 14.5px;
    font-weight: 700;
}

.fsshop-how__step-text {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   9. МОДАЛКИ ВИТРИНЫ
   ------------------------------------------------------------ */
.fsshop-modal__dialog { max-width: 440px; }

.fsshop-modal__view { display: none; }
.fsshop-modal[data-fs-view="confirm"] .fsshop-modal__view--confirm { display: block; }
.fsshop-modal[data-fs-view="success"] .fsshop-modal__view--success { display: block; }

.fsshop-modal__title { margin-bottom: var(--space-3); }

.fsshop-modal__lead {
    margin-bottom: var(--space-4);
    color: var(--text-muted);
    font-size: 14px;
}

.fsshop-modal__error {
    margin-top: var(--space-3);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--danger-dim);
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.fsshop-modal__error:empty { display: none; }

.fsshop-modal__actions { margin-top: var(--space-5); }
.fsshop-modal__actions .btn { flex: 1; text-align: center; }

.fsshop-modal__submit { position: relative; }

.fsshop-modal__submit.is-busy .fsshop-modal__submit-label { visibility: hidden; }

.fsshop-modal__submit.is-busy::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 17px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(0, 0, 0, 0.28);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: fsshop-spin 0.7s linear infinite;
}

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

/* Пакет в модалке покупки */
.fsshop-buy-pack {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(45, 212, 191, 0.14) 0%, transparent 60%),
        var(--surface);
}

.fsshop-buy-pack__count {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fsshop-buy-pack__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.fsshop-buy-pack__title {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.fsshop-buy-pack__sub {
    color: var(--text-dim);
    font-size: 13px;
}

.fsshop-buy-pack .fsshop-badge--premium {
    position: absolute;
    top: 10px;
    right: 10px;
}

.fsshop-buy-lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: var(--space-4);
}

.fsshop-buy-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: 14px;
}

.fsshop-buy-line dt { color: var(--text-muted); }

.fsshop-buy-line dd {
    flex: none;
    color: var(--text);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.fsshop-buy-line--rest {
    padding-top: 9px;
    border-top: 1px solid var(--border);
}

.fsshop-buy-line--rest dd { color: var(--accent); }

.fsshop-buy-note {
    margin-top: var(--space-4);
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--warning-dim);
    background: var(--warning-dim);
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* Обмен Poin */
.fsshop-exch-rate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.fsshop-exch-rate__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}

.fsshop-exch-rate__label {
    color: var(--text-dim);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fsshop-exch-rate__value {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.fsshop-exch-field { display: block; }

.fsshop-exch-field__label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.fsshop-exch-field__control {
    position: relative;
    display: block;
}

.fsshop-exch-field__input {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 100%;
    padding: 13px 62px 13px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: border-color var(--dur-2) var(--ease-out),
                box-shadow var(--dur-2) var(--ease-out);
}

.fsshop-exch-field__input::-webkit-outer-spin-button,
.fsshop-exch-field__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fsshop-exch-field__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.fsshop-exch-field__unit {
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-50%);
    pointer-events: none;
}

.fsshop-exch-chips {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.fsshop-exch-chip {
    flex: 1;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    transition: border-color var(--dur-2) var(--ease-out),
                background var(--dur-2) var(--ease-out),
                color var(--dur-2) var(--ease-out);
}

.fsshop-exch-chip:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.fsshop-exch-preview {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: 13px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-glow);
    background: var(--accent-dim);
}

.fsshop-exch-preview__label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.fsshop-exch-preview__value {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
}

/* Успешный экран модалок */
.fsshop-modal__view--success { text-align: center; }

.fsshop-modal__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: var(--space-4);
    border-radius: 50%;
    background: var(--success-dim);
    color: var(--success);
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.07);
}

.fsshop-modal__success-icon svg { width: 27px; height: 27px; }

.fsshop-modal__success-title {
    margin-bottom: var(--space-3);
    font-size: 22px;
}

.fsshop-modal__success-lead {
    margin-inline: auto;
    max-width: 34ch;
    color: var(--text-muted);
    font-size: 14px;
}

/* ------------------------------------------------------------
   10. АДАПТИВ
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .fsshop-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-5);
    }

    .fsshop-wallet { max-width: 340px; }
}

@media (max-width: 640px) {
    .fsshop { gap: var(--space-4); }

    .fsshop-hero { border-radius: var(--radius-lg); }

    .fsshop-hero__sub { font-size: 14px; }

    .fsshop-wallet {
        max-width: none;
        padding: var(--space-4);
    }

    .fsshop-wallet__amount { font-size: 30px; }

    .fsshop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fsshop-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .fsshop-tabs::-webkit-scrollbar { display: none; }
    .fsshop-tab { flex: none; }

    .fsshop-toolbar__tools { justify-content: space-between; }
    .fsshop-sort__select { width: 100%; }

    .fsshop-grid,
    .fsshop-skeleton {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-3);
    }

    .fsshop-card__top { padding: var(--space-4) var(--space-3); }
    .fsshop-card__count { font-size: 38px; }
    .fsshop-card__body { padding: var(--space-3); }

    /* В две узкие колонки помещается только главное: число слотов
       и сумма отыгрыша уходят, они есть в модалке подтверждения. */
    .fsshop-card__slots,
    .fsshop-card__spec--wager-sum { display: none; }

    .fsshop-card__spec { font-size: 12px; }

    /* В потоке, а не абсолютом: в узкой карточке бейдж наезжал на число. */
    .fsshop-card__top .fsshop-badge--premium {
        position: static;
        margin-bottom: 6px;
    }

    .fsshop-card__foot {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .fsshop-card__price { justify-content: center; }
    .fsshop-card__buy { width: 100%; }

    .fsshop-skel { height: 296px; }

    .fsshop-state { padding: var(--space-6) var(--space-4); }
    .fsshop-state__actions { flex-direction: column; align-items: stretch; }

    .fsshop-how { padding: var(--space-4); }

    .fsshop-modal__actions { flex-direction: column-reverse; }
    .fsshop-exch-rate { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------
   11. СВЕТЛАЯ ТЕМА
   ------------------------------------------------------------ */
html[data-theme="light"] .fsshop-hero {
    background:
        radial-gradient(105% 130% at 0% 0%, rgba(255, 163, 37, 0.16) 0%, transparent 58%),
        radial-gradient(105% 130% at 100% 100%, rgba(243, 83, 107, 0.13) 0%, transparent 58%),
        var(--bg-elevated);
}

html[data-theme="light"] .fsshop-wallet {
    background: var(--bg-elevated);
    border-color: var(--accent-glow);
}

html[data-theme="light"] .fsshop-card__top {
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(255, 163, 37, 0.16) 0%, transparent 62%),
        var(--surface);
}

html[data-theme="light"] .fsshop-card[data-fs-type="premium"] .fsshop-card__top {
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(243, 83, 107, 0.16) 0%, transparent 70%),
        radial-gradient(90% 60% at 100% 0%, rgba(255, 163, 37, 0.16) 0%, transparent 70%),
        var(--surface);
}

/* На светлом фоне яркие акцентные градиенты теряют контраст —
   для градиентного текста берём затемнённые варианты. */
html[data-theme="light"] .fsshop-card__count,
html[data-theme="light"] .fsshop-wallet__amount,
html[data-theme="light"] .fsshop-buy-pack__count {
    background-image: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-2-deep) 100%);
}

html[data-theme="light"] .fsshop-card[data-fs-type="premium"] .fsshop-card__count {
    background-image: linear-gradient(135deg, #C2410C 0%, #BE123C 100%);
}

html[data-theme="light"] .fsshop-badge--premium {
    background: var(--accent-2-deep);
    color: #FFFFFF;
}

html[data-theme="light"] .fsshop-card__shine {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

html[data-theme="light"] .fsshop-card__buy:disabled {
    background: var(--surface-3);
    color: var(--text-dim);
}

html[data-theme="light"] .fsshop-buy-note {
    border-color: rgba(217, 119, 6, 0.24);
    color: #7C4A03;
}

html[data-theme="light"] .fsshop-modal__submit.is-busy::after {
    border-color: rgba(67, 20, 10, 0.32);
    border-top-color: currentColor;
}
