/* بوابة الطالب — هوية الكلية (#556253 / #B7A688) */
:root {
  --sp-primary: #556253;
  --sp-primary-dark: #454e44;
  --sp-primary-darker: #3a4238;
  --sp-primary-light: #f4f6f3;
  --sp-secondary: #b7a688;
  --sp-secondary-dark: #9a8a6f;
  --sp-secondary-light: #faf8f2;
  --sp-bg: #f9fafb;
  --sp-surface: #ffffff;
  --sp-border: #e5e7eb;
  --sp-text: #1f2937;
  --sp-muted: #6b7280;
  --sp-radius: 8px;
  --sp-radius-lg: 12px;
  --sp-shadow-card: 0 4px 24px rgba(85, 98, 83, 0.08);
}

.sp-portal-page {
  background-color: var(--sp-bg);
}

/* —— Hero —— */
.sp-hero {
  background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-primary) 55%, var(--sp-secondary) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(69, 78, 68, 0.15);
}

.sp-hero-inner {
  position: relative;
  z-index: 1;
}

.sp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.sp-hero h1 {
  letter-spacing: -0.02em;
}

/* —— بطاقات مسطّحة (بدون ظلال ناعمة) —— */
.sp-card {
  background: var(--sp-surface);
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow-card);
}

.sp-card-form {
  border-top: 3px solid var(--sp-secondary);
}

.sp-sidebar-card {
  background: var(--sp-surface);
  border-radius: var(--sp-radius-lg);
  border: 2px solid var(--sp-border);
  border-inline-start: 4px solid var(--sp-secondary);
  box-shadow: none;
  overflow: hidden;
}

.sp-sidebar-head {
  background: var(--sp-primary);
  color: #fff;
  padding: 1.25rem;
  text-align: center;
}

.sp-sidebar-card .sp-progress-track {
  background: var(--sp-primary-light);
  border-color: var(--sp-border);
}

.sp-sidebar-card .sp-progress-fill {
  background: var(--sp-primary);
}

.sp-sidebar-head .sp-avatar-flat {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-secondary);
  color: var(--sp-primary-darker);
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: var(--sp-radius);
  border: 3px solid #fff;
}

/* Stepper — تبويبات مسطّحة */
.sp-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0;
  margin-bottom: 1.75rem;
  border: none;
  background: var(--sp-primary-light);
  padding: 0.5rem;
  border-radius: var(--sp-radius-lg);
  border: 2px solid var(--sp-border);
}

.sp-step {
  flex: unset;
  position: relative;
  min-width: 0;
}

.sp-step::after {
  display: none !important;
}

.sp-step-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: var(--sp-radius);
  border: 2px solid transparent;
  background: transparent;
  transition: background 0.12s, border-color 0.12s;
  cursor: default;
}

.sp-step.is-active .sp-step-pill {
  background: var(--sp-surface);
  border-color: var(--sp-primary);
}

.sp-step.is-done .sp-step-pill {
  background: var(--sp-surface);
  border-color: var(--sp-secondary-dark);
}

.sp-step-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--sp-radius);
  background: var(--sp-border);
  color: var(--sp-muted);
}

.sp-step.is-active .sp-step-num {
  background: var(--sp-primary);
  color: #fff;
}

.sp-step.is-done .sp-step-num {
  background: var(--sp-secondary);
  color: var(--sp-primary-darker);
}

.sp-step-label {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--sp-muted);
  max-width: none;
}

@media (min-width: 640px) {
  .sp-step-label {
    font-size: 0.7rem;
  }
}

.sp-step.is-active .sp-step-label {
  color: var(--sp-primary-dark);
}

.sp-step.is-done .sp-step-label {
  color: var(--sp-primary);
}

/* عناوين الأقسام — شريط مسطّح */
.sp-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: var(--sp-primary);
  margin: 1.5rem 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--sp-radius);
  border: none;
}

.sp-section-title::before {
  display: none;
}

.sp-section-title::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--sp-secondary);
  border-radius: 1px;
  flex-shrink: 0;
}

/* شبكة حقول */
.sp-field-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .sp-field-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sp-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sp-text);
  margin-bottom: 0.4rem;
}

.sp-required {
  color: #c0392b;
  font-weight: 800;
}

.sp-input,
.sp-select,
.sp-textarea {
  width: 100%;
  border: 2px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 0.7rem 0.85rem;
  font-size: 0.875rem;
  background: var(--sp-surface);
  box-shadow: none;
  transition: border-color 0.1s, background 0.1s;
}

.sp-input:focus,
.sp-select:focus,
.sp-textarea:focus {
  outline: none;
  border-color: var(--sp-primary);
  background: var(--sp-primary-light);
  box-shadow: none;
}

.sp-input:hover,
.sp-select:hover,
.sp-textarea:hover {
  border-color: #b8c0c8;
}

/* اختيارات مسطّحة */
.sp-radio-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.sp-radio-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sp-border);
  border-radius: var(--sp-radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--sp-surface);
  transition: border-color 0.1s, background 0.1s;
}

.sp-radio-pill:has(:checked) {
  border-color: var(--sp-primary);
  background: var(--sp-primary-light);
  color: var(--sp-primary-dark);
}

.sp-radio-pill input {
  accent-color: var(--sp-primary);
  width: 1rem;
  height: 1rem;
}

/* رفع ملفات — منطقة مسطّحة */
.sp-upload-zone {
  border: 2px dashed var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 1.25rem;
  background: var(--sp-primary-light);
  text-align: center;
  transition: border-color 0.1s, background 0.1s;
}

.sp-upload-zone:hover {
  border-color: var(--sp-primary);
  background: #fff;
}

.sp-upload-zone.is-required {
  border-style: solid;
  border-color: var(--sp-primary);
  border-width: 2px;
}

.sp-upload-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  background: var(--sp-secondary);
  color: var(--sp-primary-darker);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: var(--sp-radius);
}

.sp-upload-zone .sp-label {
  margin-bottom: 0.5rem;
}

.sp-file {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
}

/* أزرار مسطّحة */
.sp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  background: var(--sp-primary);
  border: none;
  border-radius: 0.65rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(85, 98, 83, 0.22);
  transition: background 0.15s, transform 0.1s;
}

.sp-btn-primary:hover {
  background: var(--sp-primary-dark);
}

.sp-btn-primary:active {
  transform: translateY(1px);
}

.sp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sp-primary-dark);
  background: var(--sp-surface);
  border: 2px solid var(--sp-primary);
  border-radius: var(--sp-radius);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.1s;
}

.sp-btn-outline:hover {
  background: var(--sp-primary-light);
}

.sp-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
  background: var(--sp-primary-light);
  border: 2px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
}

.sp-progress-track {
  height: 10px;
  border-radius: var(--sp-radius);
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.sp-progress-fill {
  height: 100%;
  border-radius: 0;
  background: var(--sp-secondary);
}

.sp-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.35rem;
  background: var(--sp-primary-light);
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-border);
}

.sp-kv span:first-child {
  color: var(--sp-muted);
  font-weight: 600;
}

.sp-kv span:last-child {
  font-weight: 700;
  color: var(--sp-text);
}

.sp-alert {
  border-radius: var(--sp-radius);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  border-width: 2px;
  border-style: solid;
}

.sp-alert-error {
  background: #fff5f5;
  border-color: #e8b4b4;
  color: #922b2b;
}

.sp-alert-info {
  background: var(--sp-secondary-light);
  border-color: var(--sp-secondary);
  color: var(--sp-primary-darker);
}

.sp-tip-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: var(--sp-secondary-light);
  border: 2px solid var(--sp-secondary);
  border-radius: var(--sp-radius);
  font-size: 0.8125rem;
  color: var(--sp-primary-darker);
}

.sp-tip-strip strong {
  display: block;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.sp-page-intro {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--sp-border);
}

.sp-page-intro h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--sp-primary-dark);
}

.sp-page-intro p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--sp-muted);
}

.sp-link {
  font-weight: 700;
  color: var(--sp-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--sp-secondary);
}

.sp-link:hover {
  color: var(--sp-primary-dark);
}

.sp-saudi-note {
  margin-top: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  background: var(--sp-primary-light);
  border: 2px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-muted);
}

[x-cloak] {
  display: none !important;
}

html:not(.alpine-ready) [x-cloak][data-sp-fallback-show] {
  display: block !important;
}

/* —— تنبيهات —— */
.sp-alert-success {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: var(--sp-radius-lg);
}

/* —— صفحات البرامج (هوية الكلية) —— */
.sp-college-portal {
  background: var(--sp-bg);
  background-image: none;
}

.sp-college-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #556253 0%, #556253 50%, #b7a688 100%);
  box-shadow: 0 8px 32px rgba(69, 78, 68, 0.2);
}

.sp-college-hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("https://images.unsplash.com/photo-1706010082157-3907a583a70e?w=1200&q=60&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.sp-college-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 4.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sp-college-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  background: #556253;
  border-radius: 0.75rem;
}

.sp-college-step-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #454e44;
  background: #fff;
  border-radius: 999px;
}

.sp-college-intro-card {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 1rem;
  box-shadow: var(--sp-shadow-card);
  border-inline-start: 4px solid var(--sp-secondary);
}

.sp-college-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: #556253;
  background: #f4f6f3;
  border-radius: 999px;
}

.sp-college-program-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 1rem;
  box-shadow: var(--sp-shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sp-college-program-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(85, 98, 83, 0.12);
}

.sp-college-program-card-accent {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, #556253, #b7a688);
}

.sp-college-degree-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: #556253;
  border-radius: 999px;
}

.sp-college-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #454e44;
  background: #faf8f2;
  border: 1px solid #e8e0d0;
  border-radius: 999px;
}

.sp-college-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #556253;
  border: none;
  border-radius: 0.65rem;
  box-shadow: 0 4px 14px rgba(85, 98, 83, 0.25);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.sp-college-btn-primary:hover {
  background: #454e44;
}

.sp-college-btn-primary:active {
  transform: translateY(1px);
}

.sp-college-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #556253;
  text-decoration: none;
  background: #fff;
  border: 2px solid #556253;
  border-radius: 0.65rem;
  transition: background 0.15s;
}

.sp-college-btn-secondary:hover {
  background: #f4f6f3;
}

.sp-college-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #556253;
  text-decoration: none;
}

.sp-college-back-link:hover {
  color: #454e44;
  text-decoration: underline;
}

.sp-college-detail-shell {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 1rem;
  box-shadow: var(--sp-shadow-card);
}

.sp-college-detail-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sp-college-info-panel {
  padding: 1.25rem;
  background: linear-gradient(180deg, #faf8f2 0%, #fff 100%);
  border: 1px solid #e8e0d0;
  border-radius: 0.85rem;
}

.sp-college-panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8e0d0;
}

.sp-college-panel-title h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #556253;
}

.sp-college-panel-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  background: #b7a688;
  border-radius: 999px;
}

.sp-college-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-college-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
}

.sp-college-attach-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-college-attach-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
}

.sp-college-attach-pill {
  flex-shrink: 0;
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
}

.sp-college-attach-pill.is-required {
  color: #991b1b;
  background: #fee2e2;
}

.sp-college-attach-pill.is-optional {
  color: #6b7280;
  background: #f3f4f6;
}

.sp-college-apply-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #f4f6f3;
  border: 1px solid #d1d9cf;
  border-radius: 0.85rem;
}

.sp-college-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #454e44;
}

.sp-college-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: var(--sp-text);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

/* —— منصة الطالب الجديدة (شريط علوي + قائمة المستخدم) —— */
[x-cloak] {
  display: none !important;
}

.sp-portal-body {
  margin: 0;
  min-height: 100vh;
  font-family: Tajawal, Cairo, ui-sans-serif, system-ui, sans-serif;
  background: #ffffff;
  color: #111827;
}

.sp-portal-app {
  min-height: calc(100vh - 4rem);
  background: #ffffff;
}

.sp-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 8px rgba(17, 24, 39, 0.05);
}

.sp-portal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
}

@media (min-width: 1024px) {
  .sp-portal-topbar-inner {
    padding: 0.75rem 1.75rem;
  }
}

.sp-portal-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.sp-portal-topbar-logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.2rem;
}

.sp-portal-topbar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sp-portal-topbar-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: #556253;
  line-height: 1.2;
}

.sp-portal-topbar-college {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-portal-topbar-user {
  position: relative;
  flex-shrink: 0;
}

.sp-portal-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0.55rem 0.35rem 0.45rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--sp-radius);
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.sp-portal-user-trigger:hover,
.sp-portal-user-trigger[aria-expanded='true'] {
  background: #f4f6f3;
  border-color: #c5cdc4;
  box-shadow: 0 4px 14px rgba(85, 98, 83, 0.1);
}

.sp-portal-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: #556253;
  border-radius: 6px;
}

.sp-portal-user-meta {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: start;
}

@media (min-width: 640px) {
  .sp-portal-user-meta {
    display: flex;
  }
}

.sp-portal-user-greeting {
  font-size: 0.62rem;
  font-weight: 600;
  color: #9ca3af;
}

.sp-portal-user-name {
  max-width: 11rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-portal-user-chevron {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.sp-portal-user-chevron.is-open {
  transform: rotate(180deg);
}

.sp-portal-user-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.45rem);
  width: min(16.5rem, calc(100vw - 1.5rem));
  padding: 0.45rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.sp-portal-user-menu-head {
  margin: 0;
  padding: 0.55rem 0.65rem 0.65rem;
  border-bottom: 1px solid #f3f4f6;
}

.sp-portal-user-menu-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111827;
}

.sp-portal-user-menu-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  word-break: break-all;
}

.sp-portal-user-menu-list {
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
}

.sp-portal-user-menu-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  text-align: inherit;
  transition: background 0.12s, color 0.12s;
}

.sp-portal-user-menu-link:hover,
.sp-portal-user-menu-link.is-active {
  background: #f4f6f3;
  color: #556253;
}

.sp-portal-user-menu-link.is-danger {
  color: #b91c1c;
}

.sp-portal-user-menu-link.is-danger:hover {
  background: #fef2f2;
  color: #991b1b;
}

.sp-portal-user-menu-logout {
  margin: 0;
  padding: 0.35rem 0 0;
  border-top: 1px solid #f3f4f6;
}

.sp-portal-page-shell {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

@media (min-width: 1024px) {
  .sp-portal-page-shell {
    padding: 1.5rem 1.75rem 2.5rem;
  }
}

.sp-portal-page-head {
  margin-bottom: 1rem;
}

.sp-portal-page-title {
  margin: 0;
  padding: 0.35rem 0.85rem 0.35rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  border-inline-end: 3px solid #556253;
}

[dir='ltr'] .sp-portal-page-title {
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-inline-end: none;
  border-inline-start: 3px solid #556253;
}

.sp-portal-page-alerts {
  margin-bottom: 1rem;
}

.sp-portal-page-main {
  min-width: 0;
}

/* —— الدعم التقني الموحّد —— */
.sp-support-page .sis-profile-main {
  padding-top: 1.25rem;
}

.sp-support-portal-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-support-form-card .sis-form-block-num {
  font-size: 1rem;
  line-height: 1;
}

.sp-support-tickets-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
}

.sp-support-tickets-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.sp-support-ticket-item {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.sp-support-ticket-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sp-support-ticket-ref {
  font-size: 0.78rem;
  font-weight: 800;
  color: #556253;
}

.sp-support-ticket-date {
  font-size: 0.72rem;
  color: #6b7280;
}

.sp-support-ticket-type {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.sp-support-ticket-msg {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b7280;
}

.sp-support-ticket-status {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
}

.sp-support-ticket-status.is-open {
  color: #92400e;
  background: #fef3c7;
}

.sp-support-ticket-status.is-read {
  color: #166534;
  background: #dcfce7;
}

/* —— صفحة اختيار البرامج (بوابة الطالب — أسلوب sis) —— */
.sp-programs-page .sp-programs-step-kicker {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #556253;
}

.sp-programs-workspace {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}

.sp-programs-page--compact .sis-profile-main {
  max-width: 40rem;
  margin-inline: auto;
}

.sp-programs-page--compact .sp-programs-hero {
  padding-bottom: 0.5rem;
}

.sp-programs-page--compact .sis-profile-title {
  font-size: 1.35rem;
}

.sp-programs-page--compact .sis-profile-eyebrow {
  margin-bottom: 0.15rem;
}

@media (min-width: 1024px) {
  .sp-programs-workspace {
    padding: 1.25rem;
  }
}

/* —— رغبات مضغوطة —— */
.sp-pref-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.sp-pref-compact {
  padding: 0.85rem 1rem 1rem;
}

.sp-pref-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sp-pref-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.sp-pref-toolbar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
}

.sp-pref-toolbar-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: #556253;
}

.sp-pref-toolbar-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: #e8ece6;
  overflow: hidden;
}

.sp-pref-toolbar-fill {
  display: block;
  height: 100%;
  background: #556253;
  border-radius: inherit;
  transition: width 0.3s ease;
}

.sp-pref-toolbar.is-done .sp-pref-toolbar-fill {
  background: #454e44;
}

.sp-pref-note {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.sp-pref-guide {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #dbe3d8;
  background: #f8faf7;
}

.sp-pref-guide--above {
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  box-sizing: border-box;
}

.sp-pref-guide-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a4238;
}

.sp-pref-guide-head i {
  color: #556253;
  flex-shrink: 0;
}

.sp-pref-guide-list {
  margin: 0;
  padding: 0 1.15rem 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #4b5563;
}

[dir="ltr"] .sp-pref-guide-list {
  padding: 0 0 0 1.15rem;
}

.sp-pref-guide-list li + li {
  margin-top: 0.25rem;
}

.sp-pref-guide-list strong {
  font-weight: 700;
  color: #374151;
}

.sp-pref-order-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5563;
}

.sp-pref-order {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.sp-pref-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.4rem 0.55rem 0.4rem 0.65rem;
  border-bottom: 1px solid #f0f2ef;
  background: #fff;
}

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

.sp-pref-row.is-empty {
  background: #fafbfa;
}

.sp-pref-row.is-flash {
  background: #f4f7f4;
}

.sp-pref-row-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: #556253;
  border-radius: 5px;
}

.sp-pref-row-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.sp-pref-row-empty {
  font-size: 0.78rem;
  color: #9ca3af;
}

.sp-pref-row-actions {
  display: inline-flex;
  gap: 0.2rem;
}

.sp-pref-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.sp-pref-icon-btn:hover:not(:disabled) {
  background: #f3f4f6;
  color: #374151;
}

.sp-pref-icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sp-pref-icon-btn.is-remove:hover {
  color: #991b1b;
  background: #fef2f2;
}

.sp-pref-picker-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5563;
}

.sp-pref-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sp-pref-option {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  text-align: start;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-pref-option--sharia {
  border-inline-start: 3px solid #556253;
}

.sp-pref-option--law {
  border-inline-start: 3px solid #b7a688;
}

.sp-pref-option:hover:not(:disabled) {
  border-color: #c5d0c3;
  background: #fafbfa;
}

.sp-pref-option.is-on {
  border-color: #556253;
  background: #f6f8f5;
}

.sp-pref-option.is-off {
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-pref-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  color: transparent;
}

.sp-pref-option.is-on .sp-pref-option-check {
  border-color: #556253;
  background: #556253;
  color: #fff;
}

.sp-pref-option-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.sp-pref-option-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.sp-pref-option-meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
}

.sp-pref-footer {
  padding-top: 0.25rem;
}

.sp-pref-footer .sis-btn-primary {
  width: 100%;
  justify-content: center;
}

.sp-programs-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .sp-programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.sp-program-pick-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(85, 98, 83, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-program-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(85, 98, 83, 0.12);
}

.sp-program-pick-card--sharia {
  border-top: 4px solid #556253;
}

.sp-program-pick-card--law {
  border-top: 4px solid #b7a688;
}

.sp-program-pick-media {
  position: relative;
  height: 11.5rem;
  overflow: hidden;
}

.sp-program-pick-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sp-program-pick-card:hover .sp-program-pick-image {
  transform: scale(1.04);
}

.sp-program-pick-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 66, 56, 0.15) 0%, rgba(58, 66, 56, 0.72) 100%);
}

.sp-program-pick-degree {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 1;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: rgba(85, 98, 83, 0.92);
  border-radius: 999px;
}

.sp-program-pick-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.35rem;
}

.sp-program-pick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #556253;
  background: #f4f6f3;
  border: 1px solid #dde3da;
  border-radius: 12px;
}

.sp-program-pick-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #1f2937;
}

.sp-program-pick-tagline {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}

.sp-program-pick-college {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a8a6f;
}

.sp-program-pick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.sp-program-pick-stats li {
  padding: 0.28rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #454e44;
  background: #f4f6f3;
  border: 1px solid #e5ebe5;
  border-radius: 999px;
}

.sp-program-pick-summary {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #4b5563;
}

.sp-program-pick-actions {
  margin-top: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f3f4f6;
}

.sp-program-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  justify-content: center;
}

.sp-program-back-nav {
  margin-bottom: 1rem;
}

.sp-program-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #556253;
  text-decoration: none;
}

.sp-program-back-link:hover {
  color: #454e44;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-program-detail-hero {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  background: #fff;
}

@media (min-width: 768px) {
  .sp-program-detail-hero {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}

.sp-program-detail-hero-media {
  position: relative;
  min-height: 10rem;
}

.sp-program-detail-hero-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.sp-program-detail-title {
  margin: 0.45rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
}

.sp-program-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sp-program-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #454e44;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

.sp-program-detail-summary {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #4b5563;
}

.sp-program-detail-panels {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .sp-program-detail-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.sp-program-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.sp-program-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #374151;
}

.sp-program-check-list li i {
  color: #556253;
  margin-top: 0.15rem;
}

.sp-program-attach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.sp-program-attach-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
}

.sp-program-attach-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.sp-program-attach-pill {
  flex-shrink: 0;
  padding: 0.18rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
}

.sp-program-attach-pill.is-required {
  color: #991b1b;
  background: #fee2e2;
}

.sp-program-attach-pill.is-optional {
  color: #4b5563;
  background: #f3f4f6;
}

.sp-program-apply-form {
  margin-top: 1.25rem;
}

.sp-program-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.sp-program-apply-actions .sis-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sp-program-preference-form {
  margin-bottom: 1.5rem;
}

.sp-program-combobox-wrap {
  max-width: 36rem;
}

.sp-program-preference-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.sp-program-preference-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
}

.sp-program-preference-rank {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #556253;
  background: #eef2ee;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.sp-program-preference-name {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
}

.sp-program-preference-remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.sp-program-preference-remove:hover {
  background: #fecaca;
}

.sp-college-input:focus {
  outline: none;
  border-color: #556253;
  box-shadow: 0 0 0 3px rgba(85, 98, 83, 0.15);
}

/* —— إكمال الملف الشخصي (ضمن الموقع) —— */
.sp-profile-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .sp-profile-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    align-items: start;
  }

  .sp-profile-aside {
    position: sticky;
    top: 1.25rem;
  }
}

.sp-journey-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
}

.sp-journey-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sp-muted);
  white-space: nowrap;
}

.sp-journey-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  border: 2px solid var(--sp-border);
  background: var(--sp-primary-light);
  color: var(--sp-muted);
}

.sp-journey-line {
  flex: 1;
  height: 2px;
  min-width: 1.5rem;
  background: var(--sp-border);
}

.sp-journey-step.is-active {
  color: var(--sp-primary-dark);
}

.sp-journey-step.is-active .sp-journey-dot {
  border-color: var(--sp-primary);
  background: var(--sp-primary);
  color: #fff;
}

.sp-journey-step.is-done {
  color: var(--sp-primary);
}

.sp-journey-step.is-done .sp-journey-dot {
  border-color: var(--sp-secondary-dark);
  background: var(--sp-secondary);
  color: var(--sp-primary-darker);
}

.sp-sidebar-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.sp-sidebar-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sp-muted);
  border-radius: var(--sp-radius);
  border: 1px solid transparent;
}

.sp-sidebar-steps li svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.sp-sidebar-steps li.is-active {
  color: var(--sp-primary);
  background: var(--sp-primary-light);
  border-color: var(--sp-border);
}

.sp-sidebar-steps li.is-done {
  color: var(--sp-primary-dark);
}

.sp-profile-wizard .sp-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sp-primary-dark);
  background: transparent;
  margin: 1.25rem 0 1rem;
  padding: 0 0 0.65rem;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid var(--sp-border);
}

.sp-profile-wizard .sp-section-title::before {
  display: block;
  content: '';
  width: 4px;
  height: 1.1rem;
  background: var(--sp-secondary);
  border-radius: 2px;
  flex-shrink: 0;
}

.sp-profile-wizard .sp-section-title::after {
  display: none;
}

.sp-profile-wizard .sp-section-title:first-of-type {
  margin-top: 0;
}

.sp-link-muted {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sp-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-link-muted:hover {
  color: var(--sp-primary-dark);
}

@media (max-width: 639px) {
  .sp-journey-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sp-journey-line {
    display: none;
  }
}

/* —— لوحة التحكم —— */
.sp-dashboard-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  background: #ffffff;
}

.sp-dashboard-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sp-dashboard-main {
  width: 100%;
}

.sp-dashboard-page .sp-dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sp-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-border);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sp-alert i {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.sp-alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.sp-alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.sp-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* —— تنبيه استكمال التسجيل (لوحة الطالب) —— */
.sp-student-alert {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 55%, #f4f6f3 100%);
  box-shadow: 0 4px 18px rgba(85, 98, 83, 0.1), 0 0 0 1px rgba(252, 211, 77, 0.35);
}

.sp-student-alert-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 5px;
  background: linear-gradient(180deg, #f59e0b 0%, #556253 100%);
}

.sp-student-alert-content {
  padding: 1.25rem 1.5rem 1.35rem;
  padding-inline-end: 1.65rem;
  text-align: right;
}

[dir='ltr'] .sp-student-alert-content {
  text-align: left;
}

.sp-student-alert-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  flex-direction: row-reverse;
}

[dir='ltr'] .sp-student-alert-header {
  flex-direction: row;
}

.sp-student-alert-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
  border: 2px solid #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.sp-student-alert-icon-wrap i {
  width: 1.5rem;
  height: 1.5rem;
}

.sp-student-alert-heading {
  flex: 1;
  min-width: 0;
}

.sp-student-alert-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sp-student-alert-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #556253;
  line-height: 1.35;
}

.sp-student-alert-lead {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #fde68a;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.65;
  color: #78350f;
}

.sp-student-alert-checklist {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-inline-start: 3px solid #556253;
}

.sp-student-alert-checklist-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #556253;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

[dir='ltr'] .sp-student-alert-checklist-label {
  flex-direction: row;
}

.sp-student-alert-checklist-label i {
  width: 1rem;
  height: 1rem;
}

.sp-student-alert-checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sp-student-alert-checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #374151;
  flex-direction: row-reverse;
  text-align: right;
}

[dir='ltr'] .sp-student-alert-checklist-items li {
  flex-direction: row;
  text-align: left;
}

.sp-student-alert-check-icon {
  display: inline-flex;
  margin-top: 0.15rem;
  color: #d97706;
  flex-shrink: 0;
}

.sp-student-alert-check-icon i {
  width: 0.85rem;
  height: 0.85rem;
}

.sp-student-alert-extra {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #4b5563;
}

.sp-student-alert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

[dir='ltr'] .sp-student-alert-actions {
  flex-direction: row;
}

.sp-student-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.sp-student-alert-btn i {
  width: 1rem;
  height: 1rem;
}

.sp-student-alert-btn--primary {
  background: #556253;
  color: #fff;
  border-color: #556253;
  box-shadow: 0 2px 8px rgba(85, 98, 83, 0.25);
}

.sp-student-alert-btn--primary:hover {
  background: #454e44;
  border-color: #454e44;
}

.sp-student-alert-btn--ghost {
  background: #fff;
  color: #556253;
  border-color: #d1d5db;
}

.sp-student-alert-btn--ghost:hover {
  background: #f9fafb;
  border-color: #556253;
}

.sp-dashboard-page .tab-content.hidden {
  display: none !important;
}

.sp-dashboard-page .tab-button {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  border-top: none;
  border-left: none;
  border-right: none;
}

.sp-dashboard-page .tab-button.active {
  color: #556253;
  border-bottom-color: #556253;
}

.sp-dashboard-page .tab-button:not(.active) {
  color: #6b7280;
  border-bottom: 2px solid transparent;
}

.sp-dashboard-page .tab-button:not(.active):hover {
  color: #374151;
  border-bottom-color: #d1d5db;
}

.sp-dashboard-page .tab-button.opacity-50 {
  opacity: 0.5;
  cursor: not-allowed;
}
