/* Dark, professional design system for the applications portal */

:root {
  /* Brand Palette */
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --panel: #0f1a2f;
  --panel-soft: #111b33;
  --panel-hover: #1a2332;
  
  /* Typography */
  --text: #e5e7eb;
  --text-secondary: #cbd5e1;
  --muted: #9aa4b2;
  --muted-dark: #64748b;
  
  /* Primary Colors */
  --primary: #4f46e5;
  --primary-700: #4338ca;
  --primary-600: #7c3aed;
  --primary-light: #a5b4fc;
  
  /* Accent Colors */
  --accent: #22d3ee;
  --accent-500: #06b6d4;
  --accent-light: #67e8f9;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* UI Elements */
  --ring: rgba(79,70,229,0.45);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.12);
  --shadow: 0 12px 36px rgba(0,0,0,0.45);
  --card-shadow: 0 12px 30px rgba(2,6,23,0.45);
  --shadow-hover: 0 20px 40px rgba(2,6,23,0.6);
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background:
  radial-gradient(1200px 800px at 20% -10%, rgba(34,211,238,0.06), transparent 60%),
  radial-gradient(1000px 700px at 120% 10%, rgba(79,70,229,0.10), transparent 58%),
  var(--bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Enhanced Navigation */
.navbar { 
  position: fixed; 
  top: 0; 
  width: 100%; 
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px); 
  z-index: 1000; 
  transition: all 0.3s ease; 
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 var(--space-lg); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  height: 70px; 
}

.nav-logo img { 
  width: 40px; 
  height: 40px; 
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link { 
  text-decoration: none; 
  color: var(--muted); 
  font-weight: 500; 
  position: relative; 
  transition: all 0.2s ease;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.nav-link:hover { 
  color: var(--accent); 
  background: rgba(34, 211, 238, 0.1);
}

.nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.nav-link::after { 
  content: ''; 
  position: absolute; 
  bottom: -2px; 
  left: 50%; 
  width: 0; 
  height: 2px; 
  background: var(--accent); 
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after { 
  width: 80%; 
}

/* Active navigation state */
.nav-link.active {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.15);
}

.nav-link.active::after {
  width: 80%;
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-sm);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .nav-menu.show {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Buttons */
.btn { 
  padding: var(--space-md) var(--space-lg); 
  border: none; 
  border-radius: var(--radius); 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: inline-flex; 
  align-items: center; 
  gap: var(--space-sm); 
  font-size: var(--text-base);
  font-family: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

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

.btn-primary { 
  background: linear-gradient(135deg, var(--primary), var(--primary-700)); 
  color: #fff; 
  box-shadow: var(--shadow);
}

.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--panel-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline { 
  background: transparent; 
  color: var(--accent); 
  border: 2px solid var(--accent); 
}

.btn-outline:hover { 
  background: var(--accent); 
  color: var(--bg); 
  transform: translateY(-2px); 
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: #fff;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-error {
  background: var(--error);
  color: #fff;
}

.btn-error:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-large { 
  padding: var(--space-lg) var(--space-xl); 
  font-size: var(--text-lg);
}

.btn-small {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Button groups */
.btn-group {
  display: flex;
  gap: var(--space-sm);
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Cards & Panels */
.benefit-card, .module-category, .feature-item, .feature-category, .alert, .modal-content {
  background: linear-gradient(180deg, rgba(17,27,51,0.9), rgba(11,18,32,0.85));
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover, .module-category:hover, .feature-item:hover, .feature-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.benefit-card::before, .module-category::before, .feature-item::before, .feature-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.benefit-card:hover::before, .module-category:hover::before, .feature-item:hover::before, .feature-category:hover::before {
  opacity: 1;
}

/* Card variants */
.card-elevated {
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-hover);
}

.card-interactive {
  cursor: pointer;
  user-select: none;
}

.card-interactive:active {
  transform: translateY(0);
}

/* Sections */
.about-section, .features-comprehensive-section, .onboarding-section, .contact-section { background: var(--bg); padding: 80px 0 60px 0; }
.section-header { text-align:center; margin-bottom: 48px; }
.section-title { font-size: 2.2rem; font-weight: 800; background: linear-gradient(90deg, #60a5fa 30%, #7c3aed 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { color: #8aa3f8; font-size: 1.1rem; font-weight: 500; margin-top: 12px; }

/* Forms */
.form-group { margin-bottom: var(--space-lg); }
.form-group label { 
  color: var(--text-secondary); 
  display: block; 
  margin-bottom: var(--space-sm); 
  font-weight: 500;
  font-size: var(--text-sm);
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%; 
  padding: var(--space-md) var(--space-lg); 
  background: var(--panel); 
  color: var(--text); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  font-size: var(--text-base);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input::placeholder, 
.form-group textarea::placeholder { 
  color: var(--muted-dark); 
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus { 
  outline: none; 
  box-shadow: 0 0 0 3px var(--ring); 
  border-color: var(--primary);
  background: var(--panel-hover);
}

.form-group input:hover, 
.form-group textarea:hover, 
.form-group select:hover {
  border-color: var(--border-hover);
  background: var(--panel-hover);
}

/* Form validation states */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-group .error-message {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
}

.form-group .help-text {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
}

/* Timeline */
.process-timeline { position: relative; max-width: 900px; margin: 0 auto; }
.process-timeline::before { content:''; position:absolute; left: 30px; top:0; bottom:0; width:2px; background: linear-gradient(to bottom, #4f46e5, #22d3ee); }
.process-step { position: relative; margin-bottom: 50px; padding-left: 80px; }
.step-number { position:absolute; left:0; top:0; width: 54px; height:54px; background: linear-gradient(135deg, var(--primary), var(--primary-700)); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; box-shadow: var(--shadow); }
.step-content { background: linear-gradient(180deg, rgba(17,27,51,0.9), rgba(17,27,51,0.6)); padding: 26px; border-radius: 14px; border:1px solid var(--border); position:relative; }
.step-icon { position:absolute; top: 22px; right: 22px; width:42px; height:42px; background: rgba(79,70,229,0.12); border-radius: 10px; display:flex; align-items:center; justify-content:center; }
.step-icon i { color: var(--accent); }

/* Enhanced Footer */
.footer { 
  background: var(--bg); 
  color: var(--text); 
  padding: var(--space-3xl) 0 var(--space-lg); 
  border-top: 1px solid var(--border);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3,
.footer-section h4 {
  color: var(--accent);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.footer-section h3 {
  font-size: var(--text-xl);
}

.footer-section h4 {
  font-size: var(--text-lg);
}

.footer-section p {
  color: var(--muted);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.footer-section ul li i {
  margin-right: var(--space-sm);
  color: var(--primary);
  width: 16px;
}

.footer-bottom { 
  border-top: 1px solid var(--border); 
  text-align: center; 
  color: var(--muted); 
  padding-top: var(--space-md);
  font-size: var(--text-sm);
}

/* Flash messages */
.flash-messages {
  position: fixed;
  top: 80px;
  right: var(--space-lg);
  z-index: 1001;
  max-width: 400px;
}

.flash-messages .alert {
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow);
}

/* Enhanced Modals */
.modal { 
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.55); 
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content { 
  margin: 5% auto; 
  padding: var(--space-xl); 
  width: 90%; 
  max-width: 560px; 
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.modal-body {
  margin-bottom: var(--space-lg);
}

.modal-footer {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.close { 
  position: absolute; 
  right: var(--space-md); 
  top: var(--space-md); 
  font-size: var(--text-2xl); 
  cursor: pointer; 
  color: var(--muted); 
  background: none;
  border: none;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover { 
  color: var(--text); 
  background: rgba(255, 255, 255, 0.1);
}

/* Modal sizes */
.modal-sm .modal-content {
  max-width: 400px;
}

.modal-lg .modal-content {
  max-width: 800px;
}

.modal-xl .modal-content {
  max-width: 1200px;
}

/* Modal animations */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal.show .modal-content {
  animation: modalSlideIn 0.3s ease;
}

/* Utility */
.badge { 
  display: inline-block; 
  padding: var(--space-xs) var(--space-sm); 
  border-radius: 999px; 
  font-size: var(--text-xs); 
  font-weight: 500;
  background: rgba(79,70,229,0.15); 
  color: #cdd3ff; 
  border: 1px solid rgba(79,70,229,0.25); 
}

/* Enhanced Alerts */
.alert { 
  padding: var(--space-md); 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  background: var(--panel);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.alert-success {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.alert-success::before {
  background: var(--success);
}

.alert-warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.alert-warning::before {
  background: var(--warning);
}

.alert-error {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.alert-error::before {
  background: var(--error);
}

.alert-info {
  border-color: var(--info);
  background: rgba(59, 130, 246, 0.1);
}

.alert-info::before {
  background: var(--info);
}

.alert-dismissible {
  padding-right: var(--space-3xl);
}

.alert-close {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--text-lg);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.alert-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.notifications-panel .benefit-card ul { 
  list-style: none; 
  padding-left: 0; 
}

/* Enhanced Badges */
.badge-primary {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-light);
  border-color: rgba(79, 70, 229, 0.35);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

/* Enhanced Grids */
.benefits-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: var(--space-lg); 
}

.modules-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: var(--space-lg); 
}

/* Responsive grid variants */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive utilities */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid, .modules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacing utilities */
.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.pt-0 { padding-top: 0; }
.pt-xs { padding-top: var(--space-xs); }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-0 { padding-bottom: 0; }
.pb-xs { padding-bottom: var(--space-xs); }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

/* Text utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Accessibility and focus management */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.2);
    --border-hover: rgba(255, 255, 255, 0.3);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Status badges */
.status-badge { display:inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; border:1px solid var(--border); }
.status-pending_payment { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
.status-processing { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.35); color: #93c5fd; }
.status-sales_review { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); color: #a5b4fc; }
.status-tech_provisioning { background: rgba(14,165,233,0.15); border-color: rgba(14,165,233,0.35); color: #67e8f9; }
.status-approved { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #6ee7b7; }
.status-rejected { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); color: #fca5a5; }

/* Payment badges */
.payment-unpaid { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
.payment-proof_uploaded { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.35); color: #93c5fd; }
.payment-verified { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #6ee7b7; }
.payment-rejected { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); color: #fca5a5; }

/* Ticket badges */
.ticket-open { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); color: #a5b4fc; }
.ticket-pending { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.35); color: #93c5fd; }
.ticket-resolved { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #6ee7b7; }
.ticket-closed { background: rgba(55,65,81,0.25); border-color: rgba(55,65,81,0.45); color: #cbd5e1; }

/* Tables */
/* Enhanced Tables */
.table-app { 
  width: 100%; 
  border-collapse: collapse; 
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.table-app th, .table-app td { 
  padding: var(--space-md); 
  border-bottom: 1px solid var(--border); 
  text-align: left;
}

.table-app th { 
  font-weight: 600; 
  color: var(--text-secondary); 
  background: var(--panel);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-app td {
  color: var(--text);
  font-size: var(--text-sm);
}

.table-app tr:hover td { 
  background: var(--panel-hover); 
}

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

/* Table variants */
.table-striped tbody tr:nth-child(even) {
  background: rgba(17, 27, 51, 0.3);
}

.table-striped tbody tr:nth-child(even):hover {
  background: var(--panel-hover);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--border);
}

.table-compact th,
.table-compact td {
  padding: var(--space-sm);
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.table-responsive .table-app {
  box-shadow: none;
  min-width: 600px;
}

/* Active step styling */
.process-step p.active { color: #e2e8f0; font-weight: 600; }

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.login-header h1 {
    color: var(--text-primary);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-alpha);
}

.btn-full {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.login-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Dashboard Status Alert */
.dashboard .alert {
    margin-bottom: 2.5rem;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.dashboard .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.dashboard .alert h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard .alert p {
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1rem;
}

.dashboard .alert .btn {
    margin-top: 0.5rem;
    box-shadow: var(--shadow-md);
}

/* Dashboard Cards */
.benefit-card {
    background: linear-gradient(135deg, #0f1a2f 0%, #1a2332 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.8;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #0f1a2f 0%, #1e2a3a 100%);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-card h3 {
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.benefit-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
}

.benefit-card p {
    color: var(--text-secondary);
    margin: 1rem 0;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.benefit-card ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    z-index: 1;
}

.benefit-card li {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
}

.benefit-card li::before {
    content: '•';
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: -1.25rem;
}

.benefit-card .btn {
    margin-top: 2rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

/* Dashboard Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .benefit-card {
        padding: 2rem;
    }
    
    .dashboard .alert {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Enhanced Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    opacity: 0.3;
}

.status-badge.processing {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.pending_payment {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.approved {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.sales_review {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-badge.tech_provisioning {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Dashboard Section Header Enhancement */
.dashboard .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.dashboard .section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Restore original gradient styling */
.dashboard .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #60a5fa 30%, #7c3aed 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.dashboard .section-subtitle {
    color: #8aa3f8;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 12px;
    max-width: 600px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* Enhanced Button Styling */
.dashboard .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.dashboard .btn:hover::before {
    left: 100%;
}

.dashboard .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card Content Icons */
.benefit-card .card-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.benefit-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Documents Management Page */
.documents-overview {
    margin-bottom: 3rem;
}

.overview-card {
    background: linear-gradient(135deg, #0f1a2f 0%, #1a2332 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.8;
}

.overview-card h3 {
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.status-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.document-card {
    background: linear-gradient(135deg, #0f1a2f 0%, #1a2332 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.8;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(59, 130, 246, 0.3);
}

.document-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.document-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

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

.document-info h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.document-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.file-types, .max-size {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.required-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.document-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.filename {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
}

.file-size, .upload-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.upload-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.upload-form .form-group {
    margin-bottom: 1rem;
}

.upload-form input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.upload-form input[type="file"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-alpha);
}

.upload-form input[type="file"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .status-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .document-card {
        padding: 1.5rem;
    }
    
    .uploaded-file {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .file-actions {
        justify-content: center;
    }
}

/* File Input Styling for Payments Form */
.benefit-card input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    margin-top: 0.5rem;
}

.benefit-card input[type="file"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-alpha);
}

.benefit-card input[type="file"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.benefit-card input[type="file"]::-webkit-file-upload-button {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.benefit-card input[type="file"]::-webkit-file-upload-button:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.benefit-card input[type="file"]::file-selector-button {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.benefit-card input[type="file"]::file-selector-button:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}


