/**
 * MEGAWAYS365 - Main Stylesheet
 * Version 2.0 - Modular Structure
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --gold-dark: #B8860B;
    --gold-light: #FFEC8B;
    --diamond-blue: #00BFFF;
    --silver: #C0C0C0;
    --silver-light: #E8E8E8;
    --bronze: #CD7F32;
    --bg-dark: #0a0a0f;
    --bg-card: #14141f;
    --bg-elevated: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --win-green: #00ff64;
    --loss-red: #ff4757;
}

/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 165, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== M-COIN ==================== */
.m-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary), var(--gold-light));
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    color: #000;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    margin-left: 4px;
}
.m-coin-small { width: 14px; height: 14px; font-size: 0.5rem; }

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 10, 15, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-secondary), var(--gold-primary), var(--gold-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    cursor: pointer;
}
.logo .star { color: var(--gold-primary); -webkit-text-fill-color: var(--gold-primary); }
@keyframes shimmer { to { background-position: 200% center; } }

.header-buttons { display: flex; gap: 8px; }

.header-logged-in {
    display: none;
    align-items: center;
    gap: 12px;
}
.header-logged-in.active { display: flex; }

.balance-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.balance-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: 2px solid var(--gold-primary);
    position: relative;
}

.avatar-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}
.avatar-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.avatar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}
.avatar-menu-item:hover { background: rgba(255, 215, 0, 0.1); color: var(--gold-primary); }
.avatar-menu-item.logout { color: var(--loss-red); }

/* ==================== BUTTONS ==================== */
.btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: var(--gold-primary);
}
.btn-outline:hover { background: rgba(255, 215, 0, 0.1); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary), var(--gold-light));
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4); }

/* ==================== PAGE CONTENT ==================== */
.page-content { display: none; position: relative; z-index: 1; padding: 0 12px; }
.page-content.active { display: block; }

/* ==================== BANNERS ==================== */
.banner-section { margin: 12px 0; overflow: hidden; border-radius: 14px; }
.banner-carousel { display: flex; transition: transform 0.5s ease; }
.banner-slide {
    min-width: 100%;
    height: 80px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
}
.banner-content { flex: 1; z-index: 2; }
.banner-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.banner-title { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: var(--gold-primary); }
.banner-subtitle { color: var(--text-secondary); font-size: 0.75rem; }
.banner-emoji { position: absolute; right: 16px; font-size: 2.5rem; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dot { width: 20px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); cursor: pointer; }
.dot.active { background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary)); width: 28px; }

/* ==================== SECTION HEADERS ==================== */
.section-header { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
.section-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    border-radius: 6px;
    font-size: 0.9rem;
}
.section-title { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 600; }
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 100, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--win-green);
    font-weight: 600;
    margin-left: auto;
}
.live-dot { width: 8px; height: 8px; background: var(--win-green); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: 0.5; transform: scale(0.8); } }

/* ==================== SCROLLING CONTAINERS ==================== */
.scroll-container { overflow: hidden; min-height: 120px; }
.scroll-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}
.scroll-track:hover { animation-play-state: paused; }
.scroll-track.empty { animation: none; width: 100%; justify-content: center; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==================== WINNER/EARNER CARDS ==================== */
.winner-card {
    min-width: 110px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    text-align: center;
}
.winner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary));
}
.winner-rank {
    position: absolute;
    top: 8px; left: 8px;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: #000;
    display: flex; align-items: center; justify-content: center;
}
.winner-avatar {
    width: 100%; height: 50px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 8px;
}
.winner-name { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.winner-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-primary);
}
.winner-today {
    background: rgba(0, 255, 100, 0.15);
    color: var(--win-green);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    margin-top: 6px;
    display: inline-block;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.5; }
.empty-state-text { font-size: 0.85rem; }

/* ==================== JACKPOTS ==================== */
.jackpots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.jackpot-card {
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jackpot-diamond { background: linear-gradient(180deg, rgba(0, 100, 180, 0.2), rgba(10, 10, 30, 0.9)); box-shadow: 0 0 15px rgba(0, 191, 255, 0.2); }
.jackpot-gold { background: linear-gradient(180deg, rgba(180, 140, 0, 0.2), rgba(30, 20, 10, 0.9)); box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
.jackpot-silver { background: linear-gradient(180deg, rgba(120, 120, 140, 0.2), rgba(20, 20, 25, 0.9)); box-shadow: 0 0 15px rgba(192, 192, 192, 0.2); }
.jackpot-bronze { background: linear-gradient(180deg, rgba(140, 80, 30, 0.2), rgba(25, 15, 10, 0.9)); box-shadow: 0 0 15px rgba(205, 127, 50, 0.2); }

.jackpot-icon { font-size: 1.4rem; margin-bottom: 2px; }
.jackpot-name { font-family: 'Orbitron', sans-serif; font-size: 0.55rem; font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.jackpot-diamond .jackpot-name { color: var(--diamond-blue); }
.jackpot-gold .jackpot-name { color: var(--gold-primary); }
.jackpot-silver .jackpot-name { color: var(--silver-light); }
.jackpot-bronze .jackpot-name { color: var(--bronze); }

.jackpot-amount { font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 800; }
.jackpot-diamond .jackpot-amount { color: var(--diamond-blue); }
.jackpot-gold .jackpot-amount { color: var(--gold-primary); }
.jackpot-silver .jackpot-amount { color: var(--silver-light); }
.jackpot-bronze .jackpot-amount { color: var(--bronze); }

/* Jackpot animation */
.jackpot-amount.animating {
    animation: countUp 0.3s ease;
}
@keyframes countUp {
    0% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ==================== WHEEL SECTION ==================== */
.wheel-section {
    margin: 16px 0;
    background: linear-gradient(135deg, var(--bg-card), rgba(40, 30, 10, 0.5));
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.wheel-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(255, 215, 0, 0.05), transparent);
    animation: rotate 10s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.wheel-left { display: flex; align-items: center; gap: 12px; z-index: 2; }
.wheel-icon { font-size: 2.2rem; animation: wobble 2s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.wheel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wheel-subtitle { color: var(--text-secondary); font-size: 0.7rem; }
.btn-wheel {
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 2;
}

/* ==================== POINTS LIST ==================== */
.points-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow: hidden;
}
.points-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 0.8fr;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
}
.points-list { max-height: 300px; overflow-y: auto; }
.points-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 0.8fr;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    align-items: center;
}
.points-row:hover { background: rgba(255, 215, 0, 0.03); }
.points-user { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.points-source { color: var(--text-secondary); font-size: 0.65rem; display: flex; align-items: center; gap: 4px; }
.points-time { color: var(--text-secondary); font-size: 0.65rem; }
.points-amount { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.7rem; color: var(--win-green); text-align: right; }

/* ==================== JACKPOT WINNER CARDS ==================== */
.jackpot-winner-card {
    min-width: 100px;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    text-align: center;
}
.jackpot-winner-card.diamond { border-top: 2px solid var(--diamond-blue); }
.jackpot-winner-card.gold { border-top: 2px solid var(--gold-primary); }
.jackpot-winner-card.silver { border-top: 2px solid var(--silver); }
.jackpot-winner-card.bronze { border-top: 2px solid var(--bronze); }

.jackpot-winner-type { font-size: 1.3rem; margin-bottom: 4px; }
.jackpot-winner-name { font-size: 0.8rem; font-weight: 700; margin-bottom: 2px; }
.jackpot-winner-amount { font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 700; }
.jackpot-winner-card.diamond .jackpot-winner-amount { color: var(--diamond-blue); }
.jackpot-winner-card.gold .jackpot-winner-amount { color: var(--gold-primary); }
.jackpot-winner-card.silver .jackpot-winner-amount { color: var(--silver); }
.jackpot-winner-card.bronze .jackpot-winner-amount { color: var(--bronze); }

/* ==================== FOOTER ==================== */
.footer-section { padding: 20px 0; text-align: center; }
.footer-logo { margin-bottom: 20px; }
.footer-logo .logo { font-size: 1.8rem; }
.social-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.social-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover { background: var(--gold-primary); color: #000; }
.footer-copyright { color: var(--text-secondary); font-size: 0.75rem; opacity: 0.7; }

/* ==================== BOTTOM MENU ==================== */
.bottom-menu {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, rgba(20, 20, 31, 0.95), var(--bg-dark));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}
.bottom-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
}
.bottom-menu-item.active { color: var(--gold-primary); }
.bottom-menu-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-secondary), var(--gold-primary));
    border-radius: 0 0 3px 3px;
}
.menu-icon { font-size: 1.4rem; }

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close:hover { color: var(--gold-primary); }
.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 20px;
}

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-select {
    width: 100%;
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.form-input:focus, .form-select:focus { border-color: var(--gold-primary); }
.form-input::placeholder { color: var(--text-secondary); opacity: 0.7; }

.input-with-icon {
    position: relative;
}
.input-with-icon .form-input { padding-left: 46px; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Captcha */
.captcha-box {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.captcha-checkbox {
    width: 24px; height: 24px;
    border: 2px solid var(--gold-primary);
    border-radius: 4px;
    background: var(--bg-dark);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.captcha-checkbox.checked { background: var(--gold-primary); }
.captcha-checkbox.checked::after { content: '✓'; color: #000; font-weight: bold; }
.captcha-text { color: var(--text-secondary); font-size: 0.9rem; flex: 1; }
.captcha-logo { font-size: 1.5rem; }

/* Submit buttons */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Tab system */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--bg-elevated); padding: 6px; border-radius: 10px; }
.tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tab:hover { color: var(--gold-primary); }
.tab.active { background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary)); color: #000; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== FLOATING MESSAGE ==================== */
.floating-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
    max-width: 90%;
}
.floating-message.success { background: linear-gradient(135deg, rgba(0,255,100,0.9), rgba(0,200,80,0.9)); color: #fff; }
.floating-message.error { background: linear-gradient(135deg, rgba(255,71,87,0.9), rgba(200,50,60,0.9)); color: #fff; }
.msg-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; margin-left: 10px; }

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== WHEEL MODAL ==================== */
.wheel-container { position: relative; width: 250px; height: 250px; margin: 0 auto 20px; }
.wheel {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1a1a2e 0deg 60deg, var(--gold-dark) 60deg 120deg, #1a1a2e 120deg 180deg, var(--gold-dark) 180deg 240deg, #1a1a2e 240deg 300deg, var(--gold-dark) 300deg 360deg);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}
.wheel-center {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #000;
    display: flex; align-items: center; justify-content: center;
}
.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--gold-primary);
}
.wheel-prizes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.prize-tag {
    background: var(--bg-elevated);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--gold-primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.spin-info { margin-top: 12px; font-size: 0.75rem; color: var(--text-secondary); text-align: center; }

/* ==================== CREDENTIALS DISPLAY ==================== */
.credential-section { margin-bottom: 16px; }
.credential-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-elevated);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.credential-value {
    flex: 1;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
}
.copy-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 12px;
}
.copy-btn:hover { background: var(--gold-primary); }

.save-warning { text-align: center; color: var(--gold-primary); font-size: 0.9rem; font-weight: 600; margin: 20px 0 16px; }
.save-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}
.save-btn:hover { background: rgba(255, 215, 0, 0.1); border-color: var(--gold-primary); }
.continue-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--win-green), #00cc55);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}
.continue-btn:hover { box-shadow: 0 6px 20px rgba(0, 255, 100, 0.3); }

/* ==================== LINK STYLES ==================== */
.link { color: var(--gold-primary); text-decoration: none; cursor: pointer; font-weight: 600; }
.link:hover { text-decoration: underline; }
.footer-text { text-align: center; margin-top: 20px; color: var(--text-secondary); font-size: 0.9rem; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
