/**
 * TICKETIFY NG - Official Brand Design System & Stylesheet
 * Brand Foundation: Bold purple ticket containing black "T"
 * Primary Color: #6E22E5 (Official Ticketify Purple)
 * Secondary Color: #0E0E12 (Deep Black / Charcoal)
 * Neutral: #FFFFFF, #F8F9FB, #F1F3F7
 */

:root {
  /* TICKETIFY NG Brand Palette */
  --tkt-purple: #6E22E5;
  --tkt-purple-hover: #5A19C2;
  --tkt-purple-active: #4B12A6;
  --tkt-purple-light: #F4EEFF;
  --tkt-purple-subtle: #E9DEFD;
  --tkt-purple-glow: rgba(110, 34, 229, 0.18);
  
  --tkt-black: #0E0E12;
  --tkt-charcoal: #1E1E24;
  --tkt-gray-dark: #374151;
  --tkt-gray-muted: #6B7280;
  --tkt-gray-light: #E5E7EB;
  --tkt-gray-subtle: #F3F4F6;
  --tkt-bg-page: #F8F9FB;
  --tkt-white: #FFFFFF;
  
  /* Nigerian Currency & Accent Accents */
  --tkt-green: #10B981;
  --tkt-green-light: #ECFDF5;
  
  /* Typography */
  --tkt-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Touch & Mobile metrics */
  --tkt-touch-target: 48px;
  --tkt-radius-sm: 8px;
  --tkt-radius-md: 12px;
  --tkt-radius-lg: 18px;
  --tkt-radius-xl: 24px;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
html, body {
  font-family: var(--tkt-font-sans);
  background-color: var(--tkt-bg-page);
  color: var(--tkt-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px; /* clearance for mobile bottom navbar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--tkt-black);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--tkt-purple);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--tkt-purple-hover);
}

/* ==========================================================================
   Brand Buttons
   ========================================================================== */
.btn-tkt-primary {
  background-color: var(--tkt-purple);
  border-color: var(--tkt-purple);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--tkt-radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tkt-touch-target);
}

.btn-tkt-primary:hover,
.btn-tkt-primary:focus {
  background-color: var(--tkt-purple-hover);
  border-color: var(--tkt-purple-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--tkt-purple-glow);
  transform: translateY(-1px);
}

.btn-tkt-primary:active {
  background-color: var(--tkt-purple-active);
  transform: translateY(0);
}

.btn-tkt-outline {
  background-color: transparent;
  border: 1.5px solid var(--tkt-purple);
  color: var(--tkt-purple);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--tkt-radius-md);
  min-height: var(--tkt-touch-target);
  transition: all 0.15s ease;
}

.btn-tkt-outline:hover {
  background-color: var(--tkt-purple-light);
  color: var(--tkt-purple-hover);
  border-color: var(--tkt-purple-hover);
}

.btn-tkt-dark {
  background-color: var(--tkt-black);
  border-color: var(--tkt-black);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--tkt-radius-md);
  min-height: var(--tkt-touch-target);
}

.btn-tkt-dark:hover {
  background-color: #24242C;
  color: #FFFFFF;
}

/* ==========================================================================
   Header & Navbar (Mobile-First Responsive Design)
   ========================================================================== */
.tkt-navbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--tkt-gray-light);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  width: 100%;
}

@media (min-width: 768px) {
  .tkt-navbar {
    padding: 0.75rem 0;
  }
}

/* Responsive Brand Logo with Precise Proportional Scaling */
.tkt-brand-logo {
  height: 24px;
  max-height: 24px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  flex-shrink: 1;
}

/* Small phones (<= 359px, e.g. iPhone SE 1st gen / 320px) */
@media (max-width: 359.98px) {
  .tkt-brand-logo {
    height: 20px;
    max-height: 20px;
    max-width: 108px;
  }
}

/* Standard phones (360px - 479px, e.g. Galaxy S, iPhone 12/13/14/15/16) */
@media (min-width: 360px) and (max-width: 479.98px) {
  .tkt-brand-logo {
    height: 24px;
    max-height: 24px;
    max-width: 130px;
  }
}

/* Large phones & small tablets (480px - 767px) */
@media (min-width: 480px) and (max-width: 767.98px) {
  .tkt-brand-logo {
    height: 28px;
    max-height: 28px;
    max-width: 150px;
  }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .tkt-brand-logo {
    height: 34px;
    max-height: 34px;
    max-width: 175px;
  }
}

/* Desktop (>= 992px) */
@media (min-width: 992px) {
  .tkt-brand-logo {
    height: 40px;
    max-height: 40px;
    max-width: 220px;
  }
}

/* Large Desktop (>= 1200px) */
@media (min-width: 1200px) {
  .tkt-brand-logo {
    height: 44px;
    max-height: 44px;
    max-width: 240px;
  }
}

/* Organizer Dedicated Mobile Topbar */
.tkt-org-mobile-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--tkt-gray-light);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  width: 100%;
}

@media (min-width: 576px) {
  .tkt-org-mobile-header {
    padding: 0.65rem 0;
  }
}

/* Organizer Brand Link with Shrink-Safe Flex Child */
.tkt-org-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

@media (min-width: 576px) {
  .tkt-org-brand-link {
    gap: 0.5rem;
  }
}

/* Responsive ORGANIZER Badge */
.tkt-org-badge {
  display: inline-block;
  background-color: var(--tkt-purple);
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 4px;
  padding: 2.5px 5.5px;
  font-size: 0.60rem;
  vertical-align: middle;
}

@media (max-width: 359.98px) {
  .tkt-org-badge {
    font-size: 0.52rem;
    padding: 2px 4px;
    letter-spacing: 0.3px;
  }
}

@media (min-width: 576px) {
  .tkt-org-badge {
    font-size: 0.68rem;
    padding: 3.5px 7px;
    letter-spacing: 0.6px;
    border-radius: 5px;
  }
}

/* Touch-Friendly Menu Button (Never Pushed Out of Viewport) */
.tkt-hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--tkt-radius-sm);
  background-color: #F8F9FB;
  border: 1px solid var(--tkt-gray-light);
  color: var(--tkt-charcoal);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.tkt-hamburger-btn:hover,
.tkt-hamburger-btn:focus {
  background-color: var(--tkt-purple-light);
  border-color: var(--tkt-purple-subtle);
  color: var(--tkt-purple);
  outline: none;
}

@media (min-width: 576px) {
  .tkt-hamburger-btn {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
  }
}

/* Icon Buttons in Nav (Search, etc.) */
.tkt-nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--tkt-radius-sm);
  border: 1px solid var(--tkt-gray-light);
  background-color: #F8F9FB;
  color: var(--tkt-charcoal);
  flex-shrink: 0;
  transition: all 0.15s ease-in-out;
}

.tkt-nav-icon-btn:hover,
.tkt-nav-icon-btn:focus {
  background-color: var(--tkt-purple-light);
  border-color: var(--tkt-purple-subtle);
  color: var(--tkt-purple);
  outline: none;
}

.tkt-auth-logo {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.tkt-footer-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.tkt-auth-card-icon {
  height: 48px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tkt-auth-card-icon:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--tkt-gray-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--tkt-radius-sm);
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--tkt-purple);
}

.tkt-search-bar {
  position: relative;
  width: 100%;
}

.tkt-search-bar input {
  padding-left: 2.75rem;
  padding-right: 1rem;
  height: 46px;
  border-radius: var(--tkt-radius-md);
  border: 1.5px solid var(--tkt-gray-light);
  background-color: var(--tkt-bg-page);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.tkt-search-bar input:focus {
  background-color: #FFFFFF;
  border-color: var(--tkt-purple);
  box-shadow: 0 0 0 3px var(--tkt-purple-glow);
  outline: none;
}

.tkt-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tkt-gray-muted);
  pointer-events: none;
}

/* ==========================================================================
   Hero Section (Mobile Portrait First)
   ========================================================================== */
.tkt-hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7FF 100%);
  border-bottom: 1px solid var(--tkt-purple-subtle);
  padding: 2.5rem 0 2rem;
}

@media (min-width: 768px) {
  .tkt-hero-section {
    padding: 4rem 0 3rem;
  }
}

.tkt-hero-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tkt-purple);
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tkt-hero-title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--tkt-black);
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .tkt-hero-title {
    font-size: 3rem;
  }
}

.tkt-hero-text {
  font-size: 1rem;
  color: var(--tkt-gray-dark);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Quick Search Card inside Hero */
.tkt-hero-search-box {
  background: #FFFFFF;
  border: 1px solid var(--tkt-gray-light);
  border-radius: var(--tkt-radius-lg);
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(14, 14, 18, 0.06);
}

/* ==========================================================================
   Category Chips / Scroller (Mobile Horizontal Swipe)
   ========================================================================== */
.tkt-category-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.tkt-category-scroll::-webkit-scrollbar {
  display: none;
}

.tkt-category-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #FFFFFF;
  border: 1px solid var(--tkt-gray-light);
  border-radius: var(--tkt-radius-md);
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tkt-charcoal);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tkt-category-card:hover,
.tkt-category-card.active {
  background-color: var(--tkt-purple-light);
  border-color: var(--tkt-purple);
  color: var(--tkt-purple);
  transform: translateY(-1px);
}

.tkt-category-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--tkt-radius-sm);
  background-color: var(--tkt-purple-light);
  color: var(--tkt-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ==========================================================================
   Event Card Component (Strict Specification)
   ========================================================================== */
.tkt-event-card {
  background: #FFFFFF;
  border: 1px solid var(--tkt-gray-light);
  border-radius: var(--tkt-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  position: relative;
}

.tkt-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(110, 34, 229, 0.1);
  border-color: var(--tkt-purple-subtle);
}

.tkt-event-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1E1E24;
  overflow: hidden;
}

.tkt-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tkt-event-card:hover .tkt-event-img {
  transform: scale(1.04);
}

/* Floating Date Badge on Image */
.tkt-event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--tkt-radius-sm);
  padding: 5px 8px;
  min-width: 44px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
}

.tkt-event-date-month {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--tkt-purple-subtle);
  display: block;
  line-height: 1.1;
}

.tkt-event-date-day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  display: block;
  margin: 1px 0;
}

.tkt-event-date-year {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  line-height: 1.1;
}

/* Bookmark Icon Button */
.tkt-event-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tkt-charcoal);
  transition: all 0.15s ease;
}

.tkt-event-fav-btn:hover {
  background: #FFFFFF;
  color: #EF4444;
  transform: scale(1.1);
}

.tkt-event-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Category & City Metadata - Clean Unboxed Text with Separator */
.tkt-event-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tkt-purple);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tkt-event-meta-sep {
  color: var(--tkt-gray-muted);
}

.tkt-event-meta-city {
  color: var(--tkt-gray-muted);
  font-weight: 500;
}

.tkt-event-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tkt-black);
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tkt-event-venue {
  font-size: 0.85rem;
  color: var(--tkt-gray-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkt-event-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--tkt-gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tkt-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tkt-gray-muted);
  display: block;
}

.tkt-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tkt-black);
}

.tkt-price-free {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tkt-green);
}

/* ==========================================================================
   Ticket Aesthetics & Perforated Cutouts
   ========================================================================== */
.tkt-ticket-stub {
  background: #FFFFFF;
  border: 1px solid var(--tkt-gray-light);
  border-radius: var(--tkt-radius-lg);
  position: relative;
  overflow: hidden;
}

.tkt-ticket-notch-left,
.tkt-ticket-notch-right {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background-color: var(--tkt-bg-page);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid var(--tkt-gray-light);
}

.tkt-ticket-notch-left {
  left: -10px;
}

.tkt-ticket-notch-right {
  right: -10px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.tkt-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--tkt-gray-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

@media (min-width: 992px) {
  .tkt-bottom-nav {
    display: none; /* Hidden on desktop */
  }
}

.tkt-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--tkt-gray-muted);
  font-size: 0.72rem;
  font-weight: 600;
  width: 25%;
  height: 100%;
  transition: color 0.15s ease;
  position: relative;
}

.tkt-bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.15s ease;
}

.tkt-bottom-nav-item.active {
  color: var(--tkt-purple);
}

.tkt-bottom-nav-item.active i {
  transform: translateY(-1px);
}

.tkt-bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background-color: var(--tkt-purple);
  border-radius: 0 0 3px 3px;
}

/* ==========================================================================
   Organizer Callout Banner
   ========================================================================== */
.tkt-organizer-banner {
  background: linear-gradient(135deg, var(--tkt-black) 0%, #1F1B2E 100%);
  border-radius: var(--tkt-radius-xl);
  color: #FFFFFF;
  padding: 2.25rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.tkt-organizer-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 34, 229, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.tkt-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--tkt-gray-light);
  padding: 3rem 0 2rem;
}

.tkt-footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tkt-black);
  margin-bottom: 1.1rem;
}

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

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

.tkt-footer-links a {
  color: var(--tkt-gray-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.tkt-footer-links a:hover {
  color: var(--tkt-purple);
}

.tkt-footer-bottom {
  border-top: 1px solid var(--tkt-gray-light);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--tkt-gray-muted);
}

/* ==========================================================================
   PART 1 — DIGITAL TICKET (Mobile-First 320px–414px Inspired by Screenshot 3)
   ========================================================================== */
.digital-ticket-wrapper {
  max-width: 430px;
  width: 100%;
}

.digital-ticket-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(110, 34, 229, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #1e293b;
}

.ticket-header-section {
  padding: 24px 20px 16px;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border-top: 5px solid var(--tkt-purple);
}

.tkt-brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tkt-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tkt-brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.tkt-pass-type-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tkt-purple);
  background: rgba(110, 34, 229, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.tkt-event-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 12px;
}

.tkt-logistics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #64748b;
}

.tkt-logistics-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tkt-logistics-item i {
  color: var(--tkt-purple);
  font-size: 0.9rem;
}

/* Perforated Notched Cut-Out Divider */
.ticket-notch-divider {
  position: relative;
  height: 24px;
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
}

.ticket-notch-divider .notch {
  width: 22px;
  height: 22px;
  background-color: #f1f5f9;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  z-index: 2;
  border: 1px solid #e2e8f0;
}

.ticket-notch-divider .notch-left {
  left: -12px;
}

.ticket-notch-divider .notch-right {
  right: -12px;
}

.ticket-notch-divider .dashed-line {
  width: 100%;
  margin: 0 16px;
  border-bottom: 2px dashed #cbd5e1;
}

/* Tier & Price Section */
.ticket-tier-section {
  padding: 12px 20px 8px;
}

.tkt-tier-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #0f172a;
  margin-bottom: 2px;
}

.tkt-tier-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--tkt-purple);
  margin-bottom: 10px;
}

.tkt-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 8px 12px;
}

.tkt-meta-item {
  display: flex;
  flex-direction: column;
}

.tkt-meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.tkt-meta-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Badges Section */
.ticket-status-section {
  padding: 10px 20px 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.status-pill-paid {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-pill-paid i {
  color: #059669;
}

.status-pill-entry {
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.status-pill-entry i {
  color: var(--tkt-purple);
}

/* Scannable QR Code Section */
.ticket-qr-section {
  padding: 14px 20px 10px;
}

.qr-container-box {
  width: 196px;
  height: 196px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tkt-qr-svg {
  width: 180px;
  height: 180px;
  display: block;
}

.tkt-code-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-top: 10px;
}

.tkt-code-value {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0f172a;
}

/* Barcode simulation lines */
.tkt-barcode-lines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 28px;
  max-width: 220px;
}

.tkt-barcode-lines .bar {
  background: #0f172a;
  height: 100%;
  display: inline-block;
}

.tkt-barcode-lines .b-thin { width: 1.5px; }
.tkt-barcode-lines .b-med  { width: 3px; }
.tkt-barcode-lines .b-thick{ width: 5px; }

/* Instruction & Actions Section */
.ticket-instruction-section {
  padding: 10px 20px 6px;
}

.tkt-instruction-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.tkt-system-signature {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.ticket-actions-section {
  padding: 16px 20px 24px;
}

/* ==========================================================================
   PART 2 — THERMAL PRINT STATION (80mm & 58mm POS Inspired by Screenshot 4)
   ========================================================================== */
.thermal-preview-canvas {
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  width: 100%;
  min-height: 480px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

.thermal-paper {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: width 0.2s ease;
  box-sizing: border-box;
}

.thermal-paper-inner {
  padding: 12px 10px 14px;
  font-family: 'Courier New', Courier, monospace, monospace;
  line-height: 1.3;
}

/* 80mm Roll (Default) */
.thermal-paper-80 {
  width: 76mm;
  max-width: 100%;
}

.thermal-paper-80 .thermal-qr-svg {
  width: 48mm;
  height: 48mm;
  max-width: 100%;
}

/* 58mm Roll (Compact) */
.thermal-paper-58 {
  width: 50mm;
  max-width: 100%;
}

.thermal-paper-58 .thermal-qr-svg {
  width: 36mm;
  height: 36mm;
  max-width: 100%;
}

.thermal-paper-58 .thermal-cut-line {
  font-size: 9px;
  letter-spacing: -0.06em;
}

.thermal-paper-58 .thermal-brand-title {
  font-size: 13px;
}

.thermal-paper-58 .thermal-event-name {
  font-size: 12px;
}

/* Jagged cut line */
.thermal-cut-line {
  text-align: center;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #000000;
  margin: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.thermal-brand-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #000000;
}

.thermal-brand-subtitle {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000000;
  margin-top: 1px;
}

.thermal-event-name {
  font-size: 13px;
  font-weight: 900;
  color: #000000;
  line-height: 1.25;
  margin-bottom: 2px;
}

.thermal-event-datetime,
.thermal-event-venue {
  font-size: 10px;
  font-weight: 700;
  color: #000000;
  line-height: 1.35;
}

.thermal-tier-type {
  font-size: 13px;
  font-weight: 900;
  color: #000000;
}

.thermal-tier-price {
  font-size: 13px;
  font-weight: 900;
  color: #000000;
}

.thermal-meta-block {
  font-size: 10px;
  line-height: 1.4;
}

.thermal-meta-row .t-label {
  font-weight: bold;
}

.thermal-status-line {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #000000;
}

.thermal-scan-instruction {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.thermal-qr-box {
  display: inline-block;
  padding: 2px;
  background: #ffffff;
}

.thermal-ticket-code-label {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #000000;
  margin-top: 2px;
}

.thermal-ticket-code {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #000000;
}

.thermal-barcode-lines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5px;
  height: 20px;
  max-width: 180px;
}

.thermal-barcode-lines .t-bar {
  background: #000000;
  height: 100%;
  display: inline-block;
}

.thermal-barcode-lines .tb-thin { width: 1px; }
.thermal-barcode-lines .tb-med  { width: 2px; }
.thermal-barcode-lines .tb-thick{ width: 3.5px; }

.thermal-notice {
  font-size: 9px;
  font-weight: 700;
  color: #000000;
}

.thermal-footer-brand {
  font-size: 8px;
  color: #000000;
  margin-top: 2px;
}

/* ==========================================================================
   PRINT MEDIA RULES (@media print)
   Isolates exclusively the thermal receipt with zero margins & full fidelity
   ========================================================================== */
@media print {
  body.printing-thermal-dedicated,
  body.printing-thermal,
  body.printing-thermal-80,
  body.printing-thermal-58,
  body.printing-80,
  body.printing-58 {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Completely strip surrounding page chrome, controls, nav, header, footer */
  body.printing-thermal-dedicated header,
  body.printing-thermal-dedicated footer,
  body.printing-thermal-dedicated nav,
  body.printing-thermal-dedicated .navbar,
  body.printing-thermal-dedicated .screen-only,
  body.printing-thermal-dedicated .print-controls-sidebar,
  body.printing-thermal-dedicated .btn,
  body.printing-thermal-dedicated .alert,
  body.printing-thermal-dedicated .breadcrumb,
  body.printing-thermal-dedicated aside,
  body.printing-thermal-dedicated .tkt-org-sidebar,
  body.printing-thermal-dedicated .digital-ticket-wrapper,
  body.printing-thermal header,
  body.printing-thermal footer,
  body.printing-thermal nav,
  body.printing-thermal .navbar,
  body.printing-thermal .screen-only,
  body.printing-thermal .btn {
    display: none !important;
  }

  body.printing-thermal-dedicated .print-station-main,
  body.printing-thermal-dedicated .print-preview-column,
  body.printing-thermal-dedicated .thermal-preview-canvas {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    width: 100% !important;
    display: block !important;
  }

  /* Exclusively render thermal ticket starting at top without cut or margins */
  body.printing-thermal-dedicated #thermalReceipt {
    display: block !important;
    position: static !important;
    margin: 0 auto !important;
    padding: 2mm 0 !important;
    box-shadow: none !important;
    border: none !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  body.printing-80 #thermalReceipt,
  body.printing-thermal-80 #thermalReceipt {
    width: 76mm !important;
  }

  body.printing-58 #thermalReceipt,
  body.printing-thermal-58 #thermalReceipt {
    width: 50mm !important;
  }

  /* Fallback for regular browser print */
  body:not(.printing-thermal-dedicated):not(.printing-thermal) header,
  body:not(.printing-thermal-dedicated):not(.printing-thermal) footer,
  body:not(.printing-thermal-dedicated):not(.printing-thermal) .navbar,
  body:not(.printing-thermal-dedicated):not(.printing-thermal) .btn,
  body:not(.printing-thermal-dedicated):not(.printing-thermal) .breadcrumb {
    display: none !important;
  }
}

