/**
 * TicketUpp - B2C Customer Portal Styles
 *
 * Mobile-first responsive design for the public-facing customer experience.
 * Modern, clean design consistent with admin and POS interfaces.
 * Bootstrap 5 is loaded separately.
 *
 * Design Approach: Mobile-first
 * - Base styles are optimized for mobile devices
 * - Enhancements for larger screens via min-width media queries
 * - Touch-friendly targets (min 44px tap areas)
 * - Readable font sizes without zooming
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Brand Colors - Warm Tan/Gold as primary CTA */
    --brand-primary: #b19d7f;
    --brand-primary-light: #c4b399;
    --brand-primary-dark: #9a8868;

    /* Header/Secondary - Dark Navy */
    --brand-secondary: #021526;
    --brand-secondary-light: #0a2a4a;

    /* Accent Color - Dark Gray */
    --brand-accent: #292929;
    --brand-accent-light: #3d3d3d;

    /* Link Color */
    --color-link: #887559;
    --color-link-hover: #6d5d47;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Neutral Colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border Radius - More subtle */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ========================================
   Base & Typography
   ======================================== */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-gray-700);
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-accent);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
    color: var(--color-gray-600);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-link-hover);
}

/* ========================================
   Bootstrap Color Overrides
   ======================================== */
.bg-primary {
    background: var(--brand-secondary) !important;
}

.text-primary {
    color: var(--brand-primary) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.btn-primary {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
    color: #fff !important;
}

.btn-success {
    background: var(--color-success) !important;
    border-color: var(--color-success) !important;
}

.btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    background: #fff !important;
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.navbar-brand {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-accent) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.navbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--color-gray-600) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--brand-accent) !important;
    background: var(--color-gray-100);
}

.navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
    background: var(--color-gray-100);
}

.navbar-toggler {
    border-color: var(--color-gray-300);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(75, 85, 99, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 0;
}

.hero-section .lead {
    font-size: 1.1rem;
}

/* Hero - Default (gradient fallback) */
.hero-default {
    background: var(--brand-secondary);
    padding: 2.5rem 1.5rem;
}

.hero-icon {
    color: var(--brand-primary);
}

/* Hero - Cover Photo */
.hero-cover {
    min-height: 250px;
}

.hero-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-cover-overlay {
    position: relative;
    z-index: 1;
    background: rgba(2, 21, 38, 0.6);
    padding: 3rem 1.5rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cover-overlay h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cover-overlay p,
.hero-cover-overlay .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Horizontal Product Cards
   ======================================== */
.product-card-horizontal {
    transition: all var(--transition);
}

.product-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card-horizontal .product-card-img-link {
    display: block;
    height: 100%;
    overflow: hidden;
}

.product-card-horizontal-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card-horizontal .product-card-img-link:hover img {
    transform: scale(1.05);
}

.product-img-placeholder-horizontal {
    min-height: 200px;
    height: 100%;
}

.product-img-placeholder-horizontal i {
    font-size: 3rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    background: #fff;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header.bg-primary {
    background: var(--brand-secondary) !important;
    color: #fff;
    border-bottom: none;
}

.card-header.bg-primary h4,
.card-header.bg-primary h5 {
    color: #fff;
}

.card-header.bg-info {
    background: var(--color-info) !important;
    color: #fff;
    border-bottom: none;
}

.card-header.bg-light {
    background: var(--color-gray-50) !important;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    padding: 1rem 1.25rem;
}

.card-title {
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: 0.5rem;
}

/* ========================================
   Ticket Type Cards (Purchase Flow)
   ======================================== */
.ticket-type-card {
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
}

.ticket-type-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.ticket-type-card.selected {
    border-color: var(--brand-primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(177, 157, 127, 0.2);
}

.ticket-type-card .card-body {
    padding: 1.5rem;
}

.ticket-type-card .ticket-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: 0.5rem;
}

.ticket-type-card .ticket-description {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 1rem;
}

.ticket-type-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-accent);
}

.ticket-type-card .price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-gray-500);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    padding: 0.625rem 1.25rem;
}

.btn-primary {
    background: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
}

.btn-success {
    background: var(--color-success);
    border: 1px solid var(--color-success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

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

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

.btn-outline-secondary {
    color: var(--color-gray-600);
    border: 1px solid var(--color-gray-300);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
    color: var(--color-gray-700);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

/* ========================================
   Forms
   ======================================== */
.form-control,
.form-select {
    border-radius: var(--radius);
    border: 1px solid var(--color-gray-300);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.form-control {
    padding: 0.625rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(177, 157, 127, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin-bottom: 0.375rem;
}

.form-text {
    color: var(--color-gray-500);
    font-size: 0.8125rem;
}

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

/* ========================================
   QR Code Display
   ======================================== */
.qr-code-container {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-xl);
    display: inline-block;
    box-shadow: var(--shadow-lg);
    border: 1px dashed var(--color-gray-300);
}

.qr-code-container img {
    max-width: 200px;
    height: auto;
    border-radius: var(--radius);
}

/* ========================================
   Alerts & Flash Messages
   ======================================== */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #047857;
    border-left: 4px solid var(--color-success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #b91c1c;
    border-left: 4px solid var(--color-danger);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #b45309;
    border-left: 4px solid var(--color-warning);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #1d4ed8;
    border-left: 4px solid var(--color-info);
}

/* ========================================
   Calendar Styles
   ======================================== */
.calendar-container {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h5 {
    margin: 0;
    font-weight: 700;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    color: var(--color-gray-700);
}

.calendar-day:hover:not(.disabled):not(.blacked-out) {
    background: rgba(177, 157, 127, 0.15);
    color: var(--brand-primary-dark);
}

.calendar-day.selected {
    background: var(--brand-primary);
    color: #fff;
}

.calendar-day.today {
    border: 2px solid var(--brand-accent);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.blacked-out {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.has-availability {
    position: relative;
}

.calendar-day.has-availability::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
}

/* ========================================
   Time Slot Selection
   ======================================== */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.time-slot-btn {
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-gray-200);
    background: #fff;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
}

.time-slot-btn:hover:not(.full) {
    border-color: var(--brand-primary);
    color: var(--brand-primary-dark);
}

.time-slot-btn.selected {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.time-slot-btn.full {
    background: var(--color-gray-100);
    border-color: var(--color-gray-200);
    color: var(--color-gray-400);
    cursor: not-allowed;
}

.time-slot-btn .availability {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}

.time-slot-btn.available .availability {
    color: var(--color-success);
}

.time-slot-btn.limited .availability {
    color: var(--color-warning);
}

/* ========================================
   Order Summary
   ======================================== */
.order-summary {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 1rem;
}

.order-summary h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gray-100);
}

.order-summary .line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.order-summary .line-item:last-of-type {
    border-bottom: none;
}

.order-summary .total-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--color-gray-200);
    font-weight: 700;
    font-size: 1.25rem;
}

.order-summary .total-row .amount {
    color: var(--brand-accent);
}

/* ========================================
   Checkout Success Page
   ======================================== */
.checkout-success {
    text-align: center;
    padding: 3rem 1.5rem;
}

.checkout-success .success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: success-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.checkout-success .success-icon i {
    font-size: 3rem;
    color: #fff;
}

.checkout-success h2 {
    margin-bottom: 1rem;
}

.checkout-success .order-number {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-accent);
    background: var(--color-gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 1.25rem;
}

/* ========================================
   Ticket Display (My Tickets Page)
   ======================================== */
.ticket-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
}

.ticket-card .ticket-header {
    background: var(--brand-secondary);
    color: #fff;
    padding: 1.25rem;
}

.ticket-card .ticket-header h5 {
    color: #fff;
    margin: 0;
}

.ticket-card .ticket-body {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ticket-card .ticket-qr {
    flex-shrink: 0;
}

.ticket-card .ticket-details {
    flex: 1;
}

.ticket-card .ticket-number {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 0.5rem;
}

.ticket-card .ticket-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.ticket-card .ticket-status.valid {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.ticket-card .ticket-status.used {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-gray-600);
}

.ticket-card .ticket-status.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5em 0.875em;
    border-radius: var(--radius);
}

.badge.bg-success { background: rgba(16, 185, 129, 0.12) !important; color: #047857; }
.badge.bg-warning { background: rgba(245, 158, 11, 0.12) !important; color: #b45309; }
.badge.bg-danger { background: rgba(239, 68, 68, 0.12) !important; color: #b91c1c; }
.badge.bg-info { background: rgba(59, 130, 246, 0.12) !important; color: #1d4ed8; }
.badge.bg-primary { background: rgba(177, 157, 127, 0.15) !important; color: var(--brand-primary-dark); }
.badge.bg-secondary { background: var(--color-gray-100) !important; color: var(--color-gray-600); }
.badge.bg-light { background: var(--color-gray-100) !important; color: var(--brand-accent); }

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--brand-secondary);
    color: var(--color-gray-300);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

footer h5,
footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.875rem;
    font-size: 1rem;
}

footer p {
    color: var(--color-gray-400);
    margin-bottom: 0;
    font-size: 0.875rem;
}

footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

footer .footer-brand i {
    color: var(--brand-primary);
    font-size: 1.25rem;
}

footer a {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--brand-primary);
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-links li {
    margin-bottom: 0.375rem;
}

footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

footer .footer-links a i {
    font-size: 0.75rem;
    opacity: 0.6;
}

footer .social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

footer .social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    color: var(--color-gray-300);
}

footer .social-links a:hover {
    background: var(--brand-primary);
    color: #fff;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

footer .footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* ========================================
   Loading States
   ======================================== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--brand-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Login Page Styles
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    position: relative;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-card .login-header {
    background: var(--brand-secondary);
    color: #fff;
    padding: 1.75rem;
    text-align: center;
}

.login-card .login-header .logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-card .login-header h4 {
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.login-card .login-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.375rem 0 0;
    font-size: 0.875rem;
}

.login-card .login-body {
    padding: 1.75rem;
}

.login-card .btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
}

/* OTP Verification Input */
.login-card .otp-input {
    font-size: 1.5rem;
    letter-spacing: 1rem;
    font-weight: 600;
}

/* POS Login Variant (Warm Tan/Gold matching brand) */
.login-page.pos-login {
    background: linear-gradient(135deg, var(--color-gray-100) 0%, #f0ebe4 100%);
}

.login-page.pos-login .login-card .login-header {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #3d3a36 100%);
}

.login-page.pos-login .login-card .login-header .logo {
    color: var(--brand-primary);
}

.login-page.pos-login .btn-login,
.login-page.pos-login .btn-success {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.login-page.pos-login .btn-login:hover,
.login-page.pos-login .btn-success:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

/* ========================================
   Mobile-First Responsive Design
   Base styles are mobile, scale up for larger screens
   ======================================== */

/* Mobile Base (< 576px) - Default styles */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Touch-friendly tap targets */
.btn {
    min-height: 44px;
    padding: 0.625rem 1rem;
}

.nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Mobile typography */
h1 { font-size: 1.5rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

/* Mobile card spacing */
.card {
    margin-bottom: 1rem;
}

.card-body {
    padding: 1rem;
}

/* Mobile form elements */
.form-control,
.form-select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 44px;
}

/* Mobile hero */
.hero-section h1 {
    font-size: 1.5rem;
}

/* Mobile: horizontal cards stack vertically */
.product-card-horizontal-img {
    height: 200px;
    min-height: auto;
}

.product-img-placeholder-horizontal {
    height: 200px;
    min-height: auto;
}

/* Mobile sticky sidebar becomes static */
.sticky-top-offset {
    position: static;
}

/* Mobile order summary */
.order-summary {
    position: static;
    margin-top: 1rem;
}

/* Mobile calendar */
.calendar-grid {
    gap: 0.25rem;
}

.calendar-day {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
    min-height: 44px;
}

/* Mobile time slots */
.time-slots-container {
    grid-template-columns: repeat(2, 1fr);
}

/* Mobile ticket display */
.ticket-card .ticket-body {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

/* Mobile login */
.login-card {
    margin: 0.5rem;
    border-radius: var(--radius-lg);
}

/* Mobile product gallery */
.product-featured-image {
    max-height: 250px;
}

/* Mobile sticky Book Now bar */
.product-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

.product-sticky-bar-spacer {
    height: 120px;
}

/* Mobile breadcrumb */
.breadcrumb {
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

/* ----------------------------------------
   Small devices (landscape phones, 576px+)
   ---------------------------------------- */
@media (min-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-cover {
        min-height: 300px;
    }

    .hero-cover-overlay {
        min-height: 300px;
    }

    .time-slots-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-featured-image {
        max-height: 300px;
    }
}

/* ----------------------------------------
   Medium devices (tablets, 768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }

    .hero-default {
        padding: 3rem 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-cover {
        min-height: 350px;
    }

    .hero-cover-overlay {
        min-height: 350px;
        padding: 4rem 2rem;
    }

    /* Tablet+: horizontal card image on left */
    .product-card-horizontal-img {
        height: 100%;
        min-height: 200px;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    }

    .product-img-placeholder-horizontal {
        height: 100%;
        min-height: 200px;
    }

    .card-body {
        padding: 1.25rem;
    }

    .calendar-day {
        font-size: 0.8125rem;
        padding: 0.75rem 0.5rem;
    }

    .ticket-card .ticket-body {
        flex-direction: row;
        text-align: left;
    }

    .product-featured-image {
        max-height: 350px;
    }

    .login-card {
        margin: 1rem auto;
        max-width: 420px;
    }

    /* Button that's small on mobile, normal on tablet+ */
    .btn-sm.btn-md-normal {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }
}

/* ----------------------------------------
   Large devices (desktops, 992px+)
   ---------------------------------------- */
@media (min-width: 992px) {
    h1 { font-size: 2.25rem; }

    .hero-default {
        padding: 4rem 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-cover {
        min-height: 400px;
    }

    .hero-cover-overlay {
        min-height: 400px;
        padding: 5rem 2rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    /* Enable sticky sidebar on desktop */
    .sticky-top-offset {
        position: sticky;
        top: 100px;
    }

    .order-summary {
        position: sticky;
        top: 100px;
    }

    .time-slots-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-featured-image {
        max-height: 400px;
    }
}

/* ----------------------------------------
   Extra large devices (large desktops, 1200px+)
   ---------------------------------------- */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .qr-code-container {
        box-shadow: none;
        border: 2px solid #000;
    }
}

/* ========================================
   CSP-Compliant Utility Classes
   (Replacements for inline styles)
   ======================================== */

/* Column widths */
.col-w-50 { width: 50px; }
.col-w-100 { width: 100px; }
.col-w-150 { width: 150px; }

/* Input widths - CSP-compliant replacement for inline styles */
.input-w-70 { width: 70px !important; }
.input-w-100 { width: 100px !important; }

/* Amount/price column styling */
.col-amount {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Table cell utilities */
.cell-nowrap { white-space: nowrap; }

/* Result icon circles */
.result-icon-circle {
    width: 80px;
    height: 80px;
}
.result-icon-circle-lg {
    width: 100px;
    height: 100px;
}

/* QR code text */
.qr-code-text {
    font-size: 8px;
    word-break: break-all;
}

/* Sticky positioning */
.sticky-top-offset {
    position: sticky;
    top: 80px;
}

/* Result Icon Circles */
.success-icon-circle,
.error-icon-circle,
.warning-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.success-icon-circle i,
.error-icon-circle i,
.warning-icon-circle i {
    line-height: 1;
}

.success-icon-circle {
    background-color: var(--color-success);
}

.error-icon-circle {
    background-color: var(--color-danger);
}

.warning-icon-circle {
    background-color: var(--color-warning);
    color: var(--brand-accent);
}

/* Larger spinner */
.spinner-border-lg {
    width: 3rem;
    height: 3rem;
}

/* Time Slot Selection */
.time-slot-label {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-slot-label:hover {
    background-color: var(--color-gray-50);
    border-color: var(--brand-primary) !important;
}

.form-check-input:checked + .time-slot-label {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary) !important;
}

.form-check-input:checked + .time-slot-label .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.form-check-input:checked + .time-slot-label .badge {
    background-color: white !important;
    color: var(--brand-primary) !important;
}

/* Cart Table */
.qty-col {
    width: 120px;
}

.action-col {
    width: 50px;
}

.qty-input {
    width: 70px;
}

/* Negative margins for full-width sections */
.mx-n-container {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

@media (min-width: 576px) {
    .mx-n-container {
        margin-left: -1rem;
        margin-right: -1rem;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-muted {
    color: var(--color-gray-500) !important;
}

.text-primary {
    color: var(--brand-primary) !important;
}

.bg-light {
    background-color: var(--color-gray-50) !important;
}

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

/* Focus outline for accessibility */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(177, 157, 127, 0.25);
    color: var(--color-gray-900);
}

/* ========================================
   Product Cards
   ======================================== */
.product-card {
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.product-card .card-img-top-link {
    display: block;
    overflow: hidden;
}

.product-card .card-img-top-link:hover img {
    transform: scale(1.05);
}

.product-card .card-img-top-link img {
    transition: transform var(--transition);
}

.product-card .card-title a {
    transition: color var(--transition-fast);
}

.product-card .card-title a:hover {
    color: var(--brand-primary) !important;
}

.product-img-placeholder {
    height: 150px;
}

.product-img-placeholder i {
    font-size: 2.5rem;
}

@media (min-width: 576px) {
    .product-img-placeholder {
        height: 180px;
    }

    .product-img-placeholder i {
        font-size: 3rem;
    }
}

/* Product Detail Gallery */
.product-featured-image {
    object-fit: cover;
    width: 100%;
}

/* Gallery Thumbnails Row - Single row with flexible sizing */
.gallery-thumbnails-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
}

.gallery-thumbnails-row::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails-row::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: 2px;
}

.gallery-thumbnails-row::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 2px;
}

.gallery-thumbnails-row .gallery-thumb-link {
    flex: 1 1 0;
    min-width: 60px;
    max-width: 120px;
}

.product-thumbnail {
    width: 100%;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    border-radius: var(--radius);
}

@media (min-width: 576px) {
    .product-thumbnail {
        height: 70px;
    }

    .gallery-thumbnails-row .gallery-thumb-link {
        max-width: 140px;
    }
}

@media (min-width: 768px) {
    .product-thumbnail {
        height: 80px;
    }

    .gallery-thumbnails-row .gallery-thumb-link {
        max-width: 160px;
    }
}

.product-thumbnail:hover {
    opacity: 0.8;
}

/* Gallery Lightbox */
.gallery-main-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-thumb-link:hover img {
    transform: scale(1.1);
}

.gallery-thumb-link img {
    transition: transform var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background var(--transition);
    pointer-events: none;
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition);
}

.gallery-overlay .gallery-count {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-main-link:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.gallery-main-link:hover .gallery-overlay i,
.gallery-main-link:hover .gallery-overlay .gallery-count {
    opacity: 1;
    transform: scale(1);
}

/* Product Detail Tabs */
.product-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    border-bottom: 2px solid var(--brand-primary);
}

.product-tabs::-webkit-scrollbar {
    display: none;
}

.product-tabs .nav-link {
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--color-gray-600);
    transition: all var(--transition-fast);
    min-height: 36px;
    position: relative;
}

.product-tabs .nav-link:hover {
    background: rgba(177, 157, 127, 0.1);
    color: var(--brand-primary-dark);
}

.product-tabs .nav-link.active {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
}

/* Ticket Type List */
.ticket-type-list .ticket-type-item:last-child {
    border-bottom: none !important;
}

.ticket-type-item .quantity-selector {
    width: 110px;
}

.ticket-type-item .qty-input {
    width: 40px !important;
    padding: 0.25rem;
    border-left: none;
    border-right: none;
}

.ticket-type-item .quantity-selector .btn {
    padding: 0.25rem 0.5rem;
}

/* Ticket Type Rows (Full Width Section) */
.ticket-type-rows {
    padding: 0.5rem;
}

.ticket-type-row {
    padding: 1.25rem 1.5rem;
    margin: 0.5rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.ticket-type-row:hover {
    background-color: #fff;
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.ticket-type-row .ticket-name {
    color: var(--brand-accent);
}

.ticket-type-row .quantity-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.ticket-type-row .quantity-stepper .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 34px;
    border: none;
    background: var(--color-gray-50);
    color: var(--color-gray-600);
    cursor: pointer;
    transition: background var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.ticket-type-row .quantity-stepper .qty-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

.ticket-type-row .quantity-stepper .qty-btn:active {
    background: var(--color-gray-300);
}

.ticket-type-row .quantity-stepper .qty-value {
    width: 36px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--color-gray-300);
    border-right: 1px solid var(--color-gray-300);
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: #fff;
    color: var(--brand-accent);
    -moz-appearance: textfield;
    padding: 0;
}

.ticket-type-row .quantity-stepper .qty-value::-webkit-outer-spin-button,
.ticket-type-row .quantity-stepper .qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 1199.98px) {
    .ticket-type-rows {
        padding: 0.25rem;
    }

    .ticket-type-row {
        padding: 1rem;
        margin: 0.25rem;
    }
}

.ticket-booking-form .btn-primary {
    white-space: nowrap;
    height: 34px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    line-height: 34px;
}

/* ========================================
   Booking Steps Indicator
   ======================================== */
.booking-steps {
    padding: 0.5rem 0;
}

.booking-steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.booking-step .step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    font-size: 1.125rem;
    transition: all var(--transition);
    border: 2px solid var(--color-gray-200);
}

.booking-step .step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray-500);
    text-align: center;
    white-space: nowrap;
    transition: color var(--transition);
}

/* Active Step */
.booking-step.active .step-icon {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(177, 157, 127, 0.2);
}

.booking-step.active .step-label {
    color: var(--brand-primary-dark);
    font-weight: 600;
}

/* Completed Step */
.booking-step.completed .step-icon {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.booking-step.completed .step-label {
    color: var(--color-gray-600);
}

/* Connector Line */
.step-connector {
    flex: 1;
    height: 2px;
    background: var(--color-gray-200);
    margin: 0 0.75rem;
    margin-bottom: 1.75rem;
    min-width: 40px;
    max-width: 100px;
    transition: background var(--transition);
}

.step-connector.completed {
    background: var(--color-success);
}

/* Clickable Step Links */
.booking-step .step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.booking-step.completed .step-link:hover .step-icon {
    background: #059669;
    border-color: #059669;
    transform: scale(1.1);
}

.booking-step.completed .step-link:hover .step-label {
    color: #059669;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
    .booking-steps-container {
        padding: 0 0.5rem;
    }

    .booking-step .step-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .booking-step .step-label {
        font-size: 0.6875rem;
        max-width: 70px;
        white-space: normal;
        line-height: 1.3;
    }

    .step-connector {
        min-width: 24px;
        max-width: 60px;
        margin: 0 0.375rem;
        margin-bottom: 2.25rem;
    }
}
