/* =====================================================
   BAMA ACADEMY — 3D "clay" visual layer
   -----------------------------------------------------
   فقط لایه‌ی ظاهری است؛ هیچ چیدمان، متن یا منطقی تغییر نکرده.
   این فایل بعد از bama.css بارگذاری می‌شود و رنگ برند (آبی #055AFF)
   را حفظ می‌کند. برای حذف کامل استایل سه‌بعدی، لینک این فایل و
   bama-3d.js را از index.html بردارید.
   ===================================================== */

:root {
  --bg: #f1f4ff;
  --p-hi: #5b97ff;
  --p-mid: #055AFF;
  --p-lo: #0236b0;
  --warm-1: #fff0b3;
  --warm-2: #ffc26a;
  --warm-3: #ff7a59;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --shadow-card:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 18px 30px -22px rgba(5,60,200,.38),
    0 5px 12px -8px rgba(16,24,60,.14);
  --shadow-pop:
    0 1px 0 #fff inset,
    0 36px 52px -26px rgba(5,90,255,.6),
    0 10px 22px -12px rgba(16,24,60,.22);

  --btn-primary:
    inset 0 2px 0 rgba(255,255,255,.42),
    inset 0 -4px 0 rgba(0,20,100,.32),
    0 14px 22px -10px rgba(5,90,255,.75);
  --spring: cubic-bezier(.3,1.6,.5,1);
  --glide: cubic-bezier(.2,.8,.2,1);
}

/* ---------- ambient background orbs (fixed, soft parallax) ---------- */
body { background: var(--bg); position: relative; }
body::before {
  content: ""; position: fixed; z-index: -1; inset: -8% -8% auto -8%; height: 980px; pointer-events: none;
  background:
    radial-gradient(420px 420px at 93% 6%, rgba(255,170,100,.55), transparent 70%),
    radial-gradient(560px 560px at 3% 24%, rgba(100,170,255,.42), transparent 70%),
    radial-gradient(520px 520px at 66% 64%, rgba(170,140,255,.22), transparent 70%);
  transform: translateY(calc(var(--sy, 0) * -0.1px));
  will-change: transform;
}

/* ---------- scroll progress ---------- */
#bar3 { position: fixed; top: 0; inset-inline: 0; height: 4px; z-index: 300; pointer-events: none; }
#bar3 i {
  display: block; height: 100%; width: 100%; transform-origin: right center; transform: scaleX(0);
  background: linear-gradient(270deg, #ffb066, #ff6a5a, var(--p-hi), var(--p-mid));
  border-radius: 0 0 4px 4px; box-shadow: 0 2px 8px rgba(5,90,255,.4);
}

/* ---------- puffy buttons ---------- */
.btn { position: relative; overflow: hidden; transition: transform .3s var(--spring), box-shadow .3s, background .25s, color .25s, filter .25s; }
.btn:active { transform: translateY(1px) scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--p-hi) 0%, var(--p-mid) 62%, var(--p-lo) 100%);
  box-shadow: var(--btn-primary);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #6ba4ff 0%, #0b63ff 62%, #0238ba 100%);
  transform: translateY(-3px);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.42), inset 0 -4px 0 rgba(0,20,100,.32), 0 22px 28px -12px rgba(5,90,255,.85);
}
.btn-primary::after, .btn-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.38) 50%, transparent 68%);
  transform: translateX(130%); transition: transform .8s var(--glide);
}
.btn-primary:hover::after, .btn-dark:hover::after { transform: translateX(-130%); }
.btn-dark {
  background: linear-gradient(180deg, #3a4160 0%, #1b1f33 60%, #0b0d18 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -4px 0 rgba(0,0,0,.45), 0 14px 22px -12px rgba(10,14,40,.8);
}
.btn-dark:hover { background: linear-gradient(180deg, #454d72 0%, #232842 60%, #0b0d18 100%); transform: translateY(-3px); }
.btn-outline {
  background: linear-gradient(180deg, #fff, #eef3ff);
  box-shadow: inset 0 0 0 1.5px rgba(5,90,255,.4), inset 0 -3px 0 rgba(5,90,255,.1), 0 10px 18px -14px rgba(5,90,255,.7);
  border: 0;
}
.btn-outline:hover { background: linear-gradient(180deg, #fff, #e4edff); transform: translateY(-3px); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-danger { box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(120,10,0,.3), 0 14px 22px -12px rgba(255,60,30,.7); }
.btn[disabled]:hover { transform: none; }

.icon-btn { box-shadow: 0 1px 0 #fff inset, 0 8px 14px -8px rgba(5,60,200,.35); transition: transform .3s var(--spring), background .2s, color .2s; }
.icon-btn:hover { transform: translateY(-2px) scale(1.05); }
.badge { background: linear-gradient(180deg, #ff7a62, rgb(var(--error-50))); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 8px rgba(255,60,30,.4); }

/* ---------- promo banner / header ---------- */
.promo-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--p-hi), var(--p-mid) 60%, var(--p-lo));
  box-shadow: inset 0 -3px 0 rgba(0,20,100,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.promo-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  background-size: 250% 100%; animation: b3-sheen 6s ease-in-out infinite;
}
@keyframes b3-sheen { 0% { background-position: 120% 0 } 60%, 100% { background-position: -120% 0 } }

.header {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.9); border-top: 0;
  box-shadow: 0 1px 0 #fff inset, 0 16px 34px -20px rgba(5,60,200,.45);
  transition: box-shadow .35s, background .35s;
}
.header.scrolled { box-shadow: 0 1px 0 #fff inset, 0 24px 44px -18px rgba(5,60,200,.55); background: rgba(255,255,255,.92); }
.brand-logo { filter: drop-shadow(0 6px 6px rgba(5,60,200,.28)); transition: transform .6s var(--spring); }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.1); }
.nav a { position: relative; }
.nav a:hover, .nav a.active { background: linear-gradient(180deg, rgba(5,90,255,.12), rgba(5,90,255,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.nav a.active::after {
  content: ""; position: absolute; inset-inline: 32%; bottom: 2px; height: 3px; border-radius: 3px; background: var(--primary);
}
.header-search { background: #eef2ff; box-shadow: inset 0 3px 6px rgba(5,40,160,.1); }
.header-search:focus-within { background: #fff; box-shadow: inset 0 2px 4px rgba(5,40,160,.06), 0 0 0 4px rgba(5,90,255,.16); }
.header-search button, .hero-search button {
  background: linear-gradient(180deg, var(--p-hi), var(--p-mid) 65%, var(--p-lo));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,20,100,.3), 0 8px 14px -8px rgba(5,90,255,.8);
  transition: transform .3s var(--spring);
}
.header-search button:hover, .hero-search button:hover { background: linear-gradient(180deg, #6ba4ff, #0b63ff 65%, #0238ba); transform: scale(1.1); }

/* ---------- cards: raised clay ---------- */
.card {
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border: 1px solid rgba(5,60,200,.08); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card-hover:hover { box-shadow: var(--shadow-pop); border-color: rgba(5,90,255,.22); }
.tilt3 {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .28s ease-out, box-shadow .35s, border-color .35s, background .3s;
  will-change: transform;
}
.tilt3:hover { --ty: -8px; }

/* ---------- ambient section chips / titles ---------- */
.title-pill {
  background: linear-gradient(180deg, #fff, #e8f0ff);
  color: var(--primary-dark);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 rgba(5,90,255,.12), 0 14px 22px -14px rgba(5,90,255,.55);
}
.title-pill::before {
  width: 12px; height: 12px;
  background: radial-gradient(circle at 32% 28%, #9cc0ff, var(--p-mid) 60%, var(--p-lo));
  box-shadow: 0 3px 5px rgba(5,60,200,.4);
}
.section-title { text-shadow: 0 2px 0 #fff, 0 12px 22px rgba(5,60,200,.12); }
.page-title { text-shadow: 0 2px 0 #fff; }
.page-icon, .s2-ic, .f-icon, .stat-ic, .lesson-num, .le-del-dummy {
  box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 -4px 0 rgba(5,60,200,.1), 0 10px 16px -10px rgba(5,60,200,.45);
}
.page-icon { background: linear-gradient(180deg, #fff, #e1ebff); }
.s2-ic { background: linear-gradient(180deg, #fff, #e4edff); transition: transform .5s var(--spring); }
.side2-list li:hover .s2-ic { transform: rotate(-10deg) scale(1.12); }
.side2-title::before { background: linear-gradient(180deg, var(--p-hi), var(--p-lo)); box-shadow: 0 4px 8px rgba(5,90,255,.4); }
.step-num, .pf-num {
  background: linear-gradient(180deg, var(--p-hi), var(--p-mid) 60%, var(--p-lo));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.42), inset 0 -3px 0 rgba(0,20,100,.3), 0 10px 14px -8px rgba(5,90,255,.8);
}
.hero-badge {
  background: linear-gradient(180deg, #fff, #e8f0ff);
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(5,90,255,.12), 0 12px 20px -14px rgba(5,90,255,.6);
}
.pill, .discount-chip, .hp-off { box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.product-meta span, .course-meta span { box-shadow: inset 0 2px 3px rgba(5,40,160,.07); background: #eef2fd; }
.type-chip, .grade-chip, .post-kind-chip, .arch-chip, .arch-pill { box-shadow: 0 1px 0 #fff inset, 0 8px 14px -6px rgba(0,20,100,.35) !important; }

/* ---------- hero ---------- */
.hero-new { position: relative; }
.hero-title { text-shadow: 0 2px 0 #fff, 0 16px 28px rgba(5,60,200,.16); }
.hero-title .hl {
  background: linear-gradient(135deg, var(--p-hi), var(--p-mid) 55%, var(--p-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 6px 8px rgba(5,60,200,.28));
}
.hero-mini-stats b { text-shadow: 0 2px 0 #fff, 0 8px 14px rgba(5,60,200,.22); }
.side2-card {
  background: linear-gradient(180deg, #fff, #fafbff); border: 1px solid rgba(5,60,200,.08);
  box-shadow: var(--shadow-card);
}
.hero-search {
  border: 0; background: #fff;
  box-shadow: inset 0 3px 7px rgba(5,40,160,.1), 0 1px 0 #fff, 0 18px 30px -18px rgba(5,60,200,.55);
  transition: transform .3s, box-shadow .3s;
}
.hero-search:focus-within { transform: translateY(-2px); box-shadow: inset 0 2px 4px rgba(5,40,160,.06), 0 0 0 5px rgba(5,90,255,.18), 0 22px 34px -18px rgba(5,60,200,.6); }
.hero-divider { height: 3px; border-radius: 3px; box-shadow: 0 1px 0 #fff; }

.hero3-art { perspective: 1100px; }
.hero3-art::before {
  content: ""; position: absolute; left: 50%; top: 50%; height: 112%; width: auto; aspect-ratio: 1; z-index: 0; translate: -50% -50%;
  background: radial-gradient(circle at 32% 26%, var(--warm-1), var(--warm-2) 46%, var(--warm-3) 100%);
  box-shadow: inset 24px 28px 56px rgba(255,255,255,.55), inset -30px -40px 70px rgba(230,80,60,.28);
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%; opacity: .92;
  animation: b3-morph 14s ease-in-out infinite;
}
@keyframes b3-morph {
  0%, 100% { border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%; }
  50% { border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; }
}
.hero3-art::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 72%; height: 28px; z-index: 0; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(5,40,160,.42), transparent); filter: blur(5px);
}
.arch { translate: calc(var(--px, 0) * var(--k, 10) * 1px) calc(var(--py, 0) * var(--k, 10) * 1px); transition: translate .3s ease-out; }
.arch-main { --k: 20; }
.arch-side-a { --k: 8; }
.arch-side-b { --k: 13; }
.arch::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background:
    linear-gradient(100deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.1) 26%, transparent 44%, rgba(0,10,70,.2) 100%),
    radial-gradient(ellipse 60% 22% at 34% 10%, rgba(255,255,255,.5), transparent 70%);
}
.arch-main {
  background: linear-gradient(180deg, #5b97ff 0%, var(--p-mid) 45%, #022a8a 100%);
  box-shadow:
    inset 0 4px 0 rgba(255,255,255,.35), inset 0 -22px 34px rgba(0,10,80,.4),
    0 44px 60px -26px rgba(5,60,200,.75), 0 12px 22px -12px rgba(0,20,100,.5);
}
.arch-main img { position: relative; z-index: 3; filter: drop-shadow(0 14px 12px rgba(0,16,80,.5)); }
.arch-side-a {
  background: linear-gradient(180deg, #d7e6ff 0%, #8fbdff 55%, #5b97ff 100%);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.7), inset 0 -18px 28px rgba(5,60,200,.28), 0 30px 44px -24px rgba(5,60,200,.6);
}
.arch-side-b {
  background: linear-gradient(180deg, #6ba4ff 0%, #8fbdff 45%, #d7e6ff 100%);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.7), inset 0 -18px 28px rgba(5,60,200,.24), 0 30px 44px -24px rgba(5,60,200,.6);
}
.arch-dot { z-index: 3; opacity: 1; background: radial-gradient(circle at 32% 28%, #fff, #bfd6ff); box-shadow: 0 5px 8px rgba(0,30,120,.35); }
.arch-chip { z-index: 4; background: linear-gradient(180deg, #fff, #eaf1ff); }

/* injected floating 3D props (aria-hidden, absolutely positioned — no layout impact) */
.d3-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; --u: 1; }
.d3 {
  position: absolute; left: calc(50% + var(--x) * var(--u)); top: var(--y); width: calc(var(--w) * var(--u)); height: auto;
  translate: calc(var(--px, 0) * var(--k, 20) * -1px) calc(var(--py, 0) * var(--k, 20) * -1px);
  transition: translate .3s ease-out;
}
.d3 > i { display: block; animation: b3-float 6.5s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.d3 svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 10px rgba(5,30,140,.34)); }
.d3 svg.spin { animation: b3-spin 16s linear infinite; transform-origin: 50% 50%; }
.d3 svg.spin.rev { animation-direction: reverse; }
@keyframes b3-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); } }
@keyframes b3-spin { to { transform: rotate(360deg); } }

/* ---------- product / grade / review / post cards ---------- */
.product-thumb, .tc-thumb, .course-hero-thumb, .grade-visual, .data-thumb, .lr-thumb { position: relative; overflow: hidden; }
.product-thumb {
  background: linear-gradient(135deg, #cfe0ff, #a9c8ff);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.7), inset 0 -10px 18px rgba(5,60,200,.12);
}
.thumb-dark, .thumb-dark.course-hero-thumb {
  background: linear-gradient(135deg, #4a8bff 0%, var(--p-mid) 45%, #022a8a 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -12px 22px rgba(0,10,80,.35);
}
.product-thumb::before, .tc-thumb::before, .grade-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 24% 12%, rgba(255,255,255,.5), transparent 52%), radial-gradient(ellipse at 90% 100%, rgba(0,10,80,.14), transparent 55%);
}
.product-thumb .poster-img { position: relative; z-index: 0; transition: transform .6s var(--glide); }
.card:hover .poster-img { transform: scale(1.06); }
.product-thumb .type-chip, .tc-thumb .type-chip { z-index: 3; }
.emo3 {
  display: inline-block; position: relative; z-index: 2;
  filter: drop-shadow(0 12px 8px rgba(0,20,110,.34));
  transition: transform .55s var(--spring);
}
.card:hover .emo3, .grade-card:hover .emo3 { transform: translateY(-6px) scale(1.14) rotate(-6deg); }
.hp-foot { box-shadow: inset 0 3px 6px rgba(5,40,160,.08); background: #eef2fd; }
.price { text-shadow: 0 1px 0 #fff; }

.grade-scroll { padding: 18px 8px 26px; margin: -12px -8px -12px; }
.grade-card {
  background: linear-gradient(180deg, #fff, #f3f6ff); border: 1px solid rgba(5,60,200,.08);
  box-shadow: var(--shadow-card);
}
.grade-card:hover { background: #fff; box-shadow: var(--shadow-pop); border-color: rgba(5,90,255,.22); }
.grade-visual {
  background: linear-gradient(180deg, #e6efff, #bdd4ff);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.8), inset 0 -12px 20px rgba(5,60,200,.14);
}
.grade-card:nth-child(even) .grade-visual {
  background: linear-gradient(180deg, #5b97ff, #0a47d6 60%, #022a8a);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -14px 24px rgba(0,10,80,.4);
}
.rv-avatar, .avatar-lg, .teacher-avatar, .user-chip .avatar {
  background: linear-gradient(135deg, #fff, #cfe0ff);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.9), inset 0 -4px 0 rgba(5,60,200,.16), 0 10px 16px -8px rgba(5,60,200,.5);
}
.user-chip .avatar { background: linear-gradient(180deg, var(--p-hi), var(--p-lo)); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 8px 12px -6px rgba(0,0,0,.5); }
.rv-name { background: linear-gradient(180deg, #fff, #e8f0ff); box-shadow: inset 0 1px 0 #fff, 0 6px 10px -6px rgba(5,60,200,.4); }
.post-card .post-img { transition: transform .6s var(--glide); }

/* ---------- forms ---------- */
.field input, .field select, .field textarea, .le-row input, .role-select, .coupon-box input {
  box-shadow: inset 0 2px 4px rgba(5,40,160,.06); transition: box-shadow .25s, border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 2px 4px rgba(5,40,160,.05), 0 0 0 4px rgba(5,90,255,.16); }
.auth-hero { background: linear-gradient(180deg, var(--p-hi), var(--p-mid) 55%, var(--p-lo)); box-shadow: inset 0 3px 0 rgba(255,255,255,.35); }
.auth-card { box-shadow: var(--shadow-card); }
.auth-tabs, .kind-toggle { box-shadow: inset 0 3px 6px rgba(5,40,160,.1); background: #e9eefc; }
.auth-tab.active, .kt-btn.active { box-shadow: 0 1px 0 #fff inset, 0 8px 14px -8px rgba(5,60,200,.5); }
.dropzone { background: linear-gradient(180deg, rgba(5,90,255,.04), rgba(5,90,255,.09)); }
.captcha-box { box-shadow: inset 0 2px 4px rgba(5,40,160,.08); }

/* ---------- panel / course / cart ---------- */
.welcome-card {
  background: linear-gradient(135deg, #0238ba 0%, var(--p-mid) 60%, #5b97ff 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -14px 24px rgba(0,10,80,.3), var(--shadow-pop);
}
.welcome-card::after { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.3), rgba(255,255,255,.04) 70%); }
.quick-card { box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,10,80,.2); }
.post-cta {
  background: linear-gradient(135deg, #0238ba, var(--p-mid) 60%, #5b97ff);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.28), inset 0 -10px 20px rgba(0,10,80,.3), 0 22px 36px -22px rgba(5,60,200,.75);
}
.course-hero-thumb::before { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,.08) 70%); }
.attach-card { background: linear-gradient(180deg, #f3f6ff, #eaf0ff); box-shadow: inset 0 3px 6px rgba(5,40,160,.06); }
.attach-btn { box-shadow: var(--shadow-card); }
.attach-dl, .vs-icon { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,20,100,.3), 0 8px 14px -8px rgba(5,90,255,.8); background: linear-gradient(180deg, var(--p-hi), var(--p-mid) 65%, var(--p-lo)) !important; }
.bc-bar { background: linear-gradient(180deg, #6ba4ff, var(--p-mid) 55%, var(--p-lo)); box-shadow: inset 2px 0 0 rgba(255,255,255,.4), 0 8px 12px -8px rgba(5,90,255,.8); }
.bc-col:last-child .bc-bar { background: linear-gradient(180deg, #5fe08a, rgb(22,130,60)); }
.prog-track { box-shadow: inset 0 2px 3px rgba(5,40,160,.12); background: #e4eafb; }
.prog-fill { background: linear-gradient(90deg, var(--p-lo), var(--p-hi)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.ps-check { box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -5px 0 rgba(0,80,20,.25), 0 16px 24px -12px rgba(3,170,60,.7); }
.faq-item { background: linear-gradient(180deg, #fff, #fafbff); box-shadow: var(--shadow-card); border: 1px solid rgba(5,60,200,.08); border-radius: var(--radius-md); }
.faq-item[open] { box-shadow: var(--shadow-pop); }
.faq-chev { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #fff, #e4edff); box-shadow: inset 0 1px 0 #fff, 0 6px 10px -6px rgba(5,60,200,.5); }
.band-white { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98)); box-shadow: 0 -20px 40px -30px rgba(5,60,200,.3); }
.table-wrap { border-radius: var(--radius-md); }
.act-btn { box-shadow: 0 1px 0 #fff inset, 0 6px 10px -8px rgba(5,60,200,.4); }
.filter-chip { box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 10px 16px -12px rgba(5,60,200,.5); background: linear-gradient(180deg, #fff, #eaf1ff); }

/* ---------- sidebar / modal / toast ---------- */
.sidebar { background: linear-gradient(180deg, #1a1f38, #0c0f1f); }
.side-item.active { background: linear-gradient(180deg, var(--p-hi), var(--p-mid) 65%, var(--p-lo)); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 10px 16px -8px rgba(5,90,255,.8); }
.modal-overlay { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { border-radius: 26px; box-shadow: 0 1px 0 #fff inset, 0 40px 80px -24px rgba(5,20,100,.6); }
.toast { box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 20px 40px -14px rgba(0,0,0,.5); border-radius: 18px; }

/* ---------- footer ---------- */
.footer {
  background: radial-gradient(120% 120% at 85% 0%, #1b2370, #0e1230 52%, #0a0d22 100%);
  border-radius: 38px 38px 0 0; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 -24px 50px -30px rgba(5,60,200,.5);
}
.footer-logo { filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.socials a { box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.3), 0 10px 14px -8px rgba(0,0,0,.6); transition: transform .4s var(--spring), background .25s; }
.socials a:hover { transform: translateY(-5px) rotate(-7deg); background: linear-gradient(180deg, var(--p-hi), var(--p-lo)); }
.news-form input { box-shadow: inset 0 3px 6px rgba(0,0,0,.3); }

/* ---------- reveal on scroll (uses individual transform props so it never fights tilt) ---------- */
.js3 .rv3 {
  opacity: 0; translate: 0 32px; scale: .97;
  transition: opacity .8s ease var(--rd, 0s), translate .85s var(--glide) var(--rd, 0s), scale .85s var(--glide) var(--rd, 0s);
}
.js3 .rv3.in { opacity: 1; translate: none; scale: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .d3-layer { --u: .9; } }
@media (max-width: 640px) {
  .d3-layer { --u: .6; }
  .arch-main { --k: 12; } .arch-side-a { --k: 5; } .arch-side-b { --k: 8; }
  .grade-scroll { padding-inline: 4px; margin-inline: -4px; }
  body::before { height: 700px; }
}
@media (hover: none) { .tilt3:hover { --ty: 0px; } }
@media (prefers-reduced-motion: reduce) {
  .js3 .rv3 { opacity: 1; translate: none; scale: none; }
  .d3 > i, .d3 svg.spin, .promo-banner::before, .hero3-art::before { animation: none !important; }
  .tilt3 { transform: none !important; }
}
