/* ============================================================
   pScripts — shadcn-style Tebex template
   Flat, no gradients, no glow. Violet primary.
   ============================================================ */

:root {
  /* shadcn zinc (dark) */
  --background: #09090b;
  --foreground: #fafafa;
  --card: #0c0c0e;
  --card-foreground: #fafafa;
  --popover: #0c0c0e;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --border: #27272a;
  --input: #27272a;
  --ring: #a5b4fc;

  /* violet brand */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-foreground: #ffffff;
  --primary-soft: rgba(99, 102, 241, 0.12);
  --accent: #818cf8;

  --success: #22c55e;
  --destructive: #ef4444;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --container: 1200px;
  --header-h: 64px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Tebex legal footer */
  --tebex-legal-footer-background-color: var(--background);
  --tebex-legal-footer-text-color: var(--muted-foreground);
  --tebex-legal-footer-border-color: var(--border);
  --tebex-legal-footer-max-width: var(--container);
  --tebex-legal-footer-logo-color: var(--muted-foreground);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > .badge { align-self: flex-start; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Typography ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-size: 18px; font-weight: 600; }
.lead { font-size: 17px; color: var(--muted-foreground); max-width: 60ch; }
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head p { margin-top: 6px; }

/* ---------- Buttons (shadcn) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--muted); color: var(--foreground); }
.btn-secondary:hover { background: #202024; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-destructive { background: var(--destructive); color: #fff; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1;
  border: 1px solid var(--border); color: var(--muted-foreground); background: var(--muted);
}
.badge-primary { background: var(--primary-soft); border-color: rgba(99,102,241,.35); color: #c7d2fe; }
.badge-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #86efac; }
.badge-outline { background: transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.card-body { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-foot { padding: 16px 20px; border-top: 1px solid var(--border); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(9,9,11,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 16px; }
@media (max-width: 1180px) { .header .hide-mobile { display: none !important; } .nav a { padding: 0 8px; font-size: 13px; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand img { height: 28px; width: auto; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 10px; white-space: nowrap;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--muted-foreground);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--foreground); background: var(--muted); }
.nav a.is-active { color: var(--foreground); background: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.basket-btn { position: relative; }
.basket-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
}
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 6px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; }
.user-chip .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .user-chip span.name { display: none; }
}

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  background: var(--background); border-top: 1px solid var(--border);
  padding: 16px 20px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mobile-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a { display: flex; align-items: center; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 500; }
.mobile-nav a:hover, .mobile-nav a.is-active { background: var(--muted); }
.mobile-nav .divider { height: 1px; background: var(--border); margin: 12px 0; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero .h1 { margin: 16px 0 14px; }
.hero .h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-side { display: grid; gap: 12px; }
.hero-side .card-body { display: flex; gap: 14px; align-items: flex-start; }
.hero-side .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-soft); color: #c7d2fe; display: grid; place-items: center; flex: none; }
.hero-side .icon svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding: 48px 0 40px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.stat { padding: 18px 20px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted-foreground); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* ---------- Category tiles ---------- */
.cat-tile {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.cat-tile:hover { border-color: var(--accent); background: #101013; transform: translateY(-2px); }
.cat-tile .thumb { aspect-ratio: 16/9; border-radius: var(--radius-sm); background: var(--muted); overflow: hidden; display: grid; place-items: center; }
.cat-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .thumb svg { width: 28px; height: 28px; color: var(--muted-foreground); }
.cat-tile .name { font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.cat-tile .name svg { width: 16px; height: 16px; color: var(--muted-foreground); transition: transform .15s ease, color .15s ease; }
.cat-tile:hover .name svg { transform: translateX(3px); color: var(--accent); }

/* ---------- Package card ---------- */
.pkg {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.pkg:hover { border-color: var(--accent); transform: translateY(-2px); }
.pkg-media { position: relative; aspect-ratio: 16/9; background: var(--muted); overflow: hidden; }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pkg:hover .pkg-media img { transform: scale(1.03); }
.pkg-media .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.pkg-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pkg-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.pkg-title a:hover { color: var(--accent); }
.pkg-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.price s { color: var(--muted-foreground); font-size: 13px; }
.price .free { color: #86efac; }

/* ---------- Category page ---------- */
.page-head { padding: 40px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.toolbar .search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--input); border-radius: var(--radius-sm); background: var(--card); color: var(--foreground); }
.toolbar .search input::placeholder { color: var(--muted-foreground); }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-foreground); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); transition: all .15s ease; }
.chip:hover { color: var(--foreground); background: var(--muted); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted-foreground); }

/* ---------- Package page ---------- */
.pkg-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .pkg-layout { grid-template-columns: 1fr; } }
.gallery { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--muted); }
.gallery-main { aspect-ratio: 16/9; position: relative; }
.gallery-main img, .gallery-main iframe { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.gallery-main .slide.is-active { opacity: 1; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); overflow-x: auto; background: var(--card); }
.gallery-thumbs button { width: 84px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--muted); flex: none; padding: 0; transition: border-color .15s ease; }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .vid { display: grid; place-items: center; color: var(--muted-foreground); }

.buy-box { position: sticky; top: calc(var(--header-h) + 20px); }
.buy-box .price b { font-size: 30px; }
.buy-box .features { display: grid; gap: 8px; font-size: 14px; }
.buy-box .features li { display: flex; gap: 10px; align-items: center; color: var(--muted-foreground); }
.buy-box .features svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.notice { padding: 12px 14px; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.08); border-radius: var(--radius-sm); font-size: 13px; color: #fca5a5; }

.prose { color: #d4d4d8; font-size: 15px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--foreground); margin-top: 1.6em; }
.prose h2 { font-size: 22px; } .prose h3 { font-size: 18px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.4em; } .prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img, .prose iframe { border-radius: var(--radius); border: 1px solid var(--border); }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--muted); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted-foreground); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose strong { color: var(--foreground); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease; }
.tab:hover { color: var(--foreground); }
.tab.is-active { color: var(--foreground); border-bottom-color: var(--primary); }
.tab-panel { display: none; } .tab-panel.is-active { display: block; }

/* ---------- Basket drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 100%); background: var(--card); border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.basket-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.basket-item .thumb { width: 64px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--muted); }
.basket-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.basket-item .name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.basket-item .meta { font-size: 12px; color: var(--muted-foreground); }
.basket-item .remove { color: var(--muted-foreground); width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; }
.basket-item .remove:hover { background: var(--muted); color: var(--destructive); }
.basket-item .remove svg { width: 16px; height: 16px; }
.total { display: flex; justify-content: space-between; font-weight: 600; }

/* ---------- Checkout page ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.checkout-item:last-child { border-bottom: 0; }
.checkout-item .thumb { width: 96px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--muted); }
.checkout-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-sm); background: var(--background); color: var(--foreground); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted-foreground); }
.summary-row.total { color: var(--foreground); font-size: 16px; }
.payment-logos { display: flex; gap: 8px; flex-wrap: wrap; opacity: .8; }
.payment-logos img { height: 22px; width: auto; }

/* ---------- Forms (login / options) ---------- */
.auth { max-width: 460px; margin: 64px auto; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-sm);
  background: var(--background); color: var(--foreground); width: 100%;
  transition: border-color .15s ease;
}
.field textarea { height: auto; padding: 10px 12px; min-height: 100px; }
.field input:focus, .field select:focus { border-color: var(--ring); outline: none; }
.field .hint { font-size: 12px; color: var(--muted-foreground); }

/* ---------- Modules (sidebar widgets) ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .modules { grid-template-columns: 1fr; } }
.module { display: flex; flex-direction: column; height: 100%; }
.module .module-body { flex: 1; }
.module .module-body.center { display: flex; flex-direction: column; justify-content: center; }
.module-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.module-body { padding: 16px 18px; }
.payments-list { display: grid; gap: 12px; }
.payment { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; }
.payment .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: #c7d2fe; overflow: hidden; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.payment .avatar img { width: 100%; height: 100%; object-fit: cover; }
.payment .who { font-size: 13px; font-weight: 500; }
.payment .what { font-size: 12px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment .amt { font-size: 13px; font-weight: 600; color: #c7d2fe; }
.topdonor { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0 4px; }
.topdonor .avatar { width: 72px; height: 72px; border: 2px solid var(--primary); display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #c7d2fe; border-radius: 50%; background: var(--muted); overflow: hidden; }
.topdonor .avatar img { width: 100%; height: 100%; object-fit: cover; }
.topdonor .amount { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #c7d2fe; line-height: 1.1; }
.topdonor .rank { display: inline-flex; align-items: center; gap: 6px; }
.goal-bar { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.goal-bar > span { display: block; height: 100%; background: var(--primary); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 70; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); font-size: 14px; opacity: 0; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 40px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-color: rgba(34,197,94,.4); }
.toast.error { border-color: rgba(239,68,68,.4); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a { font-size: 14px; color: var(--muted-foreground); }
.footer a:hover { color: var(--foreground); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted-foreground); }
.socials { display: flex; gap: 6px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.socials a:hover { background: var(--muted); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.hide-mobile { } @media (max-width: 700px) { .hide-mobile { display: none !important; } }
.divider { height: 1px; background: var(--border); }
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ---------- Promo (announcement bar + first-visit modal) ---------- */
.promo-bar { background: var(--primary); color: #fff; font-size: 13px; font-weight: 500; text-align: center; padding: 8px 44px 8px 16px; position: relative; }
.promo-bar code { font-family: var(--mono); background: rgba(255,255,255,.18); padding: 2px 7px; border-radius: 4px; font-weight: 700; letter-spacing: .04em; }
.promo-bar button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 6px; color: #fff; display: grid; place-items: center; opacity: .8; }
.promo-bar button:hover { opacity: 1; background: rgba(255,255,255,.15); }
.promo-bar[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; transform: translateY(10px); transition: transform .2s ease; }
.modal-backdrop.is-open .modal { transform: none; }
.modal .close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: var(--muted-foreground); }
.modal .close:hover { background: var(--muted); color: var(--foreground); }
.modal .pct { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 10px 10px 14px; background: var(--muted); }
.code-box code { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .12em; }

/* ---------- Subscription page ---------- */
.sub-hero { padding: 64px 0 40px; border-bottom: 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.plan.is-best { border-color: var(--primary); }
.plan-flag { position: absolute; top: -12px; left: 24px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.plan-name { font-size: 14px; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted-foreground); font-size: 14px; }
.plan .features { display: grid; gap: 10px; font-size: 14px; }
.plan .features li { display: flex; gap: 10px; align-items: flex-start; color: #d4d4d8; }
.plan .features svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 3px; }
.steps { display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { width: 32px; height: 32px; border-radius: 8px; background: var(--primary-soft); color: #c7d2fe; display: grid; place-items: center; font-size: 14px; flex: none; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); padding: 0 16px; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-foreground); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; color: var(--muted-foreground); font-size: 14px; }
.sub-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; border: 1px solid var(--primary); border-radius: var(--radius-lg); background: var(--card); }

/* ---------- Live demo tab ---------- */
.tab-demo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 6px; }
.demo-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--muted); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--card); }
.demo-frame iframe { width: 100%; aspect-ratio: 16/9; height: auto; min-height: 420px; border: 0; display: block; background: #000; }
.demo-frame:fullscreen iframe { height: 100%; aspect-ratio: auto; }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; background: var(--muted); }

/* ---------- Bundles page ---------- */
.bundle { display: grid; grid-template-columns: 300px minmax(0,1fr) 220px; gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); transition: border-color .15s ease; }
.bundle:hover { border-color: var(--accent); }
@media (max-width: 960px) { .bundle { grid-template-columns: 1fr; } .bundle-buy { align-items: flex-start !important; text-align: left !important; } }
.bundle-media { display: block; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--muted); }
.bundle-media img { width: 100%; height: 100%; object-fit: cover; }
.bundle-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bundle-body h2 a:hover { color: var(--accent); }
.bundle-includes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-static { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--muted); font-size: 13px; }
.chip-static svg { width: 14px; height: 14px; color: var(--success); }
.bundle-buy { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 6px; }
.bundle-buy .price b { font-size: 28px; }
.bundle-buy .btn { margin-top: 6px; }
