/* Moneda Shop preview v3 */
:root {
  --bg: #f5f6f8;
  --white: #fff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #ea580c;
  --brand-dk: #c2410c;
  --green: #047857;
  --max: 1040px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: Pretendard, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 24px)); margin: 0 auto; }
.hidden { display: none !important; }

/* header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand__mark {
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}
.search { flex: 1; max-width: 420px; }
.search input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  background: #f9fafb;
}
.btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.btn--fill {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 0 12px;
  margin-bottom: -1px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.tab.is-on { color: var(--text); border-bottom-color: var(--text); }

/* intro */
.intro {
  padding: 28px 0 8px;
}
.intro h1 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.section-label {
  margin: 20px 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.section-sub {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* popular */
.popular__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.popular__scroll::-webkit-scrollbar { display: none; }

/* browse head */
.browse { padding-bottom: 48px; }
.browse__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 12px;
  flex-wrap: wrap;
}
.country-wrap { position: relative; }
.country-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.country-btn.is-on { border-color: var(--green); color: var(--green); }
.country-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(300px, 90vw);
  max-height: 340px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  z-index: 50;
  padding: 10px;
}
.country-menu input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  font: inherit;
  font-size: 0.875rem;
}
.country-menu ul { list-style: none; margin: 0; padding: 0; }
.country-menu li button {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.country-menu li button:hover { background: #f3f4f6; }
.country-menu em { color: var(--muted); font-style: normal; font-size: 0.8125rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.chip.is-on {
  background: #ecfdf5;
  border-color: var(--green);
  color: var(--green);
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.card {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .1s, box-shadow .1s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.card__img {
  aspect-ratio: 1;
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  line-height: 0;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card__ph {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}
.card__body { padding: 10px 11px 12px; }
.card__name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 3px;
}
.card__meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.card__price {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
}
.card--sm { flex: 0 0 108px; }
.card--sm .card__body { padding: 8px; }
.card--sm .card__name { font-size: 0.75rem; }

.empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* guides */
.guides {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin-bottom: 20px;
}
.guides__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.guides__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.guides__tabs .chip {
  font-size: 0.75rem;
  padding: 6px 12px;
}
.guides__body {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.55;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.guides__body h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  color: var(--text);
}
.guides__body p { margin: 0 0 8px; }
.guides__body ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}
.guides__body li { margin-bottom: 4px; }
.guides__body a { color: var(--brand); text-decoration: underline; }
.guides__body strong { color: var(--text); }
.guides__bot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.guides__bot a { color: var(--brand); font-weight: 700; }

.sheet__guide {
  border-bottom: 1px solid var(--line);
  background: #fffbeb;
}
.sheet__guide-toggle {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: #92400e;
}
.sheet__guide-body {
  padding: 0 16px 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #374151;
  max-height: 220px;
  overflow-y: auto;
}
.sheet__guide-body a { color: var(--brand); }
.sheet__guide-body strong { color: var(--text); }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal--sms { align-items: center; padding: 16px; }
.modal--sms .sheet {
  border-radius: 16px;
  max-height: min(420px, 90vh);
}
@media (min-width: 641px) {
  .modal { align-items: center; padding: 24px; }
  .modal:not(.modal--sms) .sheet { border-radius: 16px; }
}
.sheet {
  width: min(480px, 100%);
  max-height: 88vh;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
}
.sheet__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.sheet__info { flex: 1; min-width: 0; }
.sheet__info h3 { margin: 0; font-size: 1rem; }
.sheet__info p { margin: 2px 0 0; font-size: 0.8125rem; color: var(--muted); }
.sheet__x {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 1.1rem;
  cursor: pointer;
}
.sheet__countries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.sheet__countries .chip { font-size: 0.6875rem; }
.sheet__body {
  overflow-y: auto;
  padding: 12px 14px 28px;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fafafa;
}
.row strong { font-size: 0.8125rem; display: block; }
.row small { font-size: 0.6875rem; color: var(--muted); }
.row .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.row--pay {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
}
.row--pay > span { grid-column: 2; grid-row: 1; align-self: start; }
.row--pay > .row-buy { grid-column: 1 / -1; justify-content: flex-end; }

.sms-pick {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fafafa;
}
.sms-pick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.sms-pick__region {
  font-size: 0.875rem;
  font-weight: 700;
}
.sms-pick__price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
}
.sms-pick__note {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: var(--muted);
}
.btn--block {
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}
.modal--sms .sheet__body { padding-bottom: 16px; }

/* checkout */
.checkout-modal { z-index: 110; }
.checkout__body { padding: 16px 16px 24px; overflow-y: auto; }
.checkout__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 12px;
}
.checkout__field { margin-bottom: 12px; }
.checkout__field label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.checkout__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.checkout__methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.checkout__methods .btn { width: 100%; }
.checkout__methods .btn.is-on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.checkout__hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.45;
}
.checkout__wallet {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f9fafb;
  margin: 10px 0;
  word-break: break-all;
  font-size: 0.8125rem;
}
.checkout__wallet strong { display: block; margin-bottom: 4px; }
.checkout__amt { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.checkout__status {
  text-align: center;
  padding: 20px 8px;
}
.checkout__status.ok { color: #059669; }
.checkout__status.wait { color: var(--muted); }
.checkout__alt {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  text-align: center;
}
.checkout-guide {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8f0;
  border: 1px solid #fed7aa;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.checkout-guide__title {
  margin: 0 0 8px;
  font-weight: 800;
  color: #9a3412;
}
.checkout-guide__steps {
  margin: 0 0 8px;
  padding-left: 1.2rem;
}
.checkout-guide__steps li { margin-bottom: 6px; }
.checkout-guide__sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.checkout-guide__note {
  margin: 0;
  font-size: 0.75rem;
  color: #78350f;
}
.row-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.row-buy .btn { font-size: 0.75rem; padding: 6px 10px; }
.row-buy .btn--ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .search { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .browse__head { flex-direction: column; }
  .country-wrap { width: 100%; }
  .country-btn { width: 100%; }
  .country-menu { left: 0; right: 0; width: auto; }
}
