/* ===========================================================================
   LionStudio — UI stylesheet
   Premium dark, blue-oriented theme. Authored to match the EJS templates'
   class names (.btn, .card, .panel, .dash, .badge-*, .stat, .kv, etc.).
   =========================================================================== */

:root {
  --bg:        #0a0e17;
  --bg-2:      #0d1320;
  --surface:   #111829;
  --surface-2: #161f33;
  --line:      #1f2940;
  --line-2:    #2a3650;
  --text:      #e6ebf5;
  --muted:     #93a0bd;
  --muted-2:   #6b7791;
  --brand:     #3b82f6;
  --brand-2:   #60a5fa;
  --brand-ink: #0b1220;
  --ok:        #34d399;
  --warn:      #fbbf24;
  --bad:       #f87171;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 1px 0 rgba(255,255,255,.03), 0 12px 40px -12px rgba(0,0,0,.6);
  --maxw:      1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(59,130,246,.10), transparent 60%),
    var(--bg);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #93c1fb; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: 2.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }

.small { font-size: .86rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,14,23,.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(160deg, var(--brand), #1d4ed8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.logo svg { width: 17px; height: 17px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .92rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --bbg: transparent; --bfg: var(--text); --bbd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem;
  border: 1px solid var(--bbd); background: var(--bbg); color: var(--bfg);
  cursor: pointer; transition: transform .06s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bbg: linear-gradient(180deg, var(--brand-2), var(--brand)); --bfg: #07101f; --bbd: transparent; box-shadow: 0 8px 24px -10px rgba(59,130,246,.7); }
.btn-primary:hover { --bfg: #07101f; filter: brightness(1.05); }
.btn-ghost { --bbg: var(--surface-2); --bfg: var(--text); --bbd: var(--line-2); }
.btn-ghost:hover { --bbg: #1b2540; color: var(--text); }
.btn-danger { --bbg: rgba(248,113,113,.12); --bfg: #fca5a5; --bbd: rgba(248,113,113,.35); }
.btn-danger:hover { --bbg: rgba(248,113,113,.2); color: #fecaca; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 64px; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 760px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.22);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .35em; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.product-card .picon, .feature .ficon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  color: var(--brand-2); background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2); margin-bottom: 14px;
}
.product-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.product-card p { color: var(--muted); margin: 0 0 .6em; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }

.price { margin-top: 16px; font-size: 1.35rem; font-weight: 700; }
.price span { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ---------- Pricing cards ---------- */
.price-card h3 { font-size: 1.25rem; }
.price-card .amt { font-size: 1.9rem; font-weight: 800; margin: 8px 0 2px; }
.price-card .amt small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; }
.price-card ul li { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: var(--muted); font-size: .92rem; }
.price-card ul li svg { color: var(--brand-2); flex: none; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--surface-2); letter-spacing: .01em; }
.badge-feat { color: var(--brand-2); border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.12); }
.badge-soon { color: var(--warn); border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.1); }
.badge-ok   { color: var(--ok);   border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.1); }
.badge-warn { color: var(--warn); border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.1); }
.badge-bad  { color: var(--bad);  border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.1); }
.badge-muted{ color: var(--muted); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 14px;
  color: var(--brand-2); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2); }
.empty h2 { color: var(--text); }

/* ---------- Forms ---------- */
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
select, textarea {
  width: 100%; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: .94rem; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
textarea { min-height: 110px; resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.checkbox input { width: auto; }
.checkbox label { margin: 0; color: var(--text); font-weight: 500; }

.form-error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fecaca;
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.form-ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #a7f3d0;
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 50px 20px; }
.form-card { width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

/* ---------- Dashboard layout ---------- */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 38px 0 64px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.side a { padding: 9px 13px; border-radius: var(--radius-sm); color: var(--muted); font-size: .92rem; font-weight: 500; }
.side a:hover { background: var(--surface); color: var(--text); }
.side a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.panel { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted-2); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .04em; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }

/* ---------- Key/value lists ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat .num { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat .lbl { font-size: .8rem; color: var(--muted); }
.stats-row .stat.big { text-align: center; padding: 28px 18px; }
.stats-row .stat.big .num { color: var(--brand-2); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 120px; padding: 8px 11px; font-size: .86rem; }

/* ---------- Code block (backup codes) ---------- */
.code-block { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 16px; margin-top: 12px; font-size: .95rem; letter-spacing: .04em; }
.code-block div { padding: 3px 0; }

/* ---------- Support thread ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg-2); }
.msg-staff { border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.07); }
.msg-meta { margin-bottom: 5px; }

/* ---------- Legal & FAQ ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 22px 72px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p { color: var(--muted); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; margin-bottom: 10px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 0 0 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 50px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); font-size: .9rem; padding: 4px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: var(--muted-2); font-size: .84rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .stats-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 60px 0 44px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Logo image, centered hero, and product detail modal (added in update)
   =========================================================================== */

/* Real logo image replaces the old SVG square */
.logo-img { width: 30px; height: 30px; border-radius: 8px; display: block; object-fit: cover; }

/* ---- Centered landing hero ---- */
.hero { text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-logo { display: block; margin: 0 auto 22px; width: 96px; height: 96px; border-radius: 22px;
  box-shadow: 0 20px 60px -20px rgba(59,130,246,.55); }

/* ---- Product cards as buttons ---- */
button.product-card {
  text-align: left; width: 100%; font-family: inherit; font-size: inherit; color: inherit;
  cursor: pointer; display: flex; flex-direction: column;
}
button.product-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.product-more { margin-top: auto; padding-top: 14px; color: var(--brand-2); font-weight: 600; font-size: .9rem; }

/* ---- Product modal (flyer-styled) ---- */
.pmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.pmodal[hidden] { display: none; }
.pmodal-backdrop { position: absolute; inset: 0; background: rgba(4,7,13,.72); backdrop-filter: blur(6px); }
.pmodal-card {
  position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(59,130,246,.18), transparent 60%),
    linear-gradient(180deg, #0c1322, #0a0f1b);
  border: 1px solid var(--line-2); border-radius: 20px; padding: 30px 28px 28px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(59,130,246,.08);
  text-align: center; animation: pmod-in .18s ease;
}
@keyframes pmod-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.pmodal-glow { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent); }
.pmodal-x { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.pmodal-x:hover { color: var(--text); background: var(--surface-2); }
.pmodal-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; display: block;
  box-shadow: 0 16px 44px -16px rgba(59,130,246,.6); }
.pmodal-head h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0; }
.pmodal-tag { color: var(--brand-2); font-weight: 600; margin: 6px 0 0; font-size: .95rem; }
.pmodal-long { color: var(--muted); margin: 18px 0 22px; line-height: 1.7; }
.pmodal-prices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.pmodal-price { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 22px; min-width: 130px; }
.pmodal-amt { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.pmodal-plbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.pmodal-soon { display: inline-block; color: var(--warn); border: 1px solid rgba(251,191,36,.3);
  background: rgba(251,191,36,.1); padding: 8px 16px; border-radius: 999px; font-weight: 600; margin-bottom: 22px; }
.pmodal-section-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 12px; }
.pmodal-feats { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.pmodal-feats li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--text); font-size: .92rem; }
.pmodal-feats li svg { color: var(--brand-2); flex: none; margin-top: 3px; }

/* ===========================================================================
   Design refresh v2 — transparent logo, refined buttons, centered hero,
   redesigned product/featured cards. (Overrides earlier rules.)
   =========================================================================== */

/* Transparent logo — no box, no background */
.logo-img { width: 34px; height: 34px; border-radius: 0; object-fit: contain; background: none; box-shadow: none; }
.brand { gap: 9px; font-weight: 800; }

/* Buttons: flatter, crisper, less "AI gradient glow" */
.btn { border-radius: 10px; padding: 11px 20px; font-weight: 600; letter-spacing: .005em;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #3b6cf0; color: #fff; border: 1px solid #3b6cf0; box-shadow: 0 6px 16px -8px rgba(59,108,240,.65); }
.btn-primary:hover { background: #3360e0; color: #fff; box-shadow: 0 8px 20px -8px rgba(59,108,240,.75); }
.btn-ghost { background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #38507c; color: #fff; }
.btn-sm { padding: 8px 15px; font-size: .85rem; }

/* Hero: centered, transparent floating logo (drop-shadow follows the lion shape) */
.hero { text-align: center; padding-top: 80px; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-logo { width: 104px; height: 104px; border-radius: 0; background: none; box-shadow: none;
  filter: drop-shadow(0 16px 34px rgba(59,108,240,.5)); }

/* Redesigned product / featured cards */
.product-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  background: linear-gradient(180deg, #101829, #0b1120);
  border: 1px solid var(--line); border-radius: 16px; color: inherit; cursor: pointer;
  width: 100%; font-family: inherit; position: relative; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.55), transparent); opacity: 0; transition: opacity .18s ease; }
.product-card:hover { border-color: rgba(59,108,240,.55); transform: translateY(-3px);
  box-shadow: 0 24px 54px -28px rgba(59,108,240,.6); }
.product-card:hover::before { opacity: 1; }
.product-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-body { padding: 24px 24px 20px; flex: 1; }
.product-card .picon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--brand-2); background: rgba(59,108,240,.12); border: 1px solid rgba(59,108,240,.25); margin-bottom: 16px; }
.product-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin: 0 0 8px; flex-wrap: wrap; }
.pc-desc { color: var(--muted); font-size: .92rem; margin: 0 0 16px; line-height: 1.6; }
.pc-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.15rem; }
.pc-price strong { font-weight: 800; letter-spacing: -.01em; }
.pc-price span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.pc-price .pc-or { font-size: .85rem; color: var(--muted); }
.product-more { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 14px 24px; border-top: 1px solid var(--line); background: rgba(59,108,240,.06);
  color: var(--brand-2); font-weight: 600; font-size: .9rem; }
.product-more svg { transition: transform .15s ease; }
.product-card:hover .product-more svg { transform: translateX(3px); }

/* ===========================================================================
   v3 — buyable plan tiles in the product modal + calmer hero logo
   =========================================================================== */

/* Hero logo: drop the strong blue halo, use a subtle neutral shadow */
.hero-logo { filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)); }

/* Plan tiles inside the modal */
.pmodal-plans { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 4px 0 24px; }
.pmodal-plan {
  position: relative; flex: 1 1 150px; min-width: 150px; max-width: 200px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 18px 16px 16px; text-align: center;
}
.pmodal-plan-accent { border-color: rgba(59,108,240,.45); background: linear-gradient(180deg, rgba(59,108,240,.10), var(--bg-2)); }
.pmodal-ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #3b6cf0; color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pmodal-plan-name { font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 8px; min-height: 1.2em; }
.pmodal-plan .pmodal-amt { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.pmodal-plan .pmodal-plbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 12px; }
.pmodal-plan form, .pmodal-plan > a { margin-top: 4px; }

/* Included list + subscription extras */
.pmodal-feats-accent li svg { color: var(--brand-2); }
#pm-sub-extra { margin-top: 18px; padding-top: 6px; border-top: 1px dashed var(--line-2); }

/* ===========================================================================
   v4 — pricing: per-plan cards (Standard / Enterprise clearly separated)
   =========================================================================== */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.plan-card {
  display: flex; flex-direction: column; position: relative;
  background: linear-gradient(180deg, #101829, #0b1120);
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -30px rgba(0,0,0,.7); }
.plan-card.accent { border-color: rgba(59,108,240,.5);
  box-shadow: inset 0 0 0 1px rgba(59,108,240,.12), 0 28px 60px -38px rgba(59,108,240,.6); }
.plan-card.accent:hover { box-shadow: inset 0 0 0 1px rgba(59,108,240,.18), 0 30px 64px -34px rgba(59,108,240,.7); }
.plan-badge { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-2); background: rgba(59,108,240,.12);
  border: 1px solid rgba(59,108,240,.25); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.plan-card.accent .plan-badge { color: #fff; background: #3b6cf0; border-color: #3b6cf0; }
.plan-card h3 { font-size: 1.25rem; margin: 0 0 14px; letter-spacing: -.01em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.plan-price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-size: .82rem; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; color: var(--text); font-size: .9rem; }
.plan-feats li svg { color: var(--brand-2); flex: none; margin-top: 3px; }
.plan-feats li.extra svg { color: #8b8bff; }
.plan-extra-label { display: block !important; color: var(--muted-2); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; margin: 12px 0 2px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.plan-cta { margin-top: auto; }

/* ===========================================================================
   v5 — collapsible pricing cards + checkout review page
   =========================================================================== */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; max-width: 940px; margin: 0 auto; align-items: start; }
.pp-card { background: linear-gradient(180deg, #101829, #0b1120); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.pp-card:hover { border-color: rgba(59,108,240,.4); }
.pp-card.open { border-color: rgba(59,108,240,.5); box-shadow: 0 26px 60px -34px rgba(59,108,240,.55); }
.pp-main { padding: 26px 24px; }
.pp-main h3 { font-size: 1.3rem; margin: 0 0 6px; }
.pp-from { margin: 16px 0 16px; font-size: 1rem; color: var(--muted); }
.pp-from strong { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.pp-from span { font-size: .82rem; }
.pp-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pp-chev { transition: transform .25s ease; }
.pp-card.open .pp-chev { transform: rotate(180deg); }

/* Animated expand using grid-template-rows (smooth, no magic numbers) */
.pp-options { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.pp-card.open .pp-options { grid-template-rows: 1fr; }
.pp-options-inner { overflow: hidden; display: grid; gap: 12px; padding: 0 16px;
  transition: padding .32s ease; }
.pp-card.open .pp-options-inner { padding: 4px 16px 18px; }

.pp-plan { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 13px; padding: 18px; }
.pp-plan.accent { border-color: rgba(59,108,240,.45); background: linear-gradient(180deg, rgba(59,108,240,.10), var(--bg-2)); }
.pp-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pp-plan-head .plan-badge { margin-bottom: 0; }
.pp-plan-price { text-align: right; white-space: nowrap; }
.pp-plan-price strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.pp-plan-price span { display: block; font-size: .72rem; color: var(--muted); }
.pp-plan .plan-feats { margin: 0 0 14px; }
.pp-plan .plan-feats li { font-size: .86rem; padding: 4px 0; }

/* Checkout review page */
.review-card { max-width: 520px; margin: 0 auto; background: linear-gradient(180deg, #101829, #0b1120);
  border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.review-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-name { font-size: 1.3rem; font-weight: 700; margin-top: 8px; }
.review-price { text-align: right; white-space: nowrap; }
.review-price strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.review-price span { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.review-terms { list-style: none; padding: 0; margin: 18px 0; }
.review-terms li { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: .92rem; color: var(--text); }
.review-terms li svg { color: var(--brand-2); flex: none; margin-top: 3px; }
.review-terms-muted { color: var(--muted) !important; font-size: .85rem !important; }
.review-total { display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; margin-bottom: 8px; border-top: 1px solid var(--line); }
.review-total span { color: var(--muted); }
.review-total strong { font-size: 1.5rem; font-weight: 800; }
.review-cancel { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.review-cancel:hover { color: var(--text); }

/* ===========================================================================
   v6 — products: no prices on cards, info modal with optional flyer image
   =========================================================================== */
/* Long description keeps the paragraph breaks the admin types */
.pmodal-long { white-space: pre-line; }

/* Optional product image / flyer at the top of the modal */
.pmodal-image { display: block; width: calc(100% + 56px); margin: -30px -28px 18px; max-height: 320px;
  object-fit: cover; border-radius: 18px 18px 0 0; border-bottom: 1px solid var(--line-2); }
.pmodal-image[hidden] { display: none; }

/* Disabled CTA (coming soon) */
.btn.is-disabled { opacity: .55; pointer-events: none; }

/* Product cards now lead with the name/description, no price line */
.product-card .pc-desc { margin-bottom: 4px; }

/* ===========================================================================
   v8 — individual product pages, media, grouped downloads
   =========================================================================== */
/* Product grid cards as links with optional thumbnail */
.product-card-link { text-decoration: none; color: inherit; overflow: hidden; }
.pc-thumb { height: 150px; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line); margin: -1px -1px 0; }

/* Hero banner */
.pdp-hero { min-height: 360px; display: flex; align-items: flex-end; background-size: cover;
  background-position: center; border-bottom: 1px solid var(--line); }
.pdp-hero-inner { padding: 46px 0 40px; }
.pdp-hero h1 { font-size: 2.8rem; letter-spacing: -.02em; margin: 12px 0 8px; }
.pdp-tag { font-size: 1.15rem; color: #d7deea; max-width: 640px; margin: 0 0 20px; }
.pdp-back { display: inline-block; color: var(--muted); font-size: .9rem; text-decoration: none; }
.pdp-back:hover { color: var(--text); }

/* Body blocks */
.pdp-body { max-width: 860px; }
.pdp-block { margin-bottom: 42px; }
.pdp-h2 { font-size: 1.4rem; letter-spacing: -.01em; margin: 0 0 16px; }
.pdp-long { white-space: pre-line; font-size: 1.05rem; line-height: 1.7; color: #cdd5e1; }
.pdp-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 10px 22px; }
.pdp-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--text); }
.pdp-feats li svg { color: var(--brand-2); flex: none; margin-top: 3px; }

/* Flyer — shown large */
.pdp-flyer img { width: 100%; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }

/* Video (responsive 16:9) */
.pdp-video { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.pdp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Demo gallery */
.pdp-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; }
.pdp-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.pdp-shot img { width: 100%; display: block; }
.pdp-shot figcaption { padding: 9px 12px; font-size: .85rem; color: var(--muted); }

/* Grouped downloads */
.pdp-dlsection { margin-bottom: 18px; }
.pdp-dlsection-name { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 0 0 8px; }
.pdp-file { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.pdp-file-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdp-file-meta { display: flex; gap: 12px; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.pdp-pill { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; }
.pdp-pill-free { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.pdp-lock { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.pdp-lock svg { color: var(--muted-2); }

/* CTA */
.pdp-cta { text-align: center; padding: 34px; background: linear-gradient(180deg, rgba(59,108,240,.10), var(--bg-2)); border: 1px solid rgba(59,108,240,.3); border-radius: 18px; }

/* Admin media grid */
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; margin: 12px 0; }
.admin-media-item { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; }
.admin-media-item img { width: 100%; border-radius: 6px; display: block; margin-bottom: 6px; }

/* ===========================================================================
   v9 — card logo, product page polish, dashboard downloads
   =========================================================================== */
/* Products grid: centered logo that's never cropped */
.picon-img { padding: 0; background: transparent; border: none; }
.picon-img img { width: 100%; height: 100%; object-fit: contain; }
.product-card .picon { width: 54px; height: 54px; display: grid; place-items: center; }

/* Larger CTA button */
.btn-lg { padding: 13px 26px; font-size: 1rem; }

/* Hero polish */
.pdp-hero-plain { min-height: auto; background: radial-gradient(1100px 400px at 50% -10%, rgba(59,108,240,.16), transparent 70%); border-bottom: 1px solid var(--line); }
.pdp-hero-plain .pdp-hero-inner { padding: 40px 0 34px; text-align: center; }
.pdp-hero-plain .pdp-tag { margin-left: auto; margin-right: auto; }
.pdp-section { padding-top: 46px; }

/* Lead paragraph */
.pdp-lead .pdp-long { font-size: 1.12rem; color: #d3dbe7; }

/* Feature cards */
.pdp-feat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 12px; }
.pdp-feat-card { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 13px; padding: 15px 16px; font-size: .96rem; }
.pdp-feat-check { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(59,108,240,.14); color: var(--brand-2); }

/* Flyer + gallery hover polish */
.pdp-flyer img { transition: transform .3s ease; }
.pdp-shot { transition: transform .2s ease, border-color .2s ease; }
.pdp-shot:hover { transform: translateY(-3px); border-color: rgba(59,108,240,.4); }

/* Bigger, centered CTA */
.pdp-cta h2 { font-size: 1.6rem; margin: 0 0 6px; }
.pdp-cta p { margin: 0 0 18px; }

/* Dashboard downloads — grouped rows */
.dl-section-name { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 14px 0 8px; }
.dl-file { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 4px; border-bottom: 1px solid var(--line); }
.dl-file:last-child { border-bottom: none; }
.dl-file-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-file-meta { display: flex; gap: 12px; color: var(--muted); font-size: .82rem; margin-top: 3px; flex-wrap: wrap; }

/* ===========================================================================
   v10 — blurred logo cards, rich feature cards, download boxes, hover polish
   =========================================================================== */
/* Grid cards: big blurred logo background with readable text over it */
.product-card { position: relative; overflow: hidden; }
.pc-inner { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; min-height: 100%; }
.product-card .pc-body { flex: 1; }
.pc-bg { position: absolute; inset: 0; z-index: 0; background-size: 78%; background-repeat: no-repeat;
  background-position: center 38%; filter: blur(26px) saturate(1.35); transform: scale(1.25); opacity: .5;
  transition: opacity .35s ease, transform .35s ease; }
.pc-bg-veil { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 50% 30%, rgba(11,17,32,.35), rgba(11,17,32,.82) 70%, rgba(11,17,32,.95)); }
.product-card.has-bg:hover .pc-bg { opacity: .72; transform: scale(1.32); }
.product-card.has-bg .pc-body h3 { text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* Rich feature cards (Title | description) — all equal height */
.pdp-feat-grid-rich { grid-auto-rows: 1fr; }
.pdp-feat-card { flex-direction: column; align-items: stretch; gap: 6px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.pdp-feat-card.has-desc { padding: 18px 18px; }
.pdp-feat-card:hover { transform: translateY(-3px); border-color: rgba(59,108,240,.45); background: linear-gradient(180deg, rgba(59,108,240,.07), var(--bg-2)); }
.pdp-feat-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--text); }
.pdp-feat-card:not(.has-desc) .pdp-feat-title { font-weight: 600; font-size: .96rem; }
.pdp-feat-desc { font-size: .9rem; line-height: 1.55; color: var(--muted); }

/* Product page hover polish */
.pdp-flyer { overflow: hidden; border-radius: 16px; }
.pdp-flyer img { display: block; }
.pdp-flyer:hover img { transform: scale(1.02); }
.pdp-cta { transition: border-color .2s ease, box-shadow .2s ease; }
.pdp-cta:hover { border-color: rgba(59,108,240,.5); box-shadow: 0 24px 60px -34px rgba(59,108,240,.6); }

/* Dashboard: one download box per product */
.dlbox { background: linear-gradient(180deg, #101829, #0b1120); border: 1px solid var(--line-2);
  border-radius: 16px; overflow: hidden; margin-bottom: 18px; transition: border-color .2s ease; }
.dlbox:hover { border-color: rgba(59,108,240,.35); }
.dlbox-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dlbox-logo { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--brand-2); }
.dlbox-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.dlbox-head h2 { font-size: 1.15rem; margin: 0; }
.dlbox-body { padding: 6px 20px 14px; }
.dl-notes { margin-top: 8px; }
.dl-notes summary { cursor: pointer; font-size: .82rem; color: var(--brand-2); }
.dl-notes > div { font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ===========================================================================
   v11 — logo visible behind cards; polished, length-proof feature cards
   =========================================================================== */
/* Grid card background: show the logo clearly, only gently softened */
.pc-bg { background-size: 60%; background-position: center 40%; filter: blur(5px) saturate(1.15);
  transform: scale(1.06); opacity: .62; }
.pc-bg-veil { background: linear-gradient(180deg, rgba(11,17,32,.30) 0%, rgba(11,17,32,.55) 48%, rgba(11,17,32,.9) 100%); }
.product-card.has-bg:hover .pc-bg { opacity: .8; transform: scale(1.1); }
.product-card.has-bg .pc-body h3,
.product-card.has-bg .pc-desc { text-shadow: 0 2px 14px rgba(4,8,16,.8); }

/* Feature cards — clean, structured, and identical at any length */
.pdp-feat-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.pdp-feat-grid-rich { grid-auto-rows: 1fr; }
.pdp-feat-card { position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 22px 20px 20px; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border: 1px solid var(--line-2); border-radius: 15px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pdp-feat-card.has-desc { padding: 22px 20px 20px; }
/* small accent bar gives every card the same visual anchor regardless of text */
.pdp-feat-card::before { content: ''; width: 30px; height: 3px; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.pdp-feat-card:hover { transform: translateY(-4px); border-color: rgba(59,108,240,.5);
  box-shadow: 0 20px 44px -28px rgba(59,108,240,.6); }
.pdp-feat-title { font-weight: 700; font-size: 1.06rem; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.pdp-feat-desc { font-size: .9rem; line-height: 1.6; color: var(--muted); margin: 0; }
/* When a card has no description, center the title so it doesn't look empty */
.pdp-feat-card:not(.has-desc) { justify-content: center; }
.pdp-feat-card:not(.has-desc) .pdp-feat-title { font-size: 1rem; }

/* ===========================================================================
   v12 — download boxes: full banner, dropdown pickers, releases panel
   =========================================================================== */
.dlbox-banner { position: relative; min-height: 120px; display: flex; align-items: flex-end; gap: 14px;
  padding: 16px 20px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.dlbox-banner-plain { background: radial-gradient(120% 140% at 15% 0%, rgba(59,108,240,.28), transparent 60%), linear-gradient(180deg, #16203a, #0e1526); }
.dlbox-banner-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: rgba(8,12,20,.4); padding: 6px; }
.dlbox-banner-text h2 { font-size: 1.35rem; margin: 0; text-shadow: 0 2px 14px rgba(4,8,16,.7); }
.dlbox-banner-text .small { color: #c8d2e2; text-shadow: 0 1px 8px rgba(4,8,16,.7); }

/* Components inside a box */
.dl-component { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dl-component:last-of-type { border-bottom: none; }
.dl-component-name { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 12px; }

/* Picker row */
.dl-picker-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.dl-field { display: flex; flex-direction: column; gap: 6px; }
.dl-field-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dl-select { appearance: none; -webkit-appearance: none; background: var(--bg-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 10px 34px 10px 13px;
  font-size: .92rem; min-width: 150px; cursor: pointer; }
.dl-select:focus { outline: none; border-color: var(--brand); }
.dl-action { display: flex; align-items: center; }
.dl-dlbtn { padding: 10px 22px; }
.dl-picker-meta { margin-top: 10px; font-size: .82rem; color: var(--muted); }
.dl-locknote { white-space: nowrap; }

/* Releases toggle + panel */
.dlbox-foot { padding: 14px 20px; }
.dl-releases-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2);
  border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 9px 15px; font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.dl-releases-toggle:hover { border-color: rgba(59,108,240,.5); color: var(--brand-2); }
.dl-releases-toggle svg { transition: transform .2s ease; }
.dl-releases-toggle.open svg { color: var(--brand-2); }
.dl-releases { padding: 4px 20px 18px; border-top: 1px dashed var(--line); }
.dl-release { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-release:last-child { border-bottom: none; }
.dl-release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-release-v { font-weight: 600; }
.dl-release-notes { margin-top: 7px; font-size: .88rem; color: var(--muted); line-height: 1.6; white-space: pre-line; }

/* ===========================================================================
   v13 — card image fills the box; slightly less blur
   =========================================================================== */
.pc-bg { background-size: cover; background-position: center; filter: blur(4px) saturate(1.15);
  transform: scale(1.04); opacity: .7; }
.pc-bg-veil { background: linear-gradient(180deg, rgba(11,17,32,.28) 0%, rgba(11,17,32,.5) 45%, rgba(11,17,32,.9) 100%); }
.product-card.has-bg:hover .pc-bg { opacity: .85; transform: scale(1.07); }

/* ===========================================================================
   v14 — release platform tabs + per-release download
   =========================================================================== */
.dl-rel-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.dl-rel-tab { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 999px; padding: 6px 15px; font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: all .16s ease; }
.dl-rel-tab:hover { color: var(--text); border-color: rgba(59,108,240,.4); }
.dl-rel-tab.active { background: #3b6cf0; border-color: #3b6cf0; color: #fff; }
.dl-release { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px 16px; }
.dl-release-head { grid-column: 1; }
.dl-release-notes { grid-column: 1; }
.dl-release-action { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.dl-release-action .dl-dlbtn { padding: 8px 18px; font-size: .85rem; }

/* ===========================================================================
   v15 — download picker alignment polish
   =========================================================================== */
.dlbox-body { padding: 20px 22px 10px; }
.dl-picker-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.dl-field { display: flex; flex-direction: column; gap: 7px; }
.dl-field-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.dl-select { height: 46px; box-sizing: border-box; padding: 0 36px 0 14px; line-height: 46px; min-width: 168px; }
.dl-action { display: flex; align-items: flex-end; }
.dl-dlbtn { height: 46px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0 26px; }
.dl-locknote { height: 46px; display: inline-flex; align-items: center; }
.dlbox-foot { padding: 16px 22px 18px; }
.dl-releases { padding: 6px 22px 20px; }
