* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 20%),
    linear-gradient(180deg, #071120 0%, #0b172a 100%);
  color: #e5eefc;
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background: rgba(6, 14, 28, 0.9);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.brand h2 {
  margin: 0;
  font-size: 22px;
  color: white;
}

.brand p {
  margin: 4px 0 0;
  color: #8da3c1;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 10px;
  flex: 1;
}

.nav-link {
  text-decoration: none;
  color: #b8c7dd;
  padding: 12px 14px;
  border-radius: 14px;
  transition: 0.2s ease;
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(59, 130, 246, 0.14);
  color: white;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8c7dd;
  font-size: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f87171;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.15);
  cursor: pointer;
  transition: 0.2s ease;
  width: 100%;
  text-align: left;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

.main-content {
  padding: 32px 24px 50px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.topbar {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #7fb3ff;
}

.topbar h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  color: #fff;
}

.subtitle {
  margin-top: 10px;
  max-width: 850px;
  color: #9fb3cf;
  font-size: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card,
.panel {
  background: rgba(10, 20, 40, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.stat-card {
  padding: 20px;
}

.stat-card p {
  margin: 0 0 10px;
  color: #8da3c1;
  font-size: 14px;
}

.stat-card h3 {
  margin: 0;
  font-size: 28px;
  color: #fff;
}

.net-pay {
  color: #34d399;
}

.panel {
  padding: 24px;
}

.panel-header h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 26px;
}

.panel-header p {
  margin: 0 0 18px;
  color: #8da3c1;
  font-size: 14px;
}

.chart-panel {
  margin-bottom: 22px;
}

.chart-wrap {
  background: rgba(14, 27, 51, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 18px;
  height: 340px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  color: #b9c9df;
  font-weight: 600;
}

.field-hint {
  font-size: 12px;
  color: #6a88aa;
  margin-top: 2px;
}

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

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(14, 27, 51, 0.95);
  color: #f8fbff;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

input::placeholder {
  color: #7f95b3;
}

input:focus,
select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

input.error-field,
select.error-field {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.action-btn,
.delete-btn,
.edit-btn {
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.18s ease;
}

.primary-btn {
  padding: 15px 18px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

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

.secondary-btn {
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e4f5;
  font-weight: 600;
  display: none;
}

.secondary-btn.show {
  display: inline-block;
}

.danger-btn {
  padding: 15px 18px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-weight: 600;
}

.danger-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}

.summary-empty {
  padding: 20px;
  border-radius: 18px;
  background: rgba(14, 27, 51, 0.7);
  color: #8da3c1;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  line-height: 1.6;
}

.summary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 35, 66, 0.95), rgba(11, 22, 42, 0.95));
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.summary-name {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.summary-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-item span {
  display: block;
  font-size: 13px;
  color: #8da3c1;
  margin-bottom: 6px;
}

.summary-item strong {
  font-size: 18px;
  color: white;
}

.report-list {
  display: grid;
  gap: 14px;
}

.report-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(14, 27, 51, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.report-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.report-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.report-date {
  font-size: 13px;
  color: #8da3c1;
}

.report-period {
  font-size: 12px;
  color: #6a88aa;
  margin-top: 3px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.report-metric {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.report-metric span {
  display: block;
  color: #8da3c1;
  font-size: 12px;
  margin-bottom: 5px;
}

.report-metric strong {
  color: white;
  font-size: 16px;
}

.search-row {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-row input,
.search-row select {
  flex: 1;
  min-width: 160px;
}

.export-btn {
  padding: 12px 18px;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  transition: 0.18s ease;
  white-space: nowrap;
}

.export-btn:hover {
  background: rgba(16, 185, 129, 0.22);
}

.table-wrap {
  overflow-x: auto;
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
}

.employee-table th,
.employee-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.employee-table th {
  color: #8da3c1;
  font-size: 13px;
  font-weight: 700;
}

.employee-table td {
  color: #e8f0fb;
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.hourly {
  background: rgba(59, 130, 246, 0.16);
  color: #7cc2ff;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge.salary {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-btn,
.delete-btn {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.edit-btn {
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
}

.delete-btn {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}

.pagination-info {
  color: #8da3c1;
  font-size: 13px;
}

.pagination-btns {
  display: flex;
  gap: 8px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(14, 27, 51, 0.95);
  color: #b8c7dd;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: 0.18s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.4);
  color: white;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 14px;
  color: white;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  animation: slideIn 0.25s ease;
}

.toast.success {
  background: linear-gradient(135deg, #059669, #10b981);
}

.toast.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

@keyframes slideIn {
  from {
    transform: translateX(18px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9998;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: rgba(10, 20, 40, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
  color: white;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #cfe0f7;
  font-size: 28px;
  cursor: pointer;
}

/* Settings page */
.settings-section {
  margin-bottom: 28px;
}

.settings-section h3 {
  color: #7fb3ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(14, 27, 51, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 20px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.user-details p {
  margin: 0;
  font-size: 14px;
  color: #8da3c1;
}

.user-details strong {
  color: white;
  font-size: 15px;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 20, 40, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

.login-card h1 {
  margin: 12px 0 10px;
  color: white;
}

.login-card .subtitle {
  color: #9fb3cf;
  margin-bottom: 28px;
  max-width: 100%;
}

.login-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
}

.login-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: inline-grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
}

.login-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 14px;
  text-align: left;
  display: none;
  margin-bottom: 16px;
}

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

/* Responsive */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, canvas {
  max-width: 100%;
  display: block;
}

.panel,
.stat-card,
.chart-panel,
.table-wrap,
.report-item,
.summary-card,
.modal-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.stats-grid,
.main-grid {
  width: 100%;
  max-width: 100%;
}

.employee-table {
  width: 100%;
}

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

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

  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 768px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .brand {
    margin-bottom: 12px;
  }

  .nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .logout-btn {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    padding: 16px;
  }

  .topbar h1 {
    font-size: 30px;
  }

  .subtitle {
    font-size: 14px;
  }

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

  .main-grid,
  .summary-grid,
  .report-metrics,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panel,
  .stat-card {
    padding: 16px;
    border-radius: 18px;
  }

  .chart-wrap {
    height: 260px;
    padding: 12px;
  }

  .button-row,
  .action-group,
  .report-top {
    flex-direction: column;
  }

  .employee-table th,
  .employee-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}

.onboarding-panel {
  margin-bottom: 22px;
}

.onboarding-steps {
  display: grid;
  gap: 14px;
}

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: 0.2s ease;
}

.onboarding-step h3 {
  margin: 0 0 6px;
  color: white;
  font-size: 16px;
}

.onboarding-step p {
  margin: 0;
  color: #9fb3cf;
  font-size: 14px;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.15);
  color: #7cc2ff;
  border: 1px solid rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.onboarding-step.completed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.onboarding-step.completed .step-number {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.hidden {
  display: none !important;
}

button:focus,
input:focus,
select:focus,
a:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.stat-card,
.panel,
.report-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover,
.panel:hover,
.report-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

/* ═══════════════════════════════════════════════════════
   HOMEPAGE (index.html)
═══════════════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(7, 17, 32, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  color: white;
}

.site-nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.site-nav-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
}

.hp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: #7fb3ff;
  margin-bottom: 32px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hp-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.hp-hero-title {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: white;
  letter-spacing: -1.5px;
}

.hp-gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-subtitle {
  margin: 0 0 40px;
  font-size: 19px;
  color: #8da3c1;
  max-width: 600px;
  line-height: 1.65;
}

.hp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}

.hp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
}

.hp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.13);
  color: #b8c7dd;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.hp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(148, 163, 184, 0.25);
  color: white;
}

.hp-stats-bar {
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(10, 20, 40, 0.5);
  backdrop-filter: blur(10px);
  padding: 0 24px;
}

.hp-stat-item {
  flex: 1;
  max-width: 220px;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(148, 163, 184, 0.13);
}

.hp-stat-item:last-child {
  border-right: none;
}

.hp-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin: 0 0 4px;
}

.hp-stat-lbl {
  font-size: 13px;
  color: #8da3c1;
  margin: 0;
}

.hp-features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
}

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

.hp-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7fb3ff;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hp-section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.hp-section-header p {
  margin: 0 auto;
  font-size: 17px;
  color: #8da3c1;
  max-width: 520px;
  line-height: 1.6;
}

.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.hp-feature-card {
  background: rgba(10, 20, 40, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.hp-feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: white;
  font-weight: 700;
}

.hp-feature-card p {
  margin: 0;
  font-size: 14px;
  color: #8da3c1;
  line-height: 1.65;
}

.hp-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.hp-icon-blue { background: rgba(37, 99, 235, 0.15); }
.hp-icon-green { background: rgba(16, 185, 129, 0.15); }
.hp-icon-purple { background: rgba(139, 92, 246, 0.15); }
.hp-icon-orange { background: rgba(245, 158, 11, 0.15); }

.hp-cta-section {
  max-width: 700px;
  margin: 0 auto 100px;
  padding: 0 24px;
  text-align: center;
}

.hp-cta-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 28px;
  padding: 52px 40px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hp-cta-card h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.hp-cta-card p {
  margin: 0;
  font-size: 16px;
  color: #9fb3cf;
  line-height: 1.6;
  max-width: 480px;
}

.hp-cta-credentials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  color: #7fb3ff;
  font-family: monospace;
}

.hp-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8da3c1;
  font-size: 13px;
}

.hp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #b8c7dd;
}

.hp-footer-brand-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE (login.html)
═══════════════════════════════════════════════════════ */

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  text-decoration: none;
  align-self: flex-start;
}

.login-brand-text h1 {
  margin: 0;
  font-size: 22px;
  color: white;
  font-weight: 700;
}

.login-brand-text p {
  margin: 3px 0 0;
  color: #8da3c1;
  font-size: 13px;
}

.login-card {
  width: 100%;
  background: rgba(10, 20, 40, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.login-heading {
  margin: 0 0 6px;
  font-size: 26px;
  color: white;
  font-weight: 700;
}

.login-subtitle {
  margin: 0 0 28px;
  color: #8da3c1;
  font-size: 14px;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 24px;
}

.demo-badge-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.demo-badge-text {
  flex: 1;
}

.demo-badge-text p {
  margin: 0;
  font-size: 13px;
  color: #7fb3ff;
  line-height: 1.5;
}

.demo-badge-text strong {
  color: #a5c8ff;
}

.use-demo-btn {
  margin-left: auto;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #7fb3ff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s ease;
  font-family: inherit;
}

.use-demo-btn:hover {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(96, 165, 250, 0.5);
  color: #bfdbfe;
}

.login-card .field {
  margin-bottom: 16px;
}

.login-error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: #fca5a5;
  margin-bottom: 16px;
  display: none;
}

.login-error-msg.visible {
  display: block;
}

.signin-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  margin-top: 4px;
}

.signin-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.signin-btn:active {
  transform: translateY(0);
}

.login-footer-link {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #6a88aa;
}

.login-footer-link a {
  color: #7fb3ff;
  text-decoration: none;
}

.login-footer-link a:hover {
  color: #bfdbfe;
}

/* ── Homepage & Login Responsive ── */
@media (max-width: 680px) {
  .site-nav { padding: 0 20px; }
  .hp-hero { padding: 60px 20px; }
  .hp-stats-bar { flex-wrap: wrap; }
  .hp-stat-item { border-right: none; border-bottom: 1px solid rgba(148, 163, 184, 0.13); max-width: 100%; }
  .hp-stat-item:last-child { border-bottom: none; }
  .hp-footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px 20px; }
  .hp-cta-card { padding: 36px 24px; }
  .login-brand { align-self: center; }
}
