:root {
    --gulf-blue: #0078B4;
    --gulf-blue-dark: #004884;
    --gulf-gold: #C9A227;
    --bs-primary: var(--gulf-blue);
    --bs-primary-rgb: 0, 120, 180;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0f1a20;
    --bs-body-color: #e8eef2;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
}

.navbar-brand img {
    height: 40px;
    transition: transform .25s ease;
}

.navbar-brand:hover img {
    transform: rotate(-6deg) scale(1.06);
}

/* ===== قائمة التنقل الرئيسية ===== */
.navbar-premium {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 120, 180, .1);
    padding-top: .65rem;
    padding-bottom: .65rem;
    transition: box-shadow .25s ease, padding .25s ease;
}

.navbar-premium.is-scrolled {
    box-shadow: 0 .5rem 1.5rem rgba(0, 40, 70, .1);
    padding-top: .4rem;
    padding-bottom: .4rem;
}

[data-bs-theme="dark"] .navbar-premium {
    background: rgba(15, 26, 32, .85);
    border-bottom-color: rgba(255, 255, 255, .08);
}

.brand-text {
    font-size: 1.05rem;
    color: var(--bs-body-color);
    transition: opacity .2s ease;
}

.nav-pills-glow {
    display: flex;
    align-items: center;
    gap: .25rem;
    background: rgba(0, 120, 180, .05);
    border-radius: 50px;
    padding: .3rem;
}

[data-bs-theme="dark"] .nav-pills-glow {
    background: rgba(255, 255, 255, .05);
}

.nav-pills-glow .nav-link {
    color: var(--bs-body-color);
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    transition: all .25s ease;
    position: relative;
}

.nav-pills-glow .nav-link:hover {
    color: var(--gulf-blue);
    background: rgba(0, 120, 180, .1);
}

.nav-pills-glow .nav-link.active {
    background: linear-gradient(90deg, var(--gulf-blue), var(--gulf-blue-dark));
    color: #fff !important;
    box-shadow: 0 .4rem 1rem rgba(0, 120, 180, .35);
}

.theme-switch {
    width: 54px;
    height: 30px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #bcd9e8, #8fc4dd);
    display: flex;
    align-items: center;
    padding: 3px;
    justify-content: flex-end;
    box-shadow: inset 0 .1rem .3rem rgba(0, 40, 70, .25);
    transition: background .35s ease;
}

[data-bs-theme="dark"] .theme-switch {
    background: linear-gradient(90deg, #0f1a20, #1c3a4d);
    justify-content: flex-start;
}

.theme-switch-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe08a, #f5b301);
    box-shadow: 0 .15rem .4rem rgba(0, 0, 0, .25);
    transition: background .35s ease, transform .35s ease;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .theme-switch-thumb {
    background: linear-gradient(135deg, #d7dee6, #aeb9c4);
    box-shadow: 0 .15rem .4rem rgba(0, 0, 0, .4), inset -3px -2px 0 0 rgba(15, 26, 32, .5);
}

.theme-switch:hover .theme-switch-thumb {
    transform: scale(1.06);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: rgba(0, 120, 180, .06);
    border: 1px solid rgba(0, 120, 180, .15);
    border-radius: 50px;
    padding: .3rem .8rem .3rem .3rem;
    transition: all .2s ease;
}

.user-chip:hover {
    background: rgba(0, 120, 180, .12);
    box-shadow: 0 .4rem 1rem rgba(0, 120, 180, .18);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gulf-blue), var(--gulf-blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
}

.user-role-tag {
    font-size: .7rem;
    color: var(--gulf-gold);
    font-weight: 700;
}

.btn-nav-login {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    background: linear-gradient(90deg, var(--gulf-blue), var(--gulf-blue-dark));
    color: #fff;
    border-radius: 50px;
    padding: .35rem 1.2rem .35rem .35rem;
    font-weight: 700;
    font-size: .88rem;
    box-shadow: 0 .5rem 1.2rem rgba(0, 120, 180, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.nav-login-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.btn-nav-login:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .7rem 1.6rem rgba(0, 120, 180, .38);
}

.btn-nav-login:hover .nav-login-icon {
    background: rgba(255, 255, 255, .3);
}

.btn-primary {
    background-color: var(--gulf-blue);
    border-color: var(--gulf-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--gulf-blue-dark);
    border-color: var(--gulf-blue-dark);
}

.bg-gulf {
    background: linear-gradient(135deg, var(--gulf-blue), var(--gulf-blue-dark));
}

.text-gulf {
    color: var(--gulf-blue);
}

.card-course {
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

.card-course:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .12);
}

.level-done {
    background: rgba(25, 135, 84, .06);
    border: 1px solid rgba(25, 135, 84, .25);
}

.badge-dept {
    background-color: var(--gulf-gold);
    color: #1a1a1a;
}

.sidebar {
    min-height: calc(100vh - 56px);
    border-left: 1px solid var(--bs-border-color);
}

.sidebar .nav-link {
    color: var(--bs-body-color);
    border-radius: .5rem;
    padding: .55rem .9rem;
}

.sidebar .nav-link.active {
    background-color: var(--gulf-blue);
    color: #fff;
}

.sidebar .nav-link:hover:not(.active) {
    background-color: rgba(var(--bs-primary-rgb), .08);
}

/* ===== الشريط الجانبي للوحة التحكم ===== */
.admin-sidebar {
    min-height: calc(100vh - 64px);
    background: var(--bs-body-bg);
    border-left: 1px solid var(--bs-border-color);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--bs-body-color);
    font-weight: 600;
    font-size: .92rem;
    border-radius: .8rem;
    padding: .65rem .9rem;
    margin-bottom: .15rem;
    text-decoration: none;
    transition: all .2s ease;
}

.admin-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: .6rem;
    background: rgba(0, 120, 180, .08);
    font-size: .95rem;
    flex-shrink: 0;
}

.admin-nav-link:hover:not(.active) {
    background: rgba(0, 120, 180, .06);
    color: var(--gulf-blue);
}

.admin-nav-link.active {
    background: linear-gradient(90deg, var(--gulf-blue), var(--gulf-blue-dark));
    color: #fff;
    box-shadow: 0 .4rem 1rem rgba(0, 120, 180, .3);
}

.admin-nav-link.active .admin-nav-icon {
    background: rgba(255, 255, 255, .2);
}

/* تباين أوضح لنوافذ Bootstrap المنبثقة (خصوصاً في الوضع الداكن) */
.modal-content {
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .35);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .modal-content {
    background-color: #1a2b34;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .65);
}

[data-bs-theme="dark"] .modal-backdrop.show {
    opacity: .75;
}

/* شاشة اللعبة */
.game-progress {
    height: 10px;
}

.choice-btn {
    text-align: right;
    white-space: normal;
}

.choice-btn.selected {
    border-color: var(--gulf-blue);
    background-color: rgba(var(--bs-primary-rgb), .08);
}

.choice-btn.correct {
    border-color: #198754;
    background-color: rgba(25, 135, 84, .12);
}

.choice-btn.incorrect {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, .12);
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    border: 10px solid var(--gulf-blue);
    margin: 0 auto;
}

.stat-card {
    border-radius: 1rem;
}

/* ===== بطاقة التحفيز الجانبية ===== */
.motivate-card {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .15), transparent 45%),
        linear-gradient(150deg, var(--gulf-blue-dark), var(--gulf-blue));
    border-radius: 1rem;
}

.motivate-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    flex-shrink: 0;
    animation: mascotBounce 2.4s ease-in-out infinite;
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-8deg); }
}

.motivate-card-lg {
    border-radius: 1.25rem;
}

.motivate-mascot-lg {
    width: 56px;
    height: 56px;
    font-size: 1.9rem;
}

.motivate-text-lg {
    font-size: 1.05rem;
    line-height: 1.5;
}

/* ===== نافذة الاستراحة القصيرة ===== */
.break-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 35, .55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 1rem;
}

.break-popup-overlay.is-visible {
    display: flex;
    animation: breakFadeIn .25s ease;
}

@keyframes breakFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.break-popup {
    position: relative;
    background: var(--bs-body-bg);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .3);
    animation: breakPopIn .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes breakPopIn {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.break-popup-icon {
    font-size: 3rem;
    margin-bottom: .75rem;
    animation: mascotBounce 1.8s ease-in-out infinite;
}

.break-popup-close {
    position: absolute;
    top: .75rem;
    left: .75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 120, 180, .1);
    color: var(--gulf-blue);
    font-weight: 700;
    transition: background .2s ease;
}

.break-popup-close:hover {
    background: rgba(0, 120, 180, .2);
}

/* ===== شاشة بدء المستوى ===== */
.start-screen-card {
    border-radius: 1.5rem;
    animation: breakPopIn .4s cubic-bezier(.34,1.56,.64,1);
}

.start-screen-banner {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 45%),
        linear-gradient(120deg, var(--gulf-blue-dark), var(--gulf-blue));
    padding: 2.5rem 0 3.5rem;
    position: relative;
}

.start-screen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 2.4rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 .8rem 1.8rem rgba(0, 40, 70, .25);
}

.start-screen-card .p-4,
.start-screen-card .p-md-5 {
    margin-top: -2.5rem;
    background: var(--bs-body-bg);
    border-radius: 1.5rem 1.5rem 0 0;
    position: relative;
    z-index: 1;
}

.start-screen-meta {
    background: rgba(0, 120, 180, .08);
    color: var(--gulf-blue);
    font-weight: 700;
    font-size: .85rem;
    padding: .4rem .9rem;
    border-radius: 50px;
}

/* ===== لمسات تصميمية للموقع الرسمي ===== */
.hero-ai {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(201, 162, 39, .25), transparent 45%),
        linear-gradient(135deg, var(--gulf-blue-dark) 0%, var(--gulf-blue) 55%, #0aa7c9 100%);
    background-size: 100% 100%, 100% 100%, 200% 200%;
    animation: gulfGradientShift 12s ease infinite;
    padding: 5.5rem 0 6.5rem;
}

.hero-ai::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    opacity: .35;
    pointer-events: none;
}

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

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
    pointer-events: none;
    animation: blobFloat 10s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.08); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(6px);
    padding: .5rem 1.1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .15);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.2;
    text-shadow: 0 .5rem 2rem rgba(0, 40, 70, .35);
}

.text-gradient-gold {
    background: linear-gradient(90deg, var(--gulf-gold), #ffe08a, var(--gulf-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(12px);
    border-radius: 1.1rem;
    transition: transform .25s ease, background .25s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .16);
}

.btn-cta {
    background: linear-gradient(90deg, var(--gulf-gold), #e8bf4d);
    border: none;
    color: #1a1400;
    font-weight: 800;
    box-shadow: 0 .8rem 1.8rem rgba(201, 162, 39, .4);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 1.2rem 2.4rem rgba(201, 162, 39, .5);
    color: #1a1400;
}

.btn-outline-hero {
    border: 2px solid rgba(255, 255, 255, .55);
    color: #fff;
    font-weight: 700;
    transition: all .2s ease;
    background: transparent;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .12), transparent 45%),
        linear-gradient(120deg, var(--gulf-blue-dark), var(--gulf-blue));
    padding: 4.5rem 0 5.5rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: .3;
    pointer-events: none;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--gulf-blue);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .03em;
}

.section-eyebrow::before {
    content: '';
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--gulf-gold), var(--gulf-blue));
    border-radius: 4px;
}

.mesh-section {
    position: relative;
    background-image: radial-gradient(rgba(0, 120, 180, .08) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}

.reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card {
    border-radius: 1.1rem;
    border: 1px solid var(--bs-border-color);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gulf-blue), var(--gulf-gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 120, 180, .18);
    border-color: transparent;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.counter-stat {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--gulf-blue);
}

.goal-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gulf-blue), var(--gulf-blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 .5rem 1.2rem rgba(0, 120, 180, .4);
}

.area-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gulf-blue), var(--gulf-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 .6rem 1.4rem rgba(0, 120, 180, .35);
    transition: transform .25s ease;
}

.value-card:hover .area-icon-circle {
    transform: scale(1.08) rotate(-4deg);
}

.sparkle {
    display: inline-block;
    animation: sparklePulse 2.4s ease-in-out infinite;
}

@keyframes sparklePulse {
    0%, 100% { opacity: .5; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff, rgba(255, 255, 255, 0));
    animation: particleFloat 6s ease-in-out infinite;
    opacity: .7;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
    50% { transform: translateY(-22px) scale(1.3); opacity: 1; }
}

.cta-banner {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, .15), transparent 45%),
        linear-gradient(120deg, var(--gulf-blue-dark), var(--gulf-blue) 60%, #0aa7c9);
    border-radius: 1.5rem;
}

/* ===== صفحة تسجيل الدخول ===== */
.login-hero {
    min-height: calc(100vh - 72px);
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 120, 180, .08), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(201, 162, 39, .08), transparent 40%);
}

.login-card {
    border-radius: 1.5rem;
}

.login-side {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .12), transparent 45%),
        linear-gradient(150deg, var(--gulf-blue-dark), var(--gulf-blue));
}

.login-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: .3;
}

.role-option {
    display: block;
    border: 2px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: .75rem .25rem;
    cursor: pointer;
    transition: all .2s ease;
}

.role-option:hover {
    border-color: var(--gulf-blue);
    background: rgba(0, 120, 180, .05);
}

.btn-check:checked + .role-option {
    border-color: var(--gulf-blue);
    background: rgba(0, 120, 180, .08);
    box-shadow: 0 .3rem .8rem rgba(0, 120, 180, .18);
}

.campus-photo-frame {
    border-radius: 1.5rem;
    overflow: hidden;
}

.campus-photo {
    filter: saturate(1.15) contrast(1.05) brightness(1.02);
}

.campus-photo-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(200deg, rgba(0, 120, 180, .3) 0%, rgba(201, 162, 39, .1) 35%, transparent 60%),
        linear-gradient(0deg, rgba(0, 40, 70, .35), transparent 45%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

[data-bs-theme="dark"] .campus-photo-glow {
    mix-blend-mode: overlay;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: .3;
}

/* ===== لمسات الذكاء الاصطناعي ===== */
.typewriter-wrap {
    display: inline-block;
    min-height: 1.2em;
    border-left: 3px solid var(--gulf-gold);
    padding-left: .35rem;
    animation: caretBlink 1s step-end infinite;
}

@keyframes caretBlink {
    0%, 100% { border-color: var(--gulf-gold); }
    50% { border-color: transparent; }
}

.ai-insight-card {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: .6rem .5rem .6rem 1.25rem;
    max-width: 100%;
}

.ai-orb {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gulf-gold), #ffe08a, var(--gulf-blue), var(--gulf-gold));
    animation: aiOrbSpin 3s linear infinite;
}

.ai-orb::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gulf-blue-dark);
}

.ai-orb-core {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, .8);
    animation: aiOrbPulse 1.8s ease-in-out infinite;
}

@keyframes aiOrbSpin {
    to { transform: rotate(360deg); }
}

@keyframes aiOrbPulse {
    0%, 100% { transform: scale(.85); opacity: .8; }
    50% { transform: scale(1.15); opacity: 1; }
}

.ai-typing-dots {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.ai-typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    opacity: .5;
    animation: dotBounce 1.2s ease-in-out infinite;
}

.ai-typing-dots span:nth-child(2) { animation-delay: .15s; }
.ai-typing-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes dotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* لوحة مؤشرات ذكية (Mockup) */
.dash-mockup {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 40, 70, .12);
    overflow: hidden;
}

.dash-mockup-head {
    background: linear-gradient(90deg, var(--gulf-blue), var(--gulf-blue-dark));
    padding: .75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.dash-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 110px;
    padding: 0 .25rem;
}

.dash-bars > span {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--gulf-blue), var(--gulf-blue-dark));
    animation: barGrow 1.4s ease forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

@keyframes barGrow {
    to { transform: scaleY(1); }
}

.dash-donut {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: conic-gradient(var(--gulf-blue) 0% 78%, rgba(0, 120, 180, .12) 78% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.dash-donut::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--bs-body-bg);
}

.dash-donut span {
    position: relative;
    font-weight: 800;
    color: var(--gulf-blue);
    font-size: .95rem;
}

.dash-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #16a34a;
    font-weight: 700;
    font-size: .75rem;
}

.dash-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    animation: sparklePulse 1.4s ease-in-out infinite;
}
