/* tickets.css — PAX Bengaluru ticketing module */

/* ═══ BASE ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ═══ AUTH LOADER ═══ */
#auth-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#auth-loader.hidden { display: none; }

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #1a1a1a;
  border-top-color: #00CC00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-spinner.small { width: 28px; height: 28px; }

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text { color: #888; font-size: 14px; font-weight: 500; }

/* ═══ TOAST ═══ */
#toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 40px);
  max-width: 360px;
}

.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: toastIn 0.25s ease;
  pointer-events: none;
  width: 100%;
}

.toast.success { background: #00CC00; color: #000; }
.toast.error   { background: #ff4444; color: #fff; }
.toast.info    { background: #1a1a1a; color: #fff; border: 1px solid #333; }
.toast.out     { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn  { from { opacity: 0; transform: scale(0.93); } to { opacity: 1; transform: scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.93); } }

/* ═══ SCREENS ═══ */
.screen {
  display: none;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}


.screen.active { display: flex; }

/* ═══ HEADERS ═══ */
.screen-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.screen-header > :first-child,
.screen-header-simple > :first-child {
  justify-self: start;
}

.screen-header > :last-child,
.screen-header-simple > :last-child {
  justify-self: end;
}

.screen-header-simple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.seat-step-badge {
  font-size: 12px;
  font-weight: 700;
  color: #00CC00;
  justify-self: end;
  letter-spacing: 0.05em;
}

.back-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  font-family: 'Inter', system-ui, sans-serif;
}

.back-link {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.screen-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

/* ═══ SCREEN CONTENT ═══ */
.screen-content {
  flex: 1;
  padding: 28px 20px;
  overflow-y: auto;
}

.screen-heading {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.screen-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}

/* ═══ SCREEN 1 — CITY ═══ */
.city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #131313;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color 180ms, background 180ms;
  max-width: 480px;
  box-shadow: 0 3px 0 0 #00CC00;
  margin-bottom: 14px;
}

.city-card:hover {
  border-color: #00CC00;
  background: #0d0d0d;
}

.city-card.city-card-soon {
  box-shadow: 0 3px 0 0 #2a2a2a;
  opacity: 0.55;
}

.city-card.city-card-soon:hover {
  border-color: #444;
  background: #131313;
  opacity: 0.7;
}

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

.city-venue {
  font-size: 13px;
  color: #888;
}

.city-card-arrow {
  font-size: 22px;
  color: #00CC00;
  font-weight: 700;
}

/* ═══ SCREEN 2 — DAY TABS ═══ */
.day-tabs {
  display: flex;
  border-bottom: 1px solid #1a1a1a;
  background: #0d0d0d;
  flex-shrink: 0;
}

.day-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  padding: 14px 4px;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  font-family: 'Inter', system-ui, sans-serif;
  transition: color 150ms, border-color 150ms;
}

.day-tab span { font-size: 11px; font-weight: 500; }
.day-tab.active { color: #00CC00; border-bottom-color: #00CC00; }

.combo-badge-row {
  padding: 16px 20px 8px;
  background: #000;
  flex-shrink: 0;
}

.combo-badge {
  display: inline-block;
  border: 1px solid #00CC00;
  color: #00CC00;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.combo-sub {
  font-size: 12px;
  color: #888;
}

.combo-perks {
  font-size: 12px;
  color: #aaa;
  background: #111;
  border-left: 3px solid #DD3333;
  margin: 0 20px 0;
  padding: 8px 12px;
  line-height: 1.5;
}

.movies-list {
  flex: 1;
  padding: 12px 20px;
  overflow-y: auto;
  background: #000;
  overflow-x: hidden;
}

#screen-day .day-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#screen-day .movies-list {
  flex: none;
}

@keyframes slideInFromRight {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInFromLeft {
  from { transform: translateX(-40px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.movies-list.anim-from-right { animation: slideInFromRight 220ms ease; }
.movies-list.anim-from-left  { animation: slideInFromLeft  220ms ease; }

.movie-card {
  display: flex;
  gap: 14px;
  background: #131313;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}

.movie-poster {
  width: 80px;
  height: 110px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  object-fit: cover;
}

.movie-info { flex: 1; min-width: 0; }

.movie-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  padding-right: 60px;
}

.movie-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.movie-desc-wrap {
  position: relative;
  margin-bottom: 8px;
}
.movie-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
.movie-desc-wrap.collapsed .movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-desc-toggle {
  font-size: 11px;
  color: #00CC00;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
/* collapsed: toggle floats right inline with a fade behind it */
.movie-desc-wrap.collapsed .movie-desc-toggle {
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(to right, transparent, #131313 28%);
  padding-left: 28px;
}
/* expanded: toggle sits on its own line below */
.movie-desc-wrap:not(.collapsed) .movie-desc-toggle {
  display: block;
  margin-top: 3px;
}

.movie-time {
  font-size: 13px;
  color: #ccc;
  font-weight: 600;
}

.movie-included-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,204,0,0.08);
  border: 1px solid rgba(0,204,0,0.25);
  color: #00CC00;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.screen-footer {
  padding: 14px 20px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid #1a1a1a;
  background: #000;
  flex-shrink: 0;
}

.btn-book-combo {
  width: 100%;
  background: linear-gradient(to bottom, #00CC00, #003300);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity 150ms;
}

.btn-book-combo:hover { opacity: 0.9; }

/* ═══ SCREEN 3 — COUNT ═══ */
.count-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.day-pill {
  background: #131313;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12px;
  color: #888;
  margin-bottom: 28px;
  width: 100%;
  text-align: center;
  line-height: 1.6;
}

.count-heading {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.count-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 32px;
}

.seat-counter {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 14px 20px;
}

.counter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #2a2a2a;
  background: #161616;
  color: #aaa;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 150ms, color 150ms, background 150ms;
  line-height: 1;
  flex-shrink: 0;
}

.counter-btn:hover:not(:disabled) { border-color: #00CC00; color: #00CC00; background: rgba(0,204,0,0.06); }
.counter-btn:active:not(:disabled) { background: rgba(0,204,0,0.12); }
.counter-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.counter-num {
  font-size: 42px;
  font-weight: 700;
  color: #00CC00;
  min-width: 56px;
  text-align: center;
  line-height: 1;
  letter-spacing: -1px;
}

.calc-row {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}


.btn-action-tickets {
  background: linear-gradient(to bottom, #00CC00, #003300);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity 150ms;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-action-tickets:hover { opacity: 0.9; }

.btn-choose-seats { width: 100%; max-width: 360px; }

/* ═══ SCREEN 4 — SEAT MAP ═══ */
.seat-screen-sub {
  padding: 8px 20px;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid #0d0d0d;
  background: #000;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #0d0d0d;
  background: #000;
  flex-wrap: wrap;
}

.step { color: #444; }
.step.active { color: #00CC00; }
.step.done { color: #00CC00; }
.step-line { color: #222; }

.screen-indicator {
  text-align: center;
  font-size: 11px;
  color: #00CC00;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  background: #050a05;
  border-bottom: 2px solid #00CC00;
  font-weight: 700;
}

/* ═══ SEAT SELECTION — TAB SWITCHER ═══ */
.seat-screen-tabs {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.seat-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #252525;
  background: #111;
  color: #555;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: background 150ms, border-color 150ms;
  min-width: 0;
}

.seat-tab-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  background: #1a1a1a;
  color: #555;
}

.seat-tab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.seat-tab-sub {
  font-size: 10px;
  color: #666;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Active — you're on this step */
.seat-tab-btn.seat-tab-active {
  border-color: #00CC00;
  background: rgba(0,204,0,0.06);
  color: #00CC00;
}

.seat-tab-btn.seat-tab-active .seat-tab-num {
  border-color: #00CC00;
  background: rgba(0,204,0,0.12);
  color: #00CC00;
}

/* Done — step completed, tap to go back */
.seat-tab-btn.seat-tab-done {
  border-color: #007a00;
  background: #050f05;
  color: #00CC00;
  cursor: pointer;
}

.seat-tab-btn.seat-tab-done .seat-tab-num {
  border-color: #00CC00;
  background: #00CC00;
  color: #000;
}

.seat-tab-btn.seat-tab-done:hover  { background: #071507; border-color: #00CC00; }
.seat-tab-btn.seat-tab-done:active { opacity: 0.7; }

.seat-tab-btn.seat-tab-ready {
  border-color: #00CC00; background: rgba(0,204,0,0.07); color: #00CC00; cursor: pointer; opacity: 1;
}
.seat-tab-btn.seat-tab-ready .seat-tab-num { border-color: #00CC00; color: #00CC00; }
.seat-tab-btn.seat-tab-ready:hover  { background: rgba(0,204,0,0.14); }
.seat-tab-btn.seat-tab-ready:active { opacity: 0.7; }

/* Next — not reached yet */
.seat-tab-btn.seat-tab-next { opacity: 0.4; }

/* ═══ SEAT SELECTION — STEP PROGRESS BAR (legacy, kept) ═══ */
.seat-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 24px;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.seat-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #444;
  min-width: 80px;
  text-align: center;
}

.seat-step-item.active { color: #00CC00; }
.seat-step-item.done   { color: #00CC00; }

.seat-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #000;
  color: #444;
}

.seat-step-item.active .seat-step-circle {
  border-color: #00CC00;
  color: #00CC00;
  background: rgba(0,204,0,0.08);
}

.seat-step-item.done .seat-step-circle {
  border-color: #00CC00;
  background: #00CC00;
  color: #000;
}

.seat-step-line {
  flex: 1;
  height: 2px;
  background: #222;
  margin: 0 8px;
  margin-bottom: 16px;
}

.seat-step-line.done { background: #00CC00; }

.seat-step-item.seat-step-back {
  cursor: pointer;
  transition: opacity 120ms;
}

.seat-step-item.seat-step-back:hover { opacity: 0.75; }

.seat-step-seats {
  font-size: 10px;
  color: #888;
  font-weight: 500;
  margin-top: -2px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══ SEAT SELECTION — MOVIE BANNER ═══ */
.seat-movie-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #050f05;
  border-bottom: 1px solid #0d260d;
  flex-shrink: 0;
}

.seat-movie-banner-2 {
  background: #050f05;
  border-bottom-color: #0d260d;
}

.smb-poster {
  width: 60px;
  height: 86px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
  border: 1px solid #222;
}

.smb-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.smb-poster-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.85;
}

.smb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.smb-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.smb-meta {
  font-size: 11px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.smb-when {
  font-size: 12px;
  font-weight: 600;
  color: #00CC00;
}

.smb-when-2 {
  color: #00CC00;
}

.smb-sep {
  color: #333;
}

.seat-screen-bar {
  text-align: center;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.15em;
  padding: 4px 0 16px;
  font-weight: 700;
  width: 100%;
}

.seat-map-wrapper {
  flex: 1;
  overflow: hidden;
  padding: 16px 12px;
  background: #000;
  display: flex;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.seat-map {
  display: inline-block;
  min-width: fit-content;
  will-change: transform;
  cursor: grab;
}

.seat-map:active {
  cursor: grabbing;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 5px;
}

.row-label {
  width: 18px;
  font-size: 10px;
  color: #444;
  text-align: right;
  flex-shrink: 0;
  margin-right: 4px;
  font-weight: 600;
}

.seat {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #1a3a1a;
  background: #040d04;
  color: #4a9a4a;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 80ms, border-color 80ms, box-shadow 80ms;
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.seat:hover:not(.occupied):not(.blocked):not(.selected) {
  border-color: #00CC00;
  background: #071507;
}

.seat.selected {
  background: #00CC00;
  border-color: #00CC00;
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(0, 204, 0, 0.45);
}

.seat.occupied, .seat.blocked {
  background: #1e1e1e;
  border-color: #505050;
  color: #555;
  cursor: not-allowed;
  pointer-events: none;
}

.seat-gap { width: 8px; flex-shrink: 0; }

.seat-legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 10px 16px;
  font-size: 11px;
  color: #888;
  border-top: 1px solid #0d0d0d;
  flex-wrap: wrap;
  background: #000;
  flex-shrink: 0;
}

.legend-item { display: flex; align-items: center; gap: 5px; }

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #2a2a2a;
}

.legend-dot.avail { background: #040d04; border-color: #1a3a1a; }
.legend-dot.occ   { background: #1e1e1e; border-color: #505050; color: #555; font-size: 8px; display: flex; align-items: center; justify-content: center; }
.legend-dot.sel   { background: #00CC00; border-color: #00CC00; }

.seat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid #1a1a1a;
  background: #000;
  gap: 12px;
  flex-shrink: 0;
}

.seat-count-text {
  font-size: 14px;
  color: #888;
  font-weight: 600;
}

.btn-proceed {
  background: linear-gradient(to bottom, #00CC00, #003300);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity 150ms;
  white-space: nowrap;
}

.btn-proceed:disabled { opacity: 0.35; cursor: not-allowed; }

/* ═══ SCREEN 5 — CHECKOUT ═══ */
.checkout-timer {
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #00CC00;
  background: #030803;
  border-bottom: 1px solid #0d0d0d;
}

.checkout-timer.urgent { color: #ff4444; }

.checkout-content {
  padding: 20px;
  overflow-y: auto;
}

.checkout-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.checkout-section-label {
  font-size: 10px;
  color: #555;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bm-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.bm-block:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.bm-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.bm-meta  { font-size: 12px; color: #888; margin-bottom: 4px; line-height: 1.5; }
.bm-time  { font-size: 13px; color: #bbb; margin-bottom: 10px; }

.bm-tickets-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 4px;
}

.bm-price { font-weight: 700; color: #fff; }
.bm-seats { font-size: 12px; color: #666; margin-top: 2px; }

/* Payment summary accordion */
.ps-row { margin-bottom: 4px; }

.ps-main-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ps-main-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-main-label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.ps-chevron {
  display: inline-block;
  font-size: 12px;
  color: #aaa;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
  line-height: 1;
}

.ps-row.open .ps-chevron { transform: rotate(-90deg); }

.ps-main-amt {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.ps-sub-lines {
  display: none;
  padding-bottom: 6px;
}

.ps-row.open .ps-sub-lines { display: block; }

.ps-sub-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
  padding: 3px 0;
}

.ps-divider {
  border: none;
  border-top: 1px solid #1a1a1a;
  margin: 8px 0 12px;
}

.ps-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  padding: 4px 0 2px;
}

.user-row { display: flex; gap: 12px; align-items: flex-start; }
.user-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.user-info { font-size: 13px; color: #888; line-height: 1.6; }

.checkout-footer {
  padding: 14px 20px;
  border-top: 1px solid #1a1a1a;
  background: #000;
}

.btn-pay {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity 150ms;
}

.btn-pay:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-pay:hover:not(:disabled) { opacity: 0.92; }

/* ═══ SCREEN 6 — SUCCESS ═══ */
.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  gap: 18px;
  text-align: center;
}

.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #00CC00;
  color: #000;
  font-size: 36px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkIn 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-heading { font-size: 26px; font-weight: 800; color: #fff; }

.booking-ref-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #131313;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 18px;
}

#booking-ref-text {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #00CC00;
  letter-spacing: 0.12em;
}

.copy-btn {
  background: none;
  border: 1px solid #333;
  color: #888;
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: color 150ms, border-color 150ms;
}

.copy-btn:hover { color: #00CC00; border-color: #00CC00; }

.success-summary {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 16px 18px;
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.success-show-row {
  font-size: 13px;
  color: #aaa;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
  line-height: 1.5;
}

.success-show-row:last-of-type { border-bottom: none; }
.success-show-row strong { color: #fff; display: block; margin-bottom: 2px; }

.success-meta {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
  line-height: 1.6;
}

.back-home-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms;
}

.back-home-link:hover { color: #888; }

/* ═══ SCREEN 7 — MY TICKETS ═══ */
#my-tickets-content {
  flex: 1;
  overflow-y: auto;
}

.tickets-loader {
  display: flex;
  justify-content: center;
  padding: 56px 0;
}

.ticket-card {
  border: 2px dashed #222;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  background: #060606;
  transition: border-color 200ms;
  cursor: default;
}

.ticket-card:hover { border-color: #00CC00; }

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a1a1a;
}

.ticket-brand { font-size: 11px; font-weight: 800; color: #fff; letter-spacing: 0.08em; }
.ticket-ref   { font-size: 11px; color: #666; font-family: 'Courier New', monospace; }

.ticket-show {
  padding: 10px 0;
  border-bottom: 1px dashed #1a1a1a;
}

.ticket-show:last-of-type { border-bottom: none; }

.ticket-show-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.ticket-show-time  { font-size: 12px; color: #888; }
.ticket-show-seats { font-size: 12px; color: #666; margin-top: 3px; }

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #1a1a1a;
}

.ticket-day-info { font-size: 12px; color: #888; margin-bottom: 4px; }
.ticket-amount   { font-size: 14px; font-weight: 700; color: #fff; }

.ticket-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #00CC00;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticket-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00CC00;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  text-align: center;
  gap: 10px;
}

.empty-title { font-size: 18px; font-weight: 700; color: #fff; }
.empty-sub   { font-size: 13px; color: #888; }

/* ═══ DESKTOP — 768px ═══ */
@media (min-width: 768px) {
  .seat { width: 34px; height: 34px; font-size: 10px; }
  .seat-row { gap: 5px; margin-bottom: 6px; }
  .seat-gap { width: 12px; }
  .row-label { font-size: 11px; }

  .movies-list,
  .checkout-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .screen-content { max-width: 600px; margin: 0 auto; width: 100%; }
  .count-content  { max-width: 400px; margin: 0 auto; width: 100%; }

  #my-tickets-content .ticket-list-inner { max-width: 600px; margin: 0 auto; }

  .screen-footer,
  .checkout-footer { max-width: 600px; margin: 0 auto; width: 100%; }

  /* Seat screens — center and constrain so tabs look like buttons, not stripes */
  .seat-screen-tabs {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    padding: 14px 0;
  }

  .seat-movie-banner {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .seat-legend {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .seat-footer {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  /* Slightly larger tab text on desktop for readability */
  .seat-tab-btn { font-size: 14px; padding: 12px 18px; }
  .seat-tab-num { width: 28px; height: 28px; font-size: 12px; }
}

/* ═══ DESKTOP — 1024px ═══ */
@media (min-width: 1024px) {
  .screen-content { max-width: 720px; }
  .movies-list,
  .checkout-content { max-width: 720px; }
  .city-card { max-width: 480px; }


  .seat-screen-tabs,
  .seat-movie-banner,
  .seat-legend,
  .seat-footer { max-width: 640px; }
}
