/*
Theme Name: AuditPass
Theme URI: https://auditpass.example.com
Author: AuditPass
Author URI: https://auditpass.example.com
Description: قالب ووردبريس احترافي ثنائي اللغة (عربي RTL / إنجليزي LTR) لمنصات بيع الملخصات الدراسية وبنوك الأسئلة والاشتراكات التعليمية — متكامل بالكامل مع WooCommerce لإدارة الشراء والدفع والاشتراكات. مُصمّم وفق نظام AuditPass Corporate Modern بلمسة قطاع التدقيق والامتثال.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: auditpass
Tags: e-commerce, education, rtl-language-support, custom-menu, custom-colors, translation-ready
WC requires at least: 7.0
WC tested up to: 9.6
*/

/* =========================================================
   AuditPass Design System — Corporate Modern / High-Contrast
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* Surfaces */
  --ap-bg: #f8fafc;
  --ap-surface: #ffffff;
  --ap-surface-2: #f1f5f9;
  --ap-border: #e2e8f0;
  --ap-border-strong: #cbd5e1;

  /* Brand */
  --ap-navy: #0f172a;
  --ap-navy-2: #1e293b;
  --ap-navy-3: #334155;
  --ap-emerald: #10b981;
  --ap-emerald-dark: #059669;
  --ap-emerald-deep: #065f46;
  --ap-amber: #f59e0b;
  --ap-amber-deep: #92400e;
  --ap-crimson: #ef4444;
  --ap-crimson-deep: #991b1b;
  --ap-indigo: #6366f1;

  /* Text */
  --ap-text: #0b1c30;
  --ap-muted: #64748b;
  --ap-faint: #94a3b8;

  /* Functional surfaces */
  --ap-success-bg: #ecfdf5;
  --ap-success-bd: #a7f3d0;
  --ap-warn-bg: #fffbeb;
  --ap-warn-bd: #fde68a;
  --ap-error-bg: #fef2f2;
  --ap-error-bd: #fecaca;
  --ap-info-bg: #eef2ff;
  --ap-info-bd: #c7d2fe;

  /* Radii */
  --ap-r-sm: 4px;
  --ap-r-md: 6px;
  --ap-r-lg: 8px;
  --ap-r-xl: 12px;
  --ap-r-full: 9999px;

  /* Shadows */
  --ap-sh-2: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 2px 4px -2px rgba(15, 23, 42, .04);
  --ap-sh-3: 0 10px 15px -3px rgba(15, 23, 42, .08);

  /* Fonts */
  --ap-font: 'Inter', 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --ap-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: var(--ap-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[dir="rtl"] body,
body.rtl { line-height: 1.85; letter-spacing: 0; }

img { max-width: 100%; height: auto; }

a { color: var(--ap-emerald-deep); text-decoration: none; }
a:hover { color: var(--ap-emerald); }

h1, h2, h3, h4, h5, h6 {
  color: var(--ap-navy);
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 .6em;
}

::selection { background: var(--ap-emerald); color: #fff; }

/* ---------- Layout helpers ---------- */
.ap-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}
@media (max-width: 767px) {
  .ap-container { padding-inline: 1rem; }
}

.ap-section { padding-block: 4rem; }
@media (max-width: 767px) { .ap-section { padding-block: 2.5rem; } }

.ap-section--navy { background: var(--ap-navy); }
.ap-section--tint { background: var(--ap-surface-2); }

/* ---------- Buttons ---------- */
.ap-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--ap-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--ap-r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  text-decoration: none !important;
  min-height: 44px;
}
.ap-btn:active { transform: scale(.99); }

.ap-btn--primary { background: var(--ap-navy); color: #fff; }
.ap-btn--primary:hover { background: var(--ap-navy-2); color: #fff; }

.ap-btn--emerald { background: var(--ap-emerald); color: #fff; }
.ap-btn--emerald:hover { background: var(--ap-emerald-dark); color: #fff; box-shadow: var(--ap-sh-2); }

.ap-btn--outline {
  background: transparent;
  color: var(--ap-navy);
  border-color: var(--ap-border);
}
.ap-btn--outline:hover { background: var(--ap-surface-2); border-color: var(--ap-border-strong); }

.ap-btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.ap-btn--ghost-light:hover { background: rgba(255,255,255,.15); color: #fff; }

.ap-btn--lg { padding: 17px 30px; font-size: 15px; }
.ap-btn--block { width: 100%; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit { background: var(--ap-navy); color: #fff; }
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--ap-navy-2); color: #fff; }
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .wc-forward { background: var(--ap-emerald); color: #fff !important; }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover { background: var(--ap-emerald-dark); color: #fff; }

/* ---------- Badges / pills ---------- */
.ap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--ap-r-full);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.ap-pill--navy { background: rgba(15,23,42,.08); color: var(--ap-navy); }
.ap-pill--emerald { background: var(--ap-success-bg); color: var(--ap-emerald-deep); border: 1px solid var(--ap-success-bd); }
.ap-pill--amber { background: var(--ap-warn-bg); color: var(--ap-amber-deep); border: 1px solid var(--ap-warn-bd); }
.ap-pill--crimson { background: var(--ap-error-bg); color: var(--ap-crimson-deep); border: 1px solid var(--ap-error-bd); }
.ap-pill--mono { font-family: var(--ap-mono); letter-spacing: .02em; }
.ap-pill--soft { background: var(--ap-surface-2); color: var(--ap-navy-3); border: 1px solid var(--ap-border); }

/* ---------- Inline icons ---------- */
.ap-icon { flex: none; display: inline-block; vertical-align: -0.18em; }
.icon-12 { width: 12px; height: 12px; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.ap-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-xl);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.ap-card--hover:hover {
  box-shadow: var(--ap-sh-2);
  border-color: var(--ap-border-strong);
  transform: translateY(-2px);
}

/* ---------- Announcement bar ---------- */
.ap-announce {
  background: linear-gradient(90deg, var(--ap-emerald-deep), #047857 55%, var(--ap-emerald-deep));
  color: #d1fae5;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 0;
  text-align: center;
}
.ap-announce strong { color: #fff; }
.ap-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.ap-announce__inner p { margin: 0; min-width: 0; }
.ap-announce__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
  flex: none;
  animation: ap-pulse 2.2s ease-in-out infinite;
}
@keyframes ap-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
  50%      { box-shadow: 0 0 0 6px rgba(52, 211, 153, .12); }
}

/* ---------- Reading progress ---------- */
.ap-reading-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--ap-emerald), #14b8a6);
  z-index: 120;
  transition: width .08s linear;
  pointer-events: none;
}

/* ---------- Header ---------- */
.ap-header {
  background: var(--ap-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .45);
  position: sticky;
  top: 0;
  z-index: 90;
}
.ap-header__inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 66px;
  flex-wrap: nowrap;
}
.ap-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  min-width: 0;
  flex: none;
}
.ap-brand:hover { color: #fff; }
.ap-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ap-emerald) 0%, #0d9488 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--ap-mono);
  flex: none;
  box-shadow: 0 4px 12px -4px rgba(16, 185, 129, .55);
}
.ap-brand__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ap-brand__badge {
  background: rgba(16,185,129,.16);
  border: 1px solid rgba(16,185,129,.45);
  color: #6ee7b7;
  border-radius: var(--ap-r-full);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  white-space: nowrap;
}

.ap-nav { min-width: 0; }
.ap-nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: 0;
}
.ap-nav__menu li { position: relative; }
.ap-nav__menu a {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--ap-r-md);
  display: block;
  white-space: nowrap;
}
.ap-nav__menu a:hover,
.ap-nav__menu .current-menu-item > a,
.ap-nav__menu .current_page_item > a { color: #fff; background: rgba(255,255,255,.09); }
.ap-nav__menu .current-menu-item > a { color: #6ee7b7; }

/* Hidden-by-default panel extras (mobile menu) */
.ap-nav__extra { display: none; }

.ap-header__actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-inline-start: auto;
  flex: none;
}

.ap-lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--ap-r-full);
  padding: 3px;
  gap: 2px;
  flex: none;
}
.ap-lang-toggle a {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--ap-r-full);
  color: #cbd5e1;
  min-height: auto;
  line-height: 1.4;
  white-space: nowrap;
}
.ap-lang-toggle a.is-active { background: #fff; color: var(--ap-navy); }
.ap-lang-toggle a:hover:not(.is-active) { color: #fff; background: rgba(255,255,255,.06); }

.ap-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--ap-r-md);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
.ap-cart-link:hover { background: rgba(255,255,255,.16); color: #fff; }
.ap-cart-link svg { width: 19px; height: 19px; }
.ap-cart-count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: var(--ap-emerald);
  color: #fff;
  border-radius: var(--ap-r-full);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
  font-family: var(--ap-mono);
}

.ap-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1 !important;
  padding: 9px 12px;
  border-radius: var(--ap-r-md);
  white-space: nowrap;
  max-width: 150px;
}
.ap-login-link:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.ap-login-link .ap-icon { flex: none; }
.ap-login-cta {
  background: var(--ap-emerald);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--ap-r-md);
  white-space: nowrap;
  box-shadow: 0 4px 14px -6px rgba(16, 185, 129, .6);
}
.ap-login-cta:hover { background: var(--ap-emerald-dark); color: #fff !important; }

/* Mobile nav */
.ap-nav-toggle {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: var(--ap-r-md);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
@media (max-width: 1189px) {
  .ap-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--ap-navy);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .75rem 1rem 1.15rem;
    margin: 0;
    box-shadow: var(--ap-sh-3);
  }
  .ap-nav.is-open { display: block; }
  .ap-nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .ap-nav__menu a { padding: 13px 14px; }
  .ap-nav__extra {
    display: grid;
    gap: .9rem;
    margin-top: .9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .ap-nav__auth { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .ap-nav__auth .ap-btn { width: 100%; justify-content: center; }
  .ap-nav-toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .ap-brand__badge { display: none; }
  .ap-login-link { display: none; }
}
@media (max-width: 559px) {
  .ap-lang-toggle--bar { display: none; }
  .ap-login-cta { padding: 9px 13px; font-size: 12.5px; }
  .ap-header__inner { gap: .6rem; min-height: 60px; }
}

/* ---------- Hero ---------- */
.ap-hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(16,185,129,.14), transparent 60%),
    radial-gradient(50rem 26rem at 0% 110%, rgba(30,41,59,.55), transparent 60%),
    var(--ap-navy);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ap-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.4);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 7px 14px;
  border-radius: var(--ap-r-full);
  margin-bottom: 1.5rem;
}
.ap-hero__title {
  color: #fff;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 800;
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.ap-hero__title .text-emerald { color: var(--ap-emerald); }
.ap-hero__sub {
  color: #94a3b8;
  font-size: 16.5px;
  max-width: 680px;
  margin: 0 auto 1.75rem;
}
.ap-hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2rem;
}
.ap-hero__rating .stars { color: var(--ap-amber); letter-spacing: 2px; font-size: 15px; }
.ap-hero__cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.ap-stats { border-bottom: 1px solid var(--ap-border); background: var(--ap-surface); }
.ap-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 2rem;
}
@media (max-width: 767px) { .ap-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.ap-stat { text-align: center; }
.ap-stat__num {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--ap-navy);
  font-family: var(--ap-mono);
  letter-spacing: -.02em;
}
.ap-stat__label { color: var(--ap-muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

/* ---------- Section heads ---------- */
.ap-kicker {
  color: var(--ap-emerald-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: block;
}
.ap-sec-title {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.015em;
  margin-bottom: .5rem;
}
.ap-sec-sub { color: var(--ap-muted); font-size: 15px; max-width: 640px; }
.ap-sec-head { text-align: center; margin-bottom: 2.75rem; }
.ap-sec-head .ap-sec-sub { margin-inline: auto; }

/* ---------- Pricing / packages ---------- */
.ap-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.ap-package { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.ap-package__head { padding: 1.6rem 1.6rem 1.2rem; }
.ap-package__cat { margin-bottom: .8rem; }
.ap-package__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ap-package__sub { color: var(--ap-muted); font-size: 13px; margin-top: 4px; }
.ap-package__price {
  padding: 0 1.6rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.ap-package__price .amount { font-size: 38px; font-weight: 800; color: var(--ap-navy); font-family: var(--ap-mono); letter-spacing: -.03em; }
.ap-package__price .period { color: var(--ap-muted); font-size: 13px; font-weight: 600; }
.ap-package__price .strike { color: var(--ap-faint); text-decoration: line-through; font-size: 16px; font-weight: 600; }
.ap-package__body { padding: 0 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.ap-package__features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .65rem; }
.ap-package__features li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ap-navy-3);
  font-weight: 500;
}
.ap-package__features li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ap-success-bg);
  border: 1px solid var(--ap-success-bd);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.ap-package__body .ap-btn { margin-top: auto; }
.ap-package__note { color: var(--ap-faint); font-size: 11.5px; text-align: center; margin-top: .7rem; }

.ap-package--featured { border-color: var(--ap-emerald); box-shadow: 0 0 0 1px var(--ap-emerald), var(--ap-sh-2); }
.ap-package--featured .ap-package__head { background: linear-gradient(180deg, var(--ap-success-bg), transparent); }
.ap-package--featured .ap-package__head,
.ap-package--dark .ap-package__head { padding-top: 2.35rem; }

.ap-package--dark { background: var(--ap-navy); border-color: var(--ap-navy-2); color: #fff; }
.ap-package--dark .ap-package__title,
.ap-package--dark .ap-package__price .amount { color: #fff; }
.ap-package--dark .ap-package__sub,
.ap-package--dark .ap-package__price .period { color: #94a3b8; }
.ap-package--dark .ap-package__features li { color: #cbd5e1; }
.ap-package--dark .ap-package__features li::before {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ap-package--dark .ap-package__note { color: #64748b; }
.ap-package__ribbon {
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--ap-emerald);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: var(--ap-r-full);
  box-shadow: var(--ap-sh-2);
  white-space: nowrap;
  z-index: 2;
}
[dir="rtl"] .ap-package__ribbon { transform: translateX(50%); }

/* ---------- Demo exam / sample question ---------- */
.ap-demo { display: grid; grid-template-columns: 5fr 7fr; gap: 1.75rem; align-items: stretch; }
@media (max-width: 991px) { .ap-demo { grid-template-columns: 1fr; } }
.ap-demo__pitch { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.ap-demo__pitch h3 { font-size: 21px; }
.ap-demo__pitch p { color: var(--ap-muted); font-size: 14px; margin: 0; }
.ap-demo__checks { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .55rem; }
.ap-demo__checks li { display: flex; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ap-navy-3); }
.ap-demo__checks li::before { content: "✓"; color: var(--ap-emerald); font-weight: 800; }
.ap-demo__pitch .ap-btn { align-self: flex-start; margin-top: auto; }

.ap-qcard { padding: 1.5rem; }
.ap-qcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ap-surface-2);
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.ap-qcard__stem { font-size: 16.5px; font-weight: 700; color: var(--ap-navy); margin-bottom: 1.15rem; line-height: 1.75; }
.ap-qcard__stem .en { color: var(--ap-indigo); direction: ltr; unicode-bidi: embed; }

/* options */
.ap-opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--ap-surface);
  transition: border-color .15s ease, background .15s ease;
  font-size: 14.5px;
  font-weight: 500;
  user-select: none;
}
.ap-opt:hover { border-color: var(--ap-border-strong); background: var(--ap-surface-2); }
.ap-opt__letter {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ap-surface-2);
  border: 1px solid var(--ap-border);
  color: var(--ap-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--ap-mono);
}
.ap-opt.is-selected { border-color: var(--ap-navy); box-shadow: 0 0 0 1px var(--ap-navy); background: var(--ap-bg); }
.ap-opt.is-correct { border-color: var(--ap-emerald); background: var(--ap-success-bg); }
.ap-opt.is-correct .ap-opt__letter { background: var(--ap-emerald); border-color: var(--ap-emerald); color: #fff; }
.ap-opt.is-wrong { border-color: var(--ap-crimson); background: var(--ap-error-bg); }
.ap-opt.is-wrong .ap-opt__letter { background: var(--ap-crimson); border-color: var(--ap-crimson); color: #fff; }
.ap-opt.is-locked { pointer-events: none; }

/* quiz chrome */
.ap-quiz { display: grid; gap: 1rem; }
.ap-quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ap-navy);
  color: #fff;
  border-radius: var(--ap-r-lg);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.ap-quiz__timer {
  font-family: var(--ap-mono);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}
.ap-quiz__timer.is-warn { color: var(--ap-amber); }
.ap-quiz__timer.is-danger { color: var(--ap-crimson); }
.ap-quiz__count { font-size: 12.5px; color: #94a3b8; font-weight: 600; }
.ap-quiz__count b { color: #fff; font-family: var(--ap-mono); }
.ap-quiz__rail { height: 5px; background: var(--ap-border); border-radius: var(--ap-r-full); overflow: hidden; }
.ap-quiz__rail-fill {
  height: 100%;
  width: 0%;
  background: var(--ap-emerald);
  border-radius: var(--ap-r-full);
  transition: width .3s ease;
}
.ap-quiz__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.ap-quiz__verdict {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: var(--ap-r-md);
  padding: 12px 16px;
}
.ap-quiz__verdict.show { display: flex; }
.ap-quiz__verdict.ok { background: var(--ap-success-bg); border: 1px solid var(--ap-success-bd); color: var(--ap-emerald-deep); }
.ap-quiz__verdict.no { background: var(--ap-error-bg); border: 1px solid var(--ap-error-bd); color: var(--ap-crimson-deep); }

/* explanations accordions */
.ap-exp { display: grid; gap: .6rem; margin-top: 1.15rem; }
.ap-exp__item { border: 1px solid var(--ap-border); border-radius: var(--ap-r-lg); background: var(--ap-bg); overflow: hidden; }
.ap-exp__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: none;
  border: 0;
  padding: 12px 16px;
  font-family: var(--ap-font);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ap-navy);
  cursor: pointer;
  text-align: start;
}
.ap-exp__btn .chev { transition: transform .2s ease; color: var(--ap-muted); }
.ap-exp__item.open .ap-exp__btn .chev { transform: rotate(180deg); }
.ap-exp__body { display: none; padding: 0 16px 14px; font-size: 13.5px; color: var(--ap-navy-3); line-height: 1.9; }
.ap-exp__item.open .ap-exp__body { display: block; }
.ap-exp__tag {
  font-size: 10.5px;
  font-weight: 700;
  border-radius: var(--ap-r-full);
  padding: 3px 9px;
  margin-inline-start: 8px;
}
.ap-exp__tag--ok { background: var(--ap-success-bg); color: var(--ap-emerald-deep); }
.ap-exp__tag--info { background: var(--ap-info-bg); color: #3730a3; }
.ap-exp__tag--warn { background: var(--ap-warn-bg); color: var(--ap-amber-deep); }

.ap-quiz__result {
  display: none;
  text-align: center;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-lg);
  padding: 2rem 1.5rem;
  background: var(--ap-surface);
}
.ap-quiz__result.show { display: block; }
.ap-quiz__result .score { font-family: var(--ap-mono); font-size: 44px; font-weight: 800; color: var(--ap-navy); }

/* ---------- Comparison matrix ---------- */
.ap-matrix-wrap { overflow-x: auto; border: 1px solid var(--ap-border); border-radius: var(--ap-r-xl); background: var(--ap-surface); }
.ap-matrix { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 13.5px; }
.ap-matrix th, .ap-matrix td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ap-surface-2);
  text-align: start;
  vertical-align: middle;
}
.ap-matrix thead th {
  background: var(--ap-surface-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--ap-navy);
  letter-spacing: .04em;
}
.ap-matrix thead th.hl { background: var(--ap-navy); color: #fff; }
.ap-matrix tbody tr:last-child td { border-bottom: 0; }
.ap-matrix td.feat { font-weight: 600; color: var(--ap-navy-3); }
.ap-matrix .yes { color: var(--ap-emerald); font-weight: 800; }
.ap-matrix .no { color: var(--ap-faint); font-weight: 700; }
.ap-matrix .hl-col { background: rgba(16,185,129,.05); }

/* ---------- Testimonials ---------- */
.ap-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.ap-testimonial { padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.ap-testimonial__tag { align-self: flex-start; }
.ap-testimonial__quote { font-size: 14px; color: var(--ap-navy-3); margin: 0; flex: 1; line-height: 1.9; }
.ap-testimonial__who { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--ap-surface-2); padding-top: 1rem; }
.ap-testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ap-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.ap-testimonial__name { font-size: 13.5px; font-weight: 700; color: var(--ap-navy); }
.ap-testimonial__role { font-size: 11.5px; color: var(--ap-muted); }

/* ---------- Guarantee ---------- */
.ap-guarantee {
  background: linear-gradient(135deg, var(--ap-success-bg), #fff);
  border: 1px solid var(--ap-success-bd);
  border-radius: var(--ap-r-xl);
  padding: 2.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.ap-guarantee__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--ap-emerald);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ap-guarantee__body { flex: 1; min-width: 260px; }
.ap-guarantee__body h3 { font-size: 20px; }
.ap-guarantee__body p { color: var(--ap-emerald-deep); font-size: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.ap-cta-band {
  background: var(--ap-navy);
  border-radius: var(--ap-r-xl);
  color: #fff;
  padding: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ap-cta-band h3 { color: #fff; font-size: clamp(20px, 2.6vw, 27px); margin-bottom: .35rem; }
.ap-cta-band p { color: #94a3b8; margin: 0; font-size: 14px; }

/* ---------- Footer ---------- */
.ap-footer {
  background: var(--ap-navy);
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ap-footer a { color: #cbd5e1; font-size: 13px; }
.ap-footer a:hover { color: #fff; }
.ap-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-block: 3.25rem 2.25rem;
}
@media (max-width: 991px) { .ap-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ap-footer__grid { grid-template-columns: 1fr; } }
.ap-footer h4 {
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ap-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ap-footer__about p { font-size: 13px; line-height: 1.9; margin: .9rem 0 1.1rem; max-width: 360px; }
.ap-payments { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-payments span {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #cbd5e1;
  border-radius: var(--ap-r-sm);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  font-family: var(--ap-mono);
}
.ap-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: 12px;
}
.ap-footer__bottom .menu { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; flex-wrap: wrap; }

/* ---------- Question bank library ---------- */
.ap-qbank-head {
  background: var(--ap-navy);
  color: #fff;
  padding: 3.25rem 0;
}
.ap-qbank-head h1 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); }
.ap-qbank-head p { color: #94a3b8; max-width: 620px; margin: 0; }
.ap-parts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.ap-part-card { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.ap-part-card__num {
  font-family: var(--ap-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-emerald-deep);
  background: var(--ap-success-bg);
  border: 1px solid var(--ap-success-bd);
  align-self: flex-start;
  border-radius: var(--ap-r-full);
  padding: 4px 11px;
}
.ap-part-card h3 { font-size: 17.5px; margin: .2rem 0 0; }
.ap-part-card p { color: var(--ap-muted); font-size: 13px; margin: 0; flex: 1; }
.ap-part-card__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-part-card .ap-btn { margin-top: .9rem; }
.ap-part-card.is-locked { background: var(--ap-surface-2); }
.ap-part-card__list { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.ap-part-card__list li {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--ap-surface-2); border: 1px solid var(--ap-border);
  border-radius: 10px; padding: .55rem .75rem;
}
.ap-part-card__list a { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; }
.ap-part-card__list a span { font-size: 13px; font-weight: 700; color: var(--ap-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-part-card__list a small { font-size: 11px; color: var(--ap-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-part-card__list a:hover span { color: var(--ap-emerald-deep); }
.ap-part-card__list .ap-pill { flex: none; }
.ap-part-card:hover { border-color: var(--ap-emerald); }

/* ---------- Summaries ---------- */
.ap-summaries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.ap-summary-card { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.ap-summary-card h3 { font-size: 15.5px; margin: 0; line-height: 1.7; }
.ap-summary-card p { color: var(--ap-muted); font-size: 12.5px; margin: 0; flex: 1; }
.ap-summary-card__meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* Single summary reader */
.ap-reader-wrap { padding-block: 2.5rem 3.25rem; }
.ap-reader { max-width: 860px; margin-inline: auto; box-shadow: var(--ap-sh-2); }
.ap-reader__body {
  padding: clamp(1.4rem, 3.4vw, 2.3rem) clamp(1.15rem, 4vw, 2.4rem) 2.1rem;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ap-navy-3);
}
.ap-reader__body > *:first-child { margin-top: 0; }
.ap-reader__body > *:last-child { margin-bottom: 0; }
.ap-reader__body h2 {
  font-size: 19px;
  margin-top: 1.9em;
  padding-inline-start: 13px;
  position: relative;
}
.ap-reader__body h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .28em;
  width: 4px;
  height: 1.05em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ap-emerald), #0d9488);
}
.ap-reader__body h3 { font-size: 16px; margin-top: 1.5em; }
.ap-reader__body ul li, .ap-reader__body ol li { margin-bottom: .45em; }
.ap-reader__body ul li::marker { color: var(--ap-emerald-deep); }
.ap-reader__body table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 1.2em 0; display: block; overflow-x: auto; }
.ap-reader__body th, .ap-reader__body td { border: 1px solid var(--ap-border); padding: 10px 13px; text-align: start; white-space: nowrap; }
.ap-reader__body th { background: var(--ap-surface-2); }
.ap-reader__body blockquote {
  margin: 1.2em 0;
  background: var(--ap-warn-bg);
  border: 1px solid var(--ap-warn-bd);
  border-radius: var(--ap-r-md);
  padding: 14px 17px;
  color: var(--ap-amber-deep);
  font-weight: 600;
  font-size: 14px;
}
.ap-reader__foot {
  border-top: 1px solid var(--ap-surface-2);
  padding: 1.3rem clamp(1.15rem, 4vw, 2.4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--ap-surface), var(--ap-bg));
  border-radius: 0 0 var(--ap-r-xl) var(--ap-r-xl);
}
.ap-reader__license {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ap-muted);
  font-weight: 600;
}
.ap-reader__license .ap-icon { color: var(--ap-emerald-deep); }

/* PDF download card */
.ap-dl {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--ap-success-bg), #ffffff 75%);
  border: 1px solid var(--ap-success-bd);
  border-radius: var(--ap-r-xl);
  padding: 15px 17px;
  margin-bottom: 2rem;
}
.ap-dl__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--ap-emerald), #0d9488);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 6px 14px -6px rgba(16, 185, 129, .55);
}
.ap-dl__icon .ap-icon { width: 20px; height: 20px; }
.ap-dl__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ap-dl__text strong { font-size: 14px; color: var(--ap-navy); line-height: 1.6; }
.ap-dl__text > span { color: var(--ap-muted); font-size: 12px; }
.ap-dl__btn { margin-inline-start: auto; }
@media (max-width: 599px) {
  .ap-dl__btn { margin-inline-start: 0; width: 100%; }
}

/* Related summaries */
.ap-related { max-width: 860px; margin: 2.75rem auto 0; }
.ap-related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.ap-related__head h2 { margin: 0; font-size: 19px; }
.ap-related__head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-emerald-deep);
  white-space: nowrap;
}
.ap-related__head a:hover { color: var(--ap-emerald); }
.ap-related .ap-summaries-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ap-summary-card h3 { font-size: 15px; }
.ap-summary-card h3 a { color: var(--ap-navy); }
.ap-summary-card h3 a:hover { color: var(--ap-emerald-deep); }
.ap-summary-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ap-emerald-deep);
  margin-top: .35rem;
}

/* ---------- Gate / upsell ---------- */
.ap-gate {
  text-align: center;
  background:
    radial-gradient(30rem 12rem at 50% -30%, rgba(245,158,11,.10), transparent 65%),
    var(--ap-surface);
  border: 1px dashed var(--ap-border-strong);
  border-radius: var(--ap-r-xl);
  padding: 3.2rem 1.75rem;
  display: grid;
  gap: .8rem;
  justify-items: center;
  max-width: 720px;
  margin-inline: auto;
  box-shadow: var(--ap-sh-2);
}
.ap-gate__lock {
  width: 60px; height: 60px;
  border-radius: 17px;
  background: var(--ap-warn-bg);
  border: 1px solid var(--ap-warn-bd);
  color: var(--ap-amber-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ap-gate__lock .ap-icon { width: 26px; height: 26px; }
.ap-gate h3 { margin: 0; font-size: 20px; }
.ap-gate p { color: var(--ap-muted); font-size: 14px; max-width: 480px; margin: 0; line-height: 1.95; }
.ap-gate__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }

/* ---------- WooCommerce overrides ---------- */
.woocommerce-page .ap-shop-head {
  background: var(--ap-navy);
  color: #fff;
  padding: 3rem 0;
}
.woocommerce-page .ap-shop-head h1 { color: #fff; margin: 0; font-size: clamp(24px, 3.2vw, 34px); }
.woocommerce-page .ap-shop-head .woocommerce-breadcrumb { color: #64748b; font-size: 12px; margin-top: .5rem; }
.woocommerce-page .ap-shop-head .woocommerce-breadcrumb a { color: #cbd5e1; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin: 0 0 2rem !important; padding: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--ap-sh-2); border-color: var(--ap-border-strong); transform: translateY(-2px); }
.woocommerce ul.products li.product a img { border-radius: var(--ap-r-lg); margin-bottom: 1rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16.5px !important; font-weight: 700; color: var(--ap-navy); padding: 0 !important; }
.woocommerce ul.products li.product .price { color: var(--ap-navy) !important; font-size: 20px !important; font-weight: 800; font-family: var(--ap-mono); }
.woocommerce ul.products li.product .price del { color: var(--ap-faint) !important; font-weight: 500; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin-top: auto !important; }
.woocommerce ul.products li.product .onsale {
  background: var(--ap-emerald);
  color: #fff;
  border-radius: var(--ap-r-full);
  font-weight: 700;
  font-size: 11px;
  min-width: auto;
  min-height: auto;
  line-height: 1;
  padding: 7px 12px;
  top: 12px;
  inset-inline-start: 12px;
  inset-inline-end: auto;
  z-index: 5;
}
[dir="rtl"] .woocommerce ul.products li.product .onsale,
.rtl .woocommerce ul.products li.product .onsale { right: 12px; left: auto; }

.woocommerce span.onsale {
  background: var(--ap-emerald);
  color: #fff;
  border-radius: var(--ap-r-full);
  font-weight: 700;
  min-height: auto;
  min-width: auto;
  line-height: 1;
  padding: 8px 14px;
  top: 14px;
  inset-inline-start: 14px;
  inset-inline-end: auto;
  z-index: 5;
}
[dir="rtl"] .woocommerce span.onsale,
.rtl .woocommerce span.onsale { right: 14px; left: auto; }

.woocommerce div.product .product_title { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.015em; }
.woocommerce div.product p.price { color: var(--ap-navy); font-family: var(--ap-mono); font-size: 26px; font-weight: 800; }
.woocommerce div.product div.summary { color: var(--ap-navy-3); font-size: 14.5px; }
.woocommerce div.product form.cart .button { background: var(--ap-emerald); color: #fff; padding: 16px 28px; }
.woocommerce div.product form.cart .button:hover { background: var(--ap-emerald-dark); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--ap-surface-2); border-radius: var(--ap-r-md) var(--ap-r-md) 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ap-navy); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 700; }

/* Cart / checkout tables */
.woocommerce table.shop_table {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 13.5px;
}
.woocommerce table.shop_table th { background: var(--ap-surface-2); font-weight: 700; color: var(--ap-navy); }
.woocommerce table.shop_table td { border-top: 1px solid var(--ap-surface-2); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 46%; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  border: 1px solid var(--ap-border-strong) !important;
  border-radius: var(--ap-r-sm) !important;
  padding: 11px 13px !important;
  font-family: var(--ap-font) !important;
  background: var(--ap-surface);
  min-height: 44px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 13px; color: var(--ap-navy-3); }
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-lg);
}
#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
  background: var(--ap-surface-2);
  border-radius: var(--ap-r-md);
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 4px;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-md);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ap-navy);
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover { border-color: var(--ap-navy); background: var(--ap-navy); color: #fff; }

/* Woo notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: var(--ap-r-md);
  border-top-color: var(--ap-emerald);
  background: var(--ap-success-bg);
  color: var(--ap-emerald-deep);
  font-size: 13.5px;
  font-weight: 600;
}
.woocommerce-info { border-top-color: var(--ap-indigo); background: var(--ap-info-bg); color: #3730a3; }
.woocommerce-error { border-top-color: var(--ap-crimson); background: var(--ap-error-bg); color: var(--ap-crimson-deep); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: inherit; }

/* Checkout columns */
.woocommerce-checkout form.woocommerce-checkout { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; align-items: start; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
@media (max-width: 900px) { .woocommerce-checkout form.woocommerce-checkout { grid-template-columns: 1fr; } }
.woocommerce-additional-fields h3, .woocommerce-billing-fields h3 { font-size: 17px; }

/* WP core alignment classes */
.alignwide { width: min(1180px, 100%); margin-inline: auto; }
.alignfull { width: 100%; }
.alignleft { float: inline-start; margin-inline-end: 1.5rem; }
.alignright { float: inline-end; margin-inline-start: 1.5rem; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--ap-muted); font-size: 12px; text-align: center; }
.sticky { display: block; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}

/* ---------- Generic page / post ---------- */
.ap-page-hero {
  position: relative;
  background:
    radial-gradient(46rem 16rem at 88% -40%, rgba(16,185,129,.09), transparent 62%),
    radial-gradient(30rem 14rem at 4% 130%, rgba(15,23,42,.05), transparent 60%),
    var(--ap-surface);
  border-bottom: 1px solid var(--ap-border);
  padding: 2.4rem 0 2.5rem;
  overflow: hidden;
}
.ap-page-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-emerald) 0%, rgba(16,185,129,.25) 34%, transparent 72%);
  pointer-events: none;
}
.ap-page-hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(23px, 3.3vw, 34px);
  letter-spacing: -.015em;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.ap-page-hero--reader h1 { max-width: 62rem; }

/* Breadcrumb chips */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--ap-muted);
  min-width: 0;
}
.breadcrumb .crumb { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb a {
  background: var(--ap-surface-2);
  border: 1px solid var(--ap-border);
  color: var(--ap-navy-3);
  font-weight: 600;
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: var(--ap-r-full);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  white-space: nowrap;
}
.breadcrumb a:hover { border-color: var(--ap-emerald); color: var(--ap-emerald-deep); background: var(--ap-success-bg); }
.breadcrumb .crumb-sep { color: var(--ap-faint); font-size: 11px; }
.breadcrumb .crumb.is-current {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--ap-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Reader hero extras */
.ap-hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 1.15rem;
}
.ap-hero__en {
  margin: .5rem 0 0;
  font-family: var(--ap-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ap-faint);
  text-align: start;
  letter-spacing: -.01em;
}
.ap-hero__excerpt {
  margin: .9rem 0 0;
  color: var(--ap-muted);
  font-size: 15px;
  line-height: 1.95;
  max-width: 46rem;
}
.ap-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.35rem;
}
.ap-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-full);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-navy-3);
  white-space: nowrap;
}
.ap-meta-chip .ap-icon { width: 14px; height: 14px; color: var(--ap-emerald-deep); }
.ap-content {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-xl);
  padding: 2.25rem;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ap-navy-3);
}
.ap-content > *:first-child { margin-top: 0; }
.ap-content h2 { font-size: 21px; margin-top: 1.6em; }
.ap-content h3 { font-size: 17px; margin-top: 1.4em; }
.ap-content img { border-radius: var(--ap-r-lg); }
.ap-content blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--ap-emerald);
  background: var(--ap-success-bg);
  border-radius: var(--ap-r-md);
  color: var(--ap-emerald-deep);
  font-weight: 600;
}
.ap-content table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ap-content th, .ap-content td { border: 1px solid var(--ap-border); padding: 10px 13px; }
.ap-content th { background: var(--ap-surface-2); }
.ap-content pre {
  background: var(--ap-navy);
  color: #e2e8f0;
  border-radius: var(--ap-r-lg);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  font-family: var(--ap-mono);
  font-size: 13px;
  direction: ltr;
  text-align: left;
}
.ap-content code { font-family: var(--ap-mono); background: var(--ap-surface-2); border-radius: 4px; padding: 2px 6px; font-size: .9em; direction: ltr; unicode-bidi: embed; }

/* Posts grid */
.ap-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.ap-post-card { overflow: hidden; display: flex; flex-direction: column; }
.ap-post-card__thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--ap-surface-2); }
.ap-post-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ap-post-card__body h3 { font-size: 16.5px; margin: 0; }
.ap-post-card__body h3 a { color: var(--ap-navy); }
.ap-post-card__body h3 a:hover { color: var(--ap-emerald-deep); }
.ap-post-card__meta { font-size: 11.5px; color: var(--ap-muted); font-weight: 600; }
.ap-post-card__excerpt { color: var(--ap-muted); font-size: 13px; margin: 0; flex: 1; }
.ap-post-card__more { font-size: 13px; font-weight: 700; color: var(--ap-emerald-deep); }

/* Pagination */
.ap-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 2.5rem; flex-wrap: wrap; }
.ap-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 12px;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-r-md);
  background: var(--ap-surface);
  color: var(--ap-navy);
  font-size: 13.5px;
  font-weight: 700;
}
.ap-pagination .page-numbers.current { background: var(--ap-navy); border-color: var(--ap-navy); color: #fff; }
.ap-pagination .page-numbers:hover:not(.current) { border-color: var(--ap-border-strong); background: var(--ap-surface-2); }

/* Search form */
.ap-search { display: flex; gap: 8px; }
.ap-search input[type="search"], .ap-search input[type="text"] {
  flex: 1;
  border: 1px solid var(--ap-border-strong);
  border-radius: var(--ap-r-sm);
  padding: 12px 14px;
  font-family: var(--ap-font);
  font-size: 14px;
  background: var(--ap-surface);
  color: var(--ap-text);
  min-height: 44px;
}
.ap-search input:focus { outline: 2px solid var(--ap-navy); outline-offset: 1px; }

/* 404 */
.ap-404 { text-align: center; padding: 6rem 1rem 4rem; }
.ap-404 .code { font-family: var(--ap-mono); font-size: 84px; font-weight: 800; color: var(--ap-navy); letter-spacing: -.03em; }

/* Admin bar spacing safety */
body.admin-bar .ap-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .ap-header { top: 46px; } }

/* Focus visibility */
a:focus-visible, button:focus-visible, .ap-opt:focus-visible {
  outline: 2px solid var(--ap-emerald);
  outline-offset: 2px;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
