/* Site-wide data loading veil: content stays underneath and becomes visible only after the first paint is ready. */
.app-loading {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.15rem;
  color: #111; background: #fff; transition: opacity .35s var(--ease-out), visibility .35s;
}
/* v61: the full brand loader plays once per browser session; later pages open straight away */
html.vf-no-loader .app-loading { display: none; }
/* v61: Font Awesome loads without blocking paint: hold each icon's box so nothing jumps when it arrives */
html:not(.icons-ready) :is(.fa-solid, .fa-regular, .fa-brands, .fas, .far, .fab) { display: inline-block; width: 1em; height: 1em; }
.app-loading.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.app-loading__orb {
  width: clamp(8rem, 12vw, 10rem); height: clamp(8rem, 12vw, 10rem);
  display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 7px #fff, 0 0 0 9px #d9e0ea, 0 18px 42px rgba(11,52,132,.16);
}
.app-loading__logo { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
/* v41: «مهر میراث جاویدان» uses the same navy as the loader logo's background (loader-miras.svg → #002973) */
.app-loading strong { font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 850; letter-spacing: -.02em; color: #002973; }
@media (prefers-reduced-motion: reduce) { .app-loading { transition: none; } }
/* ============================================================
   وقفی نو DESIGN SYSTEM — COMPONENTS
   Extracted verbatim from the approved homepage template
   + new shared components built on the SAME tokens.
   ============================================================ */

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.65rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  transition: background .3s var(--ease-out), border-color .3s, color .3s, transform .3s var(--ease-out), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(21, 101, 216, .55);
}
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(21, 101, 216, .65); }
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn--primary:hover::after { transform: translateX(100%); }
.btn--ghost {
  border: 1.5px solid var(--brand-100);
  color: var(--brand-700);
  background: var(--card-bg);
}
.btn--ghost:hover { border-color: var(--brand-500); background: var(--brand-050); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), #F6B024);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(246, 176, 36, .5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(246, 176, 36, .65); }
.btn--outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--outline-gold:hover { background: var(--gold); color: #0b1626; }
.btn--danger {
  background: var(--danger);
  color: #fff;
}
.btn--danger:hover { filter: brightness(.94); transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.25rem; font-size: .845rem; }
.btn--lg { padding: .9rem 2rem; font-size: 1rem; }

/* Brand loading state */
.loading-logo {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  display: inline-block;
  vertical-align: -.35em;
  flex: 0 0 auto;
}
.btn.is-loading .loading-logo,
.form-submit.is-loading .loading-logo { animation: loading-logo-pulse 1.6s ease-in-out infinite; }
@keyframes loading-logo-pulse {
  0%, 100% { transform: scale(.92); opacity: .8; }
  50% { transform: scale(1); opacity: 1; }
}
.btn--block { width: 100%; }
.btn--white { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.btn--white:hover { background: #f2f6fd; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.btn--white-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .65); }
.btn--white-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }
html[data-theme="dark"] .btn--white { color: var(--brand-700); }

.form-submit {
  width: 100%;
  padding: .875rem;
  font-size: 1rem;
  margin-top: .5rem;
}
.form-submit.is-loading,
.btn.is-loading { opacity: .85; pointer-events: none; cursor: progress; }
/* the spinner replaces the button icon while the form is being sent */
.btn.is-loading > i { display: none; }
/* .btn--primary::after is the absolutely-positioned hover shine; the spinner used to inherit
   position:absolute + inset:0 + background from it and showed up as a broken, off-centre blob */
.btn.is-loading::after,
.form-submit.is-loading::after {
  content: '';
  position: static;
  inset: auto;
  display: inline-block;
  flex: 0 0 auto;
  order: -1;
  width: 1.05rem;
  height: 1.05rem;
  background: none;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: .9;
  transform: none;
  transition: none;
  animation: spin .7s linear infinite !important;
  animation-duration: .7s !important;
  animation-iteration-count: infinite !important;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Notice Bar ===== */
.notice-bar {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: #dce9fb;
  font-size: .8125rem;
  text-align: center;
  padding: .5rem 2.75rem;
  position: relative;
  overflow: hidden;
}
.notice-bar a { color: #fff; font-weight: 600; text-decoration: underline; }
.notice-bar__close {
  position: absolute;
  inset-inline-start: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9db9de;
  font-size: .95rem;
  padding: .25rem;
}
.notice-bar__close:hover { color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav-wrap {
  display: flex;
  flex-direction: row; /* RTL: logo on the right, menu next to it, actions on the left */
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: .4rem;
}

.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand__mark {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 101, 216, .3);
}
.brand__name { font-size: 1.25rem; font-weight: 800; }
.brand__tag { display: block; font-size: .6875rem; font-weight: 400; color: var(--ink-soft); margin-top: -.35rem; }

.main-nav { min-width: 0; flex: 1 1 auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .15rem; row-gap: .3rem; justify-content: flex-start; } /* flex-start = right in RTL */
.main-nav a {
  display: block;
  padding: .5rem .85rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color .25s, background .25s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .3s var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--brand-600); background: var(--brand-050); }
.main-nav a.is-active::after { transform: scaleX(1); }

/* Keep the training link visually separate from the theme toggle. On narrower desktop widths
   the nav is allowed to shrink, so this boundary prevents the last label touching the button. */
.main-nav__training { margin-inline-end: .55rem; }
.main-nav__training a { padding-inline-end: .85rem; }
@media (min-width: 64em) and (max-width: 90em) {
  .site-header .container { max-width: 100%; padding-inline: 1rem; }
  .main-nav a { padding-inline: .45rem; font-size: .82rem; }
  .main-nav__training { margin-inline-end: .75rem; }
}

.header-cta { display: inline-flex; flex-shrink: 0; }
.header-auth { display: inline-flex; flex-shrink: 0; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Keep the two primary mobile actions visually adjacent at the bottom of the drawer. */
.mobile-nav__auth { margin-top: auto; }
.mobile-nav__cta { margin-top: .35rem; }

.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.theme-toggle:hover { background: var(--brand-100); transform: rotate(15deg); }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: block; color: #F6B024; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(to left, var(--brand-500), var(--brand-700));
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
  box-shadow: 0 0 10px rgba(21, 101, 216, .4);
}

/* ===== Mobile Nav ===== */
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 1.125rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 45, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
  z-index: 950;
}
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(20rem, 85vw);
  background: var(--card-bg);
  z-index: 960;
  padding: 1.75rem 1.5rem;
  transform: translateX(-105%);
  transition: transform .45s var(--ease-out);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }
body.nav-open { overflow: hidden; }

.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.mobile-nav__close { font-size: 1.25rem; color: var(--ink-soft); padding: .35rem; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav ul a {
  display: block;
  padding: .75rem .85rem;
  border-radius: 10px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .4s ease, transform .4s var(--ease-out), background .25s, color .25s;
}
body.nav-open .mobile-nav ul a { opacity: 1; transform: none; }
body.nav-open .mobile-nav ul li:nth-child(2) a { transition-delay: .05s; }
body.nav-open .mobile-nav ul li:nth-child(3) a { transition-delay: .09s; }
body.nav-open .mobile-nav ul li:nth-child(4) a { transition-delay: .14s; }
body.nav-open .mobile-nav ul li:nth-child(5) a { transition-delay: .18s; }
body.nav-open .mobile-nav ul li:nth-child(6) a { transition-delay: .22s; }
body.nav-open .mobile-nav ul li:nth-child(7) a { transition-delay: .26s; }
body.nav-open .mobile-nav ul li:nth-child(8) a { transition-delay: .30s; }
.mobile-nav ul a:hover { background: var(--brand-050); color: var(--brand-700); }
.mobile-nav .btn { margin-top: auto; }

/* ===== Page Hero (internal pages) ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(2.75rem, 6vw, 3.75rem);
  text-align: center;
}
.page-hero .breadcrumb { margin-bottom: 1.6rem; }
.page-hero__title { font-size: clamp(1.75rem, 4.4vw, 2.5rem); font-weight: 800; line-height: 1.45; margin-bottom: .75rem; }
.page-hero__desc { color: var(--ink-soft); font-size: .97rem; max-width: 34rem; margin-inline: auto; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; justify-content: center; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.breadcrumb li:not(:last-child)::after { content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .65rem; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); transition: color .25s; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb li[aria-current="page"] { color: var(--brand-600); font-weight: 700; }
.breadcrumb--right { justify-content: flex-start; }

/* ===== Search Bar ===== */
.search-bar { display: flex; gap: .6rem; max-width: 34rem; margin: 0 auto 2.1rem; position: relative; }
.search-bar__icon { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: .9rem; pointer-events: none; z-index: 2; }
.search-bar .input { padding-inline-start: 2.75rem; flex: 1; }
.search-bar .btn { flex-shrink: 0; }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select,
.input,
.select,
.textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(21, 101, 216, .1);
  outline: none;
}
.form-group textarea, .textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; gap: 1rem; }
.form-group.is-invalid input,
.form-group.is-invalid textarea,
.form-group.is-invalid select { border-color: var(--danger); }
.form-error { display: none; color: var(--danger); font-size: .75rem; font-weight: 600; margin-top: .35rem; }
.form-group.is-invalid .form-error { display: block; }
.form-hint { color: var(--ink-muted); font-size: .75rem; margin-top: .35rem; }
.input--with-icon { padding-inline-start: 2.75rem; }
.input-wrap { position: relative; }
.input-wrap > i.suffix { position: absolute; inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; font-size: .85rem; }

.password-wrap { position: relative; }
/* Physical sides on purpose: the field may be dir="ltr" inside an RTL page, so logical
   (inline-end) values would put the padding and the eye icon on opposite sides. */
.password-wrap input,
.password-wrap .input { padding-left: 3rem !important; }
.password-toggle {
  position: absolute;
  left: .6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: .95rem;
  padding: .35rem;
  border-radius: 8px;
}
.password-toggle:hover { color: var(--brand-600); }

.checkbox, .radio { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .85rem; color: var(--ink-soft); }
.checkbox input, .radio input { width: 1.05rem; height: 1.05rem; margin-top: .3rem; accent-color: var(--brand-600); flex-shrink: 0; cursor: pointer; }
.checkbox a, .radio a { color: var(--brand-600); font-weight: 600; }

/* ===== Filter Bar ===== */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 2.1rem; }
.filter-btn {
  padding: .48rem 1.3rem;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.filter-btn:hover { color: var(--brand-600); border-color: var(--brand-100); }
.filter-btn.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(21, 101, 216, .55);
}
.filter-bar--start { justify-content: flex-start; }

.search-box { position: relative; max-width: 26rem; margin: 0 auto 1.4rem; }
.search-box .input { padding-inline-start: 2.7rem; border-radius: 100px; }
.search-box > i { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: .85rem; pointer-events: none; }

/* ===== Cards (generic) ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__body { padding: 1.375rem 1.375rem 1.625rem; }
.card__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; transition: color .3s; }
.card:hover .card__title { color: var(--brand-600); }
.card__desc { color: var(--ink-soft); font-size: .845rem; margin-bottom: 1.125rem; }

.product-card.is-hidden,
.news-card.is-hidden,
.investment-card.is-hidden,
.media-card.is-hidden,
.gallery-card.is-hidden,
.service-card.is-hidden { display: none; }
@keyframes card-pop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: none; }
}
.product-card.is-popping,
.news-card.is-popping,
.investment-card.is-popping,
.media-card.is-popping,
.gallery-card.is-popping,
.service-card.is-popping { animation: card-pop .5s var(--ease-out) both; }

/* ===== Products Grid ===== */
.products-grid { display: grid; gap: 1.5rem; }
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
  transform-style: preserve-3d;
  perspective: 850px;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
}
.product-card__media {
  position: relative;
  height: 9.375rem;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand-050), var(--surface-soft));
  overflow: hidden;
}
.product-card:nth-child(even) .product-card__media { background: linear-gradient(215deg, var(--brand-050), var(--surface-soft) 70%); }
.product-card__media::before {
  content: '';
  position: absolute;
  width: 11.875rem;
  height: 11.875rem;
  border-radius: 50%;
  border: 1.5px dashed var(--brand-100);
  transition: transform .5s var(--ease-out);
}
.product-card:hover .product-card__media::before { transform: rotate(40deg) scale(1.15); }
.product-card__media i {
  position: relative;
  font-size: 2.75rem;
  color: var(--brand-600);
  transition: transform .35s var(--ease-snappy), color .35s;
}
.product-card:hover .product-card__media i { transform: scale(1.14); color: var(--brand-700); }
.product-card__body { padding: 1.375rem 1.375rem 1.625rem; }
.product-card__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; transition: color .3s; }
.product-card:hover .product-card__title { color: var(--brand-600); }
.product-card__desc { color: var(--ink-soft); font-size: .845rem; margin-bottom: 1.125rem; }
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--brand-600);
  font-size: .875rem;
  font-weight: 600;
}
.product-card__link i { transition: transform .3s var(--ease-out); font-size: .75rem; }
.product-card__link:hover i { transform: translateX(-5px); }
/* v23: «ورود به سامانه» next to «اطلاعات بیشتر» */
.product-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.product-card__login { padding: .5rem 1rem; font-size: .8rem; gap: .4rem; }

/* ===== Stats ===== */
.stats {
  background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: .5;
}
.stats-grid { position: relative; display: grid; gap: 2rem; text-align: center; }
.stat-card__value { font-size: clamp(1.9rem, 4.6vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.stat-card__value span { font-size: .6em; }
.stat-card__label { color: #c8dcf7; font-size: .9rem; margin-top: .35rem; }

/* ===== Network ===== */
/* content-visibility removed from .network/.features/.faq/.news/.team: its fixed placeholder
   height was far shorter than the real stacked mobile layout, so sections "grew" as you
   reached them and the page jumped. */
.network { }
.network-grid { display: grid; gap: 1.375rem; }
.network-card {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.625rem;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.network-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.network-card__icon {
  width: 3.375rem;
  height: 3.375rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  color: var(--brand-600);
  background: var(--brand-050);
}
.network-card__title { font-size: 1.0625rem; font-weight: 700; }
.network-card__desc { color: var(--ink-soft); font-size: .845rem; flex: 1; }
.network-card .btn { align-self: flex-start; padding: .55rem 1.25rem; font-size: .845rem; }

/* ===== Features ===== */
.features { background: var(--surface-soft); }
.features-grid { display: grid; gap: 1.25rem; }
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.625rem 1.5rem;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--brand-600);
  background: var(--brand-050);
  margin-bottom: 1rem;
  transition: background .35s, color .35s, transform .35s var(--ease-snappy);
}
.feature-card:hover .feature-card__icon { background: var(--brand-600); color: #fff; transform: scale(1.06) rotate(-4deg); }
.feature-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; }
.feature-card__badge {
  font-size: .656rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-500);
  border-radius: 100px;
  padding: .1rem .6rem;
  margin-inline-start: .5rem;
  vertical-align: middle;
}
.feature-card__desc { color: var(--ink-soft); font-size: .845rem; }

/* ===== FAQ ===== */
.faq { }
.faq-grid { display: grid; gap: .75rem; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item:hover { border-color: var(--brand-100); }
.faq-item.is-open { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color .3s;
  width: 100%;
  text-align: right;
}
.faq-item__question:hover { color: var(--brand-600); }
.faq-item__question i {
  color: var(--brand-500);
  font-size: .875rem;
  transition: transform .3s var(--ease-out);
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__question i { transform: rotate(180deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out), padding .4s var(--ease-out);
}
.faq-item.is-open .faq-item__answer {
  max-height: 300px;
  padding: 0 1.375rem 1.125rem;
}
.faq-item__answer p {
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.9;
}

/* ===== Contact / Demo Request ===== */
.contact-section { background: linear-gradient(135deg, var(--surface-soft) 0%, var(--brand-050) 100%); }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info__card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.contact-info__card:hover { transform: translateX(-4px); box-shadow: var(--shadow-sm); }
.contact-info__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.contact-info__title { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.contact-info__text { color: var(--ink-soft); font-size: .85rem; }
.contact-info__text a { color: var(--brand-600); font-weight: 600; }
.contact-info__text a:hover { text-decoration: underline; }
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.contact-form-wrap__title { font-size: 1.25rem; font-weight: 800; margin-bottom: .5rem; }
.contact-form-wrap__desc { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.5rem; }

/* ===== News ===== */
.news { background: var(--surface-soft); }
.news-grid { display: grid; gap: 1.5rem; }
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s;
}
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.news-card__media { position: relative; display: block; height: 11.25rem; overflow: hidden; background: var(--brand-050); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover .news-card__media img { transform: scale(1.07); }
.news-card__badge {
  position: absolute;
  top: .85rem;
  inset-inline-end: .85rem;
  background: var(--brand-600);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .8rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.news-card__body { padding: 1.25rem 1.375rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: .78rem; margin-bottom: .55rem; }
.news-card__meta i { color: var(--brand-500); }
.news-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; transition: color .3s; }
.news-card:hover .news-card__title { color: var(--brand-600); }
.news-card__desc { color: var(--ink-soft); font-size: .845rem; margin-bottom: 1.1rem; flex: 1; }
.news__more { text-align: center; margin-top: 2.25rem; }

/* ===== Team ===== */
.team { }
.team-grid { display: grid; gap: 1.375rem; }
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem 1.6rem;
  text-align: center;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.team-card__avatar {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--brand-100);
  box-shadow: 0 0 0 5px var(--brand-050);
  transition: transform .35s var(--ease-snappy), border-color .35s;
}
.team-card:hover .team-card__avatar { transform: scale(1.06); border-color: var(--brand-500); }
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__avatar svg { display: block; width: 100%; height: 100%; }
/* v22: the logo fills the whole circle (it used to sit as a small square inside a white circle) */
.team-card__avatar--logo { background: #0b3f8f; }
.team-card__avatar--logo img { object-fit: cover; padding: 0; transform: scale(1.04); }
.team-card__name { font-size: 1rem; font-weight: 700; }
.team-card__role { display: block; color: var(--brand-600); font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }
.team-card__bio { color: var(--ink-soft); font-size: .8rem; margin-bottom: 1rem; }
.team-card__socials { display: flex; justify-content: center; gap: .5rem; }
.team-card__socials a,
.share-btn {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: .85rem;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.team-card__socials a:hover,
.share-btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-3px); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.cta-banner .container { position: relative; }
.cta-banner__content {
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4rem);
}
.cta-banner__title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: .75rem; }
.cta-banner__desc { color: rgba(255,255,255,.85); font-size: 1rem; max-width: 500px; margin: 0 auto 1.5rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ===== Footer ===== */
.site-footer { background: #0e1e33; color: #b9c9de; }
.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-block: 3.75rem 2.75rem;
}
.footer-col__title { color: #fff; font-size: .97rem; font-weight: 700; margin-bottom: 1.125rem; }
.footer-about__desc { font-size: .845rem; margin-block: 1rem 1.25rem; max-width: 18.75rem; }
.footer-links li { margin-bottom: .625rem; }
.footer-links a { font-size: .875rem; transition: color .25s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .625rem; align-items: baseline; font-size: .845rem; margin-bottom: .75rem; }
.footer-contact i { color: var(--brand-500); font-size: .875rem; }
.footer-socials { display: flex; gap: .625rem; }
.footer-socials a {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  font-size: .95rem;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.footer-socials a:hover { background: var(--brand-600); color: #fff; transform: translateY(-3px); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #8ba3c2; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 1.125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .625rem;
  font-size: .8125rem;
}

/* ===== To Top ===== */
.to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.375rem;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 12px;
  background: var(--brand-600);
  color: #fff;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s ease, visibility .35s, transform .35s var(--ease-out), background .3s;
  z-index: 800;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-700); }

/* ===== Reveal Animations ===== */
/* v41: every section of the site slides in from the RIGHT (RTL reading start). Items that
   appear together take turns: animations.js staggers them with transition-delay. */
[data-reveal] {
  opacity: 0;
  transform: translateX(64px);
  transition: opacity .75s ease, transform .85s cubic-bezier(.22, .8, .3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Video overlay / play (shared) ===== */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,22,38,.45);
  display: grid;
  place-items: center;
  transition: background .3s ease;
}
.video-play-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  color: var(--brand-600);
  font-size: 1.5rem;
  transition: transform .3s var(--ease-snappy), box-shadow .3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.video-play-btn i { margin-inline-start: 4px; }

/* ===== Status Badge ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .22rem .8rem;
  border-radius: 100px;
  white-space: nowrap;
}
.status-badge::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.status-badge--success { background: var(--success-soft); color: var(--success); }
.status-badge--pending { background: var(--gold-soft); color: var(--gold-strong); }
.status-badge--danger { background: var(--danger-soft); color: var(--danger-strong); }
.status-badge--muted { background: var(--surface-soft); color: var(--ink-soft); }
.status-badge--info { background: var(--brand-050); color: var(--brand-600); }

/* ===== Tag ===== */
.tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-050);
  padding: .2rem .7rem;
  border-radius: 100px;
  white-space: nowrap;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: .35rem; border-bottom: 1.5px solid var(--line); margin-bottom: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: .65rem 1.15rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: color .3s, border-color .3s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--brand-600); }
.tab-btn.is-active { color: var(--brand-600); border-color: var(--brand-600); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.25rem; flex-wrap: wrap; }
.pagination a,
.pagination span {
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  transition: color .3s, border-color .3s, background .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.pagination a:hover { color: var(--brand-600); border-color: var(--brand-100); transform: translateY(-2px); }
.pagination .is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(21, 101, 216, .55);
}
.pagination .is-dots { border-color: transparent; background: none; }

/* ===== Table ===== */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  background: var(--card-bg);
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 560px; }
.table th {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  padding: .85rem 1rem;
  font-size: .78rem;
  white-space: nowrap;
}
.table td {
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
.table tbody tr { transition: background .25s; }
.table tbody tr:hover { background: var(--surface-raised); }
.table td strong { color: var(--ink); }
.table .table__actions { display: flex; gap: .35rem; justify-content: flex-end; }

/* ===== Alert ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  border: 1px solid;
}
.alert i { margin-top: .22rem; flex-shrink: 0; }
.alert__title { font-weight: 700; display: block; margin-bottom: .1rem; }
.alert--info { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-800); }
.alert--success { background: var(--success-soft); border-color: rgba(30, 158, 99, .3); color: var(--success-strong); }
.alert--danger { background: var(--danger-soft); border-color: rgba(214, 69, 69, .3); color: var(--danger-strong); }
.alert--gold { background: var(--gold-soft); border-color: rgba(246, 176, 36, .4); color: var(--gold-strong); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  transform: translateY(14px);
  transition: transform .35s var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; }
.modal--sm .modal__panel { max-width: 24rem; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.modal__title { font-size: 1.1rem; font-weight: 800; }
.modal__desc { color: var(--ink-soft); font-size: .875rem; margin-bottom: 1.5rem; }
.modal__actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.5rem; }
.modal__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: .95rem;
  transition: background .3s, color .3s;
  flex-shrink: 0;
}
.modal__close:hover { background: var(--surface-soft); color: var(--ink); }

/* ===== Toast ===== */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.375rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-width: min(22rem, calc(100vw - 2rem));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--card-elevated);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand-500);
  border-radius: var(--radius-sm);
  padding: .95rem 1.1rem;
  box-shadow: var(--shadow-md);
  font-size: .85rem;
  animation: toast-in .45s var(--ease-out) both;
}
.toast.is-hiding { animation: toast-out .35s ease both; }
.toast__icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .8rem;
}
.toast--success { border-inline-start-color: var(--success); }
.toast--success .toast__icon { background: var(--success-soft); color: var(--success); }
.toast--danger { border-inline-start-color: var(--danger); }
.toast--danger .toast__icon { background: var(--danger-soft); color: var(--danger-strong); }
.toast--info .toast__icon { background: var(--brand-050); color: var(--brand-600); }
.toast__title { font-weight: 700; font-size: .85rem; display: block; }
.toast__msg { color: var(--ink-soft); font-size: .8rem; line-height: 1.7; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.empty-state__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.empty-state__title { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.empty-state__desc { color: var(--ink-soft); font-size: .85rem; max-width: 26rem; margin: 0 auto 1.4rem; }

/* ===== Skeleton ===== */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 50%, transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
.skeleton--text { height: .85rem; margin-bottom: .6rem; }
.skeleton--title { height: 1.15rem; width: 65%; }
.skeleton--thumb { aspect-ratio: 16/9; border-radius: var(--radius); }
.skeleton--circle { border-radius: 50%; }

/* ===== Avatar ===== */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-050);
  display: grid;
  place-items: center;
  color: var(--brand-700);
  font-weight: 700;
  font-size: .85rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 3.5rem; height: 3.5rem; font-size: 1.05rem; }
.avatar--xl { width: 6rem; height: 6rem; font-size: 1.7rem; }

/* ===== Steps (process) ===== */
.steps { display: grid; gap: 1.1rem; }
.step {
  position: relative;
  display: flex;
  gap: 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.step:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.step__num {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  border: 2px solid var(--brand-100);
  color: var(--brand-700);
  font-weight: 800;
  font-size: .9rem;
}
.step__title { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.step__desc { color: var(--ink-soft); font-size: .845rem; }

/* ===== Prose (articles) ===== */
.prose p { margin-bottom: 1.25rem; color: var(--ink-soft); font-size: .95rem; line-height: 2.1; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 2rem 0 1rem; color: var(--ink); }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 .9rem; color: var(--ink); }
.prose ul { margin-bottom: 1.4rem; }
.prose ul li {
  padding-inline-start: 1.6rem;
  position: relative;
  margin-bottom: .6rem;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 2;
}
.prose ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--brand-500);
  position: absolute;
  inset-inline-start: 0;
  font-size: .85rem;
  top: .3rem;
}
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose blockquote {
  border-inline-start: 3px solid var(--brand-500);
  background: var(--brand-050);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  color: var(--brand-800);
  font-weight: 600;
  font-size: .93rem;
}

/* ===== Share Bar ===== */
.share-bar { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.share-bar__label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.share-btn { width: 2.375rem; height: 2.375rem; font-size: .9rem; }

/* ===== Feature / Checklist ===== */
.feature-list { display: flex; flex-direction: column; gap: .65rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; font-weight: 500; color: var(--ink); }
.feature-list i { color: var(--brand-500); margin-top: .3rem; flex-shrink: 0; }

/* ===== Doc List ===== */
.doc-list { display: flex; flex-direction: column; gap: .75rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  transition: border-color .3s, box-shadow .3s;
}
.doc-item:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.doc-item__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand-600);
  font-size: 1.05rem;
}
.doc-item__name { font-size: .875rem; font-weight: 700; color: var(--ink); }
.doc-item__meta { font-size: .75rem; color: var(--ink-muted); }
.doc-item .btn { margin-inline-start: auto; padding: .5rem 1rem; font-size: .78rem; }
@media (max-width: 37.49em) {
  .doc-item { flex-wrap: wrap; }
  .doc-item .btn { margin-inline-start: 0; }
}

/* ===== App Shell (dashboard / admin) ===== */
.app-shell { min-height: 100vh; background: var(--surface); display: flex; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 45, .45);
  z-index: 840;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
body.app-nav-open .app-overlay { opacity: 1; visibility: visible; }
.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 16.5rem;
  background: var(--surface-raised);
  border-inline-end: 1px solid var(--line);
  z-index: 850;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .45s var(--ease-out);
  visibility: hidden;
}
body.app-nav-open .app-sidebar { transform: translateX(0); visibility: visible; }
body.app-nav-open { overflow: hidden; }
.app-sidebar__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.app-sidebar__head .brand__name { font-size: 1.05rem; }
.app-sidebar__nav { flex: 1; overflow-y: auto; padding: 1rem .85rem; }
.app-sidebar__foot { border-top: 1px solid var(--line); padding: 1rem .85rem; }
.app-nav__label { font-size: .7rem; font-weight: 700; color: var(--ink-muted); padding: 1rem .6rem .35rem; }
.app-nav { display: flex; flex-direction: column; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .68rem .85rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .25s, color .25s;
  margin-bottom: 2px;
}
.app-nav a i { width: 1.1rem; text-align: center; font-size: .9rem; flex-shrink: 0; }
.app-nav a:hover { background: var(--brand-050); color: var(--brand-700); }
.app-nav a.is-active { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(21, 101, 216, .55); }
.app-nav a.is-active:hover { color: #fff; }
.app-user { display: flex; align-items: center; gap: .75rem; padding: .5rem .3rem; }
.app-user__meta { flex: 1; min-width: 0; }
.app-user__name { font-size: .85rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user__role { font-size: .72rem; color: var(--ink-muted); }

.app-topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.25rem;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 600;
}
.app-topbar__title { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.app-topbar .breadcrumb { justify-content: flex-start; }
.app-topbar .breadcrumb li, .app-topbar .breadcrumb a { font-size: .76rem; }
.app-topbar__spacer { flex: 1; }
.app-topbar__search { position: relative; width: min(17rem, 30vw); }
.app-topbar__search i { position: absolute; inset-inline-start: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: .8rem; pointer-events: none; }
.app-topbar__search .input { padding: .55rem 2.2rem .55rem .9rem; font-size: .82rem; border-radius: 10px; }
.app-icon-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: .95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .3s, color .3s;
}
.app-icon-btn:hover { background: var(--brand-100); }
.app-icon-btn__dot {
  position: absolute;
  top: .55rem;
  inset-inline-end: .55rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--card-bg);
}
.app-menu-btn { display: none; }

.app-content { padding: 1.5rem 1.25rem 2.75rem; }
.app-content--head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.app-content__title { font-size: 1.25rem; font-weight: 800; }
.app-content__desc { color: var(--ink-soft); font-size: .84rem; }

/* ===== Mini Stat ===== */
.mini-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.mini-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--brand-100); }
.mini-stat__icon {
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--brand-050);
  color: var(--brand-600);
}
.mini-stat__value { font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.mini-stat__label { font-size: .78rem; color: var(--ink-soft); }
.mini-stat__delta { font-size: .7rem; font-weight: 700; padding: .1rem .55rem; border-radius: 100px; }
.mini-stat__delta--up { background: var(--success-soft); color: var(--success); }
.mini-stat__delta--down { background: var(--danger-soft); color: var(--danger-strong); }

/* ===== Widget ===== */
.widget {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.widget__title { font-size: 1rem; font-weight: 800; }
.widget__link { font-size: .8rem; font-weight: 600; color: var(--brand-600); }
.widget__link:hover { text-decoration: underline; }

/* ===== Chart Bars ===== */
.chart-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: .55rem;
  height: 15rem;
  padding: 1rem 1rem .4rem;
}
.chart-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: .35rem;
  height: 100%;
  min-width: 0;
}
.chart-bar__fill {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(to top, var(--brand-700), var(--brand-400));
  min-height: 6px;
  transition: height .8s var(--ease-out);
}
.chart-bar.is-featured .chart-bar__fill { background: linear-gradient(to top, #F6B024, var(--gold)); }
.chart-bar__label { font-size: .66rem; color: var(--ink-muted); font-weight: 600; white-space: nowrap; }
/* many bars (24 hours / up to 62 days): thinner gaps and labels so they still fit on a phone */
.chart-bars--dense { gap: .18rem; padding-inline: .4rem; }
.chart-bars--dense .chart-bar__label { font-size: .52rem; }
.chart-bars--dense .chart-bar__fill { border-radius: 4px 4px 2px 2px; }

/* ===== Analytics breakdowns (country / OS / browser / device) ===== */
.breakdown { display: grid; gap: .8rem; }
.breakdown__row { display: grid; gap: .35rem; }
.breakdown__head { display: flex; align-items: center; gap: .5rem; font-size: .84rem; }
.breakdown__head i { color: var(--brand-500); width: 1.1rem; text-align: center; flex-shrink: 0; }
.breakdown__flag { font-size: 1.05rem; line-height: 1; width: 1.1rem; text-align: center; }
.breakdown__label { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown__value { font-size: .75rem; color: var(--ink-muted); white-space: nowrap; }
.breakdown__value strong { color: var(--ink); }
.range-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; }
.range-form .form-group { margin: 0; }
.range-form .input { width: 9.5rem; text-align: center; }
.range-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.range-presets .filter-btn { font-size: .78rem; padding: .35rem .9rem; }

/* ===== Donut ===== */
.donut {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-inline: auto;
}
.donut::before {
  content: '';
  position: absolute;
  inset: .95rem;
  border-radius: 50%;
  background: var(--card-bg);
}
.donut__label { position: relative; text-align: center; }
.donut__value { font-size: 1.25rem; font-weight: 800; display: block; color: var(--ink); }
.donut__cap { font-size: .68rem; color: var(--ink-muted); }

/* ===== Activity List ===== */
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-item__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: .78rem;
  background: var(--brand-050);
  color: var(--brand-600);
}
.activity-item__text { font-size: .84rem; color: var(--ink-soft); flex: 1; line-height: 1.8; min-width: 0; }
.activity-item__text strong { color: var(--ink); font-weight: 700; }
.activity-item__time { font-size: .72rem; color: var(--ink-muted); white-space: nowrap; padding-top: .15rem; }

/* ===== Notification item ===== */
.notif-item {
  display: flex;
  gap: .9rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  transition: border-color .3s, box-shadow .3s;
}
.notif-item:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.notif-item.is-unread { border-inline-start: 3px solid var(--brand-500); }
.notif-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: .95rem;
  background: var(--brand-050);
  color: var(--brand-600);
}
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title { font-size: .88rem; font-weight: 700; color: var(--ink); }
.notif-item__desc { color: var(--ink-soft); font-size: .8rem; line-height: 1.8; }
.notif-item__time { color: var(--ink-muted); font-size: .72rem; margin-top: .3rem; display: block; }
.notif-item__actions { display: flex; align-items: flex-start; gap: .35rem; }

/* ===== Quick actions ===== */
.quick-actions { display: grid; gap: .75rem; }
.quick-action {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.quick-action i { color: var(--brand-600); width: 1.2rem; text-align: center; flex-shrink: 0; }
.quick-action:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--brand-600); }

/* ===== Toggle Switch ===== */
.switch { position: relative; width: 2.9rem; height: 1.6rem; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.switch__track { position: absolute; inset: 0; border-radius: 100px; background: var(--line-strong); transition: background .3s; }
.switch__thumb {
  position: absolute;
  top: .2rem;
  inset-inline-start: .2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--brand-600); }
.switch input:checked + .switch__track + .switch__thumb,
.switch input:checked ~ .switch__thumb { transform: translateX(-1.5rem); }
.switch input:focus-visible + .switch__track { outline: 2.5px solid var(--brand-500); outline-offset: 3px; }

/* ===== Icon button ===== */
.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--surface-soft);
  transition: color .3s, background .3s, transform .3s var(--ease-out);
}
.icon-btn:hover { color: var(--brand-700); background: var(--brand-050); transform: translateY(-2px); }
.icon-btn--danger:hover { color: var(--danger-strong); background: var(--danger-soft); }

/* ===== Filter row (lists) ===== */
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.1rem; }
.filter-row .input, .filter-row .select { width: auto; min-width: 11rem; }
.filter-row .spacer { flex: 1; }

/* ===== Detail grid ===== */
.detail-grid { display: grid; gap: 2.25rem; align-items: start; }
.detail-main { min-width: 0; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1.25rem; }
.detail-aside__card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.detail-aside__card .btn { width: 100%; margin-top: .6rem; }
.detail-aside__title { font-size: .95rem; font-weight: 800; margin-bottom: .85rem; }

/* ===== Specs ===== */
.specs { display: grid; gap: .75rem; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .85rem;
}
.spec-row__label { color: var(--ink-muted); font-weight: 600; flex-shrink: 0; }
.spec-row__value { font-weight: 700; text-align: left; }

/* ===== Info grid ===== */
.info-grid { display: grid; gap: .75rem; }
.info-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .87rem;
}
.info-item__label { color: var(--ink-muted); display: flex; align-items: center; gap: .5rem; }
.info-item__label i { color: var(--brand-500); width: 1rem; text-align: center; flex-shrink: 0; }
.info-item__value { font-weight: 700; text-align: left; }

/* ===== Status timeline ===== */
.status-timeline { display: flex; flex-direction: column; gap: 1.35rem; position: relative; padding-inline-start: 1.6rem; }
.status-timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: .6rem;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}
.status-step { position: relative; }
.status-step::before {
  content: '';
  position: absolute;
  inset-inline-start: -1.6rem;
  top: .45rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2.5px solid var(--line-strong);
}
.status-step.is-done::before { background: var(--brand-600); border-color: var(--brand-600); }
.status-step.is-current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246, 176, 36, .28); }
.status-step__title { font-size: .9rem; font-weight: 700; color: var(--ink); }
.status-step__date { font-size: .75rem; color: var(--ink-muted); margin-inline-start: .5rem; }
.status-step__desc { font-size: .82rem; color: var(--ink-soft); margin-top: .15rem; }

/* ===== Progress ===== */
.progress { height: .55rem; background: var(--surface-soft); border-radius: 100px; overflow: hidden; }
.progress__fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(to left, var(--brand-500), var(--brand-700));
  transition: width .8s var(--ease-out);
}
.progress__fill--gold { background: linear-gradient(to left, var(--gold), #F6B024); }
.progress__fill--success { background: linear-gradient(to left, var(--success), #146b45); }

/* ===== Statistics helper ===== */
.stat-line { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.stat-line__label { color: var(--ink-soft); }
.stat-line__value { font-weight: 700; color: var(--ink); }

/* ===== Detail hero (product / investment) ===== */
.detail-hero {
  background: var(--hero-grad);
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.detail-hero .container { display: grid; gap: 2rem; align-items: center; }
.detail-hero__title { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; margin: .7rem 0; }
.detail-hero__desc { color: var(--ink-soft); font-size: .93rem; max-width: 36rem; }
.detail-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--card-bg);
}
.detail-hero__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ===== Article ===== */
.article {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.article__head { text-align: center; max-width: 46rem; margin: 0 auto 2rem; }
.article__title { font-size: clamp(1.35rem, 3.2vw, 1.9rem); font-weight: 800; margin: .85rem 0 .6rem; line-height: 1.6; }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; color: var(--ink-muted); font-size: .8rem; }
.article__meta i { color: var(--brand-500); margin-inline-end: .3rem; }
.article__hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.article__hero img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; }
.article__body { max-width: 46rem; margin-inline: auto; }
.article__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 2.5rem;
}

/* ===== Auth shell ===== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 2rem 1.25rem;
  background: var(--hero-grad);
  position: relative;
  overflow: hidden;
}
.auth-shell .container { position: relative; }
.auth-card {
  width: 100%;
  max-width: 26.5rem;
  margin-inline: auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.auth-card--wide { max-width: 31rem; }
.auth-back { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: .82rem; font-weight: 600; margin-bottom: 1.25rem; transition: color .25s; }
.auth-back:hover { color: var(--brand-600); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.auth-title { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: .4rem; }
.auth-desc { text-align: center; color: var(--ink-soft); font-size: .87rem; margin-bottom: 1.6rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; margin-top: 1rem; flex-wrap: wrap; }
.auth-links a { color: var(--brand-600); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 1rem; color: var(--ink-muted); font-size: .78rem; margin: 1.4rem 0; }
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-login { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.social-login a {
  display: grid;
  place-items: center;
  height: 2.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 1rem;
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease-out);
}
.social-login a:hover { border-color: var(--brand-100); color: var(--brand-600); background: var(--brand-050); transform: translateY(-2px); }
.otp-row { display: flex; gap: .6rem; justify-content: center; direction: ltr; }
.otp-row input {
  width: 3rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.otp-row input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(21, 101, 216, .1); outline: none; }
.auth-countdown { text-align: center; font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }
.auth-countdown strong { color: var(--brand-600); }

/* ===== Manage nav (account management) ===== */
.manage-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.9rem; }
.manage-nav .filter-btn { font-size: .82rem; padding: .42rem 1.1rem; }

/* ===== Error pages ===== */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: var(--hero-grad);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.error-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  box-shadow: var(--shadow-lg);
  max-width: 38rem;
  width: 100%;
  position: relative;
}
.error-icon { font-size: 2.25rem; color: var(--brand-500); margin-bottom: 1rem; }
.error-code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}
.error-code--gold { background: linear-gradient(135deg, var(--gold), #F6B024); -webkit-background-clip: text; background-clip: text; }
.error-title { font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 800; margin: .9rem 0 .5rem; }
.error-desc { color: var(--ink-soft); font-size: .93rem; max-width: 30rem; margin: 0 auto 1.6rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ===== Dropdown ===== */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + .5rem);
  inset-inline-end: 0;
  min-width: 13rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  z-index: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s var(--ease-out), visibility .3s;
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu a, .dropdown__menu button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem .75rem;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .25s, color .25s;
  text-align: right;
}
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--brand-050); color: var(--brand-700); }
.dropdown__menu .is-danger:hover { background: var(--danger-soft); color: var(--danger-strong); }

/* ===== Featured news ===== */
.featured-news {
  display: grid;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.featured-news__media { position: relative; min-height: 16rem; }
.featured-news__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-news__badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  background: var(--gold);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.featured-news__content { padding: clamp(1.5rem, 3.5vw, 2.25rem); display: flex; flex-direction: column; }
.featured-news__title { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; margin: .6rem 0; transition: color .3s; }
.featured-news:hover .featured-news__title { color: var(--brand-600); }
.featured-news__desc { color: var(--ink-soft); font-size: .88rem; flex: 1; margin-bottom: 1.25rem; }

/* ===== Investment cards ===== */
.investment-grid { display: grid; gap: 1.5rem; }
.investment-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s;
  transform-style: preserve-3d;
  perspective: 850px;
}
.investment-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.investment-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.375rem 0; }
.investment-card__title { font-size: 1.05rem; font-weight: 700; transition: color .3s; }
.investment-card:hover .investment-card__title { color: var(--brand-600); }
.investment-card__body { padding: 1rem 1.375rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.investment-card__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); gap: 1rem; }
.investment-card__amount { font-size: 1.15rem; font-weight: 800; color: var(--brand-600); white-space: nowrap; }
.investment-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid var(--line);
  padding: 1rem 1.375rem;
  font-size: .8rem;
  color: var(--ink-soft);
}
.investment-card__foot .product-card__link { font-size: .8rem; }

/* ===== Media cards ===== */
.media-grid { display: grid; gap: 1.375rem; }
.media-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s;
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.media-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--brand-050);
}
.media-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.media-card:hover .media-card__media img { transform: scale(1.06); }
.media-card__media i.fa-play, .media-card__media > i { font-size: 2rem; color: var(--brand-600); }
.media-card__type {
  position: absolute;
  top: .85rem;
  inset-inline-start: .85rem;
  background: rgba(11, 22, 38, .65);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 100px;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.media-card__body { padding: 1.15rem 1.25rem 1.35rem; }
.media-card__title { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; transition: color .3s; }
.media-card:hover .media-card__title { color: var(--brand-600); }
.media-card__meta { color: var(--ink-muted); font-size: .76rem; display: flex; gap: .8rem; }
.media-card__meta i { color: var(--brand-500); margin-inline-end: .25rem; }

/* ===== Media player ===== */
.media-player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0e1e33;
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
}
.media-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.media-player__play { position: relative; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--brand-600); font-size: 1.6rem; box-shadow: 0 8px 32px rgba(0,0,0,.35); transition: transform .3s var(--ease-snappy), box-shadow .3s; }
.media-player:hover .media-player__play { transform: scale(1.1); }
.media-player__play i { margin-inline-start: 4px; }

/* ===== Service cards ===== */
.services-grid { display: grid; gap: 1.375rem; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.625rem;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.service-card__icon {
  width: 3.375rem;
  height: 3.375rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  color: var(--brand-600);
  background: var(--brand-050);
  transition: background .35s, color .35s, transform .35s var(--ease-snappy);
}
.service-card:hover .service-card__icon { background: var(--brand-600); color: #fff; transform: scale(1.06) rotate(-4deg); }
.service-card__title { font-size: 1.0625rem; font-weight: 700; }
.service-card__desc { color: var(--ink-soft); font-size: .845rem; flex: 1; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.service-card .btn { align-self: flex-start; padding: .55rem 1.25rem; font-size: .845rem; }

/* ===== Newsletter ===== */
.newsletter-box {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.newsletter-box > * { position: relative; }
.newsletter-box__title { font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 800; margin-bottom: .4rem; }
.newsletter-box__desc { color: #c8dcf7; font-size: .88rem; max-width: 30rem; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form .input { flex: 1; min-width: 12rem; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.newsletter-form .input::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter-form .input:focus { border-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.newsletter-form .btn { flex-shrink: 0; }

/* ===== About pages ===== */
.about-intro { display: grid; gap: 2.5rem; align-items: center; }
.about-intro__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-intro__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-intro__eyebrow { margin-bottom: .7rem; }
.about-intro__title { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; margin-bottom: .85rem; }
.about-intro__desc { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.4rem; }
.values-grid { display: grid; gap: 1.25rem; }
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.625rem 1.5rem;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card__icon {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--brand-600);
  background: var(--brand-050);
  margin-bottom: 1rem;
}
.value-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; }
.value-card__desc { color: var(--ink-soft); font-size: .845rem; }
.mission-vision { display: grid; gap: 1.25rem; }

/* ===== Real map embed (contact) ===== */
.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 19rem;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 19rem;
  border: 0;
  display: block;
}

/* ===== Sort select ===== */
.sort-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.sort-bar__count { font-size: .84rem; color: var(--ink-soft); }
.sort-bar .select { width: auto; min-width: 10rem; padding: .55rem .9rem; font-size: .82rem; }

/* ===== Countdown / code row ===== */
.code-display {
  display: flex;
  justify-content: center;
  gap: .5rem;
  direction: ltr;
}
.code-chip {
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--brand-050);
  border: 1.5px dashed var(--brand-100);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9rem;
  color: var(--brand-700);
  padding-inline: .5rem;
}
/* ===== Backend helpers ===== */
.table__actions form, .admin-gallery-card__overlay form { display: contents; }
.flash-stack { display: grid; gap: .6rem; margin-bottom: 1rem; }
.current-media { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; font-size: .8rem; color: var(--ink-soft); }
.current-media img { width: 7rem; height: 4.5rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.msg-unread td:first-child strong::before { content: '●'; color: var(--brand-500); margin-inline-end: .35rem; }
.app-nav__badge { margin-inline-start: auto; background: var(--brand-500); color: #fff; border-radius: 999px; font-size: .7rem; padding: .05rem .5rem; }
a.mini-stat { color: inherit; text-decoration: none; }

/* ---------- Captcha field ---------- */
.captcha-field__row { display: flex; align-items: center; gap: .5rem; }
.captcha-field__media { display: flex; align-items: center; gap: .5rem; flex: none; }
/* Always typed left-to-right, in the order the letters were pressed. text-transform/letter-spacing were removed:
   together with the RTL page they made mobile keyboards put each new letter in front (ADHL → LHDA). */
.captcha-field__row .captcha-field__input {
  flex: 1 1 auto; min-width: 0;
  direction: ltr; unicode-bidi: isolate; text-align: left;
  letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.captcha-field__row .captcha-field__input::placeholder {
  direction: ltr; text-align: left; letter-spacing: 0; font-family: inherit;
}
.captcha-field__img {
  flex: none; width: 130px; height: 46px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .12); background: #fff; user-select: none;
}
.captcha-field__refresh {
  flex: none; width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid rgba(0, 0, 0, .12); background: transparent;
  color: inherit; cursor: pointer; transition: transform .3s ease;
}
.captcha-field__refresh:hover { transform: rotate(90deg); }
[data-theme="dark"] .captcha-field__refresh, [data-theme="dark"] .captcha-field__img { border-color: rgba(255, 255, 255, .18); }

/* Honeypot (anti-spam) field: invisible to people, bots fill it */
/* Honeypot: hidden IN PLACE (no left:-10000px). Pushing it 10,000px off-screen made the page
   ~10,000px wide in RTL, so mobile browsers scrolled sideways when the form came into view. */
.hp-field { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.hp-field * { max-width: 1px; }

/* ---------- RTL alignment fixes ----------
   English-only fields (username, password, email, URL, phone, icon class, captcha …) are typed AND
   aligned left-to-right, so the text starts on the left like in any English form. */
input[dir="ltr"], textarea[dir="ltr"],
input[type="email"], input[type="tel"], input[type="url"], input[type="password"] { direction: ltr; text-align: left; }
input[dir="ltr"]::placeholder, textarea[dir="ltr"]::placeholder,
input[type="email"]::placeholder, input[type="tel"]::placeholder, input[type="url"]::placeholder { direction: ltr; text-align: left; }
td[dir="ltr"], .meta[dir="ltr"], .info-item__value[dir="ltr"], code[dir="ltr"], [lang="en"] { text-align: left; }
/* captcha: see .captcha-field__input above (must stay left-aligned LTR, never centered/RTL) */
@media (max-width: 37.49em) {
  /* phones: captcha image + refresh on top, the text box on its own full-width row under it */
  .captcha-field__row { flex-direction: column; align-items: stretch; gap: .6rem; }
  .captcha-field__media { order: -1; justify-content: center; }
  .captcha-field__row .captcha-field__input { width: 100%; font-size: 16px; /* ≥16px: iOS doesn't zoom the page */ }
}

/* v15: real logo image inside the brand mark (replaces the icon) */
.brand__mark--logo { background: none; padding: 0; overflow: hidden; }
.brand__mark--logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* header fix: keep logo, menu and buttons on one row */
.site-header .container { max-width: 1320px; }
.nav-wrap { flex-wrap: nowrap; gap: 1rem; }
.main-nav ul { flex-wrap: nowrap; }
.main-nav a { padding-inline: .65rem; }

/* ===== Chart tooltip (chart-tooltip.js) ===== */
.chart-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  max-width: 16rem;
  padding: .4rem .75rem;
  border-radius: 8px;
  background: var(--ink, #1e2433);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.chart-tip[hidden] { display: none; }
[data-theme="dark"] .chart-tip { background: #f3f5f9; color: #141821; }
.chart-bar { cursor: pointer; outline: none; }
.chart-bar__fill { transition: height .8s var(--ease-out), filter .2s, transform .2s; }
.chart-bar.is-hover .chart-bar__fill,
.chart-bar:focus-visible .chart-bar__fill { filter: brightness(1.12); transform: scaleX(1.06); }

/* ===== Line chart ===== */
.chart-line { padding: .6rem .4rem .2rem; }
.chart-line__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-line__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-line__path { fill: none; stroke: var(--brand-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line__area { fill: var(--brand-500); opacity: .08; }
.chart-line__point { cursor: pointer; outline: none; }
.chart-line__hit { fill: transparent; }
.chart-line__dot { fill: var(--card-bg); stroke: var(--brand-500); stroke-width: 3; transition: r .2s; }
.chart-line__point.is-featured .chart-line__dot { stroke: var(--gold); }
.chart-line__point.is-hover .chart-line__dot,
.chart-line__point:focus-visible .chart-line__dot { r: 9; fill: var(--brand-500); }
.chart-line__labels { display: grid; text-align: center; margin-top: .4rem; }
.form-group[hidden] { display: none !important; }


/* ===== v25 ===== */
/* product card: «ورود به سامانه» spans the whole card width */
.product-card__actions .product-card__login { flex: 1 1 100%; width: 100%; justify-content: center; }
.main-nav a { white-space: nowrap; }
/* header: one more menu item («دانلود نرم‌افزار») → a bit tighter on mid-size screens */
@media (min-width: 68.75em) and (max-width: 84.99em) {
  .main-nav a { padding-inline: .45rem; font-size: .86rem; }
}
/* the video error box is styled everywhere (it was only styled on the product page) */
.video-card__error {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem; text-align: center; font-size: .82rem; line-height: 1.8; color: #fff; background: rgba(11, 20, 36, .9);
}


/* v52: the brand mark is an image, not a framed button. */
.brand__mark--logo, .brand__mark--logo:focus, .brand__mark--logo:focus-visible { border: 0; outline: 0; box-shadow: 0 4px 12px rgba(21, 101, 216, .18); }

/* Mobile drawer: tighter menu items, and the dashboard/login + contact buttons sit together at the bottom
   (previously every .btn had margin-top:auto, so the free space was split between them). */
.mobile-nav ul { gap: 0; }
.mobile-nav ul a { padding: .55rem .85rem; }
.mobile-nav .btn { margin-top: .35rem; }
.mobile-nav ul + .btn { margin-top: auto; }
