/* Book My Event - BookMyShow-style Responsive CSS */
:root {
    --primary: #f84464;
    --primary-hover: #e03251;
    --dark-nav: #1a1a24;
    --sub-nav: #222539;
    --bg-main: #f5f5f7;
    --bg-card: #ffffff;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #e5e5ea;
    --success: #15803d;
    --warning: #b45309;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* HEADER */
.main-header {
    background: var(--dark-nav);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

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

.logo-badge {
    background: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(248, 68, 100, 0.4);
}

.logo-title-group {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.1;
}

.logo-brand span {
    color: var(--primary);
}

.logo-tagline {
    font-size: 10px;
    color: #a0a0b0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}

.search-bar {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e93;
    font-size: 14px;
}

.search-bar input {
    width: 100%;
    background: #fff;
    border: none;
    outline: none;
    padding: 9px 14px 9px 38px;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
}

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

.city-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #d1d1d6;
    background: rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

.city-selector i { color: var(--primary); }

.btn-scanner-top {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(248, 68, 100, 0.3);
}

.btn-scanner-top:hover {
    background: var(--primary-hover);
}

.nav-link-top {
    font-size: 13px;
    color: #d1d1d6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-top:hover { color: #fff; }

.btn-admin-top {
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.btn-admin-top:hover { background: rgba(255,255,255,0.1); }

/* SUB NAVBAR */
.sub-navbar {
    background: var(--sub-nav);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.category-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.category-list li a {
    display: block;
    color: #c7c7cc;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.category-list li a:hover, .category-list li a.active {
    color: #fff;
    border-bottom-color: var(--primary);
}

/* PAGE BODY */
.page-body {
    flex: 1;
}

/* CARDS */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

/* HERO CAROUSEL */
.hero-carousel-section {
    background: linear-gradient(135deg, #1c1c28 0%, #2c1b2d 100%);
    color: #fff;
    padding: 40px 0;
}

.hero-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-pill {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-meta {
    font-size: 15px;
    color: #ffb4a2;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 16px;
    color: #e0e0e0;
    max-width: 600px;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ticket-stamp {
    background: #fff;
    color: #222;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.ticket-stamp .price-from { font-size: 12px; color: #666; text-transform: uppercase; }
.ticket-stamp .price-val { font-size: 32px; font-weight: 800; color: var(--primary); margin: 4px 0; }
.ticket-stamp .price-type { font-size: 11px; background: #e8f5e9; color: #2e7d32; font-weight: 700; padding: 3px 8px; border-radius: 4px; }

/* ORGANIZER QUICK BAR */
.organizer-quick-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.bar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bar-icon {
    font-size: 32px;
    color: var(--primary);
}

.bar-info h4 { font-size: 16px; font-weight: 700; }
.bar-info p { font-size: 13px; color: var(--text-muted); }

.btn-scanner {
    background: #222539;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-scanner:hover { background: #111320; color: #fff; }

/* NOTICES TICKER */
.notices-ticker-section {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticker-label {
    background: #ffebee;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.ticker-item {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-item:hover { color: var(--primary); }
.ticker-more { font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* EVENTS GRID */
.events-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading {
    font-size: 24px;
    font-weight: 800;
    color: #111;
}

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.view-all-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* EVENT CARD */
.event-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.event-poster-wrap {
    position: relative;
    display: block;
    height: 180px;
    background: #222;
    overflow: hidden;
}

.event-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.event-card:hover .poster-overlay { opacity: 1; }

.btn-book-quick {
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.poster-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.badge-month { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--primary); line-height: 1; }
.badge-day { font-size: 16px; font-weight: 800; color: #111; line-height: 1.1; }

.poster-category-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.event-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 42px;
}

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

.event-venue, .event-timing {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.price-box { display: flex; flex-direction: column; }
.price-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.price-tag { font-size: 16px; font-weight: 800; color: #111; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger { background: var(--primary); color: #fff; }
.btn-danger:hover { background: var(--primary-hover); color: #fff; }
.btn-outline-light { border: 1px solid #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: #111; }
.btn-outline-dark { border: 1px solid var(--border-color); background: #fff; color: #222; }
.btn-outline-dark:hover { background: #f0f0f5; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: 8px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.badge-danger { background: #ffebee; color: #d32f2f; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff8e1; color: #f57f17; }
.badge-primary { background: #e3f2fd; color: #1976d2; }
.badge-secondary { background: #eeeeee; color: #616161; }
.badge-sm { font-size: 10px; padding: 2px 6px; }

/* TRUST SECTION */
.trust-features-section {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.trust-box h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.trust-box p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* FOOTER */
.main-footer {
    background: var(--dark-nav);
    color: #e0e0e0;
    margin-top: auto;
}

.footer-top-banner {
    background: #25283b;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.banner-text h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.banner-text p { font-size: 14px; color: #b0b0c0; }
.banner-actions { display: flex; gap: 12px; }

.footer-main { padding: 50px 0 30px 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo { margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: #999; line-height: 1.6; margin-bottom: 16px; }
.contact-details p { font-size: 13px; margin-bottom: 6px; color: #bbb; }
.contact-details a { color: #fff; text-decoration: underline; }

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    display: inline-block;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.footer-links li a:hover { color: #fff; padding-left: 4px; }

.assurance-card {
    background: rgba(255,255,255,0.04);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assurance-item { font-size: 13px; color: #ccc; display: flex; align-items: center; gap: 8px; }
.assurance-item i { color: #4ade80; }

.footer-bottom {
    background: #111219;
    padding: 16px 0;
    font-size: 12px;
    text-align: center;
    color: #777;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* EVENT DETAILS */
.event-details-hero {
    background: linear-gradient(135deg, #1f1f2e 0%, #301e2e 100%);
    color: #fff;
    padding: 40px 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.detail-poster {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.category-badge {
    background: rgba(248, 68, 100, 0.2);
    color: #ff8598;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.organizer-line { font-size: 14px; color: #ccc; margin-bottom: 24px; }

.quick-meta-box {
    display: flex;
    gap: 30px;
    background: rgba(255,255,255,0.06);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.meta-item { display: flex; align-items: center; gap: 12px; }
.meta-item i { font-size: 24px; }
.meta-title { font-size: 11px; text-transform: uppercase; color: #aaa; display: block; }
.meta-val { font-size: 14px; font-weight: 700; color: #fff; }

.booking-widget-card {
    background: #fff;
    color: #222;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

.widget-price-label { font-size: 12px; color: #666; text-transform: uppercase; }
.widget-price { font-size: 28px; font-weight: 800; color: var(--primary); }
.widget-price small { font-size: 14px; color: #666; font-weight: 400; }

.seat-select-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.seat-select-group label { font-size: 14px; font-weight: 600; }

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-qty {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-selector input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
}

.total-calc-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
}

.total-calc-box strong { font-size: 20px; color: var(--primary); }

.event-desc-section { padding: 40px 0; }
.detail-content-card { padding: 30px; }
.detail-content-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.desc-body { font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 20px; }
.divider { border: 0; border-top: 1px solid #eee; margin: 24px 0; }
.terms-list { padding-left: 20px; font-size: 14px; color: #555; line-height: 1.8; }

/* CHECKOUT */
.checkout-container { padding: 40px 0; }
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.checkout-step-header h2 { font-size: 20px; font-weight: 700; }
.checkout-step-header p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-row { display: flex; gap: 14px; }
.col-half { flex: 1; }

.payment-methods-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
}

.method-title { font-size: 14px; font-weight: 700; }
.method-sub { font-size: 12px; color: #666; }

.payment-instruction-box {
    background: #f0f7ff;
    border: 1px dashed #90caf9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.upi-flex { display: flex; align-items: center; justify-content: space-between; }
.secure-notice { text-align: center; font-size: 12px; color: #666; margin-top: 10px; }

.checkout-summary-card { padding: 24px; }
.summary-event-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.summary-meta { font-size: 13px; color: #666; }

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.total-row {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.total-price { color: var(--primary); }

.summary-note {
    margin-top: 20px;
    background: #e8f5e9;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
}

/* PRINTABLE E-TICKET */
.ticket-view-container { padding: 40px 0; max-width: 800px; margin: 0 auto; }
.ticket-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ticket-card-printable {
    background: #fff;
    border: 2px dashed #bbb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ticket-head {
    background: var(--dark-nav);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-brand { display: flex; align-items: center; gap: 12px; }
.brand-powered { font-size: 11px; color: #aaa; text-transform: uppercase; }

.ticket-main-grid {
    padding: 30px 24px;
    display: flex;
    gap: 30px;
}

.ticket-info-left { flex: 1; }
.ticket-label { font-size: 11px; text-transform: uppercase; color: #888; font-weight: 700; }
.ticket-event-title { font-size: 26px; font-weight: 800; margin: 4px 0 16px 0; color: #111; }

.ticket-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.t-lbl { font-size: 11px; color: #666; text-transform: uppercase; display: block; }
.t-val { font-size: 14px; font-weight: 700; color: #222; }

.ticket-attendee-box {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.ticket-qr-right {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px dashed #ddd;
    padding-left: 24px;
}

.qr-box-inner { text-align: center; }
.qr-code-text { font-size: 12px; font-family: monospace; font-weight: 700; margin-top: 8px; display: block; }
.scan-instruction { font-size: 11px; color: #888; text-transform: uppercase; }

.ticket-foot {
    background: #f1f3f5;
    padding: 12px 24px;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
}

/* SCANNER PAGE */
.scanner-page-container { padding: 40px 0; max-width: 1000px; margin: 0 auto; }
.scanner-header-card { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.scanner-brand-tag { font-size: 12px; background: #ffebee; color: var(--primary); padding: 4px 12px; border-radius: 20px; font-weight: 700; }

.scanner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.scanner-box-card { text-align: center; }
.camera-controls { margin-top: 14px; }
.scanner-input-group { display: flex; gap: 8px; margin-top: 12px; }

.verification-result-card {
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: left;
}

.result-valid { background: #e8f5e9; border: 2px solid #4caf50; }
.result-used { background: #fff3e0; border: 2px solid #ff9800; }
.result-invalid { background: #ffebee; border: 2px solid #f44336; }

.result-badge-top { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.result-valid .result-badge-top { color: #2e7d32; }
.result-used .result-badge-top { color: #e65100; }
.result-invalid .result-badge-top { color: #c62828; }

.res-event-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.res-warning-text { color: #e65100; font-weight: 600; margin-bottom: 12px; }
.res-attendee-info div { font-size: 14px; margin-bottom: 6px; }

/* ADMIN PANEL */
.admin-body { background: #f0f2f5; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: #1a1a24;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-brand h3 { font-size: 18px; margin: 0; }
.admin-brand small { color: #888; font-size: 11px; text-transform: uppercase; }

.admin-nav { padding: 20px 0; flex: 1; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #b0b0c0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-left: 4px solid var(--primary);
}

.admin-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: #888;
}

.admin-main { flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
    background: #fff;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.admin-content-inner { padding: 30px; }

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-title { font-size: 12px; color: #666; text-transform: uppercase; }
.stat-value { font-size: 24px; font-weight: 800; color: #111; }

.admin-quick-actions { padding: 20px; margin-bottom: 24px; }
.admin-quick-actions h4 { font-size: 15px; margin-bottom: 12px; }
.action-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.table-card { padding: 0; overflow: hidden; }
.table-card-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: #fafafa; padding: 12px 16px; text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid #eee; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }

.admin-login-body {
    background: #1a1a24;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-login-box { width: 100%; max-width: 420px; padding: 30px; }
.admin-login-header { text-align: center; margin-bottom: 24px; }
.admin-login-demo {
    margin-top: 20px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.admin-cms-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* PRINT STYLES */
@media print {
    .print-hide, .main-header, .main-footer { display: none !important; }
    body { background: #fff !important; }
    .ticket-view-container { padding: 0 !important; max-width: 100% !important; }
    .ticket-card-printable { border: 2px solid #000 !important; box-shadow: none !important; }
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
    .hero-split { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .scanner-grid { grid-template-columns: 1fr; }
    .admin-cms-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; align-items: stretch; }
    .header-right { justify-content: space-between; }
    .search-bar { max-width: 100%; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .ticket-main-grid { flex-direction: column; }
    .ticket-qr-right { border-left: none; border-top: 2px dashed #ddd; width: 100%; padding-top: 20px; }
}
