/* ==========================================================================
   HUBPORTEL.STORE — PREMIUM USER PANEL DESIGN SYSTEM
   Modern, Professional, Mobile-First SaaS Layout with Light & Dark Modes
   ========================================================================== */

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

/* ─── 1. DESIGN TOKENS & CSS VARIABLES ───────────────────────────────────── */
:root {
  /* Brand Palette */
  --primary:        #2563eb;
  --primary-hover:  #1d4ed8;
  --primary-light:  #eff6ff;
  --primary-border: #bfdbfe;
  --primary-glow:   rgba(37, 99, 235, 0.22);
  
  --brand-navy:     #0f172a;
  --brand-blue:     #1e40af;
  --brand-accent:   #3b82f6;

  /* Status Colors */
  --success:        #10b981;
  --success-bg:     #ecfdf5;
  --success-border: #a7f3d0;

  --warning:        #f59e0b;
  --warning-bg:     #fffbeb;
  --warning-border: #fde68a;

  --danger:         #ef4444;
  --danger-bg:      #fef2f2;
  --danger-border:  #fecaca;

  --info:           #0284c7;
  --info-bg:        #f0f9ff;
  --info-border:    #bae6fd;

  --purple:         #8b5cf6;
  --purple-bg:      #f5f3ff;
  --purple-border:  #ddd6fe;

  /* Light Theme Surfaces */
  --bg-app:         #f8fafc;
  --bg-surface:     #ffffff;
  --bg-surface-sub: #f1f5f9;
  --bg-input:       #f8fafc;
  --border-color:   #e2e8f0;
  --border-light:   #f1f5f9;

  /* Typography */
  --text-main:      #0f172a;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --text-inverse:   #ffffff;

  /* Shapes & Shadows */
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-pill:    9999px;

  --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card:    0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover:   0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-modal:   0 24px 48px -12px rgba(15, 23, 42, 0.25);
  --shadow-btn:     0 4px 14px rgba(37, 99, 235, 0.28);

  /* Layout Dimensions */
  --sidebar-w:      270px;
  --header-h:       68px;
  --mobile-nav-h:   68px;
  --transition:     0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 2. DARK THEME OVERRIDES ────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-app:         #090d16;
  --bg-surface:     #111827;
  --bg-surface-sub: #1f2937;
  --bg-input:       #172033;
  --border-color:   #2d3748;
  --border-light:   #1e293b;

  --text-main:      #f8fafc;
  --text-muted:     #94a3b8;
  --text-light:     #64748b;

  --primary-light:  rgba(37, 99, 235, 0.15);
  --primary-border: rgba(37, 99, 235, 0.35);

  --success-bg:     rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);

  --warning-bg:     rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.3);

  --danger-bg:      rgba(239, 68, 68, 0.12);
  --danger-border:  rgba(239, 68, 68, 0.3);

  --purple-bg:      rgba(139, 92, 246, 0.12);
  --purple-border:  rgba(139, 92, 246, 0.3);

  --shadow-card:    0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover:   0 12px 32px rgba(0, 0, 0, 0.6);
}

/* ─── 3. GLOBAL RESET & BASE STYLES ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ─── 4. APP LAYOUT STRUCTURE ────────────────────────────────────────────── */
#app-root {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ─── DESKTOP SIDEBAR ────────────────────────────────────────────────────── */
.app-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.sidebar-header {
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.brand-name span {
  color: var(--primary);
}

.brand-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 12px 6px;
}

.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.nav-link-btn:hover {
  background: var(--bg-surface-sub);
  color: var(--text-main);
}

.nav-link-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.nav-link-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3.5px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.nav-badge.danger {
  background: var(--danger);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.user-quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-sub);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--brand-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-info-text {
  flex: 1;
  min-width: 0;
}

.user-name-line {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-phone-line {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ─── MAIN CONTENT CONTAINER ─────────────────────────────────────────────── */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
  position: relative;
}

/* ─── TOP HEADER BAR ─────────────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

[data-theme="dark"] .app-header {
  background: rgba(17, 24, 39, 0.85);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 520px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

.header-search-wrap {
  position: relative;
  width: 100%;
}

.header-search-input {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 42px;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition);
}

.header-search-input:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 15px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-toggle-wrap {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-toggle-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Action Icon Buttons */
.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-sub);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}

.header-action-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.action-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 1.5px solid var(--bg-surface);
}

.header-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ─── PAGE CONTENT CONTAINER ─────────────────────────────────────────────── */
.page-container {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── 5. CARDS & GRID SYSTEMS ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon-wrap.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon-wrap.green  { background: var(--success-bg); color: var(--success); }
.stat-icon-wrap.amber  { background: var(--warning-bg); color: var(--warning); }
.stat-icon-wrap.purple { background: var(--purple-bg); color: var(--purple); }
.stat-icon-wrap.red    { background: var(--danger-bg); color: var(--danger); }

.stat-data {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── ACTION REQUIRED ALERT BANNER ───────────────────────────────────────── */
.alert-action-required {
  background: var(--danger-bg);
  border: 1.5px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
}

.alert-action-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.alert-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.alert-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
}

.alert-text {
  font-size: 13px;
  color: var(--text-main);
  margin-top: 2px;
}

/* ─── SECTION CARDS & TABLES ─────────────────────────────────────────────── */
.card-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

/* Table Design */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: var(--bg-surface-sub);
}

/* ─── STATUS BADGES ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.new,
.status-badge.submitted {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.status-badge.processing,
.status-badge.under_review {
  background: var(--warning-bg);
  color: #b45309;
  border: 1px solid var(--warning-border);
}

.status-badge.completed,
.status-badge.verified,
.status-badge.paid {
  background: var(--success-bg);
  color: #047857;
  border: 1px solid var(--success-border);
}

.status-badge.rejected,
.status-badge.failed {
  background: var(--danger-bg);
  color: #b91c1c;
  border: 1px solid var(--danger-border);
}

.status-badge.documents_pending,
.status-badge.waiting_verification {
  background: var(--purple-bg);
  color: #6d28d9;
  border: 1px solid var(--purple-border);
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-surface-sub);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: #dc2626;
}

/* ─── 6. SERVICES MARKETPLACE CARDS ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-border);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), var(--bg-surface-sub));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}

.service-card-meta {
  flex: 1;
}

.service-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.service-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.service-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
  flex: 1;
}

.service-specs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface-sub);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 12.5px;
}

.service-spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.spec-val {
  font-weight: 700;
  color: var(--text-main);
}

.service-price-tag {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

/* Category Filter Tabs */
.category-tabs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.cat-tab-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.cat-tab-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-tab-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ─── 7. MULTI-STEP APPLICATION WIZARD ───────────────────────────────────── */
.wizard-container {
  max-width: 820px;
  margin: 0 auto;
}

.wizard-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 36px;
}

.wizard-steps-nav::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2.5px;
  background: var(--border-color);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.wizard-step-node.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.wizard-step-node.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-title-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.wizard-step-node.active .step-title-text {
  color: var(--primary);
  font-weight: 700;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.form-label .req {
  color: var(--danger);
  margin-left: 2px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  outline: none;
  font-size: 14px;
  transition: all var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Drag & Drop Upload Zone */
.upload-dropzone {
  border: 2px dashed var(--primary-border);
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-dropzone:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary);
}

.upload-icon {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 8px;
}

.upload-primary-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.upload-sub-text {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.doc-upload-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-surface-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.doc-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-type-icon {
  font-size: 24px;
  color: var(--primary);
}

/* ─── 8. APPLICATION TIMELINE ────────────────────────────────────────────── */
.timeline-list {
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 10px;
  width: 2.5px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.timeline-item.done .timeline-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.timeline-item.active .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  color: #fff;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.timeline-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── 9. SUCCESS CONFIRMATION SCREEN ─────────────────────────────────────── */
.success-box {
  text-align: center;
  max-width: 580px;
  margin: 40px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 42px 32px;
  box-shadow: var(--shadow-card);
}

.success-check-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.success-app-id-banner {
  background: var(--bg-surface-sub);
  border: 1.5px dashed var(--primary-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-id-display {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  font-family: 'Outfit', sans-serif;
}

/* ─── 10. MODAL DIALOGS ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  transform: scale(0.96);
  transition: transform var(--transition);
  overflow: hidden;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-surface-sub);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ─── 11. TOAST NOTIFICATIONS ────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: var(--brand-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideUp 0.25s ease;
}

.toast-item.success { background: #065f46; border: 1px solid #059669; }
.toast-item.error   { background: #991b1b; border: 1px solid #dc2626; }
.toast-item.warning { background: #92400e; border: 1px solid #d97706; }

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

/* ─── 12. MOBILE BOTTOM NAVIGATION BAR ───────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-h);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  z-index: 110;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.bottom-nav-tabs {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.bottom-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.bottom-tab-btn .tab-icon {
  font-size: 20px;
  line-height: 1;
}

.bottom-tab-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.bottom-tab-btn.active .tab-icon {
  transform: scale(1.1);
}

/* ─── 13. RESPONSIVE MEDIA QUERIES ───────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 0px;
  }

  .app-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 115;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .page-container {
    padding: 20px 16px;
    padding-bottom: calc(var(--mobile-nav-h) + 24px);
  }

  .mobile-bottom-nav {
    display: block;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 0 16px;
  }

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

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

  .wizard-steps-nav .step-title-text {
    display: none;
  }
}
