﻿/* УБИВАЕМ СИНИЙ КВАДРАТ НА МОБИЛКАХ */
*, a, button, input, div, span, label,
.card, .method-card, .floating-btn, .nav-item, .ref-action-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

/* ЗАПРЕЩАЕМ ВЫДЕЛЕНИЕ ТЕКСТА (чтобы не было синего фона от долгого тапа) */
body, .app-container, .card, .method-card, .floating-btn {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Возвращаем возможность вводить текст только в инпуты */
input, textarea {
    -webkit-user-select: auto !important;
    user-select: auto !important;
}
/* --- 1. ПЕРЕМЕННЫЕ И БАЗА --- */
:root {
    --bg-dark: #0f111a;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(255, 255, 255, 0.08); /* Чуть ярче для видимости блоков */
    --paradox-color: #d8b4fe;
    --bot-color: #99f6e4;
    --text-light: #f1f5f9;
    --star-gradient: linear-gradient(135deg, var(--paradox-color) 0%, var(--bot-color) 100%);
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease; /* Плавное исчезновение */
}

/* Этот класс мы будем вешать скриптом */
.hide-stars {
    opacity: 0 !important;
}

body {
    background-color: var(--bg-dark);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 1000px; /* 🚀 ИЗМЕНЕНО: Сделали шире (было 480px) */
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-dark); /* Фон самого приложения */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5); /* Красивая тень по бокам на компьютере */
}

/* --- 2. ШАПКА --- */
.glass-bar-container {
    position: fixed !important;
    top: 0;
    width: 100%;
    max-width: 1000px;
    padding: 10px 15px 0 15px !important;
    z-index: 9999;
    box-sizing: border-box;

    /* Центрируем шапку */
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.glass-bar {
    background: var(--glass-bg); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 24px;
    height: 75px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}

.block-title {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем текст */
    gap: 15px;
    font-size: 14px; /* Уменьшаем для изящности */
    color: rgba(255, 255, 255, 0.5); /* Делаем чуть приглушённее */
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Градиент в цветах твоего бренда */
    background: linear-gradient(90deg, var(--paradox-color), var(--bot-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Мягкое свечение */
    filter: drop-shadow(0 0 8px rgba(216, 180, 254, 0.3));

    display: flex;
    align-items: center;
    gap: 10px;
}

/* Добавим небольшую иконку-индикатор перед текстом */
.block-title::before,
.block-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153, 246, 228, 0.3), transparent);
}

/* КУБ */
.app-bar-left { display: flex; align-items: center; gap: 12px; }
.paradox-logo { width: 50px; height: 50px; perspective: 1000px; display: flex; align-items: center; justify-content: center; }
.cube { width: 32px; height: 32px; position: relative; transform-style: preserve-3d; animation: rotateCube 12s infinite linear; }
.face { position: absolute; width: 32px; height: 32px; border: 1.5px solid var(--paradox-color); background: rgba(216, 180, 254, 0.1); }
.face.front  { transform: rotateY(0deg) translateZ(16px); }
.face.back   { transform: rotateY(180deg) translateZ(16px); }
.face.top    { transform: rotateX(90deg) translateZ(16px); border-color: var(--bot-color); }
.face.bottom { transform: rotateX(-90deg) translateZ(16px); border-color: var(--bot-color); }
.face.left   { transform: rotateY(-90deg) translateZ(16px); }
.face.right  { transform: rotateY(90deg) translateZ(16px); border-color: var(--bot-color); }

.app-title { display: flex; flex-direction: column; line-height: 1.0; }
.title-paradox { color: var(--paradox-color); font-weight: 800; font-size: 19px; text-transform: uppercase; }
.title-bot { color: var(--bot-color); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }

/* АВАТАРКА */
.avatar-container { width: 44px; height: 44px; position: relative; display: flex; align-items: center; justify-content: center; }
.user-avatar { width: 34px !important; height: 34px !important; border-radius: 50%; border: 1.5px solid white; z-index: 2; }
.avatar-ring { position: absolute; width: 100%; height: 100%; stroke: var(--bot-color); stroke-width: 2.5; fill: none; stroke-dasharray: 8; animation: rotateRing 15s linear infinite; }

/* МАГАЗИН - ЗАНИМАЕТ 100% ОТ РОДИТЕЛЯ */
.main-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    /* 🔥 БЫЛО 15px по бокам. СТАЛО: 10px (Экран стал шире) */
    padding: 0 10px 20px 10px !important;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.banner {
    padding: 25px !important;
}
.banner-content-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

.partner-pill { display: inline-flex; align-items: center; background: rgba(153, 246, 228, 0.15); padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--bot-color); margin-bottom: 12px; }
.check-svg { width: 14px; height: 14px; margin-right: 6px; }

.banner-text-side h1 { font-size: 26px; margin: 0 0 8px 0; background: var(--star-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 10px rgba(216, 180, 254, 0.3)); line-height: 1.1; }
.banner-text-side p { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.6); margin: 0; }

.banner-visual-side { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }

.star-aura {
    position: absolute; width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(153, 246, 228, 0.25) 0%, transparent 70%);
    /* УДАЛЕНО: filter: blur(10px); */
    animation: pulseAura 3s infinite ease-in-out;
    z-index: 1;
    will-change: transform, opacity;
    transform: translateZ(0); /* Включает турбо-режим видеокарты */
}

/* Большая звезда в баннере */
.voluminous-star-svg {
    width: 105px;
    height: 105px;
    z-index: 2;
    /* Создаем красивое золотое свечение вокруг картинки */
    filter: drop-shadow(0 8px 20px rgba(255, 183, 77, 0.45));
    animation: floatStar 4s infinite ease-in-out;
    object-fit: contain;
}

/* --- 4. НОМИНАЛЫ --- */
.content-block {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(216, 180, 254, 0.2) !important;
    border-radius: 24px;
    /* 🔥 БЫЛО 15px. СТАЛО: 10px (Даем кнопкам больше места внутри блока) */
    padding: 22px 10px !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* На всякий случай жестко возвращаем сетку карточкам */
.stars-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  /* 🔥 БЫЛО: 12px. СТАЛО: 8px (Расстояние между кнопками меньше = кнопки шире) */
  gap: 8px !important;
  width: 100%;
}

.card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    background: rgba(15, 17, 26, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    /* 🔥 Кнопки стали шире, поэтому возвращаем им комфортный отступ внутри (12px) */
    padding: 12px 10px !important;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.card.active {
    background: rgba(216, 180, 254, 0.15) !important;
    border-color: var(--paradox-color);
    box-shadow: 0 4px 15px rgba(216, 180, 254, 0.15);
}

.card-left {
    margin-right: 6px !important; /* 🔥 Придвинули звездочку ближе к тексту (было 10px) */
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px !important; /* 🔥 Придвинули цену вплотную к плашке "50 звезд" */
    min-width: 0;
}

.card-price {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.count-badge {
    background: linear-gradient(#1a1f2c, #1a1f2c) padding-box, var(--star-gradient) border-box;
    border: 1px solid transparent; /* Утончили градиентную рамку */
    border-radius: 8px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px !important; /* 🔥 ГЛАВНЫЙ ФИКС: Убрали гигантские боковые уши у плашки (было 14px) */
    white-space: nowrap;
    width: 100%; /* Плашка теперь ровно по ширине своей колонки */
    box-sizing: border-box;
    text-align: center; /* Текст всегда ровно по центру */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Маленькие звёздочки в карточках */
.mini-star-svg {
    width: 32px !important; /* 🔥 Сделали картинку чуть компактнее для баланса */
    height: 32px !important;
    filter: drop-shadow(0 3px 8px rgba(255, 183, 77, 0.4));
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

/* Эффект при нажатии/наведении на карточку */
.card:hover .mini-star-svg,
.card:active .mini-star-svg,
.card.active .mini-star-svg {
    transform: scale(1.2) rotate(8deg);
    filter: drop-shadow(0 5px 12px rgba(255, 183, 77, 0.6));
}

.star-count { font-size: 18px; font-weight: 800; color: #fff; }

.card-price {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

/* --- 5. ИНПУТЫ И КНОПКА --- */
input { width: 100%; background: rgba(255, 255, 255, 0.07) !important; border: 1.5px solid rgba(255, 255, 255, 0.1) !important; border-radius: 15px !important; padding: 12px 15px !important; color: white !important; font-family: 'Montserrat' !important; outline: none; margin-top: 8px; box-sizing: border-box; }
input:focus { border-color: var(--bot-color) !important; box-shadow: 0 0 10px rgba(153, 246, 228, 0.2); }
.main-button { background: var(--star-gradient); color: #fff; border: none; border-radius: 22px; padding: 20px; width: 100%; font-size: 18px; font-weight: 800; margin-top: 15px; cursor: pointer; transition: 0.2s; }
.main-button:active { transform: scale(0.98); }

/* --- 6. АНИМАЦИИ --- */
@keyframes rotateCube { from { transform: rotateX(0deg) rotateY(0deg); } to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatStar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseAura { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 0.7; } }

/* --- 7. Чек --- */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Затемнение фона */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff; /* Белый фон как на скрине */
    color: #333;
    width: 90%;
    max-width: 350px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.pay-button {
    width: 100%;
    padding: 15px;
    background: #FF5C4D; /* Тот самый коралловый цвет */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}

.order-details {
    text-align: left;
    margin: 20px 0;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* --- 7. Новое окно для проверки данных --- */
/* ФОН-ЗАТЕМНЕНИЕ */
/* --- Основа окна --- */
.receipt-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; justify-content: center; align-items: center; z-index: 10000;
}

/* --- Карточка --- */
.stylish-card {
    background: #FFFFFF !important;
    color: #1a1a1a !important;
    width: 90%; max-width: 380px;
    padding: 35px 25px; border-radius: 32px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    font-family: 'Inter', sans-serif;
}

/* --- Иконка и заголовок --- */
.check-icon-wrap {
    background: #7b61ff; color: white;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-size: 22px;
    box-shadow: 0 8px 16px rgba(123, 97, 255, 0.3);
}
.receipt-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.order-number-tag {
    background: #f1f5f9; color: #64748b;
    padding: 4px 12px; border-radius: 20px;
    font-size: 13px; font-weight: 600; display: inline-block;
}

/* --- Группировка информации --- */
.receipt-body { text-align: left; margin: 25px 0; }
.label { display: block; color: #94a3b8; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.value { display: block; color: #1e293b; font-size: 16px; margin-bottom: 12px; margin-top: 2px; }
.item-name-display { font-size: 18px; font-weight: 700; color: #7b61ff; margin-top: 5px; }

/* --- Разделитель с эффектом чека --- */
.receipt-divider {
    border-top: 2px dashed #e2e8f0;
    margin: 20px -25px; /* Выходит за края для эффекта */
    position: relative;
}

/* --- Блок цены (самый важный акцент) --- */
.total-amount-box {
    background: #f8fafc;
    padding: 20px; border-radius: 20px;
    margin-bottom: 25px;
}
.total-label { color: #64748b; font-size: 14px; font-weight: 500; }
.total-price { display: block; font-size: 32px; font-weight: 900; color: #0f172a; }

/* --- Кнопки --- */
.pay-now-btn {
    background: #FF5C4D !important; /* Твой коралловый */
    color: white !important; width: 100%;
    padding: 18px; border-radius: 16px;
    font-size: 18px; font-weight: 700; border: none;
    cursor: pointer; transition: 0.3s;
}
.pay-now-btn:active { transform: scale(0.97); }
.back-btn {
    background: none; border: none; color: #94a3b8;
    margin-top: 15px; cursor: pointer; font-weight: 600;
}
.support-hint { font-size: 12px; color: #cbd5e1; margin-top: 20px; }
.support-hint a { color: #7b61ff; text-decoration: none; }

.white-card {
    background: #FFFFFF !important; /* Принудительно белый фон */
    color: #1a1a1a !important;      /* Принудительно темный текст */
    width: 90%;
    max-width: 380px;
    padding: 30px 20px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
}

/* Линия разграничения (как на скрине image_78b7e8.png, но серым по белому) */
.receipt-line {
    border-top: 2px dashed #e5e7eb;
    margin: 20px 0;
    width: 100%;
}

/* Группировка данных */
.data-section { text-align: left; margin-bottom: 15px; }
.data-label { color: #8e8e93; font-size: 12px; font-weight: 500; display: block; }
.data-value { color: #1c1c1e; font-size: 15px; font-weight: 700; margin-top: 2px; display: block; }

/* Выделение товара */
.item-display { color: #7b61ff; font-weight: 800; font-size: 17px; margin-top: 5px; }

/* Блок "Итого" */
.total-highlight {
    background: #f2f2f7; /* Светло-серый фон для контраста */
    padding: 15px;
    border-radius: 16px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total-text { color: #3a3a3c; font-weight: 600; }
.total-sum { font-size: 22px; font-weight: 900; color: #000; }

/* Кнопка оплаты */
.pay-now-btn {
    background: #FF5C4D; color: white; border: none; width: 100%;
    padding: 16px; border-radius: 14px; font-size: 18px; font-weight: 700;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;
}
.cancel-link { background: none; border: none; color: #8e8e93; margin-top: 15px; cursor: pointer; }

.payment-methods-list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.method-card.active {
    border-color: #7b61ff;
    background: #f5f3ff;
}

.method-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* Бейдж скидки */
.discount-pill {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #FF5C4D;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 92, 77, 0.3);
}

/* --- Стили для выбора сети --- */
#crypto-networks {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    animation: slideDown 0.3s ease;
}

.network-title {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Скрываем стандартные кружочки радио-кнопок */
.network-card input[type="radio"] {
    display: none;
}

/* Сама карточка сети */
.network-card {
    cursor: pointer;
}

.network-content {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.net-icon { font-size: 24px; margin-bottom: 5px; }
.net-name { font-size: 14px; font-weight: 700; color: #1e293b; }

/* Состояние "Выбрано" (когда input checked) */
.network-card input:checked + .network-content {
    border-color: #7b61ff;
    background: #f5f3ff;
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.2);
}

.payment-ticker {
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    margin-top: 10px;
    position: relative;
    /* Магия: плавное растворение карусели по краям экрана */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-wrapper {
    display: flex;
    width: max-content;
    /* Настрой скорость движения (сейчас 15 секунд) */
    animation: tickerMove 15s linear infinite;
}

.ticker-item {
    width: 100px; /* Расстояние между логотипами */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.ticker-item img {
    height: 22px; /* Компактный размер для мобилок */
    filter: grayscale(100%) opacity(0.5); /* Делаем их серыми и полупрозрачными */
    transition: 0.3s;
}

/* При наведении (или нажатии) логотипы становятся цветными */
.ticker-item img:active, .ticker-item img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Вот он, наш новый класс для треков! */
.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px; /* Расстояние между логотипами */
    padding-right: 40px;
}

.ticker-track img {
    height: 26px; /* Размер логотипов */
    object-fit: contain;
    /* Делаем их СОЧНЫМИ: чуть увеличиваем яркость и добавляем мягкое свечение */
    filter: brightness(1.3) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease;
}

/* При нажатии/наведении логотип слегка увеличивается */
.ticker-track img:hover, .ticker-track img:active {
    transform: scale(1.1);
    filter: brightness(1.5) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Сама магия движения */
@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Сдвигаем ровно на половину общей длины (на 4 иконки из 8) */
        transform: translateX(-400px);
    }
}

.ticker-track img:active, .ticker-track img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Магия сдвига */
}

/* Анимация появления */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Фиксированная плашка снизу */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(30, 30, 35, 0.85); /* Темный полупрозрачный фон */
  backdrop-filter: blur(5px); /* Тот самый эффект матового стекла */
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая светлая полоска сверху */
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000; /* Чтобы плашка всегда была поверх остального контента */
  padding-bottom: env(safe-area-inset-bottom); /* Поддержка "челки" снизу на iPhone */
}

/* Стили для кнопок */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #8e8e93; /* Серый цвет для неактивных кнопок */
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
}

/* Стили для иконок */
.nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

/* Стили для каждой отдельной кнопки */
.floating-btn {
  flex: 1;
  display: flex;
  flex-direction: column; /* Иконка сверху, текст снизу */
  align-items: center;
  justify-content: center;
  gap: 6px; /* Расстояние между иконкой и текстом */
  background: rgba(30, 30, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px; /* Более округлые края для больших кнопок */
  padding: 16px 8px; /* Увеличили внутренние отступы */
  text-decoration: none;
  color: #8e8e93;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Тень стала объемнее */
  transition: all 0.3s ease;
}

/* Настройка размера иконок */
.floating-btn svg {
  width: 28px; /* Было 20px */
  height: 28px;
  transition: all 0.3s ease;
}

/* Эффект при наведении и для активной кнопки */
.floating-btn:hover,
.floating-btn.active {
  background: rgba(45, 45, 50, 0.95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px); /* Подпрыгивают чуть выше */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Текст под иконкой */
.floating-btn span {
  font-size: 13px; /* Читабельный размер */
  font-weight: 600; /* Сделали чуть жирнее */
}

/* Цвет активной иконки */
.floating-btn:hover svg,
.floating-btn.active svg {
  color: #007aff; /* Синий. Можешь заменить на #FFD700 (золотой) для звезды */
}

/* Настройка плашки навигации для анимации прятания */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0); /* Исходная позиция */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавный прыжок */
    display: flex;
    gap: 12px;
    z-index: 1000;
    width: 95%;
    max-width: 450px;
}

/* Состояние при наведении или активная кнопка */
.nav-item:hover,
.nav-item.active {
  color: #007aff; /* Синий цвет Telegram. Можешь заменить на свой фирменный (например, фиолетовый или золотой) */
}

/* Анимация иконки при наведении */
.nav-item:hover svg,
.nav-item.active svg {
  transform: translateY(-2px);
}

/* Дополнительные стили для иконок методов (если их нет) */
.method-icon {
    width: 40px; height: 40px; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-right: 12px; flex-shrink: 0;
}
.method-info { display: flex; flex-direction: column; }
.method-desc { font-size: 12px; color: #94a3b8; font-weight: 500; }


/* ЗАДАЕМ ОБЩУЮ ШИРИНУ ОДИН РАЗ ЗДЕСЬ (1000px) */
.page-content {
    display: none;
    width: 100%;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding-top: 105px !important;
    box-sizing: border-box;
    /* 🔥 ИСПОЛЬЗУЕМ НОВУЮ АНИМАЦИЮ БЕЗ TRANSFORM */
    animation: trueFadeIn 0.4s ease-out forwards;
    position: relative;
}

/* Новая анимация, которая не ломает position: fixed у фонов! */
@keyframes trueFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Блок оплаты шардами в чеке */
.shard-pay-box {
    background: rgba(158, 239, 225, 0.1); /* Легкий мятный фон */
    border: 1px solid rgba(158, 239, 225, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shard-pay-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shard-pay-title {
    color: #9EEFE1; /* Фирменный мятный */
    font-weight: 600;
    font-size: 15px;
}

.shard-pay-balance {
    color: #8e8e93;
    font-size: 12px;
}

/* Красивый iOS тумблер (Switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 26px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #8e8e93;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #9EEFE1; /* Мятный цвет при включении */
}
input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #111; /* Темный кружок */
}
input:disabled + .slider {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Плашка кешбека над кнопкой заказа */
.cashback-info {
    font-size: 13px;
    color: #8e8e93;
    margin: 0 auto 12px auto; /* Центрируем и делаем отступ до кнопки */
    background: rgba(158, 239, 225, 0.08); /* Очень легкий мятный фон */
    border: 1px solid rgba(158, 239, 225, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.cashback-info strong {
    color: #9EEFE1; /* Фирменный мятный */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(158, 239, 225, 0.4); /* Неоновое свечение */
}

.page-content.active-page {
  display: block; /* Важно: оставляем block, а не flex, чтобы внутри ничего не ломалось */
}

/* Анимация переключения вкладок */
@keyframes fadeUpIn {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* ОШИБКА ДЛЯ ГАЛОЧКИ ОФЕРТЫ                 */
/* ========================================= */

.terms-error {
    color: #ff453a !important; /* Ярко-красный цвет Apple */
    text-shadow: 0 0 8px rgba(255, 69, 58, 0.4);
    animation: shakeX 0.4s ease-in-out;
}

/* Красим ссылки внутри тоже в красный, чтобы весь блок "горел" */
.terms-error a {
    color: #ff453a !important;
}

/* Анимация тряски (вправо-влево) */
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* ========================================= */
/* ОШИБКА ДЛЯ ПОЛЕЙ ВВОДА (ИНПУТОВ)          */
/* ========================================= */

.input-error {
    border: 1px solid #ff453a !important; /* Красная рамка */
    box-shadow: 0 0 8px rgba(255, 69, 58, 0.3) !important; /* Красное свечение */
    background-color: rgba(255, 69, 58, 0.05) !important; /* Чуть красноватый фон */
    animation: shakeX 0.4s ease-in-out;
}

/* Красим текст ошибки (плейсхолдер) */
.input-error::placeholder {
    color: rgba(255, 69, 58, 0.7) !important;
}


/* ========================================= */
/* 🚀 УЛЬТРА-ОПТИМИЗАЦИЯ ДЛЯ 60 FPS (MOBILE) */
/* ========================================= */

/* 1. Легкие стикеры для Рефералов (без тяжелых теней и масок) */
.floating-sticker {
    background-image: var(--bg-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    filter: none !important; /* Отключаем тяжелые тени */
    opacity: 0.15; /* Делаем их просто полупрозрачными */

    will-change: transform;
    transform: translateZ(0);
}

/* 2. Отключаем канвас звезд на неактивных вкладках, чтобы не грузил процессор */
#starfield.hide-stars {
    display: none !important;
}


/* ========================================= */
/* 📱 ИДЕАЛЬНАЯ ШАПКА И ФОН TELEGRAM         */
/* ========================================= */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    /* Специальный хак для Safari на iOS, чтобы не было дыры снизу */
    min-height: -webkit-fill-available;

    background-color: var(--bg-dark);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;

    /* 🔥 УБРАЛИ display: flex! Именно он ломал левый край при зуме 🔥 */
    display: block !important;
}

/* 🔥 Анимация звёзд для магазина (Аппаратное ускорение) 🔥 */
.shop-stars-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

.shop-stars-bg .floating-sticker {
    position: absolute;
    background-image: var(--bg-img);
    background-size: contain; background-repeat: no-repeat; background-position: center;
    background-color: transparent !important;
    opacity: 0.12; /* Тусклые, чтобы не мешать читать цены */
    animation: floatStarAnimation linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

/* Координаты для магазина */
.shop-stars-bg .star-1 { width: 60px; height: 60px; top: 10%; left: 5%; animation-duration: 35s; }
.shop-stars-bg .star-2 { width: 45px; height: 45px; top: 35%; left: 85%; animation-duration: 40s; animation-direction: reverse; }
.shop-stars-bg .star-3 { width: 70px; height: 70px; top: 60%; left: 15%; animation-duration: 45s; }
.shop-stars-bg .star-4 { width: 50px; height: 50px; top: 80%; left: 75%; animation-duration: 32s; animation-direction: reverse; }
.shop-stars-bg .star-5 { width: 40px; height: 40px; top: 20%; left: 60%; animation-duration: 38s; }


/* ========================================= */
/* 👤 СТИЛИ ДЛЯ УЛУЧШЕННОЙ ФОРМЫ             */
/* ========================================= */

.recipient-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ⚡️ Кнопка "купить для себя" */
.buy-for-self-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bot-color);
    border: 1px solid rgba(153, 246, 228, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    align-self: center; /* Центрируем кнопку */
}

.buy-for-self-btn:active {
    background: rgba(153, 246, 228, 0.15);
    transform: scale(0.96);
}

/* Ввод Username с аватаром */
.username-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.username-avatar-preview {
    width: 44px; /* Компактный кружок */
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    animation: fadeUpIn 0.3s ease;
}

.username-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username-input-wrapper input {
    margin-top: 0 !important; /* Убираем отступ, чтобы инпут был на одном уровне с аватаром */
}

.dynamic-bg {
    position: fixed !important;

    /* 🔥 ПРИБИВАЕМ ГВОЗДЯМИ КО ВСЕМ КРАЯМ ЭКРАНА 🔥 */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    /* Убираем transform и width/height, они больше не нужны */
    transform: none !important;
    width: auto !important;
    height: auto !important;

    z-index: 0 !important;
    pointer-events: none;
    will-change: transform;
}

/* КОСМОС ДЛЯ МАГАЗИНА */
.shop-stars-bg.dynamic-bg {
    background: linear-gradient(135deg, #0d0f18, #1a1025, #0b1a30) !important;
}



/* ========================================= */
/* 🔥 УЛЬТРА-ПРЕМИУМ ЛОАДЕР (НЕОН И КОСМОС) 🔥 */
/* ========================================= */

.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
    background: radial-gradient(circle at 50% 50%, #1a1025 0%, #0d0f18 50%, #05060a 100%);
    display: flex; justify-content: center; align-items: center;
    z-index: 10001;
    opacity: 1; transition: opacity 0.5s ease;
    overflow: hidden;
}

.loader-overlay.hide { opacity: 0; pointer-events: none; }

/* 🔥 Убрали серый бокс! Теперь всё парит в космосе */
.loader-content {
    background: transparent; /* Никакого фона */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex; flex-direction: column; align-items: center; gap: 35px; /* Чуть увеличили отступ до текста */
    position: relative; z-index: 2;
}

/* 🔥 НЕОНОВЫЙ 3D КУБ (ТОЛСТЫЕ ГРАНИ) 🔥 */
.loader-logo {
    width: 80px; /* Сделали куб больше */
    height: 80px;
    perspective: 1200px;
    filter: drop-shadow(0 0 20px rgba(216, 180, 254, 0.6)); /* Общее свечение */
}

.loader-logo .cube {
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation: rotateLoaderCube 6s infinite linear; /* Вращается чуть динамичнее */
}

/* Толстые грани и внутреннее свечение */
.loader-logo .face {
    position: absolute; width: 100%; height: 100%;
    border: 4px solid var(--paradox-color); /* 🔥 ТОЛСТЫЕ ЛИНИИ (было 2px) */
    background: rgba(216, 180, 254, 0.05); /* Почти прозрачный центр */
    box-shadow: inset 0 0 15px rgba(216, 180, 254, 0.5), 0 0 10px rgba(216, 180, 254, 0.5); /* Неоновый свет */
}

/* Настраиваем цвета и глубину граней (80px / 2 = 40px) */
.loader-logo .face.front  { transform: rotateY(0deg) translateZ(40px); }
.loader-logo .face.back   { transform: rotateY(180deg) translateZ(40px); }

/* Бирюзовые грани (верх, низ, право) */
.loader-logo .face.top    { transform: rotateX(90deg) translateZ(40px); border-color: var(--bot-color); box-shadow: inset 0 0 15px rgba(153, 246, 228, 0.5), 0 0 10px rgba(153, 246, 228, 0.5); }
.loader-logo .face.bottom { transform: rotateX(-90deg) translateZ(40px); border-color: var(--bot-color); box-shadow: inset 0 0 15px rgba(153, 246, 228, 0.5), 0 0 10px rgba(153, 246, 228, 0.5); }
.loader-logo .face.left   { transform: rotateY(-90deg) translateZ(40px); }
.loader-logo .face.right  { transform: rotateY(90deg) translateZ(40px); border-color: var(--bot-color); box-shadow: inset 0 0 15px rgba(153, 246, 228, 0.5), 0 0 10px rgba(153, 246, 228, 0.5); }

@keyframes rotateLoaderCube {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.loader-text {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между словами */
    font-size: 28px; /* Сделали крупно и массивно */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulseLogo 2.5s infinite ease-in-out; /* Плавное дыхание */
    margin-top: 5px;
}

/* Фиолетовое свечение для Paradox */
.loader-text .text-paradox {
    color: #fff;
    text-shadow: 0 0 10px rgba(216, 180, 254, 0.8), 0 0 25px var(--paradox-color);
}

/* Мятное свечение для Store */
.loader-text .text-store {
    color: #fff;
    text-shadow: 0 0 10px rgba(153, 246, 228, 0.8), 0 0 25px var(--bot-color);
}

/* Эффект мягкой левитации и сияния */
@keyframes pulseLogo {
    0%, 100% {
        filter: brightness(1);
        transform: translateY(0) scale(1);
    }
    50% {
        filter: brightness(1.25);
        transform: translateY(-3px) scale(1.02);
    }
}

@keyframes pulseText {
    0%, 100% { filter: brightness(1); transform: scale(1); }
    50% { filter: brightness(1.3); transform: scale(1.02); }
}

/* ========================================= */
/* 🔥 ФОНОВЫЕ КОСМИЧЕСКИЕ СТИКЕРЫ 🔥 */
/* ========================================= */

.loader-sticker {
    position: absolute;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    /* 🔥 СДЕЛАЛИ ИХ ЯРЧЕ (было 0.1, стало 0.35) 🔥 */
    opacity: 0.35;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)); /* Легкое свечение стикерам */
    will-change: transform;
    transform: translateZ(0);
    animation: slowFloatLoader linear infinite;
}

/* Распределяем стикеры по экрану */
.loader-sticker.star-1 { width: 90px; height: 90px; top: 10%; left: 10%; background-image: url('img/stickers/star.png'); animation-duration: 35s; }
.loader-sticker.brilliant-1 { width: 70px; height: 70px; top: 75%; left: 80%; background-image: url('img/stickers/brilliant.png'); animation-duration: 30s; animation-direction: reverse; opacity: 0.4; }
.loader-sticker.gift-1 { width: 85px; height: 85px; top: 25%; left: 75%; background-image: url('img/stickers/gift.png'); animation-duration: 45s; }
.loader-sticker.star-2 { width: 110px; height: 110px; top: 80%; left: 15%; background-image: url('img/stickers/star.png'); animation-duration: 40s; opacity: 0.25; }
.loader-sticker.tg-1 { width: 60px; height: 60px; top: 40%; left: 15%; background-image: url('img/stickers/telegram.png'); animation-duration: 25s; animation-direction: reverse; opacity: 0.3; }

@keyframes slowFloatLoader {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-40px) rotate(180deg) scale(1.1); }
    100% { transform: translateY(0) rotate(360deg) scale(1); }
}


/* ========================================= */
/* 🔥 АНИМИРОВАННЫЙ КРИСТАЛЛ (ШАРД PNG) 🔥 */
/* ========================================= */

.animated-shard-icon {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    /* Базовое неоновое свечение (мятно-синее) */
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
    animation: floatAndGlowShard 3s ease-in-out infinite;

    /* Аппаратное ускорение, чтобы свечение не лагало */
    will-change: transform, filter;
    transform: translateZ(0);
}

/* Размеры для разных мест */
.shard-small { width: 18px; height: 18px; margin-right: 4px; margin-bottom: 3px; }
.shard-medium { width: 24px; height: 24px; margin-right: 6px; }
.shard-large { width: 45px; height: 45px; margin-right: 15px; }

/* 🔥 Магическая левитация + пульсация света и яркости 🔥 */
@keyframes floatAndGlowShard {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4)) brightness(1);
    }
    50% {
        /* Кристалл приподнимается и чуть-чуть увеличивается */
        transform: translateY(-4px) scale(1.05);
        /* Тень становится больше, а сама картинка - ярче (блик) */
        filter: drop-shadow(0 8px 18px rgba(0, 229, 255, 0.9)) brightness(1.2);
    }
}


/* ========================================= */
/* 🔥 МОДАЛКА УСПЕХА ПОКУПКИ (ШАРДЫ) 🔥 */
/* ========================================= */
.success-card {
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(158, 239, 225, 0.3);
    box-shadow: 0 0 50px rgba(158, 239, 225, 0.15);
    color: white;
    width: 90%; max-width: 340px;
    padding: 35px 25px;
    border-radius: 32px;
    text-align: center;
    animation: fadeUpIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.success-icon-wrap {
    margin: 0 auto 15px auto;
    display: inline-block;
    padding: 15px;
    background: rgba(158, 239, 225, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(158, 239, 225, 0.1);
}

.success-stats {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 15px 20px;
    text-align: left;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #cbd5e1;
}

/* ========================================= */
/* 🔥 КРУТИЛКА ЗАГРУЗКИ ДЛЯ КНОПОК 🔥 */
/* ========================================= */
.btn-spinner {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    animation: rotateSpinner 2s linear infinite;
    vertical-align: -5px; /* Выравнивание по тексту */
}

.btn-spinner circle {
    stroke: currentColor;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: dashSpinner 1.5s ease-in-out infinite;
}

@keyframes rotateSpinner {
    100% { transform: rotate(360deg); }
}

@keyframes dashSpinner {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}


/* ========================================= */
/* 🔥 СОЧНЫЙ БАЛАНС ШАРДОВ В ПАРТНЕРКЕ 🔥 */
/* ========================================= */
.shard-balance-showcase {
    position: relative;
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(158, 239, 225, 0.3);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shard-balance-showcase .glow-effect {
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 150px; height: 150px;
    background: rgba(158, 239, 225, 0.2);
    filter: blur(50px);
    z-index: 1;
}

.big-floating-shard {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 2;
    animation: floatShard 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(158, 239, 225, 0.6));
    margin-bottom: 15px;
}

.shard-balance-showcase .balance-info {
    position: relative;
    z-index: 2;
}

.balance-label {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    color: #9EEFE1;
    text-shadow: 0 0 20px rgba(158, 239, 225, 0.5);
}

.balance-amount .currency {
    font-size: 16px;
    color: #cbd5e1;
    font-weight: 600;
}

@keyframes floatShard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}



/* 🔥 СОЧНЫЙ КЕШБЭК 🔥 */
.juicy-cashback {
    position: relative;
    background: rgba(158, 239, 225, 0.1);
    border: 1px solid rgba(158, 239, 225, 0.3);
    border-radius: 16px;
    padding: 10px 20px;
    display: inline-flex; /* Было просто flex, inline-flex центрирует лучше */
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px auto 25px auto;
    box-shadow: 0 0 15px rgba(158, 239, 225, 0.15);
    white-space: nowrap; /* 🔥 ГЛАВНАЯ МАГИЯ: Запрещаем перенос текста на новые строки */
    transition: opacity 0.3s ease;
}

.cashback-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(158, 239, 225, 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.juicy-cashback > * { position: relative; z-index: 1; }
.cashback-text { color: #cbd5e1; font-size: 13px; font-weight: 500; }
.cashback-value { color: #fff; font-size: 18px; font-weight: 800; text-shadow: 0 0 10px rgba(158,239,225,0.8); }
.cashback-shard { width: 20px; height: 26px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(158,239,225,0.8)); animation: rockingShard 2s infinite ease-in-out; }


/* ========================================= */
/* 🔥 АНИМАЦИЯ КАЧАНИЯ (МАЯТНИК) ДЛЯ КЕШБЭКА 🔥 */
/* ========================================= */
@keyframes rockingShard {
    0%, 100% {
        transform: rotate(-10deg); /* Наклон влево в начале и конце */
    }
    50% {
        transform: rotate(10deg); /* Наклон вправо в середине цикла */
    }
}