/* ============================================
   VdWalt 300 Fees - Festival Theme Styles
   Light theme with brand palette:
   Navy #07468D | Yellow #FFF500 | Light backgrounds
   ============================================ */

:root {
    --primary: #07468D;
    --primary-dark: #05356B;
    --primary-light: #3D7EC2;
    --secondary: #d4b800;
    --accent: #d4b800;
    --dark-bg: #f5f7fa;
    --card-bg: #ffffff;
    --card-border: #e2e6ec;
    --text-muted: #6b7280;
    --text-dark: #1e2633;
    --gradient-1: linear-gradient(135deg, #07468D 0%, #d4b800 100%);
    --gradient-btn: linear-gradient(135deg, #07468D 0%, #0A5BB5 100%);
    --gradient-2: linear-gradient(135deg, #e9eef7 0%, #f8fafc 100%);
    --gradient-3: linear-gradient(45deg, #07468D, #d4b800);
}

/* Align Bootstrap primary with the brand navy */
[data-bs-theme="light"] {
    --bs-primary: #07468D;
    --bs-primary-rgb: 7, 70, 141;
    --bs-link-color: #07468D;
    --bs-link-hover-color: #05356B;
    --bs-btn-color: #1e2633;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-dark);
    margin-bottom: 0;
    padding-top: 76px;
}

.btn-primary { color: #fff !important; }

/* ========== Navigation ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.4rem;
}

.navbar-brand img {
    height: 42px;
    width: auto;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(30, 38, 51, 0.75) !important;
}

.nav-link:hover {
    background: rgba(7, 70, 141, 0.06);
    color: var(--primary) !important;
}

.navbar .btn-primary {
    background: var(--gradient-btn);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    color: #fff !important;
}

.navbar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(7, 70, 141, 0.3);
}

.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dropdown-item {
    color: var(--text-dark);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background: rgba(7, 70, 141, 0.08);
    color: var(--primary);
}

/* ========== Flash Messages ========== */
.flash-container {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 1050;
}

.alert {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0.75rem 0;
}

.alert-success { background: linear-gradient(135deg, #065f46, #047857); color: #fff; }
.alert-danger { background: linear-gradient(135deg, #7f1d1d, #b91c1c); color: #fff; }
.alert-warning { background: linear-gradient(135deg, #78350f, #b45309); color: #fff; }
.alert-info { background: linear-gradient(135deg, #1e3a5f, #2563eb); color: #fff; }

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 184, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(7, 70, 141, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(7, 70, 141, 0.06) 0%, transparent 40%);
    z-index: 0;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(212, 184, 0, 0.12);
    border: 1px solid rgba(212, 184, 0, 0.35);
    border-radius: 50px;
    color: #9c8a00;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
}

.hero-cta { margin-top: 2rem; }

.hero-cta .btn {
    padding: 0.9rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-primary-glow {
    background: var(--gradient-btn);
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(7, 70, 141, 0.3);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(7, 70, 141, 0.4);
    color: #fff !important;
}

.btn-outline-primary {
    border: 2px solid rgba(7, 70, 141, 0.35);
    border-radius: 12px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: rgba(7, 70, 141, 0.06);
    border-color: var(--primary);
}

/* ========== Hero Event Card ========== */
.hero-event-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.hero-event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-3);
}

.hero-event-date {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-event-month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.countdown-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(7, 70, 141, 0.05);
    border: 1px solid rgba(7, 70, 141, 0.1);
    border-radius: 12px;
    min-width: 70px;
}

.countdown-item .countdown-value {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ========== Sections ========== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(212, 184, 0, 0.12);
    border: 1px solid rgba(212, 184, 0, 0.35);
    border-radius: 50px;
    color: #9c8a00;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Event Cards ========== */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 184, 0, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.event-card-image {
    height: 200px;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07468D 0%, #FFF500 100%);
}

.event-card-image .event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    text-align: center;
}

.event-card-image .event-date-badge .date {
    font-size: 1.25rem;
    font-weight: 800;
    display: block;
    color: #FFF500;
}

.event-card-image .event-date-badge .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}

.event-card-body { padding: 1.5rem; }

.event-card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.event-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.event-card-title a:hover { color: var(--primary); }

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.event-card-meta i { margin-right: 0.4rem; }

.event-card-description {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Buttons ========== */
.btn-primary {
    background: var(--gradient-btn);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2E6FC4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(7, 70, 141, 0.25);
}

/* ========== Cards ========== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.card-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body { padding: 1.5rem; }

/* ========== Forms ========== */
.form-control, .form-select {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: var(--text-dark);
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 70, 141, 0.12);
    color: var(--text-dark);
}

.form-control::placeholder { color: #9aa3af; }

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-text { color: var(--text-muted); }

/* ========== Tables ========== */
.table {
    color: var(--text-dark);
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid var(--card-border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table td {
    border-color: var(--card-border);
    vertical-align: middle;
    padding: 0.9rem 0.75rem;
}

.table-hover tbody tr:hover { background: rgba(0, 0, 0, 0.02); }

/* ========== Pagination ========== */
.pagination { gap: 0.25rem; }

.page-link {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-dark);
    border-radius: 8px !important;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

.page-link:hover {
    background: rgba(7, 70, 141, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--gradient-btn);
    border-color: transparent;
}

/* ========== Calendar ========== */
.calendar-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
}

.calendar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.calendar-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.calendar-nav-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.calendar-nav-btn:hover {
    background: rgba(7, 70, 141, 0.08);
    color: var(--primary);
}

.calendar-grid th {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-grid td {
    padding: 0.5rem;
    text-align: center;
    vertical-align: top;
    border: none;
    height: 100px;
    width: 14.28%;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 12px;
    height: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day:hover { background: rgba(0, 0, 0, 0.03); }

.calendar-day.today {
    background: rgba(212, 184, 0, 0.1);
    border: 1px solid rgba(212, 184, 0, 0.35);
}

.calendar-day.other-month { opacity: 0.3; }

.calendar-day-number {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: auto;
    color: var(--text-dark);
}

.calendar-day.today .calendar-day-number {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calendar-event-item {
    font-size: 0.7rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 1px 4px;
    margin: 1px 0;
    border-radius: 3px;
    background: rgba(212, 184, 0, 0.12);
}

.calendar-event-more {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
}

/* ========== Auth Pages ========== */
.auth-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(212, 184, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(7, 70, 141, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.auth-page .container { position: relative; z-index: 1; }

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.auth-card-wide { max-width: 800px; }

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

.auth-header .auth-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 184, 0, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #9c8a00;
}

.auth-header h3 { font-weight: 700; color: var(--text-dark); }

.auth-header p { color: var(--text-muted); font-size: 0.9rem; }

.auth-divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--card-border);
}

.auth-divider span { padding: 0 1rem; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Stats ========== */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 184, 0, 0.4);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 184, 0, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: #9c8a00;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.stat-value.text-primary { color: var(--primary) !important; }
.stat-value.text-success { color: #16a34a !important; }
.stat-value.text-warning { color: #d97706 !important; }

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ========== Features ========== */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 184, 0, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 184, 0, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: #9c8a00;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========== Footer ========== */
.footer {
    background: #05356B;
    border-top: none;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    color: #dbe4f0;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.footer-brand img {
    height: 34px;
    width: auto;
}

.footer p { color: #b6c4d8; }

.footer h6 {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #fff;
}

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

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

.footer ul li a {
    color: #b6c4d8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer ul li a:hover { color: #FFF500; }

.footer .text-muted { color: #b6c4d8 !important; }
.footer hr { border-color: rgba(255, 255, 255, 0.15) !important; }

/* ========== Event Detail ========== */
.event-detail-hero {
    background: var(--gradient-2);
    padding: 4rem 0;
    position: relative;
}

.event-detail-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(7, 70, 141, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(212, 184, 0, 0.1) 0%, transparent 50%);
}

.event-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.event-detail-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.event-detail-content h1,
.event-detail-content h2,
.event-detail-content h3 { color: var(--text-dark); margin-top: 2rem; }

.event-detail-content a { color: var(--primary); }

/* ========== Profile ========== */
.profile-header {
    text-align: center;
    padding: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(212, 184, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: #9c8a00;
    border: 3px solid var(--primary);
}

/* ========== File Upload ========== */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(7, 70, 141, 0.04);
}

.file-upload-area .upload-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.file-upload-area p { color: var(--text-muted); margin-bottom: 0; }

/* ========== Additional Users ========== */
.additional-user-row {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.remove-user-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.6s ease forwards; }

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e9eef5; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9aa3af; }

/* ========== Tickets ========== */
.ticket-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ticket-barcode {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: center;
    overflow: hidden;
}

.ticket-barcode img {
    max-width: 100%;
    height: 70px;
    width: auto;
}

.ticket-number {
    letter-spacing: 1px;
    font-size: 0.95rem;
    color: var(--primary);
}

.checkin-result-card {
    border-left: 4px solid var(--card-border);
}

.checkin-result-card.valid {
    border-left-color: #16a34a;
}

.checkin-result-card.invalid {
    border-left-color: #dc2626;
}

.scanner-region {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.02);
}

.scanner-region video {
    border-radius: 10px;
    width: 100% !important;
    max-height: 320px;
    object-fit: cover;
}

.attendance-value {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--primary);
}

.attendance-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.attendance-bar .attendance-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .event-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 1.5rem; }
    .calendar-grid td { height: 70px; padding: 0.25rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-section { min-height: 70vh; }
}
