:root {
  --bg: #0a0f1e;
  --bg-soft: #0f1730;
  --bg-card: #131c38;
  --bg-card-hover: #182348;
  --border: #1f2c52;
  --border-soft: #28365f;
  --text: #eef2ff;
  --text-muted: #9aa8cf;
  --text-faint: #6b7aa8;
  --accent: #10b981;
  --accent-strong: #059669;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --gold: #f59e0b;
  --gold-soft: #fbbf24;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(900px 400px at 85% -10%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(245, 158, 11, 0.08), transparent 55%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1px auto;
  gap: 8px 24px;
  align-items: center;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.5px; grid-column: 1; grid-row: 1; }
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 0;
  overflow: hidden;
  box-shadow: 0 0 18px var(--accent-glow);
}
.brand .logo img { width: 100%; height: 100%; border-radius: inherit; display: block; object-fit: contain; font-size: 0; }
.brand small { display: block; font-size: 0.62rem; font-weight: 600; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

/* Brand text: "Pak" neon green + "Squad" hot pink, ~28px bold */
.brand > span:last-child {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #00ff66 0%, #00ff66 37.5%, #ff007f 37.5%, #ff007f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Thin separator line directly below Row 1 (injected via JS) */
.nav-sep { grid-column: 1 / -1; grid-row: 2; height: 1px; background: var(--border); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: 0; flex-wrap: wrap; grid-column: 1; grid-row: 3; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #00ff66;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: #9dffc0; background: rgba(0, 255, 102, 0.12); }
.nav-links a.active { color: #00ff66; text-shadow: 0 0 12px rgba(0, 255, 102, 0.6); }
.nav-ic { display: inline-grid; place-items: center; flex-shrink: 0; }
.nav-ic img { width: 17px; height: 17px; object-fit: contain; }
.nav-ic svg { width: 16px; height: 16px; }

.nav-actions { margin-left: 0; display: flex; align-items: center; gap: 12px; grid-column: 2; grid-row: 3; justify-self: end; }

/* Live Discord member badge — sits on the brand row (top line), right side */
.discord-header-badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #04120c; box-shadow: 0 6px 18px var(--accent-glow); }
.btn-primary:hover { color: #04120c; filter: brightness(1.1); }

.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #1a1204; box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25); }
.btn-gold:hover { color: #1a1204; filter: brightness(1.08); }

.btn-ghost { background: transparent; border: 1px solid var(--border-soft); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { color: #fff; filter: brightness(1.1); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 13px; font-size: 0.82rem; }

.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.15s, background 0.15s;
}
.cart-btn:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.cart-btn .badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px;
  padding: 0 4px;
  background: var(--accent); color: #04120c;
  border-radius: 10px;
  font-size: 0.7rem; font-weight: 800;
  display: grid; place-items: center;
}

.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 0.86rem; font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.user-chip .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 0.72rem; color: #04120c; font-weight: 800; }

.user-menu-wrap { position: relative; display: inline-flex; }

/* ---------- Member wallet chip + dropdown ---------- */
.wallet-wrap { position: relative; display: inline-flex; }
.wallet-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 6px 11px;
  border-radius: 11px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wallet-chip:hover { border-color: var(--accent); background: rgba(16, 185, 129, 0.08); }
.wallet-chip img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.wallet-chip b { color: var(--accent); font-size: 0.8rem; }

.wallet-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 2001;
  display: none;
}
.wallet-dropdown.show { display: block; }

.wallet-dropdown .wd-bal,
.wallet-dropdown .wd-spent {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.06);
}
.wallet-dropdown .wd-spent { background: rgba(245, 158, 11, 0.07); margin-top: 8px; }
.wallet-dropdown .wd-bal-ic,
.wallet-dropdown .wd-spent-ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(16, 185, 129, 0.15);
}
.wallet-dropdown .wd-spent-ic { background: rgba(245, 158, 11, 0.15); }
.wallet-dropdown .wd-bal-ic img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); }
.wallet-dropdown .wd-bal small,
.wallet-dropdown .wd-spent small { display: block; color: var(--text-muted); font-size: 0.72rem; font-weight: 600; }
.wallet-dropdown .wd-bal b,
.wallet-dropdown .wd-spent b { font-size: 1.02rem; color: var(--text); }

.wallet-dropdown .wd-txns { margin-top: 10px; }
.wallet-dropdown .wd-txns-head {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text-muted); padding: 4px 8px 8px;
}
.wallet-dropdown .wd-txn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 8px;
}
.wallet-dropdown .wd-txn:hover { background: rgba(255, 255, 255, 0.04); }
.wallet-dropdown .wd-txn-ic {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
}
.wallet-dropdown .wd-txn-txt { flex: 1; min-width: 0; }
.wallet-dropdown .wd-txn-txt b { display: block; font-size: 0.82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-dropdown .wd-txn-txt small { color: var(--text-muted); font-size: 0.7rem; }
.wallet-dropdown .wd-txn-amt { font-size: 0.82rem; font-weight: 800; }
.wallet-dropdown .wd-txn-amt.up { color: #10b981; }
.wallet-dropdown .wd-txn-amt.down { color: #ef4444; }
.wallet-dropdown .wd-empty { color: var(--text-muted); font-size: 0.8rem; padding: 6px 8px; }

/* ---------- Member wallet chip + dropdown (end) ---------- */

/* ---------- Member order history chip + dropdown ---------- */
.orders-wrap { position: relative; display: inline-flex; }
.orders-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 6px 11px;
  border-radius: 11px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.orders-chip:hover { border-color: var(--accent); background: rgba(16, 185, 129, 0.08); }
.orders-chip svg { color: var(--accent); }
.orders-chip b {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #04120c;
  border-radius: 9px; font-size: 0.7rem;
}

.orders-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 2001;
  display: none;
}
.orders-dropdown.show { display: block; }

.orders-dropdown .od-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 10px;
}
.orders-dropdown .od-head-ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}
.orders-dropdown .od-head b { display: block; font-size: 0.95rem; color: var(--text); }
.orders-dropdown .od-head small { color: var(--text-muted); font-size: 0.75rem; }

.orders-dropdown .od-cats { display: flex; gap: 6px; padding: 0 2px 10px; }
.orders-dropdown .od-cat {
  flex: 1;
  padding: 7px 4px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.orders-dropdown .od-cat:hover { color: var(--text); border-color: var(--accent); }
.orders-dropdown .od-cat.active { color: #04120c; background: var(--accent); border-color: var(--accent); }

.orders-dropdown .od-list { max-height: 260px; overflow-y: auto; }
.orders-dropdown .od-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 8px;
}
.orders-dropdown .od-row:hover { background: rgba(255, 255, 255, 0.04); }
.orders-dropdown .od-row-ic {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.12);
}
.orders-dropdown .od-row-txt { flex: 1; min-width: 0; }
.orders-dropdown .od-row-txt b { display: block; font-size: 0.82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders-dropdown .od-row-txt small { color: var(--text-muted); font-size: 0.7rem; }
.orders-dropdown .od-row-amt { font-size: 0.82rem; font-weight: 800; color: var(--accent); }
.orders-dropdown .od-empty { color: var(--text-muted); font-size: 0.8rem; padding: 10px 8px; }
.orders-dropdown .od-status {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.orders-dropdown .od-st-ok { color: #10b981; background: rgba(16, 185, 129, 0.14); }
.orders-dropdown .od-st-ref { color: #f59e0b; background: rgba(245, 158, 11, 0.14); }
.orders-dropdown .od-st-pend { color: var(--text-muted); background: rgba(128, 128, 128, 0.16); }
.orders-dropdown .od-foot { padding: 8px 2px 2px; border-top: 1px solid var(--border-soft); margin-top: 6px; }
.orders-dropdown .od-clear {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}
.orders-dropdown .od-clear:hover { background: rgba(239, 68, 68, 0.18); border-color: #ef4444; }

/* Status badges (also used in the owner panel) */
.od-status {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.od-st-ok { color: #10b981; background: rgba(16, 185, 129, 0.14); }
.od-st-ref { color: #f59e0b; background: rgba(245, 158, 11, 0.14); }
.od-st-pend { color: var(--text-muted); background: rgba(128, 128, 128, 0.16); }

/* ---------- Member order history chip + dropdown (end) ---------- */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: none;
}
.user-menu-dropdown.show { display: block; }
.user-menu-dropdown .umd-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}
.user-menu-dropdown .umd-head strong { display: block; font-size: 0.9rem; color: var(--text); }
.user-menu-dropdown .umd-head small { color: var(--text-muted); font-size: 0.78rem; word-break: break-all; }
.user-menu-dropdown .umd-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: none; border: none;
  color: var(--text); font-size: 0.86rem; font-weight: 600;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  text-align: left;
}
.user-menu-dropdown .umd-item small {
  display: block; font-weight: 500; font-size: 0.72rem; color: var(--text-muted);
}
.user-menu-dropdown .umd-item:hover { background: var(--bg-soft); color: #fff; }
.user-menu-dropdown .umd-item.danger { color: #f87171; }
.user-menu-dropdown .umd-item.danger:hover { background: rgba(248, 113, 113, 0.12); }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; }

.announce {
  display: block;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto 26px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 100px;
  padding: 0;
}
.announce-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 8px 0;
  animation: announce-scroll 30s linear infinite;
  will-change: transform;
}
.announce-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 26px;
  font-size: 0.86rem; font-weight: 700;
  color: var(--gold-soft);
}
.announce code { background: rgba(245, 158, 11, 0.2); padding: 2px 8px; border-radius: 6px; }
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -1px;
  max-width: 780px;
  margin: 0 auto 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
}
.stat b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.stat span { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  color: var(--accent); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.78rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; margin: 8px 0 12px; letter-spacing: -0.5px; }
.section-head p { color: var(--text-muted); }

/* Feature / category cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.45); background: var(--bg-card-hover); box-shadow: var(--shadow); }
.card.linkable { display: block; color: inherit; }
.card.linkable:hover { color: inherit; }

.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: rgba(16, 185, 129, 0.12);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }
.card .more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; }

/* Feature list for why us */
.feature { display: flex; gap: 16px; padding: 24px; }
.feature .icon { margin-bottom: 0; flex-shrink: 0; }
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: 0.9rem; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.q-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.q-act-btn img { width: 16px; height: 16px; object-fit: contain; }
.q-act-btn:hover { color: var(--text, #fff); }
.q-act-btn.active { background: #10b981; color: #04120c; }

.quest-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.quest-modal {
  position: relative;
  background: var(--bg-card, #0d172e);
  border: 1px solid var(--border, #18284b);
  border-radius: 14px;
  padding: 26px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.quest-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.quest-modal-close:hover { color: #fff; }
.q-detail-section {
  background: var(--bg-soft, #0a1226);
  border: 1px solid var(--border, #18284b);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.q-detail-section h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #10b981);
}
.q-detail-section p { margin: 0; color: var(--text, #fff); font-size: 0.95rem; }
.q-detail-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  margin-top: 4px;
}

.product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.45); box-shadow: var(--shadow); }

.product .thumb {
  height: 150px;
  display: grid; place-items: center;
  font-size: 3rem;
  background:
    radial-gradient(200px 100px at 50% 0%, rgba(16, 185, 129, 0.18), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.product .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product .tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.product h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product .desc { color: var(--text-muted); font-size: 0.85rem; flex: 1; }
.product .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.product .price { font-weight: 900; font-size: 1.2rem; }
.product .price small { color: var(--text-faint); font-weight: 600; font-size: 0.75rem; display: block; }

.product.hot::before {
  content: "Hot";
  position: absolute;
  top: 12px; right: -34px;
  background: linear-gradient(90deg, var(--gold), #ea580c);
  color: #1a1204;
  font-size: 0.7rem; font-weight: 800;
  padding: 4px 40px;
  transform: rotate(45deg);
  z-index: 2;
}
.product.hot { position: relative; overflow: hidden; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.filter-pill {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700; font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { color: var(--text); border-color: var(--accent); }
.filter-pill.active { background: var(--accent); color: #04120c; border-color: var(--accent); }

/* ---------- Page hero ---------- */
.page-hero { padding: 54px 0 34px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -0.5px; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 12px auto 0; }

.breadcrumb { color: var(--text-faint); font-size: 0.86rem; margin-bottom: 10px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item.open { border-color: rgba(16, 185, 129, 0.5); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem; font-weight: 700;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
}
.faq-q .chev { transition: transform 0.2s; color: var(--accent); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 20px 18px; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.review p.body { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .who .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #04120c;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}
.review .who b { display: block; font-size: 0.95rem; }
.review .who span { color: var(--text-faint); font-size: 0.8rem; }

.review-summary {
  display: flex; gap: 30px; align-items: center; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.review-summary .big { text-align: center; }
.review-summary .big b { font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.review-summary .big span { color: var(--text-muted); font-size: 0.9rem; display: block; margin-top: 6px; }

/* ---------- Homepage scrolling customer reviews ---------- */
.reviews-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews-track {
  display: flex;
  width: max-content;
  padding: 6px 0 12px;
  animation: reviews-scroll 85s linear infinite;
  will-change: transform;
}
.reviews-track:hover { animation-play-state: paused; }
.reviews-track .review {
  width: clamp(280px, 80vw, 360px);
  flex: 0 0 auto;
  margin: 0 10px;
}
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reviews-track .review { width: 340px; }
}

/* ---------- Steps / trust strip ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent);
  font-weight: 900; font-size: 1.15rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.16), rgba(245, 158, 11, 0.14));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 18px;
  padding: 48px 36px;
  text-align: center;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 10px; }
.cta p { color: var(--text-muted); max-width: 540px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 50px;
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-grid h4 { font-size: 0.86rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.footer-brand .logo { margin-bottom: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 20px;
}
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 0.85rem;
}
.footer-bottom .container a { color: var(--text-faint); margin-left: 18px; }
.footer-bottom .container a:hover { color: var(--accent); }

.disclaimer {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 20px;
  color: var(--text-faint); font-size: 0.76rem; line-height: 1.7;
  border-top: 1px dashed var(--border);
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(2, 6, 18, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 200;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  z-index: 210;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 1.1rem; }
.drawer-close { background: none; border: none; color: var(--text-muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.drawer-close:hover { color: var(--danger); }

.drawer-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-line .emoji { font-size: 1.6rem; }
.cart-line .info { flex: 1; }
.cart-line .info b { font-size: 0.92rem; display: block; }
.cart-line .info span { color: var(--text-faint); font-size: 0.8rem; }
.cart-line .price { font-weight: 800; font-size: 0.95rem; color: var(--accent); }
.cart-line .rm { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 1.1rem; }
.cart-line .rm:hover { color: var(--danger); }

.drawer-foot { border-top: 1px solid var(--border); padding: 18px 22px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.cart-total b { color: var(--accent); }

.empty-cart { text-align: center; color: var(--text-faint); padding: 40px 0; }
.empty-cart .big { font-size: 2.6rem; margin-bottom: 10px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-left: 4px solid var(--accent);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 0.92rem; font-weight: 600;
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
  max-width: 90vw;
}
.toast.out { animation: toast-out 0.25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px); } }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-card {
  width: min(520px, 100%);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px;
  animation: modal-in 0.2s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-card .sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 7px; color: var(--text-muted); }
.form-group input, .form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }

.order-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; }
.order-summary .line { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text-muted); padding: 5px 0; }
.order-summary .line.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; color: var(--text); font-weight: 800; font-size: 1rem; }
.order-summary .line.total b { color: var(--accent); }

.auth-card { text-align: center; }
.auth-card .discord-btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; margin-top: 8px; }
.auth-card .divider { display: flex; align-items: center; gap: 14px; color: var(--text-faint); font-size: 0.85rem; margin: 22px 0; }
.auth-card .divider::before, .auth-card .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 16px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .updated { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Tables ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.price-table th { background: var(--bg-soft); color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.price-table td b { color: var(--accent); }

/* ---------- PakSquad icon logo ---------- */
.brand .logo img { width: 100%; height: 100%; border-radius: inherit; display: block; }

/* ---------- Product image thumbnails ---------- */
.product .thumb img { width: 84px; height: 84px; image-rendering: pixelated; filter: drop-shadow(0 6px 14px rgba(16, 185, 129, 0.35)); }
.cart-line .cart-thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; image-rendering: pixelated; }
.cart-line .emoji { font-size: 1.4rem; }

/* ---------- Price note ---------- */
.price-note { text-align: center; color: var(--text-faint); font-size: 0.82rem; margin-top: 22px; }
.price-note a { color: var(--accent); }

/* ---------- Skill directory ---------- */
.skill-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.skill-card:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.45); box-shadow: var(--shadow); }
.skill-card .skill-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.skill-card .skill-head img { width: 52px; height: 52px; image-rendering: pixelated; filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.3)); }
.skill-card .skill-head h3 { margin: 0; font-size: 1.1rem; }
.skill-cat { font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.skill-intro { color: var(--text-muted); font-size: 0.86rem; flex: 1; }
.skill-methods { margin-top: 12px; font-size: 0.82rem; color: var(--text-muted); border-left: 3px solid var(--accent); padding-left: 10px; }
.skill-methods b { color: var(--text); }
.skill-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.skill-xp { color: var(--text-faint); font-size: 0.8rem; }
.skill-xp b { color: var(--text); }
.skill-foot .price { font-weight: 900; font-size: 1.05rem; color: var(--accent); }

/* ---------- XP section ---------- */
.xp-intro { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.xp-intro h3 { font-size: 1.5rem; margin-bottom: 10px; }
.xp-intro p { color: var(--text-muted); font-size: 0.95rem; }
.xp-intro a { color: var(--accent); }
.xp-table-wrap { max-height: 420px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.xp-table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
.xp-table th, .xp-table td { padding: 9px 16px; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.xp-table th { position: sticky; top: 0; background: var(--bg-soft); color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }
.xp-table tbody tr:nth-child(even) { background: rgba(16, 185, 129, 0.04); }

/* ---------- Owner control panel ---------- */
.owner-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 26px 0 22px; flex-wrap: wrap; }
.owner-head h1 { font-size: 1.8rem; margin: 4px 0; }
.owner-head p { color: var(--text-muted); font-size: 0.92rem; }

.owner-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.owner-tab {
  padding: 10px 22px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); font-weight: 700; font-size: 0.92rem; cursor: pointer;
  transition: all 0.15s;
}
.owner-tab:hover { color: var(--text); border-color: var(--accent); }
.owner-tab.active { background: var(--accent); color: #04120c; border-color: var(--accent); }

.owner-pane { display: grid; gap: 18px; max-width: 900px; }
.owner-card { padding: 24px; }
.owner-card h3 { margin-bottom: 14px; font-size: 1.1rem; }
.owner-row { display: flex; align-items: center; flex-wrap: wrap; }

.preset-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.preset-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: 0.85rem; cursor: pointer;
  transition: all 0.15s;
}
.preset-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.preset-btn .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255,255,255,0.25); }

.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.color-item label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; text-transform: capitalize; }
.color-item input[type="color"] {
  width: 100%; height: 44px; padding: 4px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-soft); cursor: pointer;
}

.icon-list { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; }
.icon-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.icon-row img { width: 44px; height: 44px; image-rendering: pixelated; background: rgba(0,0,0,0.25); border-radius: 8px; object-fit: contain; padding: 4px; }
.icon-row-info { flex: 1; display: flex; align-items: center; gap: 8px; }
.icon-row-info b { text-transform: capitalize; }
.icon-row-info span { font-size: 0.72rem; color: var(--text-faint); }
.icon-row-info .custom-badge { color: var(--accent); font-weight: 800; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.btn-danger { background: var(--danger); color: #fff; border: none; }
.btn-danger:hover { filter: brightness(1.1); }

@media (max-width: 980px) {
  .color-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 40px; }
.mb-3 { margin-bottom: 28px; }
.center { text-align: center; }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-5, .products { grid-template-columns: repeat(2, 1fr); }
  .skill-directory { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .products, .review-grid, .skill-directory { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .navbar { gap: 6px 12px; padding: 10px 14px; }
  .nav-links { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .nav-links a { white-space: nowrap; }
  .hero { padding: 56px 0 44px; }
  .hero-buttons .btn { width: 100%; }
}

/* ---------- Calculator CTA (skills page) ---------- */
.calc-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.12), rgba(255, 0, 122, 0.1));
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text, #f5f7fa);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.calc-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0, 255, 102, 0.25); }
.calc-cta-icon { font-size: 28px; }
.calc-cta-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.calc-cta-body b { font-size: 16px; color: #00ff66; }
.calc-cta-body small { font-size: 13px; color: rgba(245, 247, 250, 0.65); }
.calc-cta-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #00ff66, #02e05b);
  color: #0a0e14;
  font-weight: 800;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
}
@media (max-width: 560px) { .calc-cta { flex-wrap: wrap; } .calc-cta-btn { width: 100%; text-align: center; } }

/* ---------- Owner: Pricing & Logo ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.owner-subcard { padding: 16px; }
.owner-subcard h3 { margin-top: 0; font-size: 14px; }

.price-skill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 900px) { .price-skill-list { grid-template-columns: 1fr; } }
.price-skill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 10px 12px;
}
.price-skill-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.price-skill-name img { width: 30px; height: 30px; image-rendering: pixelated; }
.price-skill-name b { font-size: 13px; }
.price-skill-rate { display: flex; gap: 10px; }
.price-skill-rate label { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(245,247,250,0.55); }
.price-skill-rate input {
  width: 92px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px; color: #fff; font-size: 13px; padding: 6px 8px;
}
.muted { color: rgba(245,247,250,0.4); }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 34px; height: 19px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: rgba(255,255,255,0.15); transition: 0.2s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 13px; width: 13px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .slider { background: var(--accent, #ffd700); }
.switch input:checked + .slider::before { transform: translateX(15px); }
.switch-label { font-size: 10px; font-weight: 700; color: rgba(245,247,250,0.5); margin-left: 6px; }

/* logo manager */
.logo-manager { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.logo-preview {
  width: 128px; height: 128px; border-radius: 16px; border: 1px dashed rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04);
  padding: 12px;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- ManualBoosts Style Services Page ---------- */
.top-announcement-bar {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.2px;
}
.top-announcement-bar a {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 800;
}

.services-hero-section {
  padding: 44px 0 24px;
  text-align: left;
}
.services-main-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.services-main-subtitle {
  color: #10b981;
  font-size: 1.05rem;
  font-weight: 600;
}

.mb-services-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.mb-services-container.detail-active,
.mb-services-container:has(.svc-detail-view) {
  display: block !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .mb-services-container {
    grid-template-columns: 1fr;
  }
}

.mb-sidebar {
  background: #091122;
  border: 1px solid #162544;
  border-radius: 14px;
  padding: 20px;
}

.mb-search-box {
  margin-bottom: 20px;
}
.mb-search-box input {
  width: 100%;
  background: #050a14;
  border: 1px solid #162848;
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mb-search-box input:focus {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.mb-sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #162544;
}

.mb-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border-radius: 9999px;
  background: #0d172e;
  border: 1px solid #18284b;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.mb-cat-btn:hover {
  background: #132244;
  color: #ffffff;
  border-color: #10b981;
}
.mb-cat-btn.active {
  background: #10b981 !important;
  color: #04120c !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.mb-cat-btn .badge-count {
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
}
.mb-cat-btn .mb-cat-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.mb-cat-btn .mb-cat-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.mb-cat-btn.active .badge-count {
  background: rgba(0, 0, 0, 0.2);
  color: #04120c;
}

.mb-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .mb-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mb-products-grid { grid-template-columns: 1fr; }
}

.mb-service-card {
  background: #091122;
  border: 1px solid #162544;
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.mb-service-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.18);
}

.mb-service-card .mb-service-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0;
  overflow: hidden;
}
.mb-service-card .mb-service-icon img {
  max-height: 68px;
  max-width: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  font-size: 0;
}

.mb-service-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.mb-service-cat {
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mb-service-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 24px;
  flex: 1;
}

.mb-service-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 1px solid #162544;
}

.mb-service-price {
  text-align: left;
}
.mb-service-price span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}
.mb-service-price b {
  font-size: 1.35rem;
  font-weight: 900;
  color: #10b981;
}

.mb-view-btn {
  background: #10b981;
  color: #04120c;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
}
.mb-view-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.mb-service-link {
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}
.mb-service-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Service Detail Page View */
.svc-detail-view {
  width: 100%;
}
.svc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 20px;
  transition: opacity 0.15s;
}
.svc-back-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.svc-detail-badge {
  display: inline-block;
  background: #10b981;
  color: #04120c;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.svc-detail-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.svc-detail-title-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.svc-detail-title-wrap h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}
.svc-detail-sub {
  color: #10b981;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .svc-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.svc-options-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.svc-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-option-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: #0b1510;
  border: 1px solid #143525;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.svc-option-card:hover {
  border-color: #10b981;
  background: #0d1e16;
}
.svc-option-card.active {
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.svc-option-icon {
  width: 52px;
  height: 52px;
  background: #070d09;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #193f2c;
  padding: 6px;
}
.svc-option-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.svc-option-content {
  flex: 1;
  min-width: 0;
}
.svc-option-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.svc-option-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
  white-space: normal;
}

.svc-option-price-tag {
  text-align: right;
  flex-shrink: 0;
}
.svc-option-price-tag b {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: #10b981;
}
.svc-option-price-tag span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* Order Box */
.svc-order-card {
  background: #0b1510;
  border: 1px solid #143525;
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 90px;
}
.svc-order-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
}
.svc-order-price-main {
  font-size: 2.4rem;
  font-weight: 900;
  color: #10b981;
  text-align: center;
  line-height: 1;
}
.svc-order-unit-sub {
  font-size: 0.8rem;
  color: #10b981;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 20px;
  font-weight: 600;
}
.svc-order-qty-block {
  margin-bottom: 20px;
}
.svc-order-qty-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  display: block;
  text-align: center;
  margin-bottom: 8px;
}
.svc-qty-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.svc-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #1e3a2b;
  background: #10241b;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.svc-qty-btn:hover {
  background: #193d2c;
}
.svc-qty-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 24px;
  text-align: center;
}
.svc-order-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #070d09;
  border: 1px solid #143525;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.svc-order-total-row span {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
}
.svc-order-total-row b {
  font-size: 1.3rem;
  color: #10b981;
  font-weight: 900;
}
.svc-add-cart-btn {
  width: 100%;
  background: #10b981;
  color: #04120c;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.svc-add-cart-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}
.svc-order-process {
  font-size: 0.76rem;
  color: #10b981;
  line-height: 1.5;
  margin-top: 18px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid #143525;
  padding: 12px;
  border-radius: 8px;
}


/* ---------------- Sell Account (accounts marketplace) ---------------- */
.accounts-empty {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}
.accounts-empty-top { margin-bottom: 8px; }
.accounts-empty .ae-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  display: grid; place-items: center;
  background: var(--bg-soft);
}
.accounts-empty .ae-icon img { width: 100%; height: 100%; object-fit: cover; }
.accounts-empty h3 { font-size: 1.35rem; margin-bottom: 8px; }
.accounts-empty p { color: var(--text-muted); max-width: 440px; margin: 0 auto 22px; }
.accounts-divider { height: 1px; background: var(--border); margin: 28px 0; }
.section-head h2 { font-size: 1.4rem; margin-bottom: 16px; }

.seller-listing .acc-emoji { font-size: 2.4rem; }
.seller-listing .acc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.acc-badge {
  font-size: 0.72rem; font-weight: 700;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 999px;
}
.acc-badge-gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.acc-line { font-size: 0.84rem; color: var(--text-muted); margin: 3px 0; }
.acc-line b { color: var(--text); }

.sell-modal { width: min(640px, 100%); }
.sell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sell-head h2 { margin-bottom: 0; }
.sell-lookup-row { display: flex; gap: 8px; }
.sell-lookup-row input { flex: 1; }
.sell-lookup-result { margin-top: 10px; }
.lookup-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.lk-name { font-weight: 800; font-size: 0.95rem; }
.lk-tag {
  font-size: 0.74rem; font-weight: 700;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent);
}
.hint { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; }
.hint.err { color: var(--danger); }

.sell-q { margin: 22px 0; }
.sell-q > label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.sell-q input[type="text"], .sell-q input[type="number"] {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
}
.sell-q input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.sell-q .hint { margin-top: 6px; }

.yn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.yn-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.yn-btn:hover { border-color: var(--accent); }
.yn-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.yn-extra {
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
}
.sell-qlabel { display: block; font-size: 0.84rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.sell-check {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  padding: 7px 0;
  cursor: pointer;
}
.sell-check input { margin-right: 8px; }
.sell-spec { margin-top: 6px; }

.sell-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sell-img {
  position: relative;
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}
.sell-img:hover { border-color: var(--accent); }
.sell-img .si-empty { color: var(--text-muted); font-size: 0.82rem; font-weight: 700; line-height: 1.5; }
.sell-img small { position: absolute; bottom: 6px; font-size: 0.68rem; color: var(--text-faint); }
.sell-img .si-preview { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .sell-imgs { grid-template-columns: repeat(2, 1fr); } }

.sell-price-row { display: flex; align-items: center; gap: 8px; }
.sell-price-row span { font-weight: 800; font-size: 1.1rem; color: var(--text-muted); }
.sell-price-row input { flex: 1; }

.mt-2 { margin-top: 12px; }
.accounts-market { grid-column: 1 / -1; }

.acc-seller {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.acc-seller b { color: var(--accent); font-weight: 700; }
.acc-badge-hidden {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.acc-owner-actions { display: flex; gap: 8px; margin-top: 10px; }
.acc-owner-actions .btn { flex: 1; }

.sell-visible { margin: 6px 0 18px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 10px; font-weight: 600; }

.sell-uploading {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid #143525;
  border-radius: 10px;
}
.sell-uploading b { display: block; font-size: 0.92rem; }
.sell-uploading span { font-size: 0.78rem; color: var(--text-muted); }
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(16, 185, 129, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sell-img-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sell-img-loading .spinner { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }

/* ---------------- Listing details modal + carousel ---------------- */
.ld-card { width: min(560px, 100%); }
.ld-carousel { position: relative; overflow: hidden; border-radius: 12px; margin: 14px 0 6px; border: 1px solid var(--border); background: var(--bg-card); }
.ld-track { display: flex; transition: transform 0.3s ease; }
.ld-slide { flex: 0 0 100%; max-width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--bg-soft); }
.ld-slide img { width: 100%; height: 100%; object-fit: contain; }
.ld-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  border: none; font-size: 1.6rem; line-height: 1;
  cursor: pointer; z-index: 2;
  display: grid; place-items: center;
}
.ld-nav:hover { background: rgba(0,0,0,0.8); }
.ld-prev { left: 10px; }
.ld-next { right: 10px; }
.ld-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.ld-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; padding: 0; }
.ld-dot.active { background: var(--accent); }
.ld-noimg { padding: 48px 16px; text-align: center; color: var(--text-muted); }
.ld-price { font-size: 1.35rem; font-weight: 800; color: var(--accent); margin: 10px 0 14px; }
.ld-table-wrap { overflow-x: auto; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 10px; }
.ld-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ld-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.ld-table tr:last-child td { border-bottom: none; }
.ld-table td:first-child { color: var(--text-muted); font-weight: 600; white-space: nowrap; width: 38%; }
.ld-table td:last-child { color: var(--text); }
.btn-block { width: 100%; }

/* ---------------- Owner edit-mode & announcement bar ---------------- */
.owner-announce-bar{display:block;overflow:hidden;white-space:nowrap;padding:0;font-weight:700;font-size:.9rem;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35);position:relative;z-index:60}
.owner-announce-bar .announce-track{padding:9px 0;animation-duration:30s}
.owner-announce-bar .announce-item{color:inherit}
.owner-announce-header{display:inline-block;padding:4px 14px;border-radius:20px;font-size:.78rem;margin-right:8px;vertical-align:middle}
.owner-announce-top,.owner-announce-bottom{width:100%}
body.owner-edit-active [data-owner-announce]{outline:2px dashed rgba(244,63,94,.7);outline-offset:-2px;cursor:pointer}
body.owner-edit-active .price-val,body.owner-edit-active [data-edit-price]{outline:2px dashed rgba(244,63,94,.55);outline-offset:2px;cursor:pointer;border-radius:4px}
body.owner-edit-active [data-edit-price]:hover,body.owner-edit-active .price-val:hover{background:rgba(244,63,94,.15)}

.owner-bar{position:fixed;right:16px;bottom:16px;z-index:9999;display:flex;align-items:center;gap:8px;background:#111a33;border:1px solid #1f2c52;border-radius:40px;padding:6px 10px;box-shadow:0 8px 28px rgba(0,0,0,.5)}
.owner-bar-tag{background:#f43f5e;color:#fff;font-weight:800;font-size:.68rem;letter-spacing:.08em;padding:4px 8px;border-radius:20px}
.owner-bar-btn{background:transparent;border:1px solid #28365f;color:#eef2ff;font-size:.75rem;font-weight:700;padding:5px 10px;border-radius:20px;cursor:pointer;text-decoration:none}
.owner-bar-btn:hover{border-color:#10b981}

.owner-ann-editor-overlay{position:fixed;inset:0;background:rgba(5,8,20,.7);z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px}
.owner-ann-editor{background:#131c38;border:1px solid #28365f;border-radius:16px;padding:22px;width:100%;max-width:460px;color:var(--text)}
.owner-ann-editor h3{margin:0 0 14px;font-size:1.15rem}
.owner-ann-editor label{display:block;font-size:.8rem;font-weight:700;color:var(--text-muted);margin:10px 0 5px}
.owner-ann-editor input[type=text],.owner-ann-editor select{width:100%;background:#0a0f1e;border:1px solid #28365f;border-radius:8px;color:#eef2ff;padding:9px 10px;font-size:.9rem}
.owner-ann-row{display:flex;gap:14px}
.owner-ann-row>div{flex:1}
.owner-ann-editor input[type=color]{width:100%;height:40px;background:#0a0f1e;border:1px solid #28365f;border-radius:8px;padding:3px}
.owner-ann-actions{display:flex;gap:10px;margin-top:18px}
.owner-ann-btn{flex:1;background:#10b981;border:none;color:#fff;font-weight:800;padding:11px;border-radius:10px;cursor:pointer}
.owner-ann-btn.ghost{background:transparent;border:1px solid #28365f;color:#eef2ff}

/* ---------------- Owner section resizer ---------------- */
body.owner-edit-active section,
body.owner-edit-active header.site-header,
body.owner-edit-active footer.site-footer{outline:1px dashed rgba(16,185,129,.35);outline-offset:-1px;cursor:crosshair}
body.owner-edit-active section:hover,
body.owner-edit-active header.site-header:hover,
body.owner-edit-active footer.site-footer:hover{outline-color:rgba(16,185,129,.9);background:rgba(16,185,129,.03)}
.owner-resize-selected{outline:2px solid #10b981 !important;outline-offset:2px !important;background:rgba(16,185,129,.04) !important}

.owner-resize{position:fixed;left:16px;bottom:16px;z-index:9998;width:300px;max-width:calc(100vw - 32px);background:#111a33;border:1px solid #1f2c52;border-radius:14px;padding:14px;color:var(--text);box-shadow:0 10px 34px rgba(0,0,0,.55);display:none}
.owner-resize.show{display:block}
.owner-resize .or-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
.owner-resize .or-head b{font-size:1rem}
.owner-resize .or-head small{display:block;color:var(--text-muted);font-size:.68rem;word-break:break-all}
.owner-resize .or-x{background:transparent;border:none;color:var(--text-muted);font-size:1.3rem;cursor:pointer;line-height:1;padding:0 2px}
.owner-resize .or-x:hover{color:#f43f5e}
.owner-resize .or-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:.8rem;font-weight:700}
.owner-resize .or-row span{width:64px;flex-shrink:0;color:var(--text-muted)}
.owner-resize .or-row input[type=range]{flex:1;accent-color:#10b981}
.owner-resize .or-row b{width:52px;text-align:right;color:#10b981;font-size:.78rem}
.owner-resize .or-actions{display:flex;gap:8px;margin-top:12px}
.owner-resize .or-btn{flex:1;background:#10b981;border:none;color:#fff;font-weight:800;padding:9px;border-radius:9px;cursor:pointer}
.owner-resize .or-btn.ghost{background:transparent;border:1px solid #28365f;color:#eef2ff}
.owner-resize .or-hint{display:block;color:var(--text-muted);font-size:.66rem;margin-top:10px;line-height:1.45}

/* ---------------- Owner Prices & Members ---------------- */
.price-overrides-list{max-height:560px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.price-ov-row{display:flex;align-items:center;gap:10px;background:var(--bg-soft);border:1px solid var(--border-soft);border-radius:10px;padding:8px 10px}
.price-ov-name{flex:1;min-width:0}
.price-ov-name b{display:block;font-size:.9rem}
.price-ov-id{color:var(--text-muted);font-size:.72rem}
.price-ov-row input[type=number]{width:110px;background:#0a0f1e;border:1px solid var(--border);border-radius:8px;color:#eef2ff;padding:7px 9px;font-size:.9rem}
.price-ov-row .btn{padding:5px 10px;font-size:.72rem}

.member-card{background:var(--bg-soft);border:1px solid var(--border-soft);border-radius:12px;padding:14px;margin-bottom:10px}
.member-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.member-head b{display:block}
.member-head .text-muted{font-size:.78rem}
.mem-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--bg-card)}
.mem-avatar-ph{display:inline-flex;align-items:center;justify-content:center;color:var(--text);font-weight:800;font-size:.85rem;background:var(--border)}
.member-stats{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.8rem;color:var(--text-muted)}
.member-stats b{color:var(--text)}
.member-activity{list-style:none;margin:10px 0 0;padding:0;font-size:.78rem;color:var(--text-muted);border-top:1px dashed var(--border-soft);padding-top:10px}
.member-activity li{padding:3px 0;line-height:1.5}
.member-activity b{color:var(--gold)}

/* ---------- Member chat chip + dropdown ---------- */
.chat-wrap { position: relative; display: inline-flex; }
.chat-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 6px 11px;
  border-radius: 11px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chat-chip:hover { border-color: var(--accent); background: rgba(16, 185, 129, 0.08); }
.chat-chip b { color: var(--accent); font-size: 0.8rem; }

.chat-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 2002;
  display: none;
  overflow: hidden;
}
.chat-dropdown.show { display: block; }

.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.chat-head-ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(16, 185, 129, 0.14);
}
.chat-head b { display: block; font-size: 0.9rem; color: var(--text); }
.chat-head small { color: var(--text-muted); font-size: 0.72rem; }

.chat-body { max-height: 320px; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { color: var(--text-muted); font-size: 0.8rem; padding: 8px; }
.chat-msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 0.82rem; }
.chat-msg b { display: block; font-size: 0.7rem; margin-bottom: 2px; }
.chat-msg p { margin: 0; word-break: break-word; }
.chat-msg small { display: block; margin-top: 4px; opacity: 0.6; font-size: 0.65rem; }
.chat-msg.mine { align-self: flex-end; background: var(--accent); color: #04120c; border-bottom-right-radius: 4px; }
.chat-msg.mine b { color: rgba(0, 0, 0, 0.6); }
.chat-msg.theirs { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border-bottom-left-radius: 4px; }

.chat-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--border-soft); }
.chat-input input {
  flex: 1; min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.82rem;
  padding: 8px 10px;
  outline: none;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input button {
  border: none; background: var(--accent); color: #04120c;
  font-size: 0.8rem; font-weight: 800;
  padding: 8px 14px; border-radius: 9px; cursor: pointer;
}

.chat-thread {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
}
.chat-thread:hover { background: rgba(255, 255, 255, 0.04); }
.chat-thread-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(16, 185, 129, 0.16);
  font-size: 0.75rem; font-weight: 800; color: var(--accent);
}
.chat-thread-txt { flex: 1; min-width: 0; }
.chat-thread-txt b { display: block; font-size: 0.82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-txt small { display: block; color: var(--text-muted); font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread .chat-unread-badge {
  background: #ef4444; color: #fff;
  font-size: 0.65rem; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px;
  display: grid; place-items: center;
}
.chat-back { display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 4px; }
.chat-back:hover { color: var(--accent); }

/* ---------- Review submission ---------- */
.review-rating { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.rstar {
  background: transparent; border: none;
  font-size: 2.1rem; line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  padding: 0;
}
.rstar:hover { color: var(--gold); transform: scale(1.1); }
.rstar.sel { color: var(--gold); }
.review-star-label {
  text-align: center; color: var(--text-muted);
  font-size: 0.82rem; font-weight: 700;
  margin-bottom: 18px; min-height: 18px;
}
#review-cat.form-control { width: 100%; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: .9rem; outline: none; }
#review-cat.form-control:focus { border-color: var(--accent); }
.user-review { animation: modal-in 0.25s ease; }
