/* ═══════════════════════════════════════════════════════════════
   سكين Younis Code — منصة برمجة
   هيدر · هيرو · كود · فوتر · مصادقة · حساب
   ═══════════════════════════════════════════════════════════════ */

.yc-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.yc-ambient__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42; }
.yc-ambient__orb--accent { width: 46vw; height: 46vw; top: -14vw; inset-inline-start: -12vw; background: radial-gradient(circle, var(--page-glow-1), transparent 70%); }
.yc-ambient__orb--ember { width: 40vw; height: 40vw; bottom: -16vw; inset-inline-end: -10vw; background: radial-gradient(circle, var(--page-glow-2), transparent 70%); }
.yc-ambient__codeRail {
  position: absolute; inset: 12% 6% auto; display: flex; flex-wrap: wrap; gap: 18px 28px;
  justify-content: center; opacity: .14; pointer-events: none;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(12px, 1.6vw, 18px);
  color: var(--brand-700); letter-spacing: .08em;
}
.yc-ambient__dust span {
  position: absolute; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--brand-400) 40%, transparent);
  background: color-mix(in srgb, var(--brand-300) 18%, transparent);
  animation: ycDust 16s linear infinite;
}
.yc-ambient__dust span:nth-child(1){ width:14px;height:14px; inset-inline-start:12%; bottom:-20px; animation-duration:18s; }
.yc-ambient__dust span:nth-child(2){ width:22px;height:10px; inset-inline-start:28%; bottom:-30px; animation-duration:22s; animation-delay:-6s; }
.yc-ambient__dust span:nth-child(3){ width:10px;height:10px; inset-inline-start:62%; bottom:-16px; animation-duration:14s; animation-delay:-3s; }
.yc-ambient__dust span:nth-child(4){ width:18px;height:8px; inset-inline-start:80%; bottom:-24px; animation-duration:20s; animation-delay:-9s; }
@keyframes ycDust {
  0% { transform: translateY(0) scale(1); opacity: .0; }
  12% { opacity: .55; }
  100% { transform: translateY(-110vh) scale(1.15); opacity: 0; }
}

/* ═══ أزرار ═══ */
.yc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-weight: 800; font-size: 14.5px; line-height: 1; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.yc-btn:hover { transform: translateY(-1px); }
.yc-btn--solid {
  background: var(--btn-solid-bg); color: var(--btn-solid-text);
  box-shadow: 0 10px 24px rgba(42, 23, 16, .22);
}
.yc-btn--solid:hover { box-shadow: 0 16px 32px rgba(42, 23, 16, .28); }
.yc-btn--ghost {
  background: color-mix(in srgb, var(--card-bg) 70%, transparent);
  color: var(--text-strong); border-color: var(--border-strong);
}
.yc-btn--ghost:hover { border-color: var(--brand-400); background: var(--surface-soft); }
.yc-btn--gold {
  background: var(--btn-gold-bg); color: var(--btn-gold-text);
  box-shadow: var(--shadow-gold);
}
.yc-btn--lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.yc-btn--block { width: 100%; }
.yc-btn svg { width: 18px; height: 18px; }

/* ═══ هيدر ═══ */
.yc-hdr {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-border);
}
.yc-hdr__formula {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 5px 12px; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: color-mix(in srgb, var(--brand-600) 80%, var(--text));
  background: var(--grad-code); color: #fff8f3;
}
.yc-hdr__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 74px; padding: 10px 0;
}
.yc-brand {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  color: var(--hdr-text);
}
.yc-brand__mark {
  position: relative;
  width: 168px; height: 48px; flex: none;
  display: block; padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.yc-brand__mark--full { width: min(200px, 46vw); height: 48px; }
html[data-theme="dark"] .yc-brand__mark {
  background: transparent;
  border: 0;
}
.yc-brand__mark img,
.yc-brand__mark .platform-logo__img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
/* منع تكرار اللوجو: النسخة الفاتحة/الداكنة لا تُعرضان معاً */
.yc-brand__mark .platform-logo__img--light { display: block !important; }
.yc-brand__mark .platform-logo__img--dark { display: none !important; }
html[data-theme="dark"] .yc-brand__mark .platform-logo__img--light { display: none !important; }
html[data-theme="dark"] .yc-brand__mark .platform-logo__img--dark { display: block !important; }
.yc-brand__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.yc-brand__text--assist { display: none; }
@media (min-width: 900px) {
  .yc-brand__text--assist { display: flex; }
}
.yc-brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--text-strong); line-height: 1.15;
}
.yc-brand__slogan {
  font-family: var(--font-mono); font-size: 12px; color: var(--brand-600); letter-spacing: .04em;
  line-height: 1.3; white-space: nowrap;
}
html[data-theme="dark"] .yc-brand__slogan { color: var(--gold-300); }

.yc-hdr__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.yc-hdr__theme { display: flex; }
.yc-hdr__mobileTheme { display: none; }
.yc-burger {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--card-bg); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.yc-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text-strong); }
.yc-drawer { display: none; }
.yc-drawer.is-open { display: block; padding: 0 0 14px; }
.yc-drawer__box { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--border); }

/* ═══ هيرو ═══ */
.yc-hero { position: relative; overflow: hidden; }
.yc-hero__glow { position: absolute; inset: 0; pointer-events: none; }
.yc-hero__glow::before,
.yc-hero__glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
}
.yc-hero__glow::before { width: 320px; height: 320px; top: 8%; inset-inline-start: -60px; background: rgba(240,90,26,.20); }
.yc-hero__glow::after { width: 280px; height: 280px; bottom: 4%; inset-inline-end: -40px; background: rgba(232,59,46,.16); }
.yc-hero__inner { padding: 36px 0 8px; }
.yc-hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
}
.yc-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; margin: 0 0 14px;
  background: var(--surface-soft); border: 1px solid var(--border-strong);
  color: var(--brand-700); font-weight: 800; font-size: 13px;
}
.yc-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.25;
  color: var(--text-strong); margin: 0 0 12px;
}
.yc-hero__slogan {
  font-family: var(--font-calli); font-size: clamp(22px, 3vw, 32px);
  color: var(--brand-600); margin: 0 0 14px; line-height: 1.5;
}
html[data-theme="dark"] .yc-hero__slogan { color: var(--gold-300); }
.yc-hero__desc {
  color: var(--muted-strong); font-size: 16.5px; line-height: 1.9;
  max-width: 38rem; margin: 0 0 22px;
}
.yc-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.yc-hero__els { display: flex; flex-wrap: wrap; gap: 8px; }
.yc-el {
  width: 46px; height: 52px; display: grid; place-items: center; gap: 0;
  border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft); text-align: center; line-height: 1;
}
.yc-el b { font-size: 16px; color: var(--text-strong); }
.yc-el small { font-size: 9px; color: var(--muted); font-weight: 800; }

.yc-hero__visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.yc-hero__stage {
  position: relative; width: min(420px, 100%); min-height: 480px;
  display: grid; place-items: center;
}
.yc-hero__ring {
  position: absolute; width: min(430px, 108%); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--brand-400) 55%, transparent);
  animation: ycSpin 28s linear infinite;
}
.yc-hero__portrait {
  position: relative; z-index: 1; margin: 0; width: min(300px, 78%);
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 40px 40px 28px 28px;
  border: 3px solid color-mix(in srgb, #fff 72%, var(--brand-300));
  background: #1a100c;
  box-shadow:
    0 28px 50px rgba(26, 16, 12, .28),
    0 0 0 12px color-mix(in srgb, var(--brand-400) 16%, transparent);
}
.yc-hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block;
  background: #1a100c;
}
.yc-hero__caption {
  position: absolute; inset-inline: 12px; bottom: 12px; margin: 0;
  padding: 8px 12px; border-radius: 14px; text-align: center;
  background: rgba(26, 16, 12, .72); color: #fff8f3;
  font-weight: 800; font-size: 13px; backdrop-filter: blur(8px);
}
.yc-float {
  position: absolute; z-index: 2; padding: 8px 12px; border-radius: 14px;
  background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-weight: 900; color: var(--brand-700); letter-spacing: .04em;
}
.yc-float--brace { top: 10%; inset-inline-start: 0; }
.yc-float--tags { top: 24%; inset-inline-end: 0; }
.yc-float--arrow { bottom: 16%; inset-inline-start: 2%; }
.yc-hero__orbit,
.yc-hero__orbit--2 {
  position: absolute; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--brand-400) 55%, transparent);
  animation: ycSpin 22s linear infinite;
}
.yc-hero__orbit { width: min(420px, 92%); aspect-ratio: 1; }
.yc-hero__orbit--2 { width: min(340px, 76%); aspect-ratio: 1; animation-direction: reverse; animation-duration: 16s; border-style: solid; border-color: color-mix(in srgb, var(--air) 28%, transparent); }
.yc-hero__hex {
  position: relative; z-index: 1; width: min(300px, 72%); aspect-ratio: 1;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: var(--grad-brand); padding: 6px;
  box-shadow: var(--shadow-strong);
}
.yc-hero__hex img,
.yc-hero__hexInner {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: var(--card-soft);
}
.yc-hero__hexEmpty {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--grad-brand); color: #f3fcfd; text-align: center; padding: 24px;
  font-weight: 800; font-size: 14px;
}
@keyframes ycSpin { to { transform: rotate(360deg); } }

.yc-wave { line-height: 0; color: var(--page-bg); margin-top: 18px; }
.yc-wave svg { width: 100%; height: 64px; display: block; }

/* ═══ إحصائيات ═══ */
.yc-stats { padding: 8px 0 40px; }
.yc-stats__row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow);
}
.yc-stat { text-align: center; padding: 12px 8px; position: relative; }
.yc-stat:not(:last-child)::after {
  content: ""; position: absolute; inset-block: 16%; inset-inline-end: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}
.yc-stat__ico {
  width: 48px; height: 48px; margin: 0 auto 10px; display: grid; place-items: center;
  background: var(--surface-highlight); color: var(--brand-700);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}
.yc-stat__val { font-weight: 900; font-size: 32px; color: var(--text-strong); }
.yc-stat__lbl { color: var(--muted-strong); font-weight: 700; margin-top: 4px; }

.yc-promises { padding: 8px 0 28px; }
.yc-promises__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.yc-promise {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
  box-shadow: var(--shadow-soft); display: grid; gap: 8px;
}
.yc-promise__ico {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--surface-highlight); color: var(--brand-700);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}
.yc-promise__title { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-strong); }
.yc-promise__text { margin: 0; color: var(--muted-strong); line-height: 1.85; }

/* ═══ أقسام ═══ */
.yc-section { padding: 28px 0 48px; }
.yc-section__head { text-align: center; margin-bottom: 28px; }
.yc-section__badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-700); font-weight: 800; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; background: var(--surface-soft);
}
.yc-section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 3vw, 34px); color: var(--text-strong); margin: 10px 0 8px;
}
.yc-section__sub { color: var(--muted-strong); max-width: 36rem; margin: 0 auto; line-height: 1.85; }
.yc-divider {
  width: 120px; height: 10px; margin: 14px auto 0;
  background:
    radial-gradient(circle at 10% 50%, var(--brand-500) 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, var(--gold-400) 3px, transparent 4px),
    radial-gradient(circle at 90% 50%, var(--air) 3px, transparent 4px),
    linear-gradient(90deg, transparent, var(--border-strong), transparent);
  background-repeat: no-repeat;
}

.yc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.yc-feature {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
  box-shadow: var(--shadow-soft); display: grid; gap: 10px;
  transition: transform .2s var(--ease), border-color .2s;
}
.yc-feature:hover { transform: translateY(-4px); border-color: var(--brand-400); }
.yc-feature--dark {
  background: var(--grad-code); color: #fff8f3; border-color: transparent;
}
.yc-feature--dark .yc-feature__title,
.yc-feature--dark .yc-feature__text { color: #f3fcfd; }
.yc-feature__top { display: flex; align-items: center; justify-content: space-between; }
.yc-feature__ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--surface-highlight); color: var(--brand-700);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}
.yc-feature__ico img { width: 28px; height: 28px; object-fit: contain; }
.yc-feature__sym { font-weight: 900; font-size: 20px; color: var(--brand-500); opacity: .7; }
.yc-feature__title { font-size: 18px; font-weight: 800; color: var(--text-strong); margin: 0; }
.yc-feature__text { color: var(--muted-strong); line-height: 1.8; margin: 0; }

.yc-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  align-items: stretch;
  width: min(100%, 1180px);
  margin-inline: auto;
}
.yc-grade {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px); box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), border-color .2s;
}
.yc-grade:hover { transform: translateY(-6px); border-color: var(--brand-400); }
.yc-grade__media {
  position: relative; line-height: 0; background: #07141a; overflow: hidden;
  aspect-ratio: 3 / 4; min-height: 280px;
}
.yc-grade__media img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center center;
}
.yc-grade__mediaEmpty { width: 100%; aspect-ratio: 3 / 4; min-height: 280px; display: grid; place-items: center; color: #f3fcfd; }
.yc-grade__chip,
.yc-grade__z { display: none !important; }
.yc-grade__body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.yc-grade__subject { margin: 0; font-size: 14px; font-weight: 800; color: var(--brand-600); letter-spacing: 0; }
.yc-grade__name { margin: 0; font-size: 20px; font-weight: 800; color: var(--text-strong); line-height: 1.45; }
.yc-grade__cta { color: var(--brand-600); font-weight: 800; font-size: 15px; margin-top: 8px; }

.yc-cta { padding: 10px 0 56px; }
.yc-cta__box {
  position: relative; overflow: hidden; text-align: center;
  padding: 48px 24px; border-radius: var(--radius-xl);
  background: var(--grad-code); color: #fff8f3;
  box-shadow: var(--shadow-strong);
}
.yc-cta__pattern {
  position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: var(--ornament-tile); background-size: 56px 48px;
}
.yc-cta__ico { position: relative; width: 56px; height: 56px; margin: 0 auto 12px; color: #fff; display: grid; place-items: center; }
.yc-cta__title {
  position: relative; font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px; color: #ffffff; font-weight: 800;
}
.yc-cta__sub {
  position: relative; max-width: 34rem; margin: 0 auto 18px;
  color: #ffffff; opacity: 1; line-height: 1.85; font-weight: 600;
}
.yc-cta .yc-btn--gold { position: relative; color: #1a1204; font-weight: 900; }

/* ═══ فوتر ═══ */
.yc-footer {
  background: linear-gradient(180deg, #1a100c 0%, #120c0a 100%);
  color: #f0e4dc; margin-top: 12px;
}
.yc-footer__strip {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 8px 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  background: var(--grad-code); color: #fff8f3;
}
.yc-footer__inner { padding: 28px 0 16px; }
.yc-footer__row { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; }
.yc-footer__brand { display: flex; gap: 14px; align-items: flex-start; max-width: 420px; }
.yc-footer__logoLink {
  position: relative;
  width: 150px; height: 48px; flex: none; padding: 0;
  background: transparent; border: 0;
  border-radius: 0;
  display: block;
  overflow: hidden;
}
.yc-footer__logoLink img { width: 100%; height: 100%; object-fit: contain; }
/* الفوتر داكن دائماً: اعرض نسخة اللوجو الفاتحة النص */
.yc-footer .platform-logo__img--light { display: none !important; }
.yc-footer .platform-logo__img--dark { display: block !important; }
.yc-footer__name { display: block; font-family: var(--font-display); font-size: 20px; color: #fff; margin-bottom: 4px; }
.yc-footer__tag { display: block; font-family: var(--font-calli); color: var(--gold-300); font-size: 16px; margin-bottom: 10px; }
.yc-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.yc-footer__nav a { color: #b4d0d6; font-weight: 700; font-size: 13px; }
.yc-footer__nav a:hover { color: #fff; }
.yc-footer__heading { display: block; color: var(--gold-300); font-weight: 800; margin-bottom: 8px; }
.yc-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yc-footer__link { display: inline-flex; align-items: center; gap: 8px; color: #d7eef2; }
.yc-footer__linkIco { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.yc-footer__phones { display: grid; gap: 6px; }
.yc-footer__phone { color: #d7eef2; font-weight: 700; direction: ltr; }
.yc-footer__bottom {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  color: #86a8b2; font-size: 12px;
}

/* ═══ مصادقة ═══ */
.auth-page { padding: 40px 0 64px; }
.auth-card {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-formPane { padding: 40px 38px; position: relative; }
.auth-formPane::before {
  content: ""; position: absolute; top: 0; inset-inline: 20px; height: 3px;
  background: var(--grad-water-air); border-radius: 0 0 8px 8px;
}
.auth-step { display: none; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head__logo {
  position: relative;
  width: min(220px, 68vw); height: 56px; margin: 0 auto 14px; padding: 0;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
html[data-theme="dark"] .auth-head__logo { background: transparent; border: 0; }
.auth-head__logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.auth-head__logo .platform-logo__img--light { display: block !important; }
.auth-head__logo .platform-logo__img--dark { display: none !important; }
html[data-theme="dark"] .auth-head__logo .platform-logo__img--light { display: none !important; }
html[data-theme="dark"] .auth-head__logo .platform-logo__img--dark { display: block !important; }
.auth-head__logoFallback { color: var(--brand-600); }
.auth-head__title { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--text-strong); }
.auth-head__sub { color: var(--muted-strong); margin-top: 8px; line-height: 1.85; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-weight: 700; font-size: 14px; color: var(--text-strong); }
.input {
  width: 100%; padding: 13px 15px; border-radius: var(--radius);
  border: 1.5px solid var(--field-border); background: var(--field-bg); color: var(--field-text);
  font-size: 15px;
}
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--primary-weak); }
.center-area { display: flex; flex-direction: column; gap: 16px; }
.btn-submit {
  margin-top: 6px; width: 100%; padding: 15px 20px; border: 0; border-radius: 999px;
  background: var(--btn-solid-bg); color: var(--btn-solid-text);
  font-weight: 800; font-size: 16px; cursor: pointer;
  box-shadow: 0 12px 28px rgba(42, 23, 16, .22);
}
.btn-submit:hover { transform: translateY(-1px); }
.auth-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; color: var(--muted-strong); font-size: 14px; }
.auth-link { color: var(--primary); font-weight: 800; background: none; border: 0; cursor: pointer; }
.auth-imgPane {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 28px;
  background: var(--grad-water-air);
}
.auth-imgPane__symbols { position: absolute; inset: 0; opacity: .22; pointer-events: none; color: #fff; }
.auth-imgPane__symbols span {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border: 1px solid currentColor;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  font-weight: 900;
}
.auth-imgPane__symbols span:nth-child(1){ top: 10%; inset-inline-start: 12%; }
.auth-imgPane__symbols span:nth-child(2){ top: 20%; inset-inline-end: 14%; }
.auth-imgPane__symbols span:nth-child(3){ bottom: 24%; inset-inline-start: 16%; }
.auth-imgPane__symbols span:nth-child(4){ bottom: 12%; inset-inline-end: 18%; }
.auth-img {
  position: relative; z-index: 1; max-width: 100%; max-height: 460px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.auth-imgPane--register {
  padding: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(240, 90, 26, .32), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(224, 162, 26, .18), transparent 50%),
    linear-gradient(160deg, #07141a 0%, #0d3a44 55%, #0a2a36 100%);
}
.auth-imgPane--login {
  padding: 0;
  background:
    radial-gradient(ellipse at 65% 35%, rgba(224, 162, 26, .28), transparent 55%),
    radial-gradient(ellipse at 20% 75%, rgba(13, 107, 120, .35), transparent 50%),
    linear-gradient(160deg, #050d12 0%, #0a2430 55%, #071820 100%);
}
.auth-imgPane--parent {
  padding: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(61, 159, 212, .28), transparent 55%),
    radial-gradient(ellipse at 25% 80%, rgba(14, 138, 143, .22), transparent 50%),
    linear-gradient(160deg, #0a1820 0%, #123a48 55%, #0d2a36 100%);
}
.auth-imgPane--register .auth-img,
.auth-imgPane--login .auth-img,
.auth-imgPane--parent .auth-img,
.auth-img--poster {
  clip-path: none;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
  display: block;
}
.auth-imgFallback { position: relative; z-index: 1; text-align: center; color: #f3fcfd; display: grid; place-items: center; gap: 12px; padding: 24px; }
.auth-imgFallback__hero { font-size: 42px; font-weight: 900; }

.phy-toast {
  --toast-accent: var(--success); --toast-duration: 6000ms;
  position: fixed; left: 50%; bottom: 24px; z-index: 10000;
  width: min(440px, calc(100vw - 28px));
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 18px 19px; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card-bg-strong) 94%, transparent);
  border: 1px solid var(--border); border-inline-start: 4px solid var(--toast-accent);
  box-shadow: var(--shadow-strong); backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: authToastIn .38s var(--ease-bounce) both; overflow: hidden;
}
.phy-toast--top { bottom: auto; top: max(88px, calc(env(safe-area-inset-top, 0px) + 74px)); }
.phy-toast--success { --toast-accent: var(--success); }
.phy-toast--error { --toast-accent: var(--danger); }
.phy-toast__icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--toast-accent); color: #fff; font-weight: 900; }
.phy-toast__body { min-width: 0; flex: 1; }
.phy-toast__title { display: block; font-weight: 800; color: var(--text-strong); }
.phy-toast__msg, .phy-toast__list { margin: 4px 0 0; color: var(--muted-strong); font-size: 14px; line-height: 1.7; }
.phy-toast__close { width: 30px; height: 30px; margin-inline-start: auto; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.phy-toast__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; }
.phy-toast__progress span { display: block; height: 100%; width: 100%; background: var(--toast-accent); transform-origin: right; animation: phyToastBar var(--toast-duration) linear forwards; }
.phy-toast.is-leaving { animation: authToastOut .32s var(--ease) both; pointer-events: none; }
@keyframes phyToastBar { to { transform: scaleX(0); } }
@keyframes authToastIn { from { opacity: 0; transform: translate(-50%, -16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes authToastOut { to { opacity: 0; transform: translate(-50%, -12px) scale(.97); } }
@keyframes authToastMobileIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes authToastMobileOut { to { opacity: 0; transform: translate(-50%, 20px); } }

/* === حساب الطالب === */
.acc-topbar__bar {
  background: linear-gradient(120deg, #2a1710, #d94a14 55%, #f05a1a) !important;
  border-color: rgba(240, 90, 26, .32) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow) !important;
  color: #f3fcfd !important;
}
.acc-brand__name { color: #f3fcfd !important; }
.acc-brand__logo,
.acc-brand__logoFallback {
  width: 118px !important; height: 42px !important;
  clip-path: none;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain;
  padding: 4px;
}
html[data-theme="dark"] .acc-brand__logo,
html[data-theme="dark"] .acc-brand__logoFallback {
  background: transparent !important;
}
.acc-bell, .acc-burger, .acc-pill {
  border-radius: 14px !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #f3fcfd !important;
  background: rgba(255,255,255,.12) !important;
}
.acc-student {
  color: #f3fcfd !important;
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.22) !important;
}
body.yc-platform .acc-sidebar,
body.yc-code .acc-sidebar,
body.yc-platform .acc-nav,
body.yc-code .acc-nav {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
  color: var(--text-strong) !important;
  box-shadow: var(--shadow-soft) !important;
}
body.yc-platform .acc-nav__item,
body.yc-code .acc-nav__item {
  color: var(--text-strong) !important;
  background: transparent !important;
  border-color: transparent !important;
}
body.yc-platform .acc-nav__item:hover,
body.yc-code .acc-nav__item:hover {
  background: var(--surface-highlight) !important;
  color: var(--brand-700) !important;
}
body.yc-platform .acc-nav__item.is-active,
body.yc-code .acc-nav__item.is-active {
  background: var(--surface-highlight) !important;
  color: var(--brand-700) !important;
  border-inline-start-color: var(--brand-500) !important;
}
body.yc-platform .acc-nav__lbl,
body.yc-code .acc-nav__lbl { color: inherit !important; }
body.yc-platform .acc-nav__ico,
body.yc-code .acc-nav__ico { color: var(--brand-600) !important; }
body.yc-platform .acc-nav__item.is-active .acc-nav__ico,
body.yc-code .acc-nav__item.is-active .acc-nav__ico { color: var(--brand-700) !important; }
body.yc-platform .acc-nav__soon,
body.yc-code .acc-nav__soon { color: var(--muted) !important; }
body.yc-platform .acc-nav__item.is-danger,
body.yc-code .acc-nav__item.is-danger {
  background: var(--danger-soft-bg, rgba(179, 58, 58, .1)) !important;
  border-color: var(--danger-soft-border, rgba(179, 58, 58, .28)) !important;
  color: var(--danger, #b33a3a) !important;
}
body.yc-platform .acc-nav__item.is-danger .acc-nav__ico,
body.yc-code .acc-nav__item.is-danger .acc-nav__ico { color: var(--danger, #b33a3a) !important; }
html[data-theme="dark"] body.yc-platform .acc-sidebar,
html[data-theme="dark"] body.yc-code .acc-sidebar,
html[data-theme="dark"] body.yc-platform .acc-nav,
html[data-theme="dark"] body.yc-code .acc-nav,
html[data-theme="dark"] body.yc-platform .acc-sidebar.is-open,
html[data-theme="dark"] body.yc-code .acc-sidebar.is-open {
  background: #052028 !important;
  color: #f3fcfd !important;
  border-color: rgba(143, 201, 210, .22) !important;
}
html[data-theme="dark"] body.yc-platform .acc-nav__item,
html[data-theme="dark"] body.yc-code .acc-nav__item { color: rgba(243, 252, 253, .92) !important; }
html[data-theme="dark"] body.yc-platform .acc-nav__item:hover,
html[data-theme="dark"] body.yc-code .acc-nav__item:hover,
html[data-theme="dark"] body.yc-platform .acc-nav__item.is-active,
html[data-theme="dark"] body.yc-code .acc-nav__item.is-active {
  background: rgba(240, 90, 26, .16) !important;
  color: #f3fcfd !important;
  border-inline-start-color: var(--brand-400, #ff7a2f) !important;
}
html[data-theme="dark"] body.yc-platform .acc-nav__ico,
html[data-theme="dark"] body.yc-code .acc-nav__ico { color: #9fbec7 !important; }
html[data-theme="dark"] body.yc-platform .acc-nav__item.is-active .acc-nav__ico,
html[data-theme="dark"] body.yc-code .acc-nav__item.is-active .acc-nav__ico { color: #e0a21a !important; }
.acc-page > .acc-backdrop {
  position: fixed !important;
  inset: 0 !important;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  z-index: 10040;
}
.phy-toast { z-index: 14000 !important; }

.pr-topbar__bar {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-soft) !important;
}
.pr-btn--ghost { border-color: var(--border-strong) !important; color: var(--text-strong) !important; }
.pr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pr-brand__logo,
.pr-brand__logoFallback {
  width: 148px !important;
  height: 40px !important;
  background: transparent !important;
  clip-path: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center;
  padding: 0 !important;
}
/* اللوجو الكامل يحتوي الاسم — أخفِ النص المكرر */
.pr-brand:has(.platform-logo__img) .pr-brand__name { display: none; }
.pr-brand .platform-logo__img--light { display: block !important; }
.pr-brand .platform-logo__img--dark { display: none !important; }
html[data-theme="dark"] .pr-brand .platform-logo__img--light { display: none !important; }
html[data-theme="dark"] .pr-brand .platform-logo__img--dark { display: block !important; }
.pr-btn--solid {
  background: var(--btn-solid-bg) !important;
  color: var(--btn-solid-text) !important;
}
.pr-profile-card__val--accent,
body.parent-portal .pr-section__title,
body.parent-portal h2,
body.parent-portal h3 {
  color: var(--brand-700);
}
body.parent-portal {
  --pr-radius-sm: 14px;
}

/* ═══ تجاوب ═══ */
@media (max-width: 1100px) {
  .yc-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 1024px) {
  .yc-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .yc-hdr__nav { display: none; }
  .yc-hdr__mobileTheme { display: inline-flex; margin-inline-start: auto; }
  .yc-burger { display: flex; }
  .yc-drawer { display: none; }
  .yc-drawer.is-open,
  .yc-drawer[aria-hidden="false"] { display: block; }
  .yc-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .yc-hero__visual { order: -1; min-height: 420px; }
  .yc-hero__stage { min-height: 440px; }
  .yc-float { display: none; }
  .yc-hero__copy { text-align: center; }
  .yc-hero__desc { margin-inline: auto; }
  .yc-hero__actions, .yc-hero__els { justify-content: center; }
  .yc-hero__kicker { margin-inline: auto; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-imgPane { order: -1; min-height: 210px; max-height: 280px; padding: 16px; }
  .auth-imgPane--register,
  .auth-imgPane--login,
  .auth-imgPane--parent {
    padding: 0;
    min-height: 260px;
    max-height: 340px;
  }
  .auth-imgPane--register .auth-img,
  .auth-imgPane--login .auth-img,
  .auth-imgPane--parent .auth-img,
  .auth-img--poster {
    min-height: 260px;
    max-height: 340px;
  }
  .auth-formPane { padding: 30px 20px; }
  .yc-footer__row { flex-direction: column; }
  .yc-brand__slogan { font-size: 12px; }
}
@media (max-width: 560px) {
  .yc-stats__row,
  .yc-promises__row { grid-template-columns: 1fr; }
  .yc-stat:not(:last-child)::after {
    inset-block: auto; inset-inline: 18%; bottom: 0; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  }
  .yc-features, .yc-grades { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .yc-brand__name { font-size: 17px; }
  .yc-brand__mark,
  .yc-brand__mark--full { width: min(156px, 54vw); height: 40px; }
  .phy-toast, .phy-toast--top {
    top: auto; bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    width: calc(100vw - 20px); max-width: none;
    animation: authToastMobileIn .36s var(--ease-bounce) both;
  }
  .phy-toast.is-leaving { animation: authToastMobileOut .3s var(--ease) both; }
}

.student-perf-lite .yc-ambient__dust,
.student-perf-lite .yc-hero__orbit,
.student-perf-lite .yc-hero__orbit--2,
.student-perf-lite .yc-hero__ring { animation: none !important; }


/* ═══ Younis Code polish ═══ */
.yc-hdr__formula {
  font-family: var(--font-mono);
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
}
.yc-brand__mark--full {
  width: min(200px, 46vw);
  height: 48px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.yc-brand__name {
  font-family: var(--font-display);
  letter-spacing: .02em;
}
.yc-float {
  font-family: var(--font-mono);
  font-weight: 700;
  background: color-mix(in srgb, var(--card-bg) 88%, var(--brand-400));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.yc-el {
  font-family: var(--font-mono);
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
}
.yc-feature__sym {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--brand-600);
}
.yc-hero__portrait {
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-strong);
  background: #fff;
}
.yc-hero__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.yc-cta__box {
  background: var(--grad-code) !important;
}
.yc-btn {
  border-radius: 12px;
}
.yc-grade__mediaEmpty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--brand-600);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,122,47,.18), transparent 55%),
    var(--card-soft);
}
.auth-imgFallback__hero {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--brand-600);
}
