/* ============================================================
   HOMEBOX · Mall System
   Monochrome base (white + ink/charcoal sections) + vivid orange accent.
   Single font: Pretendard.
   ============================================================ */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg:        #FFFFFF;
  --surface:   #F4F5F6;
  --surface-2: #F8F9FA;
  --ink:       #16181D;
  --ink-soft:  #2A2D34;
  --text:      #2E323A;
  --muted:     #8B9099;
  --faint:     #B5BAC2;
  --line:      #E9EBEE;
  --line-2:    #F1F2F4;

  --accent:      #F5631E;
  --accent-deep: #C94E12;
  --accent-tint: #FDEDE4;
  --accent-tint2:#FFF7F2;

  --ok:   #1E9E6A;
  --warn: #C98A1E;
  --on:   #16181D;   /* black pill */

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22,.7,.25,1);
  --sh-sm: 0 1px 2px rgba(22,24,29,.05);
  --sh-md: 0 8px 24px -10px rgba(22,24,29,.14);
  --sh-lg: 0 24px 60px -22px rgba(22,24,29,.26);

  --maxw: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--bg); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ---------- Buttons (pill) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; border: 1px solid transparent; border-radius: var(--r-pill); padding: 0 22px; height: 46px; cursor: pointer; transition: all .22s var(--ease); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { background: none; color: var(--muted); }
.btn--ghost:hover { color: var(--ink); }
.btn--ondark { background: #fff; color: var(--ink); }
.btn--ondark:hover { background: var(--accent); color: #fff; }
.btn--dark-soft { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--dark-soft:hover { background: rgba(255,255,255,.2); }
.btn--lg { height: 56px; font-size: 16px; padding: 0 30px; }
.btn--sm { height: 38px; font-size: 13.5px; padding: 0 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 46px; padding: 0; }
.btn--icon.btn--sm { width: 38px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .01em; border-radius: var(--r-pill); padding: 4px 10px; line-height: 1.2; }
.badge--accent { background: var(--accent); color: #fff; }
.badge--accent-soft { background: var(--accent-tint); color: var(--accent-deep); }
.badge--ink { background: var(--ink); color: #fff; }
.badge--line { background: #fff; border: 1px solid var(--accent); color: var(--accent); }
.badge--gray { background: var(--surface); color: var(--muted); }
.badge--ok { background: #E7F5EE; color: var(--ok); }
.badge--warn { background: #FBF1DD; color: var(--warn); }
.badge--new { background: var(--accent); color: #fff; border-radius: var(--r-pill); padding: 3px 9px; font-size: 10.5px; }

/* small label/eyebrow */
.ey { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.ey--accent { color: var(--accent); }
.lab { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Top nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.nav.scrolled { box-shadow: var(--sh-sm); }
.nav__in { display: flex; align-items: center; height: 76px; gap: 36px; }
.logo { font-weight: 800; font-size: 25px; letter-spacing: -0.045em; color: var(--ink); cursor: pointer; flex: none; }
.logo b { color: var(--accent); }
.nav__sep { width: 1px; height: 20px; background: var(--line); }
.nav__links { display: flex; gap: 30px; }
.nav__links button { background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 15.5px; font-weight: 600; color: var(--text); padding: 6px 0; position: relative; }
.nav__links button:hover { color: var(--ink); }
.nav__links button.on { color: var(--ink); }
.nav__links button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -27px; height: 2px; background: var(--ink); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__login { font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; }
.nav__login:hover { color: var(--ink); }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; transition: all .2s; position: relative; }
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.iconbtn .dot { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ---------- Sub-nav pill bar ---------- */
.subnav { display: flex; justify-content: center; padding: 22px 0; }
.subnav__bar { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border-radius: var(--r-pill); padding: 5px; }
.subnav__bar.on-dark { background: rgba(255,255,255,.1); }
.subnav__bar button { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: none; border-radius: var(--r-pill); padding: 11px 22px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .2s var(--ease); white-space: nowrap; }
.subnav__bar.on-dark button { color: rgba(255,255,255,.7); }
.subnav__bar button:hover { color: var(--ink); }
.subnav__bar.on-dark button:hover { color: #fff; }
.subnav__bar button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.subnav__bar.on-dark button.on { background: var(--ink); color: #fff; }

/* ---------- Section ---------- */
.sec { padding: 96px 0; }
.sec--tight { padding: 72px 0; }
.sec__title { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; color: var(--ink); line-height: 1.1; }
.sec__head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 20px; }
.center-title { text-align: center; margin-bottom: 56px; }
.center-title .lab { display: block; margin-bottom: 14px; }
.center-title h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.04em; line-height: 1.18; color: var(--ink); }
.center-title p { font-size: 16px; color: var(--muted); margin-top: 16px; }
.viewall { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); border-radius: var(--r-pill); padding: 11px 18px; cursor: pointer; transition: all .2s; }
.viewall:hover { background: var(--accent-tint); color: var(--accent-deep); }

/* ---------- HERO (home) — immersive ---------- */
.hero { position: relative; height: 600px; display: flex; align-items: center; text-align: center; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 1.1s var(--ease) forwards; }
@keyframes heroFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { opacity: 1; animation: none; } }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,20,25,.78) 0%, rgba(18,20,25,.52) 42%, rgba(18,20,25,.88) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); padding: 8px 16px; backdrop-filter: blur(6px); margin-bottom: 26px; }
.dotpulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(245,99,30,.6); animation: dotpulse 1.8s var(--ease) infinite; }
@keyframes dotpulse { 70% { box-shadow: 0 0 0 7px rgba(245,99,30,0); } 100% { box-shadow: 0 0 0 0 rgba(245,99,30,0); } }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.045em; line-height: 1.12; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 .bl { color: var(--accent); }
.hero p { font-size: 18px; color: rgba(255,255,255,.82); margin-top: 22px; line-height: 1.6; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero__search { max-width: 640px; margin: 38px auto 0; }
.keys--onhero { margin-top: 18px; }
.keys--onhero span { color: rgba(255,255,255,.5); }
.keys--onhero a { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.keys--onhero a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-stats { padding: 56px 0 0; }
.searchbar { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-pill); height: 62px; padding: 0 8px 0 26px; box-shadow: var(--sh-md); }
.searchbar svg { color: var(--muted); flex: none; }
.searchbar input { flex: 1; border: none; outline: none; background: none; font-family: var(--font); font-size: 16px; color: var(--ink); }
.searchbar input::placeholder { color: var(--faint); }
.searchbar .go { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .2s; }
.searchbar .go svg { color: #fff; }
.searchbar .go:hover { background: var(--accent-deep); }
.searchbar--plain { border-color: var(--line); box-shadow: none; height: 54px; }
.searchbar--plain:focus-within { border-color: var(--ink); }
.keys { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.keys span { font-size: 12.5px; color: var(--faint); align-self: center; }
.keys a { font-size: 13.5px; color: var(--text); background: var(--surface); border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; transition: all .2s; }
.keys a:hover { background: var(--accent-tint); color: var(--accent-deep); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.stats > div { padding: 36px 28px; text-align: center; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: none; }
.stats dt { font-weight: 800; font-size: 44px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats dt .u { font-size: 22px; color: var(--accent); margin-left: 2px; }
.stats dd { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- Feature block (left accordion + cards) ---------- */
.feathub { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.acc__item { border: none; }
.acc__head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 14px 0; font-weight: 800; font-size: 23px; letter-spacing: -0.03em; color: var(--faint); transition: color .2s; }
.acc__item.open .acc__head { color: var(--ink); }
.acc__head svg { transition: transform .3s var(--ease); }
.acc__item.open .acc__head svg { transform: rotate(180deg); }
.acc__panel { display: none; padding: 6px 0 18px; border-left: 1px solid var(--line); margin-left: 2px; }
.acc__item.open .acc__panel { display: block; }
.acc__panel button { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 16px; color: var(--muted); padding: 10px 0 10px 20px; position: relative; }
.acc__panel button:hover { color: var(--ink); }
.acc__panel button.on { color: var(--ink); font-weight: 600; }
.acc__panel button.on::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--ink); }

.feat__body .feat__lead { margin-bottom: 36px; }
.feat__body .feat__lead h3 { font-weight: 800; font-size: 34px; letter-spacing: -0.035em; color: var(--ink); line-height: 1.18; }
.feat__body .feat__lead p { font-size: 15px; color: var(--muted); margin-top: 14px; }
.feat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard { background: var(--surface); border-radius: var(--r-lg); padding: 28px 26px; min-height: 280px; display: flex; flex-direction: column; transition: background .2s, transform .25s var(--ease); }
.fcard:hover { background: var(--accent-tint2); transform: translateY(-3px); }
.fcard h4 { font-weight: 700; font-size: 17px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.fcard p { font-size: 14.5px; color: var(--text); line-height: 1.55; margin-top: 14px; flex: 1; }
.fcard .ic { width: 40px; height: 40px; color: var(--ink); margin: 22px 0; }
.fcard .ic svg { width: 100%; height: 100%; }
.fcard .go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer; transition: background .2s; }
.fcard .go:hover { background: var(--accent); }

/* ---------- Card grid (store / gallery) ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.gcard { cursor: pointer; }
.gcard__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard:hover .gcard__media img { transform: scale(1.04); }
.gcard__tag { position: absolute; left: 12px; bottom: 12px; }
.gcard__fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: all .2s; }
.gcard:hover .gcard__fav { opacity: 1; }
.gcard__fav:hover { color: var(--accent); }
.gcard__body { padding: 14px 2px 0; }
.gcard__title { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.gcard__author { font-size: 13px; color: var(--muted); margin-top: 3px; }
.gcard__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.gcard__price { font-weight: 800; font-size: 15px; color: var(--accent-deep); }
.gcard__sample { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.gcard__sample:hover { color: var(--accent); }
.gcard__meta { display: flex; align-items: center; gap: 6px; }
.gcard__meta svg { width: 16px; height: 16px; color: var(--faint); }

/* ---------- Dark section ---------- */
.dark { background: var(--ink); color: #fff; }
.dark .sec__title, .dark .center-title h2 { color: #fff; }
.dark .center-title p { color: rgba(255,255,255,.6); }
.dark-hero { padding: 70px 0 90px; text-align: center; }
.dark-hero h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.04em; color: #fff; }
.dark-hero__feats { display: flex; justify-content: center; gap: 48px; margin: 38px 0 40px; flex-wrap: wrap; }
.dark-hero__feats div { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.85); }
.dark-hero__feats svg { color: var(--accent); width: 20px; height: 20px; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: #fff; text-align: center; padding: 120px 0; }
.cta h2 { font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; color: #fff; }
.cta p { font-size: 16px; color: rgba(255,255,255,.6); margin-top: 16px; }
.cta .btns { display: flex; gap: 12px; justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.ft { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 48px; }
.ft__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.ft__brand .logo { font-size: 24px; margin-bottom: 18px; display: inline-block; }
.ft__brand p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.ft__col h5 { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.ft__col a { display: block; font-size: 13.5px; color: var(--muted); padding: 6px 0; }
.ft__col a:hover { color: var(--accent); }
.ft__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.ft__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.ft__legal a { font-size: 12.5px; color: var(--muted); }
.ft__cr { font-size: 12.5px; color: var(--faint); }

/* ---------- Screens ---------- */
.screen[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .screen.entering { animation: scin .45s var(--ease) both; }
  @keyframes scin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .rv { opacity: 0; transform: translateY(20px); }
  .rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
}

/* ---------- LEGAL / DOC pages ---------- */
.legal { padding: 56px 0 96px; max-width: 900px; }
.legal__head { padding-bottom: 28px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.legal__head .lab { display: block; margin-bottom: 12px; }
.legal__head h1 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; color: var(--ink); }
.legal__head p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.legal__tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 36px; flex-wrap: wrap; }
.legal__tabs button { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--muted); background: none; border: none; padding: 16px 0; cursor: pointer; position: relative; }
.legal__tabs button:hover { color: var(--ink); }
.legal__tabs button.on { color: var(--ink); }
.legal__tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.legal-view[hidden] { display: none; }
.legal-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); background: var(--surface); border-radius: var(--r-pill); padding: 8px 14px; margin-bottom: 28px; }
.legal-meta b { color: var(--ink); }
.legal-toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 36px; }
.legal-toc h4 { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 13.5px; color: var(--text); padding: 4px 0; line-height: 1.5; }
.legal-toc a:hover { color: var(--accent); }
.legal h2 { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); margin: 40px 0 14px; padding-top: 8px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-weight: 700; font-size: 15.5px; color: var(--ink); margin: 22px 0 10px; }
.legal p { font-size: 14.5px; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.legal ul, .legal ol.dec { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.legal li { font-size: 14.5px; color: var(--text); line-height: 1.75; padding: 4px 0 4px 20px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.legal ol.dec { counter-reset: li; }
.legal ol.dec > li { padding-left: 26px; }
.legal ol.dec > li::before { counter-increment: li; content: counter(li) "."; position: absolute; left: 4px; top: 4px; font-weight: 700; color: var(--accent); font-size: 13.5px; }
.legal .note-box { background: var(--accent-tint2); border: 1px solid var(--accent-tint); border-radius: var(--r); padding: 16px 20px; margin: 16px 0 20px; font-size: 13.5px; color: var(--accent-deep); line-height: 1.7; }
.legal .tbl { margin: 8px 0 22px; }
.legal .tbl th, .legal .tbl td { border: 1px solid var(--line); padding: 12px 14px; font-size: 13.5px; vertical-align: top; }
.legal .tbl th { background: var(--surface); font-weight: 700; color: var(--ink); }
.legal__updated { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* SEARCH / STORE */
.store-top { padding-top: 8px; padding-bottom: 88px; }
.store-controls { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 32px; flex-wrap: wrap; gap: 16px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 11px 18px; cursor: pointer; }
.filter-btn:hover { border-color: var(--ink); }
.sortlinks { display: flex; gap: 18px; align-items: center; }
.sortlinks button { background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 14px; color: var(--muted); }
.sortlinks button.on { color: var(--ink); font-weight: 700; }
.sortlinks .div { width: 1px; height: 12px; background: var(--line); }
.store-pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.store-pager button { min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-family: var(--font); font-weight: 600; color: var(--muted); cursor: pointer; }
.store-pager button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* DETAIL */
.detail { padding: 28px 0 72px; display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
.detail > div:first-child { min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: none; cursor: pointer; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.stage { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.stage img { width: 100%; max-height: 620px; object-fit: contain; }
.dkeys { margin-top: 28px; }
.dkeys h4 { font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 14px; }
.key-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ktag { font-size: 13px; color: var(--text); background: var(--surface); border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; }
.ktag:hover { background: var(--accent-tint); color: var(--accent-deep); }
.side { position: sticky; top: 96px; }
.side .crumbs { font-size: 13px; color: var(--muted); }
.side h1 { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); margin: 12px 0 16px; line-height: 1.25; }
.side .pills { display: flex; gap: 8px; margin-bottom: 24px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }
.meta-cell { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-cell:nth-child(2n) { border-right: none; }
.meta-cell:nth-last-child(-n+2) { border-bottom: none; }
.meta-cell .k { font-size: 12px; color: var(--muted); }
.meta-cell .v { font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 5px; font-variant-numeric: tabular-nums; }
.meta-cell .v small { display: block; font-size: 11px; font-weight: 400; color: var(--faint); margin-top: 3px; }
.dl-box { background: var(--surface); border-radius: var(--r-lg); padding: 24px; }
.dl-box h4 { font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.dl-box p { font-size: 13.5px; color: var(--text); line-height: 1.6; }
.dl-box .btns { display: flex; gap: 10px; margin-top: 18px; }
.related { margin-top: 40px; }
.related h3 { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 24px; }
.related-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.related-row::-webkit-scrollbar { display: none; }
.related-row > .gcard { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.related-row .gcard__media { aspect-ratio: 4/3; }
@media (max-width: 1000px) { .related-row > .gcard { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .related-row > .gcard { flex-basis: calc((100% - 8px) / 1.6); } }

/* PRICING */
.pricing { padding: 8px 0 80px; }
.price-toggle { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 56px; position: relative; }
.price-bubble { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 6px 13px; margin-bottom: 12px; position: relative; }
.price-bubble::after { content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 9px; height: 9px; background: var(--accent); }
.price-seg { display: inline-flex; background: var(--surface); border-radius: var(--r-pill); padding: 5px; }
.price-seg button { font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--muted); background: none; border: none; border-radius: var(--r-pill); padding: 12px 30px; cursor: pointer; transition: all .2s; }
.price-seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.plan { background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-xl); padding: 40px 32px; position: relative; }
.plan.feat { background: #fff; border-color: var(--ink); box-shadow: var(--sh-md); }
.plan__best { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan h3 { font-weight: 800; font-size: 24px; color: var(--ink); text-align: center; letter-spacing: -0.01em; }
.plan .tl { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.plan .tl b { color: var(--ink); background: var(--accent-tint); padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.plan .pr { text-align: center; margin: 26px 0; }
.plan .pr .old { font-size: 15px; color: var(--faint); text-decoration: line-through; }
.plan .pr .now { font-weight: 800; font-size: 34px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .pr .now small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .pr .free { font-weight: 800; font-size: 34px; color: var(--ink); }
.plan ul { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan .ult { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.45; }
.plan li .ck { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.plan li .ck svg { width: 12px; height: 12px; }

.cmp { max-width: 1100px; margin: 0 auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl col.c1 { width: 28%; }
.tbl thead th { font-weight: 800; font-size: 18px; color: var(--ink); text-align: left; padding: 18px 16px; }
.tbl__sec td { background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink); padding: 14px 16px; }
.tbl__sec td .chev { float: right; color: var(--muted); }
.tbl tbody td { font-size: 14px; color: var(--text); padding: 16px; border-bottom: 1px solid var(--line-2); }
.tbl tbody td:first-child { color: var(--ink); }
.tbl .o { color: var(--accent); font-weight: 700; }
.tbl .x { color: var(--faint); }

/* pricing — mode/period toggles + plan headers */
.price-modes { display: flex; justify-content: center; margin-bottom: 16px; }
.plan__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.plan__ic { width: 46px; height: 46px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.plan__ic--gray { background: var(--surface); color: var(--muted); }
.plan__ic--accent { background: var(--accent); color: #fff; }
.plan__ic--ink { background: var(--ink); color: #fff; }
.plan__top h3 { text-align: left; font-size: 22px; }
.plan__top .tl { text-align: left; margin-top: 3px; }
.plan__top .tl b { color: var(--ink); background: var(--surface); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.plan__badges { display: flex; gap: 6px; margin-bottom: 4px; }
.plan__save { color: var(--ok); background: #E7F5EE; border-radius: var(--r-pill); padding: 3px 9px; font-size: 11px; font-weight: 700; }
.plans:not(.is-annual) .plan__save { display: none; }
.plan .pr2 { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 4px; }
.plan .pr2 .now { font-weight: 800; font-size: 32px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan.feat .pr2 .now { color: var(--accent); }
.plan .pr2 .per { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan .perline { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
.plan ul.feats { margin-top: 0; }
.plan li.lk-line { color: var(--muted); }
.plan li .lkk { color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.plan__cta { margin-top: 4px; margin-bottom: 22px; }

/* charge packs */
.pack-intro { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 32px; margin-bottom: 28px; }
.pack-intro h3 { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.pack-intro p { font-size: 14px; color: var(--text); line-height: 1.7; }
.pack-intro p + p { margin-top: 8px; }
.pack-intro .gem { color: var(--accent); }
.pack-intro .lkk { color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pack { background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-lg); padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
.pack.feat { background: #fff; border-color: var(--ink); box-shadow: var(--sh-md); }
.pack__best { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.pack__tier { font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; align-self: flex-start; margin-bottom: 18px; }
.pack.feat .pack__tier { background: var(--surface); }
.pack__price { font-weight: 800; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pack.feat .pack__price { color: var(--accent); }
.pack__credit { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 14px; }
.pack__credit .gem { color: var(--accent); }
.pack__count { font-weight: 800; font-size: 20px; color: var(--ink); margin-top: 2px; }
.pack__per { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.pack__bonus { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pack__bonus .gem, .pack__per .gem { color: var(--accent); }
.pack__note { font-size: 12px; color: var(--text); line-height: 1.55; margin: 16px 0 20px; flex: 1; }
.pack__note b { color: var(--ink); }
.pack-foot { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 22px; margin-top: 24px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pack-foot b { color: var(--ink); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcase { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.pcase .pi { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pcase .cn { font-size: 11px; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.pcase h4 { font-weight: 700; font-size: 16px; color: var(--ink); margin: 8px 0 10px; }
.pcase p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.steps { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; flex-wrap: wrap; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 110px; }
.step .si { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.step .sn { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.step .st { font-size: 14px; font-weight: 700; color: var(--ink); }
.step-arrow { color: var(--faint); }
.steps__note { width: 100%; text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.steps__note .lkk { color: var(--accent); font-weight: 600; }

/* MYPAGE */
.mypage { padding: 36px 0 80px; display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.mp-side { position: sticky; top: 96px; }
.mp-side .grp { font-size: 12px; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin: 22px 0 6px; }
.mp-side .grp:first-child { margin-top: 0; }
.mp-side button { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 15px; color: var(--text); padding: 11px 14px; border-radius: var(--r); transition: all .18s; }
.mp-side button:hover { background: var(--surface); color: var(--ink); }
.mp-side button.on { background: var(--ink); color: #fff; font-weight: 600; }
.mp-hello { margin-bottom: 36px; }
.mp-hello h2 { font-weight: 800; font-size: 30px; letter-spacing: -0.03em; color: var(--ink); }
.mp-hello h2 .bl { color: var(--accent); }
.mp-hello p { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.mp-sub[hidden] { display: none; }
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: 26px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-weight: 800; font-size: 38px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.stat .v.bl { color: var(--accent); }
.stat .sub { font-size: 12.5px; color: var(--faint); }
.mp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.mp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; cursor: pointer; transition: all .2s; }
.mp-card:hover { border-color: var(--accent); box-shadow: var(--sh-md); }
.mp-card .ce { font-size: 11.5px; letter-spacing: .04em; font-weight: 700; color: var(--accent); }
.mp-card h4 { font-weight: 700; font-size: 16px; color: var(--ink); margin: 8px 0 6px; }
.mp-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.panel-box { margin-bottom: 36px; }
.panel-box .ph2 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.panel-box .ph2 h3 { font-weight: 700; font-size: 18px; color: var(--ink); }
.panel-box .ph2 .lk { font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.recent-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.recent-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); cursor: pointer; }
.mtbl { width: 100%; border-collapse: collapse; }
.mtbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mtbl td { font-size: 14px; color: var(--text); padding: 15px 14px; border-bottom: 1px solid var(--line-2); }
.mtbl .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.mtbl .up { color: var(--accent); }
.mtbl .down { color: var(--muted); }
.mtbl .dttime { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scrap-toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 18px; }
.scrap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scrap-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); cursor: pointer; }
.scrap-card .sf { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px 0; }
.scrap-card .sf label { font-size: 13px; color: var(--text); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.order-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.order-card .oh { display: flex; justify-content: space-between; align-items: center; }
.order-card .ok { font-size: 12px; color: var(--muted); }
.order-card .ono { font-weight: 800; font-size: 15px; color: var(--ink); margin: 5px 0 12px; font-variant-numeric: tabular-nums; }
.order-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 10px; }
.dl-hist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dl-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.dl-item .di { padding: 9px 2px 0; }
.dl-item .dt2 { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dl-item .db { display: flex; gap: 5px; margin-top: 7px; }

/* SUPPORT / NEWS */
.support { padding: 56px 0 80px; }
.support h1 { font-weight: 800; font-size: 44px; letter-spacing: -0.035em; color: var(--ink); margin-bottom: 32px; }
.promo { display: flex; align-items: center; justify-content: space-between; background: var(--accent-tint); border-radius: var(--r-xl); padding: 36px 44px; margin-bottom: 44px; overflow: hidden; }
.promo h3 { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; color: var(--ink); }
.promo h3 b { color: var(--accent); }
.promo p { font-size: 14.5px; color: var(--text); margin-top: 12px; }
.promo__art { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.promo__art i { display: block; width: 18px; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .35; }
.promo__art i:nth-child(2){opacity:.5} .promo__art i:nth-child(3){opacity:.65} .promo__art i:nth-child(4){opacity:.8} .promo__art i:nth-child(5){opacity:1}
.promo__pct { font-weight: 800; font-size: 40px; color: var(--accent); align-self: flex-start; }
.sup-tabs { display: inline-flex; background: var(--surface); border-radius: var(--r-pill); padding: 5px; margin-bottom: 28px; }
.sup-tabs button { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: none; border-radius: var(--r-pill); padding: 11px 24px; cursor: pointer; transition: all .2s; }
.sup-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.sup-view[hidden] { display: none; }
.news-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.news-head .cnt { font-size: 14px; color: var(--muted); }
.news-head .srch2 { display: flex; align-items: center; gap: 10px; width: 360px; max-width: 50%; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 18px; height: 46px; }
.news-head .srch2 input { flex: 1; border: none; outline: none; background: none; font-family: var(--font); font-size: 14px; }
.news-head .srch2 svg { color: var(--muted); }
.news-list { margin-top: 8px; }
.news-row { display: flex; align-items: center; gap: 16px; padding: 26px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.news-row:hover .news-row__t { color: var(--accent); }
.news-row__main { flex: 1; }
.news-row__t { font-weight: 700; font-size: 16px; color: var(--ink); transition: color .2s; }
.news-row__cat { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: flex; gap: 10px; }
.news-row__date { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }

.faq-list { margin-top: 4px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; gap: 14px; padding: 24px 4px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-q .qm { font-weight: 800; color: var(--accent); flex: none; }
.faq-q .chev { margin-left: auto; color: var(--faint); transition: transform .25s var(--ease); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 4px 26px 36px; font-size: 14.5px; color: var(--text); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* MODAL */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(22,24,29,.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: var(--r-xl); width: 400px; max-width: calc(100vw - 40px); padding: 34px; box-shadow: var(--sh-lg); transform: translateY(8px); transition: transform .25s var(--ease); }
.overlay.open .modal { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal__head h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.modal__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.modal__close:hover { border-color: var(--ink); color: var(--ink); }
.modal__note { font-size: 14px; color: var(--text); line-height: 1.65; margin: 14px 0 24px; }
.modal__note b { color: var(--accent); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .2s; }
.gbtn:hover { border-color: var(--ink); }
.modal__admin { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; cursor: pointer; }
.modal__admin:hover { color: var(--accent); }

.progress { height: 7px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }

.ribbon { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 10px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-md); }
.ribbon b { color: var(--accent); }

/* ---------- Detail polish / micro-interactions ---------- */
.nav__links button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -27px; height: 2px; background: var(--ink); transition: right .26s var(--ease); }
.nav__links button:hover::after { right: 0; }
.nav__links button.on::after { right: 0; }
.btn:active, .gchip:active, .chip:active, .price-seg button:active { transform: scale(.975); }
.viewall svg, .gcard__sample svg, .fcard .go svg { transition: transform .2s var(--ease); }
.viewall:hover svg { transform: translateX(2px); }
.fcard .go:hover svg { transform: translateY(1px); }
.gcard__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--ink); opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; border-radius: var(--r); }
.gcard:hover .gcard__media::after { opacity: .1; }
.stats > div, .stat, .mp-card, .fcard, .order-card { will-change: transform; }
.news-row, .faq-q, .mp-card, .gcard, .fcard { transition: all .2s var(--ease); }
.tbl tbody tr:not(.tbl__sec):hover td { background: var(--accent-tint2); }
.subnav__bar button, .sup-tabs button, .price-seg button { transition: all .2s var(--ease); }

@media (max-width: 1000px) {
  .studio__grid { grid-template-columns: 1fr; }
  .gen-panel { position: static; }
  .gen-results { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- AI design hub sub-tab toolbar ---------- */
.hub-bar { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px; margin: 24px 0 36px; box-shadow: var(--sh-sm); }
.hub-bar button { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14.5px; font-weight: 700; color: var(--muted); background: none; border: none; border-radius: var(--r-pill); padding: 11px 20px; cursor: pointer; transition: all .2s var(--ease); }
.hub-bar button:hover { color: var(--ink); background: var(--surface); }
.hub-bar button.on { background: var(--surface); color: var(--ink); }
.hub-bar button .cnt { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: 2px 8px; }
.hub-view[hidden] { display: none; }
.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.hub-head h2 { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.hub-head p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.hub-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.text-tabs { display: flex; gap: 20px; align-items: center; }
.text-tabs button { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--muted); background: none; border: none; padding: 4px 0; cursor: pointer; position: relative; transition: color .2s var(--ease); }
.text-tabs button:hover { color: var(--ink); }
.text-tabs button.on { color: var(--ink); }
.text-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }

/* character grid */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.char-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: #fff; transition: all .2s var(--ease); }
.char-card:hover { border-color: var(--accent); box-shadow: var(--sh-md); transform: translateY(-3px); }
.char-card__media { position: relative; aspect-ratio: 4/3; background: var(--surface); }
.char-card__media img { width: 100%; height: 100%; object-fit: cover; }
.char-card__badge { position: absolute; top: 10px; left: 10px; }
.char-card__body { padding: 14px; }
.char-card__name { font-weight: 800; font-size: 16px; color: var(--ink); }
.char-card__desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.char-add { border: 1.5px dashed var(--accent); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 20px; cursor: pointer; background: var(--accent-tint2); transition: all .2s; }
.char-add:hover { background: var(--accent-tint); }
.char-add .plus { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.char-add h4 { font-weight: 800; font-size: 16px; color: var(--ink); }
.char-add .ct { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.char-add p { font-size: 12px; color: var(--muted); margin: 8px 0 16px; line-height: 1.5; }

/* works grid */
.works-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.work-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: all .2s var(--ease); }
.work-card:hover { box-shadow: var(--sh-md); }
.work-card__media { position: relative; aspect-ratio: 4/3; background: var(--surface); cursor: pointer; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }
.work-card__media .done { position: absolute; top: 10px; right: 10px; }
.work-card__body { padding: 16px; }
.work-card__type { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.work-card__title { font-weight: 700; font-size: 15px; color: var(--ink); margin: 6px 0 4px; line-height: 1.35; }
.work-card__sub { font-size: 12.5px; color: var(--muted); }
.work-card__tpl { font-size: 12px; color: var(--faint); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-card__btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* ---------- Full editor modal ---------- */
.editor { position: fixed; inset: 0; z-index: 100; background: rgba(22,24,29,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.editor.open { opacity: 1; pointer-events: auto; }
.editor__win { background: var(--surface-2); border-radius: var(--r-xl); width: 100%; max-width: 1408px; height: 100%; max-height: 880px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--sh-lg); transform: scale(.98); transition: transform .25s var(--ease); }
.editor.open .editor__win { transform: none; }
.editor__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.editor__title { display: flex; align-items: center; gap: 12px; }
.editor__title .ei { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #FF9A4D); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.editor__title h3 { font-weight: 800; font-size: 18px; color: var(--ink); }
.editor__cred { display: flex; align-items: center; gap: 14px; }
.editor__cred .cc { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--ink); }
.editor__cred .cc .coin { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.editor__body { flex: 1; display: grid; grid-template-columns: 360px 1fr; min-height: 0; }
.editor__body > * { min-width: 0; }
.editor__panel { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.ep-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.ep-card .t { font-size: 12px; color: var(--muted); font-weight: 600; }
.ep-card .v { font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 4px; }
.ep-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.ep-steps__row { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.ep-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: var(--r-pill); padding: 6px 9px; }
.ep-chip.on { background: var(--accent-tint); color: var(--accent-deep); }
.ep-chip .num { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9.5px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ep-arrow { color: var(--faint); flex: none; }
.ep-arrow svg { width: 12px; height: 12px; display: block; }
.ep-reset { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex: none; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 11px; cursor: pointer; }
.ep-reset:hover { border-color: var(--ink); color: var(--ink); }
.ep-sec__h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.ep-sec__h .muted { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.ep-sec__d { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.ep-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ep-thumbs::-webkit-scrollbar { height: 7px; }
.ep-thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.ep-thumb { flex: 0 0 76px; cursor: pointer; }
.ep-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); border: 2px solid transparent; transition: border-color .2s; }
.ep-thumb:hover img, .ep-thumb.on img { border-color: var(--accent); }
.ep-thumb .nm { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ep-slot { aspect-ratio: 4/3; border: 1.5px dashed var(--line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--faint); cursor: pointer; transition: all .2s; }
.ep-slot:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint2); }
.ep-avatar { display: flex; gap: 8px; }
.ep-avatar button { font-family: var(--font); font-size: 13px; font-weight: 600; border-radius: var(--r-pill); padding: 9px 15px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.ep-avatar button.pri { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent-deep); }
.ep-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-prompt { width: 100%; min-height: 80px; resize: vertical; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px; line-height: 1.6; }
.ep-prompt:focus { outline: none; border-color: var(--ink); }
.ep-note { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.editor__agents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 22px; background: #fff; border-top: 1px solid var(--line); flex: none; }
.agent-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; border: none; border-radius: var(--r-lg); padding: 14px; cursor: pointer; font-family: var(--font); color: #fff; transition: transform .15s var(--ease), filter .2s; }
.agent-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.agent-btn b { font-size: 14.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.agent-btn .cr { font-size: 11.5px; opacity: .9; background: rgba(255,255,255,.2); border-radius: var(--r-pill); padding: 2px 9px; }
.agent-btn--img { background: var(--accent); }
.agent-btn--vid { background: var(--ink); }
.editor__stage { display: flex; flex-direction: column; min-height: 0; padding: 20px; }
.stage-tools { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.stage-tools .grp { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px; }
.stage-tools button { font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--ink); background: none; border: none; border-radius: var(--r-pill); padding: 7px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.stage-tools button:hover { background: var(--surface); }
.stage-out { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 14px; font-size: 13px; }
.stage-out .ot { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.stage-out .ov { display: inline-flex; gap: 6px; }
.stage-out .ov span { background: var(--surface); border-radius: var(--r); padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stage-canvas { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 24px; }
.stage-canvas img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); }
.stage-zoom { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }
.stage-zoom .grp { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink); }
.stage-zoom button { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 15px; }

/* register modal extras */
.reg-field { margin-bottom: 18px; }
.reg-field label { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 8px; }
.reg-field label .opt { font-weight: 500; color: var(--muted); }
.reg-input { width: 100%; height: 46px; font-family: var(--font); font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; }
.reg-input:focus { outline: none; border-color: var(--ink); }
textarea.reg-input { height: auto; min-height: 70px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.reg-radios { display: flex; gap: 10px; }
.reg-radio { flex: 1; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.reg-radio.on { border-color: var(--accent); background: var(--accent-tint2); }
.reg-radio .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); flex: none; }
.reg-radio svg { flex: none; }
.reg-radio.on .rd { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 38%, transparent 42%); }
.reg-crop { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; cursor: pointer; }
.reg-crop:hover { border-color: var(--ink); }
.reg-drop { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 32px; text-align: center; color: var(--muted); cursor: pointer; margin-top: 10px; transition: all .2s; }
.reg-drop:hover { border-color: var(--accent); background: var(--accent-tint2); }
.reg-drop svg { color: var(--faint); margin-bottom: 8px; }
.modal--lg { width: 460px; }

/* ---------- LOGIN page (split) ---------- */
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 76px); }
.login__promo { background: var(--ink); color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login__promo::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .35; }
.login__promo-top { position: relative; z-index: 1; }
.login__badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: 8px 16px; }
.login__promo h2 { font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; line-height: 1.18; margin: 28px 0 18px; }
.login__promo h2 .ac { color: var(--accent); }
.login__promo p { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.65; max-width: 400px; }
.login__perks { list-style: none; margin: 32px 0; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.login__perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,.9); }
.login__perks .ck { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.login__collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 1; }
.login__collage img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.login__collage img:nth-child(2) { margin-top: 22px; }
.login__collage img:nth-child(3) { margin-top: -10px; }
.login__stat { display: flex; gap: 36px; margin-top: 36px; position: relative; z-index: 1; }
.login__stat dt { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.login__stat dt .u { color: var(--accent); }
.login__stat dd { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 4px; }

.login__form { display: flex; align-items: center; justify-content: center; padding: 64px 56px; }
.login__card { width: 100%; max-width: 380px; }
.login__card .logo { font-size: 28px; display: inline-block; margin-bottom: 36px; }
.login__card h1 { font-weight: 800; font-size: 30px; letter-spacing: -0.03em; color: var(--ink); }
.login__card .sub { font-size: 14.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.login__note { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-tint2); border: 1px solid var(--accent-tint); border-radius: var(--r); padding: 14px 16px; margin: 28px 0; font-size: 13px; color: var(--accent-deep); line-height: 1.6; }
.login__note svg { flex: none; margin-top: 1px; }
.login__note b { font-weight: 700; }
.login__gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .2s; }
.login__gbtn:hover { border-color: var(--ink); box-shadow: var(--sh-sm); }
.login__divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--faint); font-size: 12.5px; }
.login__divider::before, .login__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login__admin { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: var(--r-pill); background: none; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.login__admin:hover { border-color: var(--ink); color: var(--ink); }
.login__legal { font-size: 12px; color: var(--faint); line-height: 1.7; margin-top: 28px; text-align: center; }
.login__legal a { color: var(--muted); text-decoration: underline; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login__promo { display: none; }
  .login__form { padding: 48px 24px; }
}

/* detail extra info blocks */
.info-block { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.info-block h5 { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.info-block p { font-size: 13px; color: var(--text); line-height: 1.6; }
.info-block ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.info-block li { font-size: 12.5px; color: var(--muted); line-height: 1.55; padding-left: 14px; position: relative; }
.info-block li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.svc-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 14px; font-size: 13px; }
.svc-row .k { color: var(--muted); }
.svc-row .v { font-weight: 700; color: var(--accent-deep); }
.dl-actions { display: flex; gap: 8px; }
.dl-icon { width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dl-icon:hover { border-color: var(--ink); color: var(--ink); }
.dl-icon.flag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint2); }
.free-box { background: var(--accent-tint2); border: 1px solid var(--accent-tint); border-radius: var(--r); padding: 18px; margin-bottom: 12px; }
.free-box h5 { font-weight: 700; font-size: 14px; color: var(--accent-deep); margin-bottom: 8px; }
.free-box p { font-size: 12.5px; color: var(--text); line-height: 1.55; margin-bottom: 14px; }
.rel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.rel-arrows { display: flex; gap: 8px; }
.rel-arrows button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rel-arrows button:hover { border-color: var(--ink); }

.studio { padding: 32px 0 80px; }
.studio__head { text-align: center; margin-bottom: 44px; }
.studio__head .lab { display: block; margin-bottom: 12px; }
.studio__head h1 { font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.035em; color: var(--ink); }
.studio__head h1 .bl { color: var(--accent); }
.studio__head p { font-size: 15.5px; color: var(--muted); margin-top: 12px; }
.studio__grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.gen-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; position: sticky; top: 96px; }
.gen-step { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.gen-field { margin-top: 22px; }
.gen-field:first-of-type { margin-top: 18px; }
.gen-field > label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.gen-ta { width: 100%; min-height: 96px; resize: vertical; font-family: var(--font); font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; line-height: 1.6; }
.gen-ta:focus { outline: none; border-color: var(--ink); }
.gen-ta::placeholder { color: var(--faint); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 15px; cursor: pointer; transition: all .18s; }
.gchip:hover { border-color: var(--ink); }
.gchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gupload { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 22px; text-align: center; cursor: pointer; transition: all .2s; }
.gupload:hover { border-color: var(--accent); background: var(--accent-tint2); }
.gupload svg { color: var(--faint); margin-bottom: 8px; }
.gupload p { font-size: 13px; color: var(--muted); }
.gen-cost { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.gen-cost .c { font-weight: 800; color: var(--accent); }
.gen-out__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.gen-out__bar h3 { font-weight: 700; font-size: 18px; color: var(--ink); }
.gen-out__bar .seg2 { display: inline-flex; background: var(--surface); border-radius: var(--r-pill); padding: 4px; }
.gen-out__bar .seg2 button { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); border: none; background: none; border-radius: var(--r-pill); padding: 8px 16px; cursor: pointer; }
.gen-out__bar .seg2 button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.gen-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gres { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); cursor: pointer; }
.gres img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gres:hover img { transform: scale(1.04); }
.gres__ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,24,29,.6), transparent 50%); opacity: 0; transition: opacity .25s; display: flex; align-items: flex-end; padding: 16px; gap: 8px; }
.gres:hover .gres__ov { opacity: 1; }
.gres__n { position: absolute; top: 12px; left: 12px; }
.gres__act { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-pill); padding: 7px 13px; }
.gres__act:hover { background: var(--accent); border-color: var(--accent); }
.studio__hint { display: flex; align-items: flex-start; gap: 10px; background: var(--accent-tint2); border: 1px solid var(--accent-tint); border-radius: var(--r); padding: 14px 16px; font-size: 13px; color: var(--accent-deep); line-height: 1.55; margin-top: 22px; }
.studio__hint svg { flex: none; margin-top: 1px; }

@media (max-width: 1000px) {
  .wrap { padding: 0 24px; }
  .feathub, .detail, .mypage, .ft__top { grid-template-columns: 1fr; }
  .feat-cards, .cardgrid, .related-row, .recent-thumbs, .dl-hist, .plans, .packs, .process, .stats, .scrap-grid, .order-cards, .mp-stats, .mp-cards { grid-template-columns: repeat(2, 1fr); }
  .related-row > .gcard { flex-basis: calc((100% - 16px) / 2); }
  .ft__top { gap: 32px 20px; }
  .nav__links, .nav__sep { display: none; }
  .side, .mp-side { position: static; }
}
@media (max-width: 600px) {
  .feat-cards, .cardgrid, .related-row, .recent-thumbs, .dl-hist, .plans, .packs, .process, .stats, .scrap-grid, .order-cards, .mp-stats, .mp-cards { grid-template-columns: 1fr; }
}
