* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #5bb8a0;
  --green-l: #eef6f4;
  --green-d: #3d9e87;
  --mint: #bfe7df;
  --coral: #e8562a;
  --bg: #eff6f3;
  --panel: rgba(248, 251, 249, 0.92);
  --panel-border: rgba(255, 255, 255, 0.74);
  --text: #1a1a1a;
  --muted: #8a8f8b;
  --border: #d9dfdc;
  --shadow: 0 26px 70px rgba(53, 91, 84, 0.16);
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.94) 0, rgba(255, 255, 255, 0.6) 18%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #f5f8f6 0, #d9ece7 7%, #bcded8 100%);
  font-family: "Fredoka One", cursive;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--text);
}

.app-shell {
  min-height: 100svh;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 18px 0;
}

.app-frame {
  width: min(100%, 620px);
  min-height: calc(100svh - 56px);
  background: linear-gradient(180deg, rgba(247, 250, 248, 0.96), rgba(240, 248, 245, 0.94));
  border: 1px solid var(--panel-border);
  border-radius: 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  padding-bottom: 126px;
}

.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.85), transparent 26%),
    radial-gradient(circle at 90% 14%, rgba(91, 184, 160, 0.12), transparent 20%);
  pointer-events: none;
}

.home-page,
.page {
  position: relative;
  z-index: 1;
}

.home-page {
  min-height: calc(100svh - 76px);
  padding: 30px 22px 24px;
}

.top-area {
  padding-top: 18px;
  position: relative;
}

.logo {
  display: block;
  text-align: center;
  font-size: clamp(44px, 8vw, 72px);
  color: var(--coral);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 2px solid rgba(205, 212, 208, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(132, 160, 152, 0.12);
}

.search svg {
  flex-shrink: 0;
  color: #a6aaa8;
}

.search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: "Fredoka One", cursive;
  font-size: 18px;
}

.search input::placeholder {
  color: #c2c3c3;
}

.lock-btn {
  position: absolute;
  top: -8px;
  right: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(119, 151, 145, 0.18);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.lock-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 34px;
}

.cat-card {
  width: 100%;
  min-height: 96px;
  padding: 20px 22px;
  border: none;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.02);
}

.cat-card:active {
  transform: scale(0.99);
}

.wm {
  position: absolute;
  left: 12px;
  bottom: 10px;
  opacity: 0.16;
  pointer-events: none;
}

.wm svg {
  width: 68px;
  height: 68px;
}

.cc {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #404347;
}

.cc svg {
  width: 24px;
  height: 24px;
}

.cc span {
  font-size: clamp(18px, 3.3vw, 22px);
}

.c1 {
  background: #fae79b;
}

.c2 {
  background: #9eddd5;
}

.c3 {
  background: #f7bea9;
}

.c4 {
  background: #fedb96;
}

.c5 {
  background: #eea4ba;
}

.c6 {
  background: #acdccc;
}

.page {
  display: none;
  min-height: calc(100svh - 56px);
  padding: 20px 22px 24px;
}

.page.show {
  display: block;
}

.home-page.hide {
  display: none;
}

.ph {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(181, 205, 199, 0.8);
}

.results-head {
  flex: 1;
  min-width: 0;
}

.back {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(208, 214, 211, 0.95);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}

.ph-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}

.results-search {
  padding: 12px 14px;
  border-radius: 14px;
}

.results-search input {
  font-size: 15px;
}

.rlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.rcard {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(219, 226, 223, 0.95);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.rcard:hover {
  background: rgba(244, 251, 248, 0.98);
  transform: translateY(-1px);
}

.rthumb {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e0e0e0;
}

.rinfo {
  flex: 1;
  min-width: 0;
}

.rname {
  font-size: 16px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rloc {
  font-size: 12px;
  color: #949a98;
  margin-bottom: 7px;
}

.rtags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.rtag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #666;
  background: rgba(255, 255, 255, 0.86);
}

.rscore {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.rsv {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--green-l);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.rst {
  color: #f59e0b;
  font-size: 11px;
}

.blocked-badge {
  font-size: 10px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 5px;
  vertical-align: middle;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 620px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 9px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(239, 251, 247, 0.98), rgba(219, 243, 236, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(93, 131, 123, 0.18);
  backdrop-filter: blur(18px);
  z-index: 1000;
}

.nav-item {
  min-height: 64px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #9aa09d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  font-family: "Fredoka One", cursive;
  position: relative;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item span {
  font-size: 12px;
}

.nav-item:hover {
  transform: translateY(-1px);
}

.nav-item.active {
  color: var(--green);
  background: rgba(173, 242, 224, 0.44);
}

.nav-item.featured.active {
  background: rgba(162, 247, 221, 0.58);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sheet {
  background: #fff;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sheet::-webkit-scrollbar {
  display: none;
}

.overlay.open .sheet {
  transform: translateY(0);
}

.hdl {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  margin: 13px auto 0;
}

.gal {
  position: relative;
  height: 220px;
  margin-top: 11px;
  overflow: hidden;
}

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

.gcl {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gth {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.gth img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  cursor: pointer;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.gth img.on {
  border-color: #fff;
}

.sbody {
  padding: 16px 17px 90px;
}

.stop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.sname {
  font-size: 20px;
  line-height: 1.2;
}

.spill {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--green-l);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  flex-shrink: 0;
}

.spill .st {
  color: #f59e0b;
}

.srevs {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 9px;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 14px;
}

.tab {
  flex: 1;
  padding: 9px 4px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  color: #aaa;
  border: none;
  background: transparent;
  font-family: "Fredoka One", cursive;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.sdesc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 14px;
}

.ibox {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.irow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.iico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-l);
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ilbl {
  font-size: 9.5px;
  color: #bbb;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.ival {
  font-size: 13px;
  color: var(--text);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.spill2 {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  color: #444;
}

.pricebox {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.pricebox-title {
  font-size: 13px;
  color: #9a3412;
  margin-bottom: 10px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(154, 52, 18, 0.18);
}

.price-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-row strong {
  color: #9a3412;
  font-size: 12.5px;
}

.ctas {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
}

.cbtn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: "Fredoka One", cursive;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s, transform 0.15s;
}

.cbtn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cbtn-coral {
  background: var(--coral);
  color: #fff;
}

.cbtn-ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.blocked-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.blocked-notice p {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

.calnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.cnbtn {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cnbtn:hover {
  background: var(--green-l);
}

.calmth {
  font-size: 14px;
  color: var(--text);
}

.calgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.cdow {
  font-size: 10px;
  color: #aaa;
  padding: 3px 0;
}

.cday {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: "Fredoka One", cursive;
  color: var(--text);
  position: relative;
  transition: background 0.12s;
}

.cday:hover:not(.dis):not(.emp) {
  background: var(--green-l);
}

.cday.today {
  border: 1.5px solid var(--green);
  color: var(--green);
}

.cday.sel {
  background: var(--green);
  color: #fff !important;
}

.cday.dis {
  color: #ccc;
  cursor: default;
}

.cday.emp {
  cursor: default;
}

.cday.hapt::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.cday.sel.hapt::after {
  background: #fff;
}

.slotwrap {
  margin-top: 13px;
  display: none;
}

.slottitle {
  font-size: 12px;
  color: #888;
  margin-bottom: 7px;
}

.slotgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.slot {
  padding: 8px 4px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-family: "Fredoka One", cursive;
  color: #444;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.slot:hover:not([disabled]) {
  border-color: var(--green);
  color: var(--green);
}

.slot.sel {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.slot.booked {
  background: #fef2f2;
  color: #f87171;
  border-color: #fecaca;
  cursor: default;
  font-size: 10.5px;
}

.slot.past {
  background: #f5f5f5;
  color: #ccc;
  cursor: default;
  border-color: #f0f0f0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.cwrap,
.nwrap {
  display: none;
  margin-top: 13px;
  animation: fadeUp 0.2s ease;
}

.cwrap.show,
.nwrap.show {
  display: block;
}

.cfield {
  margin-bottom: 9px;
}

.clbl {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  display: block;
}

.cinput {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-family: "Fredoka One", cursive;
  color: var(--text);
  outline: none;
  background: #fff;
  transition: border-color 0.15s;
}

.cinput:focus {
  border-color: var(--green);
}

.cinput::placeholder {
  color: #bbb;
}

.cinput.err {
  border-color: #f87171;
  background: #fef2f2;
}

.cerr {
  font-size: 11px;
  color: #f87171;
  margin-top: 3px;
  display: none;
}

.cerr.show {
  display: block;
}

textarea.cinput {
  resize: none;
}

.cfmbtn {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Fredoka One", cursive;
  cursor: pointer;
  margin-top: 13px;
  transition: opacity 0.15s, transform 0.15s;
  display: none;
}

.cfmbtn.show {
  display: block;
}

.cfmbtn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cfmbtn:disabled {
  background: #aaa;
  cursor: default;
}

.spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(98px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-family: "Fredoka One", cursive;
  font-size: 13.5px;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.login-ov {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.login-ov.open {
  opacity: 1;
  pointer-events: all;
}

.login-sh {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 136px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-ov.open .login-sh {
  transform: translateY(0);
}

.lhdl {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #ddd;
  margin: 0 auto 14px;
}

.ltitle {
  font-size: 30px;
  color: var(--coral);
  text-align: center;
  margin-bottom: 4px;
}

.lsub {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
}

.llbl {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.linput {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: "Fredoka One", cursive;
  color: var(--text);
  outline: none;
  background: #fff;
  margin-bottom: 12px;
}

.linput:focus {
  border-color: var(--green);
}

.lbtn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-family: "Fredoka One", cursive;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
}

.lerr {
  display: none;
  text-align: center;
  color: #ef4444;
  font-size: 12px;
  margin-top: 10px;
}

.lhint {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.lhint a {
  color: var(--green-d);
  text-decoration: none;
}

@media (max-width: 680px) {
  .app-shell {
    padding: 0;
  }

  .app-frame {
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(243, 248, 246, 0.96), rgba(226, 241, 236, 0.96));
    padding-bottom: 116px;
  }

  .home-page,
  .page {
    /* min-height: 100svh; */
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-page {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .page {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .top-area {
    padding-top: 10px;
  }

  .logo {
    font-size: 50px;
  }

  .search input {
    font-size: 16px;
  }

  .cards {
    margin-top: 26px;
  }

  .cat-card {
    min-height: 90px;
    border-radius: 18px;
  }

  .wm svg {
    width: 58px;
    height: 58px;
  }

  .cc span {
    font-size: 16px;
  }

  .bottom-nav {
    width: calc(100% - 16px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 20px;
    padding: 8px;
    gap: 5px;
  }

  .nav-item {
    min-height: 58px;
    border-radius: 16px;
  }

  .nav-item svg {
    width: 22px;
    height: 22px;
  }

  .nav-item span {
    font-size: 11px;
  }

  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
    max-width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
  }

  .sheet,
  .login-sh {
    max-width: none;
  }
}
