/* ============================================================
   Cipher Foundry LLC — ShipBob-style design system
   ============================================================ */
:root {
  --blue: #2E5BFF;
  --blue-dark: #1E40D8;
  --violet: #7C3AED;
  --navy: #0B0F3C;
  --navy-soft: #141A4E;
  --amber: #F59E0B;
  --bg-soft: #F1F5FF;
  --bg-lavender: #E9EDF7;
  --gray: #5B6474;
  --ink: #101B3C;
  --border: #E2E7F2;
  --line: #C3CEDD;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #2E5BFF 0%, #7C3AED 100%);
  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 27, 60, 0.10);
  --shadow-lg: 0 24px 64px rgba(16, 27, 60, 0.16);
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset {
  margin: 0;
}
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p.lead, p.lead { color: var(--gray); font-size: 1.125rem; margin-top: 16px; }
.accent { color: var(--blue); }

/* ---------- Promo strip ---------- */
.promo-strip {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
}
.promo-strip strong { color: var(--amber); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-mark-img { width: 42px; height: 42px; }
.brand-lockup { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.01em; }
/* LLC suffix tucked under the end of the wordmark (lockup E3) */
.brand-llc { display: block; text-align: right; font-size: 0.44em; font-weight: 700; letter-spacing: 0.4em; margin-right: -0.4em; color: var(--amber); line-height: 1.1; margin-top: 0.12em; }
.brand-sub { font-size: 11.5px; color: var(--gray); font-weight: 500; }
.site-nav { display: flex; gap: 28px; margin: 0 auto; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.wa-link { font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.wa-link:hover { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; }

/* ---------- Buttons (pills only) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px rgba(46, 91, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(46, 91, 255, 0.45); }
.btn-secondary { background: var(--bg-soft); color: var(--navy); }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { font-size: 14.5px; padding: 11px 26px; }
.btn-lg { font-size: 17px; padding: 18px 44px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; top: -120px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(46,91,255,0.10) 0%, rgba(46,91,255,0) 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero-visual { position: relative; }
.dash-card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dash-card img { width: 100%; }
.caption { font-size: 12.5px; color: var(--gray); margin-top: 12px; text-align: center; }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 14px 20px; border: 1px solid var(--border); font-weight: 700; font-size: 14px;
}
.float-card small { display: block; font-weight: 500; color: var(--gray); font-size: 12px; }
.float-card .num { font-family: var(--font-head); font-size: 1.35rem; color: var(--blue); }
.float-1 { top: -24px; right: -12px; }
.float-2 { bottom: -24px; left: -16px; }

/* Lead capture (fused pill) */
.lead-capture {
  display: flex; align-items: stretch; gap: 0; margin-top: 32px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px; box-shadow: var(--shadow); max-width: 640px;
}
.lead-capture input {
  flex: 1; min-width: 0; border: none; outline: none; font-size: 15px;
  padding: 12px 18px; border-radius: 999px; font-family: var(--font-body); background: transparent;
}
.lead-capture input + input { border-left: 1px solid var(--border); border-radius: 0; }
.lead-capture .btn { border-radius: 999px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 12px; }
.form-error { display: none; color: #D92D20; font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.form-error.show { display: block; }

/* ---------- Check lists ---------- */
.check-list { list-style: none; margin-top: 24px; }
.check-list li { position: relative; padding-left: 2.4rem; margin-bottom: 14px; font-size: 16.5px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 58% no-repeat;
}
.check-list.amber li::before { background-color: var(--amber); }
.check-list strong { font-weight: 700; }

/* ---------- Trust strip / chips ---------- */
.trust-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.trust-strip p { font-weight: 700; color: var(--ink); margin-bottom: 20px; font-size: 17px; }
.chips { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chip {
  background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: 999px; border: 1px solid var(--border);
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.tab-btn {
  font-family: var(--font-body); font-weight: 700; font-size: 15px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--border);
  padding: 12px 28px; border-radius: 999px; transition: all 0.15s ease;
}
.tab-btn.active, .tab-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Cards & grids ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--blue); }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--gray); font-size: 15.5px; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split.flip > :last-child { order: 1; }
.split + .split { margin-top: 96px; }
.rounded-shot { border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ---------- Stats band ---------- */
.stats-band { padding: 72px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 8px 24px; }
.stat + .stat { border-left: 2px solid var(--bg-soft); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--blue); letter-spacing: -0.02em; }
.stat .label { font-weight: 700; color: var(--ink); margin-top: 6px; }
.stat .sub { color: var(--gray); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 32px; box-shadow: var(--shadow); position: relative;
}
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #fff;
  background: var(--gradient); border-radius: 999px; padding: 8px 20px;
  display: inline-block; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--gray); font-size: 15.5px; }

/* ---------- Pricing bullets ---------- */
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 56px; max-width: 900px; margin: 0 auto;
}
.price-bullets { list-style: none; }
.price-bullets li {
  position: relative; padding: 18px 0 18px 3rem; font-size: 1.15rem; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.price-bullets li:last-child { border-bottom: none; }
.price-bullets li::before {
  content: ""; position: absolute; left: 0; top: 1.15em; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 58% no-repeat;
}
.price-bullets .big { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.price-bullets .free { color: var(--amber); font-weight: 800; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px auto 0; max-width: 900px; }
.tier {
  background: var(--bg-soft); border-radius: var(--radius); padding: 32px 28px; text-align: center;
  border: 1px solid var(--border);
}
.tier h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tier .tprice { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--blue); }
.tier p { color: var(--gray); font-size: 14.5px; margin-top: 6px; }
.discount-band {
  background: var(--navy); color: #fff; border-radius: 24px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  max-width: 1100px; margin: 64px auto 0;
}
.discount-band h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.discount-band p { color: #C6CBE0; }
.discount-band .perc { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--amber); }

/* ---------- Form card ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 44px 40px;
}
.form-card h3 { margin-bottom: 6px; font-size: 1.4rem; }
.form-card > p { color: var(--gray); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 15.5px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; outline: none; transition: border-color 0.15s ease;
  appearance: none;
}
.field textarea { border-radius: var(--radius); resize: vertical; min-height: 120px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6474' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.form-card .btn { width: 100%; margin-top: 8px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 24px 28px;
}
.faq-q .plus {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 400; color: var(--blue); transition: transform 0.2s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { display: none; padding: 0 28px 28px; color: var(--gray); }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); border-radius: 28px; padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 320px; background: radial-gradient(ellipse, rgba(124,58,237,0.35) 0%, rgba(124,58,237,0) 70%);
  pointer-events: none;
}
.cta-band .eyebrow { color: var(--amber); }
.cta-band h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-band p { color: #C6CBE0; max-width: 560px; margin: 0 auto; position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C6CBE0; padding: 72px 0 0; margin-top: 96px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #9AA0C3; }
.site-footer .brand-mark text { fill: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact a { color: #C6CBE0; font-size: 14.5px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: 14.5px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 56px; padding: 24px 0; }
.footer-bottom p { font-size: 13.5px; color: #9AA0C3; text-align: center; }

/* ---------- Shop ---------- */
.coming-card { text-align: center; }
.coming-badge {
  display: inline-block; background: var(--bg-soft); color: var(--blue); font-weight: 700; font-size: 13px;
  padding: 8px 22px; border-radius: 999px; margin-top: 16px; text-transform: uppercase; letter-spacing: 0.08em;
}
.product-thumb {
  height: 150px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-lavender));
  display: flex; align-items: center; justify-content: center;
}
.product-thumb svg { width: 56px; height: 56px; stroke: var(--blue); opacity: 0.55; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-thumb {
  height: 170px; border-radius: 14px; margin-bottom: 22px;
  display: flex; align-items: flex-end; padding: 18px; color: #fff;
}
.post-thumb svg { width: 64px; height: 64px; flex-shrink: 0; }
.post-thumb span { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.post-thumb-1 { background: linear-gradient(135deg, #2E5BFF, #7C3AED); }
.post-thumb-2 { background: linear-gradient(135deg, #0B0F3C, #2E5BFF); }
.post-thumb-3 { background: linear-gradient(135deg, #F59E0B, #F97316); }
.post-card h3 { margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card > p { color: var(--gray); font-size: 15px; flex: 1; }
.post-meta { font-size: 13px; color: var(--gray); margin: 14px 0 6px; font-weight: 600; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { margin: 16px 0 12px; font-size: clamp(2rem, 4.4vw, 2.9rem); }
.post-date { color: var(--gray); font-size: 14.5px; margin-bottom: 32px; font-weight: 500; }
.article h2 { font-size: 1.55rem; margin: 44px 0 14px; }
.article h3 { font-size: 1.2rem; margin: 32px 0 10px; }
.article p { margin-bottom: 18px; color: #2A3350; }
.article ul, .article ol { margin: 0 0 20px 1.4rem; color: #2A3350; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 4px solid var(--blue); background: var(--bg-soft); border-radius: 0 14px 14px 0;
  padding: 20px 26px; margin: 28px 0; font-style: italic; color: var(--ink);
}
.article-cta {
  background: var(--navy); border-radius: 24px; padding: 52px 40px; text-align: center; margin-top: 56px;
}
.article-cta h2 { color: #fff; margin-bottom: 10px; }
.article-cta p { color: #C6CBE0; }

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; gap: 24px; margin-top: 28px; }
.contact-cards .contact-card { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.contact-card .big-link { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.contact-card .big-link:hover { color: var(--blue); text-decoration: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 64px; text-align: center; }
.page-hero h1 { margin: 16px 0 16px; }
.page-hero .container { max-width: 820px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.flip > :first-child { order: 0; }
  .split.flip > :last-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat:nth-child(3) { border-left: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border); gap: 4px; margin: 0;
  }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--bg-soft); }
  .site-header.nav-open .site-nav { display: flex; }
  .header-inner { position: relative; }
  .nav-toggle { display: block; }
  .wa-link { display: none; }
  .header-cta { gap: 12px; }
  .cards-grid, .cards-grid.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .lead-capture { flex-direction: column; border-radius: 22px; }
  .lead-capture input + input { border-left: none; border-top: 1px solid var(--border); }
  .float-1 { right: 8px; }
  .float-2 { left: 8px; }
  .price-card { padding: 36px 24px; }
  .discount-band { padding: 36px 28px; }
  .cta-band { padding: 56px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   v3 — New logo, shop categories + lead gate, blog listing v2
   ============================================================ */

/* ---------- Brand mark (inline SVG, Option B circuit hex) ---------- */
.brand-mark { display: block; flex: 0 0 auto; }

/* ---------- Tags & badges ---------- */
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); background: var(--bg-soft);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 4px;
}
.soon-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #92400E; background: #FEF3C7;
  border-radius: 999px; padding: 5px 14px; margin-bottom: 10px;
}

/* ---------- Shop categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.cat-card:hover { text-decoration: none; }
.cat-img { height: 190px; overflow: hidden; flex: 0 0 auto; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--ink); }
.cat-body p { color: var(--gray); font-size: 14.5px; margin-bottom: 20px; flex: 1; }
.cat-body .btn { width: 100%; box-sizing: border-box; text-align: center; }

/* ---------- Category pages ---------- */
.breadcrumb { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.cat-hero { padding-bottom: 0; }
.cat-banner { border-radius: var(--radius); overflow: hidden; margin-top: 36px; box-shadow: var(--shadow); max-height: 340px; }
.cat-banner img { width: 100%; height: 340px; object-fit: cover; display: block; }
.cat-back { margin-top: 40px; }
.cat-back a { font-weight: 600; text-decoration: none; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.prod-img { height: 200px; background: var(--bg-soft); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-img-ph { height: 100%; display: grid; place-items: center; color: var(--gray); font-size: 13.5px; }
.prod-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.prod-price { font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: 1.1rem; margin-bottom: 14px; }
.prod-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--amber); color: var(--navy); font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 5px 12px;
}
.empty-catalog {
  grid-column: 1 / -1; text-align: center; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 64px 32px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.empty-catalog h3 { font-size: 1.5rem; margin-bottom: 10px; }
.empty-catalog p { color: var(--gray); margin-bottom: 24px; }

/* ---------- Blog listing v2 ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb { display: grid; place-items: center; height: 190px; color: #fff; }
.blog-thumb svg { width: 64px; height: 64px; display: block; }
.thumb-blue { background: linear-gradient(135deg, #2E5BFF, #7C3AED); }
.thumb-amber { background: linear-gradient(135deg, #F59E0B, #F97316); }
.thumb-navy { background: linear-gradient(135deg, #0B0F3C, #2E5BFF); }
.blog-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: 1.18rem; line-height: 1.4; margin: 10px 0; }
.blog-card h3 a { color: var(--blue); text-decoration: none; }
.blog-card h3 a:hover { text-decoration: underline; }
.blog-card-body > p { color: var(--gray); font-size: 14.5px; flex: 1; }
.blog-meta { margin-top: 16px; font-size: 13px; color: var(--gray); }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .cat-banner img { height: 220px; }
}

/* ---------- Auth pages ---------- */
.auth-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 18px 40px rgba(11,27,61,.08)}
.auth-card .field{margin-bottom:16px}
.auth-card .field label{display:block;font-weight:600;margin-bottom:7px;font-size:.92rem}
.auth-card .field input{width:100%;padding:13px 14px;border:1.5px solid var(--line);border-radius:11px;font:inherit;background:#fbfcfe}
.auth-card .field input:focus{outline:none;border-color:var(--amber);box-shadow:0 0 0 3px rgba(245,158,11,.18)}
.auth-switch{text-align:center;margin-top:16px;color:var(--muted);font-size:.93rem}
.form-error{display:none;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:10px;padding:11px 14px;margin:0 0 16px;font-size:.9rem}
.form-error.show{display:block}

/* ---------- Dashboard ---------- */
.dash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:34px}
.dash-stat{text-align:center;padding:26px 16px}
.dash-num{font-family:Sora,sans-serif;font-size:2rem;font-weight:800;color:var(--navy);margin:0}
.dash-label{color:var(--muted);margin:6px 0 0;font-size:.9rem}
.dash-block{margin-bottom:44px}
.dash-block h2{font-size:1.35rem;margin-bottom:16px}
.dash-note{font-size:.85rem;color:var(--muted);font-weight:400}
.order-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}
.order-form .field{flex:1;min-width:200px}
.order-form .field label{display:block;font-weight:600;margin-bottom:6px;font-size:.9rem}
.order-form .field input{width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:10px;font:inherit}
.order-form .form-error{flex-basis:100%}
.dash-empty{color:var(--muted);background:#f8fafc;border:1px dashed var(--line);border-radius:12px;padding:20px;text-align:center}
@media(max-width:700px){.dash-stats{grid-template-columns:1fr}}

/* ---------- Role dashboards (3PL / dropshipper / admin / staff) ---------- */
.dash-top{display:flex;align-items:center;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.dash-table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:14px}
.dash-table{width:100%;border-collapse:collapse;font-size:.93rem;min-width:680px}
.dash-table th,.dash-table td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.dash-table th{background:#f8fafc;color:var(--navy);font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}
.dash-table tr:last-child td{border-bottom:none}
.status-pill{display:inline-block;padding:4px 12px;border-radius:999px;font-size:.76rem;font-weight:700;text-transform:capitalize}
.pill-ok{background:#ecfdf5;color:#047857}
.pill-warn{background:#fffbeb;color:#b45309}
.pill-info{background:#eff6ff;color:#1d4ed8}
.pill-bad{background:#fef2f2;color:#b91c1c}
.pill-mute{background:#f1f5f9;color:#64748b}
/* notification bell */
.bell-wrap{position:relative;display:inline-block}
.bell-btn{background:#fff;border:1px solid var(--line);border-radius:999px;font-size:1.2rem;padding:8px 13px;cursor:pointer;position:relative;line-height:1}
.bell-count{position:absolute;top:-6px;right:-6px;background:#dc2626;color:#fff;font-size:.66rem;font-weight:800;min-width:20px;height:20px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 5px}
.bell-drop{position:absolute;right:0;top:calc(100% + 8px);width:340px;max-height:380px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px rgba(11,27,61,.16);z-index:60;text-align:left}
.bell-drop[hidden]{display:none}
.bell-item{padding:13px 15px;border-bottom:1px solid var(--line)}
.bell-item:last-child{border-bottom:none}
.bell-item.unread{background:#fffbeb}
.bell-title{font-weight:700;margin:0 0 4px;font-size:.92rem;color:var(--navy)}
.bell-body{margin:0;color:var(--muted);font-size:.86rem}
.bell-time{margin:6px 0 0;font-size:.75rem;color:#94a3b8}
.bell-facts{margin:8px 0 0;font-size:.8rem;color:var(--navy)}
.bell-fact{display:block;margin-top:3px}
/* invoice modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(11,15,60,.55);display:flex;align-items:center;justify-content:center;z-index:100;padding:18px}
.modal-backdrop[hidden]{display:none}
.modal{background:#fff;border-radius:18px;max-width:740px;width:100%;max-height:86vh;overflow:auto;padding:30px;position:relative}
.modal h3{margin-top:0}
.modal-close{position:absolute;top:10px;right:16px;background:none;border:none;font-size:1.9rem;cursor:pointer;color:var(--muted);line-height:1}
/* tabs + filters */
.tabs{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.tab-btn{background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:9px 24px;font:inherit;font-weight:600;cursor:pointer;color:var(--navy)}
.tab-btn.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.filter-btn{background:#f1f5f9;border:1px solid transparent;border-radius:999px;padding:7px 16px;font-size:.85rem;font-weight:600;cursor:pointer;color:var(--navy);font-family:inherit}
.filter-btn.active{background:var(--amber);color:#fff}
/* numbered pagination under tables */
.pager{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.pager-btn{min-width:38px;height:38px;padding:0 12px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:.9rem;font-weight:700;cursor:pointer;color:var(--navy);font-family:inherit}
.pager-btn.active{background:var(--amber);border-color:var(--amber);color:#fff}
/* misc dashboard pieces */
.dash-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:34px}
.addr-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}
.addr-card h3{margin-top:0;margin-bottom:8px}
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:.93rem}
.kv:last-child{border-bottom:none}
.kv b{color:var(--navy);text-transform:capitalize;text-align:right}
.muted{color:var(--muted)}
.bar-row{display:flex;align-items:center;gap:12px;margin-bottom:8px;font-size:.88rem}
.bar-label{width:92px;flex-shrink:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.bar-track{flex:1;background:#f1f5f9;border-radius:6px;height:14px;overflow:hidden}
.bar-fill{height:100%;background:linear-gradient(90deg,var(--amber),#fbbf24);border-radius:6px}
.bar-val{width:56px;text-align:right;font-weight:700;color:var(--navy)}
.parcel-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:16px}
.parcel-card h3{margin:0 0 6px;font-size:1.05rem}
.parcel-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ev-trail{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.ev-line{font-size:.82rem;color:var(--muted);margin-bottom:3px}
.ev-line a{color:var(--blue)}
.btn-danger{background:#dc2626;color:#fff}
.btn-danger:hover{box-shadow:0 8px 20px rgba(220,38,38,.35)}
.qty-input{width:92px;padding:8px 10px;border:1.5px solid var(--line);border-radius:8px;font:inherit}
select.input,input.input{padding:11px 13px;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:#fff}
.client-picker{display:flex;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
@media(max-width:700px){.dash-grid-2{grid-template-columns:1fr}.bell-drop{width:290px;right:-30px}.modal{padding:22px 18px}}

/* ---------- Shop catalog (v6) ---------- */
.shop-section{padding-top:8px}
.shop-layout{display:grid;grid-template-columns:250px 1fr;gap:32px;align-items:start}
.shop-filters{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;position:sticky;top:20px}
.shop-filters h3{margin:0 0 6px;font-size:1.15rem}
.filter-group{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.filter-group h4{margin:0 0 12px;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.check{display:flex;align-items:center;gap:10px;margin-bottom:10px;cursor:pointer;font-size:.95rem}
.check input{position:absolute;opacity:0;pointer-events:none}
.check .box{width:19px;height:19px;flex:none;border:1.5px solid var(--line);border-radius:6px;background:#fff;transition:all .15s}
.check input:checked + .box{background:var(--amber);border-color:var(--amber);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");background-size:70%;background-position:center;background-repeat:no-repeat}
.check input:focus-visible + .box{box-shadow:0 0 0 3px rgba(245,158,11,.3)}
.price-pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font:inherit;font-size:.85rem;font-weight:600;color:var(--navy);cursor:pointer}
.pill.active{background:var(--navy);border-color:var(--navy);color:#fff}
.shop-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px;flex-wrap:wrap}
.shop-count{color:var(--muted);margin:0;font-size:.92rem}
.sort-wrap{display:flex;align-items:center;gap:8px;font-size:.9rem;color:var(--muted)}
.sort-sel{font:inherit;padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--navy);font-weight:600}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product-card{display:block;text-decoration:none;color:inherit;overflow:hidden;transition:transform .18s,box-shadow .18s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(11,27,61,.12)}
.product-img{position:relative;aspect-ratio:1/1;background:#f1f5f9;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover;display:block}
.discount-badge{position:absolute;top:12px;left:12px;background:var(--navy);color:#fff;font-size:.75rem;font-weight:700;padding:5px 11px;border-radius:999px}
.discount-badge.amber,.product-img .discount-badge{background:var(--amber);color:#fff}
.product-body{padding:16px 18px 20px}
.product-cat{font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 5px}
.product-name{font-size:1.02rem;margin:0 0 8px;color:var(--navy)}
.product-stars{margin:0 0 8px;font-size:.95rem}
.star{color:#d7dde6;font-size:1.05rem}
.star.on{color:var(--amber)}
button.star{background:none;border:none;cursor:pointer;padding:2px;font-size:1.6rem}
button.star:disabled{cursor:default}
.product-price{font-weight:800;color:var(--navy);margin:0;font-size:1.05rem}
.product-price s{font-weight:400;font-size:.88rem;margin-left:8px}
.shop-empty{text-align:center;padding:60px 20px;background:#fff;border:1px dashed var(--line);border-radius:16px}
.shop-empty h3{margin-top:0}
.muted{color:var(--muted)}
.small{font-size:.85rem}

/* ---------- Product detail ---------- */
.pdetail-section{padding-top:36px}
.crumbs{color:var(--muted);font-size:.9rem;margin:0 0 22px}
.crumbs a{color:var(--navy);font-weight:600}
.crumbs span{margin:0 6px}
.pdetail-layout{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start}
.pdetail-media{position:relative;background:#f1f5f9;border:1px solid var(--line);border-radius:18px;overflow:hidden;aspect-ratio:1/1}
.pdetail-media img{width:100%;height:100%;object-fit:cover;display:block}
.pdetail-media .discount-badge{top:16px;left:16px;font-size:.85rem;padding:7px 14px;background:var(--amber)}
.pdetail-cat{font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:0 0 8px}
.pdetail-info h1{margin:0 0 12px;font-size:2rem}
.pdetail-stars{margin:0 0 14px;font-size:1.1rem}
.pdetail-price{font-family:Sora,sans-serif;font-size:1.7rem;font-weight:800;color:var(--navy);margin:0 0 16px}
.pdetail-price s{font-size:1.05rem;font-weight:400;margin-left:10px}
.pdetail-desc{color:var(--muted);line-height:1.65;margin:0 0 24px}
.rate-box{margin-top:44px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;max-width:560px}
.rate-box h3{margin:0 0 10px}
.rate-stars{display:flex;gap:4px;margin-bottom:10px}
.btn-outline-dark{background:#fff;color:var(--navy);border:1.5px solid var(--navy)}
.btn-outline-dark:hover{background:var(--navy);color:#fff}

/* ---------- Modals: sell + resources ---------- */
.modal .field{margin:16px 0}
.modal .field label{display:block;font-weight:600;margin-bottom:7px;font-size:.92rem}
.modal .field input{width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:11px;font:inherit}
.modal .field input:focus{outline:none;border-color:var(--amber);box-shadow:0 0 0 3px rgba(245,158,11,.18)}
.modal-wide{max-width:860px}
.res-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0 22px}
.res-grid img,.res-grid video{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;border:1px solid var(--line);display:block}
.modal h4{margin:20px 0 10px;font-size:1rem}
.rank-row{display:grid;grid-template-columns:110px 1fr 48px;gap:12px;align-items:center;margin-bottom:10px;font-size:.9rem}
.rank-name{font-weight:600;color:var(--navy)}
.rank-bar{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}
.rank-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--amber),#fbbf24);border-radius:999px}
.rank-val{text-align:right;color:var(--muted);font-weight:700}

@media(max-width:960px){
  .shop-layout{grid-template-columns:1fr}
  .shop-filters{position:static}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .pdetail-layout{grid-template-columns:1fr;gap:28px}
}
@media(max-width:600px){.product-grid{grid-template-columns:1fr}.res-grid{grid-template-columns:repeat(2,1fr)}}

/* Header login / sign-up CTA — logo amber, white text */
.btn-login { background: var(--amber); color: #fff; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35); }
.btn-login:hover { background: #d97706; color: #fff; box-shadow: 0 12px 32px rgba(245, 158, 11, 0.45); }

/* ---------- v3 dashboard additions ---------- */
.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin:6px 0 4px}
.order-block{border:1px solid var(--line);border-radius:14px;padding:18px;margin:16px 0;background:#fbfcfe}
.order-block h4{margin:0 0 8px;font-size:1.02rem}
.order-block .ob-remove{margin-top:6px}
.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
.chart-box{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}
.chart-box h3{margin-top:0;font-size:1.05rem}
.chart-wrap{position:relative;height:280px}
.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:14px}
.catalog-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.catalog-card img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:#f1f5f9}
.cat-noimg{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:var(--muted);font-size:.85rem}
.catalog-body{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.catalog-body h4{margin:0;font-size:.98rem}
.cat-rating{font-size:.85rem;margin:0}
.scanner-box{margin:16px 0;padding:18px;border:1px dashed var(--amber);border-radius:14px;background:#fffbeb;text-align:center}
#scannerReader{max-width:420px;margin:0 auto 12px;border-radius:12px;overflow:hidden}
.ledger-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0 4px}
.qr-box{display:flex;justify-content:center;margin:18px 0}
.qr-box img{border:8px solid #fff;box-shadow:0 6px 24px rgba(11,15,60,.12);border-radius:8px}
@media(max-width:960px){.chart-grid{grid-template-columns:1fr}.catalog-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.form-grid{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr}.ledger-cards{grid-template-columns:1fr}}

/* Staff portal v3 additions */
.input-sm { padding: 6px 10px; font-size: .85rem; }
.ledger-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0 4px; }
.scanner-box { margin-top: 14px; padding: 16px; border: 1px dashed var(--border); border-radius: 12px; background: #f8fafc; }
.scanner-box #scannerReader { max-width: 420px; margin: 10px auto; }
.qr-box { display: flex; justify-content: center; padding: 12px; }
.qr-box img, .qr-box canvas { border-radius: 8px; }

/* Toast (product sell confirmation) */
.cf-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #0B0F3C; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .92rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999; box-shadow: 0 8px 24px rgba(11,15,60,.35); max-width: 90vw; text-align: center; }
.cf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Mobile fit — kill horizontal overflow on phones (<=640px)
   Ali: header pushed the whole page right on iPhone/Android.
   Desktop appearance is unchanged; everything below is mobile-only.
   ============================================================ */
html, body { overflow-x: hidden; }

@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .brand-name { font-size: 1.15rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.02rem; white-space: nowrap; }
  .header-cta { gap: 8px; }
  /* Compact header CTA: JS shortens "Login / Sign Up" -> "Login" on mobile */
  .header-cta .btn-login { padding: 9px 16px; font-size: 13px; }
  .nav-toggle { padding: 6px; }
  .promo-strip { font-size: 12.5px; padding: 8px 12px; }
  .btn-lg { padding: 15px 30px; font-size: 16px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 56px 0; }
  /* Dashboard tables already live in .dash-table-wrap (overflow-x:auto);
     make the scroll smooth on touch and never let tables push the page */
  .dash-table-wrap { -webkit-overflow-scrolling: touch; max-width: 100%; }
  .cf-toast { bottom: 16px; font-size: .85rem; }
}

/* ---------- Sold count (dropshipping products) ---------- */
.product-sold { font-size: .82rem; color: var(--gray); margin: 0 0 10px; font-weight: 600; }
.pdetail-sold { font-size: .92rem; color: var(--gray); margin: 0 0 14px; font-weight: 600; }

/* ============================================================
   Language switcher (EN | عربي | 中文)
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.lang-switch button { border: 0; background: transparent; padding: 7px 11px; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; font-family: inherit; line-height: 1; }
.lang-switch button + button { border-inline-start: 1px solid var(--line); }
.lang-switch button.active { background: var(--navy); color: #fff; }
.lang-switch button:hover:not(.active) { background: var(--bg-soft); }
/* copy inside the mobile dropdown menu: hidden on desktop */
.lang-switch-menu { display: none; }
@media (max-width: 768px) {
  .site-header.nav-open .lang-switch-menu { display: inline-flex; margin: 8px 0 4px; align-self: flex-start; }
  .lang-switch button { padding: 8px 12px; }
}

/* ============================================================
   RTL (Arabic) layout adjustments
   Logical properties are used for new code; the overrides below
   mirror the physical properties used by the existing theme.
   ============================================================ */
[dir="rtl"] .header-cta { margin-left: 0; margin-right: auto; }
[dir="rtl"] .section-head.left { margin-right: 0; text-align: right; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 2.4rem; }
[dir="rtl"] .stat + .stat { border-left: none; border-right: 2px solid var(--bg-soft); }
[dir="rtl"] .dash-table th, [dir="rtl"] .dash-table td { text-align: right; }
[dir="rtl"] .bell-drop { right: auto; left: 0; text-align: right; }
[dir="rtl"] .product-price s, [dir="rtl"] .pdetail-price s { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .pdetail-price s { margin-right: 10px; }
/* blockquote accent bar (blog articles) moves to the reading side */
[dir="rtl"] .article blockquote {
  border-left: none; border-right: 4px solid var(--blue);
  border-radius: 14px 0 0 14px;
}
/* article lists indent from the reading side */
[dir="rtl"] .article ul, [dir="rtl"] .article ol { margin-left: 0; margin-right: 1.4rem; }
/* lead-capture divider between stacked inputs */
[dir="rtl"] .lead-capture input + input { border-left: none; border-right: 1px solid var(--border); }
@media (max-width: 768px) {
  [dir="rtl"] .lead-capture input + input { border-right: none; }
}
/* dashboard float cards mirror over the hero visual */
[dir="rtl"] .float-1 { right: auto; left: 8px; }
[dir="rtl"] .float-2 { left: auto; right: 8px; }
/* mobile nav panel stays full-width; links align to reading side */
[dir="rtl"] .site-nav a { text-align: right; }

/* Receipt button printed state (#8): faded but still clickable */
.receipt-btn.printed { opacity: .55; }
.receipt-btn.printed:hover { opacity: .8; }

/* Manager assignments: per-client 3PL / Dropship scope pickers (#9).
   NOTE: do not reuse the .check class here — it hides native checkboxes. */
.mgr-pick{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font-size:.92rem}
.mgr-pick-name{font-weight:700;color:var(--navy);margin-right:2px}
.mgr-pick-opt{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--muted);font-weight:600}
.mgr-pick-opt input{width:18px;height:18px;accent-color:var(--amber);cursor:pointer;margin:0}

/* ============ Content Studio (editor) ============ */
.dash-row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dash-row-between h2{margin:0}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:16px 0}
.kpi-card{background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:4px}
.kpi-num{font-family:Sora,sans-serif;font-weight:800;font-size:1.9rem;color:var(--navy);word-break:break-word}
.kpi-lbl{font-size:.82rem;color:var(--gray);font-weight:600}
.quill-wrap{background:#fff;border-radius:12px}
.quill-wrap .ql-toolbar{border-radius:12px 12px 0 0;border-color:var(--line)}
.quill-wrap .ql-container{border-radius:0 0 12px 12px;border-color:var(--line);min-height:300px;font-size:1rem;font-family:Inter,sans-serif}
#prodQuill .ql-container{min-height:180px}
.thumb-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.thumb-item{position:relative;width:96px}
.thumb-item img{width:96px;height:96px;object-fit:cover;border-radius:10px;border:1.5px solid var(--line);display:block}
.thumb-item button{position:absolute;top:-8px;right:-8px;width:26px;height:26px;border-radius:50%;border:none;background:#dc2626;color:#fff;font-weight:700;cursor:pointer;line-height:1}
.thumb-badge{position:absolute;left:4px;bottom:4px;background:var(--amber);color:#fff;font-size:.68rem;font-weight:700;padding:2px 8px;border-radius:999px}
.res-item{width:auto;max-width:320px;display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:8px 34px 8px 10px;font-size:.85rem}
.res-kind{background:var(--navy);color:#fff;font-size:.68rem;font-weight:700;padding:2px 8px;border-radius:999px;text-transform:uppercase}
.rank-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.check-line{display:flex !important;align-items:center;gap:8px;font-weight:600;cursor:pointer}
.check-line input{width:18px;height:18px;accent-color:var(--amber)}
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-top:14px}
.media-item{border:1.5px solid var(--line);border-radius:12px;padding:10px;background:#fff}
.media-item img{width:100%;height:110px;object-fit:cover;border-radius:8px}
.media-file{height:110px;display:flex;align-items:center;justify-content:center;font-size:2.4rem;background:var(--bg-soft);border-radius:8px}
.media-name{font-size:.78rem;margin:8px 0;word-break:break-all;color:var(--ink)}
.media-actions{display:flex;gap:6px;flex-wrap:wrap}
/* article body: responsive images + video embeds from the editor */
.article img,.article-preview img{max-width:100%;height:auto;border-radius:14px;margin:18px 0}
.article .ql-video,.article-preview .ql-video{width:100%;aspect-ratio:16/9;border-radius:14px;margin:18px 0;border:0}
.article iframe[src*="youtube"]{width:100%;aspect-ratio:16/9;border-radius:14px;margin:18px 0;border:0}
.blog-thumb img{width:100%;height:100%;object-fit:cover;display:block}
