/* ═══════════════════════════════════════════
   PiCo.ma — main.css
   ═══════════════════════════════════════════ */

:root {
  --accent:        #1DC2A2;
  --accent-dim:    #17a98d;
  --accent-dark:   #0b4a3c;
  --accent-glow:   rgba(29,194,162,.12);
  --bg:            #0a0d0f;
  --bg-surface:    #0e1215;
  --bg-card:       #111518;
  --bg-card-hover: #161b1f;
  --border:        rgba(255,255,255,.07);
  --border-accent: rgba(29,194,162,.28);
  --text:          #f0f4f8;
  --text-2:        #8b9ab0;
  --text-3:        #3a4a5a;
  --radius:        8px;
  --radius-lg:     14px;
  --glow:          0 0 48px rgba(29,194,162,.12);
  --font:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', 'Courier New', monospace;
  --nav-h:         64px;
  --topbar-h:      36px;
  --ease:          .2s ease;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }

/* ── Typography ─────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--text-2); }

/* ── Layout ─────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Top bar ────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  z-index: 1001;
  background: var(--accent); color: #041a12;
  display: flex; align-items: center;
}
.topbar-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.topbar-msg { font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.topbar-icon { font-size: .65rem; opacity: .7; }
.topbar-link { text-decoration: underline; text-underline-offset: 2px; color: inherit; white-space: nowrap; }
.topbar-link:hover { opacity: .8; }
.topbar-close {
  position: absolute; right: 24px;
  width: 24px; height: 24px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: #041a12; background: none;
  opacity: .65; transition: opacity var(--ease);
}
.topbar-close:hover { opacity: 1; }

.topbar-hidden .topbar { display: none; }
.topbar-hidden { --topbar-h: 0px; }

/* ── Navbar ─────────────────────────────── */
.navbar {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; height: var(--nav-h);
  z-index: 1000;
  background: rgba(10,13,15,.85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.navbar.scrolled { background: rgba(10,13,15,.97); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; flex-shrink: 0;
}
.logo-pi  { color: var(--text); }
.logo-co  { color: var(--accent); }
.logo-dot { color: var(--text-2); }
.logo-ma  { color: var(--text-2); font-weight: 400; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-links a {
  padding: 6px 11px; border-radius: 6px;
  font-size: .85rem; font-weight: 500; color: var(--text-2);
  transition: color var(--ease), background var(--ease); white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--accent); background: var(--accent-glow); }
.nav-arabic { font-size: .72rem; opacity: .75; margin-left: 2px; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* ── Language button ────────────────────── */
.lang-btn {
  display: flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 11px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; white-space: nowrap;
  transition: all var(--ease);
}
.lang-btn:hover { color: var(--accent); border-color: var(--border-accent); }

.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2);
  transition: all var(--ease);
}
.cart-btn:hover { color: var(--accent); border-color: var(--border-accent); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #071a14;
  font-size: .62rem; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}
.cart-count.show { display: flex; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-links {
    position: fixed; top: calc(var(--nav-h) + var(--topbar-h)); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 4px; padding: 24px 16px;
    background: var(--bg-surface); border-top: 1px solid var(--border);
    transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto;
    flex: unset;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: .95rem; padding: 10px 14px; width: 100%; }
  .nav-toggle { display: flex; }
}

/* ── Footer ─────────────────────────────── */
footer {
  background: var(--bg-surface); border-top: 1px solid var(--border); padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: .875rem; margin-top: 14px; max-width: 260px; line-height: 1.7; }
.footer-col h4 {
  font-size: .75rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .875rem; color: var(--text-2); transition: color var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-3); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all var(--ease);
}
.footer-socials a:hover { color: var(--accent); border-color: var(--border-accent); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Hero ───────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 88px); padding-bottom: 96px;
  position: relative; overflow: hidden; min-height: 100svh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,194,162,.09) 0%, transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(29,194,162,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,194,162,.035) 1px, transparent 1px);
  background-size: 52px 52px;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(29,194,162,.1); border: 1px solid var(--border-accent);
  font-size: .75rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 28px;
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.hero h1 { margin-bottom: 22px; font-weight: 800; }
.hero h1 .hi { color: var(--accent); }
.hero .lead { font-size: clamp(.95rem, 2vw, 1.15rem); color: var(--text-2); margin-bottom: 44px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; padding: 0 40px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.stat-lbl { font-size: .75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
@media (max-width: 600px) { .stat-item { padding: 16px 24px; border-right: none; border-bottom: 1px solid var(--border); width: 50%; } }

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600;
  transition: all var(--ease); cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #071a14; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(29,194,162,.28); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--border-accent); color: var(--accent); background: var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--accent); }
.btn-sm  { padding: 7px 16px; font-size: .82rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── Cards ──────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .25s;
}
.card:hover { border-color: rgba(29,194,162,.22); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.card-body { padding: 22px; }
.card-img {
  width: 100%; aspect-ratio: 16/9; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  background: rgba(29,194,162,.12); color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p  { font-size: .875rem; }
.card-price { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 12px 0; }
.card-price small { font-size: .8rem; font-weight: 400; color: var(--text-2); }

/* ── Section header ─────────────────────── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 100px;
  background: rgba(29,194,162,.08); border: 1px solid var(--border-accent);
  font-size: .72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p   { font-size: 1rem; }

/* ── Grid ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px)  { .grid-3,.grid-2 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .grid-4 { grid-template-columns: 1fr; } }

/* ── Feature card ───────────────────────── */
.feat-card {
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border); transition: all .25s;
}
.feat-card:hover { border-color: rgba(29,194,162,.2); background: var(--bg-card-hover); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(29,194,162,.1); border: 1px solid rgba(29,194,162,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px; flex-shrink: 0;
}
.feat-card h3 { font-size: .95rem; margin-bottom: 8px; }
.feat-card p  { font-size: .85rem; }

/* ── Page hero ──────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 56px); padding-bottom: 56px;
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(29,194,162,.07) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p  { font-size: 1.05rem; max-width: 520px; }

/* ── Breadcrumb ─────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-2); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-3); }

/* ── Forms ──────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 500; color: var(--text); }
.form-control {
  width: 100%; padding: 11px 16px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: .9rem; transition: border-color var(--ease);
}
.form-control:focus { border-color: rgba(29,194,162,.45); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-error { font-size: .8rem; color: #f87171; margin-top: 4px; }

/* ── Reveal ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; } .d6 { transition-delay: .6s; }

/* ── Badges ─────────────────────────────── */
.badge {
  display: inline-flex; padding: 2px 8px; border-radius: 4px;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.badge-green  { background: rgba(29,194,162,.15);  color: var(--accent); }
.badge-blue   { background: rgba(59,130,246,.15);  color: #60a5fa; }
.badge-orange { background: rgba(251,146,60,.15);  color: #fb923c; }
.badge-red    { background: rgba(248,113,113,.15); color: #f87171; }
.badge-purple { background: rgba(167,139,250,.15); color: #a78bfa; }

/* ── Tables ─────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .875rem; }
.spec-table th { font-weight: 600; color: var(--text); background: var(--bg-surface); }
.spec-table td { color: var(--text-2); }
.spec-table td:first-child { color: var(--text); font-weight: 500; }
.spec-table tr:last-child td { border-bottom: none; }

/* ── Code ───────────────────────────────── */
.code-block {
  background: #0b1812; border: 1px solid rgba(29,194,162,.18);
  border-radius: 10px; margin: 20px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
/* macOS dots via CSS background gradients — not clipped by overflow */
.code-header {
  display: flex; align-items: center;
  padding: 12px 18px 12px 80px;
  border-bottom: 1px solid rgba(29,194,162,.1);
  border-radius: 10px 10px 0 0;
  background-image:
    radial-gradient(circle, #ff5f56 5px, transparent 5px),
    radial-gradient(circle, #ffbd2e 5px, transparent 5px),
    radial-gradient(circle, #27c93f 5px, transparent 5px);
  background-size: 12px 12px;
  background-position: 18px center, 38px center, 58px center;
  background-repeat: no-repeat;
  background-color: #0f2018;
}
.code-lang { font-size: .72rem; font-family: var(--mono); color: rgba(168,216,200,.6); text-transform: uppercase; letter-spacing: .08em; flex: 1; }
.code-copy { font-size: .72rem; color: var(--text-2); cursor: pointer; transition: color var(--ease); background: none; border: none; padding: 0; }
.code-copy:hover { color: var(--accent); }
.code-block pre, .code-block pre[class*="language-"] {
  margin: 0; padding: 22px 20px; background: transparent !important;
  font-family: var(--mono); font-size: .84rem; line-height: 1.8;
  overflow-x: auto; white-space: pre; text-shadow: none;
  border-radius: 0 0 10px 10px;
}

/* ── Prism token colours — Arduino/C++ theme ── */
code[class*="language-"],
pre[class*="language-"]                { color: #e4f0fb !important; text-shadow: none !important; background: transparent !important; }
.token.comment,
.token.block-comment                   { color: #5ec79d !important; font-style: italic !important; }
.token.string,
.token.char                            { color: #6ce791 !important; }
.token.number                          { color: #f78c6c !important; }
.token.keyword                         { color: #1DC2A2 !important; font-style: normal !important; }
.token.arduino-constant,
.token.constant                        { color: #ffb01d !important; }
.token.boolean                         { color: #ffcb6b !important; }
.token.builtin,
.token.function                        { color: #10bdf3 !important; }
.token.class-name                      { color: #e4f0fb !important; }
.token.operator                        { color: #89ddff !important; }
.token.punctuation                     { color: #e4f0fb !important; }
.token.macro.property,
.token.directive                       { color: #c665e4 !important; }
.token.directive-hash                  { color: #c665e4 !important; }
.token.namespace                       { color: #e4f0fb !important; }
.token.property                        { color: #1DC2A2 !important; }
.kw { color: #6eb3ff; } /* keyword */
.st { color: #f9b17a; } /* string  */
.fn { color: var(--accent); } /* function */
.nm { color: #c9a0dc; } /* number  */
.pp { color: #ff9b7a; } /* preproc */

/* ── Alerts ─────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: .875rem; display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; line-height: 1.6; }
.alert-tip  { background: rgba(29,194,162,.08);  border: 1px solid rgba(29,194,162,.2);  color: #6dd5bd; }
.alert-info { background: rgba(59,130,246,.1);   border: 1px solid rgba(59,130,246,.25); color: #93c5fd; }
.alert-warn { background: rgba(251,146,60,.1);   border: 1px solid rgba(251,146,60,.25); color: #fb923c; }
.alert-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

/* ── CTA Banner ─────────────────────────── */
.cta-banner {
  padding: 72px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0e2a20 0%, #071a10 60%, #060f0c 100%);
  border: 1px solid var(--border-accent); box-shadow: var(--glow);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(29,194,162,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(29,194,162,.05) 1px,transparent 1px);
  background-size: 48px 48px;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2  { margin-bottom: 14px; }
.cta-banner p   { font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .cta-banner { padding: 48px 24px; } }

/* ── Testimonial ────────────────────────── */
.testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.testimonial-text { font-size: .95rem; color: var(--text-2); font-style: italic; margin-bottom: 20px; line-height: 1.75; }
.testimonial-text::before { content:'"'; color: var(--accent); font-size: 2.2rem; line-height: 0; vertical-align: -.55em; margin-right: 2px; font-style: normal; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0b4a3c, var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
}
.author-name { font-size: .875rem; font-weight: 600; }
.author-role { font-size: .78rem; color: var(--text-2); }

/* ── Store ──────────────────────────────── */
.store-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-btn {
  padding: 6px 16px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all var(--ease);
}
.filter-btn.active, .filter-btn:hover { background: var(--accent-glow); border-color: var(--border-accent); color: var(--accent); }
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

.cart-sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  position: sticky; top: calc(var(--nav-h) + var(--topbar-h) + 20px);
}
.cart-sidebar-title {
  font-size: .95rem; font-weight: 600; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center;
}
.cart-items { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.cart-empty { text-align: center; padding: 28px 0; color: var(--text-3); font-size: .85rem; }
.cart-item { display: flex; gap: 10px; padding: 12px; background: var(--bg-surface); border-radius: var(--radius); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .78rem; color: var(--accent); margin-top: 3px; }
.cart-item-row   { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 22px; height: 22px; border-radius: 4px; background: var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer; transition: background var(--ease); }
.qty-btn:hover { background: var(--accent); color: #000; }
.qty-num { font-size: .82rem; font-weight: 600; min-width: 16px; text-align: center; }
.remove-item { font-size: .72rem; color: var(--text-3); cursor: pointer; margin-left: auto; transition: color var(--ease); background: none; border: none; }
.remove-item:hover { color: #f87171; }
.cart-total-row { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.cart-total-amt  { color: var(--accent); font-size: 1.05rem; }

@media (max-width: 900px) { .store-layout { grid-template-columns: 1fr; } .cart-sidebar { position: static; } .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* ── Checkout ───────────────────────────── */
.checkout-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.checkout-section h3 { margin-bottom: 24px; }
.success-msg {
  padding: 24px; border-radius: var(--radius-lg);
  background: rgba(29,194,162,.08); border: 1px solid var(--border-accent);
  text-align: center; color: var(--accent); font-weight: 600;
}

/* ── Sidebar layout (learn/docs) ─────────── */
.content-wrap { display: grid; grid-template-columns: 256px 1fr; gap: 40px; align-items: start; padding: 40px 0; }
.sidebar-nav {
  position: sticky; top: calc(var(--nav-h) + var(--topbar-h) + 20px);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.sidebar-search { padding: 14px; border-bottom: 1px solid var(--border); }
.sidebar-search input {
  width: 100%; padding: 8px 12px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .82rem; color: var(--text);
}
.sidebar-search input:focus { border-color: rgba(29,194,162,.3); }
.sidebar-search input::placeholder { color: var(--text-3); }
.sidebar-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sidebar-group:last-child { border-bottom: none; }
.sidebar-group-label { padding: 0 16px 8px; font-size: .68rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; }
.sidebar-link {
  display: block; padding: 7px 16px; font-size: .85rem; color: var(--text-2);
  transition: all var(--ease);
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.sidebar-link.active { color: var(--accent); background: rgba(29,194,162,.08); border-left: 2px solid var(--accent); }
.content-body { min-width: 0; }
.content-body h1 { margin-bottom: 8px; }
.content-body .lead { font-size: 1.05rem; color: var(--text-2); margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); line-height: 1.75; }
.content-body h2 { font-size: 1.5rem; margin: 44px 0 16px; padding-top: 16px; }
.content-body h3 { font-size: 1.1rem; margin: 28px 0 12px; color: var(--text); }
.content-body p  { margin-bottom: 16px; font-size: .95rem; line-height: 1.75; }
.content-body ul { padding-left: 20px; margin-bottom: 16px; }
.content-body ul li { font-size: .95rem; color: var(--text-2); margin-bottom: 8px; line-height: 1.7; }
.doc-section { margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.doc-section:last-child { border-bottom: none; }
@media (max-width: 860px) { .content-wrap { grid-template-columns: 1fr; } .sidebar-nav { position: static; } }

/* ── Pricing ────────────────────────────── */
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all .25s; }
.pricing-card:hover { border-color: rgba(29,194,162,.2); transform: translateY(-3px); }
.pricing-card.featured { border-color: var(--border-accent); box-shadow: var(--glow); position: relative; }
.pricing-card.featured::before {
  content: 'Recommended'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #071a14; font-size: .7rem; font-weight: 800;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.pricing-tier  { font-size: .78rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.pricing-price { font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
.pricing-price sup { font-size: .9rem; vertical-align: top; margin-top: .3rem; }
.pricing-price sub { font-size: .85rem; font-weight: 400; color: var(--text-2); }
.pricing-desc  { font-size: .875rem; margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pricing-feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-feat  { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-2); }
.pricing-feat::before { content:'✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pricing-feat.no { opacity: .4; }
.pricing-feat.no::before { content:'×'; color: var(--text-3); }

/* ── Product detail ─────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 48px 0; }
.product-img-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }

/* ── Contact ────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-links  { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-link {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--ease);
}
.contact-link:hover { border-color: var(--border-accent); }
.contact-link-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(29,194,162,.1); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-link-text strong { font-size: .875rem; display: block; margin-bottom: 2px; }
.contact-link-text span   { font-size: .82rem; color: var(--text-2); }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

/* ── Camps ──────────────────────────────── */
.camp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; }
.camp-card:hover { border-color: rgba(29,194,162,.25); transform: translateY(-3px); }
.camp-card-head { padding: 24px; background: linear-gradient(135deg, #0d2219, #071510); border-bottom: 1px solid var(--border); }
.camp-card-body { padding: 24px; }
.camp-dates { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.camp-date { padding: 4px 10px; border-radius: 4px; background: rgba(29,194,162,.1); border: 1px solid rgba(29,194,162,.2); font-size: .75rem; font-weight: 600; color: var(--accent); font-family: var(--mono); }
.bilingual { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.lang-badge { padding: 4px 12px; border-radius: 100px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(29,194,162,.1); border: 1px solid rgba(29,194,162,.25); color: var(--accent); }
.arabic-text { font-size: 1.1rem; color: var(--text-2); line-height: 1.8; text-align: right; direction: rtl; margin-bottom: 12px; }
.day-card { display: flex; gap: 20px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 12px; }
.day-num { width: 48px; height: 48px; border-radius: 10px; background: rgba(29,194,162,.1); border: 1px solid rgba(29,194,162,.2); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.day-content h3 { font-size: .95rem; margin-bottom: 4px; }
.day-content p  { font-size: .875rem; }

/* ── Schools ────────────────────────────── */
.school-stat { text-align: center; padding: 32px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.school-stat-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.school-stat-lbl { font-size: .82rem; color: var(--text-2); margin-top: 6px; }

/* ── Utilities ──────────────────────────── */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-2); }
.text-center  { text-align: center; }
.mt-2 { margin-top: 8px; }  .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.hidden { display: none !important; }
.divider { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin: 16px 0; }

/* ── Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* ── Toast ──────────────────────────────── */
#toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--accent); color: #071a14; padding: 12px 22px;
  border-radius: var(--radius); font-size: .875rem; font-weight: 600;
  opacity: 0; transition: opacity .25s; pointer-events: none;
  box-shadow: 0 8px 24px rgba(29,194,162,.3);
}
