:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --bg-card-hover: #22272e;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --green: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border: #30363d;
    --border-light: #3d444d;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.25rem; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 10px;
}

.nav-logo .logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.25rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 40px;
}

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

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600;
    transition: all 0.2s; cursor: pointer; border: none;
}

.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover); color: #fff;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
    background: var(--accent-glow);
}

/* SECTIONS */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-secondary); }

.section-label {
    text-transform: uppercase; font-size: 0.8rem; font-weight: 700;
    color: var(--accent); letter-spacing: 2px; margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem; font-weight: 800; margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem; color: var(--text-secondary); max-width: 600px;
    margin-bottom: 48px;
}

.section-header { text-align: center; }
.section-header .section-subtitle { margin: 0 auto 48px; }

/* PRODUCT CARDS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
    display: flex; flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
}

.product-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}

.product-icon.shield { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.product-icon.lock { background: linear-gradient(135deg, #f59e0b, #d97706); }
.product-icon.log { background: linear-gradient(135deg, #22c55e, #16a34a); }
.product-icon.gear { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.product-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.product-card .tagline { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.product-card p { color: var(--text-secondary); font-size: 0.9rem; flex: 1; margin-bottom: 20px; }
.product-card .price { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.product-card .price strong { color: var(--green); font-size: 1.1rem; }

/* FEATURES LIST */
.features-list { list-style: none; }
.features-list li {
    padding: 8px 0; color: var(--text-secondary); font-size: 0.9rem;
    display: flex; align-items: flex-start; gap: 10px;
}
.features-list li::before {
    content: '\2713'; color: var(--green); font-weight: 700;
    flex-shrink: 0; margin-top: 2px;
}

/* PRODUCT PAGE */
.product-hero {
    padding: 120px 0 60px; text-align: center;
    position: relative; overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.product-hero .badge {
    display: inline-block; padding: 6px 16px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 20px;
}

.badge-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: var(--orange); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-green { background: rgba(34, 197, 94, 0.15); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

.product-hero h1 {
    font-size: 3rem; font-weight: 800; margin-bottom: 16px;
}

.product-hero .subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 650px; margin: 0 auto 32px;
}

/* FEATURES GRID */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 24px;
    transition: border-color 0.2s;
}
.feature-item:hover { border-color: var(--border-light); }
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 0.85rem; color: var(--text-secondary); }

/* PRICING TABLE */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; max-width: 900px; margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px; text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pricing-card.popular { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.pricing-card .tier { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.pricing-card .amount { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.pricing-card .period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.pricing-card .detail { font-size: 0.85rem; color: var(--text-secondary); }

/* ABOUT */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: start;
}

.about-grid p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; }

.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 32px;
}

.stat { text-align: center; }
.stat .number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* CONTACT */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start;
}

.contact-info h3 { font-size: 1.2rem; margin-bottom: 24px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border: none; }
.contact-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.contact-item .label { font-size: 0.8rem; color: var(--text-muted); }
.contact-item .value { font-size: 0.95rem; color: var(--text-primary); }

/* FOOTER */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-muted);
}

/* CTA BANNER */
.cta-banner {
    text-align: center; padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    position: relative; overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 32px; }

/* BREADCRUMB */
.breadcrumb {
    padding: 80px 0 0; font-size: 0.85rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-muted); margin: 0 8px; }
.breadcrumb .current { color: var(--text-secondary); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg-primary); border-bottom: 1px solid var(--border);
        padding: 16px 24px; gap: 16px;
    }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 2.25rem; }
    .hero .subtitle { font-size: 1.05rem; }
    .product-hero h1 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr; gap: 16px; }
    .pricing-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Barricade Code — theme toggle + i18n controls + light mode + RTL
   (appended to style.css by build_i18n.py)
   ============================================================ */

/* smooth theme transition */
body, nav, .product-card, .feature-item, .pricing-card, .btn, .theme-btn, .lang-btn, .lang-menu {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ---------- LIGHT THEME (opt-in; default stays dark) ---------- */
:root[data-theme="light"] {
  --bg-primary:   #ffffff;
  --bg-secondary: #f1f5fb;
  --bg-card:      #ffffff;
  --bg-card-hover:#f6f9fe;
  --accent-glow:  rgba(59, 130, 246, 0.10);
  --green:  #0f9d58;
  --orange: #d97706;
  --red:    #dc2626;
  --text-primary:   #0d1b2f;
  --text-secondary: #47586f;
  --text-muted:     #75849a;
  --border:       #e4e9f1;
  --border-light: #d2dbe8;
}
:root[data-theme="light"] body { background: var(--bg-primary); }
:root[data-theme="light"] nav { background: rgba(255,255,255,0.82); }
:root[data-theme="light"] .product-card:hover {
  box-shadow: 0 12px 34px rgba(13,27,47,0.12), 0 0 18px var(--accent-glow);
}
:root[data-theme="light"] .flag { box-shadow: 0 0 0 1px rgba(13,27,47,0.14); }

/* ---------- NAV RIGHT GROUP + CONTROLS ---------- */
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-controls { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 38px; height: 38px; flex: 0 0 auto;
  border: 1px solid var(--border-light); border-radius: 9px;
  background: var(--bg-card); color: var(--text-primary);
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.theme-btn:hover { border-color: var(--accent); background: var(--bg-card-hover); }

.lang-select { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px;
  border: 1px solid var(--border-light); border-radius: 9px;
  background: var(--bg-card); color: var(--text-primary);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.lang-btn .chev { color: var(--text-muted); font-size: 0.7rem; }

.flag {
  width: 22px; height: 15px; border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18); display: block;
}

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 264px; max-width: 78vw;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 22px 55px rgba(0,0,0,0.45);
  padding: 8px; display: none; z-index: 200;
}
.lang-menu.open { display: block; }
.lang-filter {
  width: 100%; box-sizing: border-box; padding: 9px 12px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-secondary); color: var(--text-primary);
  font-size: 0.85rem; outline: none; font-family: inherit;
}
.lang-filter:focus { border-color: var(--accent); }
.lang-menu ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.lang-menu li {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; color: var(--text-secondary);
}
.lang-menu li:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-menu li[aria-selected="true"] { background: var(--accent-glow); color: var(--text-primary); font-weight: 600; }
.lang-menu li.hidden { display: none; }
.lang-menu .flag { flex: 0 0 auto; }

/* ---------- RTL ---------- */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .breadcrumb span { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .features-list li { text-align: right; }
/* keep prices / bare numbers reading left-to-right inside RTL text */
[dir="rtl"] .amount, [dir="rtl"] .number { direction: ltr; unicode-bidi: isolate; }

/* ---------- responsive tweaks for the controls ---------- */
@media (max-width: 768px) {
  .nav-right { gap: 12px; }
}
@media (max-width: 560px) {
  #langCode { display: none; }
  .lang-btn { padding: 0 9px; }
}


/* ArcCaster docs — two-pane help layout (left nav, right content) + buy placeholders.
   Appended after style.css + _add.css, so every colour here is a token from those files and
   both themes follow automatically. Classes are ac- prefixed: the main barricadecode.com pages
   share this stylesheet and must not pick up any of it. */

/* The site nav is position:fixed with a 64px container, so every docs page has to open its own
   top gap -- there is no hero section here to do it for us. */
.ac-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 2.75rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(64px + 2.25rem) 1.5rem 5rem;
}

/* style.css gives every <section> 80px of vertical padding and paints every even one with
   --bg-secondary, which is right for a marketing page built of full-width bands and wrong for a
   document made of consecutive headings. Reset both; .ac-doc sections are text, not bands. */
.ac-doc section { padding: 0; background: none; }

/* The shared .nav-logo .logo-icon is a 32px blue gradient tile built to hold a letter. These pages
   put the real app icon there instead, so drop the tile: the bolt has its own transparency and
   reads on both themes without a plate behind it. */
.nav-logo img.logo-icon {
    background: none;
    border-radius: 0;
    object-fit: contain;
}

/* ---- left pane ---- */
.ac-side {
    position: sticky;
    top: 84px;                              /* clears the fixed site nav */
    align-self: start;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding-right: .5rem;
    border-right: 1px solid var(--border);
}
.ac-side h2 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    margin: 1.5rem 0 .5rem;
    font-weight: 700;
}
.ac-side h2:first-child { margin-top: 0; }
.ac-side a {
    display: block;
    padding: .34rem .6rem;
    margin-bottom: 1px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.35;
    border-left: 2px solid transparent;
}
.ac-side a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.ac-side a.active {
    background: var(--accent-glow);
    color: var(--text-primary);
    border-left-color: var(--accent);
    font-weight: 600;
}

/* ---- right pane ---- */
.ac-doc { min-width: 0; }
.ac-doc section { scroll-margin-top: 92px; margin-bottom: 3rem; }
.ac-doc h1 { font-size: 2.1rem; margin: 0 0 .4rem; }
.ac-doc h2 {
    font-size: 1.5rem;
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}
.ac-doc h3 { font-size: 1.08rem; margin: 1.6rem 0 .45rem; color: var(--text-primary); }
.ac-doc p { color: var(--text-secondary); line-height: 1.68; margin: 0 0 .85rem; }
.ac-doc ul, .ac-doc ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.ac-doc li { color: var(--text-secondary); line-height: 1.62; margin-bottom: .4rem; }
.ac-doc strong { color: var(--text-primary); font-weight: 600; }
.ac-doc a { color: var(--accent); }
.ac-doc code {
    font-family: var(--font-mono);
    font-size: .87em;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: .1em .38em;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}
.ac-doc kbd {
    font-family: var(--font);
    font-size: .8em;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: .12em .45em;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ---- lede under the page title ---- */
.ac-lede { font-size: 1.06rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }

/* ---- callouts ---- */
.ac-note, .ac-warn, .ac-tip {
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    padding: .85rem 1rem;
    margin: 0 0 1rem;
}
.ac-note { border-left-color: var(--accent); }
.ac-warn { border-left-color: var(--orange); }
.ac-tip  { border-left-color: var(--green); }
.ac-note p:last-child, .ac-warn p:last-child, .ac-tip p:last-child { margin-bottom: 0; }

/* ---- symptom -> cause -> fix blocks ---- */
.ac-fix {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}
.ac-fix h3 { margin-top: 0; }
.ac-fix p:last-child, .ac-fix ul:last-child, .ac-fix ol:last-child { margin-bottom: 0; }

/* ---- tables ---- */
.ac-doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.15rem; font-size: .92rem; }
.ac-doc th, .ac-doc td {
    text-align: left;
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}
.ac-doc th { color: var(--text-primary); font-weight: 600; background: var(--bg-secondary); }
.ac-scroll { overflow-x: auto; }            /* wide tables scroll, the page never does */

/* ---- FAQ ---- */
.ac-faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    margin-bottom: .7rem;
    overflow: hidden;
}
.ac-faq summary {
    cursor: pointer;
    padding: .95rem 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; flex: none; }
.ac-faq details[open] summary::after { content: "\2212"; }
.ac-faq details[open] summary { border-bottom: 1px solid var(--border); }
.ac-faq .ac-a { padding: .95rem 1.1rem; }
.ac-faq .ac-a p:last-child, .ac-faq .ac-a ul:last-child { margin-bottom: 0; }

/* ---- buy placeholders ---- */
.ac-holding { max-width: 680px; margin: 0 auto; padding: 5rem 1.5rem 6rem; text-align: center; }
.ac-holding h1 { font-size: 2.15rem; margin: 0 0 .8rem; }
.ac-holding p { color: var(--text-secondary); line-height: 1.7; margin: 0 auto 1rem; max-width: 52ch; }
.ac-holding .ac-actions { margin-top: 2rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.ac-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ---- mobile: sidebar collapses above the content ---- */
@media (max-width: 900px) {
    .ac-layout { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
    .ac-side {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
    }
    .ac-side h2 { margin-top: 1rem; }
    .ac-doc h1 { font-size: 1.7rem; }
}

/* RTL: the pane order and the active-item rule both mirror */
[dir="rtl"] .ac-side { border-right: 0; border-left: 1px solid var(--border); padding-right: 0; padding-left: .5rem; }
[dir="rtl"] .ac-side a { border-left: 2px solid transparent; border-right: 2px solid transparent; }
[dir="rtl"] .ac-side a.active { border-left-color: transparent; border-right-color: var(--accent); }
[dir="rtl"] .ac-doc ul, [dir="rtl"] .ac-doc ol { padding-left: 0; padding-right: 1.35rem; }
[dir="rtl"] .ac-note, [dir="rtl"] .ac-warn, [dir="rtl"] .ac-tip {
    border-left-width: 1px;
    border-right-width: 3px;
}
[dir="rtl"] .ac-note { border-right-color: var(--accent); }
[dir="rtl"] .ac-warn { border-right-color: var(--orange); }
[dir="rtl"] .ac-tip  { border-right-color: var(--green); }
