/* PassExo v3 — Midnight Exchange design system (2026-12-02) */
:root {
  --bg0: #04060c;
  --bg1: #080c16;
  --card: #0d1322;
  --card2: #121a30;
  --line: rgba(146,163,190,.13);
  --line2: rgba(146,163,190,.26);
  --text: #eff3fa;
  --muted: #9aa4ba;
  --faint: #68718a;
  --blue: #2b83ff;
  --blue-deep: #1678f7;
  --green: #1fd9b0;
  --green-dim: rgba(31,217,176,.12);
  --blue-dim: rgba(43,131,255,.12);
  --grad: linear-gradient(135deg, #1678f7 0%, #1fd9b0 100%);
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 26px;
  --shadow: 0 10px 34px rgba(1,4,12,.55);
  --shadow-s: 0 4px 16px rgba(1,4,12,.4);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg0); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 16px; line-height: 1.6; word-break: keep-all;
}
a { color: var(--blue); text-decoration: none; }
img { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
::selection { background: rgba(43,131,255,.35); }

/* ---------- header ---------- */
nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4,6,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: 10px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.5px; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo .mark { height: 22px; width: auto; }
.logo .wordmark { color: var(--text); white-space: nowrap; }
.logo .wordmark span { color: var(--green); }
nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav .links a { color: var(--muted); font-size: .93rem; font-weight: 500; transition: color .15s; }
nav .links a:hover { color: var(--text); }
nav .links .lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px;
  padding: 5px 13px; font-size: .83rem; color: var(--text); transition: border-color .15s, background .15s;
}
nav .links .lang:hover { border-color: var(--blue); background: var(--blue-dim); }
@media (max-width: 720px) {
  nav .wrap { height: auto; flex-wrap: wrap; padding: 11px 20px 10px; row-gap: 6px; }
  nav .links { gap: 15px; }
  nav .links a { font-size: .88rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(1100px 500px at 18% -10%, rgba(22,120,247,.16), transparent 60%), radial-gradient(900px 480px at 88% -20%, rgba(31,217,176,.12), transparent 55%), var(--bg1); }
.hero .wrap { padding-top: 76px; padding-bottom: 72px; }
.hero .micro {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--green);
  border: 1px solid rgba(31,217,176,.32); background: var(--green-dim); border-radius: 999px; padding: 7px 15px;
}
.hero h1 { margin-top: 24px; font-size: clamp(2.15rem, 5.2vw, 3.55rem); line-height: 1.14; font-weight: 800; letter-spacing: -1.6px; max-width: 15em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 18px; color: var(--muted); font-size: 1.09rem; max-width: 36em; }
.hero-search { margin-top: 30px; max-width: 560px; position: relative; }
.hero-search input {
  width: 100%; background: var(--card); border: 1px solid var(--line2); border-radius: var(--r-l);
  color: var(--text); font: inherit; font-size: 1.02rem; padding: 16px 20px 16px 50px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-dim); }
.hero-search input::placeholder { color: var(--faint); }
.hero-search .mag { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 40px; display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats .st { padding: 2px 34px 2px 0; margin-right: 34px; border-right: 1px solid var(--line); }
.hero-stats .st:last-child { border-right: none; }
.hero-stats .st b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.6px; }
.hero-stats .st b i { font-style: normal; color: var(--green); }
.hero-stats .st span { font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) {
  .hero .wrap { padding-top: 46px; padding-bottom: 46px; }
  .hero-stats .st { padding-right: 20px; margin-right: 20px; }
  .hero-stats .st b { font-size: 1.22rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .98rem;
  border-radius: var(--r-m); padding: 13px 24px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: #4792ff; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(43,131,255,.3); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { background: var(--card2); border-color: var(--blue); color: var(--text); box-shadow: none; }
.btn.green { background: var(--green); color: #04241c; }
.btn.green:hover { background: #45e6c2; color: #04241c; box-shadow: 0 8px 22px rgba(31,217,176,.25); }
.btn.big { padding: 16px 30px; font-size: 1.05rem; border-radius: var(--r-l); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- category rail ---------- */
.catrail { border-bottom: 1px solid var(--line); background: var(--bg0); position: sticky; top: 61px; z-index: 50; }
.catrail .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.catrail .wrap::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; cursor: pointer;
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .9rem; font-weight: 600;
  transition: all .15s;
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(22,120,247,.35); }
.chip .n { opacity: .75; font-weight: 500; font-size: .82em; }
@media (max-width: 720px) { .catrail { top: 0; position: static; } }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.tight { padding: 44px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.sec-head h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.9px; }
.sec-head .sub { color: var(--muted); font-size: .95rem; }
.sec-head .more { margin-left: auto; font-size: .9rem; font-weight: 600; }
.kicker { display: block; font-size: .76rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

/* ---------- product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1020px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pcard {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 18px; color: var(--text); position: relative;
  transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.pcard:hover { transform: translateY(-3px); border-color: rgba(43,131,255,.5); box-shadow: var(--shadow-s); background: var(--card2); color: var(--text); }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.pc-icon {
  width: 52px; height: 52px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
}
.pc-icon img { width: 32px; height: 32px; object-fit: contain; }
.pc-icon .let { font-size: 1.3rem; font-weight: 800; color: #1678f7; }
.pc-badge { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pc-badge.soon { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(43,131,255,.3); }
.pc-badge.live { background: var(--green-dim); color: var(--green); border: 1px solid rgba(31,217,176,.3); }
.pc-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.2px; line-height: 1.3; }
.pc-cat { display: block; color: var(--faint); font-size: .8rem; margin-top: 2px; }
.pc-prices { margin-top: 14px; }
.pc-official { display: block; color: var(--faint); font-size: .85rem; text-decoration: line-through; text-decoration-color: rgba(154,164,186,.5); }
.pc-official.no-strike { text-decoration: none; }
.pc-market { display: block; margin-top: 3px; font-weight: 800; font-size: 1.08rem; letter-spacing: -.3px; }
.pc-market.soon { color: var(--muted); font-weight: 600; font-size: .92rem; }
.pc-market.live { color: var(--green); }
.pc-market.live small { font-weight: 600; font-size: .76em; color: var(--green); opacity: .8; }
.pc-foot { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--faint); }
.pc-foot .arr { transition: transform .15s; }
.pcard:hover .pc-foot .arr { transform: translateX(3px); color: var(--blue); }
.cat-block { margin-bottom: 38px; }
.cat-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.14rem; font-weight: 800; letter-spacing: -.3px; }
.cat-title svg { width: 18px; height: 18px; color: var(--blue); }
.cat-title .cnt { color: var(--faint); font-weight: 500; font-size: .85rem; }
.empty-search { display: none; text-align: center; color: var(--muted); padding: 60px 0; border: 1px dashed var(--line2); border-radius: var(--r-l); }

/* ---------- trust band ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.tcard .ti { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-dim); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.tcard .ti svg { width: 22px; height: 22px; }
.tcard.g .ti { background: var(--green-dim); color: var(--green); }
.tcard h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.tcard p { color: var(--muted); font-size: .92rem; }

/* ---------- seller band ---------- */
.sellband { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid rgba(31,217,176,.28); background: radial-gradient(700px 320px at 85% 0%, rgba(31,217,176,.14), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(22,120,247,.16), transparent 55%), var(--card); padding: 46px; }
.sellband .fee { display: flex; gap: 34px; flex-wrap: wrap; margin: 26px 0 30px; }
.sellband .fee .f b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -1.5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sellband .fee .f span { color: var(--muted); font-size: .88rem; }
.sellband h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; max-width: 16em; }
.sellband p.lede { color: var(--muted); margin-top: 10px; max-width: 34em; }
@media (max-width: 720px) { .sellband { padding: 28px 22px; } .sellband .fee .f b { font-size: 2rem; } }

/* ---------- guides ---------- */
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .ggrid { grid-template-columns: 1fr; } }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; color: var(--text); transition: transform .15s, border-color .15s; display: block; }
.gcard:hover { transform: translateY(-2px); border-color: rgba(43,131,255,.5); color: var(--text); }
.gcard .gt { font-size: .74rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.gcard h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.gcard p { color: var(--muted); font-size: .88rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg1); margin-top: 20px; }
footer .wrap { padding: 40px 20px 34px; display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
footer .fbrand { max-width: 300px; }
footer .fbrand p { color: var(--faint); font-size: .84rem; margin-top: 12px; }
footer .fcol { min-width: 140px; }
footer .fcol b { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
footer .fcol a { display: block; color: var(--faint); font-size: .86rem; margin-bottom: 8px; }
footer .fcol a:hover { color: var(--text); }
footer .legal { border-top: 1px solid var(--line); }
footer .legal .wrap { padding: 16px 20px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--faint); font-size: .8rem; }
footer .legal a { color: var(--faint); }
footer .legal a:hover { color: var(--muted); }

/* ---------- product detail ---------- */
.crumbs { font-size: .83rem; color: var(--faint); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.pd-hero { display: flex; gap: 24px; align-items: center; margin: 26px 0 30px; }
.pd-icon { width: 92px; height: 92px; border-radius: 22px; background: #ffffff; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.pd-icon img { width: 52px; height: 52px; object-fit: contain; }
.pd-icon .let { font-size: 2.2rem; font-weight: 800; color: #1678f7; }
.pd-id h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -1px; }
.pd-id .meta { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.pd-chip { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; }
.pd-price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.pd-price-card .cell { padding: 4px 0; }
.pd-price-card .cell + .cell { border-left: 1px solid var(--line); padding-left: 24px; }
.pd-price-card .lab { font-size: .8rem; color: var(--faint); font-weight: 600; letter-spacing: .4px; }
.pd-price-card .val { font-size: 1.7rem; font-weight: 800; letter-spacing: -.8px; margin-top: 6px; }
.pd-price-card .val small { font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pd-price-card .val.green { color: var(--green); }
.pd-price-card .note { color: var(--faint); font-size: .8rem; margin-top: 6px; background: none; border: none; border-left: none; padding: 0; border-radius: 0; }
@media (max-width: 640px) {
  .pd-hero { gap: 16px; }
  .pd-icon { width: 68px; height: 68px; border-radius: 16px; }
  .pd-icon img { width: 38px; height: 38px; }
  .pd-price-card { grid-template-columns: 1fr; }
  .pd-price-card .cell + .cell { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
}
.seller-table { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; margin-bottom: 16px; }
.seller-table .st-head, .seller-table .st-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr auto; gap: 10px; align-items: center; padding: 14px 20px; }
.seller-table .st-head { background: var(--card2); font-size: .78rem; font-weight: 700; color: var(--faint); letter-spacing: .4px; }
.seller-table .st-row { border-top: 1px solid var(--line); background: var(--card); }
.seller-table .st-row .price { font-weight: 800; color: var(--green); }
.seller-empty {
  border: 1px dashed var(--line2); border-radius: var(--r-xl); padding: 52px 30px; text-align: center;
  background: radial-gradient(400px 200px at 50% 0%, rgba(43,131,255,.07), transparent 70%);
}
.seller-empty .se-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; background: var(--blue-dim); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.seller-empty .se-icon svg { width: 26px; height: 26px; }
.seller-empty h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.seller-empty p { color: var(--muted); font-size: .92rem; max-width: 30em; margin: 0 auto 22px; }
.pd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0; }
@media (max-width: 700px) { .pd-trust { grid-template-columns: 1fr; } }
.pd-trust .t { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.pd-trust .t .ti { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--green-dim); color: var(--green); display: flex; align-items: center; justify-content: center; }
.pd-trust .t .ti svg { width: 18px; height: 18px; }
.pd-trust .t b { display: block; font-size: .92rem; margin-bottom: 3px; }
.pd-trust .t span { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.pd-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; margin-bottom: 34px; }
.pd-info h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.pd-info p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.pd-info p:last-child { margin-bottom: 0; }

/* ---------- sell page ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; position: relative; }
.step .n { counter-increment: step; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; margin-bottom: 16px; }
.step .n::after { content: counter(step); }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .87rem; }

/* ---------- policy / article (refund, guides) ---------- */
.policy { max-width: 780px; }
.policy h1, .hero h1.small { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.policy h3 { margin: 34px 0 12px; font-size: 1.12rem; font-weight: 800; }
.policy p, .policy li { color: var(--muted); font-size: .96rem; }
.policy p b, .policy li b { color: var(--text); }
ul.rules { list-style: none; margin: 12px 0; }
ul.rules li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
ul.rules li:last-child { border-bottom: none; }
ul.rules li::before { content: "✓"; position: absolute; left: 2px; top: 12px; color: var(--green); font-weight: 700; }
ul.rules.no li::before { content: "✕"; color: #ff6b6b; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-m); padding: 16px 18px; color: var(--muted); font-size: .92rem; margin: 18px 0; }
.sub { color: var(--muted); margin: -14px 0 22px; }

/* ---------- article (guides) ---------- */
article.guide { max-width: 780px; }
article.guide h2 { margin: 36px 0 14px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.4px; }
article.guide h3 { margin: 26px 0 10px; font-size: 1.08rem; font-weight: 700; }
article.guide p, article.guide li { color: var(--muted); font-size: .97rem; margin-bottom: 10px; }
article.guide ul { padding-left: 20px; }
article.guide b, article.guide strong { color: var(--text); }
