/* ═══════════════════════════════════════════════════════════════
   SUDANESE COMMERCIAL CHAMBERS — PORTAL & MEMBERSHIP CSS
   Full Design System Styles for Requirements, Service Details,
   8-Step Registration Wizard, Login, Forgot Password & Order Check
   ═══════════════════════════════════════════════════════════════ */

/* ── PORTAL HERO & HEADER BANNER ────────────────────────────── */
.portal-hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.portal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(76, 51, 200, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.portal-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--gold-400);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-nav a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.breadcrumb-nav .separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.breadcrumb-nav .current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.portal-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}

.portal-hero-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  max-width: 760px;
  line-height: 1.8;
}

.portal-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ── GENERAL PORTAL WRAPPER ─────────────────────────────────── */
.portal-container {
  padding: 50px 0 90px;
  background: var(--gray-50);
  min-height: calc(100vh - 400px);
}

.portal-section-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-800);
  position: relative;
  padding-right: 14px;
}

.portal-section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gold-500);
  border-radius: 4px;
}

/* ── REQUIREMENTS / SERVICE DIRECTORY GRID ───────────────────── */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.req-service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.req-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-600), var(--navy-400));
  transition: var(--transition);
}

.req-service-card.featured::before {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.req-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(76, 51, 200, 0.2);
}

.req-service-card.featured:hover {
  border-color: rgba(201, 168, 76, 0.4);
}

.req-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(76, 51, 200, 0.08);
  color: var(--navy-500);
  width: fit-content;
  margin-bottom: 16px;
}

.req-card-badge.gold {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-600);
}

.req-card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(28, 18, 88, 0.15);
}

.req-card-icon svg {
  width: 28px;
  height: 28px;
}

.req-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 12px;
  line-height: 1.4;
}

.req-card-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.req-card-features {
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-card-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-700);
}

.req-card-feature-item svg {
  width: 14px;
  height: 14px;
  color: #10b981;
  flex-shrink: 0;
}

.req-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: 20px;
}

.req-card-btn-link {
  color: var(--navy-600);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.req-card-btn-link:hover {
  color: var(--gold-600);
  transform: translateX(-4px);
}

.req-card-btn-cta {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.req-card-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

/* ── SERVICE DETAILS VIEW ────────────────────────────────────── */
.service-details-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.main-service-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-panel-header {
  padding: 32px 36px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(to bottom, #ffffff, var(--gray-50));
}

.service-title-wrap h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.service-category-tag {
  font-size: 0.82rem;
  color: var(--gold-600);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tabs System */
.details-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.details-tabs-header::-webkit-scrollbar {
  display: none;
}

.details-tab-btn {
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-600);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.details-tab-btn svg {
  width: 18px;
  height: 18px;
}

.details-tab-btn:hover {
  color: var(--navy-700);
}

.details-tab-btn.active {
  color: var(--navy-800);
  border-bottom-color: var(--gold-500);
  background: var(--white);
}

.details-tab-content {
  padding: 36px;
}

.details-tab-pane {
  display: none;
}

.details-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Tab Table Styling */
.portal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.portal-table th {
  background: var(--navy-800);
  color: var(--white);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.portal-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.88rem;
  color: var(--navy-700);
}

.portal-table tr:last-child td {
  border-bottom: none;
}

.portal-table tr:nth-child(even) {
  background: var(--gray-50);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.required {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.optional {
  background: #f1f5f9;
  color: #64748b;
}

.status-badge.success {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

/* Timeline Flow */
.process-flow-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding: 16px 0;
}

.flow-step-card-modern {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition);
}

.flow-step-card-modern:hover {
  border-color: var(--navy-400);
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}

.flow-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(28, 18, 88, 0.15);
}

.flow-step-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.flow-step-body p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.flow-step-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--navy-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Sidebar Cards */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.sidebar-info-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-800);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-info-title svg {
  width: 20px;
  height: 20px;
  color: var(--gold-500);
}

.sidebar-meta-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sidebar-meta-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  color: var(--navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-meta-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-meta-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 2px;
}

.sidebar-meta-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-800);
}

.sidebar-support-card {
  background: linear-gradient(145deg, #281b7a, #1a1050);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: var(--white);
  border: 1.5px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 8px 32px rgba(28, 18, 88, 0.35);
}

.sidebar-support-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gold-400);
}

.sidebar-support-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sidebar-contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.sidebar-contact-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

/* ── 8-STEP REGISTRATION WIZARD ──────────────────────────────── */
.wizard-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* Wizard Sidebar */
.wizard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wizard-progress-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.wizard-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wizard-progress-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-800);
}

.wizard-progress-percent {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--gold-600);
}

.wizard-bar-container {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.wizard-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: 4px;
  transition: width 0.4s ease-in-out;
  width: 12.5%;
}

/* Mobile Stepper View (Hidden on Desktop) */
.mobile-stepper-container {
  display: none !important;
}

/* Steps Navigation List */
.wizard-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.wizard-step-item:hover {
  background: var(--gray-50);
  color: var(--navy-700);
}

.wizard-step-item.active {
  background: rgba(76, 51, 200, 0.08);
  color: var(--navy-800);
  border-color: rgba(76, 51, 200, 0.2);
}

.wizard-step-item.completed {
  color: #10b981;
}

.wizard-step-num-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: var(--transition);
}

.wizard-step-item.active .wizard-step-num-bubble {
  background: var(--navy-800);
  color: var(--gold-400);
}

.wizard-step-item.completed .wizard-step-num-bubble {
  background: #10b981;
  color: var(--white);
}

/* Password Criteria Card */
.password-criteria-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.criteria-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.criteria-item.valid {
  color: #10b981;
  font-weight: 600;
}

.criteria-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Main Wizard Form Card */
.wizard-main-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.step-panel-title-wrap {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-panel-title svg {
  color: var(--gold-500);
  width: 24px;
  height: 24px;
}

.step-panel-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-500);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Form Groups & Inputs */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label-modern {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-700);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label-modern .asterisk {
  color: #ef4444;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-prefix {
  position: absolute;
  right: 14px;
  color: var(--navy-400);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon-prefix svg {
  width: 18px;
  height: 18px;
}

.input-field-modern {
  width: 100%;
  padding: 13px 44px 13px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--navy-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  outline: none;
}

.input-field-modern:focus {
  border-color: var(--navy-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(76, 51, 200, 0.1);
}

.input-field-modern::placeholder {
  color: var(--gray-400);
  font-size: 0.85rem;
}

select.input-field-modern {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 16px;
  padding-left: 36px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Face/ID Photo Upload Container */
.face-upload-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--gray-50);
  border: 1.5px dashed var(--navy-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 10px;
  margin-bottom: 24px;
}

.face-preview-circle {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.face-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.face-preview-circle svg {
  width: 48px;
  height: 48px;
  color: var(--gray-300);
}

.face-upload-info {
  flex-grow: 1;
}

.face-upload-info h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.face-upload-info p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

/* Modern Dropzone */
.modern-dropzone {
  border: 2px dashed var(--gray-300);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modern-dropzone:hover {
  border-color: var(--navy-400);
  background: rgba(76, 51, 200, 0.03);
}

.modern-dropzone.dragover {
  border-color: var(--gold-500);
  background: rgba(201, 168, 76, 0.08);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(76, 51, 200, 0.08);
  color: var(--navy-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-800);
}

.dropzone-subtitle {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-preview-pill {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--navy-800);
}

.file-preview-pill.active {
  display: flex;
}

.file-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
}

/* Dynamic Table for Partners/Shareholders */
.dynamic-table-container {
  margin: 20px 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dynamic-table-toolbar {
  padding: 14px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dynamic-table-toolbar h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-800);
}

.btn-add-row {
  background: var(--navy-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-row:hover {
  background: var(--navy-600);
}

/* Wizard Navigation Buttons */
.wizard-nav-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.btn-wizard-next {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: var(--white);
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-wizard-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 31, 60, 0.3);
}

.btn-wizard-prev {
  background: var(--gray-100);
  color: var(--navy-700);
  border: 1px solid var(--gray-200);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-wizard-prev:hover {
  background: var(--gray-200);
}

.btn-wizard-submit {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--navy-900);
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-wizard-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.6);
}

/* ── AUTHENTICATION / LOGIN VIEW ─────────────────────────────── */
.auth-page-wrapper {
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 85px 20px 48px;
  position: relative;
  overflow: hidden;
}

.auth-card-modern {
  width: 100%;
  max-width: 420px;
  background: rgba(28, 18, 88, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-xl);
  padding: 34px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 168, 76, 0.08);
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.25);
  object-fit: cover;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.auth-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
  height: 42px;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  width: 100%;
  margin-top: 2px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.76rem;
  user-select: none;
}

.auth-remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.auth-forgot-link {
  color: var(--gold-400);
  font-size: 0.76rem;
  white-space: nowrap;
  transition: var(--transition);
}

.auth-forgot-link:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

.auth-info-box {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.auth-footer-prompt {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.auth-footer-prompt a {
  color: var(--gold-400);
  font-weight: 700;
  margin-right: 4px;
  font-size: 0.8rem;
}

.auth-footer-prompt a:hover {
  text-decoration: underline;
}

/* ── ORDER INQUIRY / CHECK ORDER VIEW ────────────────────────── */
.inquiry-panel-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 840px;
  margin: 0 auto;
}

.inquiry-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.inquiry-type-chip {
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.inquiry-type-chip svg {
  width: 22px;
  height: 22px;
  color: var(--navy-400);
}

.inquiry-type-chip:hover {
  border-color: var(--navy-300);
  background: var(--white);
}

.inquiry-type-chip.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.inquiry-type-chip.active svg {
  color: var(--gold-400);
}

/* Captcha Block */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.captcha-badge {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300);
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-captcha-refresh {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy-700);
  transition: var(--transition);
}

.btn-captcha-refresh:hover {
  background: var(--navy-800);
  color: var(--gold-400);
}

/* Inquiry Result Card */
.inquiry-result-wrapper {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px dashed var(--gray-200);
  display: none;
}

.inquiry-result-wrapper.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.inquiry-result-box {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.result-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.result-order-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-800);
}

.result-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.result-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-detail-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 600;
}

.result-detail-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-800);
}

/* Status Timeline Progress */
.result-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-top: 24px;
}

.result-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 10%;
  left: 10%;
  height: 3px;
  background: var(--gray-200);
  z-index: 0;
}

.timeline-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--gray-400);
  transition: var(--transition);
}

.timeline-milestone.done .timeline-dot {
  background: #10b981;
  border-color: #10b981;
  color: var(--white);
}

.timeline-milestone.current .timeline-dot {
  background: var(--navy-800);
  border-color: var(--gold-500);
  color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

.timeline-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-700);
}

.timeline-date {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ── RESPONSIVE MEDIA QUERIES ────────────────────────────────── */

/* ── GLOBAL RESPONSIVE GUARDS ────────────────────────────────── */
.portal-container,
.portal-hero-inner {
  max-width: 100%;
  box-sizing: border-box;
}

.portal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. LARGE DISPLAYS & 4K (min-width: 1920px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1920px) {
  .portal-container,
  .portal-hero-inner {
    max-width: 1600px;
  }

  .portal-hero {
    padding: 150px 0 64px;
  }

  .portal-hero-title {
    font-size: 2.5rem;
  }

  .wizard-layout {
    grid-template-columns: 340px 1fr;
    gap: 36px;
  }

  .service-details-layout {
    grid-template-columns: 1fr 360px;
    gap: 36px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. STANDARD LAPTOPS & DESKTOPS (1025px to 1440px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .wizard-layout {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }

  .service-details-layout {
    grid-template-columns: 1fr 300px;
    gap: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. TABLET LANDSCAPE & PORTRAIT (max-width: 1024px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .service-details-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wizard-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .wizard-sidebar {
    display: contents;
  }

  .wizard-progress-card {
    order: 1;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .wizard-main-card {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .password-criteria-card {
    order: 3;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .sidebar-support-card {
    order: 4;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .portal-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
  }

  .inquiry-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portal-hero {
    padding: 110px 0 44px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. SMALL TABLETS & LARGE PHONES (max-width: 768px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Portal Hero */
  .portal-hero {
    padding: 95px 0 36px;
  }

  .portal-hero-title {
    font-size: clamp(1.35rem, 5vw, 1.95rem);
    line-height: 1.35;
  }

  .portal-hero-desc {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .portal-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .portal-hero-actions .btn-gold,
  .portal-hero-actions .btn-outline-white,
  .portal-hero-actions .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Requirements Grid */
  .requirements-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .req-service-card {
    padding: 22px 18px;
  }

  .req-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .req-card-btn-cta {
    width: 100%;
    justify-content: center;
  }

  /* Service Details */
  .service-panel-header {
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .service-title-wrap h1 {
    font-size: 1.25rem;
  }

  .details-tabs-header {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 8px;
    padding: 0 14px 8px;
    scrollbar-width: none;
  }

  .details-tabs-header::-webkit-scrollbar {
    display: none;
  }

  .details-tab-btn {
    flex: 0 0 auto;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .details-tab-content {
    padding: 22px 16px;
  }

  .portal-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .portal-table {
    min-width: 520px;
  }

  .wizard-main-card .portal-table {
    min-width: 100% !important;
    width: 100% !important;
    table-layout: fixed;
  }

  .portal-table th,
  .portal-table td {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .wizard-main-card .portal-table td,
  .wizard-main-card .portal-table th {
    word-break: break-word;
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  /* Multi-step Registration Wizard */
  .wizard-progress-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 14px 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .wizard-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .wizard-progress-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--navy-800);
  }

  .wizard-progress-percent {
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--gold-600);
  }

  .wizard-bar-container {
    height: 6px;
    background: var(--gray-100);
    border-radius: 9999px;
    margin-bottom: 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  /* Mobile Stepper (8-Node Track & Active Banner, Eliminates Horizontal Scroll) */
  .mobile-stepper-container {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
  }

  .mobile-milestones-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 4px 0;
    box-sizing: border-box;
    position: relative;
  }

  .mobile-milestone-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    outline: none;
    z-index: 2;
  }

  .mobile-milestone-node:hover {
    border-color: var(--navy-500);
    color: var(--navy-800);
  }

  .mobile-milestone-node.completed {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
  }

  .mobile-milestone-node.active {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    border-color: var(--gold-500);
    color: var(--gold-300);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3);
    transform: scale(1.15);
  }

  .milestone-connector {
    flex: 1;
    height: 3px;
    background: var(--gray-200);
    margin: 0 2px;
    border-radius: 9999px;
    transition: background 0.3s ease;
  }

  .milestone-connector.completed {
    background: #10b981;
  }

  .mobile-stage-banner {
    background: linear-gradient(135deg, rgba(76, 51, 200, 0.05), rgba(201, 168, 76, 0.06));
    border: 1px solid rgba(76, 51, 200, 0.18);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .mobile-stage-meta {
    flex: 1;
    min-width: 0;
  }

  .mobile-stage-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
  }

  .mobile-stage-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--navy-800);
    background: rgba(76, 51, 200, 0.12);
    padding: 2px 8px;
    border-radius: var(--radius-full);
  }

  .mobile-stage-next-hint {
    font-size: 0.7rem;
    color: var(--gray-500);
  }

  .mobile-stage-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-toggle-all-steps {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-800);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
  }

  .btn-toggle-all-steps:hover {
    background: var(--gray-100);
    border-color: var(--navy-400);
  }

  .toggle-arrow {
    transition: transform 0.25s ease;
  }

  .wizard-progress-card.steps-expanded .toggle-arrow {
    transform: rotate(180deg);
  }

  /* Expandable Stages List on Mobile */
  .wizard-steps-list {
    display: none !important;
    width: 100% !important;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
    overflow: visible !important;
    white-space: normal !important;
  }

  .wizard-progress-card.steps-expanded .wizard-steps-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    animation: fadeIn 0.25s ease-out;
  }

  .wizard-steps-list .wizard-step-item {
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
    padding: 9px 12px !important;
    font-size: 0.82rem !important;
    white-space: normal !important;
    flex: none !important;
  }

  .wizard-step-panel,
  #RegistrationForm {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .dynamic-table-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .dynamic-table-container .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dynamic-table-container .form-grid-2 > div {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .dynamic-table-container input {
    min-width: 0;
    flex: 1;
  }

  .wizard-steps-list::-webkit-scrollbar {
    display: none;
  }

  .wizard-step-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--navy-800);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .wizard-step-item.active {
    background: rgba(76, 51, 200, 0.08);
    border: 1.5px solid var(--navy-800);
    color: var(--navy-900);
    font-weight: 800;
  }

  .wizard-step-item.completed {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #047857;
    font-weight: 700;
  }

  .wizard-step-num-bubble {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--navy-700);
    border: 1px solid var(--gray-300);
    flex-shrink: 0;
  }

  .wizard-step-item.active .wizard-step-num-bubble {
    background: var(--navy-800);
    color: var(--gold-400);
    border-color: var(--navy-800);
  }

  .wizard-step-item.completed .wizard-step-num-bubble {
    background: #10b981;
    color: var(--white);
    border-color: #10b981;
  }

  .wizard-main-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .step-panel-title-wrap {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .step-panel-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .step-panel-title svg {
    width: 20px;
    height: 20px;
  }

  .step-panel-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 9999px;
    background: var(--gray-100);
    color: var(--navy-600);
    font-weight: 700;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-group-modern {
    gap: 4px;
  }

  .form-label-modern {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--navy-800);
  }

  .input-field-modern {
    width: 100%;
    height: 40px;
    padding: 8px 36px 8px 12px;
    font-size: 16px !important;
    border-radius: 6px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    color: var(--navy-800);
    box-sizing: border-box;
  }

  .input-field-modern:focus {
    border-color: var(--navy-400);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(76, 51, 200, 0.1);
  }

  .input-with-icon .input-icon-prefix {
    right: 11px;
    width: 16px;
    height: 16px;
    color: var(--navy-400);
  }

  .input-with-icon .input-icon-prefix svg {
    width: 16px;
    height: 16px;
  }

  .form-hint {
    font-size: 0.68rem;
    color: var(--gray-400);
    margin-top: 2px;
  }

  /* Face Upload Box */
  .face-upload-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    margin-top: 6px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .face-preview-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto;
  }

  .face-preview-circle svg {
    width: 36px;
    height: 36px;
  }

  .face-upload-info h5 {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .face-upload-info p {
    font-size: 0.74rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  /* Navigation Footer on Mobile */
  .wizard-nav-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--gray-200) !important;
    box-sizing: border-box !important;
  }

  .wizard-nav-footer > div[style*="flex-grow"] {
    display: none !important;
  }

  /* CRITICAL FIX: Hide buttons when instructed by JavaScript */
  .wizard-nav-footer button[style*="display: none"],
  .wizard-nav-footer button.wizard-btn-hidden,
  .btn-wizard-prev.wizard-btn-hidden,
  .btn-wizard-next.wizard-btn-hidden,
  .btn-wizard-submit.wizard-btn-hidden {
    display: none !important;
  }

  .btn-wizard-prev {
    flex: 0 0 auto !important;
    min-width: 84px !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .btn-wizard-next {
    flex: 1 !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    border-radius: var(--radius-md) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  .btn-wizard-submit {
    flex: 1 !important;
    height: 46px !important;
    padding: 0 18px !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    border-radius: var(--radius-md) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  /* Dynamic Table Toolbar */
  .dynamic-table-toolbar {
    padding: 10px;
  }

  .btn-add-row {
    height: 40px;
    padding: 0 14px;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  /* Dropzones */
  .modern-dropzone {
    padding: 14px 10px;
    gap: 6px;
    border-radius: 8px;
    min-height: 90px;
  }

  .dropzone-icon {
    width: 36px;
    height: 36px;
  }

  .dropzone-icon svg {
    width: 18px;
    height: 18px;
  }

  .dropzone-title {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .dropzone-subtitle {
    font-size: 0.68rem;
  }

  /* Password Criteria Card */
  .password-criteria-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 14px 12px;
  }

  .criteria-list {
    margin-top: 10px;
    gap: 6px;
  }

  .criteria-item {
    font-size: 0.74rem;
  }

  .owner-toggle-card {
    padding: 12px 10px;
    gap: 10px;
    margin-bottom: 14px;
  }

  .declaration-card {
    padding: 12px 10px;
    gap: 10px;
    margin-bottom: 14px;
  }

  .declaration-card label {
    font-size: 0.76rem !important;
    line-height: 1.5 !important;
  }

  .declaration-card input {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    flex-shrink: 0;
  }

  .success-modal-card {
    padding: 24px 16px;
    max-width: 330px;
    width: 92%;
    border-radius: 14px;
  }

  /* Support Card */
  .sidebar-support-card {
    background: linear-gradient(135deg, #281b7a, #1a1050) !important;
    border: 1px solid rgba(201, 168, 76, 0.25) !important;
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    box-shadow: 0 4px 20px rgba(10, 6, 36, 0.15);
  }

  .sidebar-support-title {
    color: var(--gold-400) !important;
    font-size: 0.92rem;
    font-weight: 800;
  }

  .sidebar-support-desc {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.76rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .sidebar-contact-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(201, 168, 76, 0.35) !important;
    color: var(--gold-300) !important;
    height: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    transition: var(--transition);
  }

  .sidebar-contact-btn:hover {
    background: rgba(201, 168, 76, 0.2) !important;
    color: var(--white) !important;
  }

  /* Auth Card (Compact & Balanced for Mobile) */
  .auth-page-wrapper {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding: 76px 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .auth-card-modern {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 22px 18px 18px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 168, 76, 0.08);
  }

  .auth-header {
    margin-bottom: 14px;
  }

  .auth-logo {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
  }

  .auth-title {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 3px;
  }

  .auth-subtitle {
    font-size: 0.74rem;
  }

  .auth-form {
    gap: 11px;
  }

  .auth-input-group {
    gap: 4px;
  }

  .auth-label {
    font-size: 0.74rem;
  }

  .auth-input {
    height: 38px;
    padding: 8px 36px 8px 12px;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
  }

  .input-icon-prefix {
    right: 11px;
  }

  .input-icon-prefix svg {
    width: 15px;
    height: 15px;
  }

  .auth-options {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    font-size: 0.72rem;
    margin-top: 2px;
  }

  .auth-remember {
    font-size: 0.72rem;
    gap: 5px;
  }

  .auth-remember input {
    width: 13px;
    height: 13px;
  }

  .auth-forgot-link {
    font-size: 0.72rem;
  }

  .btn-auth-submit {
    height: 38px;
    font-size: 0.86rem;
    border-radius: var(--radius-sm);
    margin-top: 2px;
  }

  .auth-footer-prompt {
    margin-top: 14px;
    padding-top: 10px;
    font-size: 0.74rem;
  }

  .auth-footer-prompt a {
    font-size: 0.74rem;
  }

  /* Result Timeline (Vertical on Mobile) */
  .result-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 32px;
    position: relative;
  }

  .result-timeline::before {
    display: block;
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 15px;
    width: 2px;
    height: auto;
    background: var(--gold-500);
    opacity: 0.35;
  }

  .timeline-milestone {
    flex-direction: row;
    text-align: right;
    gap: 14px;
    align-items: center;
    position: relative;
    width: 100%;
  }

  .timeline-dot {
    position: absolute;
    right: -32px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .result-details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .result-status-badge {
    align-self: flex-start;
  }

  /* Inquiry */
  .inquiry-types-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .inquiry-form-card {
    padding: 24px 18px;
  }

  .inquiry-search-bar {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .inquiry-search-bar input {
    width: 100%;
    font-size: 16px !important;
  }

  .inquiry-search-bar button {
    width: 100%;
    justify-content: center;
    height: 48px;
    border-radius: var(--radius-md);
  }

  .portal-container {
    padding: 28px 0 54px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. STANDARD MOBILE PHONES (max-width: 576px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
  .portal-hero {
    padding: 85px 0 28px;
  }

  .portal-hero-title {
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  .breadcrumb-nav {
    font-size: 0.76rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Requirements */
  .req-service-card {
    padding: 18px 14px;
  }

  .req-card-title {
    font-size: 1.1rem;
  }

  /* Service Details */
  .service-panel-header {
    padding: 18px 14px;
  }

  .details-tab-content {
    padding: 18px 12px;
  }

  .details-tab-btn {
    padding: 10px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .details-tab-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Inputs prevent iOS auto-zoom */
  .form-control,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 46px;
  }

  /* Wizard */
  .wizard-progress-card {
    padding: 10px 8px;
  }

  .wizard-progress-title {
    font-size: 0.76rem;
  }

  .wizard-progress-percent {
    font-size: 0.78rem;
  }

  .wizard-main-card {
    padding: 14px 10px;
    border-radius: 12px;
  }

  .step-panel-title {
    font-size: 1.05rem;
  }

  .wizard-step-item {
    padding: 5px 8px;
    font-size: 0.7rem;
    gap: 5px;
  }

  .wizard-step-num-bubble {
    width: 18px;
    height: 18px;
    font-size: 0.66rem;
  }

  .btn-wizard-prev {
    min-width: 68px !important;
    padding: 0 8px !important;
    font-size: 0.78rem !important;
    height: 38px !important;
  }

  .btn-wizard-next {
    padding: 0 8px !important;
    font-size: 0.78rem !important;
    height: 38px !important;
  }

  .btn-wizard-submit {
    height: 40px !important;
    font-size: 0.84rem !important;
  }

  .face-preview-circle {
    width: 80px;
    height: 80px;
  }

  .face-preview-circle svg {
    width: 32px;
    height: 32px;
  }

  .details-tab-btn {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .form-nav-actions .btn-primary,
  .form-nav-actions .btn-outline {
    font-size: 0.84rem;
    padding: 10px 12px;
    height: 42px;
  }

  .portal-container {
    padding: 14px 0 32px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. TOUCH DEVICE ENHANCEMENTS (pointer: coarse)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) {
  .cursor-glow {
    display: none !important;
  }

  .req-service-card:hover,
  .inquiry-type-card:hover,
  .details-tab-btn:hover {
    transform: none !important;
  }

  button,
  .btn-primary,
  .btn-gold,
  .btn-outline,
  .btn-outline-white,
  .details-tab-btn {
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. ACCESSIBILITY & REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   STACKED SERVICE DETAILS CARDS SYSTEM (NO TABS)
   Mobile-Optimized: Zero Horizontal Scroll & Responsive Scaling
   ═══════════════════════════════════════════════════════════════ */

.service-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Service Overview Header Card */
.service-overview-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--navy-500);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.service-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}

.service-main-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-800);
  margin: 6px 0 10px;
  line-height: 1.3;
}

.service-overview-text {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0;
}

.service-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
  min-width: 0;
}

.quick-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.quick-nav-chip:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 18, 88, 0.15);
}

/* Individual Section Cards */
.service-section-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.service-section-card:hover {
  border-color: var(--navy-300);
  box-shadow: var(--shadow-md);
}

.section-card-header {
  padding: 22px 28px;
  background: linear-gradient(to bottom, #ffffff, var(--gray-50));
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.section-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-500));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(28, 18, 88, 0.15);
}

.section-card-icon svg {
  width: 22px;
  height: 22px;
}

.section-card-title-group {
  flex: 1;
  min-width: 0;
}

.section-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-800);
  margin: 0 0 4px;
  line-height: 1.35;
}

.section-card-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

.section-card-body {
  padding: 24px 28px;
  min-width: 0;
  box-sizing: border-box;
}

/* ── UNIFIED CARD GRIDS (Computer & Mobile) ────────────────────────── */
.fields-cards-grid,
.mobile-fields-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.field-card-item,
.mobile-field-item {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
}

.field-card-item:hover,
.mobile-field-item:hover {
  background: #ffffff;
  border-color: var(--navy-400);
  box-shadow: 0 4px 16px rgba(28, 18, 88, 0.08);
  transform: translateY(-2px);
}

.field-card-header,
.mobile-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.field-card-name,
.mobile-field-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.4;
  word-break: break-word;
}

.field-card-hint,
.mobile-field-hint {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
}

/* Documents Cards Grid */
.docs-cards-grid,
.mobile-docs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.doc-card-item,
.mobile-doc-item {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
}

.doc-card-item.full-span {
  grid-column: 1 / -1;
}

.doc-card-item:hover,
.mobile-doc-item:hover {
  background: #ffffff;
  border-color: var(--navy-400);
  box-shadow: 0 4px 16px rgba(28, 18, 88, 0.08);
  transform: translateY(-2px);
}

.doc-card-header,
.mobile-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.doc-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-800);
  font-weight: 800;
  flex: 1;
  min-width: 0;
}

.doc-card-title-wrap svg {
  color: var(--navy-500);
  flex-shrink: 0;
}

.doc-card-title,
.mobile-doc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.4;
  word-break: break-word;
}

.doc-card-desc,
.mobile-doc-desc {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
}

/* Fee Cards Grid (3 Columns on Desktop) */
.fee-cards-grid,
.mobile-fee-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

.fee-card-item,
.mobile-fee-card {
  background: linear-gradient(to bottom, #ffffff, var(--gray-50));
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
}

.fee-card-item:hover,
.mobile-fee-card:hover {
  transform: translateY(-3px);
  border-color: var(--navy-400);
  box-shadow: 0 8px 24px rgba(28, 18, 88, 0.1);
}

.fee-card-item.featured,
.mobile-fee-card.featured {
  border-color: var(--navy-500);
  background: linear-gradient(135deg, rgba(76, 51, 200, 0.05), rgba(201, 168, 76, 0.05));
  box-shadow: 0 4px 20px rgba(76, 51, 200, 0.12);
  position: relative;
}

.fee-card-item.featured::before,
.mobile-fee-card.featured::before {
  content: 'الفئة الأكثر طلباً';
  position: absolute;
  top: -11px;
  left: 18px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-500));
  color: var(--gold-300);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fee-card-header,
.mobile-fee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 12px;
  gap: 8px;
  min-width: 0;
}

.fee-card-category,
.mobile-fee-category {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.4;
  word-break: break-word;
}

.fee-card-validity,
.mobile-fee-validity {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-600);
  background: rgba(201, 168, 76, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.fee-card-prices,
.mobile-fee-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.fee-price-box,
.mobile-fee-price-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  min-width: 0;
  transition: var(--transition);
}

.fee-card-item:hover .fee-price-box,
.mobile-fee-card:hover .mobile-fee-price-box {
  border-color: var(--gray-300);
}

.fee-price-label,
.mobile-fee-price-label {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-bottom: 4px;
  font-weight: 600;
}

.fee-price-val,
.mobile-fee-price-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--navy-800);
  white-space: nowrap;
}

.payment-channels-box {
  margin-top: 24px;
  background: var(--gray-50);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  min-width: 0;
  box-sizing: border-box;
}

.payment-channels-box h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-800);
  margin: 0 0 8px 0;
}

.payment-channels-box p {
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
  word-break: break-word;
}

/* ── RESPONSIVE MOBILE OVERRIDES FOR STACKED CARDS ───────────── */
@media (max-width: 768px) {
  .service-cards-stack {
    gap: 16px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .service-overview-card {
    padding: 16px 14px;
    gap: 14px;
    border-radius: var(--radius-lg);
  }

  .service-main-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 4px 0 8px;
  }

  .service-overview-text {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .service-overview-cta {
    width: 100%;
  }

  .service-overview-cta .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 11px 18px;
  }

  .service-quick-nav {
    gap: 6px;
    padding-top: 12px;
  }

  .quick-nav-chip {
    padding: 6px 11px;
    font-size: 0.74rem;
    gap: 5px;
  }

  .service-section-card {
    border-radius: var(--radius-lg);
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-card-header {
    padding: 14px 14px;
    gap: 12px;
  }

  .section-card-icon {
    width: 36px;
    height: 36px;
  }

  .section-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .section-card-title {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .section-card-desc {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .section-card-body {
    padding: 14px 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Responsive cards grids on phones (single column) */
  .fields-cards-grid,
  .docs-cards-grid,
  .mobile-fields-list,
  .mobile-docs-list {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .doc-card-item.full-span {
    grid-column: auto !important;
  }

  .fee-cards-grid,
  .mobile-fee-cards {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .field-card-item,
  .doc-card-item,
  .mobile-field-item,
  .mobile-doc-item {
    padding: 10px 12px;
    gap: 5px;
  }

  .field-card-name,
  .doc-card-title,
  .mobile-field-name,
  .mobile-doc-title {
    font-size: 0.82rem;
  }

  .field-card-hint,
  .doc-card-desc,
  .mobile-field-hint,
  .mobile-doc-desc {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .status-badge {
    padding: 2px 8px;
    font-size: 0.68rem;
  }

  /* Process Flow Steps on Mobile */
  .process-flow-track {
    gap: 12px;
    padding: 4px 0;
  }

  .flow-step-card-modern {
    padding: 14px 12px;
    gap: 12px;
  }

  .flow-step-num {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .flow-step-body h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .flow-step-body p {
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0;
  }

  .flow-step-meta {
    font-size: 0.72rem;
    margin-top: 6px;
  }

  /* Fee cards on mobile */
  .fee-card-item,
  .mobile-fee-card {
    padding: 12px;
    gap: 10px;
  }

  .fee-card-category,
  .mobile-fee-category {
    font-size: 0.84rem;
  }

  .fee-card-validity,
  .mobile-fee-validity {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  .fee-card-prices,
  .mobile-fee-prices {
    gap: 6px;
  }

  .fee-price-box,
  .mobile-fee-price-box {
    padding: 6px 8px;
  }

  .fee-price-label,
  .mobile-fee-price-label {
    font-size: 0.68rem;
  }

  .fee-price-val,
  .mobile-fee-price-val {
    font-size: 0.82rem;
  }

  .payment-channels-box {
    padding: 12px 14px;
    margin-top: 14px;
  }

  .payment-channels-box h4 {
    font-size: 0.84rem;
  }

  .payment-channels-box p {
    font-size: 0.76rem;
    line-height: 1.6;
  }
}

/* Ultra small devices (max-width: 400px down to 320px) */
@media (max-width: 400px) {
  .section-card-header {
    padding: 12px 10px;
    gap: 10px;
  }

  .section-card-title {
    font-size: 0.9rem;
  }

  .section-card-desc {
    font-size: 0.74rem;
  }

  .section-card-body {
    padding: 12px 8px;
  }

  .mobile-milestone-node {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.68rem !important;
  }

  .milestone-connector {
    margin: 0 1px !important;
  }

  .mobile-stage-title {
    font-size: 0.84rem !important;
  }

  .fee-card-prices,
  .mobile-fee-prices {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .flow-step-card-modern {
    padding: 12px 10px;
    gap: 10px;
  }

  .flow-step-num {
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
  }
}
