/*
 * WolfTech theme add-on stylesheet.
 *
 * assets/css/wolftech-content.css is a byte-identical copy of the static
 * master design (wolftech-styles.css) and is loaded first, so everything in
 * this file only ADDS the classes the WordPress templates introduce. Master
 * primitives (a, .site-header, .announcement, .nav-links, .menu-toggle,
 * .footer, .container, .btn, .services-grid, .service-card, h1, h2 and the
 * master media queries) are intentionally left untouched so the rendered pages
 * match the approved design on every screen size.
 */

:root {
  --wt-ink: #101b31;
  --wt-paper: #f5f7fb;
  --wt-line: #e3e8f1;
  --wt-content: 1160px;
  --wt-primary: #2f68f5;
  --wt-accent: #85e8b6;
}

/* ---------------------------------------------------------------------------
 * Clickable service cards (stretched link)
 *
 * The card already contains exactly one anchor (.service-link). Stretching that
 * anchor over the card makes the whole tile a link without nesting anchors and
 * without adding JavaScript, so the card also works with keyboard and screen
 * readers. Cards without a link keep the plain look.
 * ------------------------------------------------------------------------ */
.service-card.service-card--link {
  position: relative;
  cursor: pointer;
}

.service-card.service-card--link .service-link--card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
}

/* Focus ring has to live on the overlay, not on the small inline link. */
.service-card.service-card--link .service-link--card:focus-visible {
  outline: none;
}

.service-card.service-card--link .service-link--card:focus-visible::after {
  outline: 2px solid var(--wt-primary);
  outline-offset: -3px;
}

/* Hover feedback for the whole tile, driven by the stretched link. */
.service-card.service-card--link:hover,
.service-card.service-card--link:focus-within {
  border-color: rgba(47, 104, 245, 0.4);
  box-shadow: 0 16px 34px rgba(16, 27, 49, 0.09);
}

.service-card.service-card--link .service-link--card:hover span {
  transform: translateX(-3px);
}

/* Uploaded country flag image, matched to the built-in SVG box. */
.flag-card .flag-img {
  display: block;
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------------
 * Footer logo
 *
 * The footer can carry its own logo (light/white version, or a different
 * aspect ratio) while the header keeps its own. Bounded so a large upload can
 * never blow up the footer column: max-height caps the height and
 * max-width keeps it inside the brand block, with the natural ratio intact.
 * ------------------------------------------------------------------------ */
.brand-logo--footer {
  display: block;
  width: auto;
  height: auto;
  max-height: 54px;
  max-width: 220px;
  object-fit: contain;
}

/* -------------------------------------------------------------------------
 * Shared helpers
 * ---------------------------------------------------------------------- */
.wt-container {
  width: min(var(--max, 1160px), calc(100% - 40px));
  margin-inline: auto;
}

.wt-bleed {
  width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Keep the sticky master header clear of the WordPress admin bar. */
.admin-bar .site-header {
  inset-block-start: 32px;
}

/* -------------------------------------------------------------------------
 * Navigation bridge.
 * The master nav is a flat list of <a> children; wp_nav_menu() prints
 * <ul class="nav-links"><li><a>...</a></li></ul>. These rules normalise the
 * list so the WordPress menu looks and behaves exactly like the static one.
 * ---------------------------------------------------------------------- */
.site-nav {
  display: block;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  width: 100%;
}

/* A custom logo can replace the master wolf mark in header and footer. */
.site-header .custom-logo,
.footer .custom-logo {
  width: auto;
  height: 47px;
  max-width: 100%;
  object-fit: contain;
}

/* -------------------------------------------------------------------------
 * Text pages (search, archives, 404, plain posts) keep the master rhythm.
 * ---------------------------------------------------------------------- */
.content-area {
  padding-block: 56px 80px;
}

.entry-header {
  margin-block-end: 24px;
}

.entry-header h1,
.archive-heading h1 {
  margin-block: 0 12px;
}

.archive-heading {
  max-width: 800px;
  margin-block-end: 30px;
}

/* -------------------------------------------------------------------------
 * Pagination. wp_posts_pagination() reuses the reserved .nav-links hook that
 * the master owns, so the theme renders paginate_links() inside
 * .wt-pagination instead of touching the header navigation styles.
 * ---------------------------------------------------------------------- */
.navigation.pagination,
.wt-pagination {
  margin-block-start: 32px;
}

.navigation.pagination .nav-links,
.wt-pagination-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: #2e65b6;
  background: var(--blue);
  color: #fff;
}

/* -------------------------------------------------------------------------
 * Search form.
 * ---------------------------------------------------------------------- */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 18px 0;
}

.search-field {
  flex: 1 1 240px;
  min-height: 49px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
 * Legacy class aliases kept for already-imported content.
 * ---------------------------------------------------------------------- */
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid var(--blue);
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.button-outline {
  border-color: #d7deeb;
  background: #fff;
  color: var(--ink);
}

.button-outline:hover {
  border-color: #aebbd1;
  background: #fff;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
 * Responsive parity for the theme-only helpers, using the master breakpoints
 * (1020px / 820px / 540px / 360px).
 * ---------------------------------------------------------------------- */
@media (max-width: 820px) {
  .wt-container {
    width: min(var(--max, 1160px), calc(100% - 32px));
  }

  /* The master collapses the navigation into a fixed panel at 820px. Mirror
     the master's last-child border reset for the WordPress <li> wrapper. */
  .nav-links > li:last-child > a {
    border-bottom: 0;
  }

  /* WordPress admin bar is 32px tall above 782px. */
  .admin-bar .nav-links {
    top: 138px;
  }
}

@media (max-width: 782px) {
  /* WordPress admin bar grows to 46px on phones. */
  .admin-bar .site-header {
    inset-block-start: 46px;
  }

  .admin-bar .nav-links {
    top: 152px;
  }
}

@media (max-width: 540px) {
  .wt-container {
    width: calc(100% - 28px);
  }

  .content-area {
    padding-block: 38px 56px;
  }

  .admin-bar .nav-links {
    top: 145px;
  }
}

/* -------------------------------------------------------------------------
 * Header action cluster.
 * The WhatsApp CTA, the (moved) language switch and the menu toggle are
 * wrapped in .nav-actions so they sit together on the trailing edge of the
 * .nav flex row (which uses justify-content: space-between). This keeps the
 * primary nav centred and — crucially — puts the language switch right beside
 * the WhatsApp button instead of letting space-between push them apart.
 * ---------------------------------------------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
 * Header language switch.
 * The announcement bar owns the master language switch but is not sticky,
 * so it scrolls out of view. theme.js physically MOVES the real .language-switch
 * node into the sticky header (.nav-language, next to the WhatsApp CTA) once
 * the page is scrolled past the announcement bar, and back again at the top —
 * so it is literally the same button. The master palette is tuned for the dark
 * bar (white text on a translucent mint gradient); here it keeps that mint-pill
 * identity but is re-tinted for the light header surface so it stays readable.
 * ---------------------------------------------------------------------- */
.nav-language {
  display: none;
  flex-shrink: 0;
  align-items: center;
}

.site-header.is-scrolled .nav-language {
  display: inline-flex;
}

/* Same mint pill as the top bar, adapted for the light header: solid mint
   tint with dark ink text so it reads on white, keeping the globe icon,
   label, code chip and arrow. */
.site-header .nav-language .language-switch {
  color: var(--ink, #101b31);
  border-color: rgba(133, 232, 182, 0.85);
  background: linear-gradient(135deg, rgba(133, 232, 182, 0.30), rgba(133, 232, 182, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 3px 12px rgba(16, 27, 49, 0.08);
}

.site-header .nav-language .language-switch:hover {
  color: var(--ink, #101b31);
  border-color: rgba(133, 232, 182, 1);
  background: linear-gradient(135deg, rgba(133, 232, 182, 0.45), rgba(133, 232, 182, 0.2));
  box-shadow: 0 5px 15px rgba(16, 27, 49, 0.14);
  transform: translateY(-1px);
}

.site-header .nav-language .language-switch-icon {
  /* Force display so the master's bar-only hiding (≤360px) can't empty the
     header pill; this selector's specificity already wins. */
  display: inline-grid;
  background: rgba(133, 232, 182, 0.28);
  color: var(--ink, #101b31);
}

.site-header .nav-language .language-switch-code {
  display: inline-grid;
  border-color: rgba(16, 27, 49, 0.14);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink, #101b31);
}

/* Keep the header copy compact on small phones so it fits beside the CTA. */
@media (max-width: 540px) {
  .site-header .nav-language .language-switch {
    min-height: 38px;
    gap: 5px;
    padding: 6px 9px;
  }

  .site-header .nav-language .language-switch-label {
    display: none;
  }
}

/* -------------------------------------------------------------------------
 * WooCommerce storefront.
 * The store is rendered by WooCommerce's own templates, which ship their own
 * stylesheet; these rules only bring the visible pieces in line with the
 * master palette (breadcrumb, product card, price, buy button) and never
 * override WooCommerce layout rules that the design does not re-declare.
 * ---------------------------------------------------------------------- */
.wt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-block: 0 22px;
  font-size: 0.88rem;
  color: #5a6b8c;
}

.wt-breadcrumb a {
  color: #2e65b6;
  text-decoration: none;
}

.wt-breadcrumb a:hover,
.wt-breadcrumb a:focus {
  text-decoration: underline;
}

.wt-breadcrumb-sep {
  color: #9aa8c2;
}

/* Product cards: a light surface so the grid reads as a catalogue. */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 18px;
  background: #fff;
  border: 1px solid var(--wt-line);
  border-radius: 16px;
  text-align: center;
}

.woocommerce ul.products li.product img {
  border-radius: 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin-block: 12px 6px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--wt-ink);
}

.woocommerce ul.products li.product .price {
  margin-block: 0 12px;
  color: var(--wt-ink);
  font-weight: 700;
}

.woocommerce ul.products li.product .price del {
  color: #8c98b1;
  font-weight: 400;
  margin-inline-end: 6px;
}

.woocommerce ul.products li.product .price ins {
  color: #0f8f5f;
  text-decoration: none;
}

/* Buy buttons follow the master CTA instead of WooCommerce's default blue. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  margin-block-start: auto;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--wt-primary);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: #1f54d6;
  color: #fff;
}

.woocommerce span.onsale {
  border-radius: 999px;
  background: var(--wt-accent);
  color: #08351f;
  font-weight: 700;
  min-height: 0;
  padding: 4px 12px;
  line-height: 1.6;
}

/* Single product: consistent headings, prices and spacing. */
.woocommerce div.product .product_title {
  margin-block-end: 10px;
  color: var(--wt-ink);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--wt-ink);
  font-size: 1.5rem;
  font-weight: 700;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  color: #0f8f5f;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 600;
}

.woocommerce .quantity .qty {
  padding: 9px 12px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
}

/* Archive description (category intros) reads like the rest of the site. */
.woocommerce-products-header,
.term-description {
  max-width: 820px;
  margin-block-end: 26px;
  color: #44536e;
}

@media (max-width: 540px) {
  .woocommerce ul.products li.product {
    padding: 12px 12px 16px;
  }

  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 1.3rem;
  }
}

/* -------------------------------------------------------------------------
 * Site identity: uploaded logo (Appearance → إعدادات WolfTech).
 * The image replaces the built-in wolf mark inside the existing .brand link,
 * so it inherits the header/footer rhythm without a second anchor.
 * ---------------------------------------------------------------------- */
.brand-logo {
  display: block;
  width: auto;
  height: 47px;
  max-width: 240px;
  object-fit: contain;
}

.footer .brand-logo {
  height: 52px;
  max-width: 260px;
}

/* A lockup logo that already contains "WolfTech" hides the text beside it. */
.brand--logo-only .brand-copy {
  display: none;
}

@media (max-width: 540px) {
  .brand-logo {
    height: 41px;
    max-width: 190px;
  }

  .footer .brand-logo {
    height: 44px;
    max-width: 210px;
  }
}

/* -------------------------------------------------------------------------
 * Repair counters band (front page, right under the dark .assurance strip).
 *
 * Numbers, labels, optional "+" suffix, icons, row count and the visual preset
 * are all editable from Appearance → إعدادات WolfTech. The markup never changes
 * between presets — every design only re-declares the tokens below — so adding
 * or removing a counter keeps working in all twelve styles.
 * ---------------------------------------------------------------------- */
.wt-stats {
  --wt-stat-accent: var(--wt-primary, #2f68f5);
  --wt-stat-accent-2: var(--wt-accent, #85e8b6);
  --wt-stat-surface: #fff;
  --wt-stat-border: var(--wt-line, #e3e8f1);
  --wt-stat-radius: 20px;
  --wt-stat-pad: 22px 16px 20px;
  --wt-stat-shadow: 0 10px 30px rgba(16, 27, 49, 0.05);
  --wt-stat-number-color: var(--wt-ink, #101b31);
  --wt-stat-label-color: var(--muted, #63718a);
  --wt-stat-icon-bg: var(--soft-blue, #edf3ff);
  --wt-stat-icon-color: var(--wt-primary, #2f68f5);
  --wt-stat-title-color: var(--wt-ink, #101b31);
  --wt-stat-gap: 16px;
  position: relative;
  padding-block: 34px 46px;
  background: linear-gradient(180deg, #fff 0%, var(--wt-paper, #f5f7fb) 100%);
  border-block-end: 1px solid var(--wt-line, #e3e8f1);
}

.wt-stats-grid {
  /* auto-fit keeps four counters on one row on desktop and folds to two and
     then one on small screens without knowing the count in advance. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--wt-stat-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wt-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--wt-stat-pad);
  border: 1px solid var(--wt-stat-border);
  border-radius: var(--wt-stat-radius);
  background: var(--wt-stat-surface);
  box-shadow: var(--wt-stat-shadow);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.wt-stat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--wt-stat-icon-bg);
  color: var(--wt-stat-icon-color);
}

.wt-stat-icon svg {
  width: 24px;
  height: 24px;
}

.wt-stat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wt-stat-number {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.wt-stat-value {
  color: var(--wt-stat-number-color);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.wt-stat-suffix {
  color: var(--wt-stat-accent);
  font-size: 0.9em;
  font-weight: 800;
  line-height: 1;
}

.wt-stat-label {
  color: var(--wt-stat-label-color);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Optional section title (Appearance → إعدادات WolfTech → عنوان القسم).
   The colour follows the preset through --wt-stat-title-color, so it stays
   readable on the light and the dark bands alike. */
.wt-stats-head {
  margin-block-end: 26px;
  text-align: center;
}

.wt-stats-title {
  margin: 0;
  color: var(--wt-stat-title-color);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.wt-stats-title::after {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wt-stat-accent), var(--wt-stat-accent-2));
}

/* ── 1. cards · كروت بيضاء (الافتراضي) ─────────────────────────────────── */
.wt-stats--cards .wt-stat::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 24%;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--wt-stat-accent), var(--wt-stat-accent-2));
  opacity: 0.85;
}

.wt-stats--cards .wt-stat:hover {
  border-color: rgba(47, 104, 245, 0.28);
  box-shadow: 0 18px 40px rgba(16, 27, 49, 0.1);
  transform: translateY(-4px);
}

/* ── 2. minimal · خطوط فاصلة ───────────────────────────────────────────── */
.wt-stats--minimal {
  background: #fff;
}

.wt-stats--minimal .wt-stats-grid {
  gap: 0;
}

/* Fixed contrast for section-overline (was 4.43:1, now 4.5:1+ on #f5f7fb) */
.section-overline {
  color: #2e65b6;
}
.wt-stats--minimal .wt-stat {
  padding: 6px 14px;
  border: 0;
  border-inline-start: 1px solid var(--wt-stat-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wt-stats--minimal .wt-stat:first-child {
  border-inline-start: 0;
}

.wt-stats--minimal .wt-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  color: var(--wt-stat-accent);
}

.wt-stats--minimal .wt-stat-icon svg {
  width: 20px;
  height: 20px;
}

.wt-stats--minimal .wt-stat-value {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.wt-stats--minimal .wt-stat-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.wt-stats--minimal .wt-stat:hover {
  background: #f8faff;
  transform: none;
}

/* ── 3. glass · زجاجي مضيء ─────────────────────────────────────────────── */
.wt-stats--glass {
  --wt-stat-surface: rgba(255, 255, 255, 0.12);
  --wt-stat-border: rgba(255, 255, 255, 0.26);
  --wt-stat-number-color: #fff;
  --wt-stat-label-color: #dbe5fb;
  --wt-stat-icon-bg: rgba(255, 255, 255, 0.18);
  --wt-stat-icon-color: #eef4ff;
  --wt-stat-shadow: 0 18px 40px rgba(6, 14, 30, 0.28);
  overflow: hidden;
  padding-block: 44px 52px;
  background: linear-gradient(135deg, #101b31 0%, #1d3a7a 48%, #2f68f5 100%);
  border-block-end: 0;
}

.wt-stats--glass::before,
.wt-stats--glass::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.wt-stats--glass::before {
  inset-block-start: -150px;
  inset-inline-start: -60px;
  background: #85e8b6;
}

.wt-stats--glass::after {
  inset-block-end: -170px;
  inset-inline-end: -40px;
  background: #7aa2ff;
}

.wt-stats--glass .container {
  position: relative;
  z-index: 1;
}

.wt-stats--glass .wt-stat {
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.wt-stats--glass .wt-stat:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.wt-stats--glass .wt-stat-suffix {
  color: var(--wt-stat-accent-2);
}

/* ── 4. dark · داكن أنيق ───────────────────────────────────────────────── */
.wt-stats--dark {
  --wt-stat-surface: rgba(255, 255, 255, 0.045);
  --wt-stat-border: rgba(255, 255, 255, 0.12);
  --wt-stat-number-color: #fff;
  --wt-stat-label-color: #9fb0cd;
  --wt-stat-icon-bg: rgba(133, 232, 182, 0.14);
  --wt-stat-icon-color: #85e8b6;
  --wt-stat-shadow: none;
  padding-block: 44px 52px;
  background: radial-gradient(circle at 12% 18%, rgba(47, 104, 245, 0.28), transparent 55%), #0c1526;
  border-block-end: 0;
}

.wt-stats--dark .wt-stat-value {
  text-shadow: 0 0 26px rgba(133, 232, 182, 0.25);
}

.wt-stats--dark .wt-stat-suffix {
  color: var(--wt-stat-accent-2);
}

.wt-stats--dark .wt-stat:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(133, 232, 182, 0.4);
  transform: translateY(-4px);
}

/* ── 5. gradient · تدرجات ملوّنة ───────────────────────────────────────── */
.wt-stats--gradient {
  --wt-stat-number-color: #fff;
  --wt-stat-label-color: rgba(255, 255, 255, 0.9);
  --wt-stat-icon-bg: rgba(255, 255, 255, 0.2);
  --wt-stat-icon-color: #fff;
  --wt-stat-shadow: 0 18px 34px rgba(6, 14, 30, 0.28);
  background: #0b1220;
  border-block-end: 0;
}

.wt-stats--gradient .wt-stat {
  border: 0;
}

.wt-stats--gradient .wt-stat:nth-child(4n + 1) {
  background: linear-gradient(140deg, #2f68f5, #5b8bff);
}

.wt-stats--gradient .wt-stat:nth-child(4n + 2) {
  background: linear-gradient(140deg, #0d8a67, #35c295);
}

.wt-stats--gradient .wt-stat:nth-child(4n + 3) {
  background: linear-gradient(140deg, #4b32c3, #7c5cf5);
}

.wt-stats--gradient .wt-stat:nth-child(4n + 4) {
  background: linear-gradient(140deg, #d97706, #f5a524);
}

.wt-stats--gradient .wt-stat-suffix {
  color: rgba(255, 255, 255, 0.9);
}

.wt-stats--gradient .wt-stat:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 44px rgba(6, 14, 30, 0.35);
}

/* ── 6. outline · إطار مفرّغ ───────────────────────────────────────────── */
.wt-stats--outline {
  background: #fff;
}

.wt-stats--outline .wt-stat {
  border: 2px solid rgba(16, 27, 49, 0.12);
  background: transparent;
  box-shadow: none;
}

.wt-stats--outline .wt-stat-icon {
  border: 1px solid rgba(47, 104, 245, 0.25);
  background: transparent;
}

.wt-stats--outline .wt-stat:hover {
  border-color: var(--wt-stat-accent);
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 60px rgba(47, 104, 245, 0.05);
}

/* ── 7. ribbon · شريط أفقي واحد ────────────────────────────────────────── */
.wt-stats--ribbon .wt-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 18px 10px;
  border: 1px solid var(--wt-stat-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(16, 27, 49, 0.06);
}

.wt-stats--ribbon .wt-stat {
  flex: 1 1 170px;
  min-width: 0;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px;
  border: 0;
  border-inline-start: 1px solid var(--wt-stat-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: start;
}

.wt-stats--ribbon .wt-stat:first-child {
  border-inline-start: 0;
}

.wt-stats--ribbon .wt-stat-body {
  gap: 2px;
}

.wt-stats--ribbon .wt-stat-number {
  justify-content: flex-start;
}

.wt-stats--ribbon .wt-stat-value {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.wt-stats--ribbon .wt-stat-label {
  font-size: 0.82rem;
}

.wt-stats--ribbon .wt-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.wt-stats--ribbon .wt-stat:hover {
  background: rgba(47, 104, 245, 0.04);
}

@media (max-width: 780px) {
  .wt-stats--ribbon .wt-stats-grid {
    flex-wrap: wrap;
    padding: 10px;
  }

  .wt-stats--ribbon .wt-stat {
    flex: 1 1 50%;
    padding: 12px 10px;
    border-inline-start: 0;
    border-block-start: 1px solid var(--wt-stat-border);
  }

  .wt-stats--ribbon .wt-stat:nth-child(-n + 2) {
    border-block-start: 0;
  }
}

@media (max-width: 460px) {
  .wt-stats--ribbon .wt-stat {
    flex-basis: 100%;
  }

  .wt-stats--ribbon .wt-stat:nth-child(2) {
    border-block-start: 1px solid var(--wt-stat-border);
  }
}

/* ── 8. ring · دوائر متدرّجة ───────────────────────────────────────────── */
.wt-stats--ring {
  background: radial-gradient(circle at 50% -20%, #eaf1ff, #fff 62%);
  border-block-end: 0;
}

.wt-stats--ring .wt-stat {
  padding: 8px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wt-stats--ring .wt-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: var(--wt-stat-accent);
}

.wt-stats--ring .wt-stat-icon svg {
  width: 22px;
  height: 22px;
}

.wt-stats--ring .wt-stat-body {
  gap: 18px;
}

.wt-stats--ring .wt-stat-number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--wt-stat-border), 0 12px 28px rgba(16, 27, 49, 0.08);
}

.wt-stats--ring .wt-stat-number::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--wt-stat-accent), var(--wt-stat-accent-2), var(--wt-stat-accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  transition: transform 0.5s ease;
}

.wt-stats--ring .wt-stat-value {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.wt-stats--ring .wt-stat:hover .wt-stat-number::before {
  transform: rotate(28deg);
}

.wt-stats--ring .wt-stat:hover {
  transform: translateY(-3px);
}

@media (max-width: 540px) {
  .wt-stats--ring .wt-stat-number {
    width: 96px;
    height: 96px;
  }

  .wt-stats--ring .wt-stat-value {
    font-size: 1.2rem;
  }
}

/* ── 9. badge · أيقونة بارزة ───────────────────────────────────────────── */
.wt-stats--badge {
  background: linear-gradient(180deg, var(--wt-paper, #f5f7fb) 0%, #fff 72%);
}

.wt-stats--badge .wt-stats-grid {
  padding-block-start: 26px;
}

.wt-stats--badge .wt-stat {
  gap: 12px;
  padding-block-start: 30px;
}

.wt-stats--badge .wt-stat-icon {
  position: absolute;
  inset-block-start: -23px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--wt-stat-accent), #6f96ff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 104, 245, 0.32);
  transition: transform 0.3s ease;
}

.wt-stats--badge .wt-stat:hover {
  border-color: rgba(47, 104, 245, 0.3);
  transform: translateY(-4px);
}

.wt-stats--badge .wt-stat:hover .wt-stat-icon {
  transform: translateX(-50%) rotate(-8deg) scale(1.06);
}

/* ── 10. spotlight · بقعة ضوء ──────────────────────────────────────────── */
.wt-stats--spotlight {
  --wt-stat-number-color: #fff;
  --wt-stat-label-color: #9db0d0;
  --wt-stat-icon-bg: rgba(47, 104, 245, 0.18);
  --wt-stat-icon-color: #9fc0ff;
  --wt-stat-border: rgba(122, 162, 255, 0.18);
  --wt-stat-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #070d18;
  border-block-end: 0;
}

.wt-stats--spotlight .wt-stat {
  background: radial-gradient(circle at 50% 0%, rgba(47, 104, 245, 0.42), rgba(9, 15, 28, 0.96) 62%);
}

.wt-stats--spotlight .wt-stat::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(133, 232, 182, 0.9), transparent);
}

.wt-stats--spotlight .wt-stat-value {
  text-shadow: 0 0 30px rgba(47, 104, 245, 0.85);
}

.wt-stats--spotlight .wt-stat-suffix {
  color: var(--wt-stat-accent-2);
}

.wt-stats--spotlight .wt-stat:hover {
  border-color: rgba(133, 232, 182, 0.45);
  transform: translateY(-4px);
}

/* ── 11. blueprint · مخطط هندسي ────────────────────────────────────────── */
.wt-stats--blueprint {
  background-color: #f7f9ff;
  background-image:
    linear-gradient(rgba(47, 104, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 104, 245, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  border-block-end: 0;
}

.wt-stats--blueprint .wt-stat {
  border: 1px dashed rgba(47, 104, 245, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.wt-stats--blueprint .wt-stat-icon {
  border: 1px dashed rgba(47, 104, 245, 0.45);
  border-radius: 6px;
  background: rgba(47, 104, 245, 0.08);
}

.wt-stats--blueprint .wt-stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(16, 27, 49, 0.58);
}

.wt-stats--blueprint .wt-stat:hover {
  border-style: solid;
  border-color: var(--wt-stat-accent);
  background: #fff;
  transform: translateY(-3px);
}

/* ── 12. tilt · حواف ملوّنة ────────────────────────────────────────────── */
.wt-stats--tilt {
  background: #fff;
}

.wt-stats--tilt .wt-stat {
  align-items: flex-start;
  padding-inline-start: 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 27, 49, 0.07);
  text-align: start;
}

.wt-stats--tilt .wt-stat::before {
  content: "";
  position: absolute;
  inset-block: 16px;
  inset-inline-start: 0;
  width: 5px;
  border-radius: 999px;
  background: var(--wt-stat-accent);
}

.wt-stats--tilt .wt-stat:nth-child(2)::before {
  background: #0f9f74;
}

.wt-stats--tilt .wt-stat:nth-child(3)::before {
  background: #7c5cf5;
}

.wt-stats--tilt .wt-stat:nth-child(4)::before {
  background: #f5a524;
}

.wt-stats--tilt .wt-stat:nth-child(5)::before {
  background: #e5484d;
}

.wt-stats--tilt .wt-stat:nth-child(6)::before {
  background: #0ea5e9;
}

.wt-stats--tilt .wt-stat-body {
  width: 100%;
}

.wt-stats--tilt .wt-stat-number {
  justify-content: flex-start;
}

.wt-stats--tilt .wt-stat-icon {
  background: rgba(47, 104, 245, 0.1);
  color: var(--wt-stat-accent);
}

.wt-stats--tilt .wt-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16, 27, 49, 0.12);
}

/* Section title: presets that sit on a dark band need a light heading, and the
   start-aligned tilt preset aligns its heading with the cards. */
.wt-stats--glass,
.wt-stats--dark,
.wt-stats--gradient,
.wt-stats--spotlight {
  --wt-stat-title-color: #fff;
}

.wt-stats--minimal .wt-stats-title {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
}

.wt-stats--tilt .wt-stats-head {
  text-align: start;
}

.wt-stats--tilt .wt-stats-title::after {
  margin-inline: 0 auto;
}

@media (max-width: 820px) {
  .wt-stats {
    padding-block: 26px 34px;
  }

  .wt-stats-grid {
    gap: 12px;
  }

  .wt-stat {
    padding: 18px 12px 16px;
    border-radius: 16px;
  }

  .wt-stats--glass,
  .wt-stats--dark {
    padding-block: 30px 38px;
  }
}

@media (max-width: 540px) {
  .wt-stats {
    padding-block: 22px 28px;
  }

  .wt-stats-head {
    margin-block-end: 18px;
  }

  .wt-stats-title {
    font-size: 1.2rem;
  }

  .wt-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .wt-stat-icon svg {
    width: 21px;
    height: 21px;
  }

  .wt-stat-value {
    font-size: 1.55rem;
  }

  .wt-stat-label {
    font-size: 0.82rem;
  }

  .wt-stats--minimal .wt-stats-grid {
    gap: 8px;
  }

  .wt-stats--minimal .wt-stat {
    border-inline-start: 0;
    border-block-start: 1px solid var(--wt-stat-border);
  }

  .wt-stats--minimal .wt-stat:first-child {
    border-block-start: 0;
  }
}


