/* ============================================
   LotteryPro - Premium Competition Platform
   Custom Styles - Bootstrap 5 Override
   ============================================ */

:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    /* Gold Accents */
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    
    /* Dark Theme */
    --dark-bg: #0f0f1a;
    --dark-card: #1a1a2e;
    --dark-card-hover: #252540;
    --dark-border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(236, 72, 153, 0.05) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(10px);
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   Typography
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-custom {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Navbar
   ============================================ */
.navbar-custom {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .logo-icon {
    font-size: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.wallet-badge {
    background: var(--glass-bg);
    border: 1px solid var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.wallet-badge:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
    background: var(--gradient-primary);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-gold {
    background: var(--gradient-gold);
    border: none;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
    color: #000;
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Pulse animation for CTAs */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px var(--primary-glow);
    }
    50% {
        box-shadow: 0 4px 30px var(--primary-glow), 0 0 40px var(--primary-glow);
    }
}

/* ============================================
   Cards
   ============================================ */
.card-custom {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card-custom:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--primary-glow);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Competition Card */
.competition-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.competition-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px var(--primary-glow);
}

.competition-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.competition-card:hover .card-img-top {
    transform: scale(1.1);
}

.competition-card .image-wrapper {
    overflow: hidden;
    position: relative;
}

.competition-card .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.competition-card:hover .image-overlay {
    opacity: 1;
}

/* Badges */
.badge-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badge-glow 2s infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
}

.badge-ending {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: var(--gradient-gold);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-sold-out {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-custom {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-custom.progress-gold .progress-bar {
    background: var(--gradient-gold);
}

/* High fill warning */
.progress-custom.almost-sold .progress-bar {
    background: linear-gradient(90deg, var(--gold), #ef4444);
    animation: progress-pulse 1.5s infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   Countdown Timer
   ============================================ */
.countdown-wrapper {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.countdown-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-width: 70px;
    text-align: center;
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.countdown-urgent .countdown-value {
    color: #ef4444;
    animation: countdown-flash 1s infinite;
}

@keyframes countdown-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    animation: hero-bg-move 20s ease infinite;
}

@keyframes hero-bg-move {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-5%, 5%); }
    50% { transform: translate(5%, -5%); }
    75% { transform: translate(-3%, -3%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

/* Floating elements */
.floating-ticket {
    position: absolute;
    font-size: 4rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.floating-ticket:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-ticket:nth-child(2) { top: 60%; left: 5%; animation-delay: 1s; }
.floating-ticket:nth-child(3) { top: 20%; right: 15%; animation-delay: 2s; }
.floating-ticket:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 1.5s; }

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

/* ============================================
   Quantity Selector
   ============================================ */
.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.quantity-selector .btn-qty {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-selector .btn-qty:hover {
    background: var(--primary);
}

.quantity-selector input {
    width: 80px;
    text-align: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.quantity-selector input:focus {
    outline: none;
}

/* Quick quantity buttons */
.quick-qty-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   Form Controls
   ============================================ */
.form-control-custom {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: #fff;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: var(--dark-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    color: #fff;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label-custom {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Custom checkbox */
.form-check-custom .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 6px;
}

.form-check-custom .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-custom .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ============================================
   Sections
   ============================================ */
.section-dark {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.section-gradient {
    background: var(--gradient-hero);
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   How It Works
   ============================================ */
.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-desc {
    color: rgba(255, 255, 255, 0.6);
}

/* Connector line */
.step-connector {
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* ============================================
   Winners Section
   ============================================ */
.winner-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.winner-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.winner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-bottom: 1rem;
}

.winner-prize {
    color: var(--gold);
    font-weight: 600;
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.trust-badge-icon {
    font-size: 2rem;
}

.trust-badge-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */
.footer-dark {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #080812 100%);
    border-top: 1px solid var(--dark-border);
    padding: 4rem 0 2rem;
}

.footer-dark h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-dark ul {
    list-style: none;
    padding: 0;
}

.footer-dark ul li {
    margin-bottom: 0.75rem;
}

.footer-dark ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dark ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 2rem;
    margin-top: 3rem;
}

.age-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
}

.auth-image-side {
    flex: 1;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-image-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--dark-bg);
}

.auth-form-wrapper {
    max-width: 400px;
    width: 100%;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.social-login-btn:hover {
    background: var(--dark-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.divider-text {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dark-border);
}

.divider-text span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* ============================================
   Checkout
   ============================================ */
.checkout-summary {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2rem;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 1.5rem;
}

.checkout-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.payment-option input {
    display: none;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-main {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.gallery-thumb {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

/* ============================================
   Carousel
   ============================================ */
.carousel-custom .carousel-control-prev,
.carousel-custom .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-custom .carousel-control-prev {
    left: -25px;
}

.carousel-custom .carousel-control-next {
    right: -25px;
}

.carousel-custom .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
}

.carousel-custom .carousel-indicators button.active {
    background: var(--primary);
}

/* ============================================
   Animations
   ============================================ */
.shimmer {
    background: linear-gradient(90deg, 
        var(--dark-card) 0%, 
        var(--dark-card-hover) 50%, 
        var(--dark-card) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .auth-image-side {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .countdown-item {
        min-width: 55px;
        padding: 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.25rem;
    }
    
    .navbar-custom .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--dark-border);
    }
    
    .mobile-menu {
        background: var(--dark-bg);
        border-top: 1px solid var(--dark-border);
    }
}

/* ============================================
   Utilities
   ============================================ */
.glow-primary {
    box-shadow: 0 0 30px var(--primary-glow);
}

.glow-gold {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

.border-glow {
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

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

.bg-dark-card {
    background: var(--dark-card);
}

/* ============================================
   Prize Ticket Board
   ============================================ */
.prize-ticket {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    min-width: 70px;
    text-align: center;
    transition: transform 0.2s;
}

.prize-ticket:hover {
    transform: scale(1.05);
}

.prize-ticket .ticket-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.875rem;
}

.prize-ticket.available {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.prize-ticket.available .ticket-status {
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.prize-ticket.won {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.prize-ticket.won .winner-initials {
    font-weight: bold;
    font-size: 0.875rem;
    color: #fbbf24;
}

.prize-ticket.won .ticket-number {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Legal Pages Styling */
.legal-content h4 {
    color: var(--primary-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content h5 {
    color: var(--text-muted-custom);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.legal-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.legal-content ul {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-light);
}

.legal-content a:hover {
    color: var(--primary);
}

.legal-content .table {
    font-size: 0.9rem;
}

.legal-content .table th {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--dark-border);
}

.legal-content .table td {
    border-color: var(--dark-border);
}

/* ============================================
   Mobile Cart & Toast Enhancements
   ============================================ */

/* Cart Pulse Animation */
@keyframes cartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-pulse {
    animation: cartPulse 0.6s ease-in-out;
}

.cart-pulse .bi-cart3,
.cart-pulse .bi-cart {
    color: var(--gold) !important;
}

/* Mobile Cart Button */
#mobileCartBtn {
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

#mobileCartBtn:hover {
    background: rgba(99, 102, 241, 0.2);
}

#mobileCartBadge {
    font-size: 0.65rem;
    min-width: 1.25rem;
    padding: 0.2rem 0.4rem;
}

/* Toast Styling */
.toast {
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.toast-body {
    padding: 1rem 1.25rem;
}

/* ============================================
   Mobile Sticky Purchase Bar
   ============================================ */

.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 15, 26, 0.98), rgba(26, 26, 46, 0.95));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 1040;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-bar.show {
    transform: translateY(0);
}

.mobile-sticky-bar .price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-sticky-bar .price-display .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

.mobile-sticky-bar .price-display .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-sticky-bar .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.25rem;
}

.mobile-sticky-bar .quantity-controls button {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.2s;
}

.mobile-sticky-bar .quantity-controls button:hover {
    background: var(--primary);
}

.mobile-sticky-bar .quantity-controls button:disabled {
    opacity: 0.3;
}

.mobile-sticky-bar .quantity-controls .qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-sticky-bar .add-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.mobile-sticky-bar .add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.mobile-sticky-bar .add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mobile-sticky-bar .add-btn.added {
    background: var(--gradient-gold);
}

/* Hide on desktop */
@media (min-width: 992px) {
    .mobile-sticky-bar {
        display: none !important;
    }
}

/* Add padding to main content when sticky bar is shown */
body.has-sticky-bar {
    padding-bottom: 90px;
}

@media (min-width: 992px) {
    body.has-sticky-bar {
        padding-bottom: 0;
    }
}

/* Success feedback animation */
@keyframes addedSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.mobile-sticky-bar .add-btn.success-flash {
    animation: addedSuccess 0.3s ease;
}

/* Fix z-index for cart badges */
#mobileCartBtn {
    z-index: 1050;
}

#mobileCartBadge,
.cart-dropdown-badge {
    z-index: 1051 !important;
}

.navbar .badge {
    z-index: 1051 !important;
}

.navbar-nav {
    z-index: 1;
}

.navbar .d-flex {
    z-index: 1050;
    position: relative;
}

/* Ensure badges are always visible */
.position-absolute.badge {
    z-index: 1051 !important;
}

/* Ensure cart button doesn't clip badge */
#mobileCartBtn,
.cart-dropdown-toggle {
    overflow: visible !important;
}

.navbar-brand,
.navbar-toggler,
.navbar .btn {
    overflow: visible !important;
}

/* Make sure the mobile buttons area is above collapse */
.d-flex.d-lg-none {
    position: relative;
    z-index: 1060;
}

/* Mobile Nav Icons */
@media (max-width: 991.98px) {
    .navbar .d-flex.d-lg-none {
        gap: 0.5rem !important;
    }
    
    .navbar .d-flex.d-lg-none .btn-glass {
        padding: 0.4rem 0.6rem;
    }
    
    .navbar .d-flex.d-lg-none .btn-glass.btn-sm {
        font-size: 0.8rem;
    }
    
    /* Mobile dropdown menu styling */
    .navbar .dropdown-menu {
        position: absolute !important;
        right: 0;
        left: auto;
        margin-top: 0.5rem;
    }
    
    .navbar .dropdown-item:hover {
        background: rgba(99, 102, 241, 0.2);
    }
    
    .navbar .dropdown-item:active {
        background: var(--primary);
    }
}

/* Mobile Nav - Uniform Button Heights */
@media (max-width: 991.98px) {
    .navbar .d-flex.d-lg-none .btn,
    .navbar .d-flex.d-lg-none .btn-glass,
    .navbar .d-flex.d-lg-none .navbar-toggler {
        height: 38px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.75rem;
    }
    
    .navbar .d-flex.d-lg-none .navbar-toggler {
        padding: 0 0.5rem;
    }
    
    #mobileCartBtn {
        height: 38px;
        min-height: 38px;
    }
}
