/* ─────────────────────────────────────────
   YOLCU PRO – style.css
   Mobile-first, modern minimal design
───────────────────────────────────────── */

:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #eff6ff;
  --success:        #16a34a;
  --success-light:  #f0fdf4;
  --danger:         #dc2626;
  --danger-light:   #fef2f2;
  --warning:        #d97706;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-300:       #cbd5e1;
  --gray-400:       #94a3b8;
  --gray-500:       #64748b;
  --gray-600:       #475569;
  --gray-700:       #334155;
  --gray-800:       #1e293b;
  --gray-900:       #0f172a;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);
  --header-h:       60px;
  --safe-top:       env(safe-area-inset-top, 0px);
  --header-offset:  14px;
  --seat-size:      52px;
  --seat-gap:       8px;
  --font:           'Inter', system-ui, sans-serif;
  --transition:     .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #111827; }
body {
  font-family: var(--font);
  background: #e2e8f0;
  color: var(--gray-800);
  min-height: 100vh;
  padding-top: 0;
  -webkit-font-smoothing: antialiased;
  max-width: 414px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,.15);
}
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
a { text-decoration: none; color: inherit; }

/* ── Header ── */
.app-header {
  position: fixed;
  top: 0; 
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  z-index: 100;
  background: #162234;
  padding-top: var(--safe-top);
  border-bottom: 1px solid rgba(0, 243, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.22), 0 6px 18px rgba(15, 23, 42, 0.22);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  position: relative;
}
.header-left {
  display: flex;
  align-items: center;
  width: 110px;
}
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
}
.btn-back:hover { background: var(--gray-100); color: var(--gray-900); }
.greeting-bar {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #003180, #001a45);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--gray-800);
  letter-spacing: -.02em;
  flex: 1;
}
.header-logo .logo-icon { font-size: 1.3rem; }
.header-logo .logo-text strong { color: var(--primary); }
.header-logo-img {
  display: block;
  width: min(132px, 38vw);
  max-height: 30px;
  height: auto;
  object-fit: contain;
  filter: none;
}
.public-logo {
  display: block;
  width: min(150px, 44vw);
  height: auto;
  margin: 0 auto;
  filter: brightness(0);
}
body.public-active .public-logo {
  width: min(176px, 52vw);
  max-height: 42px;
  object-fit: contain;
  filter: none;
}

.settings-dropdown {
  position: relative;
  width: 110px;
  display: flex;
  justify-content: flex-end;
}
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: #e2e8f0;
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: rgba(255,255,255,0.08); color: #fff; }
.settings-menu {
  position: absolute;
  top: 45px;
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  width: 180px;
  z-index: 200;
  overflow: hidden;
}
.settings-menu button {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.1s;
}
.settings-menu button:last-child { border-bottom: none; }
.settings-menu button:hover { background: var(--gray-50); }
.settings-menu .text-danger { color: var(--danger); }
.settings-menu .menu-label {
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gray-400);
  text-transform: uppercase;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  letter-spacing: 0.05em;
}

/* ── View system ── */
.view {
  display: none;
  padding: calc(var(--header-h) + var(--safe-top) + var(--header-offset)) 0 30px;
}
.view.active { display: block; }
.container { max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* ── Home hero ── */
.home-hero { margin-bottom: 24px; }
.home-hero h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gray-900);
  line-height: 1.2;
}
.hero-sub { color: var(--gray-500); font-size: .9rem; margin-top: 4px; }

/* ── Tour cards ── */
.tour-list { display: flex; flex-direction: column; gap: 12px; }
.tour-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.24), inset 0 0 10px rgba(0, 243, 255, 0.05);
  border: 1px solid #00f3ff;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.tour-card:hover { box-shadow: 0 0 20px rgba(0, 243, 255, 0.36), inset 0 0 10px rgba(0, 243, 255, 0.08); transform: translateY(-1px); }
.tour-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.tour-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.tour-card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tour-card-info { flex: 1; min-width: 0; }
.tour-card-name {
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gray-900);
}
.tour-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tour-card-meta span {
  font-size: .88rem;
  font-weight: 650;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 3px;
}
.tour-occupancy {
  font-size: .78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: #fffbeb;
  color: var(--warning);
  flex-shrink: 0;
}
.tour-occupancy.full { background: var(--success-light); color: var(--success); }
.tour-card-chevron {
  color: var(--gray-300);
  flex-shrink: 0;
}
.tour-edit-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  color: var(--gray-400);
  transition: all var(--transition);
  z-index: 2;
  border: 1px solid var(--gray-200);
}
.tour-edit-btn svg { width: 14px; height: 14px; }
.tour-edit-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #bfdbfe;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  margin-top: 20px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}
.empty-state p {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.empty-state small {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.4;
  display: block;
}

/* ── FAB Button ── */
.btn-fab {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 207px - 20px);
  transform: translateX(-100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px 0 16px;
  height: 52px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  border-radius: 26px;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.42);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 50;
}
.btn-fab:hover { background: linear-gradient(135deg, #7dd3fc, #38bdf8); transform: translateX(-100%) translateY(-2px); box-shadow: 0 6px 24px rgba(56, 189, 248, 0.55); }
.btn-fab:active { transform: translateX(-100%) translateY(0); }

@media (max-width: 414px) {
  .btn-fab {
    left: auto;
    right: 20px;
    transform: none;
  }
  .btn-fab:hover { transform: translateY(-2px); }
  .btn-fab:active { transform: translateY(0); }
}

/* ── Tour detail header (Modern Card) ── */
.tour-detail-header {
  background: #fff;
  padding: 16px 16px;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.35), 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid #ff6600;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tdc-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tour-detail-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gray-900);
  line-height: 1.2;
}
.tour-detail-meta-minimal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  border: 1px solid var(--gray-100);
}
.meta-item svg {
  color: var(--primary);
  width: 16px; height: 16px;
}
.tdc-badge {
  display: flex;
  justify-content: center;
  width: 100%;
}
.tour-detail-notes {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  line-height: 1.5;
}

/* ── Vehicle wrapper ── */
.vehicle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.vehicle-body {
  background: #fff;
  border: 4px solid #475569;
  border-radius: 30px 30px 20px 20px;
  padding: 20px 20px 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15), inset 0 0 0 2px #cbd5e1;
  position: relative;
  min-width: 240px;
}

.vehicle-front-cap {
  background: linear-gradient(to bottom, #1e293b, #334155);
  height: 32px;
  border-radius: 20px 20px 0 0;
  margin: -20px -20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid #0f172a;
}
.vehicle-front-cap::before, .vehicle-front-cap::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 24px;
  height: 8px;
  background: #fef08a;
  border-radius: 10px;
  box-shadow: 0 0 12px #fde047, inset 0 0 4px #ca8a04;
}
.vehicle-front-cap::before { left: 16px; }
.vehicle-front-cap::after { right: 16px; }
.vehicle-front-cap .cap-text {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .25em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.vehicle-back-cap {
  background: linear-gradient(to top, #1e293b, #334155);
  height: 28px;
  border-radius: 0 0 16px 16px;
  margin: 16px -20px -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-top: 2px solid #0f172a;
}
.vehicle-back-cap::before, .vehicle-back-cap::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 28px;
  height: 6px;
  background: #ef4444;
  border-radius: 4px;
  box-shadow: 0 0 10px #dc2626, inset 0 0 4px #991b1b;
}
.vehicle-back-cap::before { left: 16px; }
.vehicle-back-cap::after { right: 16px; }
.vehicle-back-cap .cap-text {
  color: rgba(255,255,255,0.7);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .25em;
}

/* ── Seat rows ── */
.seat-row {
  display: flex;
  align-items: center;
  gap: var(--seat-gap);
  margin-bottom: var(--seat-gap);
}
.seat-row:last-child { margin-bottom: 0; }
.aisle { width: 22px; flex-shrink: 0; flex-grow: 1; }
.seat-spacer { width: var(--seat-size); height: var(--seat-size); flex-shrink: 0; }

/* ── Seats ── */
.seat {
  width: var(--seat-size);
  height: var(--seat-size);
  border-radius: 8px 8px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 700;
  cursor: default;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  line-height: 1.2;
}
.seat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  pointer-events: none;
}
.seat.seat-empty {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), inset 0 -3px 0 #e2e8f0;
}
.seat.seat-occupied {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  border: 1px solid #1d4ed8;
  color: #fff;
  box-shadow: 0 3px 8px rgba(37,99,235,0.25), inset 0 -3px 0 rgba(0,0,0,0.15);
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.seat.seat-driver {
  background: linear-gradient(145deg, #475569, #334155);
  border: 1px solid #1e293b;
  color: #e2e8f0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15), inset 0 -3px 0 rgba(0,0,0,0.2);
  cursor: default;
}
.seat.seat-door {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  color: #94a3b8;
  box-shadow: none;
  cursor: default;
}
.seat.seat-door::before { display: none; }
.seat.clickable { cursor: pointer; }
.seat.clickable:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 2;
  filter: brightness(1.05);
}
.seat.clickable.seat-occupied:hover {
  filter: brightness(1.1);
}
.seat-num { font-size: .75rem; font-weight: 800; line-height: 1; margin-bottom: 2px; }
.seat-label { 
  font-size: .55rem; 
  font-weight: 600; 
  width: 100%; 
  overflow: hidden; 
  text-align: center; 
  line-height: 1.1; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;
}

/* ── Back row (special) ── */
.back-row-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

/* ── Seat count badge ── */
.seat-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.seat-count-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.seat-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.seat-badge-numbers {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.seat-count-num {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}
.seat-count-sep {
  font-weight: 500;
  opacity: 0.5;
  font-size: 0.9rem;
  margin: 0 2px;
}
.seat-count-total {
  font-weight: 700;
  font-size: 1rem;
}
.seat-count-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.seat-badge-green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.seat-badge-orange {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
  border: 1px solid #fde68a;
}
.seat-badge-red {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ── Tour admin tools ── */
.tour-admin-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.tour-tools-row {
  display: flex;
  gap: 10px;
}
.btn-tool {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-tool:active { transform: scale(0.97); }
.btn-tool:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}
.btn-tool-link {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.btn-tool-link:hover {
  background: #dbeafe;
}
.btn-tool-insurance {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-tool-insurance:hover {
  background: var(--gray-200);
}

/* ── Link copy toast ── */
.copy-link-toast {
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.copy-link-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Public view page ── */
body.public-active {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5edf7;
  padding-top: 0;
  min-height: 100vh;
}
.public-container {
  position: relative;
  text-align: center;
  min-height: 100vh;
  padding: 0 16px 34px;
}
.public-brand {
  position: sticky;
  top: 0;
  z-index: 30;
  text-align: center;
  margin: 0 -16px 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 15px) 16px 14px;
  background: rgba(17, 24, 39, .96);
  border-bottom: 1px solid rgba(125, 211, 252, .24);
  box-shadow: 0 10px 26px rgba(2, 6, 23, .34), 0 0 16px rgba(56, 189, 248, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.public-header {
  max-width: 340px;
  margin: 0 auto 26px;
  text-align: left;
}
.public-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 12px rgba(255,255,255,.48), 0 0 24px rgba(125, 211, 252, .28);
}
.public-welcome {
  font-size: .95rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 8px;
}
.public-info-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  max-width: 100%;
}
.public-info-row,
.public-vehicle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(125, 211, 252, .48);
  border-radius: 12px;
  background: rgba(15, 23, 42, .58);
  box-shadow: 0 0 14px rgba(56, 189, 248, .22), inset 0 1px 0 rgba(255,255,255,.06);
}
.public-info-label {
  color: #38bdf8;
  font-size: .82rem;
  font-weight: 800;
}
.public-info-value,
.public-vehicle-text {
  color: #f8fafc;
  font-size: .95rem;
  font-weight: 750;
}
.public-vehicle-icon {
  color: #38bdf8;
  display: inline-flex;
}
.public-vehicle-icon svg {
  width: 18px;
  height: 18px;
}
.public-seat-count {
  display: flex;
  justify-content: center;
  margin: 18px auto 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.22);
}
body.public-active .vehicle-wrapper {
  margin-bottom: 20px;
}
body.public-active .vehicle-body {
  border-color: rgba(248, 250, 252, .78);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 28px rgba(255,255,255,.34), 0 18px 38px rgba(0,0,0,.28), inset 0 0 0 2px #cbd5e1;
}
body.public-active .public-created-footer {
  padding-top: 12px;
  color: rgba(255,255,255,.72);
}
body.public-active .public-created-footer .footer-text {
  color: rgba(255,255,255,.72);
}
body.public-active .public-created-footer .fcx-logo {
  filter: none;
}
.public-footer {
  margin-top: 20px;
  font-size: .78rem;
  color: var(--gray-400);
  text-align: center;
}

/* ── Insurance view ── */
.insurance-header { margin-bottom: 20px; }
.insurance-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gray-900);
}
.insurance-sub { color: var(--gray-500); font-size: .88rem; margin-top: 4px; }
.insurance-actions { margin-bottom: 16px; }
.insurance-list-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.insurance-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 14px;
}
.insurance-row:last-child { border-bottom: none; }
.ins-seat {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ins-info { flex: 1; min-width: 0; }
.ins-name { font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.ins-tc { font-size: .78rem; color: var(--gray-500); font-family: monospace; }
.ins-no-tc { font-size: .75rem; color: var(--gray-400); font-style: italic; }
.insurance-empty {
  padding: 40px;
  text-align: center;
  color: var(--gray-400);
  font-size: .9rem;
}
.copy-success {
  margin-top: 12px;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--success);
  opacity: 0;
  transition: opacity .3s;
}
.copy-success.show { opacity: 1; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 40px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 40px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-danger:hover { background: #b91c1c; }
.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 40px;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid #fecaca;
  transition: background var(--transition);
}
.btn-danger-outline:hover { background: #fee2e2; }
.full-width { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-800);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; }
.form-error {
  font-size: .8rem;
  color: var(--danger);
  font-weight: 500;
  min-height: 18px;
}

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  padding: 16px;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 414px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}
.modal-sm { border-radius: var(--radius-lg); max-height: 60vh; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-bottom: 16px;
}
.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}
.modal-close {
  width: 30px; height: 30px;
  border-radius: 6px;
  color: var(--gray-500);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-100); }
.modal-body { padding: 0 20px; }
.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 20px 24px;
  margin-top: 8px;
}

/* ── Seat info badge ── */
.seat-info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Passenger delete btn in modal footer ── */
.btn-danger-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 40px;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid #fecaca;
  transition: background var(--transition);
}
.btn-danger-sm:hover { background: #fee2e2; }

/* ── Animations ── */
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ── */
@media (min-width: 480px) {
  .modal { border-radius: var(--radius-lg); }
  .modal-overlay { align-items: center; }
}
@media (max-width: 340px) {
  :root { --seat-size: 36px; --seat-gap: 4px; }
}

/* ── Footer ── */
.app-footer {
  text-align: center;
  padding: 10px 16px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.footer-text {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}
.fcx-logo {
  height: 32px;
  /* Convert white to anthracite (dark gray) using filters */
  filter: brightness(0.25) contrast(1.1) drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* ── Premium Login Screen ── */
body.login-active {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding-top: 0; /* remove header padding */
  max-width: 100%;
  margin: 0;
  box-shadow: none;
}
body.login-active .view {
  padding-top: 0;
}
body.login-active .app-footer {
  display: none !important;
}
.app-header.hidden {
  display: none !important;
}

.login-container {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #00f3ff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 10px rgba(0, 243, 255, 0.1);
  animation: fadeScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-logo {
  display: block;
  width: min(230px, 78%);
  height: auto;
  max-height: 46px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: none;
}

.login-subtitle {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 32px;
  font-weight: 500;
}

.login-card .form-group input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.login-card .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: normal;
}

.login-card .form-group input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  outline: none;
}

.login-btn {
  margin-top: 24px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.6);
}

@keyframes fadeScaleIn {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
