/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #FFFEF7, #FFF8DC);
    padding-bottom: 80px; /* Space for bottom navigation */
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF8F00 100%);
    color: #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-text h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #333;
    margin: 0;
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-top: -2px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #333;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFC107, #FF8F00);
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid rgba(51,51,51,0.3);
}

.btn-outline:hover {
    background: rgba(51,51,51,0.1);
    border-color: #333;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* User Greeting */
.user-greeting {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.greeting-text {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.greeting-text span {
    font-weight: 600;
    color: #2c3e50;
}

/* Auth button visibility states */
.auth-buttons.hidden {
    display: none !important;
}

.mobile-auth.hidden {
    display: none !important;
}

.user-greeting.visible {
    display: flex !important;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    background: linear-gradient(135deg, #FFF8DC, #FFFACD);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    color: #333;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-nav-item:hover {
    color: #FF8F00;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    padding: 12px 10px;
}

.logout-item {
    color: #ff6b6b !important;
}

/* Hero Banner */
.hero-banner {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.7), rgba(255, 193, 7, 0.6)), url('https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
}

.hero-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-content {
    width: 100%;
}

.hero-text h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.95;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-event-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.hero-banner .event-date, .hero-banner .event-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.event-date, .event-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.event-date i, .event-location i {
    font-size: 1.2rem;
    color: #F39C12;
}

/* Hero Carousel Navigation */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.hero-carousel-btn:hover {
    background: rgba(243, 156, 18, 0.8);
    border-color: #F39C12;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.hero-carousel-btn.prev {
    left: 30px;
}

.hero-carousel-btn.next {
    right: 30px;
}

/* Hero Carousel Indicators */
.hero-dots-container {
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    padding: 25px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-indicator:hover {
    background: rgba(243, 156, 18, 0.7);
    border-color: rgba(243, 156, 18, 0.5);
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.hero-indicator.active {
    background: #F39C12;
    border-color: #E67E22;
    transform: scale(1.4);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.5);
}

/* Events Section */
.events-section {
    padding: 60px 0;
    background: white;
}

.events-section:nth-child(odd) {
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    border-radius: 2px;
}

/* Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.event-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border: 2px solid #FFD700;
}

.event-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.event-details {
    padding: 25px;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.event-date-small, .event-location-small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.event-date-small i, .event-location-small i {
    color: #F39C12;
    width: 16px;
}

.event-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

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

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F39C12;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #FFD700, #FFC107);
    border: 2px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #FFC107, #FF8F00);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 25px;
    box-shadow: 0 -5px 20px rgba(255, 215, 0, 0.3);
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    min-width: 60px;
}

.bottom-nav-item.active {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.bottom-nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.qr-modal-content {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

/* Modal Body */
.modal-body {
    padding: 0 25px 25px;
}

/* Points Summary Styles */
.points-summary {
    text-align: center;
}

.points-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.points-total i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: gold;
    animation: pulse 2s infinite;
}

.points-total h2 {
    margin: 10px 0 5px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.points-total p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.points-info {
    text-align: left;
}

.points-info h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-info h3:first-child {
    margin-top: 0;
}

.points-info ul {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 0 0 20px 0;
    list-style: none;
}

.points-info li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-info li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.points-info strong {
    color: #4CAF50;
    font-weight: 600;
}

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

/* Form Styles */
.auth-form {
    padding: 0 25px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #F39C12;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
}

.auth-switch p {
    color: #666;
    font-size: 14px;
}

.auth-switch a {
    color: #F39C12;
    text-decoration: none;
}

/* QR Scanner */
.qr-scanner {
    padding: 25px;
}

.camera-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid #F39C12;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
    animation: scannerPulse 2s infinite;
}

@keyframes scannerPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.02);
        opacity: 1;
    }
}

.scanner-frame::before,
.scanner-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #F39C12;
}

.scanner-frame::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.scanner-frame::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

/* Loading dots animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 10px 0;
}

.loading-dots div {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }
.loading-dots div:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fade in/out animation for status messages */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    20%, 80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

.scanner-instructions {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.scanner-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.promo-details p {
    margin-bottom: 15px;
    color: #333;
}

/* Mobile QR Scanner Optimizations */
@media (max-width: 768px) {
    .camera-container {
        height: 250px;
        margin-bottom: 15px;
    }
    
    .scanner-frame {
        width: 180px;
        height: 180px;
    }
    
    .qr-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
    
    .qr-scanner {
        padding: 20px;
    }
    
    .scanner-instructions {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    /* Improve button styling in camera error states */
    .camera-container .btn {
        min-height: 44px;
        font-weight: 500;
        margin-bottom: 8px;
        touch-action: manipulation;
    }
}

/* Touch-friendly manual entry */
#manualQRInput {
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
    font-size: 16px; /* Prevents zoom on iOS */
}

#manualQRInput:focus {
    outline: none;
    border-color: #F39C12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

/* Camera permission styling */
.camera-container .btn-outline {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
}

.camera-container .btn-outline:hover,
.camera-container .btn-outline:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* My Points Modal Styles */
.points-summary {
    margin-bottom: 30px;
}

.points-card {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.points-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.points-info h3 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

.points-info p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.points-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

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

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.checkin-history h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkin-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #4CAF50;
}

.checkin-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
}

.checkin-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.points-badge {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.points-info-card {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #1976D2;
}

.points-info-card h4 {
    color: #1976D2;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-info-card ul {
    margin: 0;
    padding-left: 20px;
    color: #333;
}

.points-info-card li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Check-in Result Styles */
.checkin-result {
    text-align: center;
}

.checkin-header {
    margin-bottom: 20px;
}

.checkin-header h3 {
    margin: 10px 0;
    font-size: 1.5rem;
}

.checkin-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-info h4 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.event-info p {
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Loading Spinner */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #F39C12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-event-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .event-card {
        flex: 0 0 280px;
    }
    
    .carousel-btn {
        /* Keep carousel buttons visible on mobile but adjust size */
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .carousel {
        /* Remove auto scroll on mobile but keep manual navigation */
        overflow: visible;
    }
    
    /* Hero carousel mobile adjustments */
    .hero-carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .hero-carousel-btn.prev {
        left: 15px;
    }
    
    .hero-carousel-btn.next {
        right: 15px;
    }
    
    .hero-indicator {
        width: 12px;
        height: 12px;
    }
    
    .hero-dots-container {
        padding: 20px 0;
    }
    
    /* My Points Mobile Styles */
    .points-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .points-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkin-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .checkin-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .checkin-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (min-width: 769px) {
    /* Keep hamburger menu visible on all screen sizes */
    .hamburger {
        display: flex;
    }
    
    /* Show desktop auth buttons by default, but allow JS to hide them */
    .desktop-only {
        display: flex;
    }
    
    /* Mobile menu dropdown should work on all screen sizes */
    .mobile-menu {
        display: block;
    }
    
    /* Hide mobile auth buttons in hamburger menu on desktop to avoid duplication */
    .mobile-auth {
        display: none;
    }
    
    /* Adjust mobile menu positioning for desktop */
    .mobile-menu {
        min-width: 250px;
        right: 0;
        left: auto;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
}

/* QR Scanner Promo Result Styles */
.promo-result {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.promo-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.promo-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.promo-value {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    font-size: 1.1rem;
}

.promo-details {
    padding: 20px;
}

.promo-details p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.5;
}

.promo-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}

.promo-info small {
    color: #666;
    font-size: 0.9rem;
}

.promo-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.promo-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-actions .btn {
    flex: 1;
    min-width: 120px;
}

.login-prompt {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin: 10px 0;
    font-style: italic;
}

@media (max-width: 480px) {
    .promo-header {
        padding: 15px;
    }
    
    .promo-header h3 {
        font-size: 1.2rem;
    }
    
    .promo-value {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .promo-details {
        padding: 15px;
    }
    
    .promo-actions {
        flex-direction: column;
    }
    
    .promo-actions .btn {
        min-width: auto;
    }
}

/* Redemption Styles */
.user-points-header {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.points-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.points-display i {
    font-size: 1.5rem;
    color: #FFD700;
}

.points-value {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 700;
}

.redemption-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.redemption-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: #e3f2fd;
    border-color: #1976D2;
    color: #1976D2;
}

.filter-btn.active {
    background: #1976D2;
    border-color: #1976D2;
    color: white;
}

.redemption-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.redemption-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.redemption-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #1976D2;
}

.redemption-item.insufficient-points {
    opacity: 0.6;
    cursor: not-allowed;
}

.redemption-item.insufficient-points:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.redemption-item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}

.redemption-item-content {
    padding: 15px;
}

.redemption-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.redemption-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.redemption-points {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.redemption-points.insufficient {
    background: #ffebee;
    color: #c62828;
}

.redemption-item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.redemption-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redemption-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.redemption-stock {
    font-size: 0.8rem;
    color: #666;
}

.redemption-stock.low-stock {
    color: #f57c00;
    font-weight: 600;
}

.redemption-stock.out-of-stock {
    color: #d32f2f;
    font-weight: 600;
}

/* Redeem Item Details Modal */
.redeem-item-details {
    text-align: center;
}

.redeem-item-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.redeem-item-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.redeem-item-points {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.redeem-item-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.delivery-options {
    margin: 20px 0;
    text-align: left;
}

.delivery-options h4 {
    margin-bottom: 10px;
    color: #333;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.delivery-option input[type="radio"] {
    accent-color: #1976D2;
}

.pickup-events {
    margin-top: 10px;
    display: none;
}

.pickup-events.active {
    display: block;
}

.pickup-events select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
}

.delivery-form {
    margin-top: 10px;
    display: none;
}

.delivery-form.active {
    display: block;
}

.delivery-form .form-group {
    margin-bottom: 15px;
}

.delivery-form input,
.delivery-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.redeem-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .redemption-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .redemption-filters {
        padding: 0;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .redemption-item-content {
        padding: 12px;
    }
    
    .redeem-actions {
        flex-direction: column;
    }
}

/* Redemption Tabs */
.redemption-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.redemption-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.redemption-tab-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.redemption-tab-btn.active {
    color: #1976D2;
    border-bottom-color: #1976D2;
    background: #f8f9fb;
}

.redemption-tab-content {
    display: block;
}

.redemption-tab-content[style*="display: none"] {
    display: none !important;
}

/* Redemption History */
.redemption-history {
    padding: 10px 0;
}

.history-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    border-left: 4px solid #1976D2;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px 20px;
    background: #f8f9fa;
}

.history-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.history-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

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

.history-status.processing {
    background: #cce5ff;
    color: #004085;
}

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

.history-status.delivered {
    background: #d1ecf1;
    color: #0c5460;
}

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

.history-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.history-item-body {
    padding: 15px 20px;
}

.history-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.history-detail {
    display: flex;
    flex-direction: column;
}

.history-detail-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
}

.history-detail-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

.history-points-used {
    color: #2e7d32;
}

.history-date {
    color: #666;
    font-size: 0.9rem;
}

.history-delivery-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.history-delivery-method {
    font-weight: 600;
    color: #1976D2;
    margin-bottom: 5px;
}

.history-delivery-details {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.no-history {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-history i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #1976D2;
}

.no-history h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-history p {
    margin-bottom: 20px;
}

/* Redemption history actions */
.history-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.cancel-redemption-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cancel-redemption-btn:hover {
    background-color: #c82333;
}

.cancel-redemption-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.cancel-redemption-btn i {
    font-size: 12px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Mobile responsive for history */
@media (max-width: 768px) {
    .redemption-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .redemption-tab-btn {
        border-radius: 0;
        border-bottom: 1px solid #e9ecef;
        border-right: 3px solid transparent;
    }
    
    .redemption-tab-btn.active {
        border-bottom-color: #e9ecef;
        border-right-color: #1976D2;
    }
    
    .history-item-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-actions {
        text-align: center;
    }
    
    .cancel-redemption-btn {
        width: 100%;
        justify-content: center;
    }
}
