/* Aabidecom — Premium Etsy Digital Training
   "Notebook academy" design. Every colour, size and spacing starts here. */
:root {
  /* paper */
  --paper: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f8f6fd;
  --rule: 34px;                         /* distance between notebook lines */
  --rule-color: rgba(69, 86, 191, .095);
  --margin-color: rgba(203, 81, 167, .30);
  --margin-x: 64px;                     /* notebook margin line */

  /* ink */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7e3f3;

  /* brand palette, measured from the official "Ae" logo */
  --navy: #2c2380;
  --indigo: #2e41a1;
  --blue: #4a7cc6;
  --violet: #633898;
  --magenta: #8f3fa3;
  --pink: #ca4d97;
  --grad: linear-gradient(118deg, #2e41a1 0%, #443498 30%, #723ea7 56%, #af409c 82%, #ca4d97 100%);
  --grad-soft: linear-gradient(118deg, rgba(46, 65, 161, .08), rgba(202, 77, 151, .11));
  --ring: rgba(99, 56, 152, .40);

  /* portrait disc (the photo's own warm background) */
  --sun: radial-gradient(circle at 32% 26%, #ffe98f 0, #ffd05c 26%, #ffae4a 62%, #ff9139 100%);

  --ok: #059669;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(44, 35, 128, .05);
  --shadow-2: 0 2px 6px rgba(15, 23, 42, .04), 0 16px 38px rgba(44, 35, 128, .09);
  --shadow-3: 0 30px 70px rgba(44, 35, 128, .20);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
  --tabbar: 0px;
}
html[lang='ar'] { --font: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--tabbar);
  /* content lockdown: no selection, no dragging, no long-press save */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
img, svg, canvas, iframe { -webkit-user-drag: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

/* ------------------------------------------------------- notebook paper */
.paper {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58rem 34rem at 0% -12%, rgba(202, 77, 151, .13), transparent 62%),
    radial-gradient(52rem 34rem at 100% -4%, rgba(46, 65, 161, .12), transparent 60%),
    radial-gradient(44rem 30rem at 50% 118%, rgba(99, 56, 152, .10), transparent 60%),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--rule) - 1px), var(--rule-color) calc(var(--rule) - 1px), var(--rule-color) var(--rule)),
    var(--paper);
}
/* the red-pink margin line of an exercise book (double, like real paper) */
.paper::before {
  content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: var(--margin-x); width: 1.5px;
  background: var(--margin-color); box-shadow: 4px 0 0 rgba(203, 81, 167, .13);
}
html[dir='rtl'] .paper::before { box-shadow: -4px 0 0 rgba(203, 81, 167, .13); }
/* faint punch holes down the margin */
.paper::after {
  content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--margin-x) / 2 - 7px); width: 14px;
  background: radial-gradient(circle at 7px 7px, rgba(99, 56, 152, .085) 0 6px, rgba(99, 56, 152, .05) 6.5px 7px, transparent 7.5px) 0 140px / 14px 33vh repeat-y;
}

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .5; }
/* Three zones that never overlap: brand | nav | controls. The brand and the
   controls keep their natural width (auto); the nav sits centred in what is left
   and never wraps - narrower screens switch layout in the media queries below. */
.topbar__in {
  max-width: 1600px; margin: 0 auto; padding: 8px 28px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; flex: none; }
.brand__mark { height: 52px; width: auto; flex: none; filter: drop-shadow(0 8px 14px rgba(99, 56, 152, .28)); transition: transform .25s; }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; padding-bottom: 2px;
}
.brand__sub { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.35; margin-top: 3px; white-space: nowrap; }

.nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; justify-self: center; justify-content: center; min-width: 0; }
.nav a, .nav__dd-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px 12px; border-radius: 12px;
  color: #0f172a; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s;
  border: 0; background: transparent; font-family: inherit; cursor: pointer;
}
.nav a svg, .nav__dd-trigger svg { width: 18px; height: 18px; flex: none; color: var(--violet); opacity: .85; }
.nav a:hover, .nav__dd-trigger:hover { background: rgba(99, 56, 152, .07); }
.nav a::after, .nav__dd-trigger::after {
  content: ''; position: absolute; inset-inline: 11px; bottom: 5px; height: 3px; border-radius: 3px;
  background: var(--grad); transform: scaleX(0); transition: transform .22s ease;
}
.nav a[aria-current='page'], .nav__dd-trigger[aria-current='page'] { color: #000; }
.nav a[aria-current='page']::after, .nav__dd-trigger[aria-current='page']::after { transform: scaleX(1); }
.nav__home, .nav__short { display: none !important; }

.nav__dd { position: relative; display: inline-flex; }
.nav__dd-caret { width: 13px !important; height: 13px !important; margin-inline-start: -2px; opacity: .6; transition: transform .2s ease; }
.nav__dd-trigger[aria-expanded='true'] .nav__dd-caret { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%);
  min-width: 230px; max-width: min(300px, calc(100vw - 32px)); padding: 8px; z-index: 70;
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
}
html[dir='rtl'] .nav__dropdown { transform: translateX(50%); }
.nav__dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  color: #0f172a; font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background .15s;
}
.nav__dropdown-item svg { width: 19px; height: 19px; flex: none; color: var(--violet); opacity: .85; }
.nav__dropdown-item:hover { background: rgba(99, 56, 152, .07); }
.nav__dropdown-item[aria-current='page'] { background: rgba(99, 56, 152, .1); color: var(--navy); }
.nav__dropdown-item--feature {
  color: var(--etsy-ink);
  background: linear-gradient(118deg, rgba(241, 100, 30, .09), rgba(245, 158, 11, .12));
  box-shadow: inset 0 0 0 1px rgba(241, 100, 30, .24);
}
.nav__dropdown-item--feature svg { color: var(--etsy); opacity: 1; }
.nav__dropdown-item--feature:hover { background: linear-gradient(118deg, rgba(241, 100, 30, .15), rgba(245, 158, 11, .18)); }

.controls { justify-self: end; display: flex; align-items: center; gap: 10px; flex: none; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #f1eef9; border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.lang button[lang='ar'] { font-family: 'Cairo', 'Tajawal', sans-serif; }
.lang button[lang='en'] { font-family: 'Plus Jakarta Sans', sans-serif; }
.lang button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.lang__short { display: none; }

.userslot { display: flex; align-items: center; min-height: 40px; }
.gbtn { min-height: 40px; display: flex; align-items: center; color-scheme: light; }
.user { position: relative; }
.user__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px; padding-inline-end: 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-1); font-weight: 700; font-size: 14px;
}
.user__btn svg { width: 16px; height: 16px; color: var(--muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover;
  display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px;
}
.user__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 280px; padding: 14px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3);
}
.user__id { display: flex; flex-direction: column; margin-bottom: 10px; }
.user__id strong { font-size: 15px; }
.user__id span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; direction: ltr; text-align: start; }
.user__menu .btn { width: 100%; margin-top: 10px; }

/* ----------------------------------------------------------------- shared */
.view { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 72px; outline: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 11px 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(99, 56, 152, .32), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(99, 56, 152, .42), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
.btn--ghost:hover { border-color: #cdbfe6; }
.btn--soft { background: #f2ecfa; color: var(--navy); }
.btn--soft:hover { background: #e8dcf6; }
.btn--danger { background: #fff; border-color: #f3d0dc; color: #b42359; }
.btn--danger:hover { background: #fff3f7; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 11px; }
html[dir='rtl'] .flip { transform: scaleX(-1); display: inline-flex; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; background: #f2ecfa; color: var(--navy); line-height: 1.5;
}
.chip svg { width: 14px; height: 14px; }
.chip--ok { background: #e6f7ef; color: #047857; }
.chip--warn { background: #fff3e0; color: #92400e; }
.chip--bad { background: #fde8ee; color: #b42359; }

/* washi-tape label above section titles */
.kicker {
  display: inline-block; position: relative; padding: 3px 14px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
  background: linear-gradient(90deg, rgba(255, 214, 102, .55), rgba(255, 196, 92, .45));
  border-radius: 3px; transform: rotate(-1.4deg);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%);
}
html[dir='rtl'] .kicker { transform: rotate(1.4deg); }
html[lang='ar'] .kicker { letter-spacing: 0; font-size: 13.5px; }

/* hand-drawn marker underline */
.marker { position: relative; display: inline-block; z-index: 0; }
.marker::after, .hero h1 em::after, .section__head h2::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 52 7, 120 5, 236 9 M 14 19 C 80 13, 150 12, 228 15' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 52 7, 120 5, 236 9 M 14 19 C 80 13, 150 12, 228 15' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: var(--grad);
}
.section { margin-top: 72px; }
.section__head { margin-bottom: 24px; }
.section__head h2, .marker { z-index: 0; isolation: isolate; }
.files__head h1.marker::after { inset-inline-start: 0; bottom: -2px; width: min(150px, 80%); height: 13px; opacity: .55; }
.section__head h2 { position: relative; display: inline-block; font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; padding-bottom: 8px; }
.section__head h2::after { inset-inline-start: 0; bottom: -4px; width: min(160px, 70%); height: 14px; opacity: .55; }
html[lang='ar'] .section__head h2, html[lang='ar'] h1 { letter-spacing: 0; }
.section__head p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; column-gap: 44px; padding: 18px 0 6px;
}
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(99, 56, 152, .12); }
.hero h1 { margin-top: 20px; max-width: 15ch; font-size: clamp(36px, 4.9vw, 62px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
html[lang='ar'] .hero h1 { line-height: 1.4; max-width: 14ch; font-weight: 900; }
.hero h1 em { position: relative; font-style: normal; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; z-index: 0; }
.hero h1 em::after { inset-inline: -2%; bottom: -.12em; height: .3em; opacity: .35; }
.hero__lead { margin-top: 18px; max-width: 52ch; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); line-height: 1.8; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { min-height: 52px; padding: 13px 26px; font-size: 16px; border-radius: 16px; }
.stats { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-1);
}
.stats b { font-size: 22px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* portrait: transparent cut-out standing on the photo's warm yellow disc */
.hero__figure { position: relative; z-index: 1; display: flex; justify-content: center; pointer-events: none; padding: 26px 0 10px; }
.hero__stage { position: relative; width: min(100%, 470px); aspect-ratio: 1 / 1.12; }
.hero__glow {
  position: absolute; inset: 14% -12% -6%; border-radius: 50%; filter: blur(26px);
  background: radial-gradient(closest-side, rgba(202, 77, 151, .34), rgba(99, 56, 152, .26) 46%, rgba(46, 65, 161, .14) 72%, transparent 100%);
}
/* decorative circles (kept from the previous design), centred on the disc */
.hero__ring {
  position: absolute; left: 50%; bottom: -7.2%; width: 116%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; border: 1.5px solid rgba(99, 56, 152, .22);
}
.hero__ring::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed rgba(202, 77, 151, .34); animation: spin 90s linear infinite; }
.hero__frame {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 44.65% 44.65%;
  filter: drop-shadow(0 26px 34px rgba(255, 140, 40, .26)) drop-shadow(0 10px 18px rgba(44, 35, 128, .14));
}
.hero__disc {
  position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1; border-radius: 50%; background: var(--sun);
  box-shadow: inset 0 -26px 46px rgba(255, 112, 28, .30), inset 0 14px 34px rgba(255, 255, 255, .45);
}
.hero__disc::after { /* soft notebook lines on the disc */
  content: ''; position: absolute; inset: 0; border-radius: 50%; opacity: .5;
  background: repeating-linear-gradient(to bottom, transparent 0 21px, rgba(255, 255, 255, .28) 21px 22px);
}
.hero__portrait { position: absolute; bottom: 0; left: 50%; width: 106%; height: auto; transform: translateX(-50%); display: block; }
.hero__badge {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px;
  border-radius: 16px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.25; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero__badge b { display: block; font-size: 19px; font-weight: 800; color: var(--ink); direction: ltr; unicode-bidi: isolate; text-align: start; }
.hero__badge .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.hero__badge .ico svg { width: 19px; height: 19px; }
.hero__badge--a { top: 18%; inset-inline-start: -10%; }
.hero__badge--a .ico { background: var(--grad); }
.hero__badge--b { bottom: 12%; inset-inline-end: -8%; animation-delay: -3s; }
.hero__badge--b .ico { background: linear-gradient(135deg, #ff4d4d, #e60000); }
.hero__spark { position: absolute; width: 26px; height: 26px; color: var(--pink); animation: twinkle 4s ease-in-out infinite; }
.hero__spark svg { width: 100%; height: 100%; }
.hero__spark--1 { top: 4%; inset-inline-end: 12%; }
.hero__spark--2 { top: 46%; inset-inline-start: -4%; width: 16px; height: 16px; color: var(--indigo); animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: .9; } 50% { transform: scale(.7) rotate(20deg); opacity: .5; } }

/* -------------------------------------------------------------- videos */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.video { overflow: hidden; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #0b1020; overflow: hidden; }
.video__frame iframe, .video__frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.video__poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, .55)); }
.video__play {
  position: absolute; z-index: 1; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 16px 36px rgba(99, 56, 152, .5), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s;
}
.video__play svg { width: 30px; height: 30px; margin-inline-start: 3px; }
.video__poster:hover .video__play { transform: scale(1.07); }
.video__meta { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.video__meta h3 { font-size: 17px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }

.more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.more .btn { min-width: 200px; }
.more__note { font-size: 13.5px; color: var(--muted); font-weight: 600; text-align: center; }
.more__note a { color: var(--indigo); font-weight: 800; }
.btn__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
.allvideos { margin-top: 30px; }
.allvideos__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.allvideos__head h3 { font-size: 20px; font-weight: 800; }
.allvideos__head span { font-size: 14px; font-weight: 700; color: var(--muted); }
.videos--all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video--sm { border-radius: var(--r); }
.video--sm .video__play { width: 54px; height: 54px; }
.video--sm .video__play svg { width: 22px; height: 22px; }
.video--sm .video__meta { padding: 12px 14px 14px; gap: 4px; }
.video--sm .video__meta h3 { font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.video__date { font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ------------------------------------------------- how you get the training */
.delivery { position: relative; overflow: hidden; padding: 36px 34px 32px; }
.delivery::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad); }
.delivery .section__head { margin-bottom: 0; max-width: 72ch; }
.delivery .section__head p { color: var(--ink-2); }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li {
  position: relative; padding: 20px 20px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, #fff 0 29px, rgba(69, 86, 191, .07) 29px 30px);
}
.steps__n {
  width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--violet); background: #fff;
  border: 2px solid transparent; background-image: linear-gradient(#fff, #fff), var(--grad); background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 6px 14px rgba(99, 56, 152, .18);
}
.steps h3 { font-size: 17px; font-weight: 800; line-height: 1.45; }
.steps p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

.notice {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; padding: 16px 18px; border-radius: var(--r);
  background: linear-gradient(118deg, rgba(44, 35, 128, .06), rgba(202, 77, 151, .09)); border: 1px solid rgba(99, 56, 152, .24); text-align: start;
}
.notice__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--grad); color: #fff; box-shadow: 0 8px 16px rgba(99, 56, 152, .25); }
.notice h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); line-height: 1.45; }
.notice p { margin-top: 2px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.notice--sm { padding: 12px 14px; gap: 12px; align-items: center; }
.notice--sm .notice__icon { width: 36px; height: 36px; border-radius: 11px; }
.notice--sm p { margin: 0; font-size: 13.5px; }
.delivery .notice { margin-top: 20px; }
.learn__main .notice, .files .notice { margin-top: 18px; }

/* training areas blur while the window is not in front */
.guarded { transition: filter .12s ease; }
html.is-away .guarded { filter: blur(24px) saturate(.6); pointer-events: none; }

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.about { position: relative; padding: 32px; overflow: hidden; }
.about__top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; margin-bottom: 20px; }
.about__photo {
  position: relative; width: 172px; aspect-ratio: 1; border-radius: 50%; padding: 5px; flex: none;
  background: var(--grad); box-shadow: 0 18px 36px rgba(99, 56, 152, .30);
}
.about__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid #fff; background: var(--sun); }
.about__photo::after {
  content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px dashed rgba(202, 77, 151, .4); animation: spin 60s linear infinite;
}
.about__top h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.about__role { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 4px; }
/* the bio is written on the card's own ruled lines */
.about .bio {
  color: var(--ink-2); font-size: 16.5px; line-height: 34px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, rgba(69, 86, 191, .12) 33px, rgba(69, 86, 191, .12) 34px);
  background-position: 0 -4px;
}
html[lang='ar'] .about .bio { font-size: 17px; }
.about .bio + .bio { margin-top: 0; padding-top: 0; }
.about .bio strong { color: var(--ink); font-weight: 800; }
.badges { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.channels { display: grid; gap: 16px; }
.channels > h2 { font-size: 21px; font-weight: 800; }
.channel {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 18px; text-decoration: none; overflow: hidden; transition: transform .18s, box-shadow .2s;
}
.channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.channel__icon { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; color: #fff; flex: none; }
.channel__icon svg { width: 30px; height: 30px; }
.channel--yt .channel__icon { background: linear-gradient(135deg, #ff4d4d, #e60000); box-shadow: 0 10px 20px rgba(230, 0, 0, .28); }
.channel--ig .channel__icon { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); box-shadow: 0 10px 20px rgba(238, 42, 123, .28); }
.channel__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.channel__name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.channel__handle { font-size: 14px; font-weight: 700; color: var(--indigo); direction: ltr; display: inline-block; }
.channel__count { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.channel__count b { font-size: 22px; font-weight: 800; line-height: 1.25; direction: ltr; unicode-bidi: isolate; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.channel__desc { font-size: 13.5px; color: var(--muted); }
.channel--yt .btn { background: #0f172a; color: #fff; }
.channel--ig .btn { background: linear-gradient(45deg, #ee2a7b, #6228d7); color: #fff; }

/* ------------------------------------------------------------------ gates */
.gate { position: relative; max-width: 560px; margin: 44px auto 0; padding: 44px 34px 34px; text-align: center; overflow: hidden; }
.gate::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad); }
.gate__icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 16px 32px rgba(99, 56, 152, .32);
}
.gate__icon svg { width: 34px; height: 34px; }
.gate h1 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.gate__lead { margin-top: 6px; font-size: 18px; font-weight: 800; color: var(--violet); }
.gate--danger::before { background: linear-gradient(118deg, #b42359, #f1641e); }
.gate__icon--warn { background: linear-gradient(118deg, #b45309, #f59e0b); }
.gate__icon--bad { background: linear-gradient(118deg, #9f1239, #b42359); }
.gate__lead--bad { color: #b42359; }
.gate p { color: var(--ink-2); margin-top: 10px; }
.gate p b { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.gate .notice { margin-top: 24px; }
.gate__access {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); text-align: start; font-size: 14.5px; color: var(--ink-2);
}
.gate__access svg { flex: none; margin-top: 3px; color: var(--violet); }
.gate__actions { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate__actions .btn { min-width: 280px; }
.linkbtn { border: 0; background: none; padding: 6px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: underline; }

/* ---------------------------------------------------------------- lessons */
.learn { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.lesson-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; }
.lesson-head h1 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lesson-head .muted { color: var(--muted); font-size: 14px; font-weight: 700; }
.outline { padding: 22px 20px; position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; overscroll-behavior: contain; }
.outline__head h2 { font-size: 19px; font-weight: 800; }
.outline__head span { font-size: 13px; color: var(--muted); font-weight: 700; }
.progress { height: 7px; border-radius: 7px; background: #eeebf7; margin: 10px 0 6px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 7px; background: var(--grad); transition: width .3s; }
.module h3 { margin: 20px 0 8px; font-size: 13.5px; font-weight: 800; color: var(--violet); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.module h3::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); flex: none; }
html[lang='ar'] .module h3 { letter-spacing: 0; font-size: 14.5px; }
.module ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lesson {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px;
  padding: 9px 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: start;
}
.lesson:hover { background: var(--surface-2); }
.lesson.is-active { background: #f5effc; border-color: #dfd0f1; }
.lesson__n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 13px; font-weight: 800; background: #efecf8; color: var(--ink-2);
}
.lesson__n svg { width: 15px; height: 15px; }
.lesson.is-active .lesson__n { background: var(--grad); color: #fff; }
.lesson.is-done .lesson__n { background: #d9f5e9; color: var(--ok); }
.lesson__t { font-size: 14.5px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.lesson__d { font-size: 12.5px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.lesson:disabled { opacity: .55; cursor: not-allowed; }

/* ----------------------------------------------------------------- player */
.player {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #05060a; border-radius: var(--r-lg); box-shadow: var(--shadow-3); color: #fff; outline: none; direction: ltr;
}
.player__stage { position: relative; aspect-ratio: 16 / 9; background: #05060a; overflow: hidden; }
.player:fullscreen { border-radius: 0; }
.player:fullscreen .player__stage, .player.is-max .player__stage { aspect-ratio: auto; flex: 1; min-height: 0; }
.player.is-max { position: fixed; inset: 0; z-index: 300; border-radius: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.player__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.player__frame { position: absolute; inset: 0; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player__wm { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.player__big {
  position: absolute; z-index: 3; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 18px 40px rgba(99, 56, 152, .55), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s;
}
.player__big:hover { transform: scale(1.06); }
.player__big svg { width: 36px; height: 36px; margin-left: 4px; }
.player__spin {
  position: absolute; z-index: 3; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .22); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.player__cover {
  position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; background: #05060a;
}
.player__cover[data-kind='shield'] { background: #000; }
.player__cover-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(239, 68, 68, .16); color: #fca5a5; }
.player__cover-icon svg { width: 30px; height: 30px; }
.player__cover h2 { font-size: clamp(15px, 2.3vw, 22px); font-weight: 800; line-height: 1.45; max-width: 34ch; }
.player__cover p { color: #cbd5e1; font-size: 14.5px; max-width: 52ch; }
.player__cover .owner { color: #94a3b8; font-size: 13px; overflow-wrap: anywhere; }
.player__cover .btn { margin-top: 8px; }
html[lang='ar'] .player__cover { direction: rtl; font-family: var(--font); }
.player__poster { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1d1645, #05060a 70%); }
.player__poster span { position: absolute; bottom: 14%; left: 0; right: 0; text-align: center; color: #c4b5fd; font-weight: 700; font-size: 14px; font-family: var(--font); }

.player__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #0b0d14; border-top: 1px solid rgba(255, 255, 255, .06); }
.pbtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 11px; background: transparent; color: #e2e8f0; }
.pbtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pbtn--text { width: auto; padding: 0 10px; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.player__time { font-size: 13px; font-weight: 700; color: #cbd5e1; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; }
.player__seek { position: relative; flex: 1; height: 30px; min-width: 60px; cursor: pointer; touch-action: none; }
.player__seek::before, .player__seek i { content: ''; position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 5px; }
.player__seek::before { right: 0; background: rgba(255, 255, 255, .16); }
.player__seek .buf { background: rgba(255, 255, 255, .28); }
.player__seek .fill { background: var(--grad); }
.player__seek .knob { width: 15px; height: 15px; margin-top: -7.5px; margin-left: -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.player__vol { width: 78px; accent-color: #af409c; }
.player__label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 13px; font-weight: 700; font-family: var(--font); }
.player__label svg { width: 16px; height: 16px; color: #a78bfa; flex: none; }
.player__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ files */
.files__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.files__head h1 { position: relative; display: inline-block; font-size: clamp(27px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.files__head p { color: var(--muted); margin-top: 4px; max-width: 62ch; }

.phototool__frame {
  position: relative; width: 100%; height: min(78vh, 880px); min-height: 480px;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--surface-2);
}
.phototool__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 48px; min-width: min(340px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); color: var(--muted);
}
.search:focus-within { border-color: #b79ad6; box-shadow: 0 0 0 4px rgba(99, 56, 152, .14); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.group-title {
  display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 12px; padding: 5px 14px 5px 12px;
  font-size: 14px; font-weight: 800; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; box-shadow: var(--shadow-1);
}
.group-title svg { width: 18px; height: 18px; color: var(--violet); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); transition: transform .18s, box-shadow .2s; }
.file:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.file__icon {
  width: 50px; height: 60px; border-radius: 10px; display: grid; place-items: end center; padding-bottom: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: #64748b; position: relative; flex: none; direction: ltr;
}
.file__icon::before { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--surface) transparent transparent; }
.file__icon[data-kind='pdf'] { background: linear-gradient(160deg, #f87171, #dc2626); }
.file__icon[data-kind='zip'] { background: linear-gradient(160deg, #fbbf24, #d97706); }
.file__icon[data-kind='doc'] { background: linear-gradient(160deg, #60a5fa, #2563eb); }
.file__icon[data-kind='sheet'] { background: linear-gradient(160deg, #34d399, #059669); }
.file__icon[data-kind='code'] { background: linear-gradient(160deg, #a78bfa, #6d28d9); }
.file__icon[data-kind='media'] { background: linear-gradient(160deg, #f472b6, #db2777); }
.file__body { min-width: 0; }
.file__body h3 { font-size: 15.5px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.file__body p { font-size: 13px; color: var(--muted); font-weight: 600; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); font-weight: 700; }
.skeleton { height: 92px; border-radius: var(--r); background: linear-gradient(90deg, #efecf8, #f8f6fd, #efecf8); background-size: 200% 100%; animation: sheen 1.2s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ Etsy calc */
/* its own colour (Etsy orange) so it reads as a separate, public tool */
:root { --etsy: #f1641e; --etsy-2: #f59e0b; --etsy-ink: #b8430f; --etsy-soft: #fff4ec; --etsy-grad: linear-gradient(118deg, #f1641e 0%, #f5841f 55%, #f59e0b 100%); }
.nav a.nav__calc { color: var(--etsy-ink); background: linear-gradient(118deg, rgba(241, 100, 30, .09), rgba(245, 158, 11, .12)); box-shadow: inset 0 0 0 1px rgba(241, 100, 30, .24); margin-inline-start: 6px; }
.nav a.nav__calc svg { color: var(--etsy); opacity: 1; }
.nav a.nav__calc:hover { background: linear-gradient(118deg, rgba(241, 100, 30, .15), rgba(245, 158, 11, .18)); }
.nav a.nav__calc::after { background: var(--etsy-grad); }
.nav a.nav__calc[aria-current='page'] { color: #fff; background: var(--etsy-grad); box-shadow: 0 8px 18px rgba(241, 100, 30, .3); }
.nav a.nav__calc[aria-current='page'] svg { color: #fff; }
.nav a.nav__calc[aria-current='page']::after { transform: scaleX(0); }

/* ---------------------------------------------------------- offers / WhatsApp CTAs */
:root {
  --wa: #25d366; --wa-ink: #0c7a40; --wa-soft: #e8fbf0;
  --wa-grad: linear-gradient(118deg, #0fae5a 0%, #25d366 55%, #3ee07f 100%);
  /* the logo's own warm half (purple -> magenta -> pink) - a distinct, eye-catching
     accent for Offers that still reads as "Aabidecom", not the generic brand grad */
  --offer: #a83d9e; --offer-ink: #6b2560; --offer-soft: #fbeef8;
  --offer-grad: linear-gradient(118deg, #723ea7 0%, #af409c 55%, #ca4d97 100%);
  --offer-deep-grad: linear-gradient(160deg, #3f1f48 0%, #6b2a63 55%, #8a3b78 100%);
}
.nav a.nav__offers { color: var(--offer-ink); background: linear-gradient(118deg, rgba(114, 62, 167, .09), rgba(202, 77, 151, .12)); box-shadow: inset 0 0 0 1px rgba(168, 61, 158, .24); margin-inline-start: 6px; }
.nav a.nav__offers svg { color: var(--offer); opacity: 1; }
.nav a.nav__offers:hover { background: linear-gradient(118deg, rgba(114, 62, 167, .16), rgba(202, 77, 151, .2)); }
.nav a.nav__offers::after { background: var(--offer-grad); }
.nav a.nav__offers[aria-current='page'] { color: #fff; background: var(--offer-grad); box-shadow: 0 8px 18px rgba(168, 61, 158, .32); }
.nav a.nav__offers[aria-current='page'] svg { color: #fff; }
.nav a.nav__offers[aria-current='page']::after { transform: scaleX(0); }

/* Free consultation: a floating WhatsApp button on every screen. inset-inline-end
   puts it bottom-left in Arabic (RTL) and bottom-right in English (LTR). */
.wa-fab {
  position: fixed; z-index: 45; inset-inline-end: 28px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px;
  /* the original header look: soft green fill, green outline, dark green text
     (the white layer underneath keeps it readable while floating over content) */
  background: linear-gradient(118deg, rgba(37, 211, 102, .10), rgba(62, 224, 127, .16)), #fff;
  color: var(--wa-ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, .36), 0 10px 24px rgba(12, 122, 64, .16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-fab:hover {
  transform: translateY(-3px);
  background: linear-gradient(118deg, rgba(37, 211, 102, .18), rgba(62, 224, 127, .24)), #fff;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, .45), 0 14px 30px rgba(12, 122, 64, .22);
}
.wa-fab svg { width: 21px; height: 21px; flex: none; color: var(--wa); }
/* the calculator keeps a sticky result bar at the bottom on small screens: sit above it */
@media (max-width: 900px) { html[data-route='calc'] .wa-fab { bottom: 84px; } }

/* ------------------------------------------------------------ offers / packages */
.offers__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.offers__tag { display: flex; width: fit-content; margin: 0 auto 14px; align-items: center; gap: 7px; padding: 4px 14px 4px 8px; border-radius: 999px; background: var(--offer-soft); color: var(--offer-ink); font-size: 13px; font-weight: 800; border: 1px solid rgba(168, 61, 158, .22); }
.offers__tag svg { width: 18px; height: 18px; color: var(--offer); }
.offers__head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
html[lang='ar'] .offers__head h1 { letter-spacing: 0; }
.offers__head p { color: var(--muted); margin-top: 10px; font-size: 16.5px; max-width: 56ch; margin-inline: auto; }

.offers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; margin-top: 10px; }
.offer-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 22px 24px; border-radius: 24px; color: #fff;
  box-shadow: var(--shadow-2); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.offer-card:hover { transform: translateY(-4px); }
.offer-card--popular:hover { transform: translateY(-14px) scale(1.035); }
.offer-card::before { content: ''; position: absolute; inset: 0; opacity: .5; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 60%); pointer-events: none; }
.offer-card--basic { background: linear-gradient(160deg, #fdf6fc 0%, #f6e3f3 100%); color: var(--offer-ink); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(168, 61, 158, .16); }
.offer-card--pro { background: var(--offer-grad); color: #fff; }
.offer-card--premium { background: var(--offer-deep-grad); color: #fff; }
.offer-card--popular { transform: translateY(-10px) scale(1.035); box-shadow: 0 26px 50px rgba(168, 61, 158, .32); z-index: 2; }
.offer-card__ribbon { position: absolute; top: 16px; inset-inline-end: -34px; transform: rotate(35deg); background: #fff; color: var(--offer-ink); font-size: 12px; font-weight: 800; padding: 5px 40px; display: flex; align-items: center; gap: 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
html[dir='rtl'] .offer-card__ribbon { transform: rotate(-35deg); }
.offer-card__ribbon svg { width: 13px; height: 13px; color: var(--offer); }
.offer-card__badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--offer-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; margin-bottom: 16px; }
.offer-card--basic .offer-card__badge { background: var(--offer-grad); color: #fff; }
.offer-card__badge svg { width: 14px; height: 14px; color: var(--offer); }
.offer-card--basic .offer-card__badge svg { color: #fff; }
.offer-card h3 { font-size: 22px; font-weight: 800; }
.offer-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.offer-card__price b { font-size: 38px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.offer-card__price span { font-size: 15px; font-weight: 700; opacity: .85; }
.offer-card__onetime { font-size: 13px; opacity: .8; margin-top: 2px; }
.offer-card__mini { margin: 18px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.offer-card__mini li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.offer-card__mini svg { width: 17px; height: 17px; flex: none; margin-top: 2px; opacity: .9; }
.offer-card__cta { margin-top: auto; width: 100%; justify-content: center; }
.offer-card--basic .offer-card__cta { background: var(--offer-grad); color: #fff; border: 0; box-shadow: 0 8px 18px rgba(168, 61, 158, .28); }
.offer-card--basic .offer-card__cta:hover { box-shadow: 0 12px 22px rgba(168, 61, 158, .36); }
.offer-card--premium .offer-card__cta { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.offer-card--premium .offer-card__cta:hover { background: rgba(255, 255, 255, .22); }
.offer-card--pro .offer-card__cta--pop { background: #fff; color: var(--offer-ink); box-shadow: 0 10px 22px rgba(63, 31, 72, .25); }
.offer-card--pro .offer-card__cta--pop:hover { background: #fdf6fc; }

/* ---- services: equal cards in the calculator's "pressed" orange, none favoured ---- */
.offers__tag--etsy { background: var(--etsy-soft); color: var(--etsy-ink); border-color: rgba(241, 100, 30, .22); }
.offers__tag--etsy svg { color: var(--etsy); }
.offers__grid--even { align-items: stretch; }
.offer-card--service { background: var(--etsy-grad); color: #fff; box-shadow: 0 16px 34px rgba(241, 100, 30, .24); }
.offer-card--service h3 { font-size: 20px; line-height: 1.45; }
.offer-card--service .offer-card__cta { background: #fff; color: var(--etsy-ink); border: 0; box-shadow: 0 10px 22px rgba(184, 67, 15, .22); }
.offer-card--service .offer-card__cta:hover { background: var(--etsy-soft); }
.offer-detail--service .offer-detail__head { background: var(--etsy-grad); color: #fff; }
.offer-detail--service .offer-specs__k svg, .offer-detail--service .offer-bullets li svg { color: var(--etsy); opacity: 1; }
.offer-detail--service .offer-bullets b { color: var(--etsy-ink); }
.products__empty { max-width: 560px; margin: 0 auto; }

.offers__pay { margin-top: 40px; padding: 28px 24px; text-align: center; }
.offers__pay h2 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.pay-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pay-badge { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
html[dir='rtl'] .pay-badge { padding: 10px 10px 10px 18px; }
.pay-badge__mark { display: block; width: 38px; height: 38px; border-radius: 10px; flex: none; object-fit: cover; }
.pay-badge__name { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* ---- offer detail page ---- */
.offer-detail { max-width: 760px; margin: 0 auto; }
.offer-detail__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.offer-detail__back svg { width: 17px; height: 17px; }
html[dir='rtl'] .offer-detail__back svg { transform: scaleX(-1); }
.offer-detail__back:hover { color: var(--ink); }
.offer-detail__head { position: relative; padding: 34px 28px; border-radius: 26px; color: #fff; margin-bottom: 30px; overflow: hidden; }
.offer-detail--basic .offer-detail__head { background: linear-gradient(160deg, #fdf6fc 0%, #f6e3f3 100%); color: var(--offer-ink); box-shadow: inset 0 0 0 1px rgba(168, 61, 158, .16); }
.offer-detail--pro .offer-detail__head { background: var(--offer-grad); color: #fff; }
.offer-detail--premium .offer-detail__head { background: var(--offer-deep-grad); color: #fff; }
.offer-detail__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--offer-ink); font-size: 11.5px; font-weight: 800; margin-bottom: 14px; }
.offer-detail--basic .offer-detail__badge { background: var(--offer-grad); color: #fff; }
.offer-detail__badge svg { width: 14px; height: 14px; color: var(--offer); }
.offer-detail--basic .offer-detail__badge svg { color: #fff; }
.offer-detail__ribbon { position: absolute; top: 20px; inset-inline-end: 20px; display: flex; align-items: center; gap: 5px; background: #fff; color: var(--offer-ink); font-size: 12.5px; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.offer-detail__ribbon svg { width: 14px; height: 14px; color: var(--offer); }
.offer-detail__head h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.offer-detail__price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.offer-detail__price b { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer-detail__price span { font-size: 15px; font-weight: 700; opacity: .85; }
.offer-detail__price i { font-style: normal; font-size: 13px; opacity: .75; margin-inline-start: 4px; }

.offer-perks { margin-bottom: 28px; }
.offer-perks h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.offer-perks h2 svg { width: 20px; height: 20px; color: var(--offer); }
.offer-perks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.offer-perk { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--offer-soft); border: 1px solid rgba(168, 61, 158, .2); }
.offer-perk__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--offer-grad); color: #fff; flex: none; }
.offer-perk__icon svg { width: 18px; height: 18px; }
.offer-perk p { font-size: 14px; line-height: 1.7; color: var(--ink-2); font-weight: 600; }

.offer-specs { padding: 6px 20px; margin-bottom: 28px; }
.offer-specs__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.offer-specs__row:last-child { border-bottom: 0; }
.offer-specs__k { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: 14.5px; }
.offer-specs__k svg { width: 17px; height: 17px; color: var(--violet); opacity: .8; }
.offer-specs__v { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.offer-specs__v.is-strong { color: var(--offer-ink); }

.offer-bullets { margin-bottom: 30px; }
.offer-bullets h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.offer-bullets ul { display: flex; flex-direction: column; gap: 12px; }
.offer-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.offer-bullets li svg { width: 18px; height: 18px; color: var(--violet); opacity: .85; flex: none; margin-top: 2px; }
.offer-bullets li.is-strong { font-weight: 800; color: var(--ink); }
.offer-bullets li.is-strong svg { color: var(--offer); opacity: 1; }

.offer-detail__cta { width: 100%; justify-content: center; background: var(--wa-grad); box-shadow: 0 12px 24px rgba(37, 211, 102, .32); }
.offer-detail__cta:hover { box-shadow: 0 16px 30px rgba(37, 211, 102, .4); }

@media (max-width: 900px) {
  .offers__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
  .offer-card--popular { order: -1; transform: none; box-shadow: 0 16px 34px rgba(168, 61, 158, .28); }
}
@media (max-width: 640px) {
  .offer-detail__price { gap: 6px 8px; }
  .offer-perks__grid { grid-template-columns: minmax(0, 1fr); }
  .offer-detail__head { padding: 26px 20px; }
  .offer-specs { padding: 2px 16px; }
}

.calc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.calc__head h1 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; margin-top: 10px; }
html[lang='ar'] .calc__head h1 { letter-spacing: 0; }
.calc__head p { color: var(--muted); margin-top: 4px; max-width: 62ch; }
.calc__tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--etsy-soft); color: var(--etsy-ink); font-size: 13px; font-weight: 800; border: 1px solid rgba(241, 100, 30, .22); }
.calc__tag svg { width: 20px; height: 20px; color: var(--etsy); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-color: rgba(241, 100, 30, .18); }
.calc__grid::before { content: ''; grid-column: 1 / -1; height: 5px; background: var(--etsy-grad); }
.calc__inputs { padding: 22px 22px 24px; display: grid; gap: 18px; align-content: start; }
.calc__out { padding: 22px 22px 24px; background: linear-gradient(180deg, #fffaf6, #fff); border-inline-start: 1px solid var(--line); }
.cg h2, .co__title, .co__sec h3 { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.cg h2 { font-size: 16px; margin-bottom: 8px; }
.cg h2 svg, .co__title svg, .co__sec h3 svg { width: 21px; height: 21px; color: var(--etsy); flex: none; }
.cg { display: grid; gap: 8px; }
.cg > h2 + * { margin-top: 0; }
.cf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #f7f5fb; border: 1px solid #efebf7; }
.cf__label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); justify-self: end; text-align: end; }
.cf__hint { display: inline-grid; color: var(--muted); cursor: help; font-style: normal; }
.cf__hint svg { width: 15px; height: 15px; }
.cf__input { display: flex; align-items: stretch; min-height: 44px; border-radius: 11px; overflow: hidden; background: #fff; border: 1px solid var(--line); direction: ltr; }
.cf__input:focus-within { border-color: rgba(241, 100, 30, .6); box-shadow: 0 0 0 4px rgba(241, 100, 30, .14); }
.cf__input b { display: grid; place-items: center; padding: 0 11px; background: var(--etsy-grad); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; }
.cf__input input, .cf__input select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 12px; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cf__input select { cursor: pointer; }
.ct { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #f7f5fb; border: 1px solid #efebf7; font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ct input { width: 19px; height: 19px; accent-color: var(--etsy); flex: none; }
.cseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: #f1eef9; border: 1px solid var(--line); }
.cseg button { border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 800; color: var(--muted); }
.cseg button[aria-pressed='true'] { background: #fff; color: var(--etsy-ink); box-shadow: var(--shadow-1); }

.co__title { font-size: 18px; margin-bottom: 12px; }
.co__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co__big { display: grid; justify-items: center; gap: 2px; padding: 16px 10px; border-radius: 16px; background: var(--etsy-soft); border: 1px solid rgba(241, 100, 30, .16); text-align: center; }
.co__big span { font-size: 14px; font-weight: 800; color: var(--ink); }
.co__big b { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--etsy); line-height: 1.3; font-variant-numeric: tabular-nums; }
.co__big small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.co__big.is-good { background: #ecfdf5; border-color: rgba(5, 150, 105, .2); }
.co__big.is-good b { color: #047857; }
.co__big.is-bad { background: #fff1f2; border-color: rgba(225, 29, 72, .2); }
.co__big.is-bad b { color: #be123c; }
.co__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.co__stats div { display: grid; justify-items: center; gap: 2px; padding: 11px 6px; border-radius: 14px; background: #f5f3f9; text-align: center; }
.co__stats span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.co__stats b { font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.co__sec { margin-top: 16px; padding-top: 12px; border-top: 1px dashed #eadfd4; }
.co__sec h3 { font-size: 15.5px; margin-bottom: 4px; }
.cr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.cr__v { display: grid; justify-items: end; text-align: end; }
.cr__v b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr__v small { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cr--minus .cr__v b { color: #b4233c; }
.cr--strong { font-weight: 800; color: var(--ink); }
.cr--strong .cr__v b { font-weight: 800; }
.cr--strong:not(.cr--minus) .cr__v b { color: var(--ink); }
.co__tip { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; font-size: 14px; font-weight: 700; color: #92400e; }
.co__tip b { color: var(--etsy-ink); font-size: 15px; }
.co__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.co__stats .is-etsy { background: var(--etsy-soft); }
.co__stats .is-etsy b { color: var(--etsy); }
.ct .cf__hint { margin-inline-start: auto; }

/* fee table: deduction | rate | before tax | TVA | total */
.ft { margin-top: 6px; border: 1px solid #f1e2d6; border-radius: 14px; overflow: hidden; background: #fff; }
.ft__row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr) minmax(0, .8fr) minmax(0, .7fr) minmax(0, .85fr); align-items: center; gap: 8px; padding: 10px 12px; font-size: 13.5px; }
.ft__row + .ft__row { border-top: 1px solid #f5ece4; }
.ft__row > span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); text-align: end; white-space: nowrap; }
.ft__row > span.ft__name { display: flex; align-items: center; gap: 8px; text-align: start; white-space: normal; color: var(--ink); font-weight: 800; }
.ft__row > span.ft__rate { text-align: start; color: var(--muted); font-weight: 700; white-space: normal; }
.ft__name i { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--etsy-ink); background: var(--etsy-soft); }
.ft__head { background: #fbf6f1; }
.ft__head > span { font-size: 12px; font-weight: 800; color: var(--muted); white-space: normal; }
.ft__head > span:first-child, .ft__head > span:nth-child(2) { text-align: start; }
.ft__sum { color: #b4233c !important; font-weight: 800 !important; }
.ft__foot { background: var(--etsy-soft); }
.ft__foot > span { color: var(--ink); font-weight: 800; }
.co__hint { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.co__deposit { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #f5f3f9; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.co__deposit svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
@media (max-width: 1180px) and (min-width: 901px) {
  .co__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .co__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft__head { display: none; }
  .ft__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; padding: 12px; }
  .ft__row > span.ft__name { grid-column: 1 / 3; }
  .ft__row > span.ft__rate { grid-column: 3; text-align: end; }
  .ft__row > span[data-l] { display: grid; gap: 1px; text-align: center; padding: 6px 4px; border-radius: 10px; background: #faf7f4; }
  .ft__row > span[data-l]::before { content: attr(data-l); font-size: 11px; font-weight: 700; color: var(--muted); }
  .ft__foot > span[data-l] { background: #fff; }
}

.calc__mini { display: none; }
@media (max-width: 900px) {
  .calc__mini {
    position: sticky; z-index: 40; bottom: calc(var(--tabbar) + 10px); margin-top: 14px;
    display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; text-decoration: none;
    background: #fff; border: 1px solid rgba(241, 100, 30, .3); box-shadow: 0 12px 28px rgba(184, 67, 15, .18);
    font-size: 13.5px; font-weight: 800; color: var(--ink-2);
  }
  .calc__mini b { font-size: 17px; color: var(--etsy); margin-inline-start: auto; font-variant-numeric: tabular-nums; }
  .calc__mini i { font-style: normal; font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--etsy-soft); color: var(--etsy-ink); }
  .calc__mini.is-good b { color: #047857; }
  .calc__mini.is-good i { background: #ecfdf5; color: #047857; }
  .calc__mini.is-bad b { color: #be123c; }
  .calc__mini.is-bad i { background: #fff1f2; color: #be123c; }
}
.calc__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.calc__note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

/* ------------------------------------------------------------------ admin */
.admin__head { margin-bottom: 22px; }
.admin__head h1 { position: relative; display: inline-block; font-size: clamp(27px, 4vw, 36px); font-weight: 800; }
.admin__head p { color: var(--muted); margin-top: 4px; }
.admin { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin__col { display: grid; gap: 20px; }
.panel { padding: 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel__head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.panel__head h2 svg { width: 22px; height: 22px; color: var(--violet); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field textarea, .field input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; color: var(--ink); resize: vertical;
}
.field textarea { min-height: 96px; direction: ltr; text-align: start; }
.field textarea:focus, .field input:focus { outline: 0; border-color: #b79ad6; box-shadow: 0 0 0 4px rgba(99, 56, 152, .14); }
.help { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.result { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); display: grid; gap: 2px; }
.result .ok { color: var(--ok); }
.result .bad { color: #b42359; overflow-wrap: anywhere; }
.slist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow: auto; }
.slist li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.slist .who { min-width: 0; }
.slist .who b { display: block; font-size: 14.5px; direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slist .who small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.kpi b { display: block; font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.kpi span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.feed li::before { content: ''; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #c4b5fd; }
.feed li.is-alert::before { background: #ef4444; }
.feed .what { font-weight: 800; color: var(--ink); }
.feed .meta { color: var(--muted); font-size: 12.5px; direction: ltr; text-align: start; overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .46); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .18s ease; }
.modal__card { position: relative; width: min(100%, 440px); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px 24px 22px; background: #fff; border-radius: 26px; box-shadow: var(--shadow-3); animation: rise .22s ease; }
.modal__card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad); }
.modal__logo { display: block; height: 46px; width: auto; margin: 0 auto 10px; }
.modal h2 { text-align: center; font-size: 21px; font-weight: 800; }
.modal__sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.modal__tag { display: flex; justify-content: center; margin: 12px 0 6px; }
.modal__note { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed #d8cdee; border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.accounts { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.accounts li + li { border-top: 1px solid var(--line); }
.account { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: #fff; text-align: start; }
.account:hover { background: var(--surface-2); }
.account .avatar { width: 38px; height: 38px; font-size: 15px; }
.account b { display: block; font-size: 14.5px; }
.account small { display: block; font-size: 13px; color: var(--muted); direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account--other .avatar { background: #efecf8; color: var(--violet); }
.account--other .avatar svg { width: 18px; height: 18px; }
.modal form { margin-top: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 4px 0 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal .error { color: #b42359; font-size: 13.5px; font-weight: 700; margin: -6px 0 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

/* ----------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.footer__in { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.toast {
  position: fixed; inset-inline: 0; bottom: calc(24px + var(--tabbar)); margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); z-index: 500;
  padding: 12px 18px; border-radius: 14px; background: #0f172a; color: #fff; font-size: 14.5px; font-weight: 700; box-shadow: var(--shadow-3);
}
.noscript { padding: 24px; text-align: center; }

/* ======================================================= tablet (≤ 1080) */
@media (max-width: 1080px) {
  :root { --margin-x: 40px; }
  .learn { grid-template-columns: minmax(0, 1fr); }
  .outline { position: static; max-height: none; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels > h2 { grid-column: 1 / -1; }
}
/* ---- header: small laptop / tablet ---------------------------------------
   Measured: brand (≈250) + five sections (≈650) + controls (≈290) + gaps need
   about 1270px. Below that the header becomes two tidy rows: brand and controls
   on top, the sections centred on their own line underneath (one line, never
   wrapping - it fits down to the 760px phone layout). */
@media (max-width: 1299px) {
  .topbar__in { grid-template-columns: 1fr auto; padding: 8px 24px 0; row-gap: 2px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; padding-bottom: 4px; }
  .brand__mark { height: 46px; }
  .brand__name { font-size: 25px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 18px; }
  .hero__copy { align-items: center; }
  .hero h1, html[lang='ar'] .hero h1 { max-width: 18ch; }
  .hero__cta, .stats { justify-content: center; }
  .hero__figure { padding-top: 34px; }
  .hero__stage { width: min(76%, 420px); }
  .videos--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================================== phone (≤ 760) */
@media (max-width: 760px) {
  :root { --margin-x: 12px; --rule: 30px; --tabbar: calc(70px + env(safe-area-inset-bottom)); }
  .paper::after { display: none; }
  body { font-size: 15.5px; }
  /* a blurred header would trap the fixed tab bar inside it: solid header on phones */
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
  .topbar__in { grid-template-columns: 1fr auto; padding: 8px 14px; gap: 8px; }
  /* on a phone the brand may shrink (never push the page wider than the screen) */
  .brand { gap: 10px; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__mark { height: 44px; }
  .brand__name { font-size: 24px; }
  .brand__sub { font-size: 11.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
  .lang button { padding: 5px 10px; font-size: 13px; min-width: 34px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .controls { gap: 6px; }
  .user__name, .user__btn > svg { display: none; }
  .user__btn { padding: 3px; }
  .gbtn .btn__txt { display: none; }
  .gbtn .btn { padding: 8px 10px; min-height: 40px; }

  /* app-style tab bar at the bottom */
  .nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
    grid-column: auto; grid-row: auto; justify-self: stretch; align-items: start;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 26px rgba(44, 35, 128, .09);
  }
  .nav a, .nav__dd-trigger { flex-direction: column; gap: 3px; padding: 4px 0; border-radius: 14px; font-size: 10.5px; font-weight: 800; color: var(--muted); line-height: 1.25; width: 100%; min-width: 0; }
  .nav__dd { width: 100%; min-width: 0; }
  .nav a::after, .nav__dd-trigger::after { display: none; }
  .nav a svg, .nav__dd-trigger svg { width: 21px; height: 21px; padding: 4px 11px; box-sizing: content-box; border-radius: 14px; color: currentColor; opacity: 1; transition: background .2s, color .2s; }
  .nav__dd-caret { display: none; }
  .nav a[aria-current='page'], .nav__dd-trigger[aria-current='page'] { color: var(--violet); background: transparent; }
  .nav a[aria-current='page'] svg, .nav__dd-trigger[aria-current='page'] svg { background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(99, 56, 152, .3); }
  .nav__home { display: inline-flex !important; }
  .nav__short { display: inline !important; }
  .nav__long { display: none; }
  .nav__dropdown { position: fixed; top: auto; bottom: calc(var(--tabbar) + 8px); inset-inline: 16px; transform: none; max-width: none; }
  html[dir='rtl'] .nav__dropdown { transform: none; }
  /* inside the student-area sheet the links are a compact list, not tabs */
  .nav .nav__dropdown-item { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 14px; font-size: 14.5px; color: #0f172a; }
  .nav .nav__dropdown-item svg, .nav .nav__dropdown-item[aria-current='page'] svg { width: 19px; height: 19px; padding: 0; background: none; box-shadow: none; color: var(--violet); }
  .nav .nav__dropdown-item--feature { color: var(--etsy-ink); }
  .nav .nav__dropdown-item--feature svg, .nav .nav__dropdown-item--feature[aria-current='page'] svg { color: var(--etsy); }
  .nav .nav__dropdown-item[aria-current='page'] { background: rgba(99, 56, 152, .1); color: var(--navy); }
  /* six tabs: Home, Student area, Services, Products, Offers, Calc */
  .nav a.nav__offers, .nav a.nav__calc { margin: 0; background: transparent; box-shadow: none; }
  .nav a.nav__offers { color: var(--offer-ink); }
  .nav a.nav__offers svg { color: var(--offer); }
  .nav a.nav__offers[aria-current='page'] { background: transparent; box-shadow: none; color: var(--offer-ink); }
  .nav a.nav__offers[aria-current='page'] svg { background: var(--offer-grad); color: #fff; box-shadow: 0 6px 14px rgba(168, 61, 158, .3); }
  /* same button as on desktop, only moved above the tab bar */
  .wa-fab { inset-inline-end: 14px; bottom: calc(var(--tabbar) + 14px); }
  /* the calculator keeps its own sticky result bar at the bottom: sit above it */
  html[data-route='calc'] .wa-fab { bottom: calc(var(--tabbar) + 74px); }

  .view { padding: 18px 16px 40px; }
  .section { margin-top: 52px; }
  .hero { padding-top: 6px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); margin-top: 16px; }
  .hero__lead { font-size: 16px; }
  .hero__cta { width: 100%; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .stats li { flex-direction: column; justify-content: center; gap: 2px; padding: 10px 6px; font-size: 11.5px; line-height: 1.35; text-align: center; }
  .stats b { font-size: 20px; line-height: 1.2; }
  .hero__figure { padding: 34px 0 0; }
  .hero__stage { width: min(84%, 340px); }
  .hero__badge { padding: 7px 10px 7px 8px; font-size: 11.5px; gap: 8px; border-radius: 13px; }
  .hero__badge b { font-size: 16px; }
  .hero__badge .ico { width: 30px; height: 30px; border-radius: 9px; }
  .hero__badge--a { inset-inline-start: -6%; top: 14%; }
  .hero__badge--b { inset-inline-end: -6%; }
  .videos { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .videos--all { grid-template-columns: minmax(0, 1fr); }
  .delivery { padding: 28px 18px 20px; }
  .about { padding: 24px 18px; }
  .about__top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 16px; }
  .about__photo { width: 132px; }
  .about .bio { font-size: 16px; line-height: 32px; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(69, 86, 191, .12) 31px, rgba(69, 86, 191, .12) 32px); }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .gate { padding: 34px 18px 22px; margin-top: 16px; border-radius: 22px; }
  .gate__actions .btn { min-width: 0; width: 100%; }
  .file-grid { grid-template-columns: minmax(0, 1fr); }
  .files__head { margin-bottom: 14px; }
  .search { width: 100%; }
  .phototool__frame { height: 70vh; min-height: 420px; border-radius: 16px; }

  /* lessons: edge-to-edge player like a video app */
  .learn__main #player, .learn__main .player { margin-inline: -16px; border-radius: 0; }
  .lesson-head { margin-top: 14px; }
  .outline { padding: 18px 14px; border-radius: 20px; }
  .player__bar { gap: 2px; padding: 6px; }
  .pbtn { width: 40px; height: 40px; }
  .player__vol { display: none; }
  .player__big { width: 72px; height: 72px; }
  .player__big svg { width: 30px; height: 30px; }

  .admin__head { margin-bottom: 14px; }
  .panel { padding: 18px 14px; }
  .kpi b { font-size: 22px; }

  .modal { place-items: end center; padding: 0; }
  .modal__card { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 26px 18px calc(18px + env(safe-area-inset-bottom)); }
  .modal__actions .btn { flex: 1; }
  .footer__in { padding: 16px; }
}
/* calc: tablet = one column; phone = stacked fields + 5-tab bar */
@media (max-width: 900px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
  .calc__out { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav a.nav__calc { color: var(--etsy-ink); }
  .nav a.nav__calc svg { color: var(--etsy); }
  .nav a.nav__calc[aria-current='page'] { background: transparent; box-shadow: none; color: var(--etsy-ink); }
  .nav a.nav__calc[aria-current='page'] svg { background: var(--etsy-grad); color: #fff; box-shadow: 0 6px 14px rgba(241, 100, 30, .3); }
  html[lang='ar'] .nav a, html[lang='ar'] .nav__dd-trigger { font-size: 11px; }
  .calc__head .btn { align-self: flex-start; }
  .calc__inputs, .calc__out { padding: 18px 14px 20px; }
  .cf { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cf__label { justify-self: start; text-align: start; }
  .co__stats b { font-size: 13.5px; }
}
@media (max-width: 400px) {
  .brand__sub { display: none; }
  .brand__mark { height: 40px; }
  .brand__name { font-size: 22px; }
  .hero__badge--a { top: 6%; }
}
/* the narrowest phones (320px): a smaller brand so it never touches the controls */
@media (max-width: 350px) {
  .topbar__in { padding: 8px 10px; gap: 6px; }
  .brand { gap: 7px; }
  .brand__mark { height: 34px; }
  .brand__name { font-size: 19px; }
  .lang button { padding: 5px 8px; min-width: 30px; }
}
@media (max-width: 460px) {
  .file { grid-template-columns: auto 1fr; }
  .file .btn { grid-column: 1 / -1; }
  .channel { grid-template-columns: auto 1fr; }
  .channel .btn { grid-column: 1 / -1; }
  .slist li { grid-template-columns: auto 1fr; }
  .slist li .btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* nothing useful comes out of the printer or "Save as PDF" */
@media print { body > * { display: none !important; } }
