@font-face {
  font-family: "Varela";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Varela-Regular.ttf") format("truetype");
}

:root {
  --font-main: "Varela", "Segoe UI", "Trebuchet MS", sans-serif;
  --bg: #f8f5f0;
  --bg-accent: #f3ece3;
  --surface: #fffdf9;
  --surface-soft: color-mix(in srgb, #e6d6c8 20%, #fff 80%);
  --accent-soft: #e6d6c8;
  --accent-soft-bg: color-mix(in srgb, var(--accent-soft) 22%, #fff 78%);
  --accent-soft-bg-strong: color-mix(in srgb, var(--accent-soft) 32%, #fff 68%);
  --accent-soft-line: color-mix(in srgb, var(--accent-soft) 65%, var(--line) 35%);
  --text: #1f1914;
  --muted: #726155;
  --line: #e7ddd2;
  --line-strong: #d7c9ba;
  --brand: #a35f3f;
  --brand-hover: #8f5135;
  --brand-soft: #f5e8dc;
  --ok-bg: #eaf8ee;
  --ok-text: #1b6d38;
  --ok-line: #b9e3c6;
  --err-bg: #fdeceb;
  --err-text: #7c2a2a;
  --err-line: #f3c4c1;
  --shadow-soft: 0 8px 24px rgba(33, 24, 18, 0.06);
  --shadow-card: 0 14px 34px rgba(48, 34, 24, 0.08);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --space-1: 0.35rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.6rem;
  --motion-fast: 140ms ease;
  --motion-base: 220ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at 8% -10%, #fffdf8 0%, rgba(255, 253, 248, 0) 48%),
    radial-gradient(circle at 100% 0%, #f6ebe0 0%, rgba(246, 235, 224, 0) 38%),
    var(--bg);
  scrollbar-gutter: auto;
}

body.landing-mode {
  background: #18130f;
  overflow: hidden;
  scrollbar-gutter: auto;
}

body.flow-bg-mode {
  background: #18130f;
  scrollbar-gutter: auto;
  overflow-x: hidden;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

button,
input,
select,
textarea {
  font-family: var(--font-main);
}

.ui-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.ui-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.ui-hover-lift {
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    border-color var(--motion-fast),
    background-color var(--motion-fast);
}

.ui-hover-lift:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: color-mix(in srgb, var(--bg) 85%, #fff 15%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.brand {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #35261b;
}

.nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--line);
  min-height: 2.3rem;
  padding: 0.45rem 0.82rem;
  background: var(--surface);
  color: #4b3b2f;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
  border-color: var(--line-strong);
}

.page {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.page-flow-bg {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

/* Explicit override for higher specificity */
#app.page-flow-bg {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.flow-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.flow-stage-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 0.95rem;
}

.flow-stage .content {
  margin-top: 0;
}

.page-landing {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

/* Explicit override for higher specificity */
#app.page-landing {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.fullscreen-media-shell {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.app-boot-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 250, 245, 0.18), rgba(255, 250, 245, 0) 34%),
    linear-gradient(160deg, rgba(26, 18, 13, 0.96), rgba(59, 41, 29, 0.9));
}

.app-boot-fallback-overlay {
  background:
    radial-gradient(circle at center, rgba(10, 7, 5, 0.06) 46%, rgba(10, 7, 5, 0.36) 100%),
    linear-gradient(180deg, rgba(16, 10, 7, 0.24), rgba(16, 10, 7, 0.48));
}

.app-boot-content {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}

.app-boot-content .eyebrow {
  color: #7c6758;
}

.app-boot-content h1 {
  color: #241912;
}

.app-boot-content .lead {
  color: #675446;
  max-width: 30rem;
  margin-inline: auto;
}

.app-boot-admin {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(1rem, 3vw, 2rem);
}

.app-boot-admin-card {
  width: min(460px, 100%);
  margin-inline: auto;
}

.flash {
  margin-bottom: 0.95rem;
  border-radius: 14px;
  padding: 0.78rem 0.92rem;
  border: 1px solid transparent;
}

.toast-stack {
  position: fixed;
  top: max(0.9rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 1.2rem));
  z-index: 70;
  pointer-events: none;
}

.flash-toast {
  margin: 0;
  box-shadow: 0 16px 30px rgba(28, 18, 12, 0.2);
  backdrop-filter: blur(5px);
}

.flash-success {
  color: var(--ok-text);
  background: var(--ok-bg);
  border-color: var(--ok-line);
}

.flash-error {
  color: var(--err-text);
  background: var(--err-bg);
  border-color: var(--err-line);
}

.hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 242, 232, 0.9)),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.hero-landing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: none;
  background: #18130f;
  min-height: min(86vh, 760px);
  display: grid;
  align-items: center;
  justify-items: center;
}

.hero-landing-minimal {
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  margin-inline: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.media-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  transform-origin: center center;
}

.media-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-video {
  filter: none;
  background: #18130f;
}

.hero-video-main {
  z-index: -3;
}

.hero-video-hidden {
  display: none;
}

.media-layer-hidden {
  display: none !important;
}

.hero-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at center, rgba(8, 8, 8, 0) 48%, rgba(8, 8, 8, 0.38) 100%),
    linear-gradient(140deg, rgba(8, 8, 8, 0.26), rgba(8, 8, 8, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-content-centered {
  min-height: 100%;
  height: 100%;
  width: 100%;
  padding:
    max(0.9rem, env(safe-area-inset-top))
    max(0.9rem, env(safe-area-inset-right))
    max(0.9rem, env(safe-area-inset-bottom))
    max(0.9rem, env(safe-area-inset-left));
  display: grid;
  place-items: center;
}

.hero-cta {
  border-radius: 14px;
  min-height: 3.6rem;
  padding: 0.9rem 1.9rem;
  font-size: clamp(1.02rem, 2.8vw, 1.38rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px);
}

.hero-cta-prominent {
  color: #2b2b2b;
  background: #ffffff;
  border-color: #e7ddd1;
  border-radius: 12px;
  animation: heroPulse 2.4s ease-in-out infinite;
}

.hero-cta-prominent:hover {
  background: #fff;
  border-color: #d8cbbf;
  color: #1e1e1e;
}

.hero-cta-prominent:active {
  transform: translateY(0);
}

@keyframes heroPulse {
  0%,
  100% {
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), 0 0 0 0 rgba(255, 255, 255, 0.34);
  }
  50% {
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.33), 0 0 0 12px rgba(255, 255, 255, 0);
  }
}

.hero-main {
  min-height: min(72vh, 560px);
  display: grid;
  align-content: center;
  gap: 0.2rem;
}

.hero-compact {
  min-height: unset;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1 {
  margin: 0.38rem 0 0.62rem;
  font-size: clamp(1.45rem, 5vw, 2.55rem);
  line-height: 1.15;
  color: #2d2016;
}

.lead {
  margin: 0;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  color: var(--muted);
  max-width: 62ch;
}

.userline {
  margin: 0.95rem 0 0;
  font-size: 0.88rem;
  color: #7d6a5c;
}

.content {
  margin-top: 1.05rem;
  display: grid;
  gap: 0.9rem;
}

.summary-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.summary-count {
  margin: 0;
  color: #5f4d40;
}

.admin-shell-head {
  align-items: center;
}

.admin-tabs {
  margin-top: 0.8rem;
}

.list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-login-shell {
  width: calc(100% - 2rem);
  max-width: 780px;
  min-width: 0;
  margin: 0 auto;
}

.admin-login-card {
  width: min(460px, max(280px, calc(100vw - 11rem)));
  max-width: 460px;
  min-width: 0;
  margin-inline: 0 auto;
}

.admin-login-card .form,
.admin-login-card .field {
  max-width: 100%;
  min-width: 0;
}

.admin-login-card input,
.admin-login-card .btn {
  max-width: 100%;
  min-width: 0;
}

.admin-login-card .btn {
  width: 100%;
}

.admin-2fa-card {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.admin-2fa-qr {
  width: min(220px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem;
}

.admin-2fa-secret {
  word-break: break-all;
}

.admin-stats-grid {
  margin-top: 0.9rem;
}

.admin-stats-list {
  display: grid;
  gap: 0.7rem;
}

.cards-grid {
  display: grid;
  gap: 0.9rem;
}

.flavors-layout {
  display: grid;
  gap: 0.9rem;
  align-items: start;
  position: relative;
  isolation: isolate;
}

.flavors-main-panel {
  display: grid;
  gap: 0.9rem;
  order: 1;
}

.flavors-step-panel {
  display: grid;
  gap: 0.9rem;
  order: 2;
}

.flavors-step-card {
  display: grid;
  gap: 0.75rem;
  background: #f4f4f4;
}

.flavors-step-head {
  display: grid;
  gap: 0.3rem;
}

.flavors-step-title-wrap {
  display: grid;
  gap: 0.22rem;
}

.flavors-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.flavors-title-row h2 {
  margin: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(53, 38, 27, 0.05);
  overflow: hidden;
}

.card-elevated {
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--line) 70%, #f2e7da 30%);
}

.card-soft {
  background: linear-gradient(135deg, #fffdf9, #faf7f3);
  border-color: #e7ddd2;
}

.card-success {
  border-color: var(--ok-line);
  background: var(--ok-bg);
}

.card h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.02rem, 2.6vw, 1.35rem);
  line-height: 1.25;
}

.card p {
  margin: 0 0 0.6rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.order-grid {
  align-items: start;
  position: relative;
  isolation: isolate;
}

.flavor-card {
  display: grid;
  gap: 0.55rem;
}

.flavor-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
}

.flavor-card-head h2 {
  margin: 0;
}

.flavor-details-btn {
  align-self: start;
}

.flavor-card-actions {
  align-items: center;
}

.flavor-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6efe7;
  transition: opacity var(--motion-base), transform var(--motion-base), box-shadow var(--motion-fast);
}

.flavor-thumb-placeholder {
  background:
    linear-gradient(135deg, #f3e8dc, #f8f2ea),
    var(--surface-soft);
}

.flavor-thumb-empty {
  display: grid;
  place-items: center;
  color: #725d4d;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, #f3e8dc, #f8f2ea),
    var(--surface-soft);
}

.flavor-modal-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6efe7;
  margin-bottom: 0.6rem;
}

.flavor-gallery-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  margin-bottom: 0.7rem;
}

.flavor-gallery-thumb-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.1rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.flavor-gallery-thumb-btn-active {
  border-color: var(--brand);
}

.flavor-gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.35rem;
}

.media-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
}

.media-grid {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.media-grid-single {
  grid-template-columns: minmax(110px, 170px);
}

.media-item {
  display: grid;
  gap: 0.35rem;
}

.media-thumb-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f6efe7;
}

.media-thumb-empty {
  display: grid;
  place-items: center;
  color: #7c6758;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.media-thumb-remove {
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #4d3b2f;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.media-preview {
  width: min(220px, 100%);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6efe7;
}

.media-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.price {
  font-size: 1.04rem;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 0.72rem;
}

.field {
  display: grid;
  gap: 0.34rem;
}

.field span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.field-error {
  background: transparent;
  box-shadow: none;
}

.field-error.card {
  border-color: color-mix(in srgb, var(--err-line) 78%, #d69a96 22%);
  background: linear-gradient(180deg, rgba(255, 254, 252, 0.98) 0%, rgba(255, 249, 248, 0.94) 100%);
  box-shadow: 0 10px 24px rgba(121, 49, 43, 0.04);
}

.field-error > input,
.field-error > textarea,
.field-error > select {
  border-color: color-mix(in srgb, var(--err-line) 78%, #d69a96 22%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 247, 0.94) 100%);
  box-shadow: 0 0 0 2px rgba(212, 132, 124, 0.1);
}

.field-error > .field-control-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.field-error .calendar-toggle-btn,
.field-error .date-display,
.field-error .delivery-method-trigger,
.field-error .time-wheel-frame,
.field-error .delivery-range-card-selected,
.field-error .delivery-mode-option-selected {
  border-color: color-mix(in srgb, var(--err-line) 72%, #d69a96 28%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 248, 0.95) 100%);
  box-shadow: 0 0 0 2px rgba(212, 132, 124, 0.08);
}

.field-error-message {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.42rem;
  color: #b35e56;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.1rem;
  padding: 0 0.08rem;
  background: transparent;
  border: 0;
}

.field-error-message::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.28rem;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.delivery-time-picker {
  display: grid;
  gap: 0.65rem;
}

.field-control-shell {
  border: 0;
  border-radius: 0;
  padding: 0;
  transition:
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    background-color var(--motion-fast);
}

.delivery-method-picker {
  position: relative;
}

.delivery-method-trigger {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 239, 0.94) 100%);
  color: #39291f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    background-color var(--motion-fast);
}

.delivery-method-trigger:hover {
  transform: translateY(-1px);
  border-color: #d5c3b5;
  box-shadow: 0 12px 26px rgba(47, 31, 21, 0.08);
}

.delivery-method-trigger:focus-visible,
.delivery-method-option:focus-visible {
  outline: none;
  border-color: #c49776;
  box-shadow: 0 0 0 4px rgba(196, 151, 118, 0.18);
}

.delivery-method-trigger-text {
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.35;
}

.delivery-method-trigger-icon {
  width: 1rem;
  height: 1rem;
  color: #7c6758;
  flex: 0 0 auto;
  transition: transform var(--motion-fast), color var(--motion-fast);
}

.delivery-method-trigger-icon svg {
  width: 100%;
  height: 100%;
}

.delivery-method-picker[data-open="true"] .delivery-method-trigger {
  border-color: var(--accent-soft);
  box-shadow: 0 14px 30px rgba(83, 54, 31, 0.12);
}

.delivery-method-picker[data-open="true"] .delivery-method-trigger-icon {
  transform: rotate(180deg);
  color: #5d4738;
}

.delivery-method-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.38rem;
  padding: 0.5rem;
  background: rgba(255, 251, 247, 0.98);
  border: 1px solid rgba(214, 197, 182, 0.88);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(37, 23, 15, 0.16);
  backdrop-filter: blur(18px);
  z-index: 45;
}

.delivery-method-popover[hidden] {
  display: none;
}

.delivery-method-option {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #3a2a20;
  font: inherit;
  font-weight: 600;
  padding: 0.78rem 0.92rem;
  cursor: pointer;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    background-color var(--motion-fast);
}

.delivery-method-option:hover {
  transform: translateY(-1px);
  border-color: #dcc9b8;
  box-shadow: 0 10px 24px rgba(64, 42, 28, 0.08);
}

.delivery-method-option-selected {
  border-color: var(--accent-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--accent-soft-bg) 100%);
  box-shadow: 0 8px 20px rgba(140, 120, 100, 0.12);
}

.delivery-method-option-mark {
  min-width: 1rem;
  text-align: center;
  color: #8b5e42;
}

.delivery-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.delivery-mode-option {
  min-height: 2.85rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #5a4a40;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    box-shadow var(--motion-fast),
    color var(--motion-fast);
}

.delivery-mode-option:hover {
  transform: translateY(-1px);
  border-color: #d0c0b5;
}

.delivery-mode-option-selected {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--accent-soft-bg) 100%);
  border-color: var(--accent-soft);
  color: #3a2a20;
  box-shadow: 0 6px 16px rgba(140, 120, 100, 0.12);
}

.delivery-range-grid {
  display: grid;
  gap: 0.55rem;
}

.delivery-range-card {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  min-height: 4.3rem;
  text-align: left;
  border: 1.5px solid #e5d9ce;
  border-radius: 16px;
  background: #fff;
  color: #3a2a20;
  padding: 0.8rem 0.95rem;
  cursor: pointer;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    background-color var(--motion-fast);
}

.delivery-range-card span {
  color: #8b7a70;
  font-size: 0.8rem;
  font-weight: 500;
}

.delivery-range-card:hover {
  transform: translateY(-1px);
  border-color: #dcc9b8;
}

.delivery-range-card-selected {
  border-color: var(--accent-soft);
  box-shadow: 0 8px 20px rgba(140, 120, 100, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--accent-soft-bg) 100%);
}

.date-picker-custom {
  position: relative;
  display: grid;
  gap: 0.6rem;
}

.date-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.calendar-toggle-btn {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, #fff 12%);
  color: #5e4737;
  cursor: pointer;
  border-radius: 14px;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    background-color var(--motion-fast);
}

.calendar-toggle-btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

.calendar-toggle-btn:hover {
  border-color: #d3b8a1;
  box-shadow: 0 10px 24px rgba(47, 31, 21, 0.1);
  transform: translateY(-1px);
}

.calendar-toggle-btn:focus-visible {
  outline: none;
  border-color: #c49776;
  box-shadow: 0 0 0 4px rgba(196, 151, 118, 0.18);
}

.date-display {
  min-height: 3rem;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 236, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.95rem;
  color: #4a4440;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.date-display-empty {
  color: #8c786a;
}

.date-display-selected {
  color: #4a4037;
}

.calendar-container {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.65rem;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid rgba(214, 197, 182, 0.88);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(37, 23, 15, 0.16);
  backdrop-filter: blur(18px);
  z-index: 100;
  min-width: 280px;
}

.calendar-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e8ddd6;
}

.calendar-nav-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  font-size: 1.3rem;
  cursor: pointer;
  color: #6f5d50;
  border-radius: 0.3rem;
  transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
  background-color: #f0ebe8;
}

.calendar-month-year {
  text-align: center;
  font-weight: 600;
  color: #4a4440;
  font-size: 0.95rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b7e77;
}

.calendar-weekdays > div {
  padding: 0.4rem 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.calendar-day {
  aspect-ratio: 1;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #4a4440;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    transform var(--motion-fast),
    background-color var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast);
  border: 1px solid transparent;
}

.calendar-day:hover {
  background-color: #fff6ee;
  border-color: #d9c0ab;
  transform: translateY(-1px);
}

.calendar-day:active {
  background-color: #e8ddd6;
}

.calendar-day-selected {
  background: linear-gradient(180deg, #fff7f0 0%, #f5e4d6 100%);
  border-color: #b88260;
  box-shadow: 0 8px 20px rgba(163, 95, 63, 0.16);
}

.calendar-day-empty {
  cursor: default;
  pointer-events: none;
}

.time-picker-custom {
  display: grid;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.time-wheel-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, color-mix(in srgb, var(--accent-soft) 16%, #fff 84%) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.time-wheel-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 1.3rem);
  height: 2.8rem;
  border-top: 1px solid rgba(180, 160, 150, 0.3);
  border-bottom: 1px solid rgba(180, 160, 150, 0.3);
  pointer-events: none;
  border-radius: 14px;
}

.time-wheel-frame-single {
  grid-template-columns: minmax(0, 1fr);
}

.time-wheel-frame-dual {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem;
}

.time-wheel-separator {
  width: 2px;
  background: rgba(180, 160, 150, 0.25);
  border-radius: 1px;
  margin: 1.8rem 0;
}

.time-wheel-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 10.5rem;
  overflow-y: scroll;
  padding: 1.8rem 0.2rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(245, 235, 227, 0.55) 0%, rgba(255, 255, 255, 0.9) 18%, rgba(255, 255, 255, 0.9) 82%, rgba(245, 235, 227, 0.55) 100%);
  scrollbar-width: none;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  -webkit-overflow-scrolling: touch;
}

.time-wheel-column-single,
.time-wheel-frame-dual .time-wheel-column {
  max-height: 11.8rem;
}

.time-wheel-column::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.time-wheel-column::before,
.time-wheel-column::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  display: block;
  height: 1.35rem;
  pointer-events: none;
  z-index: 1;
}

.time-wheel-column::before {
  top: 0;
  background: linear-gradient(180deg, rgba(250, 243, 235, 0.98), rgba(250, 243, 235, 0));
}

.time-wheel-column::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(250, 243, 235, 0.98), rgba(250, 243, 235, 0));
}

.time-wheel-column:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(196, 151, 118, 0.18);
}

.time-wheel-option {
  min-height: 2.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #7a6353;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  scroll-snap-align: center;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast),
    background-color var(--motion-fast),
    color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.time-wheel-option:hover {
  color: #4d3a2d;
}

.time-wheel-option-selected {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--accent-soft) 34%, #fff 66%) 100%);
  color: #34251c;
  border-color: color-mix(in srgb, var(--accent-soft) 78%, #8B7D75 22%);
  box-shadow: 0 10px 24px rgba(88, 42, 55, 0.14);
  transform: scale(1.01);
}

.time-separator {
  font-weight: 700;
  color: #6f5d50;
  font-size: 1.4rem;
  align-self: center;
}

.time-picker-caption {
  color: #7d6657;
  font-size: 0.8rem;
  font-weight: 600;
  user-select: none;
  cursor: default;
  position: relative;
  z-index: 1;
}

.checkbox-field {
  gap: 0.5rem;
}

.checkbox-field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.checkbox-field-inline span {
  margin: 0;
}

.checkbox-field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  margin: 0;
}

input,
textarea,
select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.62rem 0.75rem;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[readonly] {
  background: #f6f2ec;
}

textarea {
  min-height: 6.3rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #d6b79f;
  box-shadow: 0 0 0 3px rgba(214, 183, 159, 0.2);
}

.hint {
  margin: 0.1rem 0 0;
  color: #887463;
  font-size: 0.84rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.check-order-actions {
  justify-content: center;
}

.check-order-actions .btn,
.check-order-actions a.btn {
  min-width: min(16rem, 100%);
}

.summary-actions-inline {
  justify-content: flex-start;
}

.actions-tight {
  justify-content: space-between;
}

.reference-upload-tile {
  position: relative;
  border: 1px dashed color-mix(in srgb, var(--accent-soft) 58%, #caa28f 42%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, color-mix(in srgb, var(--accent-soft) 18%, #fff 82%) 100%);
  border-radius: 12px;
  min-height: 5rem;
  padding: 0.8rem;
  display: grid;
  gap: 0.18rem;
  cursor: pointer;
}

.reference-upload-tile:focus-within {
  border-color: color-mix(in srgb, var(--accent) 56%, #caa28f 44%);
  box-shadow: 0 0 0 3px rgba(201, 159, 133, 0.18);
}

.reference-upload-tile input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.reference-upload-tile strong {
  font-size: 0.95rem;
}

.reference-upload-tile span {
  color: #735f4f;
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-upload-tile {
  min-height: 5.4rem;
}

.reference-upload-status {
  color: #5e4b3d;
  font-size: 0.8rem;
  font-weight: 600;
}

.reference-upload-disabled {
  opacity: 0.75;
  cursor: default;
}

.reference-upload-disabled input[type="file"] {
  pointer-events: none;
}

.stack {
  display: grid;
  gap: 0.55rem;
}

.split {
  display: grid;
  gap: 0.6rem;
  align-items: start;
}

.split-main-aside {
  grid-template-columns: minmax(0, 1fr);
}

.qty-control {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: fit-content;
  background: #fff;
  overflow: hidden;
}

.qty-control-compact {
  margin-right: 0.25rem;
}

.qty-btn {
  border: 0;
  border-radius: 0;
  min-height: 2.2rem;
  min-width: 2.3rem;
  margin: 0;
}

.qty-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-row {
  display: grid;
  gap: 0.55rem;
}

.cart-row-media {
  width: min(180px, 100%);
}

.account-card {
  display: grid;
  gap: 0.8rem;
}

.account-row {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.account-row-head {
  align-items: center;
}

.account-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.inline-edit {
  display: grid;
  gap: 0.5rem;
}

.order-section {
  display: grid;
  gap: 0.8rem;
}

.order-form-section {
  display: grid;
  gap: 0.7rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 18%, #fff 82%) 0%, color-mix(in srgb, var(--accent-soft) 26%, #fff 74%) 100%);
  border-radius: 12px;
  border: 1px solid var(--accent-soft-line);
  padding: 0.75rem;
}

.order-form-section h3 {
  margin: 0;
}

.order-form-block {
  display: grid;
  gap: 0.65rem;
}

.calendar-chip-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.calendar-chip {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #4b3b2f;
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.62rem;
  cursor: pointer;
}

.calendar-chip span {
  display: inline-flex;
  min-width: 1.4rem;
  height: 1.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f6ece2;
  color: #6f4f3a;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-chip-selected {
  border-color: #caa88f;
  background: #fff6ed;
}

.calendar-chip-applied {
  border-color: #af7b5b;
  background: #f8ecdf;
}

.section-toggle {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 0.62rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.order-card {
  display: grid;
  gap: 0.45rem;
}

.order-summary-card {
  align-self: start;
}

.admin-orders-stack {
  display: grid;
  gap: 0.8rem;
}

.admin-order-list-card {
  gap: 0.4rem;
}

.order-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.composition-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.composition-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.composition-row .flavor-thumb,
.composition-row .flavor-thumb-empty,
.composition-row .flavor-thumb-placeholder {
  width: 80px;
  aspect-ratio: 1 / 1;
}

.composition-meta {
  display: grid;
  gap: 0.2rem;
}

.composition-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem;
  align-items: start;
}

.composition-title {
  margin: 0;
  font-weight: 700;
}

.composition-remove {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #583f2f;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.composition-remove:hover {
  background: #fdf3ea;
  border-color: #ddc1a8;
}

.composition-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.composition-sub-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.flow-stage > :not(.flow-bg-media):not(.flow-bg-overlay),
.flow-bg-surface > :not(.flow-bg-media):not(.flow-bg-overlay) {
  position: relative;
  z-index: 1;
}

.flow-bg-media {
  background: #18130f;
  z-index: 0;
}

.flow-bg-media-main {
  z-index: 0;
}

.flow-bg-overlay {
  z-index: 0;
  background:
    radial-gradient(circle at center, rgba(255, 250, 243, 0) 54%, rgba(34, 23, 15, 0.37) 100%),
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 42%),
    linear-gradient(140deg, rgba(255, 250, 243, 0.56), rgba(243, 233, 220, 0.74));
}

.admin-gallery-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.admin-gallery-tile {
  display: grid;
  gap: 0.35rem;
}

.admin-media-actions {
  justify-content: flex-start;
}

.admin-gallery-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f6efe7;
}

.admin-landing-card {
  display: grid;
  gap: 0.8rem;
}

.admin-delivery-settings-form {
  gap: 0.7rem;
}

.admin-delivery-slot-card {
  gap: 0.7rem;
}

.admin-delivery-slot-card h4 {
  margin: 0.15rem 0 0;
}

.admin-landing-grid {
  display: grid;
  gap: 0.8rem;
}

.admin-landing-block {
  display: grid;
  gap: 0.55rem;
}

.admin-landing-block h3 {
  margin: 0;
}

.admin-landing-video {
  width: min(480px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6efe7;
  object-fit: cover;
}

.admin-landing-slots {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.admin-landing-slot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.admin-landing-slot-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f6efe7;
}

.admin-landing-empty {
  width: 100%;
  min-height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #7c6758;
  border-radius: 10px;
  border: 1px dashed #d4c0ad;
  background: #fff7ee;
  font-size: 0.84rem;
}

.order-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.order-actions-inline {
  align-items: center;
}

.order-detail-two-column {
  display: grid;
  gap: 0.7rem;
  margin: 0.55rem 0 0.8rem;
}

.admin-order-details-card {
  display: grid;
  gap: 0.9rem;
}

.admin-order-items-grid {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.admin-order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: center;
  padding: 0.58rem 0.65rem;
  border-top: 1px solid var(--line);
}

.admin-order-item-row:first-child {
  border-top: 0;
}

.admin-order-item-row-head {
  background: #f8f2ea;
  font-weight: 700;
}

.admin-order-item-row-ordered {
  grid-template-columns: 48px minmax(0, 1.5fr) 120px 130px;
}

.admin-order-item-row-design {
  grid-template-columns: 48px minmax(0, 1.8fr) 130px 130px 130px;
}

.admin-order-item-cell {
  margin: 0;
  font-size: 0.86rem;
  color: #493a2e;
  overflow-wrap: anywhere;
}

.admin-order-item-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
}

.admin-order-details-stack {
  display: grid;
  gap: 0.7rem;
}

.admin-order-item-add-panel {
  margin-top: 0.55rem;
  border: 1px dashed #ccb49a;
  border-radius: 12px;
  background: #fff9f2;
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.admin-order-item-add-qty {
  max-width: 180px;
}

.admin-edit-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffcf8;
  padding: 0.55rem 0.65rem;
}

.admin-edit-label {
  margin: 0 0 0.3rem;
}

.admin-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.admin-edit-row-active {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-edit-row-active textarea {
  min-height: 5rem;
}

.admin-edit-value {
  margin: 0;
}

.modal-order {
  width: min(760px, 100%);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(24, 16, 11, 0.45);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(580px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.modal-admin-order {
  width: min(920px, 100%);
}

.modal-confirm {
  width: min(320px, 100%);
  text-align: center;
}

.confirm-actions {
  justify-content: center;
}

.modal-head h2 {
  margin: 0;
}

.modal-thank-you {
  width: min(420px, 100%);
}

.order-hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 242, 232, 0.78));
  backdrop-filter: blur(2px);
}

.thanks-hero {
  min-height: clamp(240px, 56dvh, 520px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.62rem;
  position: relative;
  overflow: hidden;
  border: 0;
  box-shadow: 0 18px 34px rgba(33, 22, 14, 0.16);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(247, 239, 229, 0.86));
  backdrop-filter: blur(3px);
}

.thanks-hero-minimal {
  min-height: clamp(240px, 56dvh, 520px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.78rem;
  position: relative;
  overflow: visible;
  isolation: isolate;
  width: min(100%, 34rem);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.1rem, 4vw, 2.8rem);
}

.thanks-hero-minimal::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 38rem);
  aspect-ratio: 1 / 1;
  z-index: -1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 252, 247, 0.96) 0%, rgba(255, 246, 238, 0.72) 40%, rgba(255, 246, 238, 0.14) 72%, rgba(255, 246, 238, 0) 100%);
  filter: blur(22px);
  pointer-events: none;
}

.thanks-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(79, 60, 49, 0.8);
}

.thanks-hero-minimal h1 {
  text-align: center;
  margin: 0;
  color: #2e2118;
  text-shadow: 0 10px 28px rgba(255, 248, 242, 0.32);
}

.thanks-subtitle {
  text-align: center;
  margin: 0.38rem 0 0;
  font-size: 1.05rem;
  color: #4f3c31;
  font-weight: 500;
  max-width: 25rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 6px 22px rgba(255, 250, 246, 0.28);
}

.thanks-subtitle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
  font-size: 0.96em;
  line-height: 1;
}

.flow-stage-thanks .flow-stage-inner {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  align-content: center;
  justify-items: center;
  padding:
    max(0.9rem, env(safe-area-inset-top))
    max(0.9rem, env(safe-area-inset-right))
    max(0.9rem, env(safe-area-inset-bottom))
    max(0.9rem, env(safe-area-inset-left));
}

.thanks-hero h1,
.thanks-hero .lead,
.thanks-hero-minimal h1,
.thanks-hero-minimal .thanks-subtitle {
  text-align: center;
}

.thanks-actions {
  justify-content: center;
  margin-top: 0.55rem;
}

.thanks-home-link {
  width: 3.18rem;
  height: 3.18rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 215, 202, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 236, 0.94) 100%);
  color: #33271e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.24rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(45, 30, 20, 0.13);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), filter var(--motion-fast);
}

.thanks-home-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(45, 30, 20, 0.18);
  border-color: #d6c5b5;
  filter: none;
}

.thanks-home-link-inline {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 8px 16px rgba(41, 110, 67, 0.2);
}

.thanks-confetti {
  position: absolute;
  top: calc(50% - 1.5rem);
  transform: translateY(-50%);
  color: #8e674d;
  font-size: clamp(0.98rem, 1.9vw, 1.24rem);
  letter-spacing: 0.26rem;
  text-shadow: 0 4px 18px rgba(27, 19, 13, 0.18);
  animation: confettiFloat 3.4s ease-in-out infinite;
  pointer-events: none;
}

.thanks-confetti-left {
  left: clamp(0.2rem, 3.4vw, 1.6rem);
}

.thanks-confetti-right {
  right: clamp(0.2rem, 3.4vw, 1.6rem);
  animation-delay: 1.2s;
}

@keyframes confettiFloat {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(calc(-50% - 6px)) translateX(2px);
  }
}

.hidden {
  display: none !important;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a.btn {
  display: inline-flex;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 80%, #6c3520 20%);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-white {
  color: #2f2f2f;
  background: #fff;
  border-color: #ece2d7;
}

.btn-white:hover {
  background: #fff;
  border-color: #d8cbbf;
}

.btn-ghost {
  color: #3f3025;
  background: #fff;
  border-color: var(--line);
}

.btn-danger {
  color: #872c2c;
  background: #fff;
  border-color: #e9bebc;
}

.btn-success {
  color: #fff;
  background: #2f9f5f;
  border-color: #247f4c;
}

.btn-success:hover {
  background: #268853;
  border-color: #1f6f43;
}

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-small {
  min-height: 2.3rem;
  padding: 0.42rem 0.7rem;
  font-size: 0.84rem;
}

.btn-icon-only {
  min-width: 2.2rem;
  width: 2.2rem;
  padding-left: 0;
  padding-right: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  background: #f8f0e5;
}

.status-new {
  background: #f8f0e5;
}

.status-completed {
  background: #edf8f0;
}

.status-canceled {
  background: #faecec;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.25rem 0;
}

.chat-list {
  display: grid;
  gap: 0.5rem;
  min-height: 5.2rem;
  max-height: clamp(13rem, 44vh, 24rem);
  overflow-y: auto;
  margin-bottom: 0.8rem;
  padding-right: 0.1rem;
}

.chat-item {
  display: grid;
  justify-items: start;
}

.chat-item-own {
  justify-items: end;
}

.chat-bubble {
  margin: 0;
  max-width: min(100%, 560px);
  padding: 0.56rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbf6ef;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-item-own .chat-bubble {
  background: #efe3d8;
  border-color: #d7c2af;
}

.chat-caption {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

code {
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  background: #f3ece3;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid #b6805f;
  outline-offset: 2px;
}

@media (max-width: 479px) {
  .page {
    padding: 0.84rem;
  }

  .flow-stage-inner {
    padding: 0.84rem;
  }

  .hero,
  .card {
    border-radius: 16px;
    padding: 0.9rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn,
  .actions a.btn {
    width: 100%;
  }

  .check-order-actions {
    align-items: center;
  }

  .check-order-actions .btn,
  .check-order-actions a.btn {
    width: min(100%, 16rem);
  }

  .summary-actions-inline {
    flex-direction: row;
    align-items: center;
  }

  .summary-actions-inline .btn,
  .summary-actions-inline a.btn {
    width: auto;
    flex: 1 1 0;
    min-width: min(150px, 44vw);
  }

  .thanks-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .thanks-home-link {
    width: 2.8rem;
    height: 2.8rem;
  }

  .thanks-confetti {
    display: none;
  }
}

@media (max-width: 719px) {
  .thanks-subtitle {
    max-width: 22rem;
  }

  .thanks-hero-minimal::before {
    width: min(96vw, 30rem);
  }

  .thanks-confetti {
    top: calc(50% - 1.8rem);
    font-size: 0.95rem;
    letter-spacing: 0.18rem;
  }

  .admin-order-item-row-head {
    display: none;
  }

  .admin-order-item-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .admin-order-item-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .admin-order-item-cell::before {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .admin-order-item-row-ordered .admin-order-item-cell:nth-child(1)::before {
    content: "№";
  }

  .admin-order-item-row-ordered .admin-order-item-cell:nth-child(2)::before {
    content: "Название";
  }

  .admin-order-item-row-ordered .admin-order-item-cell:nth-child(3)::before {
    content: "Количество";
  }

  .admin-order-item-row-ordered .admin-order-item-cell:nth-child(4)::before {
    content: "Действия";
  }

  .admin-order-item-row-design .admin-order-item-cell:nth-child(1)::before {
    content: "№";
  }

  .admin-order-item-row-design .admin-order-item-cell:nth-child(2)::before {
    content: "Пожелание";
  }

  .admin-order-item-row-design .admin-order-item-cell:nth-child(3)::before {
    content: "Референс";
  }

  .admin-order-item-row-design .admin-order-item-cell:nth-child(4)::before {
    content: "Печать";
  }

  .admin-order-item-row-design .admin-order-item-cell:nth-child(5)::before {
    content: "Референс печати";
  }
}

@media (min-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.85rem 1.1rem;
  }

  .nav {
    justify-content: flex-end;
    overflow: visible;
    flex-wrap: wrap;
  }

  .page {
    padding: 1.35rem;
  }

  .flow-stage-inner {
    padding: 1.35rem;
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-main-aside {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cards-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flavors-layout {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
  }

  .flavors-step-panel {
    order: 0;
  }

  .flavors-main-panel {
    order: 1;
  }

  .inline-edit {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .order-detail-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-landing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 980px) {
  .content {
    gap: 1rem;
  }

  .cards-grid {
    gap: 1rem;
  }

  .hero {
    padding: 1.4rem;
  }

  .flow-stage-inner {
    padding: 1.4rem;
  }

  .order-grid {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }

}
