/* Customer-only presentation; the admin console retains its own theme. */
body.customer-app {
  --bg: #f0f7fa; --surface: #fff; --surface-2: #eaf4f7; --line: #d6e7ed;
  --text: #243b48; --muted: #637f8b; --accent: #377e98; --accent-text: #fff;
  --success: #28765e; --shadow: 0 7px 24px #467d950b;
  color-scheme: light;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: -.025em;
  line-height: 1.55;
  overflow-anchor: none;
  background: #f0f7fa url("./customer-bg-ice.png") center center / cover no-repeat;
  background-attachment: fixed;
}
.cs-admin .customer-only { display: none !important; }
.customer-app .app-shell { max-width: 780px; min-height: 100vh; padding: max(18px, env(safe-area-inset-top)) 20px calc(100px + env(safe-area-inset-bottom)); }
.customer-app .app-header { gap: 12px; padding: 6px 2px 22px; }
.customer-app .brand-copy { flex: 1; }
.customer-app .brand-copy h1 { font-size: 21px; font-weight: 700; outline: none; overflow-wrap: anywhere; }
.customer-app .brand-copy p { font-size: 12px; margin-top: 4px; }
.customer-app .round-button { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--accent); font-size: 24px; box-shadow: var(--shadow); }
.customer-app #headerGuide { font-size: 18px; font-weight: 700; }
.customer-app .tabs { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 780px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 22px 22px 0 0; padding: 9px 10px max(9px, env(safe-area-inset-bottom)); background: #fffffff5; backdrop-filter: blur(16px); box-shadow: 0 -5px 25px #467d9509; }
.customer-app .tab { display: grid; justify-items: center; gap: 5px; min-height: 53px; padding: 6px; font-size: 11px; color: #738e9b; font-weight: 600; }
.customer-app .tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.customer-app .tab.active { color: var(--accent); background: #eaf4f8; border-radius: 14px; font-weight: 800; }
.customer-app .home-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.customer-app .home-metrics article { padding: 15px 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.customer-app .home-metrics article > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.customer-app .home-metrics strong { display: block; margin-top: 5px; font-size: clamp(16px, 4.4vw, 24px); letter-spacing: -.7px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.customer-app .home-metrics small { font-size: 12px; margin-left: 3px; color: var(--muted); font-weight: 600; }
.customer-app .coin-dot, .customer-app .ticket-dot { font-style: normal; display: inline-grid; place-items: center; border-radius: 50%; background: #f39b36; color: white; width: 19px; height: 19px; }
.customer-app .ticket-dot { background: #67a99f; }
.customer-app .usdt-dot { background: #43a58f; }
.customer-app .notice-strip { display: flex; gap: 10px; align-items: center; margin: 17px 0 24px; padding: 14px; border-radius: 17px; background: #e4f1f6; color: #477187; font-size: 12px; }
.customer-app .notice-strip > span { color: var(--accent); font-size: 20px; }
.customer-app .notice-strip p { margin: 0; line-height: 1.65; }
.customer-app .catalog-section { background: none; border: 0; padding: 0; margin-top: 24px; box-shadow: none; }
.customer-app .section-title h2 { font-size: 18px; letter-spacing: -.5px; margin: 0; }
.customer-app .step { display: none; }
.customer-app .section-meta { font-size: 11px; }
.customer-app .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px; border: 1px solid #deebf0; border-radius: 25px; background: #ffffff87; box-shadow: 0 12px 32px #527f9810; }
.customer-app .product-card { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 141px; padding: 13px 6px 10px; background: #fff; border: 1px solid transparent; border-radius: 19px; text-align: center; box-shadow: 0 4px 14px #527f980a; }
.customer-app .product-card:hover { border-color: #a5cedd; transform: translateY(-2px); }
.customer-app .product-card.selected { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.customer-app .product-card .product-icon { width: 35px; height: 35px; flex: 0 0 35px; border-radius: 11px; border: 0; box-shadow: none; }
.customer-app .product-card-copy { width: 100%; }
.customer-app .product-card-copy strong { font-size: 12px; line-height: 1.35; letter-spacing: -.4px; }
.customer-app .product-card-heading { gap: 8px; justify-items: center; }
.customer-app .product-card-heading b { background: #edf6f9; color: #37758d; padding: 2px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.customer-app .product-card-copy small { display: none; }
.customer-app .recent-section { margin-top: 25px; }
.customer-app .empty-card { background: #fff; border: 0; border-radius: 23px; padding: 35px 20px; font-size: 13px; line-height: 1.8; box-shadow: var(--shadow); }
.customer-app .order-card { border: 0; border-radius: 22px; padding: 18px; }
.customer-app .order-top { flex-wrap: wrap; gap: 9px; }
.customer-app .order-product { flex: 1 1 190px; }
.customer-app .order-card p { line-height: 1.65; }
.customer-app .status-badge { background: #e5f2f7; color: #37758d; }
.customer-app .status-badge.done { background: #e7f4ee; color: #28765e; }
.customer-app .pin-section { margin-top: 0; padding: 18px; border: 0; border-radius: 24px; }
.customer-app .selected-product { background: #f0f7fa; border-radius: 18px; }
.customer-app .product-guide-heading strong { font-size: 16px; }
.customer-app .product-guide-subtitle, .customer-app .product-guide-line { font-size: 12px; font-weight: 500; }
.customer-app .product-guide-lines { border-color: var(--line); }
.customer-app .pin-segment-input { background: #f7fbfc; font-size: 16px; border-radius: 14px; }
.customer-app .pin-add-button { background: #dceff2; color: #326c7d; border: 1px solid #b8dce4; border-radius: 14px; }
.customer-app .registered-pin-list { background: #f9fcfd; }
.customer-app .primary-button { min-height: 48px; border-radius: 15px; background: #377e98; }
.customer-app .input-help { flex-wrap: wrap; }
.customer-app .fee-hero { text-align: center; margin: 15px 0 18px; }
.customer-app .fee-hero > div { display: flex; align-items: baseline; justify-content: center; }
.customer-app .fee-hero input { width: 8.6ch; min-width: 0; max-width: 90%; padding: 0; border: 0; outline: none; background: transparent; color: var(--text); text-align: center; font-size: clamp(28px, 8vw, 42px); font-weight: 850; letter-spacing: -1.5px; }
.customer-app .fee-hero input:focus { box-shadow: 0 2px var(--accent); }
.customer-app .fee-hero p { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.customer-app .amount-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.customer-app .amount-chips button { border: 1px solid var(--line); background: #fff; color: var(--accent); border-radius: 999px; min-height: 40px; padding: 8px 16px; font-size: 12px; font-weight: 700; }
.customer-app .amount-chips button.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.customer-app #feePresets, .customer-app #checkoutPresets { max-height: 144px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.customer-app .fee-calculator { margin-top: 24px; }
.customer-app .fee-calculator summary { cursor: pointer; padding: 16px 0; color: var(--muted); }
.customer-app .fee-preview-list { display: grid; gap: 10px; }
.customer-app .fee-preview { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 15px 12px; border: 0; border-radius: 20px; background: #fff; text-align: left; color: var(--text); }
.customer-app .fee-preview .product-icon { width: 36px; height: 36px; flex-basis: 36px; }
.customer-app .fee-preview strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.customer-app .fee-preview small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.customer-app .fee-preview > b { font-size: 13px; text-align: right; overflow-wrap: anywhere; max-width: 130px; }
.customer-app .estimate-note { color: var(--muted); font-size: 11px; text-align: center; margin: 15px 0 30px; }
.customer-app .price-row { border: 0; border-radius: 20px; padding: 20px 15px; }
.customer-app .price-row strong { font-size: clamp(14px, 4vw, 21px); }
.customer-app .price-row strong:last-child small { display: block; margin: 4px 0 0; font-size: 12px; font-weight: 500; }
.customer-app .price-band { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.customer-app .price-band summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 15px 18px; list-style: none; cursor: pointer; color: var(--text); border-radius: 18px; }
.customer-app .price-band summary::-webkit-details-marker { display: none; }
.customer-app .price-band summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.customer-app .price-band-title { flex: 1; font-size: 16px; font-weight: 750; }
.customer-app .price-band-count { color: var(--muted); font-size: 12px; }
.customer-app .price-band-chevron { width: 8px; height: 8px; margin: 0 2px 4px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.customer-app .price-band[open] .price-band-chevron { transform: rotate(225deg); margin-bottom: -4px; }
.customer-app .price-band[open] summary { border-radius: 18px 18px 0 0; background: #f1f8fa; }
.customer-app .price-band-rows { padding: 0 14px 6px; }
.customer-app .price-band .price-row { padding: 14px 0; border-radius: 0; }
.customer-app .price-band .price-row + .price-row { border-top: 1px solid var(--line); }
.customer-app .price-band .price-row strong { font-size: clamp(14px, 4vw, 18px); }
.customer-app .guide-steps { list-style: none; margin: 12px 0 18px; padding: 8px 20px; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.customer-app .guide-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0; }
.customer-app .guide-steps li + li { border-top: 1px solid var(--line); }
.customer-app .guide-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 13px; font-weight: 700; }
.customer-app .guide-steps h2 { margin: 0 0 5px; font-size: 15px; }
.customer-app .guide-steps p, .customer-app .guide-caution p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.customer-app .guide-caution { padding: 18px; background: #e6f2f5; border-radius: 20px; }
.customer-app .guide-caution strong { display: block; margin-bottom: 5px; color: #326d82; font-size: 13px; }
.customer-app .modal-layer { background: #24475650; }
.customer-app .modal-card { background: #fff; border-color: var(--line); box-shadow: 0 25px 90px #24475630; }
.customer-app .modal-content { background: #eff7fa; }
.customer-app .toast { bottom: calc(88px + env(safe-area-inset-bottom)); background: #fff; border-color: var(--line); color: var(--text); }
.customer-app .error-card, .customer-app .toast.error { background: #fff1f1; color: #a43048; border-color: #efb9c3; }
.customer-app button:focus-visible { outline: 3px solid #377e98; outline-offset: 3px; }
.customer-app .text-button { min-height: 40px; }
@media (max-width: 360px) {
  .customer-app .app-shell { padding-left: 13px; padding-right: 13px; }
  .customer-app .product-grid { gap: 6px; padding: 8px; }
  .customer-app .product-card { min-height: 145px; }
  .customer-app .product-card-copy strong { font-size: 11px; }
  .customer-app .fee-preview { grid-template-columns: 30px minmax(0, 1fr); }
  .customer-app .fee-preview > b { grid-column: 2; text-align: left; max-width: none; }
}
@media (min-width: 720px) {
  .customer-app .app-shell { padding-top: 30px; }
  .customer-app .product-card { min-height: 155px; }
  .customer-app .product-card-copy strong { font-size: 15px; }
  .customer-app .fee-preview-list { grid-template-columns: 1fr 1fr; }
}
body.customer-app .checkout-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px}
body.customer-app .checkout-heading h2{font-size:22px;margin:0}
body.customer-app .checkout-heading span,body.customer-app .checkout-product{color:var(--muted);font-size:13px}
body.customer-app .checkout-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
body.customer-app .checkout-totals>*{min-width:0;background:#fff;border-radius:22px;padding:20px 14px;font-size:12px;color:var(--muted)}
body.customer-app .checkout-totals input{width:100%;box-sizing:border-box;background:transparent;border:0;padding:10px 0 0;font-size:24px;font-weight:800;color:var(--text)}
body.customer-app .checkout-totals strong{display:block;font-size:22px;color:var(--accent);padding-top:10px;overflow-wrap:anywhere}
body.customer-app .checkout-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:20px 0}
body.customer-app .checkout-keypad button{min-height:58px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--text);font-size:24px;font-weight:700}
body.customer-app .checkout-actions{display:flex;gap:10px;margin:0;position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 40px);max-width:740px;z-index:15;padding:8px;background:#f0f7faf2;border-radius:20px;box-sizing:border-box}
body.customer-app #checkoutView,body.customer-app #pinView{padding-bottom:94px}
body.customer-app .checkout-product-help summary{cursor:pointer;font-size:13px;color:var(--accent);padding-top:12px}
body.customer-app .checkout-actions button{min-height:54px;margin:0}
body.customer-app .checkout-actions .primary-button{flex:1}
body.customer-app .checkout-coins{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}
body.customer-app .checkout-coins button{display:flex;flex-direction:column;align-items:center;gap:15px;padding:28px 8px;border:2px solid transparent;background:white;border-radius:26px;color:var(--text);min-width:0}
body.customer-app .checkout-coins .selected{border-color:var(--accent);background:#edf9fb}
body.customer-app .checkout-coins button:disabled{opacity:.5;cursor:not-allowed}
body.customer-app .checkout-coins .coin-dot{font-size:28px;width:48px;height:48px}
body.customer-app .checkout-coins b{font-size:15px;overflow-wrap:anywhere}
body.customer-app .checkout-coins span{font-size:12px}
body.customer-app .checkout-quote-hero{text-align:center;padding:24px 0;color:var(--muted)}
body.customer-app .checkout-quote-hero strong{display:block;font-size:clamp(24px,6vw,38px);padding:14px 0;color:var(--accent);overflow-wrap:anywhere}
body.customer-app .checkout-details{background:#fff;border-radius:24px;padding:0 18px}
body.customer-app .checkout-details div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:18px 0;font-size:14px}
body.customer-app .checkout-details div:last-child{border:0}
body.customer-app .checkout-details dt{color:var(--muted);flex-shrink:0}
body.customer-app .checkout-details dd{margin:0;text-align:right;overflow-wrap:anywhere;font-weight:700}
body.customer-app .checkout-address-label{display:block;margin:30px 0 12px}
body.customer-app #checkoutAddress{width:100%;box-sizing:border-box;resize:vertical;background:white;color:var(--text);border:1px solid var(--line);border-radius:18px;padding:18px;font-size:16px;overflow-wrap:anywhere}
body.customer-app .checkout-upload{display:flex;flex-direction:column;gap:12px;text-align:center;background:white;border:1px dashed var(--accent);border-radius:18px;padding:20px;margin:20px 0}
body.customer-app .checkout-upload{position:relative;cursor:pointer}
body.customer-app .checkout-upload input{position:absolute;opacity:0;width:1px;height:1px}
body.customer-app .checkout-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.customer-app .checkout-images figure{position:relative;margin:0}
body.customer-app .checkout-images img{width:100%;height:100px;object-fit:contain;background:white;border-radius:12px}
body.customer-app .checkout-images button{position:absolute;right:0;top:0;background:var(--accent);color:white;border:0;border-radius:50%;width:30px;height:30px;font-size:20px}
.customer-app button, .customer-app input, .customer-app select, .customer-app textarea { font-family: inherit; letter-spacing: inherit; }
.customer-app h2 { font-weight: 700; }
.customer-app .price-product-label { display: block; margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 600; }
.customer-app .price-product-select { display: block; position: relative; margin-top: 9px; }
.customer-app #priceProduct { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; height: 56px; padding: 0 48px 0 18px; border: 1px solid #d6e8ef; border-radius: 18px; color: #365767; background: #ffffffed; font-size: 16px; font-weight: 600; line-height: 1.5; box-shadow: 0 5px 18px #467d9509; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.customer-app #priceProduct:hover { border-color: #a8cddc; }
.customer-app #priceProduct:focus-visible { outline: 3px solid #a8d6e5; outline-offset: 3px; }
.customer-app .price-product-chevron { position: absolute; right: 21px; top: 22px; width: 8px; height: 8px; border-right: 2px solid #6796a8; border-bottom: 2px solid #6796a8; transform: rotate(45deg); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .customer-app #priceProduct { transition: none; } }
