/* ==========================================================================
   Himalaya College — Pool Party Event | Participant Module Stylesheet
   Theme: primary WHITE surfaces, secondary BLUE (accents, links, buttons),
   tertiary ORANGE (highlights, badges) — pulled from the Himalaya College
   mark, with a wave motif and ripple badges throughout.
   ========================================================================== */

:root {
  /* --- Color tokens --- */
  --navy-900: #10345c;   /* primary text / dark blue */
  --navy-800: #16406e;
  --navy-700: #1c4a80;
  --pool-500: #2563eb;   /* secondary — blue accent (buttons, links, "water") */
  --pool-600: #1d4ed8;
  --pool-100: #dbe6fe;
  --sun-500:  #f5821f;   /* tertiary — orange accent pulled from the logo's sun */
  --sun-600:  #dd6f10;
  --cream-50: #fafbfd;   /* primary — near-white app background */
  --white:    #ffffff;   /* primary — pure white surfaces/cards */
  --ink-900:  #16202e;
  --ink-600:  #495566;
  --ink-400:  #8a94a3;
  --line-200: #e6eaf0;
  --success:  #1f9d55;
  --success-bg: #e8f8ee;
  --warn:     #d97706;
  --warn-bg:  #fef3e2;
  --danger:   #dc2626;
  --danger-bg:#fdecec;

  /* --- Type tokens --- */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* --- Layout tokens --- */
  --app-max: 480px;
  --topbar-h: 64px;
  --sidebar-w: 250px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 2px 14px rgba(12, 35, 64, 0.07);
  --shadow-pop: 0 10px 30px rgba(12, 35, 64, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* --- App frame: fixed sidebar (desktop) + off-canvas sidebar (mobile),
   matching the admin panel layout --- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--cream-50);
}

/* ==========================================================================
   Sidebar — logo, participant card, nav, logout
   ========================================================================== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--line-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 60;
  transition: transform .28s cubic-bezier(.2,.9,.3,1);
}

.sidebar-logo {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--line-200);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo img { max-width: 150px; height: auto; margin-right: 18px; }

.sidebar-close {
  display: none;
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px; flex-shrink: 0;
  border: none; background: var(--cream-50); color: var(--navy-900);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  cursor: pointer;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-200);
}
.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--pool-100); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-info .name { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info .role { font-size: 11px; color: var(--pool-600); text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { padding: 10px; overflow-y: auto; flex: 1; }
.sidebar-nav-group { margin-bottom: 6px; }
.sidebar-nav-label {
  font-size: 10.5px; font-weight: 700; color: var(--ink-400);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 12px 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-600);
  margin-bottom: 2px; border-left: 3px solid transparent;
}
.sidebar-subnav {
  padding-left: 20px; margin-bottom: 0;
  max-height: 0; overflow: hidden;
  transition: max-height .22s ease, margin-bottom .22s ease;
}
.sidebar-subnav.is-open { max-height: 220px; margin-bottom: 4px; }
.sidebar-sublink {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--ink-500);
  margin-bottom: 1px; border-left: 2px solid var(--line-200);
}
.sidebar-sublink .ic { font-size: 13px; }
.sidebar-sublink.is-active { color: var(--pool-600); font-weight: 700; border-left-color: var(--pool-500); background: var(--pool-100); }
.sidebar-link .ic { width: 20px; text-align: center; color: var(--pool-600); font-size: 16px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--cream-50); }
.sidebar-link.is-active { background: var(--pool-100); color: var(--navy-900); font-weight: 600; border-left-color: var(--sun-500); }
.sidebar-link.is-active .ic { color: var(--sun-500); }
.sidebar-link.has-children { position: relative; }
.sidebar-caret {
  margin-left: auto; font-size: 11px; color: var(--ink-400);
  transition: transform .2s ease; flex-shrink: 0;
  padding: 4px 6px; margin-right: -6px;
}
.sidebar-caret.is-rotated { transform: rotate(180deg); }

.sidebar-foot { padding: 14px; border-top: 1px solid var(--line-200); }
.sidebar-logout {
  width: 100%; padding: 11px; border-radius: var(--radius-sm);
  background: var(--danger-bg); color: var(--danger); border: none;
  font-weight: 600; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px;
}

.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(12,35,64,0.45);
  z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s ease;
  display: none;
}
.sidebar-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Main area (topbar + page content), offset by the sidebar width
   ========================================================================== */
.main-area {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line-200);
  color: var(--navy-900);
}

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: none; background: var(--cream-50);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--navy-900); position: relative; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy-900);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.topbar-title { display: flex; flex-direction: column; line-height: 1.15; flex: 1; min-width: 0; }
.topbar-title small { font-size: 11px; color: var(--pool-600); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.topbar-title strong { font-family: var(--font-body); font-size: 15.5px; font-weight: 500; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.cart-btn {
  position: relative;
  width: 40px; height: 40px;
  border: none; background: var(--cream-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900); flex-shrink: 0;
}
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--sun-500); color: #fff;
  font-size: 10.5px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--white);
}

.topbar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; border-radius: var(--radius-sm); padding: 4px; margin: -4px; }
.topbar-user:hover .topbar-avatar { box-shadow: 0 0 0 2px var(--pool-100); }
.welcome-txt { font-size: 13.5px; color: var(--ink-600); font-weight: 500; white-space: nowrap; }
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
}

/* ==========================================================================
   Responsive breakpoint — sidebar collapses to an off-canvas drawer,
   opened by the hamburger button
   ========================================================================== */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-104%);
    width: 78%; max-width: 300px;
    box-shadow: var(--shadow-pop);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .main-area { margin-left: 0; }
  .hamburger { display: flex; }
  .sidebar-close { display: flex; }
  .welcome-txt { display: none; }
}

@media (max-width: 480px) {
  .topbar { padding: 0 14px; }
}

/* ==========================================================================
   Shared building blocks
   ========================================================================== */
.page { padding: 22px 24px 40px; max-width: 900px; }
@media (max-width: 900px) {
  .page { padding: 18px 16px 32px; }
}
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pool-600); margin: 0 0 4px; }
.h1 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 0 0 4px; color: var(--navy-900); }
.sub { color: var(--ink-600); font-size: 13.5px; margin: 0 0 18px; }

.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 16px; margin-bottom: 14px;
  border: 1px solid var(--line-200);
}

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.pill.active, .pill.completed, .pill.paid, .pill.verified { background: var(--success-bg); color: var(--success); }
.pill.pending, .pill.preparing { background: var(--warn-bg); color: var(--warn); }
.pill.cancelled, .pill.failed { background: var(--danger-bg); color: var(--danger); }
.pill.ready, .pill.confirmed { background: var(--pool-100); color: var(--pool-600); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; padding: 13px 18px;
  width: 100%;
}
.btn-primary { background: var(--sun-500); color: #fff; }
.btn-primary:active { background: var(--sun-600); }
.btn-secondary { background: var(--navy-900); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line-200); }
.btn-block-row { display: flex; gap: 10px; }
.btn[disabled] { opacity: .5; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.stat-box {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-200);
  animation: statPopIn .5s cubic-bezier(.22,1,.36,1) backwards;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pool-500), var(--sun-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px -8px rgba(37, 99, 235, .25);
  border-color: var(--pool-100);
}
.stat-box:hover::before { transform: scaleX(1); }
.stat-box:nth-child(1) { animation-delay: .05s; }
.stat-box:nth-child(2) { animation-delay: .15s; }
.stat-box:nth-child(3) { animation-delay: .25s; }
.stat-box .num { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--navy-900); transition: color .25s ease, transform .25s ease; display: inline-block; }
.stat-box:hover .num { color: var(--pool-600); transform: scale(1.08); }
.stat-box .lbl { font-size: 10px; color: var(--ink-400); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }

@keyframes statPopIn {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-box { animation: none; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }
.section-head h2 { font-family: var(--font-display); font-size: 15.5px; margin: 0; color: var(--navy-900); }
.section-head a { font-size: 12.5px; color: var(--pool-600); font-weight: 600; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 4px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.quick-item .ic-wrap {
  width: 52px; height: 52px; border-radius: 16px; background: var(--pool-100);
  display: flex; align-items: center; justify-content: center; font-size: 21px; color: var(--pool-600);
}
.quick-item span { font-size: 10.5px; font-weight: 600; text-align: center; color: var(--ink-600); }

/* --- Ripple / pool motif for empty & hero states --- */
.ripple-badge {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: var(--pool-100); color: var(--pool-600);
  box-shadow: 0 0 0 8px rgba(18,164,194,0.08), 0 0 0 16px rgba(18,164,194,0.05);
}

/* --- Empty state --- */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state h3 { font-family: var(--font-display); font-size: 15.5px; margin: 4px 0 6px; color: var(--navy-900); }
.empty-state p { font-size: 13px; color: var(--ink-500); margin: 0 0 16px; }

/* ==========================================================================
   Menu page
   ========================================================================== */
.stall-scroll-wrap {
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  margin: 0 -24px 16px;
  padding: 10px 24px 4px;
  background: var(--cream-50);
}
.stall-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-behavior: smooth; }
.stall-scroll::-webkit-scrollbar { display: none; }
.stall-scroll-fade {
  position: absolute; top: 10px; bottom: 4px; width: 28px;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.stall-scroll-fade-l { left: 0; background: linear-gradient(to right, var(--cream-50), transparent); }
.stall-scroll-fade-r { right: 0; background: linear-gradient(to left, var(--cream-50), transparent); opacity: 1; }
.stall-scroll-fade.is-visible { opacity: 1; }
@media (max-width: 900px) {
  .stall-scroll-wrap { margin: 0 -16px 16px; padding: 10px 16px 4px; }
}
.stall-chip {
  flex-shrink: 0; padding: 9px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--white); border: 1px solid var(--line-200); color: var(--ink-600); white-space: nowrap;
}
.stall-chip.is-active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.diet-filter-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.diet-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--white); border: 1px solid var(--line-200); color: var(--ink-600);
}
.diet-chip.is-active.diet-chip-veg    { background: #ecfdf5; border-color: #34d399; color: #047857; }
.diet-chip.is-active.diet-chip-nonveg { background: #fef2f2; border-color: #f87171; color: #b91c1c; }
.diet-chip.is-active.diet-chip-drinks { background: var(--pool-100); border-color: var(--pool-500); color: var(--pool-600); }
.diet-chip.is-active.diet-chip-all    { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.menu-item { display: flex; gap: 12px; }
.menu-item .thumb {
  width: 62px; height: 62px; border-radius: var(--radius-sm); background: var(--pool-100);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.menu-item .info { flex: 1; min-width: 0; }
.menu-item .name { font-weight: 600; font-size: 14.5px; color: var(--navy-900); margin-bottom: 2px; }
.menu-item .desc { font-size: 12px; color: var(--ink-400); margin-bottom: 8px; line-height: 1.4; }
.menu-item .row-bottom { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-mono); font-weight: 700; color: var(--navy-900); font-size: 14px; }

.stepper { display: flex; align-items: center; gap: 10px; background: var(--pool-100); border-radius: 999px; padding: 4px; }
.stepper button {
  width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--white);
  color: var(--navy-900); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(12,35,64,0.15);
}
.stepper .qty { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; min-width: 14px; text-align: center; }
.add-btn {
  border: none; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px;
}

.stock-tag { font-size: 10.5px; font-weight: 700; color: var(--danger); }

/* Floating sticky cart summary bar on the menu page.
   Fixed (not sticky) so it always pins to the viewport bottom regardless
   of container scroll quirks; the spacer reserves matching space so the
   last menu cards are never hidden behind it. */
.sticky-cart-spacer { height: 88px; }
.sticky-cart {
  position: fixed; bottom: 16px;
  left: calc(50% + var(--sidebar-w) / 2); transform: translateX(-50%);
  width: calc(100% - var(--sidebar-w) - 32px); max-width: 460px;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-md);
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-pop); z-index: 45;
}
@media (max-width: 900px) {
  .sticky-cart {
    left: 50%;
    width: calc(100% - 32px);
  }
}
.sticky-cart .left { display: flex; flex-direction: column; }
.sticky-cart .left small { font-size: 10.5px; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.sticky-cart .left strong { font-family: var(--font-mono); font-size: 15px; }
.sticky-cart .go { background: var(--sun-500); color: #fff; border: none; padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Cart / Checkout
   ========================================================================== */
.cart-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-200); }
.cart-row:last-child { border-bottom: none; }
.cart-row .thumb { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--pool-100); display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .name { font-weight: 600; font-size: 13.5px; color: var(--navy-900); }
.cart-row .stall-name { font-size: 11px; color: var(--ink-400); }
.remove-link { font-size: 11px; color: var(--danger); font-weight: 600; margin-top: 4px; display: inline-block; }

.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-600); padding: 6px 0; }
.summary-row.total { font-size: 16px; font-weight: 700; color: var(--navy-900); border-top: 1px dashed var(--line-200); margin-top: 6px; padding-top: 12px; }
.summary-row .val { font-family: var(--font-mono); }

.pay-option { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1.5px solid var(--line-200); border-radius: var(--radius-md); margin-bottom: 10px; }
.pay-option.is-selected { border-color: var(--pool-500); background: var(--pool-100); }
.pay-option .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: var(--shadow-card); }
.pay-option .lbl { font-weight: 600; font-size: 13.5px; color: var(--navy-900); }
.pay-option .desc { font-size: 11.5px; color: var(--ink-400); }
.pay-option input { margin-left: auto; width: 18px; height: 18px; accent-color: var(--pool-600); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-600); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line-200); border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: 13.5px; font-family: inherit; background: var(--white); color: var(--ink-900);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pool-500); }

/* ==========================================================================
   Orders / Order details
   ========================================================================== */
.order-card { display: block; }
.order-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.order-card .order-no { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; color: var(--navy-900); }
.order-card .meta { font-size: 11.5px; color: var(--ink-400); margin-top: 2px; }
.order-card .items-line { font-size: 12.5px; color: var(--ink-600); margin-bottom: 10px; }
.order-card .bottom-row { display: flex; justify-content: space-between; align-items: center; }

.timeline { position: relative; padding-left: 26px; }
.timeline-step { position: relative; padding-bottom: 22px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: ""; position: absolute; left: -26px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--line-200); border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--line-200);
}
.timeline-step.is-done::before { background: var(--pool-500); box-shadow: 0 0 0 1.5px var(--pool-500); }
.timeline-step::after {
  content: ""; position: absolute; left: -20px; top: 16px; bottom: -6px; width: 2px; background: var(--line-200);
}
.timeline-step:last-child::after { display: none; }
.timeline-step .t-label { font-weight: 600; font-size: 13px; color: var(--navy-900); }
.timeline-step .t-time { font-size: 11px; color: var(--ink-400); margin-top: 1px; }

.detail-item-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line-200); }
.detail-item-row:last-child { border-bottom: none; }
.detail-item-row .qty-x { color: var(--ink-400); font-family: var(--font-mono); }

/* ==========================================================================
   QR pass
   ========================================================================== */
.poster-card {
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.poster-img { width: 100%; height: 660px; object-fit: contain; background: var(--cream-50); display: block; }

.qr-card {
  background: linear-gradient(160deg, var(--navy-900), var(--pool-600));
  border-radius: var(--radius-lg); padding: 22px; color: #fff; text-align: center; position: relative; overflow: hidden;
}
.qr-card::before, .qr-card::after {
  content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.12);
}
.qr-card::before { width: 180px; height: 180px; top: -60px; right: -60px; }
.qr-card::after { width: 260px; height: 260px; bottom: -120px; left: -80px; }
.qr-frame {
  width: 190px; height: 190px; background: #fff; border-radius: var(--radius-md); margin: 14px auto;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.qr-token { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; background: rgba(255,255,255,0.14); padding: 8px 12px; border-radius: 999px; display: inline-block; margin-top: 4px; }
.qr-status { font-size: 12px; opacity: .85; margin-top: 10px; }

.dashed-sep { border-top: 2px dashed var(--line-200); margin: 16px -16px; position: relative; }
.dashed-sep::before, .dashed-sep::after {
  content: ""; position: absolute; top: -9px; width: 18px; height: 18px; background: var(--cream-50); border-radius: 50%;
}
.dashed-sep::before { left: -9px; }
.dashed-sep::after { right: -9px; }

/* ==========================================================================
   Profile
   ========================================================================== */
.profile-hero { text-align: center; padding: 22px 16px 8px; }
.profile-avatar {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--pool-500), var(--navy-800));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  box-shadow: 0 0 0 5px var(--white), 0 4px 16px rgba(12,35,64,0.18);
}
.profile-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--navy-900); }
.profile-meta { font-size: 12.5px; color: var(--ink-400); margin-top: 2px; }

.info-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-200); font-size: 13.5px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--ink-400); }
.info-row .v { font-weight: 600; color: var(--navy-900); }

/* ==========================================================================
   Toast / flash
   ========================================================================== */
.flash {
  position: fixed; top: calc(var(--topbar-h) + 12px); left: 50%; transform: translateX(-50%);
  background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; z-index: 70; box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 8px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }


/* --- Enhanced Quick Actions for better mobile accessibility --- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-200);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100px;
  justify-content: center;
}

.quick-item:active {
  transform: scale(0.96);
}

.quick-item .ic-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--pool-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--pool-600);
  transition: background 0.2s ease;
}

.quick-item span {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-600);
}

/* Larger touch targets on mobile */
@media (max-width: 480px) {
  .quick-grid {
    gap: 12px;
  }
  
  .quick-item {
    padding: 20px 12px;
    min-height: 110px;
  }
  
  .quick-item .ic-wrap {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }
  
  .quick-item span {
    font-size: 14px;
  }
}

/* Hover state for desktop */
@media (hover: hover) {
  .quick-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: var(--pool-100);
  }
  
  .quick-item:hover .ic-wrap {
    background: var(--pool-500);
    color: #fff;
  }
}