/* ============================================
   برنامج مدار | كامب جذور - التنسيقات
   ============================================ */

:root {
  --blue: #014976;
  --blue-dark: #012f52;
  --blue-light: #016699;
  --blue-subtle: rgba(1, 73, 118, 0.08);
  --orange: #FBAE42;
  --orange-dark: #E59B2E;
  --orange-light: #FFD080;
  --cream: #F4F3EF;
  --cream-dark: #E8E6E1;
  --white: #FFFFFF;
  --dark: #0D1B2A;
  --dark-mid: #1B2838;
  --gray-900: #1a1a2e;
  --gray-700: #3d3d56;
  --gray-500: #6b6b80;
  --gray-300: #b0b0c0;
  --gray-100: #e8e8f0;
  --shadow-sm: 0 2px 8px rgba(1, 73, 118, 0.06);
  --shadow-md: 0 8px 32px rgba(1, 73, 118, 0.1);
  --shadow-lg: 0 16px 64px rgba(1, 73, 118, 0.12);
  --shadow-glow: 0 0 40px rgba(1, 73, 118, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray-900);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.d-none { display: none !important; }

.req { color: var(--orange); font-weight: 700; }

/* ============================================
   شاشة التحميل
   ============================================ */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content { text-align: center; }
.loader-icon {
  font-size: 48px;
  color: var(--orange);
  animation: pulse 1.5s ease-in-out infinite;
  display: block;
  margin-bottom: 20px;
}
.loader-text {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.8;
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 10px;
  animation: loadBar 1.5s ease forwards;
}

@keyframes loadBar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* ============================================
   شاشة التحقق
   ============================================ */
.verify-section {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.verify-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* الجانب الأيسر - الصورة */
.verify-photo-side {
  flex: 1.4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.verify-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.verify-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 47, 82, 0.75) 0%, rgba(1, 73, 118, 0.85) 50%, rgba(1, 47, 82, 0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 40px 120px;
}
.verify-photo-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.verify-photo-divider {
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 10px;
  margin-bottom: 16px;
}
.verify-photo-subtitle {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}
.verify-photo-org {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 320px;
}

/* الجانب الأيمن - النموذج */
.verify-form-side {
  flex: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--white);
}
.verify-form-inner {
  width: 100%;
  max-width: 420px;
}

.verify-header { text-align: center; margin-bottom: 32px; }

.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.brand-logo-wide {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand-logo-lg {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.photo-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  margin-bottom: 26px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.2;
}
.brand-subtitle {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
}
.brand-org {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

.verify-body { text-align: center; }
.verify-icon {
  width: 72px;
  height: 72px;
  background: var(--blue-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue);
}
.verify-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.verify-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.verify-form { text-align: right; }

.input-group-fancy {
  position: relative;
  margin-bottom: 20px;
}
.input-field {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  background: var(--cream);
  transition: var(--transition);
  direction: ltr;
  text-align: center;
  letter-spacing: 2px;
}
.input-field:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(1, 73, 118, 0.1);
}
.input-field::placeholder {
  letter-spacing: 0;
  direction: rtl;
  text-align: center;
  color: var(--gray-300);
}
.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: var(--transition);
  transform: translateX(-50%);
}
.input-field:focus ~ .input-focus-line {
  width: 100%;
}

/* الأزرار */
.btn-primary-fancy {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.btn-primary-fancy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  opacity: 0;
  transition: var(--transition);
}
.btn-primary-fancy:hover::before { opacity: 1; }
.btn-primary-fancy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1, 73, 118, 0.3);
}
.btn-primary-fancy:active { transform: translateY(0); }
.btn-primary-fancy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.btn-text, .btn-loader { position: relative; z-index: 1; }

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.verify-result {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

.verify-result.error {
  background: #FFF3F3;
  color: #C0392B;
  border: 1px solid #FADBD8;
}
.verify-result.not-found {
  background: #FFF8E1;
  color: #8D6E08;
  border: 1px solid #FFF3C4;
}
.verify-result.reg_found {
  background: #E8F4FD;
  color: #014976;
  border: 1px solid #BFDCF0;
}
.verify-result.duplicate {
  background: #FFF3F3;
  color: #C0392B;
  border: 1px solid #FADBD8;
}

.not-found-action {
  margin-top: 16px;
}

.volunteer-question {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-100);
}
.volunteer-question p {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 15px;
}
.volunteer-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.verify-choice-btns {
  margin-top: 24px;
}
.verify-choice-btns .btn-volunteer {
  flex: 1;
  min-width: 170px;
  max-width: 240px;
  padding: 20px 24px;
  font-size: 17px;
  border-radius: 14px;
  text-align: center;
}
.verify-choice-btns .btn-volunteer.no {
  background: linear-gradient(135deg, var(--orange), #FBAE42);
  color: var(--white);
  border: none;
}
.verify-choice-btns .btn-volunteer.no:hover {
  box-shadow: 0 6px 20px rgba(251, 174, 66, 0.35);
}
.btn-volunteer {
  padding: 12px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-volunteer.yes {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
}
.btn-volunteer.no {
  background: var(--cream);
  color: var(--gray-700);
  border: 2px solid var(--gray-100);
}
.btn-volunteer:hover {
  transform: translateY(-2px);
}
.btn-volunteer.yes:hover {
  box-shadow: 0 6px 20px rgba(1, 73, 118, 0.3);
}
.volunteer-link-box {
  margin-top: 16px;
}
.volunteer-link-box p {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 12px;
}
.volunteer-note {
  font-size: 13px;
  color: var(--orange-dark);
  background: #FFF8E1;
  border: 1px solid #FFE9B8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 12px;
  font-weight: 500;
}
.btn-register-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--orange);
  color: var(--dark);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}
.btn-register-link:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 174, 66, 0.4);
}

/* ============================================
   شاشة الاستمارة
   ============================================ */
.form-section {
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  padding-bottom: 100px;
}

.form-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
}
.form-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 10px;
}
.brand-diamond-sm {
  color: var(--orange);
  font-size: 14px;
}
.form-header-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
#stepIndicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.progress-fancy {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* الخطوات */
.form-step {
  display: none;
  animation: stepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-step.active { display: block; }

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.step-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--blue-subtle);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.step-desc {
  font-size: 14px;
  color: var(--gray-500);
}

.step-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* حقول الإدخال */
.form-floating-custom {
  margin-bottom: 20px;
}
.form-floating-custom > label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--cream);
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(1, 73, 118, 0.08);
}
.form-input::placeholder {
  color: var(--gray-300);
}
.form-input[readonly] {
  background: var(--blue-subtle);
  color: var(--blue);
  font-weight: 600;
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b6b80'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 36px;
}

.field-locked {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  background: var(--blue-subtle);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 6px;
}

.field-error {
  color: #C0392B;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  padding: 8px 12px;
  background: #FFF3F3;
  border-radius: var(--radius-sm);
  border: 1px solid #FADBD8;
}
.field-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* مقسم الأقسام */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}
.section-divider span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  white-space: nowrap;
}

.sub-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 4px;
}
.sub-section-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* المجموعات الاختيارية */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  background: var(--cream);
  flex: 1;
  min-width: 100px;
  justify-content: center;
}
.radio-card:hover {
  border-color: var(--blue-light);
  background: var(--blue-subtle);
}
.radio-card input { display: none; }
.radio-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-subtle);
  color: var(--blue);
  font-weight: 600;
}
.radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}
.radio-card:has(input:checked) .radio-mark {
  border-color: var(--blue);
}
.radio-card:has(input:checked) .radio-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  background: var(--cream);
}
.checkbox-card:hover {
  border-color: var(--blue-light);
  background: var(--blue-subtle);
}
.checkbox-card input { display: none; }
.checkbox-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-subtle);
  color: var(--blue);
  font-weight: 600;
}
.check-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}
.checkbox-card:has(input:checked) .check-mark {
  border-color: var(--blue);
  background: var(--blue);
}
.checkbox-card:has(input:checked) .check-mark::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.member-fields {
  animation: fadeIn 0.4s ease;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--gray-100);
}

/* التقييم */
.assessment-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.assessment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  gap: 16px;
}
.assessment-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  min-width: 140px;
}
.rating-group {
  display: flex;
  gap: 6px;
}
.rating-star {
  cursor: pointer;
}
.rating-star input { display: none; }
.rating-star span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gray-100);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-500);
  transition: var(--transition);
}
.rating-star span:hover {
  border-color: var(--orange-light);
  color: var(--orange);
  background: rgba(251, 174, 66, 0.08);
}
.rating-star:has(input:checked) span {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* مهارات اللجان */
.committee-skills-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.committee-skill-group {
  background: var(--cream);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-right: 4px solid var(--blue);
}
.committee-skill-group h5 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

/* التراك */
.tracks-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.track-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
}
.track-option:hover {
  border-color: var(--blue-light);
  background: var(--blue-subtle);
}
.track-option input { display: none; }
.track-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-subtle);
}
.track-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.track-option:has(input:checked) .track-check {
  border-color: var(--blue);
  background: var(--blue);
}
.track-option:has(input:checked) .track-check::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
  margin-top: -2px;
}
.track-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}

/* الإقرار */
.pledge-box {
  background: linear-gradient(135deg, rgba(1, 73, 118, 0.04), rgba(251, 174, 66, 0.04));
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-100);
  margin-bottom: 24px;
}
.pledge-check {
  padding: 0;
  border: none;
  background: none;
}
.pledge-check:hover {
  background: none;
  border-color: transparent;
}

/* الأزرار */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding: 0 16px;
}
.btn-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-700);
}
.btn-nav:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-subtle);
}
.btn-next {
  margin-right: auto;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  border-color: transparent;
}
.btn-next:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 73, 118, 0.3);
}
.btn-submit {
  width: 100%;
  margin-top: 24px;
  padding: 18px 32px;
  font-size: 17px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--dark);
}
.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  box-shadow: 0 8px 24px rgba(251, 174, 66, 0.4);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   شاشة النجاح
   ============================================ */
.success-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--blue-dark) 0%, var(--blue) 40%, var(--blue-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.success-wrapper {
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.success-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.success-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--white);
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.success-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
}
.success-desc {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.7;
}
.success-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 10px;
  margin: 24px auto;
}
.success-note {
  font-size: 13px;
  color: var(--gray-300);
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .verify-split {
    flex-direction: column;
  }
  .verify-photo-side {
    flex: none;
    height: 260px;
    overflow: hidden;
  }
  .verify-photo-side .verify-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .verify-photo-overlay {
    background: linear-gradient(180deg, rgba(1, 47, 82, 0.3) 0%, rgba(1, 73, 118, 0.6) 100%);
    padding: 20px 16px 64px;
  }
  .verify-photo-title { font-size: 28px; }
  .verify-photo-subtitle { font-size: 18px; }
  .verify-form-side {
    padding: 32px 20px;
  }
  .brand-title { font-size: 26px; }
  .brand-subtitle { font-size: 18px; }

  .step-header { padding: 24px 20px; }
  .step-body { padding: 24px 20px; }
  .step-number { font-size: 36px; }
  .step-title { font-size: 20px; }

  .assessment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .assessment-label { min-width: auto; }

  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .radio-group {
    flex-direction: column;
  }
  .radio-card {
    min-width: auto;
  }

  .form-header {
    padding: 12px 0;
  }
  .form-header-brand {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .verify-form-side { padding: 24px 16px; }
  .brand-title { font-size: 22px; }
  .brand-logos { gap: 10px; margin-bottom: 16px; }
  .brand-logo { width: 54px; height: 54px; }
  .brand-logo-wide { width: 54px; height: 54px; }
  .brand-logo-lg { width: 68px; height: 68px; }
  .photo-logo { width: 54px; height: 54px; margin-bottom: 18px; }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .step-navigation {
    padding: 0 8px;
  }
  .btn-nav {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ============================================
   SweetAlert Customization
   ============================================ */
.swal2-popup {
  font-family: var(--font-body) !important;
  border-radius: var(--radius-lg) !important;
  direction: rtl;
}
.swal2-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}
.swal2-styled {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
}
.swal2-confirm {
  background: var(--blue) !important;
}

/* ============================================
   Dark Mode
   ============================================ */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a2e;
    color: #e0e0e0;
  }
  .verify-form-side {
    background: #1a1a2e;
  }
  .verify-photo-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.5) 0%, rgba(10, 10, 20, 0.7) 100%);
  }
  .brand-logo {
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .brand-logo-wide {
    border-radius: 12px;
    padding: 6px 12px;
  }
  .brand-title { color: #ffffff; }
  .brand-subtitle { color: var(--orange); }
  .brand-org { color: rgba(255,255,255,0.6); }
  .verify-title { color: #ffffff; }
  .verify-desc { color: rgba(255,255,255,0.5); }
  .verify-icon { background: rgba(1, 73, 118, 0.2); color: var(--blue-light); }
  .input-field {
    background: #2a2a3e;
    border-color: #3a3a50;
    color: #fff;
  }
  .input-field:focus {
    background: #2a2a3e;
    border-color: var(--blue-light);
  }
  .form-section { background: #1a1a2e; }
  .step-body { background: #252540; }
  .form-floating-custom > label { color: #b0b0c0; }
  .form-input {
    background: #2a2a3e;
    border-color: #3a3a50;
    color: #fff;
  }
  .form-input:focus {
    background: #2a2a3e;
    border-color: var(--blue-light);
  }
  .radio-card {
    background: #2a2a3e;
    border-color: #3a3a50;
    color: #e0e0e0;
  }
  .checkbox-card {
    background: #2a2a3e;
    border-color: #3a3a50;
    color: #e0e0e0;
  }
  .section-divider span { color: var(--orange); }
  .step-number {
    background: linear-gradient(135deg, var(--blue-light), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .step-title { color: #fff; }
  .form-header {
    background: rgba(26, 26, 46, 0.9);
    border-color: #3a3a50;
  }
  .form-header-brand { color: var(--orange); }
  .success-section { background: #1a1a2e; }
  .success-card { background: #252540; }
  .success-title { color: #fff; }
  .success-desc { color: rgba(255,255,255,0.7); }
  .success-note { color: rgba(255,255,255,0.5); }
  .verify-result.error { background: rgba(192, 57, 43, 0.15); }
  .verify-result.not-found { background: rgba(141, 110, 8, 0.15); }
  .verify-result.duplicate { background: rgba(192, 57, 43, 0.15); }
  .pledge-box { background: #252540; border-color: #3a3a50; }
  .field-error { background: rgba(192, 57, 43, 0.15); border-color: rgba(192, 57, 43, 0.3); }
  .field-locked { background: rgba(1, 73, 118, 0.2); color: var(--blue-light); }
}

/* ═══════════════════════════════════════════
   الدعم الفني
   ═══════════════════════════════════════════ */

.support-footer {
  padding: 8px 0 36px;
}

.support-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.support-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-head h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.support-head p {
  font-size: 12px;
  color: var(--gray-700);
  margin: 0;
}

.support-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-100);
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
  direction: ltr;
}

.support-link:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 73, 118, 0.12);
}

@media (max-width: 480px) {
  .support-box {
    flex-direction: column;
    text-align: center;
  }
  .support-head {
    justify-content: center;
  }
  .support-links {
    justify-content: center;
    width: 100%;
  }
}
