/* ============================================================
   CUTRS - Cairo University Training Registration System
   Main Stylesheet (RTL Arabic-first)
   ============================================================ */

/* ─── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --cu-red:        #8B0000;
  --cu-red-light:  #c8102e;
  --cu-red-dark:   #5c0000;
  --cu-gold:       #c9a227;
  --cu-gold-light: #e8c547;
  --white:         #ffffff;
  --black:         #1a1a1a;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;
  --gray-800:      #1f2937;
  --success:       #059669;
  --success-light: #d1fae5;
  --warning:       #d97706;
  --warning-light: #fef3c7;
  --danger:        #dc2626;
  --danger-light:  #fee2e2;
  --info:          #0284c7;
  --info-light:    #e0f2fe;
  --primary:       var(--cu-red);
  --primary-light: #fde8e8;

  --font-ar:    'Cairo', 'Segoe UI', sans-serif;
  --font-en:    'Inter', 'Segoe UI', sans-serif;
  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.15);
  --transition: all .2s ease;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background: var(--gray-50);
  color: var(--black);
  direction: rtl;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--cu-red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cu-red-dark); }

img { max-width: 100%; display: block; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-800);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.text-ar  { font-family: var(--font-ar); }
.text-en  { font-family: var(--font-en); direction: ltr; display: inline-block; }
.text-muted { color: var(--gray-500); font-size: .9rem; }
.text-small { font-size: .85rem; }
.text-center { text-align: center; }
.text-red { color: var(--cu-red); }
.text-gold { color: var(--cu-gold); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

/* ─── Layout ────────────────────────────────────────────────── */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm  { max-width: 600px;  margin: 0 auto; padding: 0 1.5rem; }
.container-md  { max-width: 800px;  margin: 0 auto; padding: 0 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}

/* ─── Top Navigation Bar ────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, var(--cu-red-dark) 0%, var(--cu-red) 100%);
  color: var(--white);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(139,0,0,.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar-logo {
  height: 66px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-title .name-ar { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.navbar-title .name-en { font-size: .7rem; font-weight: 400; opacity: .85; font-family: var(--font-en); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,.9);
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  background: rgba(255,255,255,.2);
  color: var(--white);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: .9rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 100;
  display: none;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  color: var(--gray-700);
  font-size: .9rem;
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--cu-red); }
.dropdown-menu .divider { height: 1px; background: var(--gray-200); margin: .25rem 0; }

/* ─── Hero / Page Header ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--cu-red-dark), var(--cu-red));
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.2rem; }
.page-hero p  { opacity: .9; font-size: 1.1rem; margin-top: .5rem; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); background: var(--gray-50); border-radius: 0 0 var(--radius) var(--radius); }

/* Course cards */
.course-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--cu-red-dark), var(--cu-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
}
.course-card-body { padding: 1.25rem; }
.course-card-title { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; color: var(--gray-800); }
.course-card-meta  { display: flex; gap: 1rem; font-size: .8rem; color: var(--gray-500); margin-bottom: 1rem; }
.course-card-footer { padding: .75rem 1.25rem; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }

/* Stat cards */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.red    { background: var(--primary-light); color: var(--cu-red); }
.stat-icon.green  { background: var(--success-light); color: var(--success); }
.stat-icon.gold   { background: #fef3c7; color: var(--warning); }
.stat-icon.blue   { background: var(--info-light); color: var(--info); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--gray-800); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn-sm  { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg  { padding: .75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary   { background: var(--cu-red); color: var(--white); border-color: var(--cu-red); }
.btn-primary:hover { background: var(--cu-red-dark); border-color: var(--cu-red-dark); color: var(--white); }

.btn-secondary { background: var(--gray-600); color: var(--white); border-color: var(--gray-600); }
.btn-secondary:hover { background: var(--gray-700); border-color: var(--gray-700); color: var(--white); }

.btn-success   { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #047857; color: var(--white); }

.btn-warning   { background: var(--warning); color: var(--white); border-color: var(--warning); }
.btn-warning:hover { background: #b45309; color: var(--white); }

.btn-danger    { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: var(--white); }

.btn-outline-primary { background: transparent; color: var(--cu-red); border-color: var(--cu-red); }
.btn-outline-primary:hover { background: var(--cu-red); color: var(--white); }

.btn-outline-secondary { background: transparent; color: var(--gray-600); border-color: var(--gray-300); }
.btn-outline-secondary:hover { background: var(--gray-100); color: var(--gray-700); }

.btn-ghost { background: transparent; color: var(--gray-600); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); }

.btn-gold { background: var(--cu-gold); color: var(--white); border-color: var(--cu-gold); }
.btn-gold:hover { background: #a88119; color: var(--white); }

/* Loading state */
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-inline-start: .4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.form-label .required { color: var(--danger); margin-inline-start: .2rem; }

.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-ar);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  direction: rtl;
}
.form-control:focus {
  outline: none;
  border-color: var(--cu-red);
  box-shadow: 0 0 0 3px rgba(139,0,0,.1);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-text { font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }
.invalid-feedback { font-size: .8rem; color: var(--danger); margin-top: .25rem; display: block; }
.valid-feedback   { font-size: .8rem; color: var(--success); margin-top: .25rem; }

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control { border-radius: 0; flex: 1; }
.input-group .input-group-text {
  padding: .65rem .9rem;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-500);
  font-size: .9rem;
  display: flex;
  align-items: center;
}
.input-group .form-control:first-child  { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .form-control:last-child   { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .input-group-text:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-left: none; }
.input-group .input-group-text:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-right: none; }

/* Checkbox & Radio */
.form-check { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; cursor: pointer; }
.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--cu-red);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check-label { font-size: .9rem; cursor: pointer; }

/* Password strength */
.password-strength-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-top: .5rem;
  overflow: hidden;
}
.password-strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .3s, background .3s;
  width: 0;
}
.strength-weak   .password-strength-fill { width: 33%; background: var(--danger); }
.strength-medium .password-strength-fill { width: 66%; background: var(--warning); }
.strength-strong .password-strength-fill { width: 100%; background: var(--success); }
.strength-label { font-size: .8rem; margin-top: .3rem; }

/* ─── Tables ─────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--white);
}
.data-table thead th {
  background: var(--gray-800);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: right;
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table td { padding: .75rem 1rem; color: var(--gray-700); vertical-align: middle; }
.data-table .actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success   { background: var(--success-light); color: #065f46; }
.badge-danger    { background: var(--danger-light);  color: #991b1b; }
.badge-warning   { background: var(--warning-light); color: #92400e; }
.badge-info      { background: var(--info-light);    color: #075985; }
.badge-secondary { background: var(--gray-100);      color: var(--gray-600); }
.badge-primary   { background: var(--primary-light); color: var(--cu-red-dark); }

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  position: relative;
  margin-bottom: 1rem;
}
.alert-success  { background: var(--success-light); color: #065f46; border-right: 4px solid var(--success); }
.alert-danger   { background: var(--danger-light);  color: #991b1b; border-right: 4px solid var(--danger); }
.alert-warning  { background: var(--warning-light); color: #92400e; border-right: 4px solid var(--warning); }
.alert-info     { background: var(--info-light);    color: #075985; border-right: 4px solid var(--info); }
.alert-dismissible { padding-left: 2.5rem; }
.alert-close {
  position: absolute;
  left: .75rem;
  top: .75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: inherit;
  opacity: .7;
  line-height: 1;
}
.alert-close:hover { opacity: 1; }

/* ─── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform .25s;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to left, var(--cu-red-dark), var(--cu-red));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h4 { color: var(--white); margin: 0; }
.modal-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: var(--white);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,.35); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; gap: .75rem; justify-content: flex-end; }

/* ─── Auth Pages (Login / Register) ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cu-red-dark) 0%, var(--cu-red) 50%, #b22222 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo-circle {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--cu-red-dark), var(--cu-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto .75rem;
  box-shadow: 0 4px 20px rgba(139,0,0,.4);
}
.auth-logo h2 { font-size: 1.2rem; color: var(--gray-800); }
.auth-logo p  { font-size: .8rem; color: var(--gray-500); }

/* ─── Dashboard ─────────────────────────────────────────────── */
.dashboard-main {
  padding: 2rem 0;
}
.welcome-banner {
  background: linear-gradient(135deg, var(--cu-red-dark), var(--cu-red));
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  color: var(--white);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.welcome-banner h3 { color: var(--white); margin: 0; font-size: 1.3rem; }
.welcome-banner p  { opacity: .9; font-size: .9rem; margin: .25rem 0 0; }

/* ─── Seats indicator ───────────────────────────────────────── */
.seats-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin-top: .4rem; }
.seats-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.seats-ok   { background: var(--success); }
.seats-warn { background: var(--warning); }
.seats-full { background: var(--danger); }

/* ─── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; gap: 0; }
.tab-btn {
  padding: .7rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: .9rem;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-weight: 500;
}
.tab-btn.active { color: var(--cu-red); border-bottom-color: var(--cu-red); font-weight: 600; }
.tab-btn:hover:not(.active) { color: var(--gray-700); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Filters Bar ───────────────────────────────────────────── */
.filters-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}
.filters-bar .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination-nav { margin-top: 1.5rem; }
.pagination { display: flex; list-style: none; gap: .3rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-link {
  padding: .4rem .8rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: .85rem;
  transition: var(--transition);
}
.pagination .page-link:hover  { background: var(--cu-red); color: var(--white); border-color: var(--cu-red); }
.pagination .page-link.active { background: var(--cu-red); color: var(--white); border-color: var(--cu-red); }
.pagination .page-ellipsis { padding: .4rem .6rem; color: var(--gray-400); }

/* ─── Section headings ──────────────────────────────────────── */
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--cu-red);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-title span { font-size: 1.2rem; }

/* ─── Registration status steps ────────────────────────────── */
.status-flow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  flex-wrap: wrap;
}
.status-step {
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  white-space: nowrap;
}
.status-step.active  { background: var(--cu-red); color: var(--white); }
.status-step.done    { background: var(--success); color: var(--white); }
.status-arrow { color: var(--gray-400); }

/* ─── Conditions checklist ──────────────────────────────────── */
.conditions-list { list-style: none; }
.conditions-list li {
  padding: .5rem 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-100);
}
.conditions-list li:last-child { border-bottom: none; }
.cond-icon-ok  { color: var(--success); font-size: 1.1rem; }
.cond-icon-no  { color: var(--danger);  font-size: 1.1rem; }

/* ─── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--cu-red); }
.breadcrumb-sep { color: var(--gray-300); }

/* ─── Loading spinner ───────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--cu-red);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}

/* ─── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h4 { color: var(--gray-600); margin-bottom: .5rem; }
.empty-state p  { font-size: .9rem; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1.5rem;
  font-size: .85rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--cu-gold); }

/* ─── Utilities ─────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-3 { padding-right: 1.5rem; padding-left: 1.5rem; }
.w-100 { width: 100%; }
.d-block { display: block; }
.d-none  { display: none; }
.rounded { border-radius: var(--radius); }
.shadow  { box-shadow: var(--shadow); }
.bg-white { background: var(--white); }
.border { border: 1px solid var(--gray-200); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cu-red); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 576px) {
  .auth-card { padding: 1.5rem 1rem; }
  .navbar-title .name-en { display: none; }
  .btn-lg { padding: .65rem 1.25rem; font-size: .9rem; }
  h1 { font-size: 1.5rem; }
}

@media (max-width: 992px) {
  .navbar-nav { display: none; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
