:root {
  --bg: #0c0f0d;
  --bg-2: #11150f;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.18);
  --accent: #17d96f;
  --accent-dark: #0eaa54;
  --text: #f3f6f2;
  --muted: #9aa39b;
  --dim: #6b756c;
  --yellow: #ffe66a;
  --blue: #2878ff;
  --radius: 16px;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(23,217,111,0.14), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(40,120,255,0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100%, 1080px); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.shop-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,15,13,0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.shop-header .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: grid; place-items: center; color: #06140c; font-weight: 800; }
.brand small { color: var(--muted); font-weight: 500; font-family: var(--font-body); font-size: .8rem; }
.header-link { color: var(--muted); font-size: .9rem; transition: color .2s; }
.header-link:hover { color: var(--text); }

/* Region toggle */
.region-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.region-toggle button { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .85rem; padding: .35rem .9rem; border-radius: 999px; cursor: pointer; transition: .15s; }
.region-toggle button.active { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #06140c; }

/* Hero slider */
.slider { position: relative; margin: 1.25rem 0 1rem; border-radius: 20px; overflow: hidden; }
.slides { display: flex; transition: transform .5s var(--ease, ease); }
.slide { min-width: 100%; aspect-ratio: 1100 / 320; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.2rem, 4vw, 3rem); color: #fff; position: relative; }
@media (max-width: 600px) { .slide { aspect-ratio: 16/10; } }
.slide h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 3rem); line-height: 1.05; letter-spacing: -.02em; max-width: 60%; }
.slide p { margin-top: .6rem; font-size: clamp(.9rem, 2vw, 1.1rem); opacity: .92; max-width: 55%; }
.slide .slide-cta { margin-top: 1rem; align-self: flex-start; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 1.5rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 2; }
.slider-arrow:hover { background: rgba(0,0,0,.55); }
.slider-arrow.left { left: 14px; } .slider-arrow.right { right: 14px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 2; }
.slider-dots button { width: 22px; height: 4px; border-radius: 2px; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.slider-dots button.active { background: #fff; }

/* Category bar */
.cat-bar { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem 0 1.2rem; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: .5rem .95rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.cat-chip:hover { border-color: var(--border-2); color: var(--text); }
.cat-chip.active { background: rgba(23,217,111,.14); border-color: rgba(23,217,111,.4); color: var(--accent); }

.catalog-title { font-family: var(--font-display); font-size: 1.6rem; margin: .5rem 0 .2rem; }
.catalog-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }

/* Hero (legacy, other pages) */
.hero { padding: 3.5rem 0 1.5rem; text-align: center; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; margin: .6rem 0; letter-spacing: -.02em; }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; padding: 1.5rem 0 4rem; }
.card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 18px 44px rgba(0,0,0,.35), 0 0 30px rgba(23,217,111,.06); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(23,217,111,.12); border: 1px solid rgba(23,217,111,.25); color: var(--accent); }
.card .pimg { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); }
.card .ptype, .ptype { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem; }
.card h2 { font-family: var(--font-display); font-size: 1.3rem; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { color: var(--accent); }
.pcard-slug { display: block; font-family: monospace; font-size: .75rem; color: var(--dim); margin: .3rem 0 .1rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-slug:hover { color: var(--accent); }
.card .tagline {
  color: var(--muted);
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .desc {
  display: none;
}
.card .price-row { display: flex; align-items: baseline; gap: .4rem; margin-top: .3rem; }
.card .price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.card .per { color: var(--muted); font-size: .85rem; }

/* Rating & reviews */
.rating { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.stars { color: var(--yellow); letter-spacing: 1px; }
.stars.dim { color: var(--dim); }
.stars.sm { font-size: .8rem; }
.rcount { color: var(--muted); font-size: .8rem; }
.seller-line { color: var(--muted); font-size: .82rem; }
.m-reviews { display: flex; flex-direction: column; gap: .6rem; margin: .2rem 0 1rem; max-height: 230px; overflow-y: auto; }
.m-reviews:empty { display: none; }
.reviews-head { font-size: .9rem; color: var(--text); }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .75rem; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.review-author { font-weight: 600; font-size: .85rem; }
.review-body { color: var(--muted); font-size: .85rem; margin-top: .2rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: .95rem; padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: .18s; font-family: var(--font-body); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #06140c; }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 100; padding: 1rem; overflow-y: auto; }
.modal-back.open { display: grid; }
.modal { width: min(100%, 440px); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .3rem; }
.modal .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }

/* Product detail modal (two-panel) */
.modal-product {
  width: min(96vw, 900px) !important;
  max-height: 88vh;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  position: relative;
  align-items: stretch;
}
.mp-close {
  position: absolute; top: .85rem; right: .85rem; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: var(--muted); font-size: .95rem; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.mp-close:hover { color: var(--text); background: rgba(255,255,255,.14); }
.mp-left {
  background: rgba(255,255,255,.025);
  border-right: 1px solid var(--border);
  padding: 2rem 1.4rem 2rem;
  overflow-y: auto;
  display: flex; flex-direction: column;
  max-height: 88vh;
}
.mp-img-wrap {
  width: 100%; aspect-ratio: 1; max-width: 160px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  background: rgba(23,217,111,.08); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 3.5rem;
}
.mp-right {
  padding: 2rem 1.8rem 2rem;
  overflow-y: auto;
  display: flex; flex-direction: column;
  max-height: 88vh;
}
.mp-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; margin: .4rem 0 .5rem; letter-spacing: -.01em; }
.mp-tagline { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.mp-desc { color: var(--dim); font-size: .9rem; line-height: 1.65; margin-bottom: .5rem; white-space: pre-wrap; }
.mp-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.mp-price-row { display: flex; align-items: baseline; gap: .5rem; margin: .8rem 0 .2rem; }
.mp-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--accent); }
.mp-per { color: var(--muted); font-size: .9rem; }
@media (max-width: 680px) {
  .modal-product {
    grid-template-columns: 1fr;
    max-height: none !important;
    overflow: visible !important;
  }
  .mp-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.2rem;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    overflow-y: visible !important;
    max-height: none !important;
  }
  .mp-right {
    overflow-y: visible !important;
    max-height: none !important;
    padding: 1.5rem 1.2rem;
  }
  .mp-img-wrap { max-width: 80px; flex-shrink: 0; }
}
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: .7rem .9rem; color: var(--text); font: inherit; outline: none; transition: border-color .18s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.field { margin-bottom: 1rem; }
.err { color: #ff6b6b; font-size: .85rem; margin-top: .5rem; min-height: 1em; }

/* Order / chat page */
.order-loading { padding: 4rem 0; color: var(--muted); }

.order-hero { display: flex; align-items: center; gap: 1.1rem; padding: 1.4rem 1.6rem; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); margin: 2rem 0 .9rem; }
.order-hero-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; border: 1px solid var(--border); flex-shrink: 0; overflow: hidden; }
.order-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.order-hero-info { flex: 1; min-width: 0; }
.order-hero-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-hero-meta { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; flex-wrap: wrap; }
.hero-plan-chip { font-size: .8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: .15rem .6rem; }
.hero-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); }

.order-steps { display: flex; align-items: center; padding: 1.1rem 1.6rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.1rem; }
.step { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); flex-shrink: 0; transition: color .2s; }
.step.active { color: var(--text); }
.step.done { color: var(--accent); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; transition: all .2s; }
.step.active .step-dot { border-color: #4a9eff; color: #4a9eff; background: rgba(74,158,255,.1); }
.step.done .step-dot { border-color: var(--accent); color: var(--accent); background: rgba(23,217,111,.12); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .65rem; min-width: 16px; transition: background .2s; }
.step-line.done { background: var(--accent); }

.order-wrap { padding: 0 0 4rem; display: grid; gap: 1.1rem; grid-template-columns: 340px 1fr; align-items: start; }
.panel { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.panel h3 { font-family: var(--font-display); margin-bottom: .8rem; font-size: 1.05rem; }

.order-id-row { display: flex; align-items: center; gap: .5rem; padding-bottom: .8rem; margin-bottom: .3rem; border-bottom: 1px solid var(--border); }
.order-id-label { color: var(--muted); font-size: .8rem; }
.order-id-val { font-family: monospace; font-size: .82rem; color: var(--dim); flex: 1; letter-spacing: .05em; }
.copy-btn { background: none; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; color: var(--muted); padding: .18rem .4rem; font-size: .82rem; transition: color .15s, border-color .15s; line-height: 1; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.kv:last-of-type { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.price-kv { font-weight: 700; color: var(--accent); font-family: var(--font-display); }

.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge.awaiting_payment { background: rgba(255,230,106,.14); color: var(--yellow); border: 1px solid rgba(255,230,106,.3); }
.badge.paid { background: rgba(40,120,255,.14); color: #7fb0ff; border: 1px solid rgba(40,120,255,.3); }
.badge.delivered { background: rgba(23,217,111,.14); color: var(--accent); border: 1px solid rgba(23,217,111,.3); }
.badge.cancelled { background: rgba(255,107,107,.14); color: #ff8b8b; border: 1px solid rgba(255,107,107,.3); }

.pay-info { background: rgba(255,230,106,.07); border: 1px solid rgba(255,230,106,.22); border-radius: 12px; padding: 1rem; font-size: .9rem; color: #f0e9c8; margin-top: 1rem; }
.pay-info-head { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; margin-bottom: .55rem; color: #f0e9c8; }
#o-pay-text { white-space: pre-wrap; word-break: break-all; overflow-wrap: break-word; }
.paid-btn-big { font-size: 1rem; padding: .85rem 1rem; letter-spacing: .01em; }

.instruction-box { background: rgba(23,217,111,.07); border: 1px solid rgba(23,217,111,.25); border-radius: 12px; padding: 1rem; margin-top: 1rem; }
.instruction-title { font-weight: 600; color: var(--accent); font-size: .85rem; margin-bottom: .4rem; }
.instruction-text { white-space: pre-wrap; font-size: .9rem; color: var(--text); line-height: 1.55; word-break: break-word; overflow-wrap: break-word; }

.bookmark-hint { display: flex; align-items: flex-start; gap: .55rem; margin-top: 1.2rem; padding: .75rem .9rem; background: rgba(255,255,255,.04); border-radius: 10px; border: 1px solid var(--border); font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* Chat */
.chat { display: flex; flex-direction: column; min-height: 460px; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: .6rem; padding: .25rem; max-height: 56vh; overflow-y: auto; }
.msg { max-width: 78%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; word-wrap: break-word; }
.msg .who { font-size: .72rem; color: var(--dim); margin-bottom: .15rem; }
.msg.buyer { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #06140c; border-bottom-right-radius: 4px; }
.msg.buyer .who { color: rgba(6,20,12,.6); }
.msg.seller { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-empty { color: var(--dim); text-align: center; padding: 2rem 1rem; font-size: .9rem; }
.chat-input { display: flex; gap: .5rem; margin-top: .9rem; }
.chat-input input { flex: 1; }
.muted-note { color: var(--dim); font-size: .82rem; margin-top: .6rem; }

/* Admin */
.admin-orders { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-orders th, .admin-orders td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--border); }
.admin-orders th { color: var(--muted); font-weight: 600; }
.admin-orders tr { cursor: pointer; }
.admin-orders tr:hover td { background: var(--surface); }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.claim-flag { color: var(--accent); font-weight: 600; }

/* Tabs */
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.tab { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; padding: .7rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .18s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Admin product card */
.pcard { position: relative; }
.pcard.inactive { opacity: .55; }
.pcard .pcard-meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--dim); }
.pcard .owner-tag { color: var(--muted); font-size: .78rem; }
.tag-off { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .72rem; background: rgba(255,107,107,.14); color: #ff8b8b; border: 1px solid rgba(255,107,107,.3); }

/* Stats */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.stat-card { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem; }
.stat-card .label { color: var(--muted); font-size: .82rem; }
.stat-card .value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; margin-top: .3rem; }
.stat-card.accent .value { color: var(--accent); }
.stat-card.dim .value { color: var(--muted); font-size: 1.3rem; }

.footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--dim); font-size: .85rem; text-align: center; }

/* Seller / rules pages */
.sec-title { font-family: var(--font-display); font-size: 1.5rem; margin: 1.5rem 0 1.2rem; }
.btn-lg { font-size: 1rem; }
.link { color: var(--accent); }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.adv { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; }
.adv-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(23,217,111,.12); border: 1px solid rgba(23,217,111,.25); margin-bottom: .7rem; }
.adv h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .35rem; }
.adv p { color: var(--muted); font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #06140c; font-weight: 700; font-family: var(--font-display); margin-bottom: .6rem; }
.step h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .9rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.1rem; margin-bottom: .6rem; }
.faq summary { padding: 1rem 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--accent); margin-right: .6rem; font-weight: 700; }
.faq details[open] summary::before { content: '–'; }
.faq details > div { color: var(--muted); font-size: .92rem; padding-bottom: 1rem; line-height: 1.6; }
.apply-card { max-width: 560px; margin: 0 auto; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 1.6rem; }
.apply-done { text-align: center; padding: 1.5rem 0; }
.apply-done-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(23,217,111,.14); color: var(--accent); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1rem; border: 1px solid rgba(23,217,111,.3); }
.apply-done h3 { font-family: var(--font-display); margin-bottom: .4rem; }
.apply-done p { color: var(--muted); }

/* Article (rules) */
.doc { max-width: 760px; margin: 0 auto; padding: 2rem 0 3rem; }
.doc h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: .4rem; }
.doc .updated { color: var(--dim); font-size: .85rem; margin-bottom: 1.5rem; }
.doc h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.doc p, .doc li { color: var(--muted); line-height: 1.7; font-size: .95rem; }
.doc ul { margin: .5rem 0 .5rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.doc .note { background: rgba(255,230,106,.07); border: 1px solid rgba(255,230,106,.22); border-radius: 10px; padding: .9rem 1.1rem; color: #f0e9c8; font-size: .9rem; margin: 1.2rem 0; }

/* Shop footer */
.shop-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.5rem 0 1.5rem; background: rgba(255,255,255,0.015); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; }
.footer-brand p { color: var(--muted); font-size: .85rem; margin-top: .7rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: .9rem; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--muted); font-size: .88rem; transition: color .18s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { color: var(--dim); font-size: .82rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .order-wrap { grid-template-columns: 1fr; }
  .order-hero { padding: 1rem; gap: .8rem; }
  .order-hero-icon { width: 46px; height: 46px; font-size: 1.3rem; }
  .order-steps { padding: .9rem 1rem; }
  .step-label { display: none; }
  .step-line { min-width: 10px; margin: 0 .4rem; }
}

/* ── Product page ── */
.pp-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); padding: 1.5rem 0 .5rem; flex-wrap: wrap; }
.pp-breadcrumb a { color: var(--muted); text-decoration: none; } .pp-breadcrumb a:hover { color: var(--accent); }
.pp-breadcrumb span { color: var(--dim); }
.pp-page { padding-bottom: 4rem; }
.pp-hero { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; padding: 1rem 0 2rem; }
.pp-visual { position: sticky; top: 80px; }
.pp-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; aspect-ratio: 1; }
.pp-icon { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.pp-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.2; margin: .35rem 0 .6rem; }
.pp-tagline { font-size: 1.05rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.55; }
.pp-desc { font-size: .95rem; color: var(--text); line-height: 1.65; margin-bottom: 1.2rem; white-space: pre-wrap; }
.pp-price-block { display: flex; align-items: baseline; gap: .45rem; margin: 1.5rem 0 1rem; }
.pp-from { color: var(--muted); font-size: .9rem; }
.pp-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.pp-plans { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.pp-plan-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.pp-plan-name { flex: 1; font-size: .95rem; }
.pp-plan-price { font-weight: 700; color: var(--accent); font-family: var(--font-display); white-space: nowrap; }
.pp-plan-buy { padding: .4rem 1rem; font-size: .85rem; }
.pp-buy-main { font-size: 1.05rem; padding: .95rem 1.5rem; }
@media (max-width: 680px) {
  .pp-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .pp-visual { position: static; max-width: 200px; }
  .pp-title { font-size: 1.5rem; }
  .pp-price { font-size: 1.7rem; }
}

.rating-select span { transition: transform 0.1s ease, color 0.15s ease; }
.rating-select span:hover { transform: scale(1.2); }
.rating-select span:active { transform: scale(0.9); }
.rating-select span.active { color: var(--yellow) !important; }

#store-search:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(23, 217, 111, 0.15);
}
#m-promo {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}
#m-promo:focus {
  border-color: var(--accent) !important;
}
#m-promo-apply {
  transition: all 0.15s ease;
}
#m-promo-apply:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--accent);
  color: var(--accent);
}

#m-topup-fields input {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 0.6rem 0.5rem;
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
  width: 100%;
}
#m-topup-fields input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(23, 217, 111, 0.12);
}
#m-topup-fields input::-webkit-outer-spin-button,
#m-topup-fields input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#m-topup-fields input[type=number] {
  -moz-appearance: textfield;
}

/* Embedded product card layout */
.pp-card {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  align-items: stretch;
  margin-top: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.pp-card-left {
  background: rgba(255,255,255,.015);
  border-right: 1px solid var(--border);
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.pp-card-right {
  padding: 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
}
.pp-card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-width: 180px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(23,217,111,.06);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 4rem;
}
.pp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-card-icon {
  color: var(--accent);
}

@media (max-width: 768px) {
  .pp-card {
    grid-template-columns: 1fr;
  }
  .pp-card-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .pp-card-img-wrap {
    max-width: 90px;
    margin: 0;
  }
  .pp-card-right {
    padding: 1.5rem;
  }
}

.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
  text-align: center;
}
.pay-method-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.pay-method-btn.active {
  background: rgba(23, 217, 111, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}
.pay-method-btn .icon {
  font-size: 1.4rem;
}



