@font-face {
  font-family: 'Yatra One';
  src: url(/assets/fonts/yatra-one-latin-400-normal.woff2) format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'Yatra One';
  src: url(/assets/fonts/yatra-one-devanagari-400-normal.woff2) format('woff2');
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  color-scheme: light;
  --rani: #B0185A;
  --rani-dark: #8C1047;
  --rani-wash: #FBEFF4;
  --genda: #F2A007;
  --genda-wash: #FFF4D6;
  --patti: #1F7A3A;
  --patti-wash: #E6F3E9;
  --ink: #2B1D24;
  --muted: #6E5F66;
  --line: #ECE1E6;
  --paper: #FFFFFF;
  --wash: #FAF6F8;
  --danger: #B42318;
  --danger-wash: #FDECEA;
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --display: "Yatra One", var(--font);
  --bar-shadow: 0 -8px 24px rgba(43, 29, 36, 0.12);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rani); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--genda); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--rani); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color .15s;
}
.btn:hover { background: var(--rani-dark); }
.btn:disabled { background: #D8C7CF; color: #fff; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--rani); border: 1.5px solid var(--rani); }
.btn.ghost:hover { background: var(--rani-wash); }
.btn.green { background: var(--patti); }
.btn.green:hover { background: #17612D; }
.btn.wa { background: #1F8F4E; }
.btn.wa:hover { background: #18733E; }
.btn.quiet { background: var(--wash); color: var(--ink); border: 1px solid var(--line); }
.btn.quiet:hover { background: #F2EAEE; }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid #F1C7C3; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .label { font-weight: 650; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); font-size: 16px;
}
.textarea { min-height: 76px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--rani); outline: none; box-shadow: 0 0 0 3px var(--rani-wash); }
.input.bad, .select.bad, .textarea.bad { border-color: var(--danger); }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.prefix { display: flex; align-items: stretch; }
.prefix > span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--wash); color: var(--muted); font-weight: 600; }
.prefix > .input { border-radius: 0 12px 12px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.chip[aria-pressed="true"], .chip.on { border-color: var(--rani); background: var(--rani-wash); color: var(--rani-dark); }

.option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer;
}
.option input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--rani); flex: none; }
.option:has(input:checked) { border-color: var(--rani); background: var(--rani-wash); }
.option.disabled { opacity: .5; cursor: not-allowed; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--wash); color: var(--muted); }
.pill.open, .pill.delivered { background: var(--patti-wash); color: var(--patti); }
.pill.closed, .pill.cancelled { background: var(--danger-wash); color: var(--danger); }
.pill.placed { background: var(--genda-wash); color: #7A4F00; }
.pill.confirmed, .pill.packing { background: #EAF0FB; color: #2D4C8C; }
.pill.out_for_delivery { background: var(--rani-wash); color: var(--rani-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Shared blocks (site and admin) */
.notice { margin: 4px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--genda-wash); color: #5C3B00; font-size: 14px; font-weight: 600; }
.notice.red { background: var(--danger-wash); color: var(--danger); }
.empty { text-align: left; padding: 22px 18px; margin: 10px 0; border-radius: 16px; background: var(--wash); border: 1.5px dashed var(--line); }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.empty .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.skel { background: linear-gradient(90deg, #F3ECEF 25%, #FAF6F8 37%, #F3ECEF 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 12px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--safe-b));
  z-index: 60; max-width: min(92vw, 460px);
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* Sheet (in-page confirm) */
.scrim { position: fixed; inset: 0; background: rgba(43, 29, 36, .45); z-index: 70; display: grid; align-items: end; justify-items: center; }
.sheet { width: 100%; max-width: 520px; background: var(--paper); border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + var(--safe-b)); }
.sheet h2 { font-size: 19px; margin-bottom: 6px; }
.sheet .row { display: grid; gap: 10px; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
