/* =====================================================================
   دکتر پلن — لایهٔ حرکت و عمق سه‌بعدی (premium-v2)
   بعد از premium.css بارگذاری می‌شود. فقط transform/opacity انیمیت می‌شود.
   همه‌چیز با prefers-reduced-motion و روی دستگاه‌های لمسی ساده/خاموش می‌شود.
   ===================================================================== */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- عمق: سایهٔ لایه‌ای و لبهٔ نوردار ---------- */
.card, .dashboard-action-card, .student-default-banner, .role-dashboard-banner {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(24, 26, 43, .05), 0 10px 28px -12px rgba(40, 24, 110, .16);
}
[data-theme="dark"] .card, [data-theme="dark"] .dashboard-action-card,
[data-theme="dark"] .student-default-banner, [data-theme="dark"] .role-dashboard-banner {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 30px -12px rgba(0, 0, 0, .7);
}
.stat-icon, .dashboard-action-icon, .landing-feature-icon, .landing-role-icon {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 6px 14px -4px rgba(82, 37, 192, .35);
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%);
}
[data-theme="dark"] .stat-icon, [data-theme="dark"] .dashboard-action-icon { box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 14px -4px rgba(0, 0, 0, .6); }

/* ---------- دکمه‌ها: حس فیزیکی ---------- */
.btn { position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .25s, background .15s, border-color .15s, color .15s; }
.btn-brand, .btn-primary {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 8px 18px -6px rgba(82, 37, 192, .55);
}
.btn-brand::after, .btn-primary::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
    transform: translateX(-130%);
}
@media (hover: hover) and (pointer: fine) {
    .btn:hover { transform: translateY(-2px); }
    .btn-brand:hover, .btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 26px -8px rgba(82, 37, 192, .6); }
    .btn-brand:hover::after, .btn-primary:hover::after { transform: translateX(130%); transition: transform .75s var(--ease); }
}
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.icon-btn { transition: transform .2s var(--ease), background .15s, color .15s; }
.icon-btn:hover { transform: translateY(-1px) scale(1.06); }
.icon-btn:active { transform: scale(.92); }

/* ---------- ورود پلکانی عناصر ---------- */
.rv { opacity: 0; transform: translateY(22px) scale(.985); }
.rv.in {
    opacity: 1; transform: none;
    transition: opacity .6s var(--ease) calc(var(--i, 0) * 65ms), transform .75s var(--ease) calc(var(--i, 0) * 65ms);
}
.app-content { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.page-header h1 { animation: titleIn .6s var(--ease) both; }
@keyframes titleIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- تیلت سه‌بعدی روی کارت‌های کوچک ---------- */
@media (hover: hover) and (pointer: fine) {
    .tilt { transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s, border-color .2s, background .3s; will-change: transform; }
    .tilt:hover {
        transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px) scale(1.015);
        box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 44px -16px rgba(60, 30, 160, .34);
        border-color: var(--ds-brand-line);
        background-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 90, 240, .13), transparent 62%) !important;
        transition: transform .08s linear, box-shadow .3s, border-color .2s;
    }
    .tilt:hover .stat-icon, .tilt:hover .dashboard-action-icon, .tilt:hover .landing-feature-icon, .tilt:hover .landing-role-icon {
        transform: translateZ(34px) scale(1.08);
    }
    [data-theme="dark"] .tilt:hover { box-shadow: 0 28px 44px -16px rgba(0, 0, 0, .8); }
}
.stat-icon, .dashboard-action-icon, .landing-feature-icon, .landing-role-icon { transition: transform .35s var(--ease-spring); }

/* ---------- نوار کناری و نوار بالا ---------- */
.app-nav li { animation: navIn .55s var(--ease) both; animation-delay: calc(var(--n, 0) * 28ms + 120ms); }
@keyframes navIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.app-sidebar .user-mini { animation: navIn .6s var(--ease) both; }
.app-nav .nav-link { transition: transform .25s var(--ease), background .15s, color .15s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .app-nav .nav-link:hover { transform: translateX(-4px); } }
.app-nav .nav-link.active { box-shadow: 0 8px 18px -10px rgba(82, 37, 192, .6), 0 1px 0 rgba(255, 255, 255, .6) inset; }
.app-nav .nav-link.active .material-symbols-outlined { animation: iconPop .6s var(--ease-spring) both; }
@keyframes iconPop { from { transform: scale(.5) rotate(-20deg); } to { transform: none; } }
.sidebar-brand-mark img, .topbar-brand .brand-badge img { transition: transform .6s var(--ease-spring); }
.sidebar-brand:hover .sidebar-brand-mark img { transform: rotate(-8deg) scale(1.1); }
.app-topbar.is-scrolled { box-shadow: 0 10px 30px -14px rgba(24, 26, 43, .25); }
.notif-badge { animation: badgePop .5s var(--ease-spring) both; }
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- بنر خوشامد: هالهٔ متحرک و آیکون‌های شناور سه‌بعدی ---------- */
.student-default-banner, .role-dashboard-banner { position: relative; overflow: hidden; isolation: isolate; }
.student-default-banner::before, .role-dashboard-banner::before {
    content: "" !important; display: block !important; position: absolute; z-index: -1; pointer-events: none;
    width: 420px; height: 420px; inset-block-start: -220px; inset-inline-end: -120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 90, 240, .22), transparent 65%);
    animation: aura 9s ease-in-out infinite alternate;
}
.student-default-banner::after, .role-dashboard-banner::after {
    content: "" !important; display: block !important; position: absolute; z-index: -1; pointer-events: none;
    width: 340px; height: 340px; inset-block-end: -190px; inset-inline-start: 8%; border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 178, 46, .22), transparent 65%);
    animation: aura 11s ease-in-out infinite alternate-reverse;
}
@keyframes aura { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 26px, 0) scale(1.18); } }
.student-default-banner-art, .role-dashboard-banner-art {
    transform-style: preserve-3d;
    transform: perspective(700px) rotateX(var(--bry, 0deg)) rotateY(var(--brx, 0deg));
    transition: transform .25s ease-out;
}
.student-default-banner-art .material-symbols-outlined { animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(40, 24, 110, .25)); }
.student-default-banner-art .art-idea { animation-delay: -1.2s; }
.student-default-banner-art .art-calc { animation-delay: -2.4s; }
.student-default-banner-art .art-school { animation-delay: -3.6s; }
.role-dashboard-banner-art .art-float { animation: floaty 4.5s ease-in-out infinite; }
.role-dashboard-banner-art .art-two { animation-delay: -2s; }
@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 40px); } 50% { transform: translate3d(0, -9px, 70px); } }

/* ---------- جدول، مودال، منو ---------- */
.table-hover > tbody > tr { transition: background .15s, transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .table-hover > tbody > tr:hover { transform: translateX(-3px); } }
.modal.fade .modal-dialog { transform: perspective(900px) rotateX(-12deg) translateY(-24px) scale(.96); transition: transform .45s var(--ease), opacity .3s; opacity: 0; }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.dropdown-menu.show { animation: menuIn .28s var(--ease) both; transform-origin: top center; }
@keyframes menuIn { from { opacity: 0; transform: perspective(600px) rotateX(-14deg) translateY(-8px); } to { opacity: 1; transform: none; } }
.progress-bar { transition: width 1.1s var(--ease); }
.badge-soft, .badge { transition: transform .2s var(--ease-spring); }
.badge-soft:hover { transform: scale(1.08); }

/* ---------- صفحهٔ ورود ---------- */
.auth-card { animation: authIn .9s var(--ease) both; }
@keyframes authIn { from { opacity: 0; transform: perspective(1200px) rotateX(10deg) translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-card .floating-badge, .auth-card .visual-card { animation: floaty 6s ease-in-out infinite; }
.auth-card .floating-badge { animation-delay: -2s; }

/* ---------- صفحهٔ اصلی: هیرو سه‌بعدی ---------- */
.landing-intro-split { max-width: 1180px; display: grid; gap: 2.5rem; align-items: center; text-align: start; padding-top: 3.5rem; }
.landing-intro-split h1 { margin-bottom: 1rem; }
.landing-intro-split p { margin-inline: 0; }
.landing-intro-split .landing-intro-actions { justify-content: flex-start; }
@media (min-width: 960px) { .landing-intro-split { grid-template-columns: 1.05fr .95fr; } }
.landing-intro-copy > * { animation: titleIn .8s var(--ease) both; }
.landing-intro-copy > :nth-child(2) { animation-delay: .1s; }
.landing-intro-copy > :nth-child(3) { animation-delay: .2s; }

.l3d { perspective: 1400px; display: grid; place-items: center; min-height: 400px; position: relative; }
.l3d::before {
    content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, rgba(120, 90, 240, .28), rgba(251, 178, 46, .12) 55%, transparent 70%);
    filter: blur(8px); animation: aura 8s ease-in-out infinite alternate;
}
.l3d-float { animation: l3dFloat 7s ease-in-out infinite; transform-style: preserve-3d; position: relative; z-index: 1; }
@keyframes l3dFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.l3d-scene {
    position: relative; width: 440px; height: 360px; transform-style: preserve-3d;
    transform: rotateX(calc(16deg + var(--l-rx, 0deg))) rotateY(calc(-24deg + var(--l-ry, 0deg)));
    transition: transform .35s ease-out;
    animation: sceneIn 1.2s var(--ease) both;
}
@keyframes sceneIn { from { opacity: 0; transform: rotateX(50deg) rotateY(-60deg) scale(.7); } }
.l3d-card {
    position: absolute; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 18px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 50px -20px rgba(40, 24, 110, .45);
    padding: 14px 16px; transform-style: preserve-3d; font-size: .75rem; color: var(--ds-text);
}
.l3d-back { width: 300px; height: 210px; inset-inline-start: 80px; top: 20px; transform: translateZ(0); }
.l3d-mid { width: 210px; height: 140px; inset-inline-start: 0; top: 190px; transform: translateZ(70px); }
.l3d-front { width: 250px; height: 170px; inset-inline-start: 190px; top: 130px; transform: translateZ(140px); }
.l3d-title { font-weight: 800; font-size: .8rem; margin-bottom: .55rem; display: flex; align-items: center; gap: .4rem; }
.l3d-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-accent); display: inline-block; }
.l3d-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.l3d-grid b { height: 20px; border-radius: 6px; background: var(--ds-surface-2); border: 1px solid var(--ds-line); }
.l3d-grid b.on { background: var(--ds-brand-soft); border-color: var(--ds-brand-line); }
.l3d-grid b.hot { background: var(--ds-brand); border-color: var(--ds-brand); }
.l3d-grid b.gold { background: var(--ds-accent); border-color: var(--ds-accent); }
.l3d-bars { display: flex; align-items: flex-end; gap: 9px; height: 74px; padding-top: 4px; }
.l3d-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--ds-brand), color-mix(in srgb, var(--ds-brand) 55%, #fff)); transform-origin: bottom; animation: barGrow 1.2s var(--ease) both; }
.l3d-bars i:nth-child(1) { height: 38%; animation-delay: .5s; } .l3d-bars i:nth-child(2) { height: 62%; animation-delay: .6s; }
.l3d-bars i:nth-child(3) { height: 50%; animation-delay: .7s; } .l3d-bars i:nth-child(4) { height: 82%; animation-delay: .8s; }
.l3d-bars i:nth-child(5) { height: 66%; animation-delay: .9s; background: linear-gradient(180deg, var(--ds-accent), color-mix(in srgb, var(--ds-accent) 60%, #fff)); }
@keyframes barGrow { from { transform: scaleY(0); } }
.l3d-row { display: flex; align-items: center; gap: .55rem; padding: .38rem 0; border-bottom: 1px dashed var(--ds-line); font-weight: 600; }
.l3d-row:last-child { border-bottom: 0; }
.l3d-row .ck { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--ds-line-strong); display: grid; place-items: center; flex-shrink: 0; }
.l3d-row.done .ck { background: var(--ds-brand); border-color: var(--ds-brand); }
.l3d-row.done .ck::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg) translate(-1px, -1px); }
.l3d-row.done span { color: var(--ds-text-3); text-decoration: line-through; }
.l3d-badge {
    position: absolute; inset-inline-start: 395px; top: 60px; width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(145deg, #ffd27a, var(--ds-accent)); display: grid; place-items: center; color: #3d2a00;
    transform: translateZ(200px); box-shadow: 0 22px 30px -10px rgba(217, 138, 0, .6), 0 2px 0 rgba(255, 255, 255, .6) inset;
    animation: floaty 4s ease-in-out infinite;
}
.l3d-badge .material-symbols-outlined { font-size: 2rem; font-variation-settings: 'FILL' 1, 'wght' 600; }
@media (max-width: 959px) { .l3d { min-height: 330px; } .l3d-scene { transform-origin: center; zoom: .78; } }
@media (max-width: 520px) { .l3d-scene { zoom: .62; } .l3d { min-height: 270px; } }

/* ---------- خاموش‌سازی ---------- */
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1 !important; transform: none !important; }
    .tilt:hover { transform: none !important; }
    .l3d-float, .l3d-badge, .l3d::before, .student-default-banner::before, .student-default-banner::after,
    .role-dashboard-banner::before, .role-dashboard-banner::after { animation: none !important; }
}
@media (hover: none) { .tilt:hover { transform: none; } }

/* =====================================================================
   صفحه‌های ورود / ثبت‌نام / بازیابی
   ===================================================================== */
.auth-shell { background: radial-gradient(900px 500px at 85% -10%, rgba(120, 90, 240, .16), transparent 60%), radial-gradient(700px 420px at 5% 110%, rgba(251, 178, 46, .14), transparent 60%), var(--ds-bg); }
.auth-card { max-width: 1120px; border-radius: 28px; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 40px 80px -30px rgba(40, 24, 110, .45); }
.auth-card .auth-form-panel { position: relative; background: var(--ds-surface); }
.auth-card .auth-form-panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(420px 260px at 100% 0%, var(--ds-brand-soft), transparent 70%);
}
.auth-card .auth-form-panel .inner { position: relative; }
.auth-logo { filter: drop-shadow(0 12px 14px rgba(82, 37, 192, .3)); animation: logoIn .9s var(--ease-spring) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-14px) rotate(-14deg) scale(.6); } }
.auth-heading h1 { font-weight: 900; }
.auth-card form > *, .auth-card .register-stepper, .auth-card .auth-heading { animation: titleIn .7s var(--ease) both; }
.auth-card form > :nth-child(2) { animation-delay: .05s; } .auth-card form > :nth-child(3) { animation-delay: .1s; }
.auth-card form > :nth-child(4) { animation-delay: .15s; } .auth-card form > :nth-child(5) { animation-delay: .2s; }
.auth-card form > :nth-child(6) { animation-delay: .25s; } .auth-card form > :nth-child(n+7) { animation-delay: .3s; }

.auth-card .auth-form-group {
    min-height: 54px; border: 1.5px solid var(--ds-line-strong); border-radius: 14px; background: var(--ds-surface);
    transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.auth-card .auth-form-group:focus-within { transform: translateY(-2px); border-color: var(--ds-brand); box-shadow: var(--ds-ring), 0 12px 22px -14px rgba(82, 37, 192, .5); }
.auth-card .auth-form-group:focus-within .input-icon { color: var(--ds-brand); transform: scale(1.12); }
.auth-card .auth-form-group .input-icon { transition: color .2s, transform .3s var(--ease-spring); color: var(--ds-text-3); }
.auth-card .auth-btn, .stitch-auth .auth-btn {
    position: relative; overflow: hidden; min-height: 54px; border: 0; border-radius: 14px; font-weight: 800; font-size: 1rem; color: #fff; cursor: pointer;
    background: linear-gradient(180deg, #6a3fe0, var(--ds-brand) 55%, #4619a8);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 16px 26px -10px rgba(82, 37, 192, .65);
    transition: transform .2s var(--ease), box-shadow .25s;
}
[data-theme="dark"] .auth-card .auth-btn { color: #12101f; background: linear-gradient(180deg, #b7a4f8, var(--ds-brand) 60%, #7c62d8); }
.auth-card .auth-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
    .auth-card .auth-btn:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 22px 30px -12px rgba(82, 37, 192, .7); }
    .auth-card .auth-btn:hover::after { transform: translateX(130%); transition: transform .8s var(--ease); }
}
.auth-card .auth-btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 8px 14px -8px rgba(82, 37, 192, .6); }
.auth-card .auth-trust { display: flex; align-items: center; justify-content: center; gap: .35rem; }

/* انتخاب نقش در ثبت‌نام */
.role-selection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.auth-role-card {
    position: relative; display: flex !important; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
    padding: 1.1rem .6rem !important; border: 1.5px solid var(--ds-line-strong) !important; border-radius: 16px !important;
    background: var(--ds-surface) !important; color: var(--ds-text) !important; transform-style: preserve-3d;
    transition: border-color .2s, background .2s, box-shadow .3s, transform .5s var(--ease);
}
.auth-role-card .role-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.6rem; background: var(--ds-brand-soft); color: var(--ds-brand); box-shadow: 0 6px 14px -6px rgba(82, 37, 192, .4); transition: transform .35s var(--ease-spring); }
.auth-role-card strong { font-size: .92rem; font-weight: 800; }
.auth-role-card small { color: var(--ds-text-3); font-size: .7rem; line-height: 1.6; }
.auth-role-card .role-check { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 1.2rem; color: var(--ds-brand); opacity: 0; transform: scale(.3) rotate(-40deg); transition: opacity .2s, transform .4s var(--ease-spring); font-variation-settings: 'FILL' 1; }
.btn-check:checked + .auth-role-card, .auth-role-card.active {
    border-color: var(--ds-brand) !important; background: var(--ds-brand-soft) !important;
    box-shadow: 0 0 0 3px rgba(82, 37, 192, .14), 0 18px 28px -16px rgba(82, 37, 192, .55);
}
.btn-check:checked + .auth-role-card .role-check, .auth-role-card.active .role-check { opacity: 1; transform: none; }
.btn-check:checked + .auth-role-card .role-icon { background: var(--ds-brand); color: #fff; transform: translateZ(30px) scale(1.08); }
@media (max-width: 520px) { .role-selection-grid { grid-template-columns: 1fr; } .auth-role-card { flex-direction: row; justify-content: flex-start; text-align: start; } }
.register-stepper { display: flex; gap: .5rem; margin-bottom: 1.4rem; }
.register-stepper > div { flex: 1; display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem; border-radius: 12px; border: 1px solid var(--ds-line); background: var(--ds-surface-2); color: var(--ds-text-3); font-size: .74rem; font-weight: 700; }
.register-stepper > div b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ds-line); font-size: .72rem; color: var(--ds-text-2); }
.register-stepper > div.active { background: var(--ds-brand-soft); border-color: var(--ds-brand-line); color: var(--ds-brand); }
.register-stepper > div.active b { background: var(--ds-brand); color: #fff; }

/* ستون تصویری */
.auth-card .auth-illustration.auth-aside-pro {
    position: relative; overflow: hidden; isolation: isolate; border: 0; color: #fff; gap: 1rem;
    background: linear-gradient(155deg, #1c0b52 0%, #321684 48%, #5225c0 100%) !important;
}
.auth-aside-pro::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.6px) 0 0 / 24px 24px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.aside-aurora i { position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.aside-aurora i:first-child { width: 360px; height: 360px; inset-block-start: -90px; inset-inline-start: -80px; background: rgba(251, 178, 46, .16); animation: aura 9s ease-in-out infinite alternate; }
.aside-aurora i:last-child { width: 420px; height: 420px; inset-block-end: -160px; inset-inline-end: -120px; background: rgba(140, 100, 255, .5); animation: aura 12s ease-in-out infinite alternate-reverse; }
.aside-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.15rem; align-self: flex-start; }
.aside-brand img { background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); }
.auth-aside-pro .l3d { flex: 1; min-height: 300px; }
.auth-aside-pro .l3d-scene { zoom: .82; }
.auth-aside-pro .l3d::before { background: radial-gradient(circle, rgba(251, 178, 46, .35), rgba(140, 100, 255, .25) 55%, transparent 70%); }
.aside-copy h3 { color: #fff; font-size: 1.45rem; font-weight: 900; margin: 0 0 .5rem; }
.aside-copy p { color: rgba(255, 255, 255, .82); font-size: .92rem; line-height: 1.9; margin: 0 0 .8rem; }
.aside-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.aside-points li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; }
.aside-points .material-symbols-outlined { font-size: 1rem; color: var(--ds-accent); font-variation-settings: 'FILL' 1; }
@media (max-width: 900px) { .auth-card .auth-illustration.auth-aside-pro { display: none; } .auth-card { grid-template-columns: 1fr; min-height: 0; } }

/* =====================================================================
   بنر بنفش پایین صفحهٔ اصلی
   ===================================================================== */
.landing-cta.landing-cta-pro {
    position: relative; overflow: hidden; isolation: isolate; text-align: start; color: #fff;
    margin: 2rem 1.25rem 4rem; padding: 3.5rem clamp(1.5rem, 5vw, 4rem); border-radius: 32px;
    background: linear-gradient(135deg, #1c0b52 0%, #3a1a9a 45%, #5a2ee0 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 50px 80px -34px rgba(60, 30, 170, .7);
}
.cta-bg i { position: absolute; z-index: -1; pointer-events: none; }
.cta-bg .o1 { width: 420px; height: 420px; border-radius: 50%; inset-block-start: -180px; inset-inline-start: -100px; background: radial-gradient(circle, rgba(251, 178, 46, .55), transparent 65%); animation: aura 9s ease-in-out infinite alternate; }
.cta-bg .o2 { width: 520px; height: 520px; border-radius: 50%; inset-block-end: -260px; inset-inline-end: 8%; background: radial-gradient(circle, rgba(150, 110, 255, .6), transparent 65%); animation: aura 12s ease-in-out infinite alternate-reverse; }
.cta-bg .dots { inset: 0; opacity: .55; background: radial-gradient(rgba(255, 255, 255, .25) 1.2px, transparent 1.6px) 0 0 / 26px 26px; -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); mask-image: linear-gradient(270deg, #000, transparent 70%); }
.cta-split { display: grid; gap: 2.5rem; align-items: center; position: relative; }
@media (min-width: 900px) { .cta-split { grid-template-columns: 1.15fr .85fr; } }
.cta-kicker { display: inline-block; padding: .25rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); font-size: .78rem; font-weight: 800; margin-bottom: 1rem; }
.landing-cta-pro h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; line-height: 1.6; margin: 0 0 .8rem; text-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.landing-cta-pro p { color: rgba(255, 255, 255, .86); font-size: 1rem; line-height: 2; max-width: 560px; margin: 0 0 1.6rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.4rem; }
.landing-cta-pro .btn-brand { background: linear-gradient(180deg, #ffd27a, var(--ds-accent)); border: 0; color: #3d2a00; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 16px 28px -10px rgba(251, 178, 46, .7); }
.landing-cta-pro .btn-brand:hover { background: linear-gradient(180deg, #ffdc92, #ffbf4d); color: #3d2a00; }
.cta-ghost { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); }
.cta-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.cta-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.cta-points li { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .9); }
.cta-points .material-symbols-outlined { color: var(--ds-accent); font-size: 1.1rem; font-variation-settings: 'FILL' 1; }
.cta-art { position: relative; height: 300px; perspective: 900px; transform-style: preserve-3d; }
.cta-tile {
    position: absolute; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 26px; color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .38);
    backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 28px 40px -14px rgba(10, 0, 50, .6);
    transform: translate3d(calc(var(--cx, 0) * var(--d, 30) * -1px), calc(var(--cy, 0) * var(--d, 30) * -1px), 0) rotateX(calc(var(--cy, 0) * -14deg)) rotateY(calc(var(--cx, 0) * 14deg));
    transition: transform .3s ease-out; animation: floaty 6s ease-in-out infinite;
}
.cta-tile .material-symbols-outlined { font-size: 2.6rem; font-variation-settings: 'FILL' 1, 'wght' 500; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.cta-tile.t1 { inset-inline-start: 4%; top: 6%; --d: 22; }
.cta-tile.t2 { inset-inline-start: 46%; top: 0; width: 110px; height: 110px; --d: 44; animation-delay: -1.5s; }
.cta-tile.t3 { inset-inline-start: 18%; top: 48%; width: 118px; height: 118px; background: linear-gradient(145deg, #ffd27a, var(--ds-accent)); color: #3d2a00; --d: 60; animation-delay: -3s; }
.cta-tile.t4 { inset-inline-start: 62%; top: 52%; --d: 30; animation-delay: -4.5s; }
.cta-ring { position: absolute; inset-inline-start: 24%; top: 12%; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .28); animation: spin 40s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .cta-art { height: 200px; } .cta-tile { width: 72px; height: 72px; border-radius: 20px; } .cta-tile.t2 { width: 80px; height: 80px; } .cta-tile.t3 { width: 84px; height: 84px; } .cta-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { .cta-tile, .cta-ring, .cta-bg i, .aside-aurora i, .auth-logo, .auth-card, .auth-card form > * { animation: none !important; } }
@keyframes ctaFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.cta-tile { animation-name: ctaFloat; }

.stitch-auth.stitch-register label[for="role_school"] { grid-column: auto; min-height: 0; flex-direction: column; justify-content: center; text-align: center; padding: 1.1rem .6rem !important; }
.stitch-auth.stitch-register label[for="role_school"] small { margin-inline-start: 0; }
.stitch-auth.stitch-register .auth-role-card { min-height: 0; }
.auth-site-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 900; color: var(--ds-text) !important; text-decoration: none; }
.auth-site-header { background: var(--ds-surface); border-bottom: 1px solid var(--ds-line); }
@media (max-width: 520px) { .stitch-auth.stitch-register label[for="role_school"] { flex-direction: row; text-align: start; } }
