
/* =========================================================
   Pure HTML/CSS (no Bootstrap, no Tailwind)
   Mobile-first, clean, Bangla-friendly, light-red accent
   ========================================================= */
:root{
  --bg:#ffffff;
  --bg2:#fafafa;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --accent:#ff4d4f;      /* light red */
  --accent2:#ffe7e8;     /* light red tint */
  --ok:#16a34a;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 10px 25px rgba(0,0,0,.06);
  --radius:16px;
  --radius2:12px;
  --max: 1040px;
  --tap: 44px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans Bengali", "Hind Siliguri", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:linear-gradient(180deg,var(--bg2),var(--bg));
}

a{ color:inherit; text-decoration:none; }
small{ color:var(--muted); }
img{ max-width:100%; display:block; }

/* Layout */
.container{ width:100%; max-width:var(--max); margin:0 auto; padding:16px; }
.page{ padding-bottom:92px; } /* room for sticky bar on some pages */

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar .row{
  display:flex; align-items:center; gap:12px;
  min-height:56px;
}
.iconbtn{
  width:44px; height:44px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  display:grid; place-items:center;
  cursor:pointer;
}
.iconbtn:active{ transform: translateY(1px); }
.titlewrap{ flex:1; }
.title{ font-size:16px; font-weight:800; line-height:1.15; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  background:var(--accent2);
  color:#9f1239;
  border:1px solid #ffd1d2;
}

/* Cards & common UI */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.card.pad{ padding:14px; }
.card + .card{ margin-top:12px; }
.sectiontitle{
  font-size:14px;
  font-weight:800;
  margin:0 0 10px 0;
}
.muted{ color:var(--muted); }
.hr{ height:1px; background:var(--border); margin:12px 0; }

/* Buttons */
.btn{
  min-height:var(--tap);
  border-radius:14px;
  border:1px solid var(--border);
  padding:10px 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
  cursor:pointer;
  background:#fff;
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:white;
}
.btn.primary:hover{ filter: brightness(.98); }
.btn.ghost{
  background:transparent;
}
.btn.block{ width:100%; }

.input, .select{
  width:100%;
  min-height:var(--tap);
  border-radius:14px;
  border:1px solid var(--border);
  padding:10px 12px;
  background:#fff;
  outline:none;
  font:inherit;
}
.input:focus, .select:focus{
  border-color:#ffb4b6;
  box-shadow:0 0 0 4px rgba(255,77,79,.10);
}
.label{ font-size:12px; font-weight:800; margin:12px 0 6px; display:block; }
.row{ display:flex; gap:12px; }
.col{ flex:1; }
.help{ font-size:12px; color:var(--muted); margin-top:6px; }

/* Chips */
.chips{ display:flex; gap:10px; overflow:auto; padding-bottom:4px; }
.chip{
  white-space:nowrap;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
  font-size:12px;
}
.chip.active{
  border-color:#ffb4b6;
  background:var(--accent2);
  color:#9f1239;
}

/* Legend */
.legend{ display:flex; flex-wrap:wrap; gap:10px; }
.legend .item{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:800; color:var(--muted); }
.dot{ width:12px; height:12px; border-radius:999px; border:1px solid var(--border); }
.dot.available{ background:#fff; }
.dot.selected{ background:var(--accent); border-color:var(--accent); }
.dot.booked{ background:#111827; border-color:#111827; }
.dot.held{ background:var(--warn); border-color:var(--warn); }

/* Seat grid */
.seatwrap{ overflow:auto; padding:6px; border-radius:var(--radius2); border:1px dashed #f0c2c3; background: #fff; }
.seatgrid{
  display:grid;
  grid-auto-rows: 42px;
  gap:10px;
  padding:10px;
  min-width: 320px;
}
.seat{
  border-radius:12px;
  border:1px solid var(--border);
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:12px;
  background:#fff;
  user-select:none;
  cursor:pointer;
  min-width:42px;
  height:42px;
}
.seat.empty{ background:transparent; border:0; cursor:default; }
.seat.aisle{ background:transparent; border:1px dashed var(--border); cursor:default; opacity:.55; }
.seat.selected{ background:var(--accent); border-color:var(--accent); color:#fff; }
.seat.booked{ background:#111827; border-color:#111827; color:#fff; cursor:not-allowed; opacity:.95; }
.seat.held{ background:var(--warn); border-color:var(--warn); color:#111827; cursor:not-allowed; }
.seat:active{ transform: translateY(1px); }

/* Sticky checkout bar */
.stickybar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top:1px solid var(--border);
}
.stickybar .inner{
  max-width:var(--max);
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.stickybar .summary{ flex:1; min-width:0; }
.stickybar .summary .line1{ font-weight:900; font-size:12px; }
.stickybar .summary .line2{ color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Ticket actions grid */
.actiongrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.actiongrid .btn{ font-size:12px; }

/* Tables (for simple lists) */
.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:13px;
}
.table th{ background:#fcfcfc; font-weight:900; }
.table tr:last-child td{ border-bottom:0; }

/* Auth card alignment */
.centerwrap{
  min-height: calc(100vh - 56px);
  display:grid;
  place-items:center;
  padding:16px;
}
.authcard{ width:min(520px, 100%); }

/* Desktop tweaks */
@media (min-width: 920px){
  .page{ padding-bottom:24px; }
  .actiongrid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
