:root {
  --primary: #0e0459;
  --primary-dark: #150a75;
  --primary-light: #1e1299;
  --font-primary: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --glow-primary: rgba(14, 4, 89, 0.15);
}

[data-theme="dark"] {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-light: #0f172a;
  --bg-white: #1e293b;
  --border: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --glow-primary: rgba(99, 102, 241, 0.4);
}

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

body {
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-primary);
  min-height: 100vh;
}

body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: var(--font-primary);
}

a {
  color: inherit;
}

.bg-orb {
  display: none;
}

/* NEW: Background Patterns from Inspiration */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(circle at 20% 50%, rgba(14, 4, 89, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 40%),
    var(--bg-light);
}

.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(14, 4, 89, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 4, 89, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.topbar {
  background: color-mix(in srgb, var(--bg-white) 92%, transparent);
  padding: 12px 4%;
  border-radius: 0;
  margin: 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.topbar-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.topbar-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.topbar-collapsible {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-nav a,
.topbar-actions a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.25s ease;
}

.brand-rich {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 10px 20px var(--glow-primary);
}

.brand-text-wrap {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.topbar-nav a {
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 8px;
}

.topbar-nav a:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
}

.action-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px var(--glow-primary);
}

.action-chip.ghost {
  background: var(--bg-white);
  color: var(--text-secondary) !important;
  border: 1px solid var(--border);
  box-shadow: none;
}

.action-chip.admin {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: #111827 !important;
}

.action-chip:hover {
  transform: translateY(-1px);
}

.topbar-actions a.active,
.action-chip.active {
  color: var(--primary);
  font-weight: 700;
}

.topbar-actions .action-chip.active {
  background: var(--bg-white);
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  box-shadow: none;
}

.ghost-btn {
  border-radius: 999px;
  padding: 8px 12px;
}

.container {
  width: min(1180px, 92vw);
  margin: 100px auto 24px;
}

.glass {
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.hero,
.panel,
.card {
  border-radius: 16px;
  padding: 24px;
  animation: fadeIn 0.5s ease forwards;
}

.hero h1,
.panel h1,
.panel h2,
.card h3,
.page-title h1,
.section-title,
.kpi-value {
  font-family: "Space Grotesk", sans-serif;
}

.hero h1,
.panel h1,
.panel h2,
.card h3 {
  margin-bottom: 8px;
}

.hero p,
.panel p,
.card p {
  color: var(--text-secondary);
}

.label {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

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

.slim {
  max-width: 560px;
  margin: 36px auto;
}

.auth-wrap {
  max-width: 560px;
  margin: 36px auto;
}

.auth-hero {
  text-align: center;
  margin-bottom: 18px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.auth-card {
  border-radius: 20px;
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -30%;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 24%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.auth-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

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

.auth-field-wide {
  grid-column: span 1;
}

.btn-auth {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-light) 100%);
  box-shadow: 0 12px 24px var(--glow-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-auth::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px var(--glow-primary);
}

.btn-auth:hover::after {
  left: 130%;
}

.auth-footer {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.metric h2 {
  font-size: 32px;
  margin-top: 6px;
}

.btn,
button {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn.secondary,
.ghost-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: var(--bg-white);
  color: var(--text-primary);
}

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

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: var(--bg-white);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

.error {
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 10px;
}

.tiny {
  font-size: 12px;
  color: var(--text-muted);
}

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

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

th {
  text-align: left;
  padding: 14px 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background: color-mix(in srgb, var(--bg-light) 70%, transparent);
}

.users {
  list-style: none;
}

.users li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.users p {
  margin-top: 2px;
  color: var(--text-secondary);
}

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

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 24px 16px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 20px var(--glow-primary);
  z-index: 100;
  transition: transform 0.3s ease;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding: 0 12px;
}

.logo-icon {
  background: white;
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.logo-text {
  font-size: 18px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
margin: 4px 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  transition: height 0.3s ease;
}

.nav-item:hover::after, .nav-item.active::after {
  height: 100%;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateX(4px);
}

.user-section {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--warning);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.user-info h4 {
  font-size: 14px;
}

.user-info p {
  font-size: 12px;
  opacity: 0.7;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 24px;
  width: calc(100% - 260px);
  min-height: 100vh;
}

.top-bar {
  background: var(--bg-white);
  padding: 16px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.page-title h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.date-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: white;
  font-weight: 500;
}

.theme-toggle,
.mobile-menu-btn {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.kpi-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.kpi-title {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  transition: all 0.3s ease;
}

.kpi-card:hover .kpi-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transform: rotate(10deg) scale(1.1);
}

.kpi-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.kpi-trend {
  font-size: 13px;
  color: var(--success);
}

.table-section {
  background: var(--bg-white);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 600;
}

.view-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

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

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

.status-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.flash-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 600;
}

.flash-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.flash-error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.section-copy {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.dashboard-stack {
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-span-2 {
  grid-column: span 2;
}

.helper-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 16px;
  background: color-mix(in srgb, var(--bg-light) 82%, var(--bg-white));
}

.helper-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 4px;
}

.receipt-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px;
}

.brand-preview-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 18px;
}

.brand-preview-card.classic {
  background: linear-gradient(135deg, rgba(14, 4, 89, 0.1), rgba(14, 4, 89, 0.03));
}

.brand-preview-card.modern {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.12), rgba(251, 191, 36, 0.06));
}

.brand-preview-card.minimal {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.12), rgba(148, 163, 184, 0.08));
}

.brand-preview-top,
.brand-preview-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.brand-preview-top h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 8px 0 6px;
}

.brand-preview-top p,
.brand-preview-bottom p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.brand-logo-preview,
.brand-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
}

.analytics-grid.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-white);
}

.insight-card h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
}

.rank-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.rank-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.rank-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section-header-wrap {
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.search-form input {
  min-width: 300px;
}

.sales-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.sales-bar-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 10px;
  background: color-mix(in srgb, var(--bg-light) 84%, var(--bg-white));
  text-align: center;
}

.sales-bar-card strong,
.sales-bar-card span {
  display: block;
}

.sales-bar-card strong {
  margin-top: 10px;
}

.sales-bar-card span {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
}

.sales-bar-track {
  height: 140px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.sales-bar-fill {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  animation: barGrow 1.5s ease-out;
  transform-origin: bottom;
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 22px;
}

.marketing-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.06;
  margin: 16px 0;
}

.marketing-copy p {
  color: var(--text-secondary);
  max-width: 680px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-metrics div {
  padding: 16px;
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-metrics strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.hero-metrics span {
  color: var(--text-secondary);
  font-size: 13px;
}

.marketing-visual {
  position: relative;
}

.mock-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.mock-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.5);
}

.mock-panel {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid transparent;
}

.primary-panel {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tiny-caps {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
}

.mock-template-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mock-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.mock-card h4 {
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.mock-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.mock-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  margin-top: 18px;
}

.mock-line.short {
  width: 62%;
}

.accent-card {
  background: linear-gradient(180deg, rgba(14, 4, 89, 0.08), rgba(14, 4, 89, 0.02));
}

.accent-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.mini-bars {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 88px;
}

.mini-bars span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
}

.marketing-section {
  padding: 56px 0 12px;
}

.marketing-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.section-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.section-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 10px;
}

.marketing-grid-3,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.marketing-card,
.promise-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.marketing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.marketing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 4, 89, 0.12), rgba(14, 4, 89, 0.04));
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 30px var(--glow-primary);
}

.feature-title {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.75;
}

.contrast-section {
  background: linear-gradient(180deg, rgba(14, 4, 89, 0.04), rgba(14, 4, 89, 0.01));
  border-radius: 32px;
  padding: 32px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

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

.workflow-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.workflow-step span {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
}

.workflow-step h3,
.promise-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.workflow-step p,
.promise-card li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.promise-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(14, 4, 89, 0.92), rgba(30, 18, 153, 0.92));
  color: white;
}

.highlight-card li,
.highlight-card .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

.marketing-cta {
  margin: 56px 0 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(14, 4, 89, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

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

/* NEW: Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* NEW: Shimmer Loader */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 16px;
}

.skeleton-kpi {
  height: 32px;
  margin-bottom: 8px;
}

/* NEW: Live Indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--success);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* NEW: Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--success);
}

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

/* NEW: Hero Stats */
.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* NEW: Glass Card Enhancements */
.glass-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.glass-card-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.glass-card-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary);
}

/* NEW: Loader */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(14, 4, 89, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Premium SaaS Landing Page Styles - AI Theme */
.saas-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 48px;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0a1e 0%, #1a0e3a 50%, #0f0a1e 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.starfield {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 60px 70px, #fff, transparent),
    radial-gradient(1px 1px at 50px 50px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, white, transparent),
    radial-gradient(2px 2px at 90px 10px, #fff, transparent);
  background-size: 200px 200px;
  background-position: 0 0;
  animation: twinkle 5s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}

.gradient-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  top: -100px;
  right: -100px;
}

.gradient-orb.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #0e0459, #1e1299);
  bottom: -50px;
  left: -100px;
  animation-delay: 2s;
}

.gradient-orb.orb-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 30px;
  animation: slideDown 0.8s ease-out;
  backdrop-filter: blur(10px);
}

.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 20px 0 30px;
  animation: slideDown 0.8s ease-out 0.1s backwards;
  color: white;
  letter-spacing: -0.5px;
}

.highlight {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #c7d2fe;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
  animation: slideDown 0.8s ease-out 0.2s backwards;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: slideDown 0.8s ease-out 0.3s backwards;
  justify-content: center;
}

.cta-primary,
.cta-secondary {
  padding: 15px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-primary {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  color: white;
  box-shadow: 0 15px 35px rgba(167, 139, 250, 0.4);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(167, 139, 250, 0.5);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-trust {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.trust-brands {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  font-size: 14px;
  font-weight: 500;
  color: #e0e7ff;
}

.hero-product {
  position: relative;
  z-index: 1;
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

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

.product-window {
  display: none;
}

.product-header {
  background: var(--bg-light);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.product-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
}

.product-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1px;
}

.preview-section,
.preview-receipt {
  padding: 24px;
  border-right: 1px solid var(--border);
}

.preview-receipt {
  border-right: none;
  background: linear-gradient(135deg, rgba(14, 4, 89, 0.04), rgba(14, 4, 89, 0.02));
}

.preview-stat {
  margin-bottom: 20px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-primary);
  margin-top: 8px;
}

.preview-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  transition: opacity 0.3s ease;
}

.product-preview:hover .chart-bar {
  opacity: 0.7;
}

.product-preview:hover .chart-bar:hover {
  opacity: 1;
}

.receipt-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.receipt-line {
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  margin-bottom: 8px;
}

.receipt-line.short {
  width: 70%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.2);
}

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

.feature-card h3 {
  font-size: 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  margin: 16px 0 12px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.feature-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.gradient-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.08));
  color: var(--primary);
}

.gradient-icon.accent-2 {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.08));
  color: #f97316;
}

.gradient-icon.accent-3 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  color: #22c55e;
}

.dark-section {
  background: linear-gradient(180deg, rgba(14, 4, 89, 0.12), rgba(30, 18, 153, 0.08));
  border-radius: 32px;
  padding: 56px 48px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.workflow-container {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  flex-wrap: wrap;
}

.workflow-step-modern {
  flex: 1;
  min-width: 240px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 16px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  min-width: 30px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.1);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-author strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
}

.testimonial-author span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-preview {
  width: 100%;
  padding: 0 48px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.pricing-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.badge-featured {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  margin: 12px 0 4px;
}

.pricing-amount span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features i {
  color: var(--success);
  width: 18px;
}

.pricing-features .unavailable {
  color: var(--text-muted);
  opacity: 0.6;
}

.pricing-cta {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.pricing-cta:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-cta.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
}

.pricing-cta.primary:hover {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.benefit-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.08));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.benefit-item h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.marketing-cta-final {
  width: 100%;
  margin: 80px 0 0;
  padding: 60px 48px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
  border: none;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  text-align: center;
}

.marketing-cta-final h2 {
  font-size: 2.2rem;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 12px;
}

.marketing-cta-final p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

@media (max-width: 920px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .topbar-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-collapsible {
    display: none;
    width: 100%;
    order: 3;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-white) 94%, transparent);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .topbar-collapsible.active {
    display: flex;
  }

  .topbar-nav {
    justify-content: flex-start;
    width: 100%;
    order: 1;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    order: 2;
  }

  .brand-sub {
    display: none;
  }

  .grid-2,
  .grid-3,
  .marketing-hero,
  .split-layout,
  .marketing-grid-3,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .testimonials-grid,
  .benefits-grid,
  .pricing-cards,
  .workflow-container {
    padding: 0 24px;
  }

  .pricing-preview {
    padding: 0 24px;
  }

  .marketing-cta-final {
    padding: 48px 24px;
    margin: 60px 0 0;
  }

  .hero-metrics,
  .sales-bars,
  .analytics-grid.compact-grid,
  .form-grid,
  .mock-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    min-width: 0;
    width: 100%;
  }

  .marketing-cta,
  .brand-preview-top,
  .brand-preview-bottom {
    flex-direction: column;
  }
}

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

  .auth-field-wide {
    grid-column: span 1;
  }

  .auth-card {
    padding: 20px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

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

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

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 16px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .top-bar {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

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

  .hero-actions,
  .search-form {
    flex-direction: column;
  }

  .saas-hero {
    padding: 80px 20px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin: 20px 0 24px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-badge {
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-cta-group {
    gap: 12px;
  }

  .cta-primary,
  .cta-secondary {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .hero-trust {
    margin-top: 40px;
    padding-top: 30px;
  }

  .trust-brands {
    gap: 16px;
  }

  .trust-item {
    font-size: 13px;
  }

  .features-grid,
  .testimonials-grid,
  .benefits-grid,
  .pricing-cards {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .pricing-preview {
    padding: 0 20px;
  }

  .workflow-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .workflow-step-modern {
    min-width: 100%;
  }

  .step-arrow {
    transform: rotate(0deg);
    margin: -10px 0;
  }

  .trust-brands {
    flex-direction: column;
    gap: 12px;
  }

  .product-preview {
    grid-template-columns: 1fr;
  }

  .marketing-cta-final {
    padding: 40px 20px;
    margin: 60px 0 0;
    border-radius: 0;
  }

  .marketing-cta-final h2 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
  }
}

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

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.table-wrap table {
  min-width: 680px;
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .topbar-collapsible {
    padding: 8px;
    gap: 8px;
  }

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar-nav a {
    font-size: 0.83rem;
    padding: 6px 7px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .action-chip {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .container {
    width: min(1180px, 94vw);
    margin-top: 112px;
  }

  .hero,
  .panel,
  .card,
  .table-section {
    padding: 16px;
  }

  .page-title h1 {
    font-size: 1.15rem;
  }

  .page-title p {
    font-size: 0.8rem;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .date-badge {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .users li {
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-form .btn,
  .search-form button,
  .search-form input {
    width: 100%;
  }

  .dashboard-stack .row,
  .row {
    gap: 8px;
  }

  .top-bar {
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .main-content {
    padding: 12px;
  }

  .kpi-card {
    padding: 16px;
  }

  .kpi-value {
    font-size: 1.45rem;
  }
}

@media (max-width: 420px) {
  .container {
    margin-top: 148px;
  }

  .topbar {
    padding: 9px 10px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .topbar-nav a {
    font-size: 0.78rem;
    padding: 6px;
  }

  .action-chip {
    font-size: 0.74rem;
    padding: 6px 9px;
  }

  .auth-card,
  .slim,
  .table-section,
  .panel,
  .card {
    border-radius: 12px;
  }
}

/* ============================================
   MODERN SAAS ENHANCEMENTS
   ============================================ */

/* Shimmer/Skeleton Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton,
.loading-state {
  background: linear-gradient(
    90deg,
    var(--bg-light) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    var(--bg-light) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-heading {
  height: 24px;
  margin-bottom: 12px;
  width: 60%;
}

/* Smooth Scroll Reveal Animation */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: revealUp 0.6s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }
.reveal.delay-4 { animation-delay: 0.4s; }

/* Live Indicator with Blink */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 1s infinite;
  margin-right: 6px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

/* Bar Growth Animation */
@keyframes barGrow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

.bar-grow {
  animation: barGrow 0.8s ease forwards;
}

.bar-grow.delay-1 { animation-delay: 0.1s; }
.bar-grow.delay-2 { animation-delay: 0.2s; }
.bar-grow.delay-3 { animation-delay: 0.3s; }

/* Enhanced Glass Morphism */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.glass-effect-dark {
  background: rgba(14, 4, 89, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 4, 89, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Input Glow Focus */
input:focus,
textarea:focus,
select:focus {
  background: var(--bg-white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 4, 89, 0.1), 
              0 0 20px rgba(14, 4, 89, 0.2);
}

/* Ripple Button Effect */
.btn.ripple {
  position: relative;
  overflow: hidden;
}

.btn.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.btn.ripple:active::after {
  animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Smooth Page Transitions */
.page-transition {
  animation: pageIn 0.4s ease;
}

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

/* Enhanced KPI Card Animations */
.kpi-card.animate {
  animation: kpiPulse 1s ease-out;
}

@keyframes kpiPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Smooth Icon Rotation */
.icon-spin {
  animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Fade In Cascade */
.cascade > * {
  animation: cascadeIn 0.5s ease forwards;
}

.cascade > *:nth-child(1) { animation-delay: 0.0s; }
.cascade > *:nth-child(2) { animation-delay: 0.08s; }
.cascade > *:nth-child(3) { animation-delay: 0.16s; }
.cascade > *:nth-child(4) { animation-delay: 0.24s; }
.cascade > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes cascadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Success/Error Pulse */
@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.success-state {
  animation: successPulse 1.5s ease-out;
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

/* Reduce Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Legal Pages */
.legal-page {
  padding: 7.5rem 0 3rem;
}

.legal-intro {
  max-width: 860px;
  margin: 0 auto 1rem;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.legal-intro h1,
.legal-shell h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 0.55rem;
}

.legal-meta {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.legal-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-white) 92%, transparent);
  box-shadow: var(--shadow-lg);
}

.legal-shell h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 1.7rem 0 0.55rem;
  font-size: 1.1rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-shell ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.legal-shell a,
.legal-footer a {
  color: var(--primary);
  text-decoration: none;
}

.legal-shell a:hover,
.legal-footer a:hover {
  text-decoration: underline;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.legal-footer {
  margin-top: 1rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-white) 90%, transparent);
  padding: 2.8rem 5% 1.4rem;
}

.legal-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.legal-footer h4 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.7rem;
}

.legal-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.legal-footer a {
  color: var(--text-secondary);
}

.legal-footer a:hover {
  color: var(--primary);
  text-decoration: none;
}

.legal-footer-note {
  margin-top: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-footer-location {
  color: var(--text-secondary);
}

.legal-footer-bottom {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.87rem;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .legal-shell {
    padding: 1.3rem;
    border-radius: 16px;
  }

  .legal-page {
    padding-top: 6.5rem;
  }

  .legal-footer-bottom {
    flex-direction: column;
  }
}

