:root {
  --bg-top: #fff7fb;
  --bg-bottom: #ffeaf2;
  --ink: #5b3648;
  --muted: #9f7689;
  --line: rgba(255, 198, 220, 0.8);
  --panel: rgba(255, 255, 255, 0.88);
  --accent: #ff74aa;
  --accent-2: #ff9ec4;
  --accent-3: #ffd5e6;
  --success: #d84f8e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 213, 230, 0.75), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 236, 244, 0.95), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.app-body,
.admin-body {
  position: relative;
}

.page-shell,
.admin-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.admin-shell {
  width: min(100%, 1080px);
}

.glass-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 48px rgba(215, 105, 155, 0.12);
  overflow: hidden;
}

.hero-card {
  background:
    radial-gradient(circle at top left, rgba(255, 223, 234, 0.92), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, rgba(255, 246, 250, 0.95), rgba(255, 233, 242, 0.95));
}

.admin-hero {
  margin-top: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d16197;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 7vw, 42px);
}

h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.hero-copy,
.section-copy,
.status-text,
.empty-text,
.menu-category,
.summary-label,
.order-meta {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-size: 14px;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 250, 252, 0.96);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

.remark-area {
  min-height: 124px;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.primary-btn,
.ghost-btn,
.surprise-panel {
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(255, 116, 170, 0.26);
}

.ghost-btn {
  padding: 10px 18px;
  background: #ffe8f2;
  color: #d04e8c;
}

.primary-btn:hover,
.ghost-btn:hover,
.surprise-panel:hover {
  transform: translateY(-1px);
}

.submit-btn {
  width: 100%;
  margin-bottom: 18px;
}

.hero-visual {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.kitty-bust {
  position: relative;
  width: 160px;
  height: 132px;
}

.kitty-ear {
  position: absolute;
  top: 14px;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 14px 14px 10px 10px;
  transform: rotate(45deg);
}

.kitty-ear.left {
  left: 22px;
}

.kitty-ear.right {
  right: 22px;
}

.kitty-face {
  position: absolute;
  left: 14px;
  top: 26px;
  width: 132px;
  height: 94px;
  border: 1px solid rgba(255, 201, 220, 0.92);
  border-radius: 46% 46% 40% 40%;
  background: rgba(255, 255, 255, 0.98);
}

.kitty-eye,
.kitty-nose {
  position: absolute;
}

.kitty-eye {
  top: 34px;
  width: 6px;
  height: 14px;
  border-radius: 999px;
  background: #5b3648;
}

.kitty-eye.left {
  left: 40px;
}

.kitty-eye.right {
  right: 40px;
}

.kitty-nose {
  top: 48px;
  left: 58px;
  width: 16px;
  height: 10px;
  border-radius: 50%;
  background: #f2d38f;
}

.kitty-whisker {
  position: absolute;
  width: 32px;
  height: 2px;
  background: #8f6d7e;
}

.kitty-whisker.left {
  left: 4px;
}

.kitty-whisker.right {
  right: 4px;
}

.kitty-whisker.top.left,
.kitty-whisker.bottom.right {
  transform: rotate(-14deg);
}

.kitty-whisker.bottom.left,
.kitty-whisker.top.right {
  transform: rotate(14deg);
}

.kitty-whisker.top {
  top: 46px;
}

.kitty-whisker.middle {
  top: 56px;
}

.kitty-whisker.bottom {
  top: 66px;
}

.kitty-bow {
  position: absolute;
  top: 18px;
  right: 4px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.kitty-bow span {
  width: 24px;
  height: 20px;
  background: #ff6da9;
  border-radius: 70% 25% 70% 25%;
}

.kitty-bow span:first-child {
  transform: rotate(-18deg);
}

.kitty-bow span:last-child {
  transform: scaleX(-1) rotate(-18deg);
}

.kitty-bow .center {
  width: 12px;
  height: 16px;
  margin: 0 4px;
  border-radius: 10px;
  background: #ff4f97;
}

.pulse-heart {
  font-size: 78px;
  color: #ff6da9;
  line-height: 1;
  text-shadow: 0 12px 30px rgba(255, 109, 169, 0.24);
  animation: pulseHeart 1.18s ease-in-out infinite;
}

.floating-hearts {
  position: absolute;
  right: 18px;
  top: 12px;
  width: 140px;
  height: 180px;
  pointer-events: none;
}

.heart,
.success-float {
  position: absolute;
  color: rgba(255, 108, 168, 0.46);
  animation: driftHeart 4.2s ease-in-out infinite;
}

.heart.h1 {
  left: 12px;
  top: 12px;
  font-size: 24px;
}

.heart.h2 {
  left: 74px;
  top: 78px;
  font-size: 18px;
  animation-delay: 1s;
}

.heart.h3 {
  left: 36px;
  top: 128px;
  font-size: 20px;
  animation-delay: 2s;
}

.petals::before,
.petals::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 60% 40% 58% 42%;
  background: rgba(255, 201, 221, 0.44);
  box-shadow:
    42px 16px 0 rgba(255, 215, 230, 0.36),
    88px 32px 0 rgba(255, 192, 216, 0.32),
    136px 8px 0 rgba(255, 223, 234, 0.4);
}

.petals-top::before {
  top: 18px;
  left: 18px;
}

.petals-bottom::after {
  bottom: 22px;
  right: 26px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-groups {
  display: grid;
  gap: 18px;
}

.menu-group-grid {
  display: grid;
  gap: 12px;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-item {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 208, 226, 0.82);
  background: linear-gradient(180deg, #fff9fc 0%, #fff0f6 100%);
  text-align: left;
}

.menu-item.active {
  border-color: #ff72a8;
  box-shadow: 0 12px 24px rgba(255, 114, 168, 0.12);
  background: linear-gradient(180deg, #ffeff6 0%, #ffe1ee 100%);
}

.menu-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffd9ea;
  color: #d14f8b;
  font-size: 12px;
}

.surprise-panel {
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fff5fa 0%, #ffe6f1 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.surprise-panel.active {
  background: linear-gradient(135deg, #ffedf5 0%, #ffdceb 100%);
  box-shadow: 0 12px 24px rgba(255, 119, 173, 0.14);
}

.surprise-panel strong {
  display: block;
  margin-bottom: 4px;
}

.surprise-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.surprise-preview {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.surprise-preview span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.surprise-preview strong {
  font-size: 24px;
  color: var(--success);
}

.summary-grid {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-value {
  text-align: right;
}

.success-scene {
  position: relative;
  min-height: 120px;
  margin-bottom: 10px;
}

.success-heart {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
}

.success-float.f1 {
  left: 18%;
  top: 18px;
}

.success-float.f2 {
  left: 68%;
  top: 28px;
  animation-delay: 1s;
}

.success-float.f3 {
  left: 48%;
  top: 72px;
  animation-delay: 2s;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

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

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-row input {
  width: auto;
}

.admin-menu-list,
.orders-list {
  display: grid;
  gap: 14px;
}

.admin-menu-card,
.order-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 208, 226, 0.82);
  background: #fffafc;
}

.admin-menu-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1.5fr 100px auto auto auto;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.inline-check input {
  width: auto;
}

.order-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.order-card p {
  margin-bottom: 8px;
}

.order-meta {
  font-size: 13px;
}

@keyframes pulseHeart {
  0%,
  100% {
    transform: scale(1);
  }

  16% {
    transform: scale(1.12);
  }

  30% {
    transform: scale(0.98);
  }

  44% {
    transform: scale(1.18);
  }

  60% {
    transform: scale(1);
  }
}

@keyframes driftHeart {
  0% {
    transform: translateY(18px) scale(0.9);
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  100% {
    transform: translateY(-24px) translateX(18px) scale(1.12);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .admin-shell {
    padding: 16px 12px 42px;
  }

  .menu-items,
  .two-cols,
  .admin-menu-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    align-items: flex-start;
  }

  .pulse-heart {
    font-size: 58px;
  }
}
