@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Great+Vibes&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #1b448a;
    --primary-blue-rgb: 27, 68, 138;
    --primary-red: #d32f2f;
    --primary-red-rgb: 211, 47, 47;
    --accent-gold: #d4af37;
    --accent-gold-hover: #b8972e;
    
    --bg-dark: #0b0f19;
    --bg-dark-card: rgba(15, 23, 42, 0.6);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    
    --bg-light: #f8fafc;
    --bg-light-card: rgba(255, 255, 255, 0.8);
    --text-dark: #0f172a;
    --text-dark-muted: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-cert-title: 'Cinzel', serif;
    --font-cert-sign: 'Great Vibes', cursive;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(27, 68, 138, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Light Theme overrides */
body.light-theme {
    background-color: var(--bg-light);
    color: var(--text-dark);
}
body.light-theme::before {
    background: radial-gradient(circle, rgba(27, 68, 138, 0.08) 0%, transparent 70%);
}
body.light-theme::after {
    background: radial-gradient(circle, rgba(211, 47, 47, 0.05) 0%, transparent 70%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Layout Elements */
header {
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

body.light-theme header {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(27, 68, 138, 0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition-smooth);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-smooth);
}

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

nav a:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a65c9 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(27, 68, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 68, 138, 0.5);
    background: linear-gradient(135deg, #1f4fa3 0%, #3a75e0 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.light-theme .btn-secondary {
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.3);
}

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f0c33c 100%);
    color: #1e1e1e;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e4bf47 0%, #ffd752 100%);
}

.theme-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--glass-bg);
}

body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Main Container styling */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 170px);
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--bg-dark-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

body.light-theme .glass-card {
    background: var(--bg-light-card);
    border-color: var(--glass-border-light);
    box-shadow: 0 8px 32px 0 rgba(27, 68, 138, 0.08);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

body.light-theme .glass-card:hover {
    border-color: rgba(27, 68, 138, 0.25);
    box-shadow: 0 12px 40px 0 rgba(27, 68, 138, 0.12);
}

/* Homepage Hero section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .hero-content h1 {
    background: linear-gradient(135deg, var(--text-dark) 40%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

body.light-theme .hero-content p {
    color: var(--text-dark-muted);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 968px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* Event Banner Widget */
.event-widget {
    background: linear-gradient(145deg, rgba(27, 68, 138, 0.3) 0%, rgba(211, 47, 47, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.event-details-row {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.detail-item i {
    color: var(--primary-red);
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* Countdown Clock */
.countdown-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.countdown-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Pricing Grid */
.pricing-section {
    margin-bottom: 5rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

body.light-theme .section-subtitle {
    color: var(--text-dark-muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.popular {
    border: 2px solid var(--primary-blue);
    box-shadow: 0 8px 32px 0 rgba(27, 68, 138, 0.2);
}

body.light-theme .pricing-card.popular {
    border-color: var(--primary-blue);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4d4d 100%);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-tier {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

body.light-theme .pricing-price {
    color: var(--text-dark);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style-type: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pricing-features li i {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.pricing-features li i.fa-check {
    color: #10b981;
}

.pricing-features li i.fa-times {
    color: var(--primary-red);
}

/* Multi-step Form Stylings */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--glass-border);
    z-index: 1;
    transform: translateY(-50%);
}

body.light-theme .form-steps::before {
    background-color: rgba(27, 68, 138, 0.1);
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 2;
    transition: var(--transition-smooth);
}

body.light-theme .step-indicator {
    background-color: var(--bg-light);
    border-color: rgba(27, 68, 138, 0.15);
}

.step-indicator.active {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(27, 68, 138, 0.5);
}

.step-indicator.completed {
    border-color: #10b981;
    background-color: #10b981;
    color: #fff;
}

.form-step-content {
    display: none;
}

.form-step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

body.light-theme label {
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme input[type="tel"],
body.light-theme input[type="number"],
body.light-theme select,
body.light-theme textarea {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(27, 68, 138, 0.25);
    background-color: rgba(0, 0, 0, 0.3);
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(27, 68, 138, 0.15);
}

.license-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.light-theme .checkbox-card {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

.checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.checkbox-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .checkbox-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.checkbox-card.selected {
    border-color: var(--primary-blue);
    background-color: rgba(27, 68, 138, 0.1);
}

.license-details-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: none;
}

.license-details-container.active {
    display: block;
}

/* Tier Selection Cards inside Form */
.tier-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .tier-cards {
        grid-template-columns: 1fr;
    }
}

.tier-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

body.light-theme .tier-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.tier-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

body.light-theme .tier-card:hover {
    border-color: rgba(27, 68, 138, 0.2);
}

.tier-card.selected {
    border-color: var(--primary-blue);
    background-color: rgba(27, 68, 138, 0.08);
    box-shadow: 0 0 15px rgba(27, 68, 138, 0.15);
}

.tier-card.selected::after {
    content: '\f058';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.guests-container {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-top: 1.5rem;
    display: none;
}

body.light-theme .guests-container {
    background: #f1f5f9;
}

.guests-container.active {
    display: block;
}

.guest-input-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.guest-input-row input {
    flex-grow: 1;
}

/* Order Summary Box */
.order-summary {
    background: rgba(27, 68, 138, 0.1);
    border: 1px dashed var(--primary-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

body.light-theme .summary-row.total {
    color: var(--text-dark);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Interactive Payment Section */
.payment-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 868px) {
    .payment-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pay-method-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.light-theme .pay-method-btn {
    background: #f1f5f9;
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.1);
}

.pay-method-btn.active {
    border-color: var(--primary-blue);
    background: rgba(27, 68, 138, 0.15);
    color: #fff;
}

body.light-theme .pay-method-btn.active {
    color: var(--primary-blue);
    background: rgba(27, 68, 138, 0.08);
}

/* Credit Card Flip Card */
.credit-card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 350px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.credit-card-wrapper.flipped .credit-card {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-front {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}

.card-back {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    transform: rotateY(180deg);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #efd07b 0%, #c19a37 100%);
    border-radius: 4px;
}

.card-number-display {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    font-family: monospace;
    margin: 1.5rem 0 1rem;
}

.card-details-display {
    display: flex;
    justify-content: space-between;
}

.card-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.card-value {
    font-size: 0.85rem;
    font-weight: 600;
}

.card-stripe {
    background: #111;
    height: 40px;
    width: 100%;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: 0.5rem;
}

.card-signature-box {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    padding: 0.25rem 0.5rem;
    text-align: right;
    border-radius: 4px;
    margin-top: 1rem;
}

.card-cvv-display {
    font-family: monospace;
    font-weight: 700;
    font-style: italic;
}

/* UPI QR Code Mock */
.upi-pay-container {
    display: none;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

body.light-theme .upi-pay-container {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.upi-pay-container.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.upi-qr-box {
    width: 160px;
    height: 160px;
    background: white;
    margin: 1rem auto;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upi-qr-box svg, .upi-qr-box img {
    max-width: 100%;
}

.upi-apps-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Processing Transaction Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(27, 68, 138, 0.15);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

/* Dynamic Ticket Page: Badge View */
.ticket-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 868px) {
    .ticket-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.badge-card {
    background: #fff;
    color: #333;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    max-width: 320px;
    margin: 0 auto;
    border: 4px solid var(--primary-blue);
    position: relative;
}

.badge-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
}

.badge-header img {
    height: 40px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.badge-header .association-name {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.badge-body {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.badge-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.badge-catering {
    font-size: 0.95rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-qr-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-qr-container svg {
    max-width: 100%;
}

.badge-role {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-role.member {
    background: rgba(27, 68, 138, 0.1);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.badge-role.visitor {
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
}

.badge-footer {
    background: #f1f5f9;
    padding: 1rem;
    font-size: 0.7rem;
    text-align: center;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
}

.badge-access-grid {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    font-weight: 700;
}

.badge-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem;
}

.badge-access-item i {
    font-size: 0.85rem;
}

.badge-access-item.active {
    color: #10b981;
}

.badge-access-item.inactive {
    color: #cbd5e1;
}

/* Membership Certificate */
.certificate-preview-card {
    background: radial-gradient(circle, #ffffff 0%, #fcfbf7 100%);
    border: 12px double var(--accent-gold);
    color: #2c3e50;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.certificate-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2v2h-2V0zm0 4h2v2h-2V4zm0 4h2v2h-2V8zm0 12h2v2h-2v-2zm0 12h2v2h-2v-2zm4 4h2v2h-2v-2zm4 0h2v2h-2v-2zm12 0h2v2h-2v-2zm12 0h2v2h-2v-2zM0 40h2v2H0v-2zm0 4h2v2H0v-2zm0 4h2v2H0v-2zm0 12h2v2H0v-2zm0 12h2v2H0v-2zm4-4h2v2H-2v-2zm4 0h2v2H-2v-2zm12 0h2v2H-2v-2zm12 0h2v2H-2v-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.cert-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cert-logo {
    height: 60px;
    margin-bottom: 0.5rem;
}

.cert-association-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.cert-title {
    font-family: var(--font-cert-title);
    font-size: 1.85rem;
    color: var(--accent-gold);
    text-align: center;
    margin: 1.5rem 0 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.cert-present {
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.cert-recipient {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e3c72;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-block;
    padding: 0 2rem 0.25rem;
    margin: 0 auto;
}

.cert-recipient-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cert-text {
    text-align: center;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    color: #555;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
    color: #555;
    padding: 0 1rem;
}

.cert-sig-line {
    border-top: 1px solid #95a5a6;
    width: 140px;
    margin-top: 3rem;
    text-align: center;
    padding-top: 0.5rem;
}

.cert-sig-name {
    font-family: var(--font-cert-sign);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: -15px;
}

.cert-seal {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: radial-gradient(circle, #f3d060 0%, var(--accent-gold) 100%);
    box-shadow: 0 4px 10px rgba(212,175,55,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #744d00;
    font-weight: 700;
    font-size: 0.65rem;
    text-align: center;
    border: 3px double rgba(255,255,255,0.4);
    position: relative;
}

.cert-seal::after {
    content: '';
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.5);
}

/* Admin Dashboard Portal */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

body.light-theme .stat-title {
    color: var(--text-dark-muted);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-bar {
    position: relative;
    flex-grow: 1;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    padding-left: 2.75rem;
}

.admin-actions-btns {
    display: flex;
    gap: 1rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

body.light-theme .table-responsive {
    border-color: rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background-color: rgba(27, 68, 138, 0.15);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

body.light-theme th {
    background-color: #f1f5f9;
    color: var(--text-dark);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-light);
}

body.light-theme td {
    color: var(--text-dark);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

body.light-theme tr:hover {
    background: #f8fafc;
}

.badge-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-tag.member {
    background: rgba(27, 68, 138, 0.15);
    color: #4da3ff;
}

body.light-theme .badge-tag.member {
    background: rgba(27, 68, 138, 0.1);
    color: var(--primary-blue);
}

.badge-tag.visitor {
    background: rgba(211, 47, 47, 0.15);
    color: #ff4d4d;
}

body.light-theme .badge-tag.visitor {
    background: rgba(211, 47, 47, 0.08);
    color: var(--primary-red);
}

/* Event Scanner Dialog simulation */
.scanner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.scanner-modal.active {
    display: flex;
}

.scanner-card {
    max-width: 480px;
    width: 90%;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
}

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

.scanner-body {
    text-align: center;
}

.scanner-viewfinder {
    position: relative;
    width: 250px;
    height: 250px;
    background: #000;
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #334155;
}

.scanner-viewfinder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.scanner-line {
    position: absolute;
    width: calc(100% - 40px);
    height: 2px;
    background: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
    top: 20px;
    animation: scanAnimation 2s linear infinite;
}

.checkin-action-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.scan-result-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
}

.scan-benefit-status {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scan-benefit-status:last-child {
    border-bottom: none;
}

.action-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Footer Section */
footer {
    background: #07090f;
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

body.light-theme footer {
    background: #f1f5f9;
    color: var(--text-dark-muted);
    border-top-color: rgba(27, 68, 138, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    font-size: 1.25rem;
}

.footer-socials a:hover {
    color: var(--primary-red);
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scanAnimation {
    0% { top: 20px; }
    50% { top: calc(100% - 22px); }
    100% { top: 20px; }
}

/* Responsive Utilities */
.hidden {
    display: none !important;
}

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

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Premium styles for Lifetime Badge and Certificate */
.badge-card.lifetime {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3) !important;
}
.badge-card.lifetime .badge-header {
    background: linear-gradient(135deg, #1e1e1e 0%, #3a3a3a 100%) !important;
    border-bottom: 2.5px solid var(--accent-gold) !important;
}
.badge-card.lifetime .badge-header .association-name {
    color: var(--accent-gold) !important;
}
.badge-card.lifetime .badge-catering {
    color: var(--accent-gold) !important;
}
.badge-role.lifetime {
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--accent-gold) !important;
    border: 1px solid var(--accent-gold) !important;
}
.certificate-preview-card.lifetime {
    border: 16px double var(--accent-gold) !important;
    background: radial-gradient(circle, #ffffff 0%, #fffdf5 100%) !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2) !important;
}
.certificate-preview-card.lifetime::before {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* PRINT SPECIFIC CSS: Hides everything except the item to print and scales to paper size */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        overflow: visible !important;
    }
    
    header, footer, main > *:not(.printable-area), .btn-primary, .btn-secondary, .btn-accent, .theme-toggle, nav, .form-steps, .order-summary, .form-navigation, .alert {
        display: none !important;
    }
    
    main {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        background: #fff !important;
    }
    
    /* Center the certificate on the page */
    .certificate-preview-card.printable-area {
        border: 12px double #d4af37 !important;
        padding: 40px !important;
        box-sizing: border-box;
        width: 297mm !important; /* A4 Landscape width */
        height: 210mm !important; /* A4 Landscape height */
        page-break-inside: avoid;
        page-break-after: always;
        transform-origin: top left;
        margin: 0 auto !important;
    }

    /* Print styling for ID Badge */
    .badge-card.printable-area {
        width: 85mm !important; /* Standard badge width */
        height: 125mm !important; /* Standard badge height */
        border: 4px solid #1b448a !important;
        box-shadow: none !important;
        margin: 20mm auto !important;
        page-break-inside: avoid;
    }
}

/* Real VCA Logo Styling */
.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

/* Add white outline shadow in dark mode for visibility of navy blue on dark headers */
body:not(.light-theme) .logo-img {
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.95)) drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.4));
}

@media print {
    /* Remove shadow for printing on white paper */
    .logo-img {
        filter: none !important;
    }
}
