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

:root {
  --sidebar-width: 260px;
  --header-height: 60px;
  --bg-primary: #0c1929;
  --bg-sidebar: #0f1f35;
  --bg-content: #f5f7fa;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-sidebar: #94a3b8;
  --text-sidebar-active: #ffffff;
  --accent: #c41e3a;
  --accent-hover: #a01830;
  --accent-light: #fff5f5;
  --accent-glow: rgba(196,30,58,0.12);
  --teal: #e63946;
  --teal-light: #ffe0e3;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

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

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0c1929 0%, #0f2744 100%);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar-brand {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand h1 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand h1 .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(196,30,58,0.3);
}

.sidebar-brand span {
  font-size: 11px;
  color: var(--text-sidebar);
  display: block;
  margin-top: 6px;
  padding-left: 48px;
  letter-spacing: 0.3px;
}

.sidebar-nav {
  padding: 16px 10px;
  flex: 1;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(148,163,184,0.45);
  padding: 10px 14px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 3px;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(196,30,58,0.18) 0%, rgba(230,57,70,0.1) 100%);
  color: var(--text-sidebar-active);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, #c41e3a, #e63946);
  border-radius: 0 3px 3px 0;
}

.nav-item.active .nav-icon {
  color: #f87171;
}

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

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}

.sidebar-footer .status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 6px rgba(5,150,105,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(5,150,105,0.5); }
  50% { box-shadow: 0 0 12px rgba(5,150,105,0.8); }
}

.sidebar-footer span {
  font-size: 12px;
  color: var(--text-sidebar);
}

.main-area {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  height: var(--header-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.header-left h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover { color: var(--accent-hover); }

.breadcrumb .sep { color: #cbd5e1; }

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.content {
  padding: 32px 36px;
  flex: 1;
}

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

.page-title-row h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c41e3a, #e63946);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(196,30,58,0.15);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.kpi-card .kpi-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.kpi-card .kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.kpi-card .kpi-sub .up { color: var(--success); font-weight: 700; }
.kpi-card .kpi-sub .down { color: var(--danger); font-weight: 700; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.card-body {
  padding: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.1px;
}

.btn-primary {
  background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,30,58,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a01830 0%, #8b1528 100%);
  box-shadow: 0 4px 14px rgba(196,30,58,0.35);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #fca5a5;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

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

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-sm { padding: 7px 16px; font-size: 12px; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group .hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

input[type="file"] {
  display: none;
}

.file-drop {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.file-drop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(196,30,58,0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.file-drop:hover::before,
.file-drop.dragover::before {
  opacity: 1;
}

.file-drop:hover, .file-drop.dragover {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateY(-1px);
}

.file-drop.dragover {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(230,57,70,0.12);
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.file-drop-success {
  border-color: var(--success) !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
  border-style: solid !important;
}

.file-drop-success:hover {
  box-shadow: 0 0 0 4px rgba(5,150,105,0.1);
  transform: none;
}

.file-drop .drop-icon {
  font-size: 40px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.file-drop .drop-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.file-drop p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.file-drop .drop-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.file-drop .drop-sublabel {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.file-drop .file-types {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
  font-weight: 500;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.upload-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.upload-left,
.upload-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ecfdf5, #fff5f5);
  border: 1px solid #d1fae5;
  border-radius: var(--radius);
}

.file-info-icon {
  width: 38px;
  height: 38px;
  background: #d1fae5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  flex-shrink: 0;
}

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

.file-info-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-info-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
  font-weight: 500;
}

.file-info-remove {
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(220,38,38,0.08);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  flex-shrink: 0;
  transition: var(--transition);
}

.file-info-remove:hover {
  background: rgba(220,38,38,0.15);
}

.upload-validation {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  animation: slideInUp 0.3s ease;
}

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

.upload-validation-success {
  border: 1px solid #d1fae5;
  background: #ecfdf5;
}

.upload-validation-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.validation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

.upload-validation-success .validation-header { color: var(--success); }
.upload-validation-error .validation-header { color: var(--danger); }

.validation-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.validation-icon-success {
  background: #d1fae5;
  color: var(--success);
}

.validation-icon-error {
  background: #fecaca;
  color: var(--danger);
}

.validation-details {
  padding: 0 16px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.val-check {
  color: var(--success);
  font-weight: 600;
  margin-right: 2px;
}

.val-error-msg {
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 8px;
  font-size: 12.5px;
}

.val-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.val-col-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.val-col-ok {
  background: #d1fae5;
  color: var(--success);
}

.val-col-missing {
  background: #fecaca;
  color: var(--danger);
}

.val-found {
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.upload-config {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.upload-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.format-checklist {
  display: flex;
  flex-direction: column;
}

.format-item {
  display: grid;
  grid-template-columns: 130px 48px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
}

.format-item:last-child {
  border-bottom: none;
}

.format-col {
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 5px;
  display: inline-block;
  width: fit-content;
}

.format-type {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}

.format-desc {
  color: var(--text-secondary);
  font-size: 12px;
}

.preview-footer {
  text-align: center;
  padding-top: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .upload-layout {
    grid-template-columns: 1fr;
  }
}

.range-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-group input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #fecaca, #c41e3a);
  border-radius: 3px;
  outline: none;
}

.range-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(196,30,58,0.35);
  transition: var(--transition);
}

.range-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(196,30,58,0.45);
}

.range-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  min-width: 50px;
  text-align: right;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  background: #f8fafc;
}

.data-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #f1f5f9;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-muted { background: #f1f5f9; color: #64748b; }

.insight-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Inter', -apple-system, sans-serif;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  animation: overlayFadeIn 0.2s ease;
}

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

.loading-overlay.active {
  display: flex;
}

.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.35;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #0c1929, #1e293b);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 200;
  border: 1px solid rgba(255,255,255,0.08);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

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

  .menu-toggle {
    display: block;
  }

  .content {
    padding: 20px 16px;
  }

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

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

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .page-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c1929 0%, #162d50 40%, #0f2744 70%, #0c1929 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196,30,58,0.15) 0%, transparent 65%);
  top: -250px;
  right: -150px;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 65%);
  bottom: -200px;
  left: -150px;
  pointer-events: none;
}

.login-card {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  width: 100%;
  max-width: 440px;
  padding: 52px 44px 44px;
  position: relative;
  z-index: 1;
}

.login-brand {
  text-align: center;
  margin-bottom: 40px;
}

.login-brand .brand-icon-lg {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
}

.login-brand h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.login-brand p {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: #f8fafc;
  outline: none;
  transition: var(--transition);
}

.login-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: #fff;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.btn-login {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-login-primary {
  background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(196,30,58,0.3);
}

.btn-login-primary:hover {
  background: linear-gradient(135deg, #a01830 0%, #8b1528 100%);
  box-shadow: 0 5px 18px rgba(196,30,58,0.4);
  transform: translateY(-1px);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-login-demo {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-login-demo:hover {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.login-error {
  background: var(--danger-light);
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  display: none;
}

.login-error.show { display: block; }

.login-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-secondary);
}

.login-back-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.login-back-link:hover {
  color: var(--accent-hover);
}

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

.header-avatar:hover {
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: scale(1.05);
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
}

.user-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-header {
  padding: 16px 18px;
}

.user-menu-divider {
  height: 1px;
  background: var(--border-light);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.user-menu-item:hover {
  background: #f8fafc;
  color: var(--danger);
}

.user-menu-item svg { color: var(--text-secondary); }
.user-menu-item:hover svg { color: var(--danger); }

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.dash-timestamp {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
}

.kpi-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.kpi-card-exec {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 22px;
}

.kpi-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-blue {
  background: linear-gradient(135deg, #fff5f5, #fecaca);
  color: #c41e3a;
}

.kpi-icon-green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
}

.kpi-icon-teal {
  background: linear-gradient(135deg, #fff5f5, #ffe0e3);
  color: #e63946;
}

.kpi-icon-purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #7c3aed;
}

.kpi-content {
  flex: 1;
  min-width: 0;
}

.kpi-trend {
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}

.kpi-trend-up { color: var(--success); }
.kpi-trend-down { color: var(--danger); }
.kpi-trend-neutral { color: var(--warning); }

.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.dash-charts-col {
  min-width: 0;
}

.dash-insights-col {
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-secondary);
}

.card-badge-success {
  background: var(--success-light);
  color: #065f46;
}

.insight-card .card-body {
  max-height: 320px;
  overflow-y: auto;
}

.insight-text-compact {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  display: none;
}

.quick-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quick-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
}

.quick-stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-stat-item:first-child {
  padding-top: 0;
}

.quick-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.quick-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-sm {
  padding: 36px 20px;
}

.empty-state-sm h3 {
  font-size: 14px;
}

.empty-state-sm p {
  font-size: 12px;
}

@media (max-width: 1200px) {
  .dash-main-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kpi-grid-4 {
    grid-template-columns: 1fr;
  }
}

.ai-assistant-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 24px;
}

.ai-banner-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #c41e3a, #e63946);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.ai-banner-content {
  flex: 1;
}

.ai-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ai-banner-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.ai-banner-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  flex-shrink: 0;
}

.ai-status-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.insight-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.insight-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(12px);
}

.insight-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #fafbfd, #fff);
}

.insight-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-icon-blue {
  background: linear-gradient(135deg, #fff5f5, #fecaca);
  color: #c41e3a;
}

.insight-icon-teal {
  background: linear-gradient(135deg, #fff5f5, #ffe0e3);
  color: #e63946;
}

.insight-icon-green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
}

.insight-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.insight-section-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
  font-weight: 500;
}

.insight-section-body {
  padding: 22px 24px;
}

.insight-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.insight-bullet + .insight-bullet {
  border-top: 1px solid var(--border-light);
}

.bullet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.insight-section-recs .bullet-dot {
  background: var(--success);
}

.insight-section-meaning .bullet-dot {
  background: var(--teal);
}

.insight-bullet span:last-child {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-primary);
}

.insight-paragraph {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.insight-paragraph:last-child {
  margin-bottom: 0;
}

.insight-footer {
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--border-light);
  border-radius: var(--radius);
  text-align: center;
}

.insight-footer span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.ai-loading-animation {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}

.ai-loading-ring {
  position: absolute;
  inset: 0;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent);
  border-right-color: var(--teal);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.ai-loading-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-loading-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.typing-dots span {
  animation: typingDot 1.4s infinite;
  opacity: 0;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 20% { opacity: 0; }
  40% { opacity: 1; }
  60%, 100% { opacity: 0; }
}

.opt-modal-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(196,30,58,0.08);
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.opt-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 4px;
}

.opt-modal-header .ai-loading-animation {
  margin-bottom: 0;
  flex-shrink: 0;
}

.opt-modal-header .ai-loading-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.opt-modal-header .ai-loading-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.opt-progress {
  margin-top: 24px;
  width: 100%;
}

.opt-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.opt-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.4;
  transition: all 0.4s ease;
}

.opt-step.active {
  opacity: 1;
  color: var(--accent);
  font-weight: 600;
}

.opt-step.done {
  opacity: 1;
  color: #059669;
}

.opt-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.opt-step.active .opt-step-icon {
  background: var(--accent-light);
  color: var(--accent);
  animation: stepPulse 1.5s ease-in-out infinite;
}

.opt-step.done .opt-step-icon {
  background: #ecfdf5;
  color: #059669;
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,30,58,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(196,30,58,0); }
}

.opt-bar-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.opt-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #e63946);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  margin-top: auto;
}

.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.app-footer-brand .brand-icon-sm {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #c41e3a, #e63946);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-footer-text {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.landing-body {
  background: #ffffff;
  overflow-x: hidden;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
}

.landing-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.4px;
}

.landing-logo .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(196,30,58,0.25);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.landing-nav-links a:hover {
  color: var(--text-primary);
}

.hero {
  position: relative;
  padding: 140px 32px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(196,30,58,0.08) 0%, rgba(230,57,70,0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #fff5f5, #fff5f5);
  border: 1px solid #fecaca;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1e293b 0%, #c41e3a 50%, #e63946 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  border: none;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196,30,58,0.3), 0 1px 3px rgba(0,0,0,0.1);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,30,58,0.35), 0 2px 6px rgba(0,0,0,0.1);
}

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

.btn-hero-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 520px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #c41e3a, #e63946);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.features-section {
  padding: 80px 32px;
  background: var(--bg-content);
}

.features-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 480px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196,30,58,0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon-blue { background: linear-gradient(135deg, #fff5f5, #fecaca); color: #c41e3a; }
.feature-icon-teal { background: linear-gradient(135deg, #fff5f5, #ffe0e3); color: #e63946; }
.feature-icon-green { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.feature-icon-purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; }

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.how-section {
  padding: 80px 32px;
  background: #ffffff;
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.how-step {
  flex: 1;
  text-align: center;
  padding: 24px 20px;
}

.how-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c41e3a, #e63946);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(196,30,58,0.2);
}

.how-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.how-step p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.how-step-arrow {
  display: flex;
  align-items: center;
  padding-top: 36px;
  flex-shrink: 0;
}

.cta-section {
  padding: 80px 32px;
  background: linear-gradient(135deg, #0c1929 0%, #0f2744 100%);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 28px;
  font-weight: 500;
}

.landing-footer {
  background: #0c1929;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 32px;
}

.landing-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.brand-icon-sm {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #c41e3a, #e63946);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-footer-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.landing-footer-links {
  display: flex;
  gap: 20px;
}

.landing-footer-links a {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-footer-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { width: 60px; height: 1px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { flex-direction: column; gap: 8px; }
  .how-step-arrow { display: none; }
  .hero-actions { flex-direction: column; }
  .landing-footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .landing-nav-links a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

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