:root {
    --bg-start: #e8f7ff;
    --bg-end: #efe8ff;
    --ink: #0f172a;
    --muted: #475569;
    --primary-1: #06b6d4;
    --primary-2: #14b8a6;
    --primary-3: #3b82f6;
    --card: rgba(255, 255, 255, .65);
    --ring: rgba(14, 165, 233, .25);
    --footer-h: 64px;
}
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
div,
section,
img {
    caret-color: transparent;
}

input,
textarea {
    caret-color: black;
}

html {
    height: 100%;
    background: transparent;
}

body {
    font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
    color: var(--ink);
    min-height: 100dvh;
    background: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(60rem 44rem at 50% 44%, rgba(255, 150, 170, .14), transparent 62%), radial-gradient(72rem 56rem at 92% 14%, rgba(6, 182, 212, .10), transparent 64%), radial-gradient(72rem 60rem at 8% 86%, rgba(99, 102, 241, .08), transparent 66%), linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    transform: translateZ(0);
    will-change: transform;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 min(4vw, 24px);
}

.page-wrap {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--footer-h) + 12px);
    scroll-padding-bottom: calc(var(--footer-h) + 12px);
}

.navbar,
.footer {
    flex: 0 0 auto;
}

.hero {
    flex: 0 0 auto;
    padding: clamp(20px, 4vh, 40px) 0 clamp(8px, 2vh, 16px);
}
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .5);
    border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.nav-grid {
    display: grid;
    gap: 16px;
    padding: 14px 0;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav cta";
}

.brand {
    grid-area: logo;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
}

.brand-name {
    font-weight: 800;
    font-size: 20px;
}

.nav-links {
    grid-area: nav;
    display: flex;
    gap: 28px;
    justify-content: center;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    opacity: .8;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    grid-area: cta;
    display: flex;
    gap: 10px;
}
.loggoutButton {
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
    position: relative;
    width: 50%;
}

.logoutbtn {
    width: 100%;
    height: 100%;
    background: none;
    position: absolute;
    cursor: pointer;
    border: none;
}

.logout-icon {
    width: 100%;
    cursor: pointer;
}
}

.btn {
    --pad-y: 10px;
    --pad-x: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--pad-y) var(--pad-x);
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    box-shadow: 0 6px 18px rgba(2, 132, 199, .12);
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary-1), var(--primary-2));
    color: #fff;
}

.btn.primary:hover {
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    color: var(--primary-2);
    border: 1px solid var(--ring);
}

.btn.glass {
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .6);
    color: var(--ink);
}

.btn.lg {
    --pad-y: 14px;
    --pad-x: 22px;
    font-size: 15px;
}

.btn.full {
    width: 100%;
}
.hero {
    padding: 48px 0 24px;
}

.hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas: "art text";
}

.hero-art {
    grid-area: art;
}

.hero-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(255, 255, 255, .75);
    font-weight: 800;
    font-size: 12px;
    backdrop-filter: blur(8px);
    color: #000 !important;
}

.title {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4.5vw, 46px);
    line-height: 1.25;
    font-weight: 900;
}

.title .soft {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #14b8a6 100%);
    animation: shimmer 3s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    max-width: 54ch;
    margin-bottom: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.feature-strip {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.feature-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 900;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.main-picture {
    width: 100%;
    height: auto;
    display: block;
    margin-inline: auto;
    border-radius: 22px;
    filter: drop-shadow(0 18px 40px rgba(2, 132, 199, .18));
    animation: floaty 5.5s ease-in-out infinite;
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}
.login-card {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 520px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.field label {
    font-size: 15px;
    color: #0ea5e9;
    font-weight: 800;
}

.field input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, .18);
    outline: none;
    background: rgba(255, 255, 255, .9);
    text-align: left;
    box-sizing: border-box;
}
.about {
    padding: 64px 0 64px;
}

.about-grid {
    display: grid;
    gap: 10px;
    text-align: center;
}

.about h2 {
    font-size: 26px;
    margin: 0;
}

.about p {
    color: var(--muted);
    margin: 0 auto;
    max-width: 60ch;
    line-height: 1.9;
}
.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--footer-h);
    z-index: 30;
    border-top: 1px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(5px);
    padding: 12px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: 100%;
    padding-inline: min(4vw, 24px);
}

.foot-links {
    display: flex;
    gap: 18px;
}

.foot-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.foot-links a:hover {
    color: var(--ink);
}
#RegisterForm {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#RegisterForm::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(55rem 40rem at 50% 45%, rgba(255, 120, 150, .25), transparent 58%), radial-gradient(65rem 50rem at 90% 12%, rgba(6, 182, 212, .22), transparent 60%), radial-gradient(70rem 55rem at 10% 88%, rgba(99, 102, 241, .18), transparent 62%), radial-gradient(45rem 35rem at 15% 15%, rgba(251, 191, 36, .12), transparent 55%), radial-gradient(50rem 38rem at 85% 85%, rgba(20, 184, 166, .15), transparent 58%), linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    transform: translateZ(0);
    will-change: transform;
    animation: background-pulse 8s ease-in-out infinite;
}
#BrandDisplay {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 24px;
    grid-column: 1/-1;
}

#RedirectionBrandButton {
    position: relative;
    width: fit-content;
}

#BrandButton {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
}
#RegisterBody {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: center;
    padding: 20px;
    gap: 20px;
    height: 100vh;
    box-sizing: border-box;
}

#RegisterFormContent {
    display: flex;
    align-items: center;
    justify-content: center;
}

.RegisterHero {
    padding: 24px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    align-self: center;
    justify-self: center;
}

.RegisterTitle {
    font-size: 24px;
    text-align: center;
    font-weight: 800;
    background-color: black;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 10px;
}

#RegisterSpan {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 1.15em;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
    position: relative;
}

#RegisterSpan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: shine 5s ease-in-out infinite;
    pointer-events: none;
}

#RegisterChoices {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.RegisterButton {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-1) !important;
    border: 2px solid rgba(6, 182, 212, 0.3) !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 48px;
}

.RegisterButton:hover {
    background: var(--primary-1) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
    border-color: var(--primary-1) !important;
}

#RegisterButton {
    background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 50%, var(--primary-3) 100%) !important;
    background-size: 200% 200% !important;
    animation: gradient-shift 4s ease-in-out infinite !important;
    height: 52px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    border-radius: 16px !important;
    position: relative;
    overflow: hidden;
    color: white !important;
}

#RegisterButton:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.4) !important;
}

#RegisterDisplay {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 2px 8px rgba(255, 255, 255, 0.4) inset;
    margin: 20px;
    position: relative;
    height: 100%;
    overflow: hidden;
}

#RegisterDisplay::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: border-glow 4s ease-in-out infinite;
    opacity: 0.6;
}

#RegisterDisplay::after {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 20px;
    z-index: 0;
    animation: inner-pulse 5s ease-in-out infinite;
    pointer-events: none;
}

#RegisterDisplayPicture {
    width: 90%;
    max-width: 100%;
    object-fit: contain;
    animation: enhanced-float 5s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

#BodyBackGroundRegister {
    display: none;
}

.selected-option {
    background-color: #06b6d4 !important;
    color: #fff !important;
}
@keyframes enhanced-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-10px) rotate(1deg) scale(1.01);
    }

    50% {
        transform: translateY(-5px) rotate(0deg) scale(1.02);
    }

    75% {
        transform: translateY(-15px) rotate(-1deg) scale(1.01);
    }
}

@keyframes shimmer {

    0%,
    100% {
        filter: brightness(1) contrast(1);
    }

    50% {
        filter: brightness(1.2) contrast(1.1);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
        opacity: 0;
    }
}

@keyframes border-glow {

    0%,
    100% {
        opacity: 0.6;
        filter: brightness(1);
    }

    50% {
        opacity: 0.9;
        filter: brightness(1.3);
    }
}

@keyframes inner-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes background-pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateZ(0) scale(1);
    }

    50% {
        opacity: 0.95;
        transform: translateZ(0) scale(1.02);
    }
}

@keyframes display-glow {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    50% {
        transform: translateY(-4px) rotate(0deg);
    }

    75% {
        transform: translateY(-12px) rotate(-1deg);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "text" "art";
        gap: 18px;
        justify-items: center;
    }

    .login-card {
        max-width: 560px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta .btn {
        --pad-y: 10px;
        --pad-x: 14px;
        font-size: 14px;
    }

    .hero {
        padding: 24px 0 16px;
    }

    .title {
        font-size: clamp(28px, 8.5vw, 40px);
    }

    .subtitle {
        font-size: 15.5px;
        line-height: 1.85;
        max-width: 46ch;
    }

    .feature-strip {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 94%;
        margin-inline: auto;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

    .login-card {
        padding: 14px;
        border-radius: 14px;
    }

    .field input {
        height: 52px;
        font-size: 16px;
    }

    .btn.lg {
        --pad-y: 14px;
        --pad-x: 18px;
        font-size: 16px;
    }

    .main-picture {
        max-width: 440px;
    }
    #RegisterBody {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 2fr 3fr;
        gap: 10px;
    }

    #RegisterDisplay {
        grid-column-start: 1;
        grid-column-end: 3;
        order: -1;
        height: 250px;
        margin: 10px;
    }

    #RegisterChoices {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .RegisterButton {
        height: 44px !important;
        font-size: 16px !important;
    }

    #BrandDisplay {
        padding: 12px 16px;
        grid-row: 1;
    }

    .RegisterHero {
        grid-row-start: 3;
        grid-column-start: 1;
        padding: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    :root {
        --footer-h: 72px;
    }

    .hero {
        padding: 18px 0 12px;
    }

    .title {
        font-size: clamp(26px, 10vw, 38px);
    }

    .badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .login-card {
        width: 92%;
        margin-inline: auto;
    }

    .main-picture {
        width: 88%;
        max-width: 400px;
    }

    .about {
        padding: 32px 0 48px;
    }

    .footer {
        padding: 10px 0;
    }

    .footer-grid {
        padding-inline: 12px;
        font-size: 12.5px;
    }
    #RegisterDisplay {
        height: 200px;
        margin: 5px;
    }

    .RegisterTitle {
        font-size: 20px;
    }

    #BrandDisplay {
        padding: 10px 12px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-name {
        font-size: 18px;
    }
}
#QuestionsPage {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
    gap: 20px;
    background: radial-gradient(55rem 40rem at 50% 45%, rgba(255, 120, 150, .25), transparent 58%), radial-gradient(65rem 50rem at 90% 12%, rgba(6, 182, 212, .22), transparent 60%), radial-gradient(70rem 55rem at 10% 88%, rgba(99, 102, 241, .18), transparent 62%), radial-gradient(45rem 35rem at 15% 15%, rgba(251, 191, 36, .12), transparent 55%), radial-gradient(50rem 38rem at 85% 85%, rgba(20, 184, 166, .15), transparent 58%), linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    transform: translateZ(0);
    overflow: hidden;
}

.InputAnswer {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, .18);
    outline: none;
    background: rgba(255, 255, 255, .9);
    text-align: left;
    box-sizing: border-box;
}

.InputAnswer.has-validator {
    width: 95%;
    display: inline-block;
    vertical-align: middle;
}

#RegisterFullName,
RegisterContacts {
    display: flex;
    gap: 10px;
}

#RegisterStage {
    justify-self: center;
    align-self: center;
    margin: 10px;
    padding: 5px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #14b8a6 100%);
    border-radius: 14px;
}

#RegisterStageLabel {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 1.15em;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
    position: relative;
}

#BackToChoose {
    justify-self: center;
    align-self: center;
    margin: 10px;
    padding: 5px 20px;
}

#BackToChoose>a {
    color: grey;
}

#RegisterContacts {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
}

#ErrorEmpty {
    color: red;
    font-size: 15px;
    justify-self: center;
    align-self: center;
}

#RegisterGeneral {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#RegisterGenderChoices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.NextButton {
    width: 100%;
}

.backButton {
    position: absolute;
    left: 20px;
    top: 20px;
}

#SubmittedRegister {
    display: flex;
    align-items: center;
    justify-content: center;
}

#SubmittedRegister>img {
    width: 150px;
    height: auto;
}

.dashboard-shell {
    direction: rtl;
    min-height: calc(100vh - var(--footer-h));
    padding: 16px 0 32px;
}

.dashboard-shell-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 min(4vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
}

.dash-school {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-school-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-3), var(--primary-1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.dash-school-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-school-name {
    font-weight: 800;
    font-size: 15px;
}

.dash-role {
    font-size: 12px;
    color: var(--muted);
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .4);
}

.dash-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary-3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.dash-user-name {
    font-size: 13px;
    font-weight: 700;
}

.dash-top-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, .04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 3.2fr) minmax(260px, 1.1fr);
    gap: 16px;
    margin-top: 4px;
}
.dash-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dash-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    padding: 14px 16px;
    backdrop-filter: blur(10px);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dash-card-title {
    font-weight: 800;
    font-size: 14px;
}

.dash-card-sub {
    font-size: 12px;
    color: var(--muted);
}
.dash-calendar {
    padding: 0;
    overflow: hidden;
}

.dash-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    padding: 10px 16px;
    background: rgba(248, 250, 252, .8);
}

.dash-calendar-title {
    font-weight: 800;
    font-size: 14px;
}

.dash-calendar-inner {
    padding: 10px 14px 14px;
}

.dash-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-inline-start: 1px solid rgba(226, 232, 240, .9);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: #f9fafb;
}

.dash-calendar-col {
    border-inline-end: 1px solid rgba(226, 232, 240, .9);
    border-top: 1px solid rgba(226, 232, 240, .9);
    min-height: 70px;
    padding: 6px 8px;
    font-size: 12px;
}

.dash-calendar-col-label {
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-calendar-col-date {
    color: var(--muted);
    font-size: 11px;
}
.dash-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.8fr);
    gap: 14px;
}
.dash-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 10px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.dash-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed rgba(148, 163, 184, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    opacity: .7;
}

.dash-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--primary-3);
    text-decoration: none;
    font-weight: 700;
}
.dash-lessons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-lesson {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 6px 12px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .9);
}

.dash-lesson-index {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-3);
}

.dash-lesson-time {
    font-size: 11px;
    color: var(--muted);
}

.dash-lesson-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-lesson-subject {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-3);
}

.dash-lesson-class {
    font-size: 11px;
    color: var(--muted);
}

.dash-lesson-note {
    grid-column: 1/-1;
    font-size: 11px;
    color: var(--muted);
}
.dash-announcement {
    border-top: 1px solid rgba(226, 232, 240, .9);
    padding-top: 8px;
    margin-top: 8px;
    font-size: 12px;
}

.dash-announcement:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.dash-ann-time {
    color: var(--muted);
    font-size: 11px;
}

.dash-ann-title {
    font-weight: 800;
    margin-top: 2px;
}

.dash-ann-text {
    color: var(--muted);
    margin-top: 2px;
}
.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-side-card {
    background: rgba(248, 250, 252, .95);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .9);
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(148, 163, 184, .22);
}

.dash-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dash-side-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.dash-classes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-class-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    font-size: 12px;
}

.dash-class-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-class-name {
    font-weight: 700;
}

.dash-class-grade {
    color: var(--muted);
    font-size: 11px;
}

.dash-class-tag {
    min-width: 32px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    border-radius: 10px;
    padding: 4px 6px;
    color: #fff;
}
.tag-math {
    background: var(--primary-3);
}

.tag-physics {
    background: #f97316;
}

.tag-arabic {
    background: #ec4899;
}

.tag-english {
    background: #22c55e;
}

.tag-computer {
    background: #0ea5e9;
}

@media (max-width: 1024px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .dash-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
.portal-shell {
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    direction: rtl;
}
.portal-main {
    flex: 1;
    padding: 18px 20px;
    padding-inline-end: 110px;
    box-sizing: border-box;
}
.portal-sidebar {
    position: fixed;
    top: 16px;
    bottom: 16px;
    right: 16px;
    width: 70px;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    gap: 14px;
    z-index: 50;
}

.portal-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, .45);
}

.portal-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.portal-sidebar-nav--bottom {
    margin-top: auto;
}

.portal-sidebar-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .55);
    background: rgba(15, 23, 42, .9);
    color: #e5e7eb;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .18s ease;
}

.portal-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .6);
    border-color: rgba(248, 250, 252, .8);
}

.portal-sidebar-btn.is-active {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
    color: #fff;
    border-color: transparent;
}
.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

.portal-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-school-name {
    font-weight: 800;
    font-size: 18px;
}

.portal-school-sub {
    font-size: 13px;
    color: var(--muted);
}

.portal-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.portal-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.portal-user-meta .name {
    font-weight: 700;
}

.portal-user-meta .role {
    color: var(--muted);
}
.portal-dashboard {
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
    gap: 18px;
}
.portal-side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.portal-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.portal-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .14);
    padding: 14px 16px;
    backdrop-filter: blur(10px);
}

.portal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.portal-card-header h2,
.portal-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.portal-card-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.portal-empty {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.portal-subject-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.portal-subject-pill {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-subject-pill span.code {
    min-width: 30px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(226, 232, 240, .9);
}
.portal-calendar-card {
    margin-bottom: 4px;
}

.portal-calendar-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.portal-day {
    border-radius: 14px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(148, 163, 184, .55);
    text-align: center;
    font-size: 12px;
    display: grid;
    gap: 2px;
}

.portal-day-name {
    font-weight: 700;
    color: var(--muted);
}

.portal-day-number {
    font-size: 16px;
    font-weight: 900;
}

.portal-day-date {
    font-size: 11px;
    color: var(--muted);
}

.portal-day.portal-day--today {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .4);
    transform: translateY(-2px);
}
.portal-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 992px) {
    .portal-shell {
        justify-content: stretch;
    }

    .portal-main {
        padding-inline-end: 20px;
    }

    .portal-sidebar {
        top: auto;
        bottom: 8px;
        right: 50%;
        transform: translateX(50%);
        height: 64px;
        width: auto;
        flex-direction: row;
        padding: 8px 10px;
        border-radius: 999px;
    }

    .portal-sidebar-nav {
        flex-direction: row;
    }

    .portal-sidebar-nav--bottom {
        margin-top: 0;
        margin-right: 8px;
    }

    .portal-sidebar-btn {
        width: 40px;
        height: 40px;
    }

    .portal-dashboard {
        grid-template-columns: 1fr;
    }
}

.portal-shell {
    min-height: calc(100vh - 80px);
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    direction: rtl;
}
.portal-main {
    flex: 1;
    padding: 12px 20px;
    padding-inline-end: 110px;
    box-sizing: border-box;
}
.portal-sidebar {
    position: sticky;
    top: 90px;
    right: 0;
    width: 72px;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    gap: 14px;
    z-index: 10;
}

.portal-sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(59, 130, 246, .5);
}

.portal-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.portal-sidebar-nav--bottom {
    margin-top: auto;
}

.portal-sidebar-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .5);
    background: rgba(15, 23, 42, .95);
    color: #e5e7eb;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .18s ease;
}

.portal-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .65);
    border-color: rgba(248, 250, 252, .9);
}

.portal-sidebar-btn.is-active {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
    color: #fff;
    border-color: transparent;
}
.portal-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.portal-header-title {
    font-size: 20px;
    font-weight: 900;
}

.portal-header-sub {
    font-size: 13px;
    color: var(--muted);
}
.portal-dashboard {
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
    gap: 18px;
}
.portal-side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.portal-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.portal-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
    padding: 14px 16px;
    backdrop-filter: blur(10px);
}

.portal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.portal-card-header h2,
.portal-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.portal-card-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.portal-empty {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.portal-subject-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.portal-subject-pill {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(148, 163, 184, .5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-subject-pill span.code {
    min-width: 30px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(226, 232, 240, .9);
}
.portal-calendar-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.portal-day {
    border-radius: 14px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(148, 163, 184, .55);
    text-align: center;
    font-size: 12px;
    display: grid;
    gap: 2px;
}

.portal-day-name {
    font-weight: 700;
    color: var(--muted);
}

.portal-day-number {
    font-size: 16px;
    font-weight: 900;
}

.portal-day-date {
    font-size: 11px;
    color: var(--muted);
}

.portal-day.portal-day--today {
    background: linear-gradient(135deg, var(--primary-1), var(--primary-3));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .4);
    transform: translateY(-2px);
}
.portal-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 992px) {
    .portal-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-main {
        padding-inline-end: 20px;
        order: 2;
    }

    .portal-sidebar {
        order: 1;
        width: auto;
        flex-direction: row;
        justify-content: center;
        border-radius: 999px;
        padding-inline: 10px;
    }

    .portal-sidebar-nav {
        flex-direction: row;
    }

    .portal-sidebar-nav--bottom {
        margin-top: 0;
        margin-right: 8px;
    }

    .portal-dashboard {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Portal / Dashboard Layout
   (Teacher / Student / Admin)
   ============================*/

.portal-wrap {
    min-height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    direction: rtl;
}

.portal-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.portal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-school-name {
    font-weight: 800;
    font-size: 16px;
}

.portal-section-title {
    font-size: 14px;
    color: var(--muted);
}

.portal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-teacher-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-teacher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-3), var(--primary-1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
}

.portal-teacher-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-teacher-name {
    font-weight: 800;
    font-size: 14px;
}

.portal-teacher-role {
    font-size: 12px;
    color: var(--muted);
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-auto-rows: minmax(0, auto);
    gap: 16px;
}

.dash-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.dash-card-header h2 {
    font-size: 15px;
    margin: 0;
    font-weight: 800;
}

.dash-muted {
    font-size: 12px;
    color: var(--muted);
}

.dash-empty-state {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.calendar-card {
    grid-column: 1 / -1;
}

.calendar-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.calendar-pill {
    padding: 8px 6px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 12px;
    display: grid;
    gap: 2px;
}

.calendar-pill-label {
    font-weight: 800;
}

.calendar-pill-date {
    font-size: 11px;
    color: var(--muted);
}

.calendar-pill.is-today {
    background: linear-gradient(135deg, var(--primary-3), var(--primary-1));
    color: #fff;
    border: none;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.55);
}

.calendar-pill.is-today .calendar-pill-date {
    color: rgba(255, 255, 255, 0.9);
}

.classes-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.class-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.dash-class-tag {
    min-width: 36px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}
.tag-math {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
}

.tag-computer {
    background: linear-gradient(135deg, #06b6d4, #0f766e);
}

.tag-arabic {
    background: linear-gradient(135deg, #f97316, #fb7185);
}

.tag-english {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
}

.tag-physics {
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.class-row-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.class-subject {
    font-weight: 800;
    font-size: 13px;
}

.class-name {
    font-size: 12px;
    color: var(--muted);
}

.portal-right-rail {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.portal-icon-bar {
    margin-top: 10px;
    width: 62px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.7);
    padding: 16px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.portal-icon-link {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    font-size: 20px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.portal-icon-link.active {
    background: linear-gradient(160deg, var(--primary-3), var(--primary-1));
    color: #fff;
    box-shadow: 0 10px 26px rgba(59, 130, 246, 0.65);
}

.portal-icon-link:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.5);
}

@media (max-width: 992px) {
    .portal-wrap {
        grid-template-columns: 1fr;
        padding: 16px 10px 80px;
    }

    .portal-right-rail {
        position: fixed;
        bottom: 16px;
        right: 50%;
        transform: translateX(50%);
        z-index: 40;
    }

    .portal-icon-bar {
        flex-direction: row;
        width: auto;
        padding-inline: 14px;
    }
}
.question-card {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border-right: 4px solid transparent;
}

.question-card .q-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #324661;
}

.question-card .q-answer {
    margin-bottom: 4px;
}

.question-card .answer-text {
    font-weight: 600;
}

.question-card .q-comment {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}
.question-card.q-correct {
    border-right-color: #2ecc71;
    background-color: #e8f8f2;
}
.question-card.q-wrong {
    border-right-color: #e74c3c;
    background-color: #fdecea;
}
.question-card.q-noanswer {
    border-right-color: #95a5a6;
    background-color: #f4f6f7;
}
#pnlLoginCredentials > div:nth-child(4) > label {
    margin-right: 8px;
}