/**
 * CVL Ticketing System Stylesheet
 * Premium Dark Sports & Entertainment Aesthetic
 */

:root {
  --tkt-bg: #070b14;
  --tkt-card: #0e1526;
  --tkt-card-border: rgba(0, 240, 255, 0.18);
  --tkt-cyan: #00f0ff;
  --tkt-pink: #ff007f;
  --tkt-gold: #f2c44b;
  --tkt-green: #00ff88;
  --tkt-purple: #823dcc;
  --tkt-blue: #2171c9;
  --tkt-teal: #16868c;
  --tkt-muted: #8b9bb4;
  --tkt-text: #f0f4fc;
}

/* Page Layout */
.tickets-page {
  background: radial-gradient(circle at 50% 0%, #162447 0%, var(--tkt-bg) 65%);
  color: var(--tkt-text);
  min-height: 100vh;
  padding-bottom: 60px;
}

.tkt-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Hero & Progress Steps */
.tkt-header {
  display: block !important;
  position: static !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  text-align: center;
  margin-bottom: 28px;
}

.tkt-badge-league {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--tkt-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tkt-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ffffff 40%, var(--tkt-cyan) 80%, var(--tkt-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tkt-subtitle {
  color: var(--tkt-muted);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto 24px auto;
}

/* Step Bar */
.tkt-steps {
  position: static !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.tkt-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tkt-muted);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.tkt-step-item.active {
  color: #fff;
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--tkt-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.tkt-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.tkt-step-item.active .tkt-step-num {
  background: var(--tkt-cyan);
  color: #070b14;
  font-weight: 800;
}

.tkt-step-sep {
  color: var(--tkt-muted);
  font-size: 13px;
  opacity: 0.6;
}

/* VIP Session Picker inside Modal */
.vip-session-picker {
  background: rgba(207, 154, 45, 0.08);
  border: 1px solid rgba(207, 154, 45, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.vip-session-picker-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--tkt-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.vip-session-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vip-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--tkt-text);
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: all 0.2s ease;
}

.vip-opt-btn:hover {
  border-color: var(--tkt-gold);
  background: rgba(207, 154, 45, 0.12);
}

.vip-opt-btn.active {
  background: rgba(207, 154, 45, 0.22);
  border-color: var(--tkt-gold);
  box-shadow: 0 0 10px rgba(207, 154, 45, 0.3);
}

.vip-opt-btn .vip-opt-name {
  font-weight: 700;
  font-size: 11.5px;
  color: #fff;
}

.vip-opt-btn .vip-opt-date {
  font-size: 10px;
  color: var(--tkt-gold);
}

/* Match / Session Selector */
.session-selector-card {
  background: var(--tkt-card);
  border: 1px solid var(--tkt-card-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.session-selector-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--tkt-cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.session-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--tkt-text);
  position: relative;
  overflow: hidden;
}

.session-btn:hover {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}

.session-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(255, 0, 127, 0.1) 100%);
  border-color: var(--tkt-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.session-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tkt-cyan), var(--tkt-pink));
}

.session-date-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--tkt-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.session-meta {
  font-size: 12px;
  color: var(--tkt-muted);
}

/* Category Legend & Filters */
.legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--tkt-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #d8e2f0;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.legend-chip:hover, .legend-chip.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.legend-chip .dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-block-input {
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  width: 140px;
  outline: none;
  transition: border-color 0.2s;
}

.search-block-input:focus {
  border-color: var(--tkt-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.map-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.map-ctrl-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--tkt-cyan);
  color: var(--tkt-cyan);
}

/* Stadium Viewport */
.stadium-viewport-card {
  background: #080d1a;
  border: 1px solid var(--tkt-card-border);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.stadium-map-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 50%, #101c36 0%, #060a14 100%);
  user-select: none;
}

.stadium-map-wrapper svg {
  display: block;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 780px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: max-width 0.2s ease-out, width 0.2s ease-out;
}

/* SVG Interactive Blocks */
.stadium-map-wrapper svg .block {
  cursor: pointer;
  transition: all 0.2s ease;
}

.stadium-map-wrapper svg .block:hover polygon,
.stadium-map-wrapper svg .block:hover rect,
.stadium-map-wrapper svg .block.active polygon,
.stadium-map-wrapper svg .block.active rect {
  stroke: var(--tkt-gold) !important;
  stroke-width: 6 !important;
  filter: drop-shadow(0 0 8px var(--tkt-gold));
}

.stadium-map-wrapper svg .block:focus-visible {
  outline: none;
}

/* Tooltip on SVG hover */
#blockHoverTooltip {
  position: fixed;
  background: rgba(14, 21, 38, 0.95);
  border: 1px solid var(--tkt-cyan);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  transform: translate(-50%, -120%);
}

/* Floating Selected Dock */
.tkt-bottom-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 94vw);
  background: rgba(14, 21, 38, 0.94);
  border: 1px solid var(--tkt-cyan);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(12px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tkt-bottom-dock.hidden {
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dock-seat-count {
  font-size: 20px;
  font-weight: 800;
  color: var(--tkt-cyan);
}

.dock-seat-list {
  font-size: 13px;
  color: var(--tkt-muted);
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dock-total-price {
  text-align: right;
}

.dock-total-price .amount {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.dock-total-price .fee-hint {
  font-size: 11px;
  color: var(--tkt-muted);
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-btn-checkout {
  background: linear-gradient(135deg, var(--tkt-cyan) 0%, #00ff88 100%);
  color: #050b18;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dock-btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}

.dock-btn-edit {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.dock-btn-edit:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--tkt-cyan);
}

.dock-btn {
  background: linear-gradient(135deg, var(--tkt-cyan) 0%, #0099ff 100%);
  color: #050b18;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
}

.dock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}

/* ==============================================================
   100-SEAT POPUP MODAL DIALOG
   ============================================================== */
dialog.seat-modal {
  display: flex !important;
  flex-direction: column !important;
  width: min(840px, 96vw);
  height: min(880px, 94vh);
  max-height: 94vh;
  border: 1px solid var(--tkt-card-border);
  border-radius: 18px;
  background: #0b1122;
  color: var(--tkt-text);
  padding: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.2);
  margin: auto;
  overflow: hidden;
  box-sizing: border-box;
}

dialog.seat-modal::backdrop {
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(8px);
}

.modal-header {
  flex: 0 0 auto;
  padding: 20px 24px;
  background: #111a33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-cat-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--tkt-pink);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Court Direction Banner */
.court-direction-banner {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, rgba(242, 196, 75, 0.15) 50%, rgba(0, 240, 255, 0.1) 100%);
  border: 1px dashed rgba(242, 196, 75, 0.4);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--tkt-gold);
  margin-bottom: 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 10x10 Seat Matrix Grid */
.seat-grid-container {
  overflow-x: auto;
  padding-bottom: 10px;
}

.seat-grid {
  display: grid;
  grid-template-columns: 28px repeat(10, minmax(36px, 1fr));
  gap: 6px;
  min-width: 480px;
  margin: 0 auto;
}

.grid-col-header, .grid-row-header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--tkt-muted);
}

.seat-btn {
  aspect-ratio: 1;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat-btn:hover:not(:disabled) {
  border-color: var(--tkt-cyan);
  background: rgba(0, 240, 255, 0.15);
  transform: scale(1.08);
}

.seat-btn[aria-pressed="true"] {
  background: var(--tkt-green) !important;
  border-color: var(--tkt-green) !important;
  color: #050b18 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
  transform: scale(1.05);
}

.seat-btn:disabled {
  background: #1a2233 !important;
  border-color: #242f47 !important;
  color: #4b5975 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.seat-btn.held-by-other {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #f59e0b !important;
}

.seat-btn.reserved-vip {
  background: rgba(255, 0, 127, 0.12) !important;
  border-color: rgba(255, 0, 127, 0.4) !important;
  color: var(--tkt-pink) !important;
}

/* Modal Legend */
.seat-legend-mini {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.seat-legend-mini span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seat-legend-mini .box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

/* Modal Footer / Cart breakdown */
.modal-footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 50;
  padding: 14px 20px;
  background: #090e1d;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.8);
}

.modal-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.modal-footer-chips-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.modal-footer-label {
  font-size: 11px;
  color: var(--tkt-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 700;
}

.modal-selection-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 48px;
  overflow-y: auto;
}

.modal-footer-price-wrap {
  text-align: right;
  flex: 0 0 auto;
}

.modal-subtotal-price {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.modal-subtotal-tax-hint {
  font-size: 10px;
  color: var(--tkt-muted);
  margin-top: 2px;
}

.btn-modal-continue {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--tkt-cyan) 0%, #00ff88 100%);
  color: #050b18;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-modal-continue:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.55);
}

.btn-modal-continue:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.seat-chip {
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--tkt-green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seat-chip button {
  background: none;
  border: none;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}

/* ==============================================================
   MOBILE APP STYLED CHECKOUT MODAL & BOTTOM SHEET
   ============================================================== */

/* Modal Container */
dialog.guest-modal {
  width: min(560px, 94vw);
  max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  background: #090e1d;
  color: var(--tkt-text);
  padding: 0;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.15);
  margin: auto;
  overflow: hidden;
}

dialog.guest-modal[open] {
  display: flex !important;
  flex-direction: column !important;
}

dialog.guest-modal::backdrop {
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(10px);
}

/* Mobile pull handle */
.mobile-sheet-handle {
  display: none;
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  margin: 10px auto 4px;
}

/* App Header */
.app-modal-header {
  padding: 16px 20px;
  background: #0f162b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.app-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.app-modal-sub {
  display: block;
  font-size: 12px;
  color: var(--tkt-cyan);
  margin-top: 2px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.app-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.app-modal-close:hover {
  background: var(--tkt-pink);
  transform: rotate(90deg);
}

/* Form Container & Scrolling Flow */
form.app-form-flow {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 14px !important;
  padding: 16px 18px 24px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Modern App Cards */
.app-card {
  background: #11182c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

/* Summary Card */
.app-summary-card {
  background: linear-gradient(135deg, rgba(17, 24, 44, 0.9) 0%, rgba(11, 17, 34, 0.9) 100%);
  border-color: rgba(0, 240, 255, 0.2);
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.app-card-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--tkt-muted);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.app-seats-badge {
  font-size: 14px;
  color: var(--tkt-cyan);
  font-family: monospace;
}

.app-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 196, 75, 0.15);
  border: 1px solid var(--tkt-gold);
  color: var(--tkt-gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tkt-gold);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Price Breakdown */
.app-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--tkt-muted);
}

.app-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-breakdown-row.total {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 4px;
  padding-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.app-total-val {
  font-size: 18px;
  color: var(--tkt-cyan);
  font-weight: 900;
}

/* Section Header */
.app-section-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 2px;
}

.app-section-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tkt-cyan);
  color: #080b17;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.app-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.app-section-desc {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--tkt-muted);
  line-height: 1.35;
}

.zero-fee-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid #00ff88;
  border-radius: 10px;
  padding: 1px 6px;
}

/* Form Fields */
.app-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.app-input-label {
  font-size: 12px;
  font-weight: 700;
  color: #d1d5db;
}

.app-text-input {
  width: 100%;
  min-height: 46px;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.app-text-input:focus {
  border-color: var(--tkt-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  background: #0b1122;
}

.app-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-phone-wrap {
  display: flex;
  align-items: center;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.app-country-code {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tkt-cyan);
  background: rgba(255, 255, 255, 0.05);
  height: 46px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.app-phone-input {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.app-field-hint {
  font-size: 10.5px;
  color: var(--tkt-muted);
  line-height: 1.3;
}

/* UPI Payment Box */
.app-upi-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.app-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.app-qr-img {
  width: 105px;
  height: 105px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  border: 2px solid var(--tkt-cyan);
  display: block;
}

.app-qr-fallback {
  width: 105px;
  height: 105px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-qr-caption {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--tkt-cyan);
  margin-top: 4px;
}

.app-bank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.app-upi-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-upi-label {
  font-size: 11px;
  color: var(--tkt-muted);
}

.app-upi-text {
  font-size: 13px;
  font-family: monospace;
  color: #fff;
}

.btn-copy-tag {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--tkt-cyan);
  color: var(--tkt-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-tag:hover {
  background: var(--tkt-cyan);
  color: #080b17;
}

.app-bank-meta {
  font-size: 11px;
  color: var(--tkt-muted);
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

.app-bank-meta strong {
  color: #f1f5f9;
}

/* File Picker */
.app-file-picker input[type="file"] {
  width: 100%;
  font-size: 12px;
  padding: 8px 10px;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--tkt-muted);
  box-sizing: border-box;
}

/* Verification Notice */
.app-verification-notice {
  background: rgba(242, 196, 75, 0.08);
  border-left: 3px solid var(--tkt-gold);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Sticky Checkout Bottom Action */
.app-checkout-bottom-dock {
  margin-top: 10px;
  position: sticky;
  bottom: -24px;
  background: #0b1122;
  padding: 12px 0 18px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 30px rgba(5, 9, 20, 0.9);
  z-index: 20;
}

.btn-app-submit {
  width: 100% !important;
  min-height: 52px !important;
  height: 52px !important;
  background: linear-gradient(135deg, #00f0ff 0%, #00d26a 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #060b17 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4) !important;
  transition: all 0.2s ease !important;
}

.btn-app-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6) !important;
}

.btn-app-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.app-error-alert {
  background: rgba(255, 0, 85, 0.15);
  border: 1px solid var(--tkt-pink);
  color: #ff6b8b;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
}

/* Mobile Screens (Native App Sheet) */
@media (max-width: 680px) {
  .tkt-container {
    padding: 14px 10px 80px !important;
  }

  .tkt-header {
    margin-bottom: 16px !important;
    padding: 0 4px !important;
  }

  .tkt-badge-league {
    font-size: 9.5px !important;
    letter-spacing: 0.5px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    white-space: normal !important;
  }

  .tkt-title {
    font-size: 20px !important;
    margin: 4px 0 6px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }

  .tkt-subtitle {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    margin: 0 auto 12px !important;
    max-width: 100% !important;
  }

  /* Single-row sleek mobile stepper */
  .tkt-steps {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 3px !important;
    flex-wrap: nowrap !important;
    margin: 10px 0 14px !important;
    padding: 6px 8px !important;
    background: rgba(14, 21, 38, 0.75) !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
  }

  .tkt-step-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    border: none !important;
    background: transparent !important;
  }

  .tkt-step-item.active {
    background: rgba(0, 240, 255, 0.16) !important;
    border: 1px solid var(--tkt-cyan) !important;
    box-shadow: none !important;
  }

  .tkt-step-num {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }

  .tkt-step-sep {
    font-size: 11px !important;
    opacity: 0.4 !important;
  }

  .step-full {
    display: none !important;
  }

  dialog.guest-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
  }

  .mobile-sheet-handle {
    display: block;
  }

  form.app-form-flow {
    padding: 12px 14px 20px !important;
    gap: 12px !important;
  }

  .app-checkout-bottom-dock {
    bottom: -20px;
    padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .app-field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-upi-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-upi-copy-row {
    justify-content: center;
  }

  .app-bank-meta {
    text-align: left;
  }

  dialog.seat-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .seat-modal .modal-header {
    flex: 0 0 auto !important;
    padding: 12px 14px !important;
  }

  .seat-modal .modal-title {
    font-size: 16px !important;
  }

  .seat-modal .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 12px !important;
  }

  .seat-modal .modal-footer {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 60 !important;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    background: #090e1d !important;
    border-top: 1px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.95) !important;
    gap: 8px !important;
  }

  .seat-grid {
    gap: 4px;
    min-width: 320px;
  }

  .seat-btn {
    min-height: 30px;
    font-size: 10px;
  }

  .btn-modal-continue {
    min-height: 48px !important;
    font-size: 14px !important;
  }

  .tkt-bottom-dock {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tkt-bottom-dock .dock-right {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .dock-actions {
    display: flex !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
  }

  .dock-btn-checkout {
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .dock-btn-edit {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}
