﻿/* HG Clean Studio - History Geography */
body.physics-platform {
  --hg-ink: #33200f;
  --hg-muted: #8a6a4a;
  --hg-paper: #fffdf7;
  --hg-soft: #fff7ed;
  --hg-card: #ffffff;
  --hg-line: rgba(120, 53, 15, 0.12);
  --hg-o: #f97316;
  --hg-o2: #ea580c;
  --hg-gold: #fbbf24;
  --hg-deep: #9a3412;
  --hg-header: 76px;
  --hg-max: 1120px;
  --font-display: "Alexandria", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 14px 40px rgba(124, 45, 18, 0.1);
  --phy-ink: #33200f;
  --phy-navy: #9a3412;
  --phy-slate: #ea580c;
  --phy-amber: #f97316;
  --phy-amber-light: #fbbf24;
  --phy-salmon: #f59e0b;
  --phy-sky: #2563eb;
  --phy-mint: #22c55e;
  --phy-cloud: #fff7ed;
  --phy-paper: #fffdf7;
  --phy-muted: #8a6a4a;
  --phy-line: rgba(120, 53, 15, 0.12);
  --phy-header-h: 76px;
  --phy-wrap: min(1120px, calc(100% - 40px));
  --phy-text-heading: #33200f;
  --phy-text-link: #ea580c;
  --phy-text-on-accent: #fff;
  --phy-violet: #ea580c;
  --phy-pink: #f59e0b;
  --phy-cyan: #2563eb;
  --phy-amberc: #fcd34d;
  --phy-green: #22c55e;
  margin: 0;
  font-family: var(--font-body);
  color: var(--hg-ink);
  background: var(--hg-paper);
  line-height: 1.7;
  padding-top: var(--hg-header);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body.physics-platform {
  --hg-ink: #fdf6ec;
  --hg-muted: #d8c3a8;
  --hg-paper: #1a1206;
  --hg-soft: #241708;
  --hg-card: #2a1c0e;
  --hg-line: rgba(255,255,255,0.1);
  --hg-o: #fb923c;
  --hg-o2: #fdba74;
  --shadow: 0 14px 40px rgba(0,0,0,0.35);
  --phy-ink: #fdf6ec;
  --phy-paper: #1a1206;
  --phy-cloud: #241708;
  --phy-muted: #d8c3a8;
  --phy-line: rgba(255,255,255,0.1);
  --phy-text-heading: #fff;
  --phy-text-link: #fdba74;
  --phy-text-on-accent: #26150a;
}
body.physics-platform.student-no-header,
body.physics-platform:has(> .acc-topbar) { padding-top: 0; }
body.physics-platform *, body.physics-platform *::before, body.physics-platform *::after { box-sizing: border-box; }
body.physics-platform a { color: inherit; text-decoration: none; }
body.physics-platform img { max-width: 100%; display: block; }
body.physics-platform img.platform-logo__img--light { display: block; }
body.physics-platform img.platform-logo__img--dark { display: none; }
html[data-theme="dark"] body.physics-platform img.platform-logo__img--light { display: none; }
html[data-theme="dark"] body.physics-platform img.platform-logo__img--dark { display: block; }
body.physics-platform p { margin: 0; }
body.physics-platform h1, body.physics-platform h2, body.physics-platform h3 {
  margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--hg-ink);
}
body.physics-platform ::selection { background: rgba(249,115,22,0.2); }
.hg-wrap, .px-wrap, .phy-wrap { width: min(var(--hg-max), calc(100% - 40px)); margin-inline: auto; }
.hg-ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(249,115,22,.08), transparent 60%),
    radial-gradient(ellipse 40% 35% at 0% 30%, rgba(251,191,36,.07), transparent 55%),
    var(--hg-paper);
}
.hg-header, .px-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000; height: var(--hg-header);
  background: color-mix(in srgb, var(--hg-paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hg-line);
}
.hg-header__inner, .px-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hg-brand, .px-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--hg-ink); }
.hg-brand__mark, .px-brand__mark {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #f97316, #fbbf24);
  box-shadow: 0 8px 20px rgba(249,115,22,.28);
}
.hg-brand__img, .px-brand__img { width: 100%; height: 100%; object-fit: cover; }
.hg-brand__fb, .px-brand__fb { font-weight: 900; }
.hg-brand__text, .px-brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hg-brand__text strong, .px-brand__text strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-brand__text small, .px-brand__text small { font-size: .72rem; font-weight: 700; color: var(--hg-muted); }
.hg-header__tools, .px-header__tools { display: flex; align-items: center; gap: 10px; }
.hg-nav, .px-nav { display: flex; align-items: center; gap: 8px; }
.hg-burger, .px-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--hg-line); background: var(--hg-card); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.hg-burger span, .px-burger span { width: 16px; height: 2px; border-radius: 2px; background: var(--hg-ink); }
.hg-drawer, .px-drawer {
  display: none; position: absolute; top: 100%; inset-inline: 0;
  background: var(--hg-paper); border-bottom: 1px solid var(--hg-line);
  padding: 14px 0 18px; box-shadow: var(--shadow);
}
.hg-drawer.is-open, .px-drawer.is-open { display: block; }
.hg-drawer__box, .px-drawer__box { display: grid; gap: 8px; }
.hg-btn, .px-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: .92rem;
  padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.hg-btn--primary, .px-btn--primary {
  color: #fff; background: linear-gradient(135deg, #f97316, #fbbf24);
  box-shadow: 0 10px 24px rgba(249,115,22,.28);
}
.hg-btn--primary:hover, .px-btn--primary:hover { transform: translateY(-1px); }
.hg-btn--ghost, .px-btn--ghost, .px-btn--glass {
  color: var(--hg-ink); background: transparent; border: 1px solid var(--hg-line);
}
.hg-btn--ghost:hover, .px-btn--ghost:hover { border-color: var(--hg-o); color: var(--hg-o2); }
.hg-btn--light { color: var(--hg-deep); background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.hg-btn--sm, .px-btn--sm { padding: 9px 14px; font-size: .84rem; }
.hg-btn--block, .px-btn--block { width: 100%; }
.phy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: .92rem; padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer; }
.phy-btn--accent, .phy-btn--gold, .phy-btn--solid { color: #fff; background: linear-gradient(135deg, #f97316, #fbbf24); }
.phy-btn--outline, .phy-btn--ghost { color: var(--hg-ink); background: transparent; border: 1px solid var(--hg-line); }
.phy-btn--lg { padding: 14px 24px; }
.phy-btn--block { width: 100%; }
.phy-icon-wrap { display: inline-flex; align-items: center; justify-content: center; }
.phy-icon-svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.hg-hero {
  position: relative; z-index: 2; overflow: hidden;
  padding: clamp(48px, 7vw, 86px) 0 clamp(42px, 6vw, 68px);
  background:
    radial-gradient(circle at 74% 44%, rgba(251,191,36,.14), transparent 24%),
    radial-gradient(circle at 14% 20%, rgba(249,115,22,.09), transparent 28%);
}
.hg-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(154,52,18,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,52,18,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hg-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px;
  inset-inline-end: -240px; top: -260px; border-radius: 50%;
  border: 1px solid rgba(249,115,22,.13);
  box-shadow: 0 0 0 48px rgba(249,115,22,.025), 0 0 0 110px rgba(251,191,36,.02);
  pointer-events: none;
}
.hg-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hg-hero__copy { position: relative; z-index: 3; }
.hg-eyebrow { display: inline-block; margin-bottom: 10px; font-size: .78rem; font-weight: 800; color: var(--hg-o2); }
.hg-hero__brand { font-size: 1.05rem; font-weight: 900; color: var(--hg-o2); margin-bottom: 8px; }
.hg-hero__title {
  font-size: clamp(2.15rem, 4.5vw, 3.55rem); line-height: 1.14; margin-bottom: 16px; text-wrap: balance;
  background: linear-gradient(105deg, var(--hg-ink) 10%, #7c2d12 58%, #ea580c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] .hg-hero__title {
  background: linear-gradient(105deg, #fff7ed 10%, #fdba74 62%, #fbbf24);
  -webkit-background-clip: text; background-clip: text;
}
.hg-hero__desc { color: var(--hg-muted); font-size: 1.05rem; max-width: 38ch; margin-bottom: 18px; line-height: 1.85; }
.hg-bullets { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.hg-bullets li { position: relative; padding-inline-start: 18px; font-weight: 700; font-size: .95rem; }
.hg-bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #f97316, #fbbf24); }
.hg-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Professional icon system */
.hg-ico {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(249,115,22,.18);
  box-shadow: 0 6px 16px rgba(124,45,18,.08);
  overflow: hidden;
}
.hg-ico img {
  width: 68%; height: 68%; object-fit: contain; object-position: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.hg-ico--sm { width: 32px; height: 32px; border-radius: 10px; }
.hg-ico--sm img { width: 70%; height: 70%; }
.hg-ico--md { width: 44px; height: 44px; border-radius: 13px; }
.hg-ico--lg { width: 56px; height: 56px; border-radius: 16px; }
.hg-ico--xl { width: 72px; height: 72px; border-radius: 20px; }
.hg-ico--warm { background: linear-gradient(145deg, #fff7ed, #ffedd5); }
.hg-ico--cool { background: linear-gradient(145deg, #eff6ff, #dbeafe); border-color: rgba(37,99,235,.18); }
.hg-ico--sand { background: linear-gradient(145deg, #fef3c7, #fde68a); border-color: rgba(217,119,6,.2); }
.hg-ico--gold { background: linear-gradient(145deg, #1a1008, #3d2410); border-color: rgba(251,191,36,.35); }
.hg-ico--gold img { filter: drop-shadow(0 2px 6px rgba(251,191,36,.25)); }
.hg-ico--royal { background: linear-gradient(145deg, #1e1b4b, #312e81); border-color: rgba(129,140,248,.3); }
.hg-ico--map { background: linear-gradient(145deg, #ecfdf5, #d1fae5); border-color: rgba(16,185,129,.2); }

.hg-chips {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.16);
}
.hg-chips__label { font-size: .78rem; font-weight: 800; color: var(--hg-o2); }

.hg-hero__stage { position: relative; display: grid; place-items: center; min-height: 280px; }
.hg-hero__photo {
  margin: 0; width: min(360px, 100%); aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  background: var(--hg-soft); border: 2px solid rgba(249,115,22,.22); box-shadow: var(--shadow);
}
.hg-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hg-hero__iconBoard {
  display: grid; grid-template-columns: repeat(2, auto); gap: 16px; padding: 28px;
  border-radius: 28px; background: var(--hg-card); border: 1px solid var(--hg-line); box-shadow: var(--shadow);
}
.hg-hero__floatIcons {
  position: absolute; inset: 0; pointer-events: none;
}
.hg-hero__floatIcons .hg-ico { position: absolute; box-shadow: 0 10px 24px rgba(124,45,18,.16); }
.hg-hero__floatIcons .hg-ico:nth-child(1) { top: 6%; inset-inline-start: -4%; }
.hg-hero__floatIcons .hg-ico:nth-child(2) { top: 12%; inset-inline-end: -2%; }
.hg-hero__floatIcons .hg-ico:nth-child(3) { bottom: 10%; inset-inline-start: -8%; }

/* Hero attention piece: icon constellation */
@keyframes hgOrbitTurn { to { transform: rotate(360deg); } }
@keyframes hgOrbitTurnReverse { to { transform: rotate(-360deg); } }
@keyframes hgOrbitFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
@keyframes hgOrbitPulse {
  0%, 100% { opacity: .18; transform: scale(.88); }
  50% { opacity: .5; transform: scale(1.16); }
}
@keyframes hgSpark {
  0%, 100% { opacity: .2; transform: scale(.75); }
  50% { opacity: 1; transform: scale(1.3); }
}
.hg-orbit {
  position: relative; width: min(620px, 100%); aspect-ratio: 1;
  display: grid; place-items: center; isolation: isolate;
  animation: hgOrbitFloat 6s ease-in-out infinite;
}
.hg-orbit__aura {
  position: absolute; inset: 13%; z-index: -2; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(251,191,36,.3) 0 8%, rgba(249,115,22,.13) 32%, transparent 68%);
  filter: blur(12px);
}
.hg-orbit__ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(234,88,12,.25);
}
.hg-orbit__ring::before,
.hg-orbit__ring::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #f97316; box-shadow: 0 0 18px rgba(249,115,22,.8);
}
.hg-orbit__ring::before { top: 13%; inset-inline-start: 13%; }
.hg-orbit__ring::after { bottom: 8%; inset-inline-end: 22%; background: #fbbf24; }
.hg-orbit__ring--outer {
  inset: 5%; border-style: dashed; animation: hgOrbitTurn 28s linear infinite;
}
.hg-orbit__ring--inner {
  inset: 22%; border-color: rgba(37,99,235,.2); animation: hgOrbitTurnReverse 18s linear infinite;
}
.hg-orbit__axis {
  position: absolute; width: 72%; height: 42%; border-radius: 50%;
  border: 1px solid rgba(249,115,22,.2); transform: rotate(-18deg);
}
.hg-orbit__axis::after {
  content: ""; position: absolute; inset: 12%; border-radius: inherit;
  border: 1px dashed rgba(251,191,36,.18);
}
.hg-orbit__core {
  position: relative; z-index: 3; width: 132px; height: 132px; border-radius: 36px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,247,237,.82));
  border: 1px solid rgba(249,115,22,.25);
  box-shadow:
    0 24px 55px rgba(124,45,18,.18),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
}
.hg-orbit__core::before {
  content: ""; position: absolute; inset: 8px; border-radius: 29px;
  border: 1px dashed rgba(234,88,12,.25);
}
.hg-orbit__core .hg-ico--core {
  width: 92px; height: 92px; border: 0; box-shadow: none; background: transparent;
}
.hg-orbit__core .hg-ico--core img { width: 86%; height: 86%; }
.hg-orbit__core--teacher {
  width: min(430px, 78%); height: 520px; border-radius: 42px; padding: 0;
  background: linear-gradient(160deg, #fff7ed, #ffedd5);
  border: 3px solid rgba(249,115,22,.34);
  overflow: visible;
}
.hg-orbit__core--teacher::before {
  inset: 9px; z-index: 2; border-radius: 33px;
  border-color: rgba(251,191,36,.34); pointer-events: none;
}
.hg-orbit__teacher {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border-radius: 39px;
  object-fit: cover; object-position: center top;
}
.hg-orbit__mapBadge {
  position: absolute; z-index: 4; bottom: -14px; inset-inline-end: -14px;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 17px;
  background: var(--hg-card); border: 1px solid rgba(249,115,22,.24);
  box-shadow: 0 12px 26px rgba(124,45,18,.18);
}
.hg-orbit__mapBadge .hg-ico {
  width: 40px; height: 40px; border-radius: 12px; box-shadow: none;
}
.hg-orbit__pulse {
  position: absolute; inset: -26px; z-index: -1; border-radius: 48px;
  border: 2px solid rgba(249,115,22,.3);
  animation: hgOrbitPulse 2.8s ease-in-out infinite;
}
.hg-orbit__nodes { position: absolute; inset: 0; }
.hg-orbit__node {
  position: absolute; z-index: 4;
  transition: transform .25s var(--ease);
}
.hg-orbit__node:hover { transform: scale(1.14) rotate(-4deg); }
.hg-orbit__node .hg-ico {
  width: 58px; height: 58px; border-radius: 17px;
  box-shadow: 0 14px 30px rgba(124,45,18,.16);
}
.hg-orbit__node--1 { top: 4%; inset-inline-start: 40%; }
.hg-orbit__node--2 { top: 24%; inset-inline-end: 1%; }
.hg-orbit__node--3 { bottom: 17%; inset-inline-end: 6%; }
.hg-orbit__node--4 { bottom: 2%; inset-inline-start: 42%; }
.hg-orbit__node--5 { bottom: 19%; inset-inline-start: 3%; }
.hg-orbit__node--6 { top: 22%; inset-inline-start: 0; }
.hg-orbit__spark {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #fbbf24; box-shadow: 0 0 14px rgba(251,191,36,.9);
  animation: hgSpark 2.2s ease-in-out infinite;
}
.hg-orbit__spark--1 { top: 18%; inset-inline-start: 27%; }
.hg-orbit__spark--2 { bottom: 28%; inset-inline-end: 23%; animation-delay: .7s; }
.hg-orbit__spark--3 { top: 43%; inset-inline-end: 13%; animation-delay: 1.2s; }
.hg-orbit--lite,
.hg-orbit--lite * { animation: none !important; }

.hg-stats { position: relative; z-index: 2; padding: 8px 0 28px; }
.hg-stats__row {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px;
  padding: 8px; border-radius: 20px; background: var(--hg-card); border: 1px solid var(--hg-line); box-shadow: var(--shadow);
}
.hg-stat {
  text-align: center; padding: 18px 10px; border-radius: 14px; background: var(--hg-soft);
  display: grid; justify-items: center; gap: 8px;
}
.hg-stat strong { display: block; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 900; color: var(--hg-o2); line-height: 1.1; }
.hg-stat span { color: var(--hg-muted); font-size: .9rem; font-weight: 700; }

.hg-icons { position: relative; z-index: 2; padding: 8px 0 36px; }
.hg-icons__grid {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px;
}
.hg-icons__item {
  display: grid; place-items: center; padding: 18px 10px;
  border-radius: 18px; background: var(--hg-card); border: 1px solid var(--hg-line);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.hg-icons__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.hg-section { position: relative; z-index: 2; padding: clamp(40px, 7vw, 80px) 0; }
.hg-section--soft { background: var(--hg-soft); border-block: 1px solid var(--hg-line); }
.hg-head { text-align: center; max-width: 560px; margin: 0 auto 32px; }
.hg-head h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 8px 0 10px; }
.hg-head p { color: var(--hg-muted); }
.hg-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.hg-card {
  border-radius: 20px; background: var(--hg-card); border: 1px solid var(--hg-line);
  box-shadow: 0 8px 24px rgba(51,32,15,.04); display: flex; flex-direction: column;
  padding: 22px 20px 24px; transition: transform .25s var(--ease), box-shadow .25s;
}
.hg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hg-card__top { margin-bottom: 14px; }
.hg-card__body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.hg-card__body p { color: var(--hg-muted); font-size: .94rem; line-height: 1.75; }
.hg-card--accent {
  background: linear-gradient(150deg, #9a3412, #ea580c 55%, #f97316);
  border-color: transparent; color: #fff7ed;
}
.hg-card--accent .hg-card__body h3 { color: #fff; }
.hg-card--accent .hg-card__body p { color: rgba(255,247,237,.9); }
.hg-card--accent .hg-ico {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25);
}

.hg-grades { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.hg-grade {
  border-radius: 20px; overflow: hidden; background: var(--hg-card); border: 1px solid var(--hg-line);
  display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s;
}
.hg-grade:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(249,115,22,.35); }
.hg-grade__media { aspect-ratio: 16/11; background: #1a1008; overflow: hidden; }
.hg-grade__media img { width: 100%; height: 100%; object-fit: cover; }
.hg-grade__ico {
  display: grid; place-items: center; padding: 28px 16px 8px; background: var(--hg-soft);
}
.hg-grade__body { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hg-grade__body h3 { font-size: 1.02rem; }
.hg-grade__body span { font-size: .86rem; font-weight: 800; color: var(--hg-o2); }

.hg-cta { position: relative; z-index: 2; padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 8vw, 96px); }
.hg-cta__box {
  position: relative; overflow: hidden; border-radius: 30px;
  min-height: 340px;
  display: grid; place-content: center;
  padding: clamp(50px, 7vw, 76px) clamp(28px, 6vw, 72px);
  background:
    radial-gradient(circle at 85% 15%, rgba(249,115,22,.3), transparent 33%),
    radial-gradient(circle at 8% 92%, rgba(251,191,36,.1), transparent 30%),
    linear-gradient(135deg, #160d06, #2e1609 55%, #401b08);
  text-align: center; color: #fff7ed;
  border: 1px solid rgba(249,115,22,.38);
  box-shadow: 0 28px 70px rgba(124,45,18,.2);
}
.hg-cta__box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}
.hg-cta__box::after {
  content: ""; position: absolute; top: 0; inset-inline: 12%; height: 3px;
  background: linear-gradient(90deg, transparent, #f97316, #fbbf24, #f97316, transparent);
  box-shadow: 0 0 22px rgba(249,115,22,.55);
}
.hg-cta__icons {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; position: relative; z-index: 2;
}
.hg-cta__icons .hg-ico {
  width: 50px; height: 50px; border-radius: 15px;
  background: rgba(255,247,237,.1); border-color: rgba(251,191,36,.28);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.hg-cta__text { position: relative; z-index: 2; max-width: 52ch; margin-inline: auto; }
body.physics-platform .hg-cta__text h2 {
  color: #ffffff !important;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.35; margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0,0,0,.28);
}
body.physics-platform .hg-cta__text p {
  color: #f3dfcb !important;
  font-size: 1.02rem; font-weight: 550; line-height: 1.8;
  margin-bottom: 26px;
}
body.physics-platform .hg-cta .hg-btn--light {
  min-width: 170px; min-height: 50px;
  padding: 14px 26px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ea580c, #f97316 55%, #fbbf24);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 14px 32px rgba(249,115,22,.32);
}
body.physics-platform .hg-cta .hg-btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249,115,22,.42);
}
/* Footer — standalone professional block */
.hg-footer {
  position: relative; z-index: 2; overflow: hidden;
  margin-top: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(circle at 100% 0, rgba(249,115,22,.13), transparent 30%),
    linear-gradient(145deg, #171008, #0d0905);
  color: #fff7ed;
  border-top: 1px solid rgba(251,191,36,.28);
}
.hg-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hg-footer__topLine {
  position: relative; z-index: 2; height: 4px;
  background: linear-gradient(90deg, #9a3412, #f97316 40%, #fbbf24 70%, #ea580c);
  box-shadow: 0 0 22px rgba(249,115,22,.5);
}
.hg-footer > .hg-wrap { position: relative; z-index: 2; }
.hg-footer__main {
  display: grid;
  grid-template-columns: minmax(270px, 1.35fr) repeat(3, minmax(160px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
  padding: clamp(58px, 7vw, 86px) 0 48px;
}
.hg-footer__brand,
.hg-footer__col {
  min-height: 230px;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(8px);
}
.hg-footer__brand {
  border-color: rgba(249,115,22,.24);
  background:
    radial-gradient(circle at 100% 0, rgba(249,115,22,.15), transparent 48%),
    rgba(255,255,255,.045);
}
.hg-footer__brandHead {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.hg-footer__logo {
  width: 68px; height: 68px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #ea580c, #fbbf24);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 30px rgba(249,115,22,.28);
}
.hg-footer__logo img,
.hg-footer__logoImg { width: 100%; height: 100%; object-fit: cover; }
.hg-footer__logoFallback { font-weight: 900; font-size: 1.1rem; }
.hg-footer__brandHead strong {
  display: block; color: #fff; font-size: 1.28rem; font-weight: 850; line-height: 1.4;
}
.hg-footer__brandHead small {
  display: block; margin-top: 4px; color: #fbbf24; font-size: .85rem; font-weight: 750;
}
.hg-footer__brand > p {
  margin: 0; color: #ead8c4; font-size: 1rem; font-weight: 500; line-height: 1.9; max-width: 36ch;
}
.hg-footer__col { display: grid; gap: 14px; align-content: start; }
.hg-footer__col h3 {
  position: relative; margin: 0 0 8px;
  color: #fff; font-size: 1.08rem; font-weight: 850;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hg-footer__col h3::after {
  content: ""; position: absolute; bottom: -1px; inset-inline-start: 0;
  width: 42px; height: 2px; border-radius: 3px;
  background: linear-gradient(90deg, #f97316, #fbbf24);
}
.hg-footer__col a {
  display: flex; align-items: center; min-height: 28px;
  color: #ead8c4; font-size: .98rem; font-weight: 650;
  transition: color .2s, transform .2s;
}
.hg-footer__col a::before {
  content: ""; width: 6px; height: 6px; margin-inline-end: 9px; flex-shrink: 0;
  border-radius: 2px; background: #f97316;
  box-shadow: 0 0 8px rgba(249,115,22,.42);
}
.hg-footer__col a:hover { color: #fff; transform: translateX(-3px); }
.hg-footer__col .hg-footer__socialLink {
  gap: 10px;
  padding: 7px 9px;
  margin-inline: -9px;
  border-radius: 10px;
}
.hg-footer__col .hg-footer__socialLink::before { display: none; }
.hg-footer__col .hg-footer__socialLink:hover {
  background: rgba(249,115,22,.09);
}
.hg-footer__socialIcon {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.hg-footer__socialIcon img {
  width: 100%; height: 100%; object-fit: contain;
}
.hg-footer__socialIcon--fallback {
  color: #fbbf24; font-size: .9rem; font-weight: 900;
}
.hg-footer__phone { direction: ltr; unicode-bidi: isolate; }
.hg-footer__empty {
  margin: 0; color: #bfa68e; font-size: .92rem; font-weight: 500; line-height: 1.75;
}
.hg-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  min-height: 74px;
  padding: 22px 4px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem; font-weight: 550; color: #bfae9d;
}
.hg-footer__bottom p { margin: 0; }

/* Footer contrast: override global heading/text colors */
body.physics-platform .hg-footer .hg-footer__brandHead strong,
body.physics-platform .hg-footer .hg-footer__col h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}
body.physics-platform .hg-footer .hg-footer__brandHead small {
  color: #fbbf24 !important;
}
body.physics-platform .hg-footer .hg-footer__brand > p,
body.physics-platform .hg-footer .hg-footer__col a {
  color: #f4e7d8 !important;
}
body.physics-platform .hg-footer .hg-footer__empty,
body.physics-platform .hg-footer .hg-footer__bottom {
  color: #d8c5b2 !important;
}
body.physics-platform .hg-footer .hg-footer__col a:hover {
  color: #fbbf24 !important;
}

body.physics-platform .auth-page { position: relative; z-index: 2; min-height: calc(100vh - var(--hg-header)); padding: 36px 0 64px; display: grid; align-items: center; }
body.physics-platform .auth-page > .container { width: min(var(--hg-max), calc(100% - 40px)); margin-inline: auto; }
body.physics-platform .auth-card { background: var(--hg-card); border: 1px solid var(--hg-line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
body.physics-platform .auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; }
body.physics-platform .auth-formPane { padding: clamp(28px, 4vw, 44px); }
body.physics-platform .auth-step__line { display: block; width: 48px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, #f97316, #fbbf24); margin-bottom: 16px; }
body.physics-platform .auth-head { margin-bottom: 22px; }
body.physics-platform .auth-head__logo { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; background: linear-gradient(145deg, #f97316, #fbbf24); display: grid; place-items: center; }
body.physics-platform .auth-head__logo img { width: 100%; height: 100%; object-fit: cover; }
body.physics-platform .auth-head__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 6px; }
body.physics-platform .auth-head__sub { color: var(--hg-muted); }
body.physics-platform .auth-form { display: grid; gap: 14px; }
body.physics-platform .field { display: grid; gap: 6px; }
body.physics-platform .label { font-weight: 800; font-size: .9rem; }
body.physics-platform .input { width: 100%; padding: 12px 14px; border: 1px solid var(--hg-line); border-radius: 12px; background: #fff; color: var(--hg-ink); font-family: inherit; }
html[data-theme="dark"] body.physics-platform .input { background: var(--hg-soft); color: var(--hg-ink); }
body.physics-platform .input:focus { outline: none; border-color: var(--hg-o); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
body.physics-platform .btn-submit { width: 100%; padding: 13px; border: 0; border-radius: 12px; cursor: pointer; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, #f97316, #fbbf24); }
body.physics-platform .auth-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; color: var(--hg-muted); font-size: .9rem; }
body.physics-platform .auth-link { color: var(--hg-o2); font-weight: 800; background: none; border: 0; cursor: pointer; font-family: inherit; }
body.physics-platform .auth-imgPane { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 35%, #3d1f0a, #0a0603 72%); }
body.physics-platform .auth-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.physics-platform .auth-art { position: absolute; inset: 10% 12%; width: auto; height: auto; max-width: 76%; max-height: 80%; margin: auto; object-fit: contain; z-index: 2; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
body.physics-platform .auth-imgPane:has(.auth-img[src]) .auth-art { display: none; }
body.physics-platform .auth-imgFallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: #fff7ed; padding: 24px; }
body.physics-platform .auth-iconBoard {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 24px;
}
body.physics-platform .auth-iconBoard .hg-ico {
  width: 84px; height: 84px; border-radius: 22px;
}
body.physics-platform .phy-alert { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(220,38,38,.22); background: rgba(220,38,38,.06); color: #b91c1c; }
body.physics-platform .phy-alert__title { font-weight: 800; margin-bottom: 6px; }
body.physics-platform .phy-alert__list { margin: 0; padding: 0 16px 0 0; font-weight: 700; }
@keyframes hgToastIn { to { transform: translateX(-50%) translateY(0); } }
@keyframes hgToastOut { to { opacity: 0; transform: translateX(-50%) translateY(-12px); } }
@keyframes hgToastBar { from { width: 100%; } to { width: 0%; } }
body.physics-platform .phy-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); z-index: 10000; display: flex; gap: 12px; align-items: flex-start; width: min(92vw, 420px); padding: 14px 16px 18px; border-radius: 16px; background: #1a1008; color: #fff; border: 1px solid rgba(249,115,22,.35); box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: hgToastIn .4s var(--ease) forwards; overflow: hidden; }
body.physics-platform .phy-toast--success { background: #065f46; }
body.physics-platform .phy-toast__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); flex-shrink: 0; font-weight: 900; }
body.physics-platform .phy-toast__body { flex: 1; min-width: 0; }
body.physics-platform .phy-toast__title { display: block; font-weight: 800; margin-bottom: 3px; }
body.physics-platform .phy-toast__msg { margin: 0; font-size: .86rem; }
body.physics-platform .phy-toast__close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
body.physics-platform .phy-toast__progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.12); }
body.physics-platform .phy-toast__progress span { display: block; height: 100%; background: #fbbf24; animation: hgToastBar var(--phy-toast-duration, 4s) linear forwards; }
body.physics-platform .phy-toast--top { top: calc(16px + env(safe-area-inset-top,0px)); bottom: auto; transform: translateX(-50%) translateY(-120%); animation: hgToastIn .4s var(--ease) forwards; }
body.physics-platform .phy-toast--top.is-hiding, body.physics-platform .phy-toast.is-hiding { animation: hgToastOut .3s ease forwards; opacity: 0 !important; pointer-events: none !important; }

/* Professional login welcome */
@keyframes hgWelcomeIn {
  from { opacity: 0; transform: translate(-50%, -18px) scale(.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes hgWelcomeOut {
  from { opacity: 1; transform: translate(-50%, 0) scale(1); }
  to { opacity: 0; transform: translate(-50%, -12px) scale(.98); }
}
body.physics-platform .student-welcome {
  top: calc(var(--acc-topbar-h, 72px) + 16px) !important;
  right: auto !important; left: 50% !important; bottom: auto !important;
  z-index: 2147483647 !important;
  width: min(460px, calc(100vw - 36px));
  min-height: 96px;
  transform: translateX(-50%);
  padding: 19px 20px 22px;
  align-items: center; gap: 14px;
  color: #fff7ed;
  background:
    radial-gradient(circle at 100% 0, rgba(249,115,22,.2), transparent 42%),
    linear-gradient(145deg, #21140a, #130c06);
  border: 1px solid rgba(249,115,22,.36);
  border-radius: 20px;
  box-shadow: 0 24px 65px rgba(26,16,8,.4), 0 0 0 1px rgba(255,255,255,.035) inset;
  animation: hgWelcomeIn .42s var(--ease) forwards;
}
body.physics-platform .student-welcome::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  width: 4px; border-radius: 0 18px 18px 0;
  background: linear-gradient(to bottom, #fbbf24, #f97316);
}
body.physics-platform .student-welcome__icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center; border-radius: 14px;
  color: #fbbf24;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(251,191,36,.25);
}
body.physics-platform .student-welcome__icon svg {
  width: 23px; height: 23px;
  stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
body.physics-platform .student-welcome .phy-toast__title {
  color: #fff !important;
  font-size: 1rem; line-height: 1.5;
}
body.physics-platform .student-welcome .phy-toast__msg {
  margin-top: 3px; color: #d9c5b1 !important;
  font-size: .88rem; line-height: 1.65;
}
body.physics-platform .student-welcome .phy-toast__close {
  align-self: flex-start;
  color: #d9c5b1; background: rgba(255,255,255,.06);
}
body.physics-platform .student-welcome .phy-toast__progress {
  background: rgba(255,255,255,.07);
}
body.physics-platform .student-welcome .phy-toast__progress span {
  background: linear-gradient(90deg, #ea580c, #fbbf24);
}
body.physics-platform .student-welcome.is-hiding {
  animation: hgWelcomeOut .3s ease forwards !important;
}

body.physics-platform .acc-topbar .container, body.physics-platform .acc-page { width: 100%; max-width: none; margin-inline: 0; }
body.physics-platform .acc-topbar { background: transparent; padding: 10px 0 8px; }
body.physics-platform .acc-topbar__bar { background: var(--hg-card); border: 1px solid var(--hg-line); border-radius: 16px; box-shadow: var(--shadow); }
body.physics-platform .acc-sidebar { background: var(--hg-card); border: 1px solid var(--hg-line); border-radius: 16px; }
body.physics-platform .acc-nav__item.is-active, body.physics-platform .acc-nav__item.active { background: rgba(249,115,22,.1); color: var(--hg-o2); border-color: rgba(249,115,22,.3); }
body.physics-platform .acc-hero, body.physics-platform .acc-stat, body.physics-platform .acc-card { background: var(--hg-card); border: 1px solid var(--hg-line); border-radius: 16px; }
body.physics-platform .acc-hero { padding: 22px; border-top: 3px solid var(--hg-o); }
body.physics-platform .acc-stat__val { color: var(--hg-o2); }
body.physics-platform .acc-btn { background: linear-gradient(135deg, #f97316, #fbbf24); color: #fff; border: 0; border-radius: 12px; font-weight: 800; }
.hg-db-error { min-height: 100vh; display: grid; place-items: center; padding: 32px; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; background: #fffdf7; color: #33200f; text-align: center; }
.hg-db-error__box { max-width: 440px; padding: 32px; border-radius: 20px; background: #fff; border: 1px solid rgba(120,53,15,.12); box-shadow: 0 14px 40px rgba(124,45,18,.1); }
.hg-db-error h1 { font-size: 1.35rem; margin: 0 0 10px; }
.hg-db-error p { margin: 0 0 18px; color: #8a6a4a; line-height: 1.7; }
.hg-db-error a { display: inline-flex; padding: 11px 18px; border-radius: 12px; color: #fff; font-weight: 800; background: linear-gradient(135deg, #f97316, #fbbf24); text-decoration: none; }
@media (max-width: 960px) {
  .hg-hero__grid { grid-template-columns: 1fr; }
  .hg-hero__visual { order: -1; }
  .hg-orbit { width: min(520px, 94vw); margin-inline: auto; }
  .hg-orbit__core--teacher { width: 360px; height: 440px; }
  .hg-icons__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hg-cards, .hg-grades { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hg-footer__main { grid-template-columns: 1fr 1fr; }
  body.physics-platform .auth-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body.physics-platform { --hg-header: 68px; }
  .hg-wrap, .px-wrap, .phy-wrap { width: min(100% - 28px, var(--hg-max)); }
  .hg-nav, .px-nav { display: none !important; }
  .hg-burger, .px-burger { display: flex !important; }
  .hg-hero { padding-top: 28px; }
  .hg-orbit { width: min(400px, 96vw); }
  .hg-orbit__core { width: 104px; height: 104px; border-radius: 28px; }
  .hg-orbit__core--teacher { width: 280px; height: 350px; border-radius: 30px; }
  .hg-orbit__core--teacher .hg-orbit__teacher { border-radius: 27px; }
  .hg-orbit__core::before { border-radius: 21px; }
  .hg-orbit__core .hg-ico--core { width: 74px; height: 74px; }
  .hg-orbit__node .hg-ico { width: 48px; height: 48px; border-radius: 14px; }
  .hg-actions { flex-direction: column; align-items: stretch; }
  .hg-actions .hg-btn { width: 100%; }
  .hg-stats__row { grid-template-columns: 1fr; }
  .hg-icons__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hg-cards, .hg-grades { grid-template-columns: 1fr; }
  .hg-cta__box { min-height: 300px; padding: 42px 20px; border-radius: 24px; }
  body.physics-platform .hg-cta__text h2 { font-size: 1.65rem; }
  body.physics-platform .hg-cta__text p { font-size: .94rem; }
  body.physics-platform .hg-cta .hg-btn--light { width: 100%; }
  .hg-footer__main { grid-template-columns: 1fr; gap: 28px; }
  .hg-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  body.physics-platform .student-welcome {
    top: calc(var(--acc-topbar-h, 136px) + 12px) !important;
    right: auto !important; left: 50% !important;
    width: calc(100vw - 28px);
    min-height: 84px; padding: 15px 15px 19px;
  }
  body.physics-platform .student-welcome__icon {
    width: 42px; height: 42px; flex-basis: 42px;
  }
  body.physics-platform .auth-grid { grid-template-columns: 1fr; }
  body.physics-platform .auth-imgPane { min-height: 200px; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
