:root {
  --cream: #fbf6ed;
  --paper: #fffdf8;
  --sand: #e6d4bb;
  --gold: #bf9762;
  --brown: #6f4b2d;
  --deep: #2b1710;
  --leaf: #78944e;
  --line: rgba(86, 55, 31, 0.18);
  --shadow: 0 16px 40px rgba(63, 42, 23, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--deep);
  background:
    radial-gradient(circle at 20% 10%, rgba(120, 148, 78, 0.14), transparent 28%),
    linear-gradient(135deg, #f7efe2, #fffaf2 55%, #ead8bf);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 84px 16px 92px;
  position: relative;
  background: rgba(255, 252, 245, 0.72);
  box-shadow: 0 0 0 1px rgba(92, 61, 35, 0.08);
}

.topbar,
.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 50%;
  width: min(100%, 430px);
  transform: translateX(-50%);
}

.topbar {
  top: 0;
  height: 68px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: white;
  background: linear-gradient(135deg, var(--gold), #8a6039);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 21px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
}

.icon-button,
.cart-button {
  height: 44px;
  border: 0;
  color: white;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  position: relative;
}

.cart-button {
  font-size: 25px;
}

.cart-button span {
  position: absolute;
  top: 1px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: #f9ead6;
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav {
  bottom: 0;
  height: 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 10px 12px;
  background: rgba(255, 252, 245, 0.94);
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  border: 0;
  border-radius: 18px;
  color: var(--brown);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.hero,
.payment-card,
.complete-card,
.form-card,
.selected-item,
.option-block,
.total-panel,
.admin-detail,
.cart-card,
.menu-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.hero {
  padding: 34px 22px;
  text-align: center;
}

.hero img {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  object-fit: contain;
}

.hero h1 {
  margin: 16px 0 8px;
  font-size: 36px;
  letter-spacing: 0;
}

.hero p,
.section-head p,
.payment-card p,
.complete-card p {
  margin: 0;
  color: #6f5a4a;
  font-size: 17px;
  line-height: 1.55;
}

.phone-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--brown);
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.order-steps,
.feature-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.order-steps {
  grid-template-columns: repeat(3, 1fr);
}

.order-steps div,
.feature-grid div {
  min-height: 86px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  text-align: center;
}

.order-steps strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--leaf);
}

.order-steps span,
.feature-grid span {
  color: #6f5a4a;
  font-size: 14px;
}

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

.profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.primary,
.ghost {
  min-height: 54px;
  border-radius: 18px;
  border: 0;
  padding: 0 18px;
  font-weight: 900;
}

.cart-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.install-hero {
  padding-top: 26px;
  padding-bottom: 26px;
}

.install-steps,
.privacy-box {
  display: grid;
  gap: 10px;
}

.install-steps {
  margin: 14px 0;
}

.install-steps div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf3;
}

.install-steps strong {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--leaf);
}

.install-secondary {
  margin-top: 10px;
}

.primary {
  color: white;
  background: linear-gradient(135deg, #8b5d35, #6b4327);
  box-shadow: 0 9px 18px rgba(96, 58, 29, 0.22);
}

.primary:disabled {
  opacity: 0.55;
}

.large {
  width: 100%;
  font-size: 21px;
}

.ghost {
  color: var(--brown);
  background: #fffaf3;
  border: 1px solid var(--line);
}

.small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

.logout-button {
  min-width: 76px;
  white-space: nowrap;
}

.section-head {
  margin: 4px 0 16px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 27px;
}

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

.tabs,
.segmented,
.extras,
.status-actions {
  display: grid;
  gap: 10px;
}

.tabs {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}

.tabs button,
.segmented button,
.extras button,
.status-actions button {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--deep);
  background: #fffaf3;
  font-weight: 800;
}

.tabs button.active,
.segmented button.active,
.extras button.active,
.status-actions button.active {
  color: white;
  border-color: transparent;
  background: var(--gold);
}

.menu-list,
.cart-list,
.simple-list,
.order-list {
  display: grid;
  gap: 12px;
}

.menu-card,
.cart-card,
.selected-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.selected-item {
  grid-template-columns: 116px 1fr;
  margin-bottom: 14px;
}

.menu-card h3,
.cart-card h3,
.selected-item h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.menu-card p,
.cart-info p,
.selected-item p {
  margin: 0 0 10px;
  color: #735d4d;
  line-height: 1.45;
}

.menu-card strong,
.cart-card strong,
.selected-item span {
  font-size: 20px;
  font-weight: 900;
}

.select-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brown);
  font-weight: 900;
}

.drink-art {
  height: 104px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#fffaf6, #ead9c2);
  border: 1px solid var(--line);
}

.drink-art span {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 17px;
  height: 62px;
  border: 4px solid rgba(43, 23, 16, 0.72);
  border-top-width: 2px;
  border-radius: 6px 6px 17px 17px;
  background: linear-gradient(#bf7e42 0 32%, #472212 33% 100%);
}

.drink-art b {
  position: absolute;
  left: 31px;
  right: 31px;
  top: 28px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.drink-art.latte span,
.drink-art.choco span {
  background: linear-gradient(#f3e1c7 0 45%, #b88254 46% 100%);
}

.drink-art.matcha span {
  background: linear-gradient(#e2efd4 0 45%, #79934d 46% 100%);
}

.drink-art.berry span,
.drink-art.grapefruit span {
  background: linear-gradient(#ffe4e4 0 44%, #d97969 45% 100%);
}

.drink-art.tea span {
  background: linear-gradient(#f5d99e 0 35%, #b66d34 36% 100%);
}

.drink-art.dessert span,
.drink-art.cake span,
.drink-art.cookie span {
  left: 18px;
  right: 18px;
  bottom: 27px;
  height: 34px;
  border-radius: 999px 999px 15px 15px;
  background: linear-gradient(#f9e7bd, #b9804c);
}

.option-block {
  padding: 18px;
}

.option-block h2 {
  margin: 0 0 18px;
}

.option-block label,
.form-card label,
.admin-detail label {
  display: block;
  margin: 18px 0 9px;
  font-size: 18px;
  font-weight: 900;
}

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

.pickup {
  grid-template-columns: 1fr;
}

.extras {
  grid-template-columns: 1fr;
}

.extras button {
  position: relative;
  z-index: 1;
}

.quantity {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}

.quantity button,
.cart-actions button {
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffaf3;
  color: var(--deep);
  font-size: 22px;
  font-weight: 900;
}

.quantity strong {
  text-align: center;
  font-size: 24px;
}

.sticky-actions {
  position: sticky;
  bottom: 84px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sticky-actions span {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.cart-card {
  grid-template-columns: 90px 1fr;
}

.cart-actions {
  grid-column: 2;
  display: grid;
  grid-template-columns: 44px 32px 44px 64px;
  align-items: center;
  gap: 8px;
}

.cart-actions b {
  text-align: center;
}

.cart-actions .remove {
  width: auto;
  border-radius: 14px;
  font-size: 13px;
}

.total-panel {
  margin: 14px 0;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 19px;
}

.total-panel strong {
  font-size: 27px;
}

.form-card,
.payment-card,
.complete-card,
.admin-detail {
  padding: 18px;
}

input,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffaf3;
  color: var(--deep);
  font-size: 18px;
}

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

.helper-text,
.error-text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.helper-text {
  color: #735d4d;
}

.error-text {
  color: #9f2f1f;
  font-weight: 800;
}

.admin-login-card .primary {
  margin-top: 16px;
}

.privacy-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf3;
}

.privacy-box b {
  margin-top: 4px;
}

.privacy-box span {
  color: #735d4d;
  line-height: 1.45;
}

.check-row {
  display: grid !important;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 22px;
  min-height: 22px;
}

.simple-list div,
.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.simple-list small {
  display: block;
  margin-top: 5px;
  color: #796657;
}

.payment-card,
.complete-card {
  text-align: center;
}

.payment-card h2,
.complete-card h2 {
  margin: 8px 0;
  font-size: 28px;
}

.leaf,
.check,
.admin-count {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--leaf);
  font-weight: 900;
}

.leaf {
  color: transparent;
  position: relative;
}

.leaf::before {
  content: "";
  width: 28px;
  height: 38px;
  border-radius: 50% 0 50% 50%;
  background: white;
  transform: rotate(30deg);
}

.check {
  font-size: 32px;
}

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

.admin-order {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 5px;
  padding: 13px;
  text-align: left;
  background: #fffaf3;
  color: var(--deep);
}

.admin-order.active {
  border-color: var(--gold);
  background: #f3e4cf;
}

.admin-order span,
.memo span {
  color: #735d4d;
}

.memo {
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.memo p {
  margin: 8px 0 0;
  font-weight: 800;
}

.status-actions {
  grid-template-columns: repeat(3, 1fr);
}

.payment-methods {
  grid-template-columns: repeat(2, 1fr);
  margin: 10px 0;
}

.empty {
  padding: 30px 18px;
  text-align: center;
}

.mini {
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

@media (min-width: 760px) {
  .phone-shell,
  .topbar,
  .bottom-nav {
    width: min(100%, 520px);
  }

  .phone-shell {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border-radius: 30px;
    overflow: hidden;
  }
}

@media (min-width: 390px) {
  .pickup {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ops-page {
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(244, 232, 213, 0.95)),
    #fbf6ed;
  color: var(--deep);
}

.ops-hero {
  max-width: 980px;
  margin: 0 auto 24px;
  text-align: center;
}

.ops-hero img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(92, 60, 34, 0.18);
}

.ops-hero h1 {
  margin: 14px 0 8px;
  font-size: 34px;
}

.ops-hero p,
.ops-note p {
  color: #6d5a4c;
  font-size: 18px;
}

.ops-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ops-card,
.ops-note {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(85, 59, 35, 0.11);
}

.ops-card {
  padding: 24px;
  text-align: center;
}

.ops-card span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f2e3cc;
  color: #6f4b2d;
  font-weight: 900;
}

.ops-card.admin span {
  background: #dfe9d5;
  color: #3f6133;
}

.ops-card h2 {
  margin: 14px 0;
  font-size: 28px;
}

.ops-card img {
  width: min(100%, 320px);
  border-radius: 18px;
  border: 10px solid #fbf6ed;
}

.ops-card a {
  display: block;
  margin: 16px auto 10px;
  max-width: 320px;
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--brown);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.ops-card small {
  display: block;
  max-width: 360px;
  margin: 0 auto 12px;
  color: #6d5a4c;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ops-card p {
  margin: 0;
  color: #6d5a4c;
  font-size: 16px;
}

.ops-note {
  max-width: 980px;
  margin: 18px auto 0;
  padding: 20px 24px;
}

.ops-note strong {
  font-size: 20px;
}

@media (max-width: 720px) {
  .ops-page {
    padding: 18px;
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .ops-hero h1 {
    font-size: 28px;
  }
}
