/* ═══════════════════════════════════════════════════════════════
   CodeBridge Academy — Theme Nova (هيكلة تصميم مختلفة كلياً)
   يُحمّل بعد style.css ويستبدل المظهر بالكامل
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-light: #fb7185;
    --primary-glow: rgba(225, 29, 72, 0.28);
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --accent-warm: #f97316;
    --bg: #fafafa;
    --bg-secondary: #fff1f2;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --surface-dark: #0c0a09;
    --surface-panel: #1c1917;
    --text: #1c1917;
    --text-muted: #78716c;
    --border: #fecdd3;
    --border-soft: rgba(225, 29, 72, 0.12);
    --shadow: 0 1px 3px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(225, 29, 72, 0.08);
    --shadow-lg: 0 20px 50px rgba(28, 25, 23, 0.12);
    --shadow-hover: 0 16px 40px rgba(225, 29, 72, 0.18);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --gradient-primary: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #9f1239 100%);
    --gradient-hero: linear-gradient(125deg, #0c0a09 0%, #292524 35%, #881337 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9, #38bdf8);
    --glass-bg: rgba(255, 255, 255, 0.94);
}

/* ─── أساس ─── */
body {
    font-family: var(--font-ar);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(251, 113, 133, 0.14), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08), transparent 40%);
    color: var(--text);
}

/* ─── هيدر عائم مختلف ─── */
.site-header {
    background: rgba(12, 10, 9, 0.92);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0.65rem 0;
}

.site-header .logo {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.site-header .logo-text {
    background: linear-gradient(90deg, #fff, #fda4af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fda4af;
}

.site-search-row {
    background: #1c1917 !important;
    border-bottom: none !important;
    padding: 0.5rem 0 0.75rem;
}

.header-search {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill) !important;
}

.header-search input[type="search"] {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.header-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.btn-search-yellow {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
}

/* لوحات التحكم: إخفاء البحث العام لتبسيط الواجهة */
body.page-admin .site-search-row,
body.page-teacher .site-search-row,
body.page-student .site-search-row {
    display: none;
}

/* ─── أزرار ─── */
.btn {
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
    color: #fff;
}

.btn-outline-secondary {
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    background: transparent;
}

.btn-back {
    background: var(--surface-panel);
    color: #fff;
    border-radius: var(--radius-pill);
}

/* ─── بطاقات — ظل مزدوج (هيكلة مختلفة) ─── */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(28, 25, 23, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

/* ─── لوحة التحكم — شبكة Bento ─── */
body.page-admin .main-content,
body.page-teacher .main-content,
body.page-student .main-content {
    background: linear-gradient(180deg, #fafafa 0%, #fff1f2 100%);
    padding-top: 1.5rem;
}

.dashboard-header h1,
.cba-page-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0;
}

.dashboard-header h1 {
    background: none;
    -webkit-text-fill-color: unset;
}

.cba-page-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 1.75rem 2rem;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cba-page-hero .cba-page-title {
    color: #fff;
}

.cba-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fda4af;
}

.cba-page-lead {
    margin: 0.5rem 0 0;
    opacity: 0.88;
    max-width: 36rem;
    line-height: 1.7;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.1rem;
}

.dash-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.35rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.07);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-height: 110px;
}

.dash-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    opacity: 0.08;
    border-radius: 50%;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.dash-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.dash-card:hover::after {
    transform: scale(2);
    opacity: 0.12;
}

.dash-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.dash-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.dash-card--featured {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, #fff, #fff1f2);
}

/* إحصائيات علوية */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.stat-pill {
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-pill strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}

.stat-pill span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ─── Hero الصفحة الرئيسية ─── */
.hero {
    background: var(--gradient-hero);
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.35), transparent 70%);
    top: -200px;
    left: -100px;
    pointer-events: none;
}

.hero h1 {
    font-weight: 900;
    letter-spacing: -0.03em;
}

body.page-home .home-stats {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
}

body.page-home .home-stats-item strong {
    color: var(--primary);
}

body.page-home .home-stats-item span {
    color: var(--text-muted);
}

body.page-home .home-feature-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
}

body.page-home .home-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ─── تسجيل الدخول / نسيت كلمة المرور ─── */
.auth-section {
    padding: 3rem 0 4rem;
}

.auth-card {
    max-width: 460px;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--gradient-primary);
}

.auth-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--primary);
}

.auth-card-title {
    font-weight: 900;
    font-size: 1.5rem;
}

/* ─── نماذج ─── */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    border: 2px solid #e7e5e4;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    background: #fafaf9;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
}

/* ─── تنبيهات ─── */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    padding: 1rem 1.15rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-right: 4px solid #10b981;
}

.alert-danger {
    background: #fff1f2;
    color: #9f1239;
    border-right: 4px solid var(--primary);
}

/* ─── شات ─── */
.chat-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
}

.chat-messages {
    background: #fafaf9;
}

.chat-msg-me {
    background: var(--gradient-primary) !important;
    border-radius: 20px 20px 6px 20px !important;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.chat-msg-other {
    background: #fff !important;
    border: 1px solid #e7e5e4 !important;
    border-radius: 20px 20px 20px 6px !important;
}

.staff-chat-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.staff-chat-messages {
    background: #fafaf9;
}

.staff-msg-bubble--mine {
    background: var(--gradient-primary) !important;
}

/* ─── بريد المنصة ─── */
.mailbox-app {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
}

.mailbox-topbar {
    background: var(--gradient-hero);
}

.mailbox-compose-btn {
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
}

/* ─── بريد جماعي ─── */
.bulk-email-layout {
    display: grid;
    grid-template-columns: 1fr min(380px, 100%);
    gap: 1.25rem;
    align-items: start;
}

.bulk-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.bulk-icon {
    font-size: 1.25rem;
}

.bulk-audience-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bulk-audience-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.bulk-audience-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bulk-audience-chip span {
    display: block;
    padding: 0.5rem 1rem;
    border: 2px solid #e7e5e4;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.bulk-audience-chip input:checked + span {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.bulk-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bulk-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.bulk-preview-frame {
    width: 100%;
    min-height: 420px;
    border: 1px solid #e7e5e4;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
}

.bulk-preview-empty {
    padding: 2rem 1rem;
    text-align: center;
}

.bulk-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bulk-history-list li {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f5f5f4;
}

.bulk-history-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.bulk-email-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bulk-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.bulk-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 1rem;
    min-width: 7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bulk-stat-pill:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.bulk-stat-num {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

.bulk-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.2rem;
    font-weight: 600;
}

.bulk-presets-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-soft);
}

.bulk-presets-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.bulk-recipient-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bulk-count-result.bulk-count-ready {
    color: var(--primary);
    font-weight: 700;
}

.bulk-test-email-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.bulk-test-email-row label {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
}

.bulk-test-email-row input {
    flex: 1;
    min-width: 12rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e7e5e4;
    border-radius: var(--radius-sm);
}

.bulk-history-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.bulk-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.bulk-badge--test { background: #fef3c7; color: #92400e; }
.bulk-badge--info { background: #e0f2fe; color: #0369a1; }
.bulk-badge--urgent { background: #ffe4e6; color: #be123c; }
.bulk-badge--success { background: #d1fae5; color: #047857; }
.bulk-badge--official { background: #f5f5f4; color: #44403c; }

.bulk-reuse-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.bulk-reuse-link:hover {
    text-decoration: underline;
}

.page-bulk-email .bulk-email-compose.card {
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
}

.page-bulk-email .cba-page-hero {
    margin-bottom: 1.25rem;
}

/* ─── فوتر — هيكلة جديدة كلياً ─── */
.site-footer--nova {
    position: relative;
    background: #0c0a09;
    color: #d6d3d1;
    padding: 0 0 1.5rem;
    margin-top: 4rem;
    border-top: none;
}

.site-footer--nova .footer-wave {
    color: var(--bg);
    line-height: 0;
    margin-top: -1px;
    transform: translateY(-99%);
}

.site-footer--nova .footer-wave svg {
    display: block;
    width: 100%;
    height: 72px;
}

.footer-nova-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem 1.5rem;
    padding: 2.5rem 0 2rem;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 0.85rem;
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.footer-logo-fallback {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
}

.footer-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.footer-brand-tagline {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #a8a29e;
    max-width: 22rem;
}

.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fda4af;
    text-decoration: none;
    font-weight: 800;
    transition: all var(--transition-fast);
}

.footer-social-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.footer-nav-col h4,
.footer-contact-col h4 {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-nav-col a {
    color: #a8a29e;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-nav-col a:hover {
    color: #fda4af;
}

.footer-contact-line {
    margin: 0 0 1rem;
    font-size: 0.92rem;
}

.footer-contact-label {
    display: block;
    font-size: 0.75rem;
    color: #78716c;
    margin-bottom: 0.2rem;
}

.footer-email {
    color: #fda4af;
    font-weight: 700;
    text-decoration: none;
}

.footer-email:hover {
    text-decoration: underline;
}

.footer-cta-box {
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.footer-cta-box p {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: #d6d3d1;
}

.footer-cta-btn {
    width: 100%;
    border-radius: var(--radius-pill);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.footer-legal-links a {
    color: #78716c;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: #fda4af;
}

.footer-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: #78716c;
}

.footer-bottom-bar p {
    margin: 0;
}

/* ─── Hero جديد — شبكة + كود ─── */
.hero-nova {
    position: relative;
    padding: 4.5rem 0 4rem;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
}

.hero-nova-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}

.hero-blob--1 {
    width: 420px;
    height: 420px;
    background: #e11d48;
    top: -120px;
    right: -80px;
}

.hero-blob--2 {
    width: 320px;
    height: 320px;
    background: #0ea5e9;
    bottom: -60px;
    left: 10%;
}

.hero-blob--3 {
    width: 200px;
    height: 200px;
    background: #f97316;
    top: 40%;
    left: 45%;
}

.hero-nova-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-nova-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fda4af;
}

.hero-nova-content h1 {
    font-size: clamp(1.85rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1rem;
}

.hero-nova-accent {
    background: linear-gradient(90deg, #fda4af, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-nova-lead {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    max-width: 32rem;
}

.hero-nova-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-nova-btn-light {
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.hero-nova-btn-light:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

.hero-nova-visual {
    position: relative;
    min-height: 280px;
}

.hero-code-card {
    background: rgba(12, 10, 9, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    transform: rotate(-2deg);
}

.hero-code-bar {
    display: flex;
    gap: 6px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-code-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #57534e;
}

.hero-code-bar span:first-child { background: #e11d48; }
.hero-code-bar span:nth-child(2) { background: #f59e0b; }
.hero-code-bar span:nth-child(3) { background: #22c55e; }

.hero-code-snippet {
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: #e7e5e4;
    direction: ltr;
    text-align: left;
}

.hero-code-snippet .hc-kw { color: #fb7185; }
.hero-code-snippet .hc-fn { color: #38bdf8; }
.hero-code-snippet .hc-str { color: #86efac; }

.hero-stat-float {
    position: absolute;
    padding: 0.65rem 1rem;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: float-y 4s ease-in-out infinite;
}

.hero-stat-float strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.1;
}

.hero-stat-float span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

.hero-stat-float--1 {
    top: -10px;
    left: -20px;
}

.hero-stat-float--2 {
    bottom: 20px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── صور — أشكال جديدة ─── */
.nova-media-main {
    border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-smooth);
}

.nova-media-main:hover {
    transform: scale(1.02);
}

.nova-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 1rem;
}

.nova-media-tile {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nova-media-tile:nth-child(odd) {
    border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-sm);
}

.nova-media-tile:nth-child(even) {
    border-radius: var(--radius-lg) var(--radius-sm) var(--radius-sm) var(--radius-sm);
}

.nova-media-tile:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
}

/* بطاقات اللغات والأخبار */
body.page-home .lang-card {
    border-radius: var(--radius);
    border: 1px solid rgba(28, 25, 23, 0.06);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

body.page-home .lang-card img {
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.15);
}

body.page-home .lang-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

body.page-home .news-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow);
}

body.page-home .news-card img {
    aspect-ratio: 16/10;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

/* ─── صفحة تسجيل الدخول ─── */
body.page-auth .site-search-row {
    display: none;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 420px);
    gap: 2rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.auth-side-panel {
    color: var(--text);
}

.auth-side-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-side-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
}

.auth-side-lead {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.auth-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-side-list li {
    padding-right: 1.5rem;
    position: relative;
    font-weight: 600;
    color: var(--text);
}

.auth-side-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: 900;
}

.auth-card-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.auth-card-sub {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e7e5e4;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ─── صفحة التسجيل ─── */
.page-register .register-page-hero {
    background: var(--gradient-hero);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.page-register .register-form-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .footer-nova-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-block {
        grid-column: 1 / -1;
    }
    .hero-nova-inner {
        grid-template-columns: 1fr;
    }
    .hero-nova-visual {
        display: none;
    }
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-side-panel {
        text-align: center;
    }
    .auth-side-list {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .footer-nova-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand-link,
    .footer-social-row,
    .footer-legal-links {
        justify-content: center;
    }
    .footer-brand-tagline {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ─── جداول ─── */
.table-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e7e5e4;
    box-shadow: var(--shadow);
}

table th {
    background: #fafaf9;
    color: var(--text);
    font-weight: 800;
    font-size: 0.88rem;
}

/* ─── دعم الطلاب ─── */
.support-ticket-card {
    border-radius: var(--radius);
    border: 1px solid #e7e5e4;
    background: #fff;
}

.support-admin-reply {
    background: var(--bg-secondary);
    border-right: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}

/* ─── تجاوب ─── */
@media (max-width: 900px) {
    .bulk-email-layout {
        grid-template-columns: 1fr;
    }
    .bulk-cta-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cba-page-hero {
        padding: 1.25rem 1.15rem;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .site-header .main-nav {
        background: #1c1917;
        border-radius: var(--radius);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
