/* =====================================================================
   EduSpark — soft gradient education theme (blue → violet)
   Mobile-first · RTL/LTR via logical properties · light & airy
   ===================================================================== */
:root {
  --primary: #2f57ef;
  --primary-600: #2447d1;
  --secondary: #b966e7;
  --pink: #f05ea7;
  --grad: linear-gradient(90deg, #2f57ef 0%, #b966e7 100%);
  --grad-135: linear-gradient(135deg, #2f57ef 0%, #8b5cf6 55%, #b966e7 100%);
  --grad-soft: linear-gradient(135deg, #eef1ff 0%, #f6ecff 100%);
  --heading: #192335;
  --body: #6b7385;
  --muted: #8f95a6;
  --bg: #f7f7fd;
  --surface: #ffffff;
  --lavender: #eef0ff;
  --border: #e9e7f5;
  --success: #3eb75e;
  --warning: #f7a531;
  --danger: #ff4d6d;
  --info: #1cb8d8;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 14px rgba(47, 87, 239, .06);
  --shadow: 0 12px 40px rgba(47, 87, 239, .09);
  --shadow-lg: 0 24px 60px rgba(76, 60, 200, .14);
  --font: 'Outfit', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sidebar-w: 272px;
  --tabbar-h: 68px;
}
.lang-ar { --font: 'Cairo', 'Outfit', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--body); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; line-height: 1.25; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; }
::selection { background: rgba(47, 87, 239, .18); }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-muted-soft { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- decorative page background (soft blobs) ---------- */
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, #f4f3ff 0%, #fbf9ff 40%, #ffffff 100%); }
.page-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.page-bg .b1 { width: 520px; height: 520px; background: #d9e0ff; top: -160px; inset-inline-start: -140px; }
.page-bg .b2 { width: 460px; height: 460px; background: #f1dcff; top: 120px; inset-inline-end: -160px; }
.page-bg .b3 { width: 380px; height: 380px; background: #ffe3f1; bottom: -120px; inset-inline-start: 30%; opacity: .35; }

/* ---------- buttons ---------- */
.btn-gradient, .btn-gradient-outline, .btn-soft, .btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s; white-space: nowrap; text-decoration: none;
}
.btn-gradient { background: var(--grad); background-size: 200% auto; color: #fff !important; box-shadow: 0 10px 24px rgba(47, 87, 239, .28); }
.btn-gradient:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 14px 30px rgba(185, 102, 231, .35); }
.btn-gradient:disabled { opacity: .6; transform: none; }
.btn-gradient-outline { position: relative; background: #fff; color: var(--heading) !important; isolation: isolate; }
.btn-gradient-outline::before { content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; }
.btn-gradient-outline:hover { background: var(--grad); color: #fff !important; }
.btn-soft { background: var(--lavender); color: var(--primary) !important; }
.btn-soft:hover { background: var(--primary); color: #fff !important; }
.btn-white { background: #fff; color: var(--heading) !important; box-shadow: var(--shadow-sm); }
.btn-sm-pill { min-height: 38px !important; padding: .4rem 1rem !important; font-size: .85rem !important; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--heading);
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; cursor: pointer;
}
.btn-icon:hover { background: var(--grad); color: #fff; border-color: transparent; }
.btn-chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .35rem .8rem; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--heading); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-chip:hover { border-color: var(--primary); color: var(--primary); }
.btn-chip.primary { background: var(--lavender); border-color: transparent; color: var(--primary); }
.btn-chip.primary:hover { background: var(--primary); color: #fff; }
.btn-chip.danger:hover { border-color: var(--danger); color: var(--danger); background: #fff0f3; }
.btn-chip.success { background: #e9f8ee; color: #23933f; border-color: transparent; }

/* ---------- badges / pills ---------- */
.section-pill, .label-pill {
  display: inline-block; padding: .3rem 1rem; border-radius: 999px; background: var(--lavender); color: var(--primary);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.lang-ar .section-pill, .lang-ar .label-pill { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.badge-soft { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-soft-primary { background: #e8edff; color: var(--primary); }
.badge-soft-success { background: #e6f7eb; color: #23933f; }
.badge-soft-warning { background: #fff3e0; color: #c97a06; }
.badge-soft-danger { background: #ffe8ed; color: #e0294b; }
.badge-soft-info { background: #e1f7fc; color: #0f8aa5; }
.badge-soft-secondary { background: #eff0f4; color: #6b7385; }
.badge-soft-violet { background: #f4e9fd; color: #9640c8; }

/* ---------- top offer bar & header ---------- */
.topbar-offer { background: linear-gradient(90deg, #110f2d, #1d1747 50%, #110f2d); color: #fff; font-size: .88rem; padding: .55rem 0; }
.offer-pill { background: var(--primary); padding: .2rem .9rem; border-radius: 999px; font-weight: 600; font-size: .8rem; }
.offer-link { color: #fff; font-weight: 700; }
.offer-link:hover { color: #d7c4ff; }

.site-header { position: sticky; top: 0; z-index: 1030; padding: .9rem 0; transition: all .3s; }
.site-header.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 6px 30px rgba(25, 35, 53, .06); padding: .55rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { max-height: 46px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 8px 20px rgba(47, 87, 239, .3); }
[dir="rtl"] .brand-mark { border-radius: 14px 14px 4px 14px; }
.brand-text { font-weight: 800; font-size: 1.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.main-nav { gap: .25rem; }
.main-nav a { color: var(--heading); font-weight: 600; padding: .5rem .8rem; border-radius: 999px; font-size: .95rem; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(47, 87, 239, .07); }
.mobile-menu { border: 0 !important; border-radius: 0; width: min(330px, 88vw) !important; }
.mobile-link { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; color: var(--heading); font-weight: 600; margin-bottom: .2rem; }
.mobile-link i { width: 22px; color: var(--primary); text-align: center; }
.mobile-link.active, .mobile-link:hover { background: var(--grad-soft); color: var(--primary); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 3rem 0 4rem; }
.hero-rating { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.25rem; }
.hero-rating .stars { color: #ff8f3c; letter-spacing: 2px; }
.hero-rating small { display: block; font-weight: 700; color: var(--heading); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.lang-ar .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero p.lead { font-size: 1.1rem; max-width: 540px; }
.hero-visual { position: relative; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; }
.hero-circle { position: absolute; width: min(440px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--grad-135); bottom: 0; opacity: .92; box-shadow: var(--shadow-lg); }
.hero-circle::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); animation: spin 40s linear infinite; }
.hero-photo { position: relative; z-index: 2; width: min(400px, 85%); aspect-ratio: 4/5; object-fit: cover; border-radius: 200px 200px 40px 40px; }
.hero-avatar-big { position: relative; z-index: 2; width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 7rem; margin-bottom: 40px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 60%); }
.float-card {
  position: absolute; z-index: 3; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; padding: .8rem 1rem; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; color: var(--heading); font-size: 1.15rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card.fc1 { top: 12%; inset-inline-start: 0; }
.float-card.fc2 { top: 34%; inset-inline-end: 0; animation-delay: -2s; }
.float-card.fc3 { bottom: 12%; inset-inline-start: 4%; animation-delay: -4s; }
.float-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.deco { position: absolute; pointer-events: none; z-index: 1; }
.deco-burst { width: 90px; height: 90px; top: 55%; inset-inline-start: -2%; background: repeating-conic-gradient(#ffc93c 0 6deg, transparent 6deg 18deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 18px, #000 19px); mask: radial-gradient(circle, transparent 18px, #000 19px); animation: spin 22s linear infinite; }
.deco-dots { width: 80px; height: 50px; top: 4%; inset-inline-end: 30%; background-image: radial-gradient(#f05ea7 2px, transparent 2.5px); background-size: 14px 14px; opacity: .7; }
.deco-zig { top: 70%; inset-inline-end: 4%; width: 60px; height: 20px; background: linear-gradient(135deg, transparent 33%, #8b9cff 33% 50%, transparent 50% 83%, #8b9cff 83%) 0 0 / 15px 20px; opacity: .7; }

/* stats strip under hero (like the white logo card) */
.stats-strip { margin-top: -2rem; position: relative; z-index: 3; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; }
.stats-strip .stat { text-align: center; padding: .5rem; }
.stats-strip .stat b { display: block; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats-strip .stat span { font-weight: 600; color: var(--heading); font-size: .92rem; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section-sm { padding: 3rem 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin: .75rem 0 .5rem; }
.section-head p { margin: 0; }
.section-alt { background: linear-gradient(180deg, rgba(238, 240, 255, .55), rgba(246, 236, 255, .35)); }
.page-hero { padding: 3rem 0 2.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
.breadcrumb-soft { display: inline-flex; gap: .5rem; align-items: center; background: #fff; padding: .35rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .88rem; }

/* ---------- cards ---------- */
.soft-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(233, 231, 245, .8); padding: 1.5rem; transition: transform .3s, box-shadow .3s; }
.soft-card.hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.soft-card.p-0 { padding: 0; overflow: hidden; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.card-title-row h2, .card-title-row h3, .card-title-row h5 { margin: 0; font-size: 1.12rem; }
.icon-box { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--grad); box-shadow: 0 10px 20px rgba(47, 87, 239, .22); flex-shrink: 0; }
.icon-box.soft { background: var(--lavender); color: var(--primary); box-shadow: none; }
.stage-card { text-align: center; padding: 2rem 1.5rem; height: 100%; }
.stage-card .icon-box { margin: 0 auto 1rem; width: 72px; height: 72px; border-radius: 24px; font-size: 1.8rem; }
.stage-card h3 { font-size: 1.25rem; }

.course-card { height: 100%; display: flex; flex-direction: column; }
.course-thumb { position: relative; aspect-ratio: 16/10; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; margin: .5rem .5rem 0; background: var(--grad-135); display: grid; place-items: center; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb .thumb-icon { font-size: 3rem; color: rgba(255, 255, 255, .9); }
.course-thumb .thumb-tag { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .92); color: var(--primary); padding: .2rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.course-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.course-meta i { color: var(--secondary); margin-inline-end: .25rem; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; border-top: 1px dashed var(--border); }
.price { font-weight: 800; color: var(--heading); font-size: 1.1rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .78rem; }

.video-preview { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-135); aspect-ratio: 16/9; box-shadow: var(--shadow-lg); }
.video-preview iframe, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #0d0b25; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.play-btn { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .25); border: 2px solid #fff; display: grid; place-items: center; font-size: 1.6rem; color: #fff; backdrop-filter: blur(6px); animation: pulse 2.2s infinite; }

.schedule-card { display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.schedule-row { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.schedule-row i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--lavender); color: var(--primary); font-size: .85rem; flex-shrink: 0; }
.capacity-bar { height: 8px; border-radius: 999px; background: #eef0f7; overflow: hidden; }
.capacity-bar span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

.fame-card { text-align: center; padding: 1.75rem 1.25rem; height: 100%; position: relative; overflow: hidden; }
.fame-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 90px; background: var(--grad-soft); }
.fame-photo { position: relative; width: 104px; height: 104px; margin: 0 auto 1rem; border-radius: 50%; padding: 4px; background: var(--grad); }
.fame-photo img, .fame-photo span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; display: grid; place-items: center; background: #fff; color: var(--primary); font-weight: 800; font-size: 1.8rem; }
.fame-medal { position: absolute; bottom: 0; inset-inline-end: 0; width: 34px; height: 34px; border-radius: 50%; background: #ffc93c; color: #7a4f00; display: grid; place-items: center; border: 3px solid #fff; }
.fame-score { display: inline-block; margin-top: .5rem; font-weight: 800; color: var(--primary); background: var(--lavender); padding: .2rem .8rem; border-radius: 999px; }

.testimonial-card { height: 100%; position: relative; }
.testimonial-card .quote { position: absolute; top: 1.2rem; inset-inline-end: 1.4rem; font-size: 2.5rem; color: #e6e9ff; }
.testimonial-card .stars { color: #ff9b26; }
.person { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.person img, .person .avatar-gradient { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.person b { color: var(--heading); display: block; line-height: 1.3; }
.person small { color: var(--muted); }

.about-photo-wrap { position: relative; padding: 1.25rem; }
.about-photo-wrap::before { content: ''; position: absolute; inset: 0 2.5rem 2.5rem 0; border-radius: var(--radius-xl); background: var(--grad-135); transform: rotate(-3deg); }
[dir="rtl"] .about-photo-wrap::before { inset: 0 0 2.5rem 2.5rem; transform: rotate(3deg); }
.about-photo { position: relative; border-radius: var(--radius-xl); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; background: #fff; display: grid; place-items: center; font-size: 6rem; color: var(--primary); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--heading); font-weight: 500; }
.check-list li i { color: #fff; background: var(--success); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; flex-shrink: 0; margin-top: 4px; }

.cta-band { background: var(--grad-135); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem); color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta-band::before { width: 280px; height: 280px; top: -110px; inset-inline-end: -60px; }
.cta-band::after { width: 180px; height: 180px; bottom: -80px; inset-inline-start: 10%; }

.accordion-soft .accordion-item { border: 0; border-radius: var(--radius) !important; margin-bottom: .8rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-soft .accordion-button { font-weight: 700; color: var(--heading); padding: 1.1rem 1.3rem; background: #fff; }
.accordion-soft .accordion-button:not(.collapsed) { color: var(--primary); background: var(--grad-soft); box-shadow: none; }
.accordion-soft .accordion-button:focus { box-shadow: none; }
.prose { color: var(--body); }
.prose h2, .prose h3 { margin-top: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { background: #fff; padding: 4rem 0 6.5rem; margin-top: 3rem; border-top: 1px solid var(--border); }
.footer-title { font-size: 1rem; margin-bottom: 1rem; }
.site-footer a:not(.social-btn):not(.btn-soft):not(.brand) { display: block; color: var(--body); margin-bottom: .55rem; }
.site-footer a:hover { color: var(--primary); }
.social-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--lavender); color: var(--primary); display: grid; place-items: center; }
.social-btn:hover { background: var(--grad); color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: .9rem; }
@media (min-width: 1200px) { .site-footer { padding-bottom: 2rem; } }

/* floating pill dock (mobile / tablet public site) */
.floating-dock {
  position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1040;
  display: flex; gap: .25rem; padding: .4rem; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 999px; box-shadow: 0 12px 40px rgba(25, 35, 53, .16); border: 1px solid #fff; max-width: calc(100vw - 24px);
}
.floating-dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 66px; padding: .45rem .6rem; border-radius: 999px; color: var(--heading); font-size: .72rem; font-weight: 600; }
.floating-dock a i { font-size: 1.05rem; }
.floating-dock a.dock-cta { background: #111; color: #fff; }
.floating-dock a:not(.dock-cta):hover { background: var(--lavender); color: var(--primary); }
.whatsapp-float { position: fixed; bottom: 96px; inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; z-index: 1035; box-shadow: 0 10px 25px rgba(37, 211, 102, .4); }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@media (min-width: 1200px) { .whatsapp-float { bottom: 24px; } }

/* ---------- forms ---------- */
.form-label { font-weight: 600; color: var(--heading); font-size: .9rem; margin-bottom: .4rem; }
.form-control, .form-select {
  min-height: 50px; border-radius: 14px; border: 1.5px solid var(--border); background-color: #fbfbff; color: var(--heading);
  padding: .65rem 1rem; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 87, 239, .12); background: #fff; }
.form-control-sm, .form-select-sm { min-height: 40px; border-radius: 12px; font-size: .9rem; }
.form-check-input { width: 1.25em; height: 1.25em; border-radius: .4em; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-switch .form-check-input { width: 2.6em; border-radius: 2em; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 1rem; color: var(--muted); pointer-events: none; }
.input-icon .form-control { padding-inline-start: 2.75rem; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.form-section { border-top: 1px dashed var(--border); padding-top: 1.25rem; margin-top: 1.25rem; }
.form-section-title { font-size: .95rem; font-weight: 700; color: var(--heading); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.form-section-title i { color: var(--primary); }
.chip-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--heading); transition: all .2s; }
.chip-check input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.chip-check input:focus-visible + span { outline: 3px solid rgba(47, 87, 239, .35); }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%); padding: 1rem 0 .25rem; margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; z-index: 5; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-side { display: none; background: var(--grad-135); color: #fff; padding: 3rem; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 2.2rem; font-weight: 800; }
.auth-side::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); bottom: -160px; inset-inline-end: -140px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem 3rem; }
.auth-card { width: 100%; max-width: 460px; }
.auth-tabs { display: flex; background: var(--lavender); border-radius: 999px; padding: .3rem; margin-bottom: 1.5rem; }
.auth-tabs a { flex: 1; text-align: center; padding: .6rem; border-radius: 999px; font-weight: 700; color: var(--body); font-size: .92rem; }
.auth-tabs a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1fr 1fr; } .auth-side { display: flex; flex-direction: column; justify-content: center; } }

/* =====================================================================
   DASHBOARD SHELL
   ===================================================================== */
.app-body { background: #f5f6fc; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: var(--sidebar-w); background: #fff; z-index: 1045;
  border-inline-end: 1px solid var(--border); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; }
.sidebar-profile { display: flex; gap: .75rem; align-items: center; margin: 0 1rem .5rem; padding: .85rem; border-radius: var(--radius); background: var(--grad-soft); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .5rem .85rem 2rem; scrollbar-width: thin; }
.nav-heading { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.1rem .75rem .45rem; }
.lang-ar .nav-heading { letter-spacing: 0; font-size: .8rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; border-radius: 12px; color: var(--body); font-weight: 600; font-size: .93rem;
  margin-bottom: .15rem; transition: all .2s; border: 0; background: transparent; text-align: start; min-height: 44px;
}
.sidebar-link i { width: 20px; text-align: center; font-size: 1rem; color: var(--muted); transition: color .2s; }
.sidebar-link:hover { background: var(--lavender); color: var(--primary); }
.sidebar-link:hover i { color: var(--primary); }
.sidebar-link.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(47, 87, 239, .25); }
.sidebar-link.active i { color: #fff; }
.nav-badge { margin-inline-start: auto; font-style: normal; background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .5rem; line-height: 1.5rem; min-width: 1.5rem; text-align: center; }
.sidebar-backdrop { display: none; }
.app-main { flex: 1; min-width: 0; margin-inline-start: var(--sidebar-w); display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .85rem clamp(1rem, 3vw, 2rem);
  background: rgba(245, 246, 252, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { margin: 0; font-size: .85rem; color: var(--muted); }
.topbar-user { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .25rem .9rem .25rem .25rem; font-weight: 600; color: var(--heading); min-height: 44px; }
[dir="rtl"] .topbar-user { padding: .25rem .25rem .25rem .9rem; }
.avatar-gradient { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.avatar-gradient.sm { width: 36px; height: 36px; font-size: .85rem; }
.avatar-gradient.lg { width: 84px; height: 84px; font-size: 1.8rem; }
.dot-badge { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; display: grid; place-items: center; border: 2px solid #fff; }
.notif-menu { width: min(340px, 92vw); padding: .25rem 0; border-radius: var(--radius); border: 0; box-shadow: var(--shadow-lg); }
.notif-item { display: flex; gap: .75rem; white-space: normal; padding: .7rem 1rem; align-items: flex-start; }
.notif-item i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lavender); color: var(--primary); flex-shrink: 0; }
.notif-item b { display: block; font-size: .88rem; color: var(--heading); font-weight: 600; }
.notif-item small { color: var(--muted); }
.notif-item.unread { background: #f6f7ff; }
.dropdown-menu { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: 10px; padding: .55rem .85rem; }
.app-content { padding: .5rem clamp(1rem, 3vw, 2rem) 2rem; flex: 1; }

.bottom-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center; box-shadow: 0 -8px 30px rgba(25, 35, 53, .06);
}
.bottom-tabs a, .bottom-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 700; background: none; border: 0; padding: .4rem 0; }
.bottom-tabs i { font-size: 1.15rem; width: 46px; height: 30px; display: grid; place-items: center; border-radius: 999px; transition: all .2s; }
.bottom-tabs a.active { color: var(--primary); }
.bottom-tabs a.active i { background: var(--grad); color: #fff; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-105%); box-shadow: var(--shadow-lg); }
  [dir="rtl"] .app-sidebar { transform: translateX(105%); }
  body.sidebar-open .app-sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(17, 15, 45, .45); z-index: 1044; backdrop-filter: blur(2px); }
  .app-main { margin-inline-start: 0; }
  .app-content { padding-bottom: calc(var(--tabbar-h) + 2rem + env(safe-area-inset-bottom)); }
}

/* stat cards */
.stat-card { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius-lg); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(233, 231, 245, .8); height: 100%; color: inherit; transition: transform .25s, box-shadow .25s; }
a.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.stat-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-value { font-size: 1.55rem; font-weight: 800; color: var(--heading); line-height: 1.15; }
.stat-label { font-size: .86rem; font-weight: 600; }
.stat-hint { font-size: .78rem; color: var(--muted); }
.tone-primary .stat-icon { background: #e8edff; color: var(--primary); }
.tone-violet .stat-icon { background: #f4e9fd; color: #9640c8; }
.tone-success .stat-icon { background: #e6f7eb; color: #23933f; }
.tone-warning .stat-icon { background: #fff3e0; color: #e08b0b; }
.tone-danger .stat-icon { background: #ffe8ed; color: #e0294b; }
.tone-info .stat-icon { background: #e1f7fc; color: #0f8aa5; }
.welcome-card { background: var(--grad-135); color: #fff; border-radius: var(--radius-xl); padding: clamp(1.4rem, 3vw, 2.2rem); position: relative; overflow: hidden; }
.welcome-card h2 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.welcome-card::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); top: -90px; inset-inline-end: -60px; }
.welcome-card .chip-light { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .18); padding: .3rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin: .2rem; }

/* progress */
.progress-ring { width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--primary) 0, var(--secondary) calc(var(--p) * 1%), #eceefa 0); display: grid; place-items: center; margin: 0 auto; }
.ring-inner { width: calc(var(--size) - 22px); height: calc(var(--size) - 22px); border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-inner b { font-size: 1.4rem; color: var(--heading); line-height: 1; }
.ring-inner small { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.soft-progress { height: 9px; border-radius: 999px; background: #eceefa; overflow: hidden; }
.soft-progress span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 1s ease; }
.soft-progress.tone-success span { background: linear-gradient(90deg, #3eb75e, #7bd88f); }
.soft-progress.tone-danger span { background: linear-gradient(90deg, #ff4d6d, #ff8fa3); }

/* list items */
.list-soft { list-style: none; margin: 0; padding: 0; }
.list-soft > li, .list-soft > a { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px dashed var(--border); color: inherit; }
.list-soft > li:last-child, .list-soft > a:last-child { border-bottom: 0; }
.list-soft .li-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--lavender); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.list-soft .li-body { min-width: 0; flex: 1; }
.list-soft .li-body b { display: block; color: var(--heading); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-soft .li-body small { color: var(--muted); }
.date-chip { width: 52px; text-align: center; border-radius: 14px; background: var(--grad); color: #fff; padding: .35rem 0; flex-shrink: 0; line-height: 1.1; }
.date-chip b { display: block; font-size: 1.2rem; }
.date-chip small { font-size: .7rem; text-transform: uppercase; }

/* tables → cards on small screens */
.table-wrap { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(233, 231, 245, .8); overflow: hidden; }
.table-soft { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
.table-soft th { background: #f8f8fe; color: var(--heading); font-weight: 700; font-size: .82rem; padding: .9rem 1rem; white-space: nowrap; text-align: start; border-bottom: 1px solid var(--border); }
.table-soft td { padding: .85rem 1rem; border-bottom: 1px solid #f1f0f8; vertical-align: middle; font-size: .92rem; text-align: start; }
.table-soft tr:last-child td { border-bottom: 0; }
.table-soft tbody tr { transition: background .15s; }
.table-soft tbody tr:hover { background: #fafaff; }
.table-soft .cell-main { font-weight: 700; color: var(--heading); }
.table-soft .actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767.98px) {
  .table-wrap { background: transparent; box-shadow: none; border: 0; overflow: visible; }
  .table-soft.mobile-cards thead { display: none; }
  .table-soft.mobile-cards, .table-soft.mobile-cards tbody, .table-soft.mobile-cards tr, .table-soft.mobile-cards td { display: block; width: 100%; }
  .table-soft.mobile-cards tr { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: .85rem; padding: .6rem .9rem; border: 1px solid rgba(233, 231, 245, .8); }
  .table-soft.mobile-cards td { border: 0; padding: .4rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: end; }
  .table-soft.mobile-cards td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .8rem; text-align: start; flex-shrink: 0; }
  .table-soft.mobile-cards td[data-label=""]::before { content: none; }
  .table-soft.mobile-cards td.cell-main { font-size: 1rem; }
  .table-soft.mobile-cards .actions { justify-content: flex-end; }
  .table-soft:not(.mobile-cards) { display: block; overflow-x: auto; background: #fff; border-radius: var(--radius); }
}

.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.1rem; }
.toolbar .form-control, .toolbar .form-select { min-height: 44px; width: auto; flex: 1 1 160px; max-width: 280px; }
@media (max-width: 575.98px) { .toolbar .form-control, .toolbar .form-select { max-width: none; flex-basis: 100%; } .toolbar .btn-gradient, .toolbar .btn-soft { flex: 1; } }
.pagination-soft .page-link { border: 0; border-radius: 12px !important; margin: 0 .2rem; color: var(--heading); font-weight: 700; min-width: 42px; text-align: center; }
.pagination-soft .active .page-link { background: var(--grad); color: #fff; }
.tabs-soft { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.25rem; scrollbar-width: none; }
.tabs-soft a { white-space: nowrap; padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--heading); font-weight: 600; font-size: .9rem; }
.tabs-soft a.active { background: var(--grad); color: #fff; border-color: transparent; }

.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-icon { width: 80px; height: 80px; margin: 0 auto 1rem; border-radius: 26px; background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; font-size: 2rem; }
.empty-state p { color: var(--muted); margin-bottom: 1rem; }

/* modals */
.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 1.1rem 1.4rem; }
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--border); }
@media (max-width: 575.98px) {
  .modal-dialog:not(.modal-keep) { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; }
  .modal-dialog:not(.modal-keep) .modal-content { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .modal.fade .modal-dialog:not(.modal-keep) { transform: translateY(40px); }
  .modal.show .modal-dialog:not(.modal-keep) { transform: none; }
}

/* toasts */
.toast-stack { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: .5rem; width: min(480px, calc(100vw - 24px)); }
.soft-toast { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); font-weight: 600; color: var(--heading); animation: toastIn .4s cubic-bezier(.2, .9, .3, 1.3); border-inline-start: 5px solid var(--primary); }
.soft-toast i { font-size: 1.15rem; }
.soft-toast-success { border-color: var(--success); } .soft-toast-success i { color: var(--success); }
.soft-toast-danger { border-color: var(--danger); } .soft-toast-danger i { color: var(--danger); }
.soft-toast-warning { border-color: var(--warning); } .soft-toast-warning i { color: var(--warning); }
.soft-toast-info i { color: var(--primary); }
.soft-toast span { flex: 1; font-size: .92rem; }
.soft-toast-close { border: 0; background: none; font-size: 1.4rem; color: var(--muted); line-height: 1; }
.soft-toast.hide { opacity: 0; transform: translateY(-10px); transition: all .3s; }

/* ---------- lesson player / curriculum ---------- */
.unit-block { margin-bottom: 1rem; }
.unit-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.2rem; background: var(--grad-soft); border-radius: var(--radius); font-weight: 700; color: var(--heading); }
.lesson-item { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 14px; color: var(--heading); transition: background .2s; border: 1px solid transparent; }
.lesson-item:hover { background: #fff; border-color: var(--border); box-shadow: var(--shadow-sm); color: var(--heading); }
.lesson-item.current { background: #fff; border-color: var(--primary); }
.lesson-item .li-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lavender); color: var(--primary); flex-shrink: 0; }
.lesson-item.locked .li-icon { background: #f1f1f5; color: var(--muted); }
.lesson-item .li-body { flex: 1; min-width: 0; }
.lesson-item .li-body b { display: block; font-weight: 600; }
.lesson-item .li-body small { color: var(--muted); }

/* ---------- exam UI ---------- */
.exam-top { position: sticky; top: 72px; z-index: 15; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: .85rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.exam-timer { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.35rem; color: var(--heading); background: var(--lavender); padding: .35rem 1rem; border-radius: 999px; font-variant-numeric: tabular-nums; direction: ltr; }
.exam-timer.warn { background: #fff3e0; color: #c97a06; }
.exam-timer.danger { background: #ffe8ed; color: #e0294b; animation: pulse 1s infinite; }
.q-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm); }
.q-num { font-weight: 800; color: var(--primary); font-size: .9rem; }
.q-body { font-size: 1.15rem; color: var(--heading); font-weight: 600; margin: .5rem 0 1.25rem; white-space: pre-wrap; }
.q-option { display: flex; align-items: center; gap: .85rem; padding: .95rem 1.1rem; border: 2px solid var(--border); border-radius: 16px; margin-bottom: .7rem; cursor: pointer; transition: all .2s; background: #fff; min-height: 58px; }
.q-option:hover { border-color: #b8c4fb; background: #fafbff; }
.q-option input { width: 1.35rem; height: 1.35rem; accent-color: var(--primary); flex-shrink: 0; }
.q-option.selected { border-color: var(--primary); background: #f2f5ff; box-shadow: 0 0 0 4px rgba(47, 87, 239, .08); }
.q-option.correct { border-color: var(--success); background: #effaf2; }
.q-option.wrong { border-color: var(--danger); background: #fff3f5; }
.q-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .45rem; }
.q-nav button { height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; color: var(--heading); }
.q-nav button.answered { background: var(--lavender); border-color: #c8d2ff; color: var(--primary); }
.q-nav button.current { background: var(--grad); color: #fff; border-color: transparent; }
.save-state { font-size: .82rem; color: var(--muted); }

/* notes */
.note-card { border-radius: var(--radius); padding: 1.1rem 1.2rem; height: 100%; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; border: 1px solid rgba(0, 0, 0, .03); }
.note-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.note-card p { white-space: pre-wrap; font-size: .92rem; color: #4b5164; flex: 1; }

/* zoom page */
.meeting-box { min-height: 70vh; border-radius: var(--radius-lg); overflow: hidden; background: #0d0b25; position: relative; }
.meeting-box iframe { width: 100%; height: 75vh; border: 0; display: block; }

/* report / print */
@media print {
  .app-sidebar, .app-topbar, .bottom-tabs, .no-print, .floating-dock, .whatsapp-float, .toast-stack { display: none !important; }
  .app-main { margin: 0 !important; }
  body, .app-body { background: #fff !important; }
  .soft-card, .table-wrap, .stat-card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  .app-content { padding: 0 !important; }
}

/* ---------- animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- responsive tweaks (tablet / iPad / phone) ---------- */
@media (max-width: 1199.98px) { .hero { padding-top: 1.5rem; } }
@media (max-width: 991.98px) {
  .hero-visual { min-height: 360px; margin-top: 2rem; }
  .section { padding: 3.5rem 0; }
  .site-header { padding: .6rem 0; }
}
@media (max-width: 575.98px) {
  body { font-size: 15px; }
  .hero-visual { min-height: 320px; }
  .float-card { padding: .55rem .75rem; border-radius: 14px; }
  .float-card b { font-size: .95rem; }
  .float-card .float-icon { width: 32px; height: 32px; }
  .soft-card { padding: 1.15rem; border-radius: 20px; }
  .stats-strip { padding: 1rem .5rem; }
  .btn-gradient, .btn-gradient-outline, .btn-soft { padding: .65rem 1.2rem; }
  .brand-text { font-size: 1.1rem; }
  .brand-mark { width: 40px; height: 40px; }
  .exam-top { top: 64px; }
  .exam-timer { font-size: 1.1rem; }
}
@media (hover: none) { .soft-card.hover:hover { transform: none; } }

/* compact stat cards on phones */
@media (max-width: 575.98px) {
  .stat-card { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 14px; }
  .stat-value { font-size: 1.2rem; }
  .welcome-card .btn-white { flex: 1 1 auto; }
}
html, body { overflow-x: clip; }
.hero, #main, .site-footer { overflow-x: clip; }
.floating-dock a span { white-space: nowrap; }
.whatsapp-float { bottom: 104px; }
@media (max-width: 380px) { .floating-dock a { min-width: 58px; padding: .4rem .45rem; } }
