/**
 * ============================================================================
 * LAST NERVE — ULTIMATE CHEATCODE STYLES
 * ============================================================================
 */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */
:root {
    /* Colors */
    --bg: #09090b;
    --bg-card: #111113;
    --bg-card-hover: #1a1a1d;
    --bg-dark: #050506;
    --bg-overlay: rgba(0, 0, 0, 0.8);

    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --primary: #ef4444;
    --primary-hover: #dc2626;
    --primary-glow: rgba(239, 68, 68, 0.3);

    --gold: #f59e0b;
    --gold-hover: #d97706;
    --gold-glow: rgba(245, 158, 11, 0.3);

    --green: #22c55e;
    --green-hover: #16a34a;
    --green-glow: rgba(34, 197, 94, 0.3);

    --purple: #a855f7;
    --purple-hover: #9333ea;
    --purple-glow: rgba(168, 85, 247, 0.3);

    --blue: #3b82f6;

    --border: #27272a;
    --border-light: #3f3f46;

    /* Sizing */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--gold-glow);

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--primary); }

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
    50% { box-shadow: 0 0 20px 5px var(--gold-glow); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px var(--gold)); }
    50% { filter: drop-shadow(0 0 20px var(--gold)); }
}

.shake { animation: shake 0.3s ease; }

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    margin-right: 8px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { padding: 16px 32px; font-size: 1.125rem; }
.btn--xl { padding: 20px 40px; font-size: 1.25rem; }
.btn--full { width: 100%; }

.btn--gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #000;
    box-shadow: 0 4px 15px var(--gold-glow);
}
.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--gold-glow);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
}
.btn--primary:hover { transform: translateY(-2px); }

.btn--green {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-hover) 100%);
    color: #fff;
}

.btn--red {
    background: linear-gradient(135deg, var(--primary) 0%, #991b1b 100%);
    color: #fff;
}

.btn--purple {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-hover) 100%);
    color: #fff;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text);
}
.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn--ghost:hover { color: var(--text); }

.btn--secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn--secondary:hover {
    background: var(--bg-card-hover);
}

.btn--white {
    background: #fff;
    color: #000;
}

/* ============================================================================
   INPUTS
   ============================================================================ */
.input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.input--lg {
    padding: 18px 22px;
    font-size: 1.125rem;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
}

.logo__mark {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
}

.header__center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.happy-hour-badge {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    animation: pulse-glow 2s infinite;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.header__streak {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.header__profile {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.header__profile:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
}

/* ============================================================================
   HOT STREAK BANNER
   ============================================================================ */
.hot-streak-banner {
    background: linear-gradient(90deg, var(--primary) 0%, #991b1b 100%);
    padding: 12px 0;
}

.hot-streak-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hot-streak-banner__flame {
    font-size: 1.5rem;
    animation: float 2s ease infinite;
}

.hot-streak-banner__text {
    font-size: 1rem;
}

.hot-streak-banner__text strong {
    color: var(--gold);
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(239, 68, 68, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--green);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 24px;
}

.hero__title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.hero__stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.hero__stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Activity Feed in Hero */
.hero__activity {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.activity-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.activity-item:hover {
    background: var(--bg-card-hover);
}

.activity-item--new {
    animation: slide-in 0.3s ease;
    background: rgba(245, 158, 11, 0.05);
}

.activity-icon {
    font-size: 1.25rem;
}

.activity-text {
    flex: 1;
    font-size: 0.875rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================================
   EVENTS SECTION
   ============================================================================ */
.events-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.event-card--guaranteed {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, var(--bg-card) 100%);
}

.event-card--boosted {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-card) 100%);
}

.event-card--happy_hour {
    border-color: var(--green);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.1) 0%, var(--bg-card) 100%);
}

.event-card__time {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.event-card__name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.event-card__prize {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.event-card__tier {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.event-card__registered {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.event-card__countdown {
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ============================================================================
   HOW SECTION
   ============================================================================ */
.how-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.how-step__icon {
    font-size: 2.5rem;
}

.how-step__text {
    font-size: 1rem;
    font-weight: 600;
}

.how-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ============================================================================
   TIERS SECTION
   ============================================================================ */
.tiers-section {
    padding: 80px 0;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.tier-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tier-card--featured {
    border-color: var(--gold);
    transform: scale(1.02);
}

.tier-card--featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.tier-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--gold);
    color: #000;
    font-size: 0.625rem;
    font-weight: 800;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.tier-card__header {
    padding: 32px 24px;
    text-align: center;
}

.tier-card__header--green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 100%); }
.tier-card__header--gold { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%); }
.tier-card__header--red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%); }
.tier-card__header--purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.05) 100%); }

.tier-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tier-card__entry {
    font-size: 3rem;
    font-weight: 900;
}

.tier-card__body {
    padding: 24px;
}

.tier-card__example {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.tier-card__first {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
}

.tier-card__lobby {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tier-card__actions {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Practice Banner */
.practice-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
}

.practice-banner__icon {
    font-size: 3rem;
}

.practice-banner__content {
    flex: 1;
}

.practice-banner__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.practice-banner__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================================================
   SOCIAL SECTION
   ============================================================================ */
.social-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.social-card--party:hover { border-color: var(--green); }
.social-card--challenge:hover { border-color: var(--primary); }
.social-card--refer:hover { border-color: var(--purple); }

.social-card__icon {
    font-size: 2.5rem;
}

.social-card__content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.social-card__content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.social-card__arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.social-card:hover .social-card__arrow {
    transform: translateX(4px);
    color: var(--gold);
}

/* ============================================================================
   LEADERBOARD SECTION
   ============================================================================ */
.leaderboard-section {
    padding: 80px 0;
}

.streak-info {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.streak-bonus {
    display: flex;
    gap: 24px;
    padding: 20px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.streak-bonus__item {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.streak-bonus__item strong {
    color: var(--gold);
}

.leaderboard {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 80px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-size: 1.25rem;
    font-weight: 700;
}

.leaderboard-name {
    font-weight: 600;
}

.leaderboard-streak {
    color: var(--primary);
    font-weight: 600;
}

.leaderboard-bonus {
    text-align: right;
    color: var(--gold);
    font-weight: 700;
}

/* ============================================================================
   PAYOUT SECTION
   ============================================================================ */
.payout-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.payout-example {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.payout-example__header {
    padding: 20px;
    background: var(--bg-dark);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.payout-grid {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-dark);
    border-radius: var(--radius);
}

.payout-item--gold {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--gold);
}

.payout-item--silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, var(--bg-dark) 100%);
}

.payout-item--bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, var(--bg-dark) 100%);
}

.payout-place {
    font-weight: 600;
}

.payout-amount {
    font-weight: 700;
    color: var(--gold);
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ============================================================================
   MODALS
   ============================================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-backdrop--hidden {
    display: none;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slide-in 0.3s ease;
}

.modal--lg {
    max-width: 500px;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.modal__close:hover {
    background: var(--primary);
    color: #fff;
}

.modal__icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.modal__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal__text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal__fine {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.modal__fine a {
    color: var(--gold);
}

.modal__form {
    margin-bottom: 24px;
}

.modal__label {
    display: block;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Stake Selector */
.stake-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.stake-btn {
    flex: 1;
    padding: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.stake-btn:hover {
    border-color: var(--gold);
}

.stake-btn--active {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
}

.challenge-payout {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.challenge-payout strong {
    color: var(--gold);
    font-size: 1.25rem;
}

/* Referral Box */
.referral-code-box,
.referral-link-box {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.referral-code-label,
.referral-link-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.referral-code {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 12px;
}

.referral-link-box .input {
    margin-bottom: 12px;
}

.referral-stats {
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius);
}

.referral-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green);
}

.referral-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================================
   TOAST
   ============================================================================ */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast--success {
    border-color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

.toast--error {
    border-color: var(--primary);
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--text);
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero__activity {
        display: none;
    }

    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header__center {
        display: none;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .how-steps {
        flex-direction: column;
    }

    .how-arrow {
        transform: rotate(90deg);
    }

    .tiers-grid {
        grid-template-columns: 1fr;
    }

    .tier-card--featured {
        transform: none;
    }

    .streak-bonus {
        flex-wrap: wrap;
        justify-content: center;
    }

    .leaderboard-row {
        grid-template-columns: 40px 1fr 80px;
    }

    .leaderboard-bonus {
        display: none;
    }

    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ============================================================================
   GAME PAGE STYLES (play.html)
   ============================================================================ */
.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    padding: 16px 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.game-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-header__back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.game-header__info {
    text-align: center;
}

.game-header__tier {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.game-header__pot {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold);
}

.game-header__spectators {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Game Screen */
.game-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.game-screen--hidden {
    display: none;
}

/* Lobby */
.lobby-content {
    text-align: center;
    max-width: 500px;
}

.lobby-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.lobby-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.lobby-players {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.lobby-players__title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lobby-players__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.player-tag {
    padding: 8px 16px;
    background: var(--bg-dark);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

.player-tag--you {
    background: var(--gold);
    color: #000;
}

.player-tag--bot {
    opacity: 0.7;
}

.lobby-countdown {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 16px;
}

.lobby-status {
    color: var(--text-secondary);
}

/* Game Area */
.game-area {
    width: 100%;
    max-width: 600px;
}

.game-bar-container {
    position: relative;
    height: 400px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.game-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-hover) 100%);
    transition: height 0.05s linear, background 0.3s ease;
}

.game-bar--warning {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-hover) 100%);
}

.game-bar--danger {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.game-bar--stopped {
    background: linear-gradient(180deg, var(--blue) 0%, #2563eb 100%);
}

.game-peak-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    display: none;
}

.stop-button {
    width: 100%;
    padding: 24px;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, #991b1b 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all var(--transition);
    animation: pulse-glow 2s infinite;
}

.stop-button:hover {
    transform: scale(1.02);
}

.stop-button:disabled {
    opacity: 0.5;
    animation: none;
    cursor: not-allowed;
}

/* Results */
.results-content {
    text-align: center;
    max-width: 500px;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.results-title--win {
    color: var(--gold);
}

.results-title--lose {
    color: var(--text-muted);
}

.results-amount {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 8px;
}

.results-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.results-streak-bonus {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--green);
    border-radius: 100px;
    color: var(--green);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.results-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.results-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 80px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.results-row:last-child {
    border-bottom: none;
}

.results-row--you {
    background: rgba(245, 158, 11, 0.1);
}

.results-row--bot {
    opacity: 0.7;
}

.results-place {
    font-weight: 700;
}

.results-name {
    font-weight: 500;
}

.results-score {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.results-payout {
    font-weight: 700;
    color: var(--gold);
    text-align: right;
}

.results-almost {
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.results-almost__title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.results-almost__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.results-actions {
    display: flex;
    gap: 12px;
}

.results-actions .btn {
    flex: 1;
}

/* Revenge Button */
.revenge-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 32px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
    animation: slide-in 0.3s ease;
}

.revenge-popup__text {
    font-weight: 600;
}

.revenge-popup--hidden {
    display: none;
}

/* Party/Challenge Share */
.share-box {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.share-box__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.share-box__code {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 16px;
}

.share-box__link {
    display: flex;
    gap: 8px;
}

.share-box__link input {
    flex: 1;
}

/* Waiting for opponent */
.waiting-content {
    text-align: center;
}

.waiting-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

/* Practice badge */
.practice-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--green);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 16px;
}
/* ============================================================================
   BLOODLINE REFERRAL CARD
   ============================================================================ */
.bloodline-card {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0808 100%);
    border: 2px solid #dc2626;
    border-radius: 16px;
    margin: 20px 0;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bloodline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}
.bloodline-header {
    background: linear-gradient(90deg, #dc2626, #991b1b);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.bloodline-content {
    padding: 20px;
}
.bloodline-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}
.bloodline-subtitle {
    color: #a1a1aa;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
}
.bloodline-tiers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.bloodline-tier {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
}
.tier-label {
    display: block;
    color: #71717a;
    font-size: 0.65rem;
    letter-spacing: 1px;
}
.tier-percent {
    display: block;
    color: #22c55e;
    font-size: 1.1rem;
    font-weight: 700;
}
.tier-arrow {
    color: #dc2626;
    font-size: 1.2rem;
    font-weight: bold;
}
.bloodline-stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 16px;
}
.bloodline-stat-item {
    text-align: center;
}
.bloodline-stat-item .stat-value {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}
.bloodline-stat-item .stat-value.green {
    color: #22c55e;
}
.bloodline-stat-item .stat-label {
    display: block;
    color: #f87171;
    font-size: 0.65rem;
    letter-spacing: 1px;
}
.bloodline-stat-item .stat-label.green {
    color: #22c55e;
}
.bloodline-cta {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
/* ============================================================================
   🩸 BLOODLINE MONEY GLITCH CARD - FULL PSYCHOLOGICAL WARFARE VERSION
   ============================================================================ */
.blg-card {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0505 100%);
    border: 2px solid #dc2626;
    border-radius: 16px;
    margin: 20px 0;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4), inset 0 0 60px rgba(220, 38, 38, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.blg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.6), inset 0 0 80px rgba(220, 38, 38, 0.15);
}

/* Banner */
.blg-banner {
    background: linear-gradient(90deg, #dc2626, #991b1b, #dc2626);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blg-banner-text {
    color: #fde047;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.blg-live {
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blg-live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blg-pulse 1.5s infinite;
}
@keyframes blg-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Body */
.blg-body {
    padding: 20px;
}

/* Hook & Headline */
.blg-hook {
    color: #fde047;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 4px;
}
.blg-headline {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

/* Viral Flow */
.blg-flow {
    color: #a1a1aa;
    font-size: 0.7rem;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Generations */
.blg-gens {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.blg-gen {
    text-align: center;
    min-width: 60px;
}
.blg-gen-label {
    display: block;
    color: #71717a;
    font-size: 0.65rem;
    letter-spacing: 1px;
}
.blg-gen-num {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}
.blg-gen-pct {
    display: block;
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 600;
}
.blg-arrow {
    color: #dc2626;
    font-size: 1rem;
    font-weight: 700;
}

/* Result Box */
.blg-result {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}
.blg-result-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.blg-result-amount {
    color: #4ade80;
    font-size: 1.75rem;
    font-weight: 800;
}
.blg-result-sub {
    color: #fbbf24;
    font-size: 0.8rem;
    font-style: italic;
}

/* Loss Aversion Comparison */
.blg-compare {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.blg-compare-bad, .blg-compare-good {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}
.blg-compare-bad {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
}
.blg-compare-good {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.blg-compare-icon {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}
.blg-compare-bad .blg-compare-icon { color: #ef4444; }
.blg-compare-good .blg-compare-icon { color: #4ade80; }
.blg-compare-title {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #a1a1aa;
    margin-bottom: 2px;
}
.blg-compare-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}
.blg-compare-bad .blg-compare-text { color: #fca5a5; text-decoration: line-through; }
.blg-compare-good .blg-compare-text { color: #4ade80; }

/* Social Proof */
.blg-proof {
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.blg-proof-text {
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Stats Row */
.blg-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.blg-stat {
    flex: 1;
    text-align: center;
}
.blg-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}
.blg-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.blg-stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #f87171;
}
.blg-green { color: #4ade80 !important; }
.blg-gold { color: #fbbf24 !important; }

/* CTA Button */
.blg-cta {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blg-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: blg-shimmer 2s infinite;
}
@keyframes blg-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.blg-cta-text {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.blg-cta-urgency {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
}
/* ============================================================================
   HALF BACK SYSTEM - UI STYLES (Phase 6)
   ============================================================================ */

/* Half Back Result Row */
.result-row--halfback {
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.15) 0%, rgba(69, 183, 209, 0.15) 100%) !important;
    border-left: 3px solid #4ECDC4;
}

.result-amount.halfback {
    color: #4ECDC4 !important;
    font-weight: bold;
    animation: halfbackPulse 1s ease-in-out infinite;
}

@keyframes halfbackPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Half Back Label in Payout */
.halfback-label {
    color: #4ECDC4;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* Half Back Animation Overlay */
.halfback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.halfback-overlay.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.halfback-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #4ECDC4;
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 0 50px rgba(78, 205, 196, 0.4);
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.halfback-icon {
    font-size: 80px;
    margin-bottom: 10px;
}

.halfback-title {
    font-size: 32px;
    font-weight: bold;
    color: #4ECDC4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.halfback-amount {
    font-size: 48px;
    font-weight: bold;
    color: #00d4aa;
    text-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
}

.halfback-subtitle {
    font-size: 16px;
    color: #888;
    margin-top: 15px;
}

/* ============================================================================
   FEE DISCLOSURE MODAL (Phase 6)
   ============================================================================ */

.fee-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.fee-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fee-modal-header {
    background: linear-gradient(90deg, #4ECDC4, #45B7D1);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.fee-modal-header h2 {
    color: #000;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.fee-modal-body {
    padding: 25px;
}

.fee-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fee-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fee-section-title {
    color: #4ECDC4;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #e0e0e0;
}

.fee-row-label {
    color: #a0a0a0;
}

.fee-row-value {
    font-weight: bold;
    color: #fff;
}

.fee-row-value.highlight {
    color: #4ECDC4;
}

.fee-row-value.gold {
    color: #FFD700;
}

/* Half Back Structure in Fee Modal */
.halfback-structure {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.halfback-structure-title {
    color: #4ECDC4;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.halfback-example {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.halfback-example-title {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
}

.halfback-example-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

/* Fee Modal Footer */
.fee-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fee-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fee-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #4ECDC4;
}

.fee-checkbox-label {
    color: #a0a0a0;
    font-size: 14px;
}

.fee-acknowledge-btn {
    background: linear-gradient(90deg, #4ECDC4, #45B7D1);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fee-acknowledge-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.fee-acknowledge-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* ============================================================================
   KEY SYSTEM UI (Phase 6)
   ============================================================================ */

.keys-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.keys-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.keys-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.keys-count {
    background: #00d4aa;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.key-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.key-code {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #FFD700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 10px;
}

.key-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.key-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.key-btn.copy {
    background: #4ECDC4;
    color: #000;
}

.key-btn.share {
    background: #667eea;
    color: #fff;
}

.key-btn:hover {
    transform: scale(1.05);
}

/* Key Redemption Modal */
.key-redeem-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.key-redeem-card {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.key-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #0a0a1a;
    color: #fff;
    margin: 20px 0;
    box-sizing: border-box;
}

.key-input:focus {
    border-color: #00d4aa;
    outline: none;
}

.redeem-btn {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redeem-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* ============================================================================
   WINNER / LOSER RESULT STYLES (Phase 6)
   ============================================================================ */

.bar-fill.winner {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.bar-fill.loser {
    background: linear-gradient(90deg, #4ECDC4 0%, #45B7D1 100%);
}

.result-message.winner .winner-text {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.result-message.halfback .halfback-text {
    color: #4ECDC4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
}

/* Confetti Animation */
.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall linear forwards;
    pointer-events: none;
    z-index: 10001;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================================================
   SUBSCRIPTION BONUS INDICATORS (Phase 6)
   ============================================================================ */

.sub-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
}

.sub-bonus-badge.basic {
    background: linear-gradient(90deg, #4ECDC4, #45B7D1);
}

.sub-bonus-badge.premium {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #000;
}

.sub-bonus-badge.vip {
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
}