:root {
  --primary: #0F8A78;
  --primary-dark: #0B7364;
  --primary-soft: #E3F3EF;
  --mint: #2EC4B6;
  --mint-soft: #E7FAF8;
  --bg: #FFFFFF;
  --bg-soft: #F5F9F8;
  --border: #E2ECE9;
  --text: #1B2733;
  --text-muted: #5B6B7C;
  --danger: #D64545;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 20px rgba(27, 39, 51, .06);
  --shadow-lg: 0 12px 34px rgba(15, 138, 120, .18);
  --btn-h: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#categories { scroll-margin-top: 84px; }
body {
  margin: 0;
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: 0;
}
body.has-order-bar { padding-bottom: 148px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
p { margin: 0 0 1em; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  max-width: 1320px; height: 68px;
}
.brand { font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: .02em; flex: 0 0 auto; }
.brand span { color: var(--primary); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 38px; flex: 1; min-width: 0; }
.main-nav a { color: var(--text-muted); font-weight: 500; font-size: 15px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { color: var(--primary); text-decoration: none; }
@media (max-width: 1420px) {
  .site-header .container { gap: 18px; }
  .main-nav { gap: 26px; }
}
@media (max-width: 1260px) {
  .main-nav a { font-size: 14px; }
  .main-nav { gap: 18px; }
}
@media (max-width: 1100px) {
  .main-nav { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
}
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-weight: 600; font-size: 14px;
}
.header-cta:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 22px; border: 0; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-mint { background: var(--mint); }
.btn-mint:hover { background: #25A99C; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 600px at 80% -12%, rgba(23, 163, 142, .24), transparent 62%),
    radial-gradient(900px 520px at -8% 18%, rgba(46, 196, 182, .14), transparent 60%),
    radial-gradient(820px 500px at 52% 118%, rgba(15, 138, 120, .18), transparent 62%),
    linear-gradient(160deg, #061410 0%, #0A211D 50%, #071713 100%);
  box-shadow: inset 0 -1px 0 rgba(121, 224, 202, .14);
}
/* 技术网格 */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(121, 224, 202, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 224, 202, .06) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 30%, transparent 76%);
  mask-image: radial-gradient(120% 92% at 50% 0%, #000 30%, transparent 76%);
}
/* 缓慢漂移的极光 */
.hero::after {
  content: ""; position: absolute; inset: -22%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(15, 138, 120, .40), transparent 70%) 18% 20% / 44% 48% no-repeat,
    radial-gradient(closest-side, rgba(43, 217, 192, .26), transparent 70%) 84% 74% / 38% 44% no-repeat,
    radial-gradient(closest-side, rgba(46, 196, 182, .24), transparent 70%) 70% 6% / 34% 40% no-repeat;
  filter: blur(36px);
  animation: hero-drift 24s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
/* 透视网格地平线 */
.hero-floor {
  position: absolute; left: -10%; right: -10%; bottom: -70px; height: 300px;
  pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(121, 224, 202, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 224, 202, .22) 1px, transparent 1px);
  background-size: 72px 46px;
  transform: perspective(460px) rotateX(63deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 62%, transparent);
}
/* 跟随鼠标的柔光 */
.hero-spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px 460px at var(--mx, 72%) var(--my, 30%), rgba(23, 163, 142, .16), transparent 70%);
}
.hero .container { position: relative; z-index: 1; padding-top: 112px; padding-bottom: 124px; text-align: left; }
.hero-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: center; }
.hero-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(121, 224, 202, .3);
  color: #C9F0E8; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 24px rgba(23, 163, 142, .14);
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: #58E0C6;
  animation: hero-dot 2.4s ease-out infinite;
}
@keyframes hero-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 224, 198, .65); }
  60% { box-shadow: 0 0 0 7px rgba(88, 224, 198, 0); }
}
.hero h1 {
  color: #fff; font-size: 48px; line-height: 1.24; letter-spacing: -.02em; margin-bottom: 22px;
  text-shadow: 0 0 46px rgba(23, 163, 142, .28);
}
.hero-h1-grad {
  background: linear-gradient(92deg, #6FE0C8 0%, #B6F5E8 42%, #58E0C6 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  animation: hero-grad 7s ease-in-out infinite;
}
@keyframes hero-grad {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero .lead { color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.75; max-width: 580px; margin: 0 0 34px; }

.hero-search { position: relative; max-width: 620px; }
.hero-search::before {
  content: ""; position: absolute; inset: -10px -8px -16px; z-index: -1; border-radius: 24px;
  background: linear-gradient(100deg, rgba(23, 163, 142, .4), rgba(43, 217, 192, .32), rgba(46, 196, 182, .36));
  filter: blur(20px); opacity: .55;
}
.hero-search-form {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 8px 8px 8px 18px;
  box-shadow: 0 0 0 1px rgba(121, 224, 202, .25), 0 22px 54px rgba(2, 8, 16, .55);
  transition: box-shadow .2s ease;
}
.hero-search-form:focus-within {
  box-shadow: 0 0 0 1px rgba(121, 224, 202, .55), 0 22px 54px rgba(2, 8, 16, .55), 0 0 0 5px rgba(23, 163, 142, .28), 0 0 48px rgba(43, 217, 192, .22);
}
.hero-search-form > svg { width: 20px; height: 20px; flex: none; color: #8593A1; }
.hero-search-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 15.5px; color: var(--text); padding: 10px 0;
}
.hero-search-input::placeholder { color: #93A1AF; }
.hero-search-submit {
  flex: none; padding: 12px 22px; border: 0; border-radius: 12px;
  background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: background .15s;
}
.hero-search-submit:hover { background: var(--primary-dark); }
.hero-search-panel {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(3, 10, 18, .3); overflow: hidden; text-align: left;
}
.hero-search-panel[hidden] { display: none; }
.hero-result {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px; border: 0; border-top: 1px solid #EDF3F1; background: #fff;
  font: inherit; text-align: left; cursor: pointer;
}
.hero-result:first-child { border-top: 0; }
.hero-result:hover, .hero-result:focus-visible { background: var(--primary-soft); outline: none; }
.hero-result-name { font-weight: 600; font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-result-cat { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.hero-result-price { margin-left: auto; flex: none; color: var(--primary); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.hero-search-empty { padding: 16px; color: var(--text-muted); font-size: 14px; }

.hero-quick { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-quick-btn {
  position: relative; overflow: hidden;
  flex: 1 1 0; justify-content: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px;
  border: 1px solid rgba(121, 224, 202, .28); background: rgba(255, 255, 255, .06);
  color: #fff; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.hero-quick-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .22) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .65s ease; pointer-events: none;
}
.hero-quick-btn:hover::before { transform: translateX(130%); }
.hero-quick-btn b { font-size: 18px; line-height: 1; color: #8FE6D6; }
.hero-quick-btn svg { width: 18px; height: 18px; }
.hero-quick-btn:hover {
  background: rgba(23, 163, 142, .16); border-color: rgba(121, 224, 202, .55);
  transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 138, 120, .22);
}
.hero-quick-btn.solid {
  background: linear-gradient(135deg, #17A38E, #0B7364);
  border-color: rgba(121, 224, 202, .55);
  box-shadow: 0 12px 32px rgba(15, 138, 120, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.hero-quick-btn.solid b { color: #fff; }
.hero-quick-btn.solid:hover {
  background: linear-gradient(135deg, #22B49C, #0E8A76);
  border-color: rgba(182, 245, 232, .75);
  box-shadow: 0 16px 40px rgba(15, 138, 120, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.hero-badges { display: flex; gap: 8px; }
.hero-badges span {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  flex: 1 1 auto;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 6px 8px; font-size: 11.5px; color: rgba(255, 255, 255, .68);
  backdrop-filter: blur(6px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.hero-badges span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #6FE0C8, #58E0C6);
}

.hero-notice {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border: 1px solid rgba(121, 224, 202, .2);
  border-radius: 22px; padding: 26px 26px 22px;
  box-shadow: 0 30px 70px rgba(2, 8, 16, .55), inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 40px rgba(15, 138, 120, .10);
  backdrop-filter: blur(16px) saturate(130%);
  overflow: hidden;
}
.hero-notice::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 224, 202, .9), rgba(88, 224, 198, .8), transparent);
}
/* Corner ticks: no border-radius here, or the ticks get clipped into curved fragments. */
.hero-notice::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(#B6F5E8, #B6F5E8) left top / 16px 1px no-repeat,
    linear-gradient(#B6F5E8, #B6F5E8) left top / 1px 16px no-repeat,
    linear-gradient(#B6F5E8, #B6F5E8) right bottom / 16px 1px no-repeat,
    linear-gradient(#B6F5E8, #B6F5E8) right bottom / 1px 16px no-repeat;
  opacity: .35;
}
.hero-notice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hero-notice-label { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.hero-notice-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #58E0C6;
  animation: hero-dot 2.4s ease-out infinite;
}
.hero-notice .notice-meta { color: rgba(255, 255, 255, .55); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.notice-viewport { overflow: hidden; }
.notice-track { display: flex; transition: transform .45s ease; }
.notice-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.notice-slide h3 { margin: 0 0 8px; color: #fff; font-size: 15px; }
.notice-slide h3 a { color: inherit; text-decoration: none; }
.notice-slide h3 a:hover { text-decoration: underline; }
.notice-slide p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.82; }
.hero-notice-nav { display: flex; gap: 8px; margin-top: 16px; }
.hero-notice-nav button {
  flex: 1; padding: 9px 10px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  color: #D7EFE9; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.hero-notice-nav button:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Category cards (home) ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px;
}
.cat-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.cat-card .cat-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cat-card .cat-icon svg { width: 25px; height: 25px; }
.cat-card:hover .cat-icon {
  background: var(--primary); color: #fff;
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(15, 138, 120, .28);
}
.cat-card h3 { font-size: 17px; margin: 0 0 6px; }
.cat-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.cat-card .cat-more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px 30px; position: relative;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
.step:hover,
.step.is-active { transform: translateY(-6px); }
.step:hover { border-color: var(--primary); box-shadow: 0 18px 36px rgba(15, 25, 35, .12); }
.step.is-active {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  border-color: var(--primary-dark);
  box-shadow: 0 18px 36px rgba(15, 138, 120, .28);
}
.step .num {
  width: 30px; height: 30px; border-radius: 999px; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .28s ease, background-color .28s ease, color .28s ease;
}
.step:hover .num { transform: scale(1.16); box-shadow: 0 0 0 6px var(--primary-soft); }
.step.is-active .num {
  transform: scale(1.16); background: #fff; color: var(--primary);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .22);
  animation: num-pulse 1.6s ease-in-out infinite;
}
@keyframes num-pulse {
  50% { box-shadow: 0 0 0 11px rgba(255, 255, 255, .12); }
}
.step h3 { font-size: 16px; margin: 0 0 8px; transition: color .28s ease; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; word-break: keep-all; transition: color .28s ease; }
.step.is-active h3 { color: #fff; }
.step.is-active p { color: rgba(255, 255, 255, .82); }

/* 스크롤 진입 스태거 애니메이션 (JS가 steps-anim을 붙일 때만) */
.steps.steps-anim:not(.is-visible) .step { opacity: 0; transform: translateY(20px); }
@keyframes step-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.steps.is-visible .step { animation: step-in .55s cubic-bezier(.22, .61, .36, 1) backwards; }
.steps.is-visible .step:nth-child(2) { animation-delay: .1s; }
.steps.is-visible .step:nth-child(3) { animation-delay: .2s; }
.steps.is-visible .step:nth-child(4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero-h1-grad,
  .hero-eyebrow::before,
  .hero-notice-label::before,
  .step.is-active .num { animation: none; }
  .hero-quick-btn::before { display: none; }
}

/* ---------- Category selector ---------- */
.tabs-wrap {
  position: sticky; top: 68px; z-index: 40;
  padding: 10px 0 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
}
.tabs-shell {
  min-width: 0;
  padding: 12px 14px 14px;
  background: #08140F;
  border: 1px solid rgba(111, 224, 200, .2);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(4, 20, 16, .14);
  overflow: hidden;
}
.tabs-intro {
  display: flex; align-items: baseline; gap: 10px;
  padding: 0 4px 9px;
}
.tabs-intro strong { color: #FFFFFF; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.tabs-intro span { color: rgba(255, 255, 255, .55); font-size: 12.5px; }
.tabs {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; flex: 1 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 18px;
  border: 1px solid rgba(111, 224, 200, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .72);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.tabs a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(111, 224, 200, .35);
}
.tabs a.is-active {
  color: #04140F; font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #7BEBD4 0%, #45C9AC 100%);
}
.tabs a.is-active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #04140F;
  animation: tab-dot 1.3s ease-in-out infinite;
}
@keyframes tab-dot {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 3px rgba(4, 20, 15, .14); }
  50%      { opacity: .25; box-shadow: 0 0 0 5px rgba(4, 20, 15, .04); }
}
.tabs a.is-active:hover {
  color: #04140F;
  background: linear-gradient(135deg, #85EFDA 0%, #4FD3B7 100%);
}
.tabs a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tabs a.is-active::before { animation: none; }
}

/* ---------- Product table (category) ---------- */
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 32px 0 16px; }
.panel-head h1 { margin: 0; font-size: 26px; }
.panel-head .hint { color: var(--text-muted); font-size: 14px; }

.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 330px 130px;
  align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s;
}
.product-row.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.product-row .check { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.product-row .p-name { font-weight: 700; }
.product-row .p-name a { color: var(--text); }
.product-row .p-includes { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.qty button {
  width: 34px; height: 38px; border: 0; background: var(--bg-soft); font-size: 16px; cursor: pointer; color: var(--text);
}
.qty button:hover { background: #E3F3EF; }
.qty input {
  width: 42px; height: 38px; border: 0; text-align: center; font: inherit; font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty button:disabled, .qty input:disabled { opacity: .4; cursor: not-allowed; }
.qty button:disabled:hover { background: var(--bg-soft); }
.product-row:not(.is-selected) .p-controls { opacity: .55; }
.p-controls { display: flex; flex-direction: column; gap: 8px; }
.ctrl-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.ctrl-label { min-width: 72px; font-weight: 600; color: var(--text); }
.ctrl-unit { white-space: nowrap; }
.ctrl-unit em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.row-total { text-align: right; font-weight: 700; white-space: nowrap; }
.row-total small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; }

/* ---------- Order bar (fixed) ---------- */
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(27, 39, 51, .08);
  transform: translateY(110%); transition: transform .22s ease;
}
.order-bar.is-visible { transform: translateY(0); }
.order-bar .container { display: flex; align-items: center; gap: 20px; height: 76px; }
.order-bar .summary { display: flex; flex-direction: column; line-height: 1.25; }
.order-bar .summary .count { color: var(--text-muted); font-size: 13px; }
.order-bar .summary .amount { font-size: 20px; font-weight: 800; }
.order-bar .spacer { flex: 1; }
.order-bar .btn { min-width: 200px; }
.order-bar .bar-note { color: var(--text-muted); font-size: 13px; }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.detail-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.detail-card + .detail-card { margin-top: 16px; }
.price-box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.price-box .big { font-size: 30px; font-weight: 800; margin: 4px 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .req { color: var(--danger); margin-left: 2px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.help { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* ---------- Order page ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.summary-card h2 { font-size: 18px; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.sum-line strong { color: var(--text); }
.sum-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 10px; border-top: 1px dashed var(--border); font-size: 18px; font-weight: 800; }
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line-item:last-child { border-bottom: 0; }
.line-item .li-name { font-weight: 600; }
.line-item .li-meta { color: var(--text-muted); font-size: 13px; }
.line-item .li-total { font-weight: 700; white-space: nowrap; }
.line-item.order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 28px; padding: 18px 0; }
.order-item .li-controls { display: flex; flex-direction: column; gap: 8px; }
.order-item .li-readonly { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.order-item .ctrl-line { gap: 8px; }
.order-item .li-total { text-align: right; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
}
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.radio-card input { accent-color: var(--primary); }
.radio-card .fee { margin-left: auto; font-weight: 700; }

/* ---------- Misc ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 40px 0; }
.page-hero h1 { margin: 0; }
.breadcrumb { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.empty { text-align: center; color: var(--text-muted); padding: 48px 0; }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.notice-error { background: #FDEEEE; color: var(--danger); }
.notice-ok { background: var(--mint-soft); color: #17867C; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mint-soft); color: #17867C; }

/* ---------- Fixed contact bar ---------- */
body { padding-bottom: 56px; }
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #0B1622; color: #AAB8C5; font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 -6px 20px rgba(15, 25, 35, .18);
  transition: bottom .22s ease;
}
body.has-order-bar .contact-bar { bottom: 77px; }
.contact-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 56px; max-width: 1320px; }

.channel-fab {
  position: fixed; right: 24px; bottom: 76px; z-index: 70;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 138, 120, .32);
  transition: transform .15s, background .15s;
}
.channel-fab:hover { background: var(--primary-dark); transform: translateY(-2px); }
.channel-fab svg { width: 26px; height: 26px; }
body.has-order-bar .channel-fab { bottom: 152px; }
body.channel-open .channel-fab { display: none; }
.contact-info { display: flex; align-items: center; gap: 28px; min-width: 0; }
.contact-info a, .contact-info span { display: inline-flex; align-items: center; gap: 7px; color: #AAB8C5; white-space: nowrap; }
.contact-info a:hover, .contact-links a:hover, .contact-links button:hover { color: #fff; text-decoration: none; }
.contact-addr { color: #AAB8C5; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.contact-links { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.contact-links a, .contact-links button { display: inline-flex; align-items: center; gap: 7px; color: #CBD6E0; font-weight: 600; font-size: inherit; }
.contact-links button { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.contact-bar svg { width: 16px; height: 16px; flex: 0 0 auto; color: #6FE0C8; }
@media (max-width: 1200px) {
  .contact-addr { display: none; }
}
@media (max-width: 768px) {
  body { padding-bottom: 52px; }
  body.has-order-bar { padding-bottom: 136px; }
  .contact-bar .container { height: 52px; gap: 12px; }
  .contact-bar { font-size: 13px; }
  body.has-order-bar .contact-bar { bottom: 69px; }
  .channel-fab { right: 16px; bottom: 68px; width: 52px; height: 52px; }
  body.has-order-bar .channel-fab { bottom: 136px; }
  .contact-info { gap: 14px; min-width: 0; }
  .contact-info .contact-email { display: none; }
  .contact-info .contact-addr { display: none; }
  .contact-links { gap: 14px; }
  .contact-bar .container { gap: 10px; }
}

@media (max-width: 420px) {
  .contact-info { gap: 10px; }
  .contact-bar svg { width: 15px; height: 15px; }
  .contact-bar { font-size: 12.5px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0B1622; color: #AAB8C5; margin-top: 64px; padding: 40px 0 22px; font-size: 13.5px; }
.site-footer .container { max-width: 1320px; }
.site-footer a { color: #CBD6E0; }
.footer-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.footer-brand .brand { color: #fff; font-size: 20px; }
.footer-brand p { margin: 12px 0 0; line-height: 1.7; color: #8FA0B0; }
.footer-info p { margin: 0 0 7px; line-height: 1.6; color: #AAB8C5; }
.footer-info strong { color: #fff; font-weight: 700; }
.footer-info .sep { color: #46586A; margin: 0 7px; }
.footer-channels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; }
.footer-channels strong { color: var(--mint); font-weight: 700; margin-right: 4px; }
.footer-channels a { color: #7C8C9C; }
.footer-channels a:hover { color: #CBD6E0; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); color: #7C8C9C; font-size: 12.5px; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-policies button { background: none; border: 0; padding: 0; font: inherit; color: #AAB8C5; cursor: pointer; }
.footer-policies button:hover { color: #fff; }

/* ---------- Footer policy dialogs ---------- */
.policy-dialog { width: min(760px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(15, 25, 35, .35); }
.policy-dialog::backdrop { background: rgba(12, 20, 28, .6); backdrop-filter: blur(2px); }
.policy-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.policy-head h2 { margin: 0; font-size: 18px; color: var(--text); }
.policy-close { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0 4px; }
.policy-close:hover { color: var(--text); }
.policy-body { padding: 20px 22px 26px; overflow-y: auto; max-height: calc(80vh - 64px); font-size: 13.5px; line-height: 1.8; color: #3D4A57; }
.policy-body img { max-width: 100%; height: auto; }

/* ---------- Sample modal ---------- */
.sample-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text-muted); font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.sample-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.sample-btn svg { width: 14px; height: 14px; }

.sample-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.sample-modal[hidden] { display: none; }
.sample-backdrop { position: absolute; inset: 0; background: rgba(15, 25, 35, .72); }
.sample-dialog {
  position: relative; z-index: 1; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sample-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sample-close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0 4px; }
.sample-close:hover { color: var(--text); }
.sample-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #F2F5F9; padding: 12px; }
.sample-stage img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.sample-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: rgba(255, 255, 255, .9); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.sample-nav:hover { background: #fff; color: var(--primary); }
.sample-nav.prev { left: 10px; }
.sample-nav.next { right: 10px; }
.sample-nav[hidden] { display: none; }
.sample-foot { padding: 8px 16px; text-align: center; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); }
body.sample-open { overflow: hidden; }

/* ---------- Home dialogs ---------- */
.home-modal .policy-body { padding: 22px; }
.modal-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.modal-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; font: inherit; font-size: 15px; color: var(--text);
}
.modal-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.modal-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-muted); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.docs-modal .policy-body { max-height: calc(84vh - 64px); }
.docs-intro { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.docs-body h3 { margin: 24px 0 6px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 16px; color: var(--text); }
.docs-body h3:first-of-type { border-top: 0; padding-top: 0; }
.docs-note { margin: 0 0 6px; color: var(--text-muted); }
.docs-body ol { margin: 8px 0 12px; padding-left: 20px; }
.docs-body li { margin-bottom: 4px; }
.docs-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--primary); font-size: 13px; font-weight: 600;
}
.docs-download:hover { border-color: var(--primary); background: var(--primary-soft); }
.docs-download b { font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-badges span { font-size: 10.5px; padding: 6px 6px; gap: 4px; }
}

@media (max-width: 900px) {
  .hero .container { padding-top: 72px; padding-bottom: 76px; }
  .hero h1 { font-size: 34px; }
  .hero-shell { grid-template-columns: 1fr; gap: 34px; }
  .hero-search { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .order-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .line-item.order-item { grid-template-columns: 1fr auto; }
  .order-item .li-controls { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .product-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; }
  .product-row .check { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
  .product-row .p-controls { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .product-row .row-total { grid-column: 2 / -1; text-align: right; }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .tabs a { padding: 0 12px; font-size: 13px; gap: 6px; }
  .tabs-intro span { display: none; }
  .tabs {
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  }
}

@media (max-width: 768px) {
  .site-header .container { height: 60px; gap: 14px; overflow: hidden; }
  .main-nav { gap: 14px; overflow-x: auto; }
  .main-nav a { font-size: 14px; }
  .header-cta { display: none; }
  .tabs-wrap { top: 60px; padding: 8px 0; }
  .tabs-shell { padding: 10px 10px 12px; border-radius: 14px; }
  .tabs-intro { padding: 0 2px 8px; gap: 8px; }
  .tabs-intro strong { font-size: 14px; }
  .tabs-intro span { font-size: 11.5px; }
  .tabs {
    padding: 0 12px;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  }
  .tabs a {
    flex: 0 0 auto; min-height: 46px;
    padding: 0 14px; font-size: 14px; gap: 7px;
  }
  .hero .container { padding-top: 56px; padding-bottom: 60px; }
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 15.5px; }
  .hero-search-form { padding: 6px 6px 6px 14px; border-radius: 14px; }
  .hero-search-input { font-size: 14.5px; }
  .hero-search-submit { padding: 11px 16px; font-size: 13.5px; }
  .hero-result-cat { display: none; }
  .hero-badges { flex-wrap: wrap; }
  .hero-badges span { flex: 1 1 calc(50% - 4px); }
  .hero-quick-btn { flex: 1; justify-content: center; padding: 12px; font-size: 13.5px; }
  .hero-notice { padding: 18px 18px 14px; }
  .modal-actions { flex-direction: column; }

  .order-bar .container { height: 68px; gap: 12px; padding: 0 14px; }
  .order-bar .bar-note { display: none; }
  .order-bar .summary .amount { font-size: 17px; }
  .order-bar .btn { min-width: 0; padding: 0 18px; flex: 1; max-width: 190px; }

  .detail-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* ---------- Payment / result ---------- */
.result-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px; text-align: center;
}
.result-card h1 { font-size: 24px; }
.result-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.result-icon svg { width: 30px; height: 30px; }
.result-ok { background: var(--mint-soft); color: #17867C; }
.result-fail { background: #FDEEEE; color: var(--danger); }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.bank-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft); padding: 18px 20px; margin: 20px 0; text-align: left;
}
.bank-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.bank-row span { color: var(--text-muted); }
.agree { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); margin-top: 16px; }
.agree input { accent-color: var(--primary); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.field-inline { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.field-inline .help { margin: 0; }
.status-pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
}
.status-pill.is-paid { background: var(--mint-soft); color: #17867C; }
.status-pill.is-pending { background: #FFF6E5; color: #A9720B; }
.status-pill.is-fail { background: #FDEEEE; color: var(--danger); }
.lookup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }

/* ---------- Content ---------- */
.content-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.content-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.content-item:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.content-item .thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.content-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.content-item .title { font-weight: 700; font-size: 16px; }
.content-item .meta { color: var(--text-muted); font-size: 13px; }
.content-item .arrow { color: var(--text-muted); font-size: 22px; }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.gallery-item {
  display: flex; flex-direction: column; overflow: hidden; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gallery-item:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); transform: translateY(-2px); }
.gallery-item .cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.gallery-item .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover .cover img { transform: scale(1.04); }
.gallery-item .cover-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #b6c2d1; font-weight: 800; letter-spacing: 2px; font-size: 13px; }
.gallery-item .cover .badge-top { position: absolute; top: 10px; left: 10px; margin: 0; }
.gallery-item .body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.gallery-item .title {
  font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-item .meta { color: var(--text-muted); font-size: 12px; }
.badge-top { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--primary); border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }
.empty-box { text-align: center; color: var(--text-muted); padding: 64px 0; }
.pager { margin-top: 24px; text-align: center; }
.pager ul { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 6px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-muted); }
.pager .active a, .pager .active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.article-head { margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.article-head .meta { color: var(--text-muted); font-size: 14px; }
.article-thumb { margin: 0 0 20px; }
.article-thumb img { max-width: 100%; border-radius: var(--radius); display: block; }
.prose { font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose a { text-decoration: underline; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 20px; }
.article-gallery img { width: 100%; border-radius: var(--radius-sm); display: block; }
.article { max-width: 880px; margin: 0 auto; }
.replies { max-width: 880px; margin: 28px auto 0; }
.reply { border-top: 1px solid var(--border); padding: 14px 0; }
.reply .meta { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.article-nav { display: flex; flex-direction: column; gap: 8px; max-width: 880px; margin: 28px auto 0; border-top: 1px solid var(--border); padding-top: 16px; }
.article-nav a { display: flex; gap: 12px; color: var(--text); }
.article-nav a span { color: var(--text-muted); flex: 0 0 64px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--text-muted); flex: 0 0 120px; }

/* ---------- Home extra ---------- */
.home-block + .home-block { margin-top: 48px; }
.section-head-left { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head-left .more { font-size: 14px; }
.faq-rail {
  --faq-row: 54px;
  height: calc(var(--faq-row) * 5);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.faq-track {
  will-change: transform;
  animation: faq-scroll calc(var(--faq-count, 6) * 3s) linear infinite;
}
.faq-rail:hover .faq-track,
.faq-rail:focus-within .faq-track { animation-play-state: paused; }
@keyframes faq-scroll { to { transform: translateY(-50%); } }
.faq-group { counter-reset: faq-item; }
.faq-group a {
  display: grid;
  grid-template-columns: 34px minmax(0, 42%) minmax(0, 1fr) 15px;
  align-items: center; gap: 16px;
  min-height: var(--faq-row); padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 15px; line-height: 1.4;
}
.faq-no {
  counter-increment: faq-item;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color .15s ease, color .15s ease;
}
.faq-no::before { content: counter(faq-item, decimal-leading-zero); }
.faq-q {
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}
.faq-a {
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-muted); font-size: 13.5px;
  transition: color .15s ease;
}
.faq-dots {
  min-width: 30px; height: 4px;
  background-image: radial-gradient(circle, #BCD4CD 1.3px, transparent 1.6px);
  background-size: 9px 4px; background-repeat: repeat-x; background-position: 0 50%;
}
.faq-group a svg {
  flex: 0 0 auto; width: 15px; height: 15px; color: var(--text-muted);
  transition: transform .15s ease, color .15s ease;
}
.faq-group a:hover { background: var(--bg-soft); color: var(--primary); }
.faq-group a:hover .faq-no { background: var(--primary); color: #fff; }
.faq-group a:hover .faq-a { color: var(--primary); }
.faq-group a:hover svg { color: var(--primary); transform: translateX(3px); }
.review-rail {
  min-width: 0; max-width: 100%;
  overflow: hidden;
  /* 2px slack: the rail height exactly equals the fractional card height, so the
     clip edge cuts the card's 1px bottom border at non-1x display scaling. */
  padding-bottom: 2px;
}
.review-track {
  display: flex; width: max-content;
  will-change: transform;
  animation: review-marquee 70s linear infinite;
}
.review-group { display: flex; gap: 14px; padding-right: 14px; }
.review-rail:hover .review-track,
.review-rail:focus-within .review-track { animation-play-state: paused; }
@keyframes review-marquee { to { transform: translateX(-50%); } }
.review-card {
  display: flex; flex-direction: column;
  flex: 0 0 clamp(250px, 26vw, 320px);
  max-width: clamp(250px, 26vw, 320px);
  min-width: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.review-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text);
}
.review-thumb {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bg-soft);
}
.review-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.review-card:hover .review-thumb img { transform: scale(1.05); }
.review-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-soft), var(--mint-soft));
  color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .12em;
}
.review-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.review-title {
  font-size: 14px; font-weight: 600; line-height: 1.45;
  /* Reserve two lines so all rail cards are equal height (no stretched gap under the date). */
  min-height: 2.9em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-date { font-size: 12px; color: var(--text-muted); }

/* ---------- Home order CTA ---------- */
.order-cta { padding: 8px 0 64px; }
.cta-shell {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center; gap: 48px;
  padding: 52px 56px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(46, 196, 182, .3), transparent 55%),
    linear-gradient(135deg, #08140F 0%, #0A2A24 55%, #0E4A3F 100%);
  box-shadow: 0 28px 60px rgba(8, 32, 27, .28);
}
.cta-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 120% at 20% 10%, #000 25%, transparent 75%);
  mask-image: radial-gradient(80% 120% at 20% 10%, #000 25%, transparent 75%);
}
.cta-aurora {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(52px); pointer-events: none;
}
.cta-aurora.a1 {
  left: -90px; top: -130px; width: 340px; height: 340px;
  background: #2EC4B6; opacity: .5;
  animation: cta-float 15s ease-in-out infinite;
}
.cta-aurora.a2 {
  right: 6%; bottom: -150px; width: 280px; height: 280px;
  background: #6FE0C8; opacity: .28;
  animation: cta-float 19s ease-in-out infinite reverse;
}
@keyframes cta-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, 20px, 0) scale(1.14); }
}
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: #6FE0C8; font-size: 11.5px; font-weight: 700; letter-spacing: .24em;
}
.cta-eyebrow::before { content: ""; width: 20px; height: 2px; background: #6FE0C8; }
.cta-copy h2 { margin: 14px 0 10px; font-size: 32px; letter-spacing: -.02em; color: #fff; }
.cta-copy p { margin: 0 0 26px; color: rgba(255, 255, 255, .7); font-size: 15.5px; max-width: 500px; }
.cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(135deg, #7BEBD4 0%, #45C9AC 100%);
  color: #04140F; font-size: 16px; font-weight: 700;
  box-shadow: 0 16px 32px rgba(69, 201, 172, .32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.cta-btn::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 36%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 4s ease-in-out infinite;
}
@keyframes cta-shine {
  0%, 60% { left: -60%; }
  90%, 100% { left: 130%; }
}
.cta-btn:hover {
  color: #04140F;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(69, 201, 172, .42);
}
.cta-btn:hover svg { transform: translateX(4px); }
.cta-note { color: rgba(255, 255, 255, .5); font-size: 13.5px; }
.cta-points {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 28px 0 0; padding: 0; list-style: none;
  color: rgba(255, 255, 255, .66); font-size: 13.5px;
}
.cta-points li { display: inline-flex; align-items: center; gap: 8px; }
.cta-points li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #6FE0C8; box-shadow: 0 0 8px rgba(111, 224, 200, .9);
  animation: cta-dot 2.4s ease-in-out infinite;
}
.cta-points li:nth-child(2)::before { animation-delay: .4s; }
.cta-points li:nth-child(3)::before { animation-delay: .8s; }
@keyframes cta-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.cta-stamp { justify-self: end; width: 220px; max-width: 100%; }
.cta-stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.stamp-ring { fill: none; stroke: rgba(111, 224, 200, .45); stroke-width: 1.2; }
.stamp-ring.dashed { stroke: rgba(111, 224, 200, .3); stroke-dasharray: 3 7; }
.stamp-rotor {
  transform-box: fill-box; transform-origin: center;
  animation: cta-spin 30s linear infinite;
}
@keyframes cta-spin { to { transform: rotate(360deg); } }
.stamp-label { fill: rgba(255, 255, 255, .55); font-size: 10.5px; font-weight: 600; letter-spacing: 2.4px; }
.stamp-core { fill: #6FE0C8; font-size: 27px; font-weight: 800; letter-spacing: .08em; }
.stamp-sub { fill: rgba(255, 255, 255, .45); font-size: 9px; font-weight: 600; letter-spacing: 3px; }
@media (max-width: 900px) {
  .cta-shell { grid-template-columns: 1fr; gap: 26px; padding: 40px 28px; text-align: center; }
  .cta-stamp { order: -1; justify-self: center; width: 148px; }
  .cta-actions, .cta-points { justify-content: center; }
  .cta-copy p { margin-left: auto; margin-right: auto; }
  .cta-eyebrow::before { display: none; }
}
@media (max-width: 560px) {
  .order-cta { padding-bottom: 48px; }
  .cta-shell { padding: 34px 20px; border-radius: 20px; }
  .cta-copy h2 { font-size: 25px; }
  .cta-btn { width: 100%; }
  .cta-note { width: 100%; text-align: center; }
  .cta-points { gap: 8px 16px; font-size: 12.5px; }
  .cta-br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-aurora, .cta-btn::after, .stamp-rotor, .cta-points li::before { animation: none; }
  .review-track, .faq-track { animation: none; }
  .review-rail { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .faq-rail { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 768px) {
  .faq-group a { grid-template-columns: 30px minmax(0, 1fr) 15px; gap: 12px; padding: 0 14px; }
  .faq-a, .faq-dots { display: none; }
  .result-card { padding: 24px 18px; }
  .content-item .thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .content-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item .body { padding: 10px 10px 12px; }
  .gallery-item .title { font-size: 13px; }
  .gallery-item .meta { font-size: 11px; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-row span { flex: 0 0 auto; }
}
