/* =========================================================
   قرارگاه عدالت آموزشی | Stylesheet
   فایل CSS سفارشی - تمام keyframes و کلاس‌های اختصاصی
   ========================================================= */

* {
    font-family: 'Vazirmatn', sans-serif;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --gold: #f5a623;
    --teal: #0f9b8e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Hero Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

/* Gradient Animations */
.gradient-animate {
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Glow Effect */
.glow-box {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.15);
    transition: all 0.4s ease;
}

.glow-box:hover {
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.35);
    transform: translateY(-8px);
}

/* Card Hover */
.card-3d {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Counter Animation */
.counter-box {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(245, 166, 35, 0.1));
    backdrop-filter: blur(10px);
}

/* Navbar Glass */
.nav-glass {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

.nav-glass.scrolled {
    background: rgba(26, 26, 46, 0.98);
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 5px var(--accent);
    }
    50% {
        box-shadow: 0 0 25px var(--accent), 0 0 50px rgba(233, 69, 96, 0.3);
    }
}

.pulse-live {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Timeline */
.timeline-line {
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--gold), var(--teal));
}

/* Tab Active */
.tab-btn.active {
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

/* Swiper */
.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Modal */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Progress Ring */
.progress-ring-circle {
    transition: stroke-dashoffset 1.5s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* ⚠️ حلقه‌ی زمینه و عددِ رینگ در HTML ثابت `stroke="#2a2a4a"` و
   `fill="white"` بودند. در تم روشن، کارتِ `bg-[#1a1a2e]` سفید می‌شود و
   عدد سفید روی سفید ناپدید می‌شد. این دو کلاس رنگ را تم‌آگاه می‌کنند؛
   رندرر `renderProgressRings` هم عیناً همین کلاس‌ها را می‌سازد. */
.ring-track {
    stroke: #2a2a4a;
}

html.light .ring-track {
    stroke: #e2e8f0;
}

.ring-value {
    fill: #ffffff;
}

html.light .ring-value {
    fill: #111827;
}

/* Typing Effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Mega Menu */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.menu-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==================== دکمه‌های هیرو (داده‌محور) ====================
   رنگ از متغیر درون‌خطی `--hb-color` می‌آید (ادمین هر رنگی می‌دهد)، پس این
   بلوک **به override روشن نیاز ندارد**: متن با همان رنگ برند روی پس‌زمینه‌ی
   روشن و تیره هر دو خوانا است. مقادیر هم‌اندازه‌ی کلاس‌های Tailwind قبلی‌اند
   (px-8 py-4 rounded-2xl text-lg) تا ظاهر پیش‌فرض عوض نشود. */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease,
                border-color 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-4px);
}

/* پر: گرادیان از رنگ انتخابی به سایه‌ی تیره‌ترش */
.hero-btn--solid {
    color: #fff;
    background-image: linear-gradient(to right, var(--hb-color), var(--hb-color-dark));
}

.hero-btn--solid:hover {
    box-shadow: 0 25px 50px -12px var(--hb-color);
}

/* خطی: قاب و متن به رنگ انتخابی */
.hero-btn--outline {
    color: var(--hb-color);
    border-color: var(--hb-color);
    background-color: transparent;
}

.hero-btn--outline:hover {
    background-color: var(--hb-soft);
}

/* ملایم: پس‌زمینه‌ی کم‌رنگ از همان رنگ */
.hero-btn--soft {
    color: var(--hb-color);
    background-color: var(--hb-soft);
    border-color: transparent;
}

.hero-btn--soft:hover {
    background-color: var(--hb-soft-strong);
}

/* شبح: بدون قاب و پس‌زمینه، فقط متن و آیکون */
.hero-btn--ghost {
    color: var(--hb-color);
    background-color: transparent;
    border-color: transparent;
}

.hero-btn--ghost:hover {
    background-color: var(--hb-soft);
}

/* Dark/Light mode transition */
.theme-transition {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Marquee */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-text {
    animation: marquee 20s linear infinite;
}

/* Skeleton Loading */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: linear-gradient(to right, #2a2a4a 8%, #3a3a5a 18%, #2a2a4a 33%);
    background-size: 800px 100%;
    animation: shimmer 2s infinite linear;
}

/* Map Dot Pulse */
@keyframes mapPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ====== Mobile Horizontal Scroll ====== */
.mobile-h-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 69, 96, 0.5) transparent;
}

.mobile-h-scroll::-webkit-scrollbar {
    height: 6px;
}

.mobile-h-scroll::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    margin: 0 1rem;
}

.mobile-h-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #e94560, #f5a623);
    border-radius: 10px;
}

@media (min-width: 768px) {
    .mobile-h-scroll {
        overflow: visible !important;
        overflow-x: visible !important;
    }
}

/* Snap cards on mobile */
.mobile-snap-card {
    scroll-snap-align: center;
    flex: 0 0 85%;
    min-width: 85%;
    max-width: 85%;
}

@media (min-width: 768px) {
    .mobile-snap-card {
        flex: 1 1 0%;
        min-width: 0;
        max-width: none;
    }
}

/* Mobile 2-col compact cards */
@media (max-width: 640px) {
    .mobile-2col .glow-box,
    .mobile-2col > div {
        padding: 1rem !important;
    }

    .mobile-2col h3 {
        font-size: 0.95rem !important;
    }

    .mobile-2col p {
        font-size: 0.7rem !important;
    }
}

/* ====== Mobile-only: Chart.js canvas overflow fix ====== */
@media (max-width: 768px) {
    #dashboard canvas {
        max-width: 100% !important;
    }

    #dashboard .rounded-2xl {
        overflow: hidden;
        min-width: 0;
    }

    #dashboard .grid > div {
        min-width: 0;
    }

    #dashboard .grid {
        overflow: hidden;
    }
}

/* ====== Mobile-only: Footer 3-col compact layout ====== */
@media (max-width: 767px) {
    footer .grid-cols-3 > div {
        min-width: 0;
    }

    footer .flex.items-center.gap-3 {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    footer .flex.items-center.gap-3 > div:first-child {
        width: 2rem !important;
        height: 2rem !important;
    }

    footer .flex.items-center.gap-3 h3 {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
    }

    footer .flex.items-center.gap-3 p {
        font-size: 0.55rem !important;
    }

    footer p.text-gray-400.text-sm.leading-relaxed {
        font-size: 0.65rem !important;
        line-height: 1.4 !important;
    }

    footer h4 {
        font-size: 0.7rem !important;
        margin-bottom: 0.4rem !important;
    }

    footer a.text-gray-400.text-sm,
    footer li a {
        font-size: 0.65rem !important;
        line-height: 1.5 !important;
    }

    footer ul.space-y-2 {
        margin-bottom: 0.5rem !important;
    }

    footer ul.space-y-2 > li {
        margin-top: 0 !important;
        margin-bottom: 0.1rem !important;
    }

    footer form.flex.gap-2 {
        gap: 0.25rem !important;
    }

    footer input[type="email"] {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.6rem !important;
        min-width: 0 !important;
    }

    footer form.flex.gap-2 button {
        padding: 0.4rem 0.6rem !important;
    }

    footer form.flex.gap-2 button i {
        font-size: 0.6rem !important;
    }
}

/* Preloader progress bar */
@keyframes loadBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* ====== تایمر شمارش معکوس تا کنکور ====== */
.konkur-unit {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.7rem 0.25rem;
    text-align: center;
    min-width: 0;
}

.konkur-value {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.konkur-label {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

@media (min-width: 640px) {
    .konkur-value {
        font-size: 1.875rem;
    }

    .konkur-label {
        font-size: 0.7rem;
    }
}

/* تپش کوتاه هنگام تغییر ثانیه */
.konkur-tick {
    animation: konkurTick 0.9s ease-out;
}

@keyframes konkurTick {
    0% {
        transform: translateY(-5px);
        opacity: 0.35;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* اتمام شمارش */
.konkur-done .konkur-value {
    font-size: 1.05rem !important;
    color: #0f9b8e;
}

/* ====== ساعت و تاریخ نوار بالا (کنار لوگو) ====== */
.nav-clock {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-clock-icon {
    color: var(--gold);
}

.nav-clock-time {
    color: #ffffff;
    letter-spacing: 0.02em;
}

.nav-clock-date {
    color: #9ca3af;
}

/* تپش کوتاه هنگام تغییر ثانیه */
.nav-clock-tick {
    animation: navClockTick 0.6s ease-out;
}

@keyframes navClockTick {
    0% {
        opacity: 0.45;
    }
    100% {
        opacity: 1;
    }
}

/* در حالت اسکرول‌شده کمی واضح‌تر شود */
#navbar.scrolled .nav-clock {
    background: rgba(255, 255, 255, 0.09);
}

/* لینک‌های منو هرگز وسط عبارت نشکنند («درباره ما» نباید دو خطی شود) */
#navbar .nav-link {
    white-space: nowrap;
}

/* ====== نقطه‌ی شکست منوی دسکتاپ: xl (۱۲۸۰px) ======
   با ۹ آیتم منو + لوگو + ساعت/تاریخ + دکمه‌های ورود، بازه‌ی
   ۱۰۲۴ تا ۱۲۷۹px جا نمی‌شود و اجزا روی هم می‌افتند (لوگو و تاریخ
   ساعت روی هم چاپ می‌شدند و دکمه‌ی ورود دو خطی می‌شد).
   پس در این بازه منوی همبرگری نمایش داده می‌شود.
   اگر آیتم جدیدی به منو اضافه کردید، دوباره در ۱۲۸۰ تست کنید. */

/* =========================================================
   پرسش و پاسخ
   ========================================================= */

.qa-toolbar {
    background: rgba(26, 26, 46, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.qa-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qa-search,
.qa-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.qa-search::placeholder,
.qa-input::placeholder {
    color: #6b7280;
}

.qa-search:focus,
.qa-input:focus {
    border-color: #0f9b8e;
    background: rgba(255, 255, 255, 0.08);
}

/* حذف دکمه‌ی پیش‌فرض پاک‌کردن در input[type=search] */
.qa-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.qa-ask-btn {
    background: linear-gradient(90deg, #0f9b8e, #0b7a70);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 155, 142, 0.25);
}

.qa-ask-btn:hover {
    box-shadow: 0 10px 26px rgba(15, 155, 142, 0.4);
}

.qa-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qa-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* --- چیپ‌های دسته‌بندی --- */
.qa-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qa-chip:hover {
    background: rgba(15, 155, 142, 0.15);
    border-color: rgba(15, 155, 142, 0.4);
    color: #ffffff;
}

.qa-chip-active {
    background: linear-gradient(90deg, #0f9b8e, #0b7a70);
    border-color: transparent;
    color: #ffffff;
}

.qa-chip-count {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 9999px;
    padding: 0 0.4rem;
    font-size: 0.68rem;
    line-height: 1.5;
}

/* --- آمار --- */
.qa-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- کارت سوال --- */
.qa-card {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.qa-card:hover {
    border-color: rgba(15, 155, 142, 0.35);
}

.qa-index {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    background: rgba(15, 155, 142, 0.16);
    color: #0f9b8e;
    border: 1px solid rgba(15, 155, 142, 0.3);
}

.qa-badge {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(15, 155, 142, 0.16);
    color: #0f9b8e;
    border: 1px solid rgba(15, 155, 142, 0.3);
}

.qa-status {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.qa-status-ok {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
}

.qa-status-wait {
    background: rgba(245, 166, 35, 0.16);
    color: #f5a623;
}

.qa-meta {
    font-size: 0.7rem;
    color: #6b7280;
}

.qa-question {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ffffff;
}

.qa-answer {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(15, 155, 142, 0.08);
    border-right: 3px solid #0f9b8e;
}

.qa-answer-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f9b8e;
    margin-bottom: 0.35rem;
}

.qa-answer-text {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #d1d5db;
}

.qa-reply-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: transparent;
    border: 1px solid rgba(15, 155, 142, 0.4);
    color: #0f9b8e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-reply-btn:hover {
    background: rgba(15, 155, 142, 0.15);
    color: #ffffff;
}

.qa-answer-form {
    margin-top: 0.75rem;
}

.qa-empty {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* =========================================================
   دروازه‌ی ورود صفحه‌ی پرسش و پاسخ — این صفحه فقط برای اعضا
   ========================================================= */

.qa-gate {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qa-gate-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    font-size: 1.6rem;
    color: #0f9b8e;
    background: rgba(15, 155, 142, 0.14);
    border: 1px solid rgba(15, 155, 142, 0.28);
}

.qa-gate-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f3f4f6;
    margin-bottom: 0.75rem;
}

.qa-gate-text {
    font-size: 0.9rem;
    line-height: 2;
    color: #9ca3af;
    max-width: 34rem;
    margin: 0 auto 1.5rem;
}

.qa-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 20rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.9rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(90deg, #e94560, #c0392b);
    transition: all 0.25s ease;
}

.qa-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(233, 69, 96, 0.3);
}

.qa-gate-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.qa-gate-link:hover {
    color: #e5e7eb;
}

/* برچسب «ویژه‌ی اعضای سایت» روی دکمه‌ی پرسش و پاسخ در صفحه‌ی اصلی.
   صفحه‌ی مقصد فقط برای اعضا باز می‌شود، پس کاربر باید از قبل بداند. */
.qa-members-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 0.9rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f9b8e;
    background: rgba(15, 155, 142, 0.12);
    border: 1px solid rgba(15, 155, 142, 0.25);
}

/* =========================================================
   انتخاب نقش کاربر در مودال ورود / ثبت‌نام
   ========================================================= */

.role-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.role-btn {
    --role-color: #e94560;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0.3rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.role-btn i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.role-btn:hover {
    border-color: var(--role-color);
    color: #e5e7eb;
    transform: translateY(-2px);
}

.role-btn.active {
    background: rgba(255, 255, 255, 0.09);
    background: color-mix(in srgb, var(--role-color) 18%, transparent);
    border-color: var(--role-color);
    color: #ffffff;
    box-shadow: 0 8px 20px -8px var(--role-color);
}

.role-btn.active i {
    color: var(--role-color);
    transform: scale(1.12);
}

.role-hint {
    margin-top: 0.55rem;
    min-height: 2.5em;
    font-size: 0.7rem;
    line-height: 1.75;
    color: #6b7280;
}

/* =========================================================
   چیپ کاربر وارد‌شده در نوار بالا
   ========================================================= */

.auth-chip-wrap {
    --role-color: #0f9b8e;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 13rem;
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-chip:hover {
    border-color: var(--role-color);
    background: rgba(255, 255, 255, 0.1);
}

.auth-chip-avatar {
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--role-color);
}

.auth-chip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.auth-chip-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-chip-role {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--role-color);
    white-space: nowrap;
}

.auth-chip-role i {
    font-size: 0.6rem;
}

.auth-logout,
.auth-admin-link {
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-logout:hover {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

.auth-admin-link:hover {
    background: rgba(192, 132, 252, 0.2);
    color: #c084fc;
}

.auth-chip-wrap--mobile {
    width: 100%;
}

.auth-chip-wrap--mobile .auth-chip {
    flex: 1;
    max-width: none;
}

/* نوار بالا در بازه‌ی lg باریک‌ترین حالت را دارد؛ اینجا فقط آواتار می‌ماند */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .auth-chip-text {
        display: none;
    }

    .auth-chip {
        padding: 0.3rem;
    }
}

/* =========================================================
   پنل کاربری (panel.html) — سه داشبورد نقش‌محور
   ========================================================= */

.panel-hero {
    background: linear-gradient(135deg, rgba(15, 155, 142, 0.14), rgba(233, 69, 96, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.75rem;
}

.panel-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--role-color, #0f9b8e);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--role-color, #0f9b8e);
}

.panel-role-badge i {
    font-size: 0.72rem;
}

.panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.panel-stat {
    --stat-color: #0f9b8e;
    position: relative;
    overflow: hidden;
    padding: 1.1rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.panel-stat::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--stat-color);
}

.panel-stat:hover {
    transform: translateY(-3px);
    border-color: var(--stat-color);
}

.panel-stat-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.7rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--stat-color);
    background: rgba(255, 255, 255, 0.06);
}

.panel-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.panel-stat-label {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
}

.panel-card {
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.panel-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-card-head h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #e5e7eb;
}

.panel-card-head h3 i {
    color: #0f9b8e;
}

.panel-card-body {
    padding: 0.6rem 1.25rem 1.25rem;
}

.panel-chart-box {
    height: 240px;
    padding: 1rem 1.25rem 1.25rem;
}

.panel-empty {
    padding: 1.25rem 0;
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
}

/* جدول آزمون‌ها */
.panel-table-wrap {
    overflow-x: auto;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.panel-table th {
    padding: 0.6rem 0.5rem;
    text-align: right;
    font-weight: 700;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.panel-table td {
    padding: 0.7rem 0.5rem;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.panel-pill {
    display: inline-block;
    min-width: 3.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.panel-pill.good {
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
}

.panel-pill.mid {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.15);
}

.panel-pill.low {
    color: #e94560;
    background: rgba(233, 69, 96, 0.15);
}

/* ردیف‌های عمومی (برنامه، جلسات، کاربران) */
.panel-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}

.panel-row:last-child {
    border-bottom: none;
}

.panel-row-day {
    flex-shrink: 0;
    min-width: 4.2rem;
    font-weight: 800;
    color: #0f9b8e;
}

.panel-row-main {
    font-weight: 700;
    color: #e5e7eb;
}

.panel-row-meta,
.panel-row-teacher {
    color: #9ca3af;
    font-size: 0.72rem;
}

.panel-row-teacher {
    margin-inline-start: auto;
}

.panel-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--role-color, #0f9b8e);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--role-color, #0f9b8e);
}

/* کارت دانش‌آموز مشاور */
.panel-student {
    padding: 0.85rem;
    margin-bottom: 0.6rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-student:last-child {
    margin-bottom: 0;
}

.panel-student-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.panel-student-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #e5e7eb;
}

.panel-student-grade {
    font-size: 0.68rem;
    color: #9ca3af;
}

.panel-progress {
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.panel-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f9b8e, #34d399);
}

.panel-student-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    color: #9ca3af;
}

/* پرسش بی‌پاسخ */
.panel-question {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.55rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.panel-question:last-child {
    margin-bottom: 0;
}

.panel-question:hover {
    border-color: #e94560;
    transform: translateY(-2px);
}

.panel-question-author {
    font-size: 0.68rem;
    font-weight: 800;
    color: #e94560;
}

.panel-question-text {
    font-size: 0.78rem;
    color: #e5e7eb;
    line-height: 1.7;
}

.panel-question-tag {
    align-self: flex-start;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.64rem;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
}

/* منابع */
.panel-resource {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.55rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.panel-resource:last-child {
    margin-bottom: 0;
}

.panel-resource:hover {
    border-color: #0f9b8e;
    transform: translateY(-2px);
}

.panel-resource > i {
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f9b8e;
    background: rgba(15, 155, 142, 0.15);
}

.panel-resource-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.panel-resource-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e5e7eb;
}

.panel-resource-meta {
    font-size: 0.66rem;
    color: #9ca3af;
}

/* پیام‌ها */
.panel-message {
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.6rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-message:last-child {
    margin-bottom: 0;
}

.panel-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.panel-message-sender {
    font-size: 0.75rem;
    font-weight: 800;
    color: #c084fc;
}

.panel-message-date {
    font-size: 0.66rem;
    color: #9ca3af;
}

.panel-message-subject {
    margin-top: 0.2rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #e5e7eb;
}

.panel-message-text {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    line-height: 1.8;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* میان‌برهای مدیر */
.panel-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    padding: 1rem 1.25rem 1.25rem;
}

.panel-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
    color: #e5e7eb;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.panel-link i {
    font-size: 1rem;
    color: #c084fc;
}

.panel-link:hover {
    transform: translateY(-3px);
    border-color: #c084fc;
}

.panel-gate {
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.panel-gate i {
    font-size: 2.5rem;
    color: #6b7280;
}

/* =========================================================
   فیلدهای فرم ورود/ثبت‌نام و مودال‌های پنل کاربری
   ========================================================= */

.auth-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-field:focus {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.08);
}

.auth-field::placeholder {
    color: #6b7280;
}

textarea.auth-field {
    resize: vertical;
    min-height: 3rem;
}

/* =========================================================
   کارت‌های کاربر در داشبوردها
   ========================================================= */

.panel-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 3px solid var(--role-color, #e94560);
    margin-bottom: 0.6rem;
}

.panel-person:last-child {
    margin-bottom: 0;
}

.panel-person-avatar {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--role-color, #e94560);
    background: color-mix(in srgb, var(--role-color, #e94560) 18%, transparent);
}

.panel-person-main {
    flex: 1;
    min-width: 0;
}

.panel-person-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.panel-person-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.panel-person-school {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

/* توضیحات / معرفی مشاور — زیر نام او در فهرست‌های پنل */
.panel-person-bio {
    font-size: 0.72rem;
    color: #8b97ad;
    line-height: 1.85;
    margin-top: 0.35rem;
    border-inline-start: 2px solid rgba(245, 166, 35, 0.4);
    padding-inline-start: 0.45rem;
}

/* ویرایش «توضیحات» در پروفایل خود مشاور */
.panel-bio-edit {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.panel-bio-edit .panel-mini-btn {
    margin-top: 0.7rem;
}

/* =========================================================
   پروفایل
   ========================================================= */

.panel-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
}

.panel-profile-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-profile-label {
    font-size: 0.68rem;
    color: #6b7280;
}

.panel-profile-value {
    font-size: 0.82rem;
    font-weight: 700;
    word-break: break-word;
}

/* =========================================================
   فهرست مشاوران (نمای دانش‌آموز)
   ========================================================= */

.panel-counselor {
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0.6rem;
}

.panel-counselor:last-child {
    margin-bottom: 0;
}

.panel-counselor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.panel-counselor-name {
    font-size: 0.9rem;
    font-weight: 800;
}

.panel-counselor-desc {
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.8;
    margin: 0.45rem 0;
}

.panel-counselor-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.7rem;
    color: #6b7280;
}

.panel-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 0.6rem;
    background: rgba(233, 69, 96, 0.15);
    color: #e94560;
    border: 1px solid rgba(233, 69, 96, 0.3);
    cursor: pointer;
    transition: background 0.2s ease;
}

.panel-mini-btn:hover {
    background: rgba(233, 69, 96, 0.28);
}

/* گونه‌ی کم‌رنگِ دکمه‌ی کوچک — برای کنش‌های ثانویه مثل «ویرایش».
   عمداً هم‌خانواده‌ی رنگی نیست تا با کنش اصلی (تعیین مشاور) اشتباه نشود. */
.panel-mini-btn.ghost {
    background: rgba(148, 163, 184, 0.12);
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.3);
}

.panel-mini-btn.ghost:hover {
    background: rgba(192, 132, 252, 0.25);
}

/* ستونِ کنش‌های ردیفِ جدول — چند دکمه کنار هم، بدون شکستن ارتفاع ردیف */
.panel-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
}

/* بخشِ افزودنیِ کارتِ کاربر (نشان/دکمه) — به انتهای کارت هل داده می‌شود */
.panel-person-extra {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-inline-start: auto;
}

.panel-note-inline {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.9;
    margin-bottom: 0.75rem;
}

/* اطلاعیه‌های مدیر — کارت «اطلاعیه‌های مدیر» در نمای مدیرِ پنل کاربری.
   از `panelNotices` پر می‌شود (همان داده‌ای که پنل ادمین ویرایش می‌کند). */
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.notice-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.notice-dot {
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.45rem;
    border-radius: 999px;
}
.notice-body {
    flex: 1 1 auto;
    min-width: 0;
}
.notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.notice-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e5e7eb;
}
.notice-date {
    font-size: 0.7rem;
    color: #9ca3af;
    white-space: nowrap;
}
.notice-text {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.9;
    color: #9ca3af;
}

.panel-chat-role {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* =========================================================
   چت خصوصی دانش‌آموز ↔ مشاور
   ========================================================= */

.chat-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.chat-pick {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-pick:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-pick.active {
    background: rgba(15, 155, 142, 0.2);
    border-color: rgba(15, 155, 142, 0.5);
    color: #0f9b8e;
}

.chat-box {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.4rem 0.2rem 0.9rem;
}

.chat-empty {
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
    padding: 1.5rem 0.5rem;
    line-height: 1.9;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 82%;
}

.chat-msg--me {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble {
    padding: 0.6rem 0.9rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
    line-height: 1.9;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-break: break-word;
}

.chat-msg--me .chat-bubble {
    background: rgba(15, 155, 142, 0.18);
    border-color: rgba(15, 155, 142, 0.35);
}

.chat-time {
    font-size: 0.62rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.chat-input {
    flex: 1;
}

.chat-send {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1.1rem;
    border-radius: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0f9b8e, #0b7c72);
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.chat-send:hover {
    filter: brightness(1.12);
}

/* =========================================================
   فایل‌های اشتراکی (چت/پشتیبانی) — مرحله ۳۲
   ========================================================= */
.panel-file-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-file-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.panel-file-row > * {
    flex: 1 1 12rem;
    min-width: 0;
}

.panel-file-row input[type="file"] {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.panel-file-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.file-pick {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.panel-file {
    padding: 0.85rem;
    margin-bottom: 0.7rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s ease;
}

.panel-file:last-child {
    margin-bottom: 0;
}

.panel-file:hover {
    border-color: #0f9b8e;
}

.panel-file-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.panel-file-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
}

.panel-file-title > i {
    color: #0f9b8e;
}

.panel-file-desc {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    line-height: 1.85;
    color: #94a3b8;
}

.panel-file-foot {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: #94a3b8;
}

.panel-file-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.file-comments {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.file-comment {
    padding: 0.55rem 0.7rem;
    border-radius: 0.8rem;
    background: rgba(15, 155, 142, 0.08);
    border-right: 3px solid #0f9b8e;
}

.file-comment-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.74rem;
    color: #e2e8f0;
}

.file-comment-date {
    margin-right: auto;
    font-size: 0.68rem;
    color: #94a3b8;
}

.file-comment p {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    line-height: 1.8;
    color: #cbd5e1;
}

/* =========================================================
   حالت روشن (با دکمه تم فعال می‌شود — پیش‌فرض همان حالت تیره است)
   کل قالب با رنگ‌های ثابت دارک نوشته شده، بنابراین سطوح اصلی
   اینجا بازنویسی می‌شوند.
   ========================================================= */

/* گزینه‌های select در حالت تیره هم خوانا باشند */
select option {
    background: #1a1a2e;
    color: #ffffff;
}

html.light {
    color-scheme: light;
}

/* --- سطوح --- */
html.light .bg-\[\#0a0a1a\],
html.light .bg-\[\#0a0a15\],
html.light .bg-\[\#0d0d1f\] {
    background-color: #eef1f7 !important;
}

html.light .bg-\[\#1a1a2e\] {
    background-color: #ffffff !important;
}

html.light .bg-\[\#1a1a2e\]\/98 {
    background-color: rgba(255, 255, 255, 0.98) !important;
}

html.light #mobileMenu {
    background-color: rgba(255, 255, 255, 0.98) !important;
}

/* --- گرادیان‌ها --- */
html.light .from-\[\#1a1a2e\] {
    --tw-gradient-from: #ffffff !important;
}

html.light .via-\[\#16213e\] {
    --tw-gradient-via: #f4f7fc !important;
}

html.light .to-\[\#16213e\] {
    --tw-gradient-to: #f2f5fb !important;
}

html.light .to-\[\#0d0d1f\] {
    --tw-gradient-to: #e9edf5 !important;
}

html.light .to-\[\#1a1a2e\] {
    --tw-gradient-to: #f7f9fc !important;
}

html.light .to-\[\#0a0a1a\] {
    --tw-gradient-to: #e9edf5 !important;
}

html.light .from-\[\#0a0a1a\] {
    --tw-gradient-from: #eef1f7 !important;
}

html.light .from-\[\#16213e\] {
    --tw-gradient-from: #f4f7fc !important;
}

/* عنوان گرادیانی هیرو در حالت روشن باید پررنگ‌تر شود */
html.light #home h1 span.gradient-animate {
    --tw-gradient-from: #c0392b !important;
    --tw-gradient-via: #a86a00 !important;
    --tw-gradient-to: #0b7a70 !important;
}

/* --- نوار بالا --- */
html.light .nav-glass {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom-color: rgba(233, 69, 96, 0.18) !important;
}

html.light .nav-glass.scrolled {
    background: rgba(255, 255, 255, 0.99) !important;
}

/* --- متن‌ها --- */
html.light .text-white {
    color: #16213e !important;
}

html.light .text-gray-300 {
    color: #3c4a63 !important;
}

html.light .text-gray-400 {
    color: #5a6a85 !important;
}

html.light .text-gray-500 {
    color: #6b7b96 !important;
}

html.light .text-white\/70,
html.light .text-white\/80 {
    color: rgba(22, 33, 62, 0.72) !important;
}

/* --- شیشه‌ای‌ها و حاشیه‌ها --- */
html.light .bg-white\/5 {
    background-color: rgba(22, 33, 62, 0.04) !important;
}

html.light .bg-white\/10 {
    background-color: rgba(22, 33, 62, 0.07) !important;
}

html.light .border-white\/5 {
    border-color: rgba(22, 33, 62, 0.08) !important;
}

html.light .border-white\/10 {
    border-color: rgba(22, 33, 62, 0.12) !important;
}

html.light .border-white\/20 {
    border-color: rgba(22, 33, 62, 0.18) !important;
}

html.light .counter-box {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.07), rgba(245, 166, 35, 0.07)) !important;
}

html.light .konkur-unit {
    background: rgba(22, 33, 62, 0.05) !important;
    border-color: rgba(22, 33, 62, 0.1) !important;
}

html.light .konkur-label {
    color: #5a6a85 !important;
}

/* رنگ اعداد تایمر در حالت روشن باید تیره‌تر شود؛
   نسخه‌های اصلی (#f5a623 و #c084fc) فقط روی پس‌زمینه تیره خوانا هستند. */
html.light #cdDays {
    color: #c81e3f !important;
}

html.light #cdHours {
    color: #c07800 !important;
}

html.light #cdMinutes {
    color: #0b7a70 !important;
}

html.light #cdSeconds {
    color: #7c3aed !important;
}

html.light .konkur-done .konkur-value {
    color: #0b7a70 !important;
}

/* --- ساعت و تاریخ نوار بالا در حالت روشن --- */
html.light .nav-clock {
    background: rgba(22, 33, 62, 0.05) !important;
    border-color: rgba(22, 33, 62, 0.12) !important;
}

html.light #navbar.scrolled .nav-clock {
    background: rgba(22, 33, 62, 0.08) !important;
}

html.light .nav-clock-icon {
    color: #b87400 !important;
}

html.light .nav-clock-time {
    color: #16213e !important;
}

html.light .nav-clock-date {
    color: #5a6a85 !important;
}

/* --- پرسش و پاسخ در حالت روشن --- */
html.light .qa-toolbar {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(22, 33, 62, 0.12) !important;
}

html.light .qa-divider {
    border-top-color: rgba(22, 33, 62, 0.1) !important;
}

html.light .qa-search,
html.light .qa-input {
    background: #ffffff !important;
    border-color: rgba(22, 33, 62, 0.18) !important;
    color: #16213e !important;
}

html.light .qa-search::placeholder,
html.light .qa-input::placeholder {
    color: #9aa5b5 !important;
}

html.light .qa-cancel {
    background: rgba(22, 33, 62, 0.06) !important;
    color: #4a5568 !important;
    border-color: rgba(22, 33, 62, 0.14) !important;
}

html.light .qa-chip {
    background: rgba(22, 33, 62, 0.04) !important;
    border-color: rgba(22, 33, 62, 0.12) !important;
    color: #5a6a85 !important;
}

html.light .qa-chip:hover {
    background: rgba(15, 155, 142, 0.12) !important;
    border-color: rgba(15, 155, 142, 0.4) !important;
    color: #0b7a70 !important;
}

html.light .qa-chip-active {
    background: linear-gradient(90deg, #0f9b8e, #0b7a70) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

html.light .qa-stat {
    background: #ffffff !important;
    border-color: rgba(22, 33, 62, 0.1) !important;
}

html.light .qa-card {
    background: #ffffff !important;
    border-color: rgba(22, 33, 62, 0.1) !important;
}

html.light .qa-index,
html.light .qa-badge {
    background: rgba(15, 155, 142, 0.1) !important;
    color: #0b7a70 !important;
    border-color: rgba(15, 155, 142, 0.28) !important;
}

html.light .qa-status-ok {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #15803d !important;
}

html.light .qa-status-wait {
    background: rgba(245, 166, 35, 0.18) !important;
    color: #a16207 !important;
}

html.light .qa-meta {
    color: #7b8794 !important;
}

html.light .qa-question {
    color: #16213e !important;
}

html.light .qa-answer {
    background: rgba(15, 155, 142, 0.07) !important;
}

html.light .qa-answer-text {
    color: #4a5568 !important;
}

html.light .qa-reply-btn {
    border-color: rgba(15, 155, 142, 0.45) !important;
    color: #0b7a70 !important;
}

html.light .qa-reply-btn:hover {
    background: rgba(15, 155, 142, 0.12) !important;
    color: #0b7a70 !important;
}

html.light .qa-empty {
    background: rgba(22, 33, 62, 0.02) !important;
    border-color: rgba(22, 33, 62, 0.15) !important;
}

/* دروازه‌ی ورود پرسش و پاسخ در تم روشن */
html.light .qa-gate {
    background: rgba(22, 33, 62, 0.02) !important;
    border-color: rgba(22, 33, 62, 0.12) !important;
}
html.light .qa-gate-title {
    color: #16213e !important;
}
html.light .qa-gate-text {
    color: #64748b !important;
}
html.light .qa-gate-link {
    color: #94a3b8 !important;
}
html.light .qa-gate-link:hover {
    color: #16213e !important;
}

/* برچسب «ویژه‌ی اعضای سایت» در تم روشن */
html.light .qa-members-badge {
    color: #0b7d73 !important;
    background: rgba(15, 155, 142, 0.1) !important;
    border-color: rgba(15, 155, 142, 0.3) !important;
}

/* هدر گرادیانی مودال پرسش و پاسخ باید متن سفیدش را حفظ کند،
   وگرنه قاعده‌ی html.light .text-white متن را تیره می‌کند و روی
   پس‌زمینه‌ی سبزآبی ناخوانا می‌شود. */
html.light .qa-modal-header,
html.light .qa-modal-header h3,
html.light .qa-modal-header p,
html.light .qa-modal-header i {
    color: #ffffff !important;
}

html.light .qa-modal-header .bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.22) !important;
}

/* جلوگیری از اسکرول افقی ناشی از انیمیشن‌های reveal
   (reveal-right/reveal-left تا ۸۰px بیرون می‌مانند تا وارد دید شوند).
   از clip استفاده می‌شود نه hidden تا position:sticky خراب نشود. */
html,
body {
    overflow-x: clip;
}

html.light .glow-box {
    box-shadow: 0 4px 20px rgba(22, 33, 62, 0.07);
}

/* --- دکمه‌های رنگی باید متن سفید بمانند --- */
html.light button[class*="from-[#e94560]"],
html.light a[class*="from-[#e94560]"],
html.light button[class*="from-[#f5a623]"],
html.light a[class*="from-[#f5a623]"],
html.light button[class*="from-[#0f9b8e]"],
html.light a[class*="from-[#0f9b8e]"],
html.light button.bg-\[\#e94560\],
html.light a.bg-\[\#e94560\],
html.light button.bg-\[\#f5a623\],
html.light button.bg-\[\#0f9b8e\],
html.light .tab-btn.active,
html.light .bg-\[\#e94560\] i,
html.light .bg-\[\#f5a623\] i {
    color: #ffffff !important;
}

/* --- اسکرول‌بار --- */
html.light ::-webkit-scrollbar-track {
    background: #eef1f7;
}

html.light select option {
    background: #ffffff;
    color: #16213e;
}

/* --- انتخاب نقش و چیپ کاربر (حالت روشن) --- */
html.light .role-btn {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.12);
    color: #64748b;
}

html.light .role-btn:hover {
    color: #0f172a;
}

html.light .role-btn.active {
    color: #0f172a;
}

html.light .role-hint {
    color: #64748b;
}

html.light .auth-chip {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
}

html.light .auth-chip:hover {
    background: rgba(15, 23, 42, 0.07);
}

html.light .auth-chip-name {
    color: #0f172a;
}

html.light .auth-logout,
html.light .auth-admin-link {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}

/* --- پنل کاربری (حالت روشن) --- */
html.light .panel-hero {
    background: linear-gradient(135deg, rgba(15, 155, 142, 0.1), rgba(233, 69, 96, 0.07));
    border-color: rgba(15, 23, 42, 0.1);
}

html.light .panel-role-badge {
    background: #ffffff;
}

html.light .panel-stat,
html.light .panel-card,
html.light .panel-student,
html.light .panel-question,
html.light .panel-resource,
html.light .panel-message,
html.light .panel-link,
html.light .panel-file-form,
html.light .panel-file {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
}

html.light .panel-stat-icon {
    background: rgba(15, 23, 42, 0.04);
}

html.light .panel-stat-value,
html.light .panel-row-main,
html.light .panel-student-name,
html.light .panel-question-text,
html.light .panel-resource-title,
html.light .panel-message-subject,
html.light .panel-card-head h3,
html.light .panel-link,
html.light .panel-file-title,
html.light .file-comment-head {
    color: #0f172a;
}

html.light .panel-stat-label,
html.light .panel-row-meta,
html.light .panel-row-teacher,
html.light .panel-student-grade,
html.light .panel-student-foot,
html.light .panel-resource-meta,
html.light .panel-message-text,
html.light .panel-message-date,
html.light .panel-question-tag,
html.light .panel-file-desc,
html.light .panel-file-foot,
html.light .file-comment-date,
html.light .file-comment p {
    color: #64748b;
}

html.light .panel-file-picks,
html.light .file-pick {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.12);
}

html.light .file-comment {
    background: rgba(15, 155, 142, 0.08);
    color: #0f172a;
}

html.light .panel-card-head {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html.light .panel-table th {
    background: rgba(15, 23, 42, 0.03);
    color: #475569;
}

html.light .panel-table td {
    color: #1e293b;
    border-bottom-color: rgba(15, 23, 42, 0.07);
}

html.light .panel-row {
    border-bottom-color: rgba(15, 23, 42, 0.07);
}

html.light .panel-progress {
    background: rgba(15, 23, 42, 0.08);
}

html.light .panel-gate {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
}

html.light .panel-gate i {
    color: #94a3b8;
}

html.light .panel-question-tag,
html.light .panel-role-tag {
    background: rgba(15, 23, 42, 0.05);
}

/* ---------- فیلدهای ورود/ثبت‌نام در حالت روشن ---------- */

html.light .auth-field {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

html.light .auth-field::placeholder {
    color: #94a3b8 !important;
}

html.light select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* ---------- کارت کاربر / پروفایل / مشاوران ---------- */

html.light .panel-person,
html.light .panel-profile-row,
html.light .panel-counselor {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.light .panel-person-name,
html.light .panel-profile-value,
html.light .panel-counselor-name {
    color: #0f172a !important;
}

html.light .panel-person-meta,
html.light .panel-counselor-desc,
html.light .panel-note-inline,
html.light .panel-chat-role {
    color: #64748b !important;
}

/* اطلاعیه‌های مدیر در تم روشن */
html.light .notice-item {
    border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}
html.light .notice-title {
    color: #1e293b !important;
}
html.light .notice-date,
html.light .notice-text {
    color: #64748b !important;
}

html.light .panel-person-school,
html.light .panel-counselor-foot,
html.light .panel-profile-label {
    color: #94a3b8 !important;
}

html.light .panel-mini-btn {
    background: rgba(233, 69, 96, 0.1) !important;
    color: #c0392b !important;
    border-color: rgba(233, 69, 96, 0.3) !important;
}

/* ⚠️ قاعده‌ی بالا `!important` دارد، پس گونه‌ی ghost باید **بعد از آن** و با
   `!important` بیاید؛ وگرنه در تم روشن، دکمه‌ی «ویرایش» قرمز می‌شد. */
html.light .panel-mini-btn.ghost {
    background: rgba(124, 58, 237, 0.08) !important;
    color: #6d28d9 !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

/* ---------- چت در حالت روشن ---------- */

html.light .chat-bubble {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

html.light .chat-msg--me .chat-bubble {
    background: rgba(15, 155, 142, 0.14) !important;
    border-color: rgba(15, 155, 142, 0.35) !important;
    color: #0f172a !important;
}

html.light .chat-pick {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

html.light .chat-pick.active {
    background: rgba(15, 155, 142, 0.12) !important;
    border-color: rgba(15, 155, 142, 0.4) !important;
    color: #0b7c72 !important;
}

html.light .chat-empty,
html.light .chat-time {
    color: #94a3b8 !important;
}

/* ---------- توضیحات مشاور در حالت روشن ---------- */

html.light .panel-person-bio {
    color: #64748b !important;
    border-inline-start-color: rgba(245, 166, 35, 0.7) !important;
}

html.light .panel-bio-edit {
    border-top-color: rgba(100, 116, 139, 0.25) !important;
}

/* ---------- گوشی‌های بسیار باریک (زیر ۳۶۰px) ----------
   در عرض ۳۲۰px لوگو و ساعت نوار بالا با هم سرریز می‌کردند؛
   ساعت پنهان می‌شود تا نوار بالا سالم بماند. */
@media (max-width: 359.98px) {
    #navClock {
        display: none !important;
    }
}



/* ---------- قالب نمودارهای صفحه‌ی اصلی ----------
   ⚠️ Chart.js با `maintainAspectRatio: false` ارتفاع را از والد می‌گیرد؛
   بدون والدِ ارتفاع‌دار، canvas در هر resize بی‌نهایت رشد می‌کند.
   عیناً همین کلاس در پنل ادمین هم هست (admin/css/admin.css → .chart-wrap)
   تا دو پنل هم‌شکل بمانند. */
.chart-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}

@media (max-width: 640px) {
    .chart-wrap {
        height: 220px;
    }
}


/* ---------- فید «فعالیت‌های اخیر» (کارت داشبورد صفحه‌ی اصلی) ----------
   عیناً آینه‌ی پنل ادمین است (admin/css/admin.css → .activity-*).
   ⚠️ این کارت پیش‌تر خالی می‌ماند چون `#activityLog` هیچ‌وقت پر نمی‌شد. */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.85rem;
    color: #d1d5db;
    margin: 0 0 0.15rem;
    line-height: 1.5;
}

.activity-time {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0;
}

html.light .activity-item {
    background: rgba(15, 23, 42, 0.03) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

html.light .activity-item:hover {
    background: rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}

html.light .activity-text {
    color: #334155 !important;
}

html.light .activity-time {
    color: #64748b !important;
}


/* ---------- دکمه‌های بازه‌ی نمودار (سالانه / ماهانه) ----------
   ⚠️ این دو دکمه پیش‌تر کاملاً مرده بودند و کلاس‌های رنگشان هاردکد بود
   (bg-white/10 در حالت روشن روی کارت سفید تقریباً نامرئی می‌شد). */
.chart-range-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    transition: all 0.2s;
}

.chart-range-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.chart-range-btn.is-active {
    background: #e94560;
    color: #fff;
}

html.light .chart-range-btn {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
}

html.light .chart-range-btn:hover {
    background: rgba(15, 23, 42, 0.11) !important;
}

html.light .chart-range-btn.is-active {
    background: #e94560 !important;
    color: #fff !important;
}

/* =========================================================
   رنگ پویا برای کارت‌هایی که رنگشان از داده می‌آید
   کلاس دلخواه Tailwind (مثل `hover:text-[#e94560]`) برای رنگی که ادمین
   همین حالا انتخاب کرده هنوز در شیوه‌نامه وجود ندارد، پس رنگ از متغیر CSS
   خوانده می‌شود:  <h3 data-hover-color style="--hover-color:#e94560">
   عنصر باید خودش `transition-colors` یا `transition-all` داشته باشد.
   ⚠️ نسخه‌ی `html.light` لازم است، چون قواعد تم روشن (`.bg-white\/10`
   و مانند آن) با `!important` نوشته شده‌اند و اگر نباشند، هاور در تم روشن
   بی‌اثر می‌شود.
   ========================================================= */
[data-hover-color] {
    transition: color 0.3s ease;
}

[data-hover-color]:hover {
    color: var(--hover-color);
}

[data-hover-bg]:hover,
html.light [data-hover-bg]:hover {
    background-color: var(--hover-color) !important;
}

