/* ============================================================
 * RUSSIAN VERSION — Lucky Spin LTR CSS
 * ============================================================ */

:root {
    --c-gold: #f2a900;
    --c-black: #000000;
    --c-dark: #111111;
    --c-card: #161616;
    --c-border: #2a2a2a;
    --c-gray: #a0a0a0;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', 'Segoe UI', 'Tahoma', sans-serif; }
body { background-color: var(--c-black); color: white; display: flex; justify-content: center; direction: ltr; text-align: left; }
.container { width: 100%; max-width: 450px; background: var(--c-black); min-height: 100vh; position: relative; }

/* ================= BANNER ================= */
.hero-banner { padding: 12px; }
.hero-bg { width: 100%; height: 190px; background-size: cover; background-position: center; border-radius: 4px; position: relative; overflow: hidden; border: 1px solid #222; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 70%); display: flex; align-items: flex-end; padding: 15px; }
.hero-content { display: flex; align-items: flex-end; gap: 12px; width: 100%; }
.hero-logo { width: 68px; height: 68px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.2); }
.hero-text h1 { font-family: 'Oswald', sans-serif; font-size: 22px; letter-spacing: 1px; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); text-transform: uppercase; }
.hero-tags { display: flex; gap: 8px; }
.tag-light { background: #fff; color: #000; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 20px; display: flex; align-items: center; gap: 4px; }
.tag-dark { background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; gap: 4px; }

/* ================= PAGE LOCK ================= */
.page-lock {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 500;
    pointer-events: all;
}
.page-lock.active { display: block; }

/* ================= SPIN SECTION ================= */
.spin-section {
    padding: 30px 15px 25px;
    margin-top: 15px;
    background: radial-gradient(circle at center, #111e3d 0%, #060a15 80%);
    border-top: 1px solid rgba(59,130,246,0.3);
    border-bottom: 1px solid rgba(59,130,246,0.3);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.8);
}
.spin-section::before,
.spin-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}
.spin-section::before {
    width: 250px; height: 250px;
    background: rgba(255, 215, 0, 0.08);
    top: -50px; left: -50px;
    animation: pulseGold 5s ease-in-out infinite alternate;
}
.spin-section::after {
    width: 250px; height: 250px;
    background: rgba(0, 123, 255, 0.1);
    bottom: -50px; right: -50px;
    animation: pulseBlue 5s ease-in-out infinite alternate;
}
@keyframes pulseGold { 100% { transform: scale(1.2); opacity: 0.6; } }
@keyframes pulseBlue { 100% { transform: scale(1.2); opacity: 0.6; } }

.spin-header { text-align: center; margin-bottom: 25px; position: relative; z-index: 2; }
.spin-title {
    font-size: 22px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 2px; position: relative; display: inline-block;
    text-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.spin-title-glow {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFD700 40%, #FF8C00 80%, #B8860B 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    position: relative; z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
}
.spin-title-glow::after {
    content: 'СЧАСТЛИВОЕ КОЛЕСО';
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    color: transparent; -webkit-text-stroke: 2px rgba(255, 215, 0, 0.2);
    z-index: -1; filter: blur(4px);
    direction: ltr;
}
.spin-subtitle {
    font-size: 12px; color: #a5b4fc; margin-top: 8px;
    letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
}

.spin-wheel-wrapper {
    position: relative; width: 92%; max-width: 360px;
    margin: 0 auto; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.spin-pointer {
    position: absolute; top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 60px; z-index: 30;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.8)) drop-shadow(0 0 10px rgba(255,215,0,0.5));
    animation: pointerPulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes pointerPulse {
    0%, 100% { transform: translateX(-50%) scale(1) translateY(0); }
    50% { transform: translateX(-50%) scale(1.05) translateY(3px); }
}

.spin-wheel-container {
    position: relative; width: 100%; height: 100%;
    border-radius: 50%; background: #02050a;
    box-shadow:
        0 0 0 4px #B8860B, 0 0 0 8px #FFD700, 0 0 0 10px #FF8C00, 0 0 0 14px #0a122e,
        inset 0 0 30px rgba(0,0,0,1),
        0 0 50px rgba(255, 140, 0, 0.3),
        0 0 100px rgba(255, 215, 0, 0.15);
    padding: 4px;
}
#spinCanvas { width: 100%; height: 100%; border-radius: 50%; display: block; position: relative; z-index: 2; }

.spin-center-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85px; height: 85px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFF8D6 0%, #FFD700 20%, #FFA500 60%, #B8860B 100%);
    border: 4px solid #FFF;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 25;
    box-shadow:
        0 8px 30px rgba(0,0,0,0.8),
        0 0 25px rgba(255,215,0,0.9),
        inset 0 -8px 15px rgba(0,0,0,0.5),
        inset 0 8px 15px rgba(255,255,255,0.8);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.spin-center-btn::before {
    content: ''; position: absolute; inset: -10px; border-radius: 50%;
    border: 2px dashed rgba(255,215,0,0.6);
    animation: rotateRing 10s linear infinite; z-index: -1;
}
@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-center-btn::after {
    content: 'КРУТИТЬ';
    position: absolute;
    font-size: 13px;
    font-weight: 900;
    color: #5a3a00;
    text-shadow: 0 2px 2px rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    pointer-events: none;
}
.spin-center-btn.disabled-btn::after {
    content: 'КРУТИТЬ' !important;
    font-size: 11px !important;
    opacity: 0.45;
    letter-spacing: 0;
}
.spin-center-btn:active {
    transform: translate(-50%, -50%) scale(0.92);
    box-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 0 15px rgba(255,215,0,0.9);
}
.spin-center-btn.spinning {
    pointer-events: none;
    animation: centerSpin 0.5s linear infinite;
}
@keyframes centerSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
#spinBtnText { display: none; }

.spin-info { display: flex; justify-content: center; margin-top: 25px; position: relative; z-index: 2; }
.spin-tokens {
    display: flex; align-items: center; gap: 10px;
    background: rgba(13, 23, 46, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(59,130,246,0.5);
    padding: 8px 20px; border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(59,130,246,0.2);
}
#spinTokenCount {
    font-size: 16px; font-weight: 900; color: #FFD700;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
}
.spin-token-label { font-size: 12px; color: #a5b4fc; font-weight: 600; letter-spacing: 0.5px; }

/* Spin Result Modal */
.spin-result-img-box {
    width: 120px; height: 120px; margin: 0 auto 15px;
    background: linear-gradient(135deg, #1e3a8a, #111a3b);
    border-radius: 12px; border: 2px solid #FFD700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(255,215,0,0.5);
    position: relative; overflow: hidden;
}
#spinResultImg { width: 90px; height: 90px; object-fit: contain; position: relative; z-index: 2; }
.result-qty-badge {
    position: absolute; bottom: 0; right: 0;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #000; font-size: 12px; font-weight: 900;
    padding: 2px 8px; border-top-left-radius: 8px; z-index: 3;
}
#spinResultName { font-size: 16px; font-weight: 800; color: #ffffff; margin-bottom: 8px; }
#spinResultPriceRow {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 10px; padding: 6px 14px;
    background: linear-gradient(135deg, #1e3a8a, #111a3b);
    border-radius: 20px; border: 1px solid #3b82f6;
}
#spinResultCoin { width: 20px; height: 20px; }
#spinResultPrice { font-size: 18px; font-weight: 900; color: #FFD700; }
#spinResultDesc { font-size: 12px; color: #8a96b1; margin-bottom: 20px; }

/* ================= SECTION TITLE ================= */
.section-title {
    font-family: 'Oswald', sans-serif; color: var(--c-gold);
    font-size: 18px; padding: 10px 15px; margin-top: 10px;
    border-left: 4px solid var(--c-gold); background: #111;
}

/* ================= PRODUCTS ================= */
.product-grid { padding: 8px 12px; }
.product-card {
    background: var(--c-card); border: 1px solid #222; border-radius: 6px;
    display: flex; align-items: center; padding: 12px; gap: 12px; margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
    direction: ltr;
}
.product-card:hover { border-color: var(--c-gold); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.product-img-box {
    width: 70px; height: 70px; background: #000; border: 1px solid #2a2a2a;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    border-radius: 4px; position: relative; overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 2px 8px rgba(242,169,0,0.1);
}
.product-img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.product-img-box::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: shine 4s infinite ease-in-out;
}
@keyframes shine { 0% { left: -100%; } 40% { left: 150%; } 100% { left: 150%; } }
.product-badge { position: absolute; bottom: 0; left: 0; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; z-index: 3; text-shadow: 1px 1px 1px #000; }
.product-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.product-info p { font-size: 9px; font-weight: 800; color: #fff; letter-spacing: 0.5px; display: inline-block; padding: 3px 10px; border-radius: 3px; }
.price-tag {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--c-gold); color: #000; padding: 6px 12px; border-radius: 4px;
    min-width: 85px; transition: transform 0.2s ease; font-weight: 900;
}
.price-tag:active { transform: scale(0.95); }
.price-coin { width: 16px; height: 16px; object-fit: contain; }
.price-amount { font-size: 14px; }
.discount-label { position: absolute; top: 0; left: 0; background: #e53935; color: white; font-size: 8px; font-weight: bold; padding: 2px 6px; border-bottom-right-radius: 4px; z-index: 4; }

/* ================= PRODUCT TAGS (LTR) ================= */
.tag-merah {
    background-image: linear-gradient(to right, #7a0000, rgba(0,0,0,0));
    border-left: 3px solid #e53935;
    border-radius: 0 !important;
    padding-left: 6px !important;
    padding-right: 12px !important;
}
.tag-ungu {
    background-image: linear-gradient(to right, #5c0d5c, rgba(0,0,0,0));
    border-left: 3px solid #9c27b0;
    border-radius: 0 !important;
    padding-left: 6px !important;
    padding-right: 12px !important;
}
.tag-biru {
    background-image: linear-gradient(to right, #0d2a5c, rgba(0,0,0,0));
    border-left: 3px solid #2979ff;
    border-radius: 0 !important;
    padding-left: 6px !important;
    padding-right: 12px !important;
}
.tag-kuning {
    background-image: linear-gradient(to right, #8c6d00, rgba(0,0,0,0));
    border-left: 3px solid #ffc107;
    border-radius: 0 !important;
    padding-left: 6px !important;
    padding-right: 12px !important;
    color: #fff !important;
}

/* ================= SOLD OUT ================= */
.product-card.gift-sold-out {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative;
}
.product-card.gift-sold-out .product-img {
    filter: grayscale(100%) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.product-card.gift-sold-out .price-tag {
    background: #222 !important;
    color: #666 !important;
}
.product-card.gift-sold-out .product-info h4 {
    color: #888;
}
.product-card.gift-sold-out .product-info p {
    opacity: 0.6;
}

/* ================= FOOTER ================= */
.main-footer { background: #000; padding: 30px 20px; text-align: center; border-top: 1px solid #1a1a1a; margin-top: 20px; }
.footer-heading { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--c-gold); letter-spacing: 1px; margin-bottom: 20px; }
.social-list { display: flex; flex-direction: column; gap: 8px; max-width: 340px; margin: 0 auto 25px; }
.social-item { display: flex; justify-content: space-between; align-items: center; background: #111; border: 1px solid #2a2a2a; padding: 8px 12px; border-radius: 3px; text-decoration: none; color: white; transition: all 0.2s; }
.social-item:hover { border-color: var(--c-gold); background: #1a1a1a; }
.social-label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; }
.social-label i { font-size: 18px; width: 20px; text-align: center; }
.social-action { background: var(--c-gold); color: #000; font-size: 11px; font-weight: 900; padding: 6px 15px; border-radius: 2px; text-transform: uppercase; }
.footer-details { border-top: 1px solid #1a1a1a; padding-top: 20px; font-size: 11px; color: var(--c-gray); line-height: 1.8; }
.footer-details a { color: var(--c-gold); text-decoration: none; }
.footer-details a:hover { text-decoration: underline; }
.footer-brands { margin: 20px 0; }
.footer-brands img { max-width: 100%; height: auto; opacity: 0.85; }
.footer-copy { font-weight: bold; color: #fff; margin-bottom: 5px; }
.footer-copy-sm { margin-bottom: 10px; }
.footer-legal { font-size: 10px; color: #666; margin-top: 10px; }

/* ================= POPUPS ================= */
.modal-layer { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 9999; justify-content: center; align-items: center; padding: 20px; }
.modal-card { width: 100%; max-width: 360px; overflow: hidden; position: relative; animation: popIn 0.25s ease; border-radius: 4px; border: 1px solid #2a2a2a; background: #111; }
@keyframes popIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 2px solid var(--c-gold); background: #000; font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; color: var(--c-gold); text-transform: uppercase; position: relative; direction: ltr; }
.modal-title { font-size: 20px; color: #fff; }

.login-content { padding: 25px 20px; }
.login-profile { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.avatar-box { position: relative; width: 70px; height: 70px; }
.verified-mark { position: absolute; bottom: 0; right: 0; width: 22px; height: 22px; background: var(--c-gold); border-radius: 50%; border: 2px solid #111; display: flex; justify-content: center; align-items: center; color: #000; font-size: 11px; }
.profile-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 20px; color: var(--c-gold); text-transform: uppercase; }
.profile-hint { font-size: 12px; color: var(--c-gray); text-align: center; line-height: 1.5; }

.login-actions { display: flex; flex-direction: column; gap: 10px; }
.login-btn { width: 100%; height: 48px; border-radius: 3px; font-weight: 700; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; font-size: 14px; transition: transform 0.1s; }
.login-btn:active { transform: scale(0.98); }
.btn-google { background: #fff; color: #000; }
.btn-twitter { background: #000; color: #fff; border: 1px solid #333; }
.btn-email { background: var(--c-gold); color: #000; }
.login-brand { margin-top: 25px; text-align: center; opacity: 0.8; }
.login-brand img { height: 30px; }

.field-input { width: 100%; background: #000; border: 1px solid #333; padding: 12px; color: white; border-radius: 3px; outline: none; }
.field-input:focus { border-color: var(--c-gold); }
.field-input::placeholder { color: #666 !important; }
.input-tag { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-gray); margin-bottom: 6px; margin-top: 15px; text-transform: uppercase; font-weight: 700; }
.input-tag i { color: var(--c-gold); }
.field-error { display: none; color: #e53935; font-size: 11px; margin-top: 5px; margin-bottom: 10px; }
.section-label { color: var(--c-gray); font-size: 11px; text-transform: uppercase; margin-bottom: 5px; display: block; font-weight: 700; }
.detail-row { display: flex; align-items: center; gap: 15px; padding: 15px 0; direction: ltr; }
.img-frame { width: 80px; height: 80px; background: #000; border: 1px solid #2a2a2a; display: flex; justify-content: center; align-items: center; position: relative; border-radius: 3px; }
.price-line { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; margin-top: 15px; direction: ltr; }
.input-block { padding: 15px 0; }
.error-msg-confirm { display: none; color: #e53935; font-size: 11px; margin-top: 5px; }

.action-confirm { width: 100%; background: var(--c-gold); color: #000; border: none; padding: 14px; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 16px; border-radius: 3px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: background 0.2s; }
.action-confirm:hover { background: #ffc107; }

.loading-block { display: none; padding: 40px 20px; text-align: center; background: #111 !important; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(242,169,0,0.2); border-top: 4px solid var(--c-gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
.loading-block-alt { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; width: 100%; }
.spinner-alt { width: 50px; height: 50px; border: 5px solid rgba(255,255,255,0.1); border-top: 5px solid var(--c-gold); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ============================================================
   UNIVERSAL RARITY BACKGROUNDS
   ============================================================ */
.rarity-box {
    position: relative;
    overflow: hidden;
    border-radius: 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease;
}
.rarity-merah {
    background: linear-gradient(to bottom, #000000 0%, #7b0000 100%) !important;
    border: 1.5px solid #c62828 !important;
    box-shadow: inset 0 -3px 12px rgba(198, 40, 40, 0.4), 0 0 8px rgba(198, 40, 40, 0.35) !important;
}
.rarity-ungu {
    background: linear-gradient(to bottom, #000000 0%, #ca1cc5 100%) !important;
    border: 1.5px solid #9c27b0 !important;
    box-shadow: inset 0 -3px 12px rgba(156, 39, 176, 0.4), 0 0 8px rgba(156, 39, 176, 0.35) !important;
}
.rarity-kuning {
    background:
        radial-gradient(circle at 50% -10%,
            rgba(255,255,245,.98) 0%, rgba(255,250,170,.96) 8%, rgba(255,234,95,.92) 18%,
            rgba(255,205,40,.75) 32%, rgba(255,165,10,.42) 52%, transparent 72%),
        radial-gradient(circle at 50% 105%,
            rgba(255,170,35,.30) 0%, rgba(210,100,10,.18) 35%, transparent 72%),
        linear-gradient(180deg,
            #fff9b6 0%, #ffe95d 8%, #ffd126 20%, #ffb51b 38%,
            #f19614 56%, #d87710 74%, #a85b0d 90%, #643008 100%) !important;
    border: 1.5px solid #ffc107 !important;
    box-shadow: inset 0 -3px 12px rgba(255, 193, 7, 0.4), 0 0 8px rgba(255, 193, 7, 0.35) !important;
}
.rarity-biru {
    background: radial-gradient(ellipse at 50% 100%, #1565c0 0%, #0d3b7a 50%, #001a3d 100%) !important;
    border: 1.5px solid #2979ff !important;
    box-shadow: inset 0 -3px 12px rgba(41, 121, 255, 0.4), 0 0 8px rgba(41, 121, 255, 0.35) !important;
}
.product-card.gift-sold-out .product-img-box {
    background: radial-gradient(ellipse at 50% 100%, #2a2a2a 0%, #1a1a1a 100%) !important;
    border: 1.5px solid #444 !important;
    box-shadow: none !important;
}
.rarity-box img,
.product-img-box img,
.img-frame img,
.spin-result-img-box img {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}
.product-card .product-img-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite ease-in-out;
    z-index: 3;
    pointer-events: none;
}

/* ============================================================
   LTR FIXES (Russian — left-to-right)
   ============================================================ */
.price-tag { flex-direction: row; }
#spinResultPriceRow { flex-direction: row; }
#playerID_confirm,
#phone {
    text-align: left;
    direction: ltr;
}
#eyeIcon,
#eyeIconGoogle {
    right: 14px !important;
    left: auto !important;
}
.custom-close-btn {
    right: 15px !important;
    left: auto !important;
}