:root {
  --kakao-yellow: #FFE812;
  --kakao-brown: #3C1E1E;
  --kakao-dark: #1A1A1A;
  --kakao-orange: #FF6F00;
  --accent-red: #E8393D;
  --accent-green: #2ECC71;
  --bg-light: #FFF9F0;
  --bg-card: #FFFFFF;
  --text-sub: #6B7280;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
}

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg-light);
  color: var(--kakao-dark);
  min-height: 100vh;
}

/* ─── NAV ─── */
nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--kakao-yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--kakao-brown);
}

.nav-logo-icon:empty {
  display: none;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--kakao-brown);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--kakao-orange);
}

.nav-right {
  display: flex;
  gap: 12px;
}

.btn-login {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #444;
  transition: all 0.2s;
}

.btn-login:hover {
  border-color: var(--kakao-orange);
  color: var(--kakao-orange);
}

.btn-join {
  padding: 7px 18px;
  border-radius: 20px;
  border: none;
  background: var(--kakao-yellow);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--kakao-brown);
  transition: transform 0.15s;
}

.btn-join:hover {
  transform: scale(1.04);
}

/* 로그인 상태 네비게이션 */
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--kakao-brown);
}

.btn-admin {
  padding: 7px 18px;
  border-radius: 20px;
  border: none;
  background: var(--kakao-orange);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}

.btn-admin:hover {
  background: #e56500;
  transform: scale(1.04);
}

.btn-logout {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-mypage {
  padding: 7px 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, var(--kakao-yellow) 0%, #FFD700 100%);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--kakao-brown);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255, 232, 18, 0.3);
}

.btn-mypage:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(255, 232, 18, 0.5);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #FFF3CC 0%, #FFE8A0 50%, #FFDEA0 100%);
  padding: 60px 40px 50px;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,111,0,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(255,232,18,0.3) 0%, transparent 50%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  text-align: left;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* ─── 물방울 애니메이션 ─── */
.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: 50%;
  opacity: 0;
  animation: riseUp 10s infinite ease-in-out;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset -10px -10px 20px rgba(255, 255, 255, 0.4),
    inset 10px 10px 20px rgba(0, 0, 0, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.bubble:nth-child(1) {
  width: 60px;
  height: 60px;
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 80px;
  height: 80px;
  left: 20%;
  animation-duration: 10s;
  animation-delay: 1s;
}

.bubble:nth-child(3) {
  width: 50px;
  height: 50px;
  left: 35%;
  animation-duration: 9s;
  animation-delay: 2s;
}

.bubble:nth-child(4) {
  width: 70px;
  height: 70px;
  left: 50%;
  animation-duration: 11s;
  animation-delay: 0.5s;
}

.bubble:nth-child(5) {
  width: 65px;
  height: 65px;
  left: 65%;
  animation-duration: 9.5s;
  animation-delay: 1.5s;
}

.bubble:nth-child(6) {
  width: 55px;
  height: 55px;
  left: 75%;
  animation-duration: 8.5s;
  animation-delay: 2.5s;
}

.bubble:nth-child(7) {
  width: 75px;
  height: 75px;
  left: 85%;
  animation-duration: 10.5s;
  animation-delay: 0.8s;
}

.bubble:nth-child(8) {
  width: 45px;
  height: 45px;
  left: 15%;
  animation-duration: 9s;
  animation-delay: 3s;
}

.bubble:nth-child(9) {
  width: 90px;
  height: 90px;
  left: 45%;
  animation-duration: 12s;
  animation-delay: 1.2s;
}

.bubble:nth-child(10) {
  width: 60px;
  height: 60px;
  left: 90%;
  animation-duration: 9.5s;
  animation-delay: 2s;
}

@keyframes riseUp {
  0% {
    transform: translateY(0) translateX(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  20% {
    transform: translateY(-100px) translateX(20px) scale(0.9);
    opacity: 0.8;
  }
  40% {
    transform: translateY(-250px) translateX(-15px) scale(1);
    opacity: 0.7;
  }
  60% {
    transform: translateY(-400px) translateX(25px) scale(0.95);
    opacity: 0.5;
  }
  80% {
    transform: translateY(-550px) translateX(-20px) scale(0.9);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-700px) translateX(10px) scale(0.8);
    opacity: 0;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--kakao-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 900;
  color: var(--kakao-brown);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--kakao-orange);
}

.hero p {
  font-size: 16px;
  color: #5a4a3a;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--kakao-brown);
}

.stat-label {
  font-size: 12px;
  color: #7a6a5a;
  font-weight: 600;
  margin-top: 2px;
}

/* ─── MAIN LAYOUT ─── */
.main-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── LEFT CARD (Product Image Card) ─── */
.product-card {
  background: var(--kakao-yellow);
  border-radius: 24px;
  padding: 48px 32px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.product-icon-wrap {
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-icon-wrap svg {
  width: 72px;
  height: 72px;
}

.product-card-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(60,30,30,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.product-card h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--kakao-brown);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.product-card h2 span {
  display: block;
  font-size: 32px;
  color: var(--kakao-brown);
}

.product-features {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.product-features li {
  font-size: 15px;
  font-weight: 600;
  color: var(--kakao-brown);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  font-size: 12px;
  color: var(--kakao-orange);
  font-weight: 800;
  flex-shrink: 0;
}

.product-promo-image {
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.product-promo-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ─── RIGHT CARD (Order Form) ─── */
.order-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  border: 1px solid #f0ece4;
}

.order-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--kakao-brown);
  margin-bottom: 6px;
}

.order-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.stars {
  color: #F5A623;
  font-size: 16px;
  letter-spacing: 1px;
}

.rating-text {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}

/* Price row */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.price-original {
  font-size: 15px;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 500;
}

.price-sale {
  font-size: 18px;
  font-weight: 800;
  color: var(--kakao-orange);
}

.price-badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.order-note {
  font-size: 13px;
  color: var(--kakao-orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.order-note-gray {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* Section label */
.section-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--kakao-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-label .q-icon {
  width: 18px;
  height: 18px;
  background: #eee;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #999;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.section-label .q-icon[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  width: 240px;
  text-align: left;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
}

.section-label .q-icon[data-tooltip]:hover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  border: 8px solid transparent;
  border-top-color: #1a1a1a;
  z-index: 9999;
  pointer-events: none;
}

/* ─── PEOPLE GRID ─── */
.people-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.people-btn {
  position: relative;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid #e8e4de;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.people-btn:hover {
  border-color: var(--kakao-orange);
  color: var(--kakao-orange);
  background: #FFF8F0;
}

.people-btn.active {
  border-color: var(--kakao-orange);
  background: var(--kakao-orange);
  color: #fff;
  box-shadow: 0 3px 12px rgba(255,111,0,0.3);
}

.people-btn .discount-tag {
  position: absolute;
  top: -9px;
  right: -9px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
}

.people-btn.active .discount-tag {
  background: #fff;
  color: var(--accent-red);
}

/* ─── KAKAO LINK INPUT ─── */
.input-wrap {
  position: relative;
  margin-bottom: 24px;
}

.input-wrap input {
  width: 100%;
  padding: 13px 46px 13px 16px;
  border: 2px solid #e8e4de;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
  transition: border-color 0.2s;
  background: #fafafa;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--kakao-orange);
  background: #fff;
}

.input-wrap input::placeholder {
  color: #aaa;
}

.input-wrap .add-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--kakao-yellow);
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--kakao-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── WORK DATE SELECT ─── */
.select-wrap {
  position: relative;
  margin-bottom: 24px;
}

.select-wrap select {
  -webkit-appearance: none;
  width: 100%;
  padding: 13px 40px 13px 16px;
  border: 2px solid #e8e4de;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
  background: #fafafa url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-wrap select:focus {
  outline: none;
  border-color: var(--kakao-orange);
}

/* ─── PAYMENT METHOD BOX ─── */
.payment-method-box {
  padding: 14px 18px;
  border: 2px solid #e8e4de;
  border-radius: 10px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── PAYMENT TABS ─── */
.pay-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.pay-tab {
  flex: 1;
  padding: 11px 0;
  border-radius: 8px;
  border: 2px solid #e8e4de;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.pay-tab:hover {
  border-color: var(--kakao-orange);
  color: var(--kakao-orange);
}

.pay-tab.active {
  border-color: var(--kakao-orange);
  background: var(--kakao-orange);
  color: #fff;
}

/* ─── TRANSFER FIELDS ─── */
.transfer-fields {
  margin-bottom: 20px;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #e8e4de;
}

.transfer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.transfer-col {
  display: flex;
  flex-direction: column;
}

.section-label-sm {
  font-size: 13px;
  font-weight: 700;
  color: var(--kakao-dark);
  margin-bottom: 8px;
}

.transfer-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

.transfer-input:focus {
  outline: none;
  border-color: var(--kakao-orange);
}

.transfer-input::placeholder {
  color: #aaa;
}

.tax-tabs {
  display: flex;
  gap: 8px;
}

.tax-tab {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.tax-tab:hover {
  border-color: var(--kakao-orange);
  color: var(--kakao-orange);
}

.tax-tab.active {
  border-color: var(--kakao-orange);
  background: var(--kakao-orange);
  color: #fff;
}

.tax-info,
.cash-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cash-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.cash-tab {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.cash-tab:hover {
  border-color: var(--kakao-orange);
  color: var(--kakao-orange);
}

.cash-tab.active {
  border-color: var(--kakao-orange);
  background: var(--kakao-orange);
  color: #fff;
}

@media (max-width: 768px) {
  .transfer-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tax-tabs {
    flex-wrap: wrap;
  }
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 4px 0 18px;
}

/* ─── TOTAL PRICE ─── */
.total-wrap {
  background: #FFF8F0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.total-original-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.total-label-sm {
  font-size: 13px;
  color: var(--text-sub);
}

.total-price-sm {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
}

.total-discount-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.total-discount-label {
  font-size: 13px;
  color: var(--accent-red);
  font-weight: 600;
}

.total-discount-val {
  font-size: 13px;
  color: var(--accent-red);
  font-weight: 700;
}

.total-final-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--kakao-dark);
}

.total-final-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--kakao-brown);
}

/* ─── AGREE CHECK ─── */
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.agree-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--kakao-orange);
  cursor: pointer;
  flex-shrink: 0;
}

.agree-row label {
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  line-height: 1.5;
}

.agree-row label strong {
  color: #333;
}

/* ─── ORDER BUTTON ─── */
.btn-order {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: var(--kakao-yellow);
  font-size: 17px;
  font-weight: 800;
  color: var(--kakao-brown);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,232,18,0.35);
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,232,18,0.45);
}

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

.btn-order:disabled {
  background: #ddd;
  color: #999;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ─── PROCESS STEPS ─── */
.steps-section {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.steps-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--kakao-brown);
  margin-bottom: 28px;
}

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

.step-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #f0ece4;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--kakao-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--kakao-dark);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.step-arrow {
  position: absolute;
  right: -14px;
  top: 40px;
  font-size: 20px;
  color: var(--kakao-orange);
  z-index: 2;
}

/* ─── RECENT ORDERS ─── */
.recent-section {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.recent-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--kakao-brown);
  margin-bottom: 20px;
}

.recent-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.recent-table th {
  background: var(--kakao-brown);
  color: #fff;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.recent-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid #f0ece4;
}

.recent-table tr:last-child td {
  border-bottom: none;
}

.recent-table .status-up {
  color: var(--accent-green);
  font-weight: 700;
}

/* ─── TICKER LAYOUT (부드러운 애니메이션) ─── */
.ticker-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ticker-wrap > table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.ticker-body-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.ticker-body-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  position: relative;
}

.ticker-body-table tbody {
  display: block;
}

.ticker-body-table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.ticker-body-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid #f0ece4;
}

/* 공격적으로 빠른 슬라이드업 애니메이션 */
.ticker-row-enter {
  animation: aggressiveSlideUp 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes aggressiveSlideUp {
  0% {
    transform: translateY(44px) scale(0.95);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 매번 색상이 변하는 플래시 효과 */
.ticker-row-flash {
  animation: colorfulFlashBg 1.8s ease-out forwards;
}

@keyframes colorfulFlashBg {
  0% {
    background: var(--flash-color, rgba(46, 204, 113, 0.3));
    transform: scale(1.02);
  }
  15% {
    background: var(--flash-color, rgba(46, 204, 113, 0.3));
  }
  50% {
    background: color-mix(in srgb, var(--flash-color, rgba(46, 204, 113, 0.3)) 50%, transparent);
  }
  100% {
    background: transparent;
    transform: scale(1);
  }
}

/* CSS variable fallback for older browsers */
@supports not (background: color-mix(in srgb, red, blue)) {
  @keyframes colorfulFlashBg {
    0% {
      background: var(--flash-color, rgba(46, 204, 113, 0.3));
    }
    15% {
      background: var(--flash-color, rgba(46, 204, 113, 0.3));
    }
    50% {
      opacity: 0.5;
    }
    100% {
      background: transparent;
      opacity: 1;
    }
  }
}

/* ─── FOOTER ─── */
footer {
  background: var(--kakao-brown);
  color: rgba(255,255,255,0.6);
  padding: 40px 40px 30px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  margin: 0 10px;
}

/* ─── KAKAO CHAT BUBBLE ─── */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--kakao-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s;
}

.chat-bubble:hover {
  transform: scale(1.08);
}

.chat-bubble svg {
  width: 30px;
  height: 30px;
}

/* 텔레그램 버튼 스타일 */
.telegram-bubble {
  background: #0088cc !important;
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26,26,26,0.9);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
}

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

/* ─── 모바일 햄버거 메뉴 ─── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--kakao-brown);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 400px;
}

.mobile-menu ul {
  list-style: none;
  padding: 16px 0;
}

.mobile-menu ul li {
  border-bottom: 1px solid #f5f5f5;
}

.mobile-menu ul li:last-child {
  border-bottom: none;
}

.mobile-menu ul li a {
  display: block;
  padding: 16px 24px;
  text-decoration: none;
  color: #444;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
  background: #FFF9F0;
  color: var(--kakao-orange);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  /* 네비게이션 */
  nav {
    padding: 0 16px;
    height: 56px;
  }

  .nav-logo-text {
    font-size: 18px;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .nav-right {
    gap: 8px;
  }

  .btn-login,
  .btn-join,
  .btn-logout,
  .btn-mypage,
  .btn-admin {
    padding: 8px 14px;
    font-size: 12px;
  }

  .user-name {
    font-size: 13px;
  }

  /* 히어로 섹션 */
  .hero {
    padding: 40px 20px 30px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 14px;
  }

  .hero-stats {
    gap: 28px;
    margin-top: 24px;
    flex-wrap: wrap;
  }

  .stat-num {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  .hero-image img {
    max-width: 100%;
  }

  /* 메인 레이아웃 */
  .main-wrap {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin: 24px auto;
    gap: 24px;
  }

  /* 상품 카드 */
  .product-card {
    padding: 32px 24px 28px;
    min-height: auto;
  }

  .product-icon-wrap {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }

  .product-icon-wrap svg {
    width: 56px;
    height: 56px;
  }

  .product-card h2 {
    font-size: 24px;
  }

  .product-card h2 span {
    font-size: 28px;
  }

  .product-features li {
    font-size: 14px;
  }

  .product-promo-image {
    margin-top: 20px;
  }

  .product-promo-image img {
    border-radius: 12px;
  }

  /* 주문 카드 */
  .order-card {
    padding: 24px 20px 20px;
  }

  .order-title {
    font-size: 20px;
  }

  .order-rating {
    flex-wrap: wrap;
  }

  .stars {
    font-size: 14px;
  }

  .rating-text {
    font-size: 12px;
  }

  .price-row {
    flex-wrap: wrap;
  }

  .price-original {
    font-size: 14px;
  }

  .price-sale {
    font-size: 17px;
  }

  .price-badge {
    font-size: 10px;
  }

  .order-note,
  .order-note-gray {
    font-size: 12px;
  }

  .section-label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* 신청수량 버튼 */
  .people-grid {
    gap: 6px;
    margin-bottom: 20px;
  }

  .people-btn {
    padding: 12px 16px;
    font-size: 13px;
    min-width: 80px;
  }

  .people-btn .discount-tag {
    font-size: 9px;
    padding: 2px 5px;
  }

  /* 입력 필드 */
  .input-wrap input,
  .select-wrap select,
  .payment-method-box {
    font-size: 15px;
    padding: 14px 16px;
    min-height: 48px;
  }

  .input-wrap input {
    padding: 14px 50px 14px 16px;
  }

  /* 주문 버튼 */
  .btn-order {
    padding: 18px;
    font-size: 16px;
    min-height: 54px;
  }

  /* 진행 단계 */
  .steps-section {
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .steps-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 24px 18px 20px;
  }

  .step-card h4 {
    font-size: 16px;
  }

  .step-card p {
    font-size: 14px;
  }

  .step-arrow {
    display: none;
  }

  /* 실시간 주문 */
  .recent-section {
    padding: 0 16px;
    margin-bottom: 40px;
  }

  .recent-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* 모바일에서 신청날짜 컬럼 숨기기 */
  .recent-table th:first-child,
  .recent-table td:first-child {
    display: none;
  }

  .recent-table th,
  .recent-table td {
    font-size: 12px;
    padding: 10px 6px;
  }

  .ticker-body-wrap {
    height: 180px;
  }

  /* 푸터 */
  footer {
    padding: 28px 20px 24px;
    font-size: 12px;
  }

  /* 채팅 버블 */
  .chat-bubble {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }

  .chat-bubble svg {
    width: 26px;
    height: 26px;
  }

  /* 토스트 */
  .toast {
    bottom: 80px;
    font-size: 13px;
    padding: 12px 24px;
    max-width: 90%;
    white-space: normal;
  }

  /* 주문 모달 */
  .order-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .order-modal-header {
    padding: 20px;
  }

  .order-modal-header h3 {
    font-size: 20px;
  }

  .order-modal-body {
    padding: 20px;
  }

  .order-step {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .order-step-number {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .order-step-content h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .order-info-box,
  .order-bank-info {
    padding: 14px;
  }

  .order-info-label {
    font-size: 13px;
  }

  .order-info-value {
    font-size: 14px;
  }

  .order-notice {
    font-size: 13px;
    padding: 12px;
  }

  .btn-order-confirm {
    padding: 16px;
    font-size: 16px;
  }
}

/* 더 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 18px;
  }

  .people-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: auto;
  }

  .order-title {
    font-size: 18px;
  }

  .steps-grid {
    gap: 12px;
  }

  .nav-logo-text {
    font-size: 16px;
  }

  .btn-login,
  .btn-join {
    padding: 7px 12px;
    font-size: 11px;
  }
}

/* ═══════════════════════════════════════════════════════════
   주문 확인 모달
   ═══════════════════════════════════════════════════════════ */
.order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.order-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.order-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.order-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #2d3436;
  margin: 0;
}

.order-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8f9fa;
  border-radius: 10px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-weight: 300;
  line-height: 1;
}

.order-modal-close:hover {
  background: #e9ecef;
  color: #2d3436;
  transform: rotate(90deg);
}

.order-modal-body {
  padding: 24px;
}

.order-step {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.order-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.order-step-content {
  flex: 1;
}

.order-step-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: #2d3436;
  margin: 0 0 16px 0;
}

.order-info-box,
.order-bank-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #dee2e6;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #dee2e6;
}

.order-info-row:last-child {
  border-bottom: none;
}

.order-info-row.total {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  margin: 8px -18px -18px;
  padding: 16px 18px;
  border-radius: 0 0 12px 12px;
  border: none;
}

.order-info-row.total .order-info-label,
.order-info-row.total .order-info-value {
  color: #fff;
  font-size: 18px;
}

.order-info-label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.order-info-value {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
}

.order-account-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-copy-order {
  padding: 8px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-copy-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.order-notice {
  font-size: 14px;
  color: #495057;
  margin-bottom: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-left: 4px solid #ffc107;
  border-radius: 6px;
  font-weight: 500;
}

.btn-order-confirm {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  letter-spacing: 0.5px;
}

.btn-order-confirm:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.btn-order-confirm:active {
  transform: translateY(-1px);
}
