/* ========================================
   JUEGORETA - MASTER STYLESHEET
   Spanish flag colors: Yellow (#FFC400), Red (#D32F2F)
   Controls ALL pages - SINGLE SOURCE OF TRUTH
   Version: 2.1 (Added Ticket Selector Fixes)
   ======================================== */

/* ===== 1. CSS VARIABLES & RESET ===== */
:root {
    --primary-red: #D32F2F;
    --primary-gold: #FFC400;
    --secondary-gold: #FFD54F;
    --light-bg: #f5f5f5;
    --dark-text: #333;
    --light-text: #666;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 50px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    --box-shadow-hover: 0 15px 30px rgba(211,47,47,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* ===== 2. HEADER & NAVIGATION ===== */
header {
    background: white;
    border-bottom: 3px solid var(--primary-gold);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link.active {
    color: var(--primary-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gold);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Login/Register buttons */
.btn-login {
    padding: 8px 16px;
    background: none;
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    min-width: 44px;
}

.btn-login:hover {
    background: var(--primary-gold);
}

.btn-register {
    padding: 8px 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 44px;
    min-width: 44px;
}

.btn-register:hover {
    background: #b71c1c;
}

/* Profile Button Styles */
.profile-button {
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 50px;
    padding: 5px 15px 5px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    min-height: 44px;
}

.profile-button:hover {
    background: #fff8e7;
    border-color: var(--primary-red);
}

.profile-avatar {
    background: var(--primary-red);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.ticket-badge {
    background: var(--primary-gold);
    color: var(--dark-text);
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    right: 0;
    top: 110%;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 240px;
    display: none;
    z-index: 9999;
}

.profile-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.dropdown-user {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.dropdown-email {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 4px;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--dark-text);
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: var(--primary-red);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.logout-item {
    color: var(--primary-red);
    font-weight: 600;
}

/* ===== 3. SIMPLE PROMO BANNER ===== */
.promo-banner {
    background: #D32F2F;
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 2px solid #FFC400;
}

.promo-banner span {
    font-weight: 700;
    color: #FFC400;
}

.promo-banner small {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 8px 0;
        font-size: 0.9rem;
    }
}

/* ===== 4. CAROUSEL (UPDATED - LARGER) ===== */
.hero-carousel {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 350px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
}

.carousel-content {
    flex: 1;
    padding-right: 40px;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.carousel-subtitle {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-prize {
    margin-bottom: 20px;
}

.carousel-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
}

.carousel-price {
    font-size: 2rem;
    color: var(--dark-text);
    font-weight: 600;
}

.carousel-button {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 45px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 64px;
}

.carousel-button:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.carousel-image {
    margin-left: 40px;
    width: 50%;
    max-width: 600px;
}

.carousel-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.carousel-image img:hover {
    transform: scale(1.02);
}

/* DOTS - ALWAYS VISIBLE */
.carousel-dots {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
    background: rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(51,51,51,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.dot:hover {
    background: rgba(51,51,51,0.8);
}

.dot.active {
    background: var(--primary-red);
    width: 40px;
    border-radius: 20px;
}

/* ===== 5. BUTTONS & FORMS ===== */
/* Primary Button */
.btn-primary {
    background: var(--primary-gold);
    color: var(--dark-text);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary:hover {
    background: var(--primary-red);
    color: white;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.btn-primary:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Secondary Button */
.btn-secondary {
    background: white;
    color: var(--dark-text);
    border: 2px solid var(--primary-gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.btn-secondary:hover {
    background: var(--primary-gold);
}

/* Danger Button */
.danger-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 44px;
}

.danger-btn:hover {
    background: #cc0000;
}

/* Form Inputs */
.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px !important;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.input-field.error {
    border-color: var(--primary-red);
    background: #fff8f8;
}

.field-error {
    color: var(--primary-red);
    font-size: 0.8rem;
    margin-top: -15px;
    margin-bottom: 15px;
    text-align: left;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-gold);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-gold);
    width: 18px;
    height: 18px;
}

/* Edit Toggle */
.edit-toggle {
    background: none;
    border: 1px solid var(--primary-gold);
    color: var(--primary-red);
    padding: 5px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    min-height: 44px;
}

.edit-toggle:hover {
    background: var(--primary-gold);
    color: var(--dark-text);
}

/* ===== 6. CARDS & GRIDS ===== */
/* Prize Grid */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.prize-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.prize-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-gold);
}

.prize-card.urgent {
    border: 2px solid var(--primary-red);
}

.prize-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.prize-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.prize-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 15px 20px 5px;
    color: var(--dark-text);
}

.prize-value {
    margin: 0 20px 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
}

.prize-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.prize-time {
    background: #e0e0e0;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.urgent-time {
    background: var(--primary-red);
    color: white;
}

.prize-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-gold);
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 54px;
}

.prize-button:hover {
    background: var(--primary-red);
    color: white;
}

/* Competition Grid (Homepage) */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.comp-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
    text-align: center;
}

.comp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.comp-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.comp-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.comp-target {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-block;
    margin: 8px 0;
}

.comp-target span {
    font-weight: 800;
    color: var(--primary-red);
}

.comp-progress {
    margin: 12px 0;
}

.comp-progress-bar {
    width: 100%;
    height: 16px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.comp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    transition: width 0.3s;
}

.comp-progress-text {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 5px;
}

.comp-progress-text span {
    color: var(--primary-red);
    font-weight: 800;
}

.comp-prize {
    font-size: 0.8rem;
    color: var(--light-text);
    margin: 8px 0;
}

.comp-btn {
    background: var(--primary-gold);
    color: var(--dark-text);
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 0.9rem;
    min-height: 44px;
}

.comp-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* ===== 7. PRIZE PAGES (premios, ganadores) ===== */
/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    padding: 60px 0;
    text-align: center;
    width: 100%;
}

.page-title {
    color: var(--primary-red);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
}

.page-subtitle {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-top: 10px;
}

/* Section Title */
.section-title {
    color: var(--primary-red);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title span {
    background: var(--primary-gold);
    color: var(--dark-text);
    font-size: 1.1rem;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 700;
}

/* Main Prize (premios) */
.main-prize-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    border: 4px solid var(--primary-gold);
    transition: all 0.3s;
    max-width: 1200px;
    margin: 0 auto;
    height: 450px;
}

.main-prize-image {
    flex: 1.2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-prize-details {
    flex: 1.5;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-prize-header {
    margin-top: 20px;
}

.main-prize-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.main-prize-header .prize-value {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: 800;
    margin-bottom: 20px;
}

.main-prize-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.main-meta-item {
    text-align: center;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 50px;
    flex: 1;
}

.main-meta-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-red);
}

.main-meta-label {
    color: var(--light-text);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.main-progress {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 15px;
    margin: 15px 0;
}

.main-progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.main-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: var(--dark-text);
    font-weight: 700;
}

.main-ticket-type {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 10px 0;
    font-size: 1rem;
}

.main-enter-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
    margin-top: 20px;
    min-height: 64px;
}

.main-enter-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* Weekly Competition */
.weekly-prize-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    border: 3px solid var(--primary-gold);
    transition: all 0.3s;
    max-width: 1150px;
    margin: 0 auto 40px;
    height: 345px;
}

.weekly-prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(255, 196, 0, 0.15);
}

.weekly-prize-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weekly-prize-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.weekly-prize-details {
    flex: 1.5;
    padding: 30px 35px;
}

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

.weekly-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-red);
}

.weekly-badge {
    background: var(--primary-gold);
    color: var(--dark-text);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
}

.prize-podium-compact {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
}

.podium-rank {
    text-align: center;
}

.rank-medal {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.rank-prize {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.3rem;
}

.weekly-cost {
    background: #f8f9fa;
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mini Prize Pools */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.mini-card {
    background: white;
    border-radius: 25px;
    padding: 25px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 3px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.mini-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(255, 196, 0, 0.2);
}

.mini-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--primary-gold);
}

.mini-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.mini-target {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    margin: 10px auto;
}

.mini-target span {
    font-weight: 800;
    color: var(--primary-red);
}

.mini-progress {
    margin: 15px 0;
    width: 100%;
}

.mini-progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    transition: width 0.3s;
}

.mini-progress-text {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 8px;
    font-weight: 600;
}

.mini-progress-text span {
    color: var(--primary-red);
    font-weight: 800;
}

.mini-prize-desc {
    font-size: 0.9rem;
    color: var(--light-text);
    margin: 10px 0;
    font-weight: 500;
}

.enter-mini-btn {
    background: var(--primary-gold);
    color: var(--dark-text);
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 1rem;
    margin-top: auto;
    min-height: 54px;
}

.enter-mini-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* ===== 8. GANADORES PAGE STYLES ===== */
.winner-stats {
    padding: 40px 0;
    background: white;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--light-text);
}

.featured-winner {
    padding: 60px 0;
    background: #fff8e7;
    width: 100%;
}

.featured-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 4px solid var(--primary-gold);
}

.featured-image {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin: 0 auto;
}

.featured-info {
    flex: 1;
}

.winner-badge {
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.winner-location {
    color: var(--light-text);
    margin-bottom: 20px;
}

.winner-prize {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.prize-emoji {
    font-size: 2rem;
}

.prize-name {
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
}

.prize-value {
    color: var(--primary-red);
    font-weight: 800;
}

.winner-story {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--light-text);
    line-height: 1.6;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.winner-meta {
    display: flex;
    gap: 30px;
    color: #888;
    flex-wrap: wrap;
}

.recent-winners {
    padding: 60px 0;
    background: white;
    width: 100%;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.winner-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.winner-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-gold);
}

.winner-card-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.winner-card-info h4 {
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.winner-card-prize {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 3px;
}

.winner-card-date {
    color: #888;
    font-size: 0.8rem;
}

.video-testimonials {
    background: #f5f5f5;
    padding: 60px 0;
    width: 100%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.video-thumbnail {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.video-title {
    padding: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--dark-text);
}

.winner-cta {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    padding: 80px 0;
    text-align: center;
    width: 100%;
    color: white;
}

.winner-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.winner-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.cta-button {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background: var(--primary-gold);
    color: var(--dark-text);
}

.cta-button.primary:hover {
    background: #FFD54F;
    transform: translateY(-2px);
}

/* ===== 9. TICKET PAGES (freetickets) ===== */
.freetickets-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.ticket-balance {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.balance-info h3 {
    color: var(--dark-text);
    margin-bottom: 5px;
}

.balance-info p {
    color: var(--light-text);
}

.balance-amount {
    background: var(--primary-gold);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
}

.balance-amount span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--light-text);
    margin-left: 10px;
}

.daily-limit {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 5px;
}

.daily-progress {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.daily-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.offer-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.offer-content {
    padding: 25px;
}

.offer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.offer-desc {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.offer-reward {
    background: #fff8e7;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-label {
    font-weight: 600;
    color: var(--light-text);
}

.reward-value {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.offer-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 54px;
}

.offer-btn:hover:not(:disabled) {
    background: var(--primary-red);
    color: white;
}

.offer-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.offer-btn:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.ad-counter {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 5px;
    text-align: center;
}

.ad-batch-progress {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--light-text);
}

.ad-dot.completed {
    background: #4CAF50;
    color: white;
}

.ad-dot.active {
    background: var(--primary-gold);
    color: var(--dark-text);
    animation: pulse 1s infinite;
}

.login-prompt {
    background: #fff8e7;
    border-left: 4px solid var(--primary-gold);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.login-prompt p {
    margin: 0;
    color: var(--light-text);
}

.login-prompt a {
    background: var(--primary-red);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.login-prompt a:hover {
    background: #b71c1c;
}

/* ===== 10. ACCOUNT PAGES (dashboard, profile, history, settings) ===== */
.dashboard-container,
.profile-container,
.history-container,
.settings-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    width: 100%;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-text h1 {
    color: var(--dark-text);
    font-size: 2rem;
    margin-bottom: 10px;
}

.welcome-text p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Ticket Counter */
.ticket-counter {
    background: white;
    border-radius: 50px;
    padding: 15px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.counter-item {
    text-align: center;
}

.counter-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--light-text);
    text-transform: uppercase;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-gold);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #fff8e7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-red);
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s;
    display: block;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 196, 0, 0.3);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.action-desc {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Recent Activity */
.recent-activity,
.game-progress {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 0.8rem;
    color: #888;
}

.activity-status {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-win {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Profile Page Specific */
.avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: 700;
    position: relative;
    margin: 0 auto;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    transition: all 0.3s;
}

.avatar-edit:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-gold);
    transition: all 0.3s;
}

.profile-card:hover {
    border-left-color: var(--primary-red);
    transform: translateX(5px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-field {
    margin-bottom: 20px;
}

.info-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--light-text);
}

.info-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px !important;
    transition: all 0.3s;
}

.info-field input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.info-field input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.readonly-field {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #eee;
    color: var(--light-text);
}

/* Badges */
.badge-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-text);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge i {
    font-size: 1rem;
}

.badge.locked {
    background: #e0e0e0;
    color: #999;
}

/* History Page Specific */
.history-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h1 {
    color: var(--primary-red);
    font-size: 2.5rem;
}

.filter-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--primary-gold);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-height: 44px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
}

.history-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    min-height: 44px;
}

.tab-btn.active {
    color: var(--primary-red);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
}

.history-list {
    background: white;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.history-details {
    flex: 1;
}

.history-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.history-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #888;
    flex-wrap: wrap;
}

.history-tags {
    display: flex;
    gap: 10px;
}

.history-tag {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-win {
    background: #d4edda;
    color: #155724;
}

.tag-pending {
    background: #fff3cd;
    color: #856404;
}

.tag-conversion {
    background: #cce5ff;
    color: #004085;
}

.tag-purchase {
    background: #d1c4e9;
    color: #4a148c;
}

.history-value {
    font-weight: 700;
    color: var(--primary-red);
}

/* Settings Page Specific */
.settings-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
    flex-wrap: wrap;
    gap: 15px;
    background: linear-gradient(90deg, #fff8e7, transparent);
}

.settings-header h2 {
    color: var(--primary-red);
    font-size: 1.3rem;
}

.status-badge {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-left {
    flex: 1;
    min-width: 200px;
}

.settings-item-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.settings-item-desc {
    font-size: 0.85rem;
    color: var(--light-text);
}

.settings-item-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.settings-value {
    color: var(--dark-text);
    font-weight: 500;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #ff4444;
    background: #fff8f8;
}

.danger-zone .settings-header h2 {
    color: #ff4444 !important;
}

/* ===== 11. GAME PAGES (reaction, spot-the-ball) ===== */
.game-container {
    max-width: 1000px;
    margin: 50px auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.game-title {
    color: var(--primary-red);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

/* Reaction Game */
.game-area {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 60px 20px;
    margin: 30px 0;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waiting {
    background: #333;
    color: white;
}

.ready {
    background: var(--primary-gold);
    color: var(--dark-text);
}

.click-now {
    background: #4CAF50;
    color: white;
    animation: pulse 1s infinite;
}

.result-box {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    margin: 20px 0;
}

.reaction-time {
    font-size: 1.5rem;
    color: var(--light-text);
}

.best-score {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.best-score-value {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 800;
}

.play-again {
    background: var(--primary-gold);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    min-height: 54px;
}

.play-again:hover {
    background: var(--primary-red);
    color: white;
}

/* Spot the Ball */
.pitch-container {
    position: relative;
    margin: 30px 0;
    cursor: crosshair;
    border: 3px solid var(--primary-gold);
    border-radius: 12px;
    overflow: hidden;
}

#pitchImage {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.click-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.click-marker::before,
.click-marker::after {
    content: '';
    position: absolute;
    background: var(--primary-gold);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.8);
    border-radius: 1px;
}

.click-marker::before {
    width: 3px;
    height: 24px;
    left: 10.5px;
    top: 0;
}

.click-marker::after {
    width: 24px;
    height: 3px;
    left: 0;
    top: 10.5px;
}

.marker-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-gold);
}

.clicks-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid var(--primary-gold);
}

.click-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.click-number {
    background: var(--primary-gold);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.click-coords {
    font-family: monospace;
    font-weight: 600;
}

.click-thumb {
    width: 50px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.zoom-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-text);
}

.zoom-level {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1001;
}

.pitch-image-wrapper {
    position: relative;
    width: 100%;
    transform-origin: center;
    transition: transform 0.1s ease;
}

.pitch-image-wrapper.dragging {
    cursor: grabbing;
}

/* ===== 12. APP PAGE ===== */
.app-hero {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    padding: 60px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    width: 100%;
}

.app-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.app-hero-subtitle {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.app-hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    line-height: 1.6;
}

.app-features-list {
    margin-bottom: 40px;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-check {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1.3rem;
}

.notify-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.notify-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.email-form {
    display: flex;
    gap: 10px;
}

.email-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 16px !important;
    transition: border-color 0.3s;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.notify-button {
    padding: 15px 30px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 54px;
}

.notify-button:hover {
    background: #b71c1c;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #222;
    border-radius: 40px;
    padding: 10px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 3px solid #444;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    padding: 20px;
}

.phone-app-preview {
    text-align: center;
}

.preview-header {
    background: var(--primary-red);
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 800;
}

.preview-car {
    font-size: 5rem;
    margin: 20px 0;
    animation: bounce 2s infinite;
}

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

.preview-progress {
    background: #eee;
    height: 10px;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.preview-bar {
    width: 75%;
    height: 100%;
    background: var(--primary-gold);
}

.preview-button {
    background: var(--primary-red);
    color: white;
    padding: 15px;
    border-radius: 30px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.app-download {
    background: linear-gradient(135deg, #f5f5f5, #fff);
    padding: 60px 0;
    text-align: center;
    width: 100%;
}

.app-download h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.store-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s;
    min-height: 70px;
}

.store-badge:hover {
    transform: scale(1.05);
}

.store-icon {
    font-size: 2rem;
}

.store-text {
    text-align: left;
}

.store-text span {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.store-text small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.qr-section {
    padding: 60px 0;
    width: 100%;
}

.qr-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.qr-code {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--primary-gold);
}

.qr-placeholder {
    font-size: 5rem;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-info {
    flex: 1;
}

.qr-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.qr-info p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.6;
}

.qr-button {
    padding: 12px 30px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 44px;
}

.qr-button:hover {
    background: var(--primary-red);
    color: white;
}

/* ===== 13. LEGAL PAGES ===== */
.legal-content {
    padding: 60px 0;
    background: #f8f9fa;
    width: 100%;
}

.legal-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.legal-disclaimer {
    background: #fff8e7;
    border-left: 4px solid var(--primary-gold);
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.legal-card h2 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin: 30px 0 15px;
}

.legal-card h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.legal-card ul, .legal-card ol {
    margin-left: 20px;
    line-height: 1.8;
    color: var(--light-text);
}

.legal-card li {
    margin-bottom: 10px;
}

.legal-card hr {
    margin: 30px 0;
    border: none;
    border-top: 2px solid #eee;
}

.self-assessment {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 20px 0;
}

.self-assessment li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark-text);
    font-weight: 500;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.help-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-gold);
}

.help-card h3 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

.help-card p {
    margin-bottom: 8px;
    color: var(--light-text);
}

.help-card a {
    color: var(--primary-red);
    text-decoration: none;
}

.help-card a:hover {
    text-decoration: underline;
}

/* ===== 14. REFERRAL LEADERBOARD ===== */
.referral-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--box-shadow);
}

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

.referral-header h2 {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 800;
}

.week-badge {
    background: var(--primary-gold);
    color: var(--dark-text);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: #f8f9fa;
    color: var(--light-text);
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--primary-gold);
}

.leaderboard-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.leaderboard-table tr:hover {
    background: #fff8e7;
}

.rank-1 {
    color: var(--primary-gold);
    font-weight: 800;
    font-size: 1.2rem;
}

.rank-2 {
    color: #C0C0C0;
    font-weight: 800;
    font-size: 1.1rem;
}

.rank-3 {
    color: #CD7F32;
    font-weight: 800;
}

.your-rank {
    background: #fff8e7;
    border-left: 4px solid var(--primary-red);
}

.prize-pool {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.prize-pool h3 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin: 0;
}

.prize-amounts {
    display: flex;
    gap: 20px;
}

.prize-amount {
    text-align: center;
}

.prize-position {
    font-weight: 700;
    color: var(--light-text);
}

.prize-value {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.countdown {
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== 15. CONVERTER BOX ===== */
.converter-box {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border-radius: 50px;
    padding: 15px 30px;
    margin: 30px auto;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(255, 196, 0, 0.2);
}

.converter-text {
    font-weight: 800;
    color: var(--dark-text);
    font-size: 1.2rem;
}

.converter-text span {
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    margin-left: 10px;
    font-size: 1.1rem;
}

.converter-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 54px;
}

.converter-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* ===== 16. HOW IT WORKS ===== */
.how-it-works-compact {
    background: #f8f9fa;
    padding: 30px 20px;
    margin: 20px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    background: white;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.step-number {
    background: var(--primary-gold);
    color: var(--dark-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 10px;
}

.step-title {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--light-text);
}

/* ===== 17. URGENT SECTION ===== */
.urgent-section {
    background: #fff8e7;
    padding: 40px 0;
    border-top: 3px solid var(--primary-gold);
    border-bottom: 3px solid var(--primary-gold);
    width: 100%;
}

.urgent-title {
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
}

.urgent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.urgent-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.urgent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.1);
}

.urgent-emoji {
    font-size: 2rem;
}

.urgent-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.urgent-price {
    font-weight: 700;
    color: var(--primary-red);
}

.urgent-button {
    margin-left: auto;
    padding: 8px 16px;
    background: var(--primary-gold);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.urgent-button:hover {
    background: var(--primary-red);
    color: white;
}

/* ===== 18. FOOTER ===== */
.footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-gold);
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-store, .google-play {
    padding: 10px;
    background: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 44px;
}

.app-store:hover, .google-play:hover {
    background: #444;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #444;
}

/* ===== 19. MESSAGES & NOTIFICATIONS ===== */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.info-message {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s, fadeOut 0.3s 2.7s;
}

.toast-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.toast-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.toast-info {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

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

/* ===== 20. LOADING STATES & SKELETONS ===== */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--dark-text);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 200px;
    border-radius: 12px;
    background: #f0f0f0;
}

.skeleton-text {
    height: 20px;
    width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
}

/* ===== 21. UTILITIES ===== */
.hidden {
    display: none !important;
}

.notranslate {
    translate: no;
    -webkit-touch-callout: default;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--light-text);
}

.error {
    text-align: center;
    padding: 40px;
    color: var(--primary-red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== 22. MOBILE MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .app-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-features-list {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 40px;
    }
    
    .email-form {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .phone-mockup {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .profile-button {
        min-height: 44px;
    }
    
    /* Profile Dropdown Mobile */
    .profile-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: none;
    }
    
    .profile-dropdown::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--primary-gold);
    }
    
    /* Banner */
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-features {
        justify-content: center;
    }
    
    .banner-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
    }
    
    .banner-tagline {
        font-size: 1.2rem;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 12px 24px;
    }
    
    /* Carousel */
    .carousel-slide {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .carousel-title {
        font-size: 2.2rem;
    }
    
    .carousel-subtitle {
        font-size: 1.5rem;
    }
    
    .carousel-value {
        font-size: 2.2rem;
    }
    
    .carousel-price {
        font-size: 1.5rem;
    }
    
    .carousel-button {
        padding: 12px 30px;
        font-size: 1.2rem;
        min-height: 54px;
        width: 100%;
        max-width: 300px;
    }
    
    .carousel-image {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .carousel-dots {
        bottom: -15px;
        padding: 8px 15px;
    }
    
    /* Grids */
    .prize-grid,
    .competitions-grid,
    .mini-grid,
    .features-grid,
    .stats-grid,
    .quick-actions,
    .steps-grid,
    .winners-grid,
    .video-grid,
    .faq-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .main-prize-card, 
    .weekly-prize-card,
    .featured-card,
    .qr-card,
    .card-body {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .main-prize-image img {
        height: 300px;
    }
    
    .featured-image {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }
    
    .winner-meta {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .cta-button {
        width: 100%;
    }
    
    /* Forms */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .notify-button {
        width: 100%;
    }
    
    .store-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .store-badge {
        width: 100%;
        max-width: 300px;
    }
    
    /* Account Pages */
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .ticket-counter {
        width: 100%;
        justify-content: space-around;
        padding: 15px 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .settings-item-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .input-field {
        width: 100%;
    }
    
    .radio-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .badge-container {
        justify-content: center;
    }
    
    /* History Page */
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-icon {
        margin-right: 0;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-section,
    .history-tabs {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Legal Pages */
    .legal-card {
        padding: 20px;
        margin: 0 15px;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .self-assessment {
        padding-left: 15px;
    }
    
    /* Urgent Section */
    .urgent-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    p { font-size: 0.95rem; }
    
    .page-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    
    .game-title { font-size: 2rem; }
    
    .prize-card {
        margin: 0 10px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-buttons {
        align-items: center;
    }
    
    .qr-card {
        padding: 20px;
    }
    
    .qr-placeholder {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .winner-prize {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prize-emoji {
        margin-right: 0;
    }
    
    .badge-container {
        justify-content: center;
    }
}

/* Fix for touch devices - remove hover effects */
@media (hover: none) {
    .prize-card:hover,
    .step-card:hover,
    .stat-card:hover,
    .action-btn:hover,
    .winner-card:hover,
    .feature-box:hover,
    .urgent-card:hover,
    .quick-option:hover {
        transform: none;
    }
    
    .prize-card:active,
    .step-card:active,
    .stat-card:active,
    .action-btn:active,
    .winner-card:active,
    .feature-box:active,
    .urgent-card:active,
    .quick-option:active {
        transform: translateY(-2px);
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
}

/* Fix for 100vh on mobile */
.full-height {
    height: 100vh;
    height: -webkit-fill-available;
}

/* Better table display on mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== 23. TICKET SELECTOR FIXES (ADDED FOR PREMIOS PAGE) ===== */
/* Make ticket selector box wider and taller */
/* ===== 23. TICKET SELECTOR FIXES (ADDED FOR PREMIOS PAGE) ===== */
/* Make ticket selector box wider and taller */
.ticket-selector {
    width: 100% !important;
    min-width: 320px !important;
    max-width: 450px !important;
    padding: 25px 30px !important;
    margin: 20px 0 !important;
    background: white;
    border-radius: 20px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.ticket-selector h4 {
    font-size: 1.2rem !important;
    color: var(--primary-red);
    margin-bottom: 20px !important;
    font-weight: 700;
}

/* Make slider container wider */
.slider-container {
    width: 100% !important;
    margin: 25px 0 20px 0 !important;
}

/* FIXED SLIDER STYLES - THIS WAS THE PROBLEM */
.ticket-selector .slider {
    width: 100% !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: #ddd !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ticket-selector .slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    background: var(--primary-red) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: 2px solid var(--primary-gold) !important;
    margin-top: -8px !important; /* Centers the thumb */
}

.ticket-selector .slider::-moz-range-thumb {
    width: 24px !important;
    height: 24px !important;
    background: var(--primary-red) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: 2px solid var(--primary-gold) !important;
}

.ticket-selector .slider::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 8px !important;
    background: #ddd !important;
    border-radius: 4px !important;
}

/* Make slider values more compact */
.slider-values {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.slider-values span:first-child {
    color: var(--light-text) !important;
    font-size: 0.85rem !important;
}

.slider-values span:last-child {
    color: var(--light-text) !important;
    font-size: 0.85rem !important;
}

#selectedTickets {
    color: var(--primary-red) !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}

/* Make price display more compact */
.price-display {
    background: var(--primary-gold) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    text-align: center !important;
    margin: 15px 0 !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: var(--dark-text) !important;
}

.price-display small {
    font-size: 0.85rem !important;
    font-weight: normal !important;
    display: inline !important;
    color: var(--light-text) !important;
    margin-left: 8px !important;
}

/* Make action buttons more compact */
.action-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.action-buttons button {
    flex: 1 !important;
    padding: 14px 10px !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    min-height: 50px !important;
}

.continue-btn {
    background: var(--primary-red) !important;
    color: white !important;
}

.continue-btn:hover {
    background: #b71c1c !important;
    transform: translateY(-2px) !important;
}

.convert-btn {
    background: var(--primary-gold) !important;
    color: var(--dark-text) !important;
}

.convert-btn:hover {
    background: #e6b000 !important;
    transform: translateY(-2px) !important;
}

/* Ensure the main prize details section can accommodate wider box */
.main-prize-details {
    width: 100% !important;
    max-width: 550px !important;
    padding: 30px 30px 30px 20px !important;
}

/* Mobile responsive for ticket selector */
@media (max-width: 768px) {
    .ticket-selector {
        min-width: 100% !important;
        padding: 20px !important;
    }
    
    .action-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .action-buttons button {
        width: 100% !important;
        white-space: normal !important;
    }
    
    .main-prize-card {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .main-prize-details {
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    .price-display small {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 5px !important;
    }
}