/**
 * Style Utama - Aplikasi Kegiatan Jalan Sehat & E-Tiket
 * Desain Modern, Bugar, Energik & Elegan
 */

:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --primary-soft: #fef2f2;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fef3c7;
    --dark: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --light: #fff5f5;
    --border: #fecaca;
    --white: #ffffff;
    --danger: #b91c1c;
    --danger-soft: #fee2e2;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(220, 38, 38, 0.12), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 35px -10px rgba(220, 38, 38, 0.22), 0 10px 15px -5px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 30px rgba(239, 68, 68, 0.35);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-title {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--slate);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, #fbbf24, var(--accent));
    color: var(--dark);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1ebc59;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(145deg, #7f1d1d 0%, #991b1b 45%, #dc2626 100%);
    color: var(--white);
    padding: 70px 0 90px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 202, 202, 0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fef2f2;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #d1fae5;
    margin-bottom: 30px;
    font-weight: 400;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

/* Chips Info Acara */
.event-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: #ecfdf5;
}

/* Card Countdown */
.countdown-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
}

.countdown-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.countdown-timer-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.timer-unit {
    background: var(--primary-soft);
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 12px 6px;
    text-align: center;
}

.timer-num {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    margin-top: 4px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 15px;
}

.status-open {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-closed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Alert Banner Buka/Tutup */
.announcement-banner {
    background: #fef2f2;
    border-left: 5px solid var(--danger);
    color: #991b1b;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-alt {
    background: #f1f5f9;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--muted);
}

/* Grid Hadiah Doorprize */
.doorprize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.prize-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.prize-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: #fca5a5;
}

.prize-card-header {
    padding: 14px 20px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.badge-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-utama {
    background: #fef3c7;
    color: #b45309;
}

.badge-favorit {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-hiburan {
    background: #ecfdf5;
    color: #065f46;
}

.prize-card-image {
    width: 100%;
    height: 180px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prize-card:hover .prize-card-image img {
    transform: scale(1.06);
}

.prize-placeholder-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-placeholder-box span {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.2));
    transition: transform 0.3s ease;
}

.prize-card:hover .prize-placeholder-box span {
    transform: scale(1.15) rotate(-5deg);
}

.prize-card-body {
    padding: 20px;
    flex-grow: 1;
}

.prize-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.prize-sponsor {
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.prize-card-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate);
}

/* Rute Acara */
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.route-step {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.route-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 14px;
}

.route-step-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.route-step-desc {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Rundown */
.rundown-timeline {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rundown-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.rundown-time {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    min-width: 90px;
}

.rundown-detail {
    font-weight: 600;
    color: var(--dark);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--slate);
}

.form-label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fdfdfd;
    transition: all 0.2s;
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background: var(--white);
}

.form-helper {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Alert Boxes */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: var(--danger-soft);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--primary-soft);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* E-Tiket Digital Result Modal - Authentic Boarding Pass Styling (Ukuran Tiket Pesawat / Kereta Api) */
.boarding-pass-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 14px 2px;
}

.pass-scroll-hint {
    font-size: 0.72rem;
    color: #b91c1c;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (min-width: 820px) {
    .pass-scroll-hint {
        display: none;
    }
}

/* Card Boarding Pass Horizontal (Ukuran Standar Tiket Pesawat / Kereta Api) */
.boarding-pass {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border: 2px solid #dc2626;
    border-radius: 16px;
    box-shadow: 0 15px 35px -5px rgba(220, 38, 38, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 760px;
    height: 310px;
    box-sizing: border-box;
}

/* Main Section (Kiri ~68%) */
.pass-main {
    flex: 1 1 68%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-width: 0;
}

.pass-header {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 55%, #dc2626 100%);
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.pass-logo {
    height: 38px;
    width: auto;
    background: #ffffff;
    padding: 2px 4px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pass-event-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.pass-event-sub {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.pass-header-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pass-badge-class {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pass-badge-status {
    font-size: 0.68rem;
    font-weight: 800;
    color: #86efac;
    letter-spacing: 0.04em;
}

.pass-body {
    padding: 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pass-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 14px;
}

.pass-cell {
    min-width: 0;
}

.pass-cell-span2 {
    grid-column: span 2;
}

.pass-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.pass-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}

.pass-val-name {
    font-size: 1rem;
    font-weight: 900;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.pass-val-code {
    font-size: 1.15rem;
    font-weight: 900;
    color: #dc2626;
    font-family: monospace;
    letter-spacing: 0.06em;
}

.pass-highlight-red {
    color: #dc2626;
    font-weight: 800;
}

.pass-bottom-strip {
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.airline-barcode-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.airline-barcode {
    height: 28px;
    width: 170px;
    background: repeating-linear-gradient(90deg, 
        #0f172a 0px, #0f172a 2px, 
        transparent 2px, transparent 4px, 
        #0f172a 4px, #0f172a 7px, 
        transparent 7px, transparent 9px, 
        #0f172a 9px, #0f172a 10px, 
        transparent 10px, transparent 13px, 
        #0f172a 13px, #0f172a 15px, 
        transparent 15px, transparent 17px,
        #0f172a 17px, #0f172a 21px,
        transparent 21px, transparent 24px
    );
}

.airline-barcode-num {
    font-size: 0.65rem;
    font-family: monospace;
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.pass-security-note {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
}

.pass-iata-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.05em;
}

/* Divider / Perforasi Sobekan */
.pass-divider {
    position: relative;
    width: 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.notch-top {
    position: absolute;
    top: -14px;
    width: 26px;
    height: 26px;
    background: #f1f5f9;
    border-radius: 50%;
    border: 2px solid #dc2626;
    border-top-color: transparent;
    z-index: 2;
}

.notch-bottom {
    position: absolute;
    bottom: -14px;
    width: 26px;
    height: 26px;
    background: #f1f5f9;
    border-radius: 50%;
    border: 2px solid #dc2626;
    border-bottom-color: transparent;
    z-index: 2;
}

.perforation-dashed {
    position: absolute;
    top: 14px;
    bottom: 14px;
    width: 0;
    border-left: 2px dashed #fca5a5;
}

.tear-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.55rem;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.15em;
    white-space: nowrap;
    z-index: 1;
    background: #ffffff;
    padding: 6px 0;
}

/* Stub Kupon Doorprize (Kanan ~32%) */
.pass-stub {
    flex: 0 0 32%;
    background: #fff8f8;
    display: flex;
    flex-direction: column;
    border-left: 1px dashed #fecaca;
    min-width: 0;
}

.stub-header {
    background: #991b1b;
    color: #ffffff;
    padding: 10px 14px;
    text-align: center;
}

.stub-header-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: #fef08a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stub-header-sub {
    font-size: 0.62rem;
    color: #fecaca;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-top: 1px;
}

.stub-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.stub-coupon-box {
    background: #ffffff;
    border: 2px dashed #dc2626;
    border-radius: 10px;
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
}

.stub-coupon-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #991b1b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stub-coupon-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #dc2626;
    font-family: monospace;
    line-height: 1.1;
    letter-spacing: 0.06em;
}

.stub-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4px 0;
}

.stub-qr-box {
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    border: 1.5px solid #fed7aa;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.stub-qr-box canvas,
.stub-qr-box img {
    width: 85px !important;
    height: 85px !important;
    display: block;
}

.stub-qr-hint {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

.stub-participant-info {
    width: 100%;
}

.stub-participant-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    margin: 0 auto;
}

.stub-instruction {
    font-size: 0.6rem;
    font-weight: 700;
    color: #dc2626;
    margin-top: 2px;
}

/* Fallback card styling */
.ticket-badge-card {
    background: #ffffff;
    border: 2px solid #dc2626;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.2);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ticket-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

/* Footer */
.footer {
    margin-top: auto;
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 25px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}

/* Print CSS Styles - Ukuran Standar Boarding Pass Pesawat / Kereta Api (200mm x 80mm) */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }
    html, body {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #000000 !important;
    }
    .navbar, .footer, .btn, .modal-footer, .hero-actions, .no-print,
    #btn-ticket-print, #btn-ticket-download-image, .ticket-actions-grid,
    .pass-scroll-hint, #cek-tiket-section, .modal-header, #ticket-foonte-badge {
        display: none !important;
    }
    .modal-backdrop {
        position: static !important;
        background: none !important;
        display: block !important;
        padding: 0 !important;
    }
    .modal-card, .ticket-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .boarding-pass-scroll {
        overflow: visible !important;
        padding: 0 !important;
    }
    /* Dimensi Fisik Boarding Pass: 200mm x 80mm (20cm x 8cm) */
    .boarding-pass {
        width: 200mm !important;
        height: 80mm !important;
        max-width: 200mm !important;
        max-height: 80mm !important;
        min-width: 200mm !important;
        border: 1.5px solid #000000 !important;
        border-radius: 4mm !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        margin: 5mm auto !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .pass-main {
        flex: 1 1 68% !important;
    }
    .pass-header {
        padding: 6px 12px !important;
        background: #991b1b !important;
        color: #ffffff !important;
    }
    .pass-event-title {
        font-size: 10pt !important;
    }
    .pass-event-sub {
        font-size: 6.5pt !important;
    }
    .pass-logo {
        height: 28px !important;
    }
    .pass-badge-class, .pass-badge-status {
        font-size: 6pt !important;
    }
    .pass-body {
        padding: 8px 12px !important;
    }
    .pass-grid {
        gap: 6px 10px !important;
    }
    .pass-label {
        font-size: 5.5pt !important;
    }
    .pass-val {
        font-size: 7.5pt !important;
    }
    .pass-val-name {
        font-size: 9pt !important;
    }
    .pass-val-code {
        font-size: 11pt !important;
    }
    .pass-bottom-strip {
        margin-top: 6px !important;
        padding-top: 4px !important;
    }
    .airline-barcode {
        height: 18px !important;
        width: 130px !important;
    }
    .airline-barcode-num, .pass-security-note {
        font-size: 5.5pt !important;
    }
    .notch-top, .notch-bottom {
        background: #ffffff !important;
        border-color: #000000 !important;
    }
    .perforation-dashed {
        border-left-color: #555555 !important;
    }
    .pass-stub {
        flex: 0 0 32% !important;
    }
    .stub-header {
        padding: 6px 8px !important;
        background: #7f1d1d !important;
    }
    .stub-header-title {
        font-size: 7.5pt !important;
    }
    .stub-header-sub {
        font-size: 5.5pt !important;
    }
    .stub-body {
        padding: 8px !important;
    }
    .stub-coupon-box {
        padding: 4px 6px !important;
        margin-bottom: 4px !important;
    }
    .stub-coupon-label {
        font-size: 5pt !important;
    }
    .stub-coupon-num {
        font-size: 13pt !important;
    }
    .stub-qr-box canvas, .stub-qr-box img {
        width: 65px !important;
        height: 65px !important;
    }
    .stub-qr-hint {
        font-size: 5.5pt !important;
    }
    .stub-participant-name {
        font-size: 6.5pt !important;
    }
    .stub-instruction {
        font-size: 5pt !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .countdown-timer-box {
        gap: 6px;
    }
    .timer-num {
        font-size: 1.4rem;
    }
    .ticket-actions-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
