/* landing-discount.css */
:root {
            --bg-dark: #0a0a0b;
            --card-bg: rgba(20, 20, 22, 0.95);
            --accent-start: #1e88e5;
            --accent-end: #ab47bc;
            --gold: #cca24e;
            --gold-dim: rgba(204, 162, 78, 0.15);
            --text-white: #ffffff;
            --text-grey: #8e8e93;
            --input-bg: rgba(255, 255, 255, 0.05);
            --border: rgba(255, 255, 255, 0.1);
            --card-radius: 28px;
            --btn-radius: 18px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, sans-serif;
            background-color: var(--bg-dark);
            background-image: url('/static/bg_pattern.png');
            background-repeat: repeat;
            background-size: 400px;
            color: var(--text-white);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, rgba(10,10,11,0.4) 0%, rgba(10,10,11,0.85) 100%);
            z-index: 0;
            pointer-events: none;
        }

        .main-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            position: relative;
            z-index: 5;
        }

        .card {
            background: var(--card-bg);
            border-radius: var(--card-radius);
            padding: 36px;
            width: 100%;
            max-width: 420px;
            text-align: center;
            box-shadow: 0 30px 60px rgba(0,0,0,0.6);
            border: 1px solid var(--border);
            transition: opacity 0.35s ease, transform 0.35s ease;
        }
        .card.slide-out { opacity: 0; transform: translateX(-30px) scale(0.96); pointer-events: none; }
        .card.slide-in { animation: slideIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
        @keyframes slideIn { from { opacity:0; transform:translateX(30px) scale(0.96); } to { opacity:1; transform:translateX(0) scale(1); } }

        .hidden { display: none !important; }

        .card-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #fff; line-height: 1.3; }
        .card-subtitle { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.45); margin-bottom: 24px; line-height: 1.5; }

        /* ── Category buttons ── */
        .cat-btn {
            width: 100%;
            padding: 16px 20px;
            margin: 6px 0;
            border: 1.5px solid var(--border);
            border-radius: 16px;
            background: var(--input-bg);
            color: #fff;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .cat-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
        .cat-btn .cat-icon { font-size: 20px; flex-shrink: 0; }

        /* ── Wheel ── */
        .wheel-box { position: relative; width: 290px; height: 290px; margin: 20px auto; }
        .wheel-outer-ring {
            position: absolute; inset: -8px; border-radius: 50%;
            border: 3px solid rgba(204,162,78,0.35);
            box-shadow: 0 0 20px rgba(204,162,78,0.08);
        }
        .wheel-dots {
            position: absolute; inset: -8px;
            border-radius: 50%;
            z-index: 1;
        }
        .wheel-dot {
            position: absolute; width: 6px; height: 6px;
            background: var(--gold); border-radius: 50%;
            opacity: 0.5; top: 50%; left: 50%;
        }
        .wheel-box.spinning .wheel-dot { animation: dotPulse 0.15s ease-in-out infinite alternate; }
        @keyframes dotPulse { to { opacity: 1; box-shadow: 0 0 6px var(--gold); } }
        .pointer {
            position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
            z-index: 10;
            width: 28px; height: 34px;
        }
        .pointer svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 8px rgba(204,162,78,0.6)); }
        .wheel-svg {
            width: 100%; height: 100%;
            border-radius: 50%;
            transition: transform 5.5s cubic-bezier(0.1, 0.8, 0.1, 1);
            filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5));
        }
        .wheel-box.spinning .wheel-svg { filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5)) drop-shadow(0 0 16px rgba(204,162,78,0.15)); }
        .wheel-text { font-size: 9px; font-weight: 700; fill: rgba(255,255,255,0.95); }
        .wheel-center {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
            width: 52px; height: 52px; border-radius: 50%;
            background: radial-gradient(circle, #1a1a1e 0%, #0e0e10 100%);
            border: 2.5px solid rgba(204,162,78,0.5);
            box-shadow: 0 0 16px rgba(204,162,78,0.15), inset 0 0 12px rgba(0,0,0,0.6);
            z-index: 8;
            display: flex; align-items: center; justify-content: center;
        }
        .wheel-center-inner {
            width: 32px; height: 32px; border-radius: 50%;
            background: linear-gradient(135deg, var(--gold), #b58f40);
            box-shadow: 0 2px 8px rgba(204,162,78,0.3);
            display: flex; align-items: center; justify-content: center;
        }
        .wheel-center-inner svg { width: 16px; height: 16px; }

        .btn-spin {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: var(--btn-radius);
            background: linear-gradient(90deg, var(--gold), #b58f40);
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: 0.2s;
            box-shadow: 0 8px 24px rgba(204,162,78,0.25);
            margin-top: 20px;
        }
        .btn-spin:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
        .btn-spin:disabled { opacity: 0.4; cursor: default; }

        /* ── Prize result ── */
        .prize-logo-box {
            width: 90px; height: 90px; margin: 16px auto;
            background: rgba(255,255,255,0.06);
            border: 1.5px solid rgba(255,255,255,0.1);
            border-radius: 22px;
            display: flex; justify-content: center; align-items: center;
            box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        }
        .prize-logo-box svg { width: 60px; height: 60px; }
        .prize-name {
            font-size: 20px; font-weight: 700; color: var(--gold);
            margin: 12px 0 20px;
        }

        /* ── Auth form ── */
        .input-wrapper {
            background: var(--input-bg);
            border: 1.5px solid var(--border);
            border-radius: 16px;
            display: flex;
            align-items: center;
            padding: 14px 20px;
            margin-bottom: 16px;
            transition: 0.3s;
            position: relative;
            z-index: 10;
        }
        .input-wrapper:focus-within { border-color: rgba(204,162,78,0.5); background: rgba(255,255,255,0.08); }
        .prefix { color: #fff; font-weight: 600; font-size: 17px; margin-right: 12px; }
        #phone-input {
            background: transparent; border: none; color: #fff;
            font-size: 17px; width: 100%; outline: none; font-family: inherit;
        }

        .btn-gradient {
            background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
            color: #fff; border: none; border-radius: var(--btn-radius);
            padding: 16px; width: 100%;
            font-size: 16px; font-weight: 700;
            cursor: pointer; font-family: inherit;
            transition: 0.3s;
            box-shadow: 0 8px 24px rgba(30,136,229,0.2);
        }
        .btn-gradient:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }

        .sms-grid { display: grid; gap: 8px; margin-bottom: 20px; }
        .otp-input {
            width: 100%; height: 54px;
            background: var(--input-bg);
            border: 1.5px solid var(--border);
            border-radius: 12px;
            text-align: center;
            font-size: 22px; font-weight: 700; color: #fff;
            outline: none; font-family: inherit;
        }
        .otp-input:focus { border-color: var(--accent-start); background: rgba(255,255,255,0.1); }

        .error-msg { color: #ff3b30; font-size: 14px; margin-top: 10px; font-weight: 500; }
        .timer-text { font-size: 13px; color: var(--text-grey); margin-top: 10px; text-align: center; }
        .timer-text b { color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; }
        .requests-warn { font-size: 12px; color: #ff9500; margin-top: 6px; text-align: center; }

        .legal-text { margin-top: 20px; font-size: 12px; color: var(--text-grey); line-height: 1.6; }
        .legal-text a { color: var(--accent-start); text-decoration: none; }
        .link-btn {
            background: none; border: none; color: var(--accent-start);
            font-family: inherit; font-size: 13px; font-weight: 600;
            cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
            padding: 8px; margin-top: 8px;
        }

        /* ── Country selector ── */
        .country-wrap { position: relative; display: flex; align-items: center; flex-shrink: 0; }
        .country-btn { display: flex; align-items: center; gap: 6px; border: none; background: transparent; cursor: pointer; padding: 0 10px 0 12px; font-size: 15px; font-family: inherit; color: #fff; }
        .country-btn .c-flag { font-size: 20px; line-height: 1; }
        .country-btn .c-code { font-weight: 700; }
        .country-btn::after { content: "\25BE"; font-size: 10px; margin-left: 2px; opacity: .5; }
        .country-drop { display: none; position: absolute; left: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: #1a1a1e; box-shadow: 0 12px 32px rgba(0,0,0,.4); z-index: 999; }
        .country-drop.open { display: block; }
        .country-opt { width: 100%; border: none; background: transparent; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; text-align: left; color: #fff; }
        .country-opt:hover, .country-opt.active { background: rgba(255,255,255,.08); }
        .country-opt .c-cd { margin-left: auto; opacity: .5; font-weight: 700; }

        /* ── Telegram WebApp ── */
        .tg-contact-block { display: none; flex-direction: column; gap: 10px; margin-bottom: 16px; }
        .tg-contact-block.vis { display: flex; }
        .tg-manual-link { background: none; border: none; color: var(--accent-start); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px; text-align: center; transition: color 0.15s; }

        /* ── Sector colors (dark-friendly) ── */
        @media (max-width: 480px) {
            .card { padding: 28px 22px; }
            .wheel-box { width: 250px; height: 250px; }
        }

/* ── OmniX auth views (landing-auth.js) ── */
.view { display: none !important; }
.view.active { display: block !important; }
html.land-discount .main-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; position: relative; z-index: 5; width: 100%; min-height: 100dvh; }
html.land-discount .view.active { display: block !important; }
html.land-discount .phone-input { background: transparent; border: none; color: #fff; font-size: 17px; width: 100%; outline: none; font-family: inherit; flex: 1; min-width: 0; }
html.land-discount .password-input { background: transparent; border: none; color: #fff; font-size: 17px; width: 100%; outline: none; font-family: inherit; }
html.land-discount .msg.e { color: #ff3b30; font-size: 14px; font-weight: 500; background: transparent; border: none; padding: 0; margin-top: 10px; }
html.land-discount .msg.e.show { display: block; }
html.land-discount .btn-gradient.loading,
html.land-discount .btn-main.loading { opacity: 0.7; pointer-events: none; }
html.land-discount .otp-input { background: var(--input-bg); border: 1.5px solid var(--border); border-radius: 12px; color: #fff; }
html.land-discount .otp-input:focus { border-color: var(--accent-start); background: rgba(255,255,255,0.1); }
html.land-discount .timer-text b { color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; }
html.land-brawl .view.active { display: flex !important; flex-direction: column; }
html.land-brawl-game .view.active,
html.land-voting .view.active,
html.land-voting-v2 .view.active { display: flex !important; flex-direction: column; }

#otpGrid,
.otp-grid,
.sms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tg-contact-block {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.tg-contact-block.vis { display: flex; }

html.land-channel18 .country-drop.open,
html.land-svo .country-drop.open,
html.land-svo .country-list.open,
html.land-brawl .country-drop.open,
html.land-brawl-game .country-drop.open,
html.land-voting .country-drop.open,
html.land-discount .country-drop.open {
  display: block;
}
