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

.hero { text-align: center; padding: 80px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 10px; margin-bottom: 40px; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; margin-bottom: 30px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.chart-placeholder { background: #ecf0f1; height: 300px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #7f8c8d; font-style: italic; padding: 20px; text-align: center; }
.actions { margin-top: 30px; padding-top: 20px; border-top: 2px solid #ecf0f1; }
.progress { background: #ecf0f1; height: 30px; border-radius: 15px; overflow: hidden; margin: 20px 0; }
.progress-bar { background: #3498db; height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; transition: width 0.3s; }
.modal {display: none;position: fixed;z-index: 1000;left: 0;top: 0;width: 100%;height: 100%;background-color: rgba(0,0,0,0.5);}
.modal.active {display: flex;align-items: center;justify-content: center;}
.modal-content {background-color: #fff;padding: 30px;border-radius: 8px;max-width: 600px;max-height: 80vh;overflow-y: auto;position: relative;}
.modal-content .close {position: absolute;right: 15px;top: 10px;font-size: 28px;font-weight: bold;cursor: pointer;color: #aaa;background: transparent;border: 0;line-height: 1;padding: 0;}
.modal-content .close:hover {color: #000;}
.asset-list { background: #f8f9fa; padding: 20px; border-radius: 5px; margin-bottom: 20px; }
.asset-item { background: white; padding: 15px; margin-bottom: 10px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.template-card { background: white; padding: 25px; border: 2px solid #ecf0f1; border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.template-card:hover { border-color: #3498db; transform: translateY(-2px); }
.template-card h3 { margin-bottom: 15px; color: #2c3e50; }
.template-card p { color: #7f8c8d; margin-bottom: 10px; }
.validation-message { padding: 15px; border-radius: 5px; margin-bottom: 15px; }
.validation-message.error { background: #fadbd8; border-left: 4px solid #e74c3c; }
.validation-message.warning { background: #fcf3cf; border-left: 4px solid #f39c12; }
.validation-message.success { background: #d5f4e6; border-left: 4px solid #27ae60; }
.help-btn { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: #3498db; color: white; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 999; }
.help-btn:hover { background: #2980b9; }
ul { margin-left: 20px; line-height: 1.8; }

/* ------------------------------
   Allocation Wizard - Step 1
   Starter Options Panel
------------------------------ */
.starter-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) {
  .starter-grid { grid-template-columns: 1fr 1fr; }
}
.starter-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
}
.starter-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.starter-actions select { flex: 1; min-width: 240px; }
.starter-inline-meta { margin-top: 10px; color: var(--text-secondary); font-size: 13px; }

/* Forecast Methods Section */
.forecast-methods-container {display: flex; flex-direction: column; gap: 40px;}
.method-category {background: var(--surface, #ffffff); border-radius: 8px; padding: 24px; border: 1px solid var(--border, #e0e0e0);}
.category-title {margin: 0 0 8px 0; font-size: 1.5rem; color: var(--text-primary, #1a1a1a);}
.category-description {margin: 0 0 20px 0; color: var(--text-secondary, #666); font-size: 0.95rem;}
.method-badge {display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; background: var(--primary-light, #e3f2fd); color: var(--primary, #1976d2);}

/* Responsive Theming Adjustments */
/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Theme Variables */
:root {
  /* Light Theme (Default) */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ecf0f1;
  --text-primary: #2c3e50;
  --text-secondary: #5f6c7a;
  --text-light: #ecf0f1;
  --border-color: #ddd;
  --shadow: rgba(0,0,0,0.1);
  --sidebar-bg: #2c3e50;
  --sidebar-text: #ecf0f1;
  --sidebar-hover: #34495e;
  --primary: #3498db;
  --primary-hover: #2980b9;
  --secondary: #95a5a6;
  --secondary-hover: #7f8c8d;
  --accent-color: #3a0f66;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --notification-bg: #fff3cd;
  --notification-border: #ffc107;
  --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
  --card-hover-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f1419;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-light: #ffffff;
  --border-color: #2d3748;
  --shadow: rgba(0,0,0,0.3);
  --sidebar-bg: #0f1419;
  --sidebar-text: #e0e0e0;
  --sidebar-hover: #1a1f2e;
  --primary: #4a9eff;
  --primary-hover: #3a8eef;
  --secondary: #6c757d;
  --secondary-hover: #5a6268;
  --accent-color: #f39c12;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --notification-bg: #2d3748;
  --notification-border: #f39c12;
  --card-shadow: 0 4px 6px rgba(0,0,0,0.3);
  --card-hover-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Quantum Theme */
[data-theme="quantum"] {
  --bg-primary: #0f0f1e;
  --bg-secondary: rgba(255, 255, 255, 0.05);
  --bg-tertiary: rgba(102, 126, 234, 0.1);
  --text-primary: rgba(255, 255, 255, 0.9);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-light: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: rgba(102, 126, 234, 0.2);
  --sidebar-bg: rgba(26, 26, 46, 0.95);
  --sidebar-text: rgba(255, 255, 255, 0.9);
  --sidebar-hover: rgba(102, 126, 234, 0.2);
  --primary: #667eea;
  --primary-hover: #764ba2;
  --secondary: rgba(255, 255, 255, 0.15);
  --secondary-hover: rgba(255, 255, 255, 0.25);
  --accent-color: #d980f1;
  --success: #2ecc71;
  --danger: #f093fb;
  --warning: #f39c12;
  --notification-bg: rgba(102, 126, 234, 0.2);
  --notification-border: rgba(102, 126, 234, 0.5);
  --card-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
  --card-hover-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Quantum Theme Background Effects */
[data-theme="quantum"] body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
  pointer-events: none;
}

[data-theme="quantum"] body::after {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
  border-radius: 50%;
  filter: blur(80px);
  animation: quantum-float 20s infinite ease-in-out;
  pointer-events: none;
  z-index: -1;
}

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

/* Base Styles */
body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; line-height:1.6; color:var(--text-primary); background:var(--bg-primary); transition:background-color 0.3s ease,color 0.3s ease; }
.app { display:flex; min-height:100vh; }

/* Theme Toggle */
.theme-toggle { position:fixed; top:20px; right:20px; z-index:1000; display:flex; gap:10px; background:var(--bg-secondary); padding:8px; border-radius:12px; border:1px solid var(--border-color); box-shadow:var(--card-shadow); backdrop-filter:blur(10px); }
.theme-btn { padding:8px 16px; border:none; border-radius:8px; background:transparent; color:var(--text-secondary); cursor:pointer; font-size:14px; font-weight:600; transition:all 0.3s ease; }
.theme-btn:hover { background:var(--bg-tertiary); color:var(--text-primary); }
.theme-btn.active { background:var(--primary); color:white; }
.theme-btn[data-theme="quantum"]:not(.active) {color: #5b216b;}
.theme-btn:hover[data-theme="quantum"]:not(.active) {color: #d980f1;}
.theme-btn[data-theme="quantum"]:hover { position: relative; overflow: hidden; }
.theme-btn[data-theme="quantum"]:hover::before { content: '*'; position: absolute; font-size: 12px; animation: sparkle 1s infinite; pointer-events: none; }
.theme-btn[data-theme="quantum"]:hover::after { content: '*'; position: absolute; font-size: 10px; animation: sparkle 1s infinite 0.5s; pointer-events: none; }
@keyframes sparkle { 0% { top: 100%; left: 20%; opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } 100% { top: -20%; left: 80%; opacity: 0; transform: scale(0.5); } }
[data-theme="quantum"] .theme-btn.active { background:linear-gradient(135deg,var(--primary),var(--primary-hover)); box-shadow:0 4px 12px rgba(102,126,234,0.4); }

/* Sidebar */
.sidebar { width:240px; background:var(--sidebar-bg); color:var(--sidebar-text); padding:20px; display:none; position:fixed; height:100vh; overflow-y:auto; z-index:100; flex-direction:column; border-right:1px solid var(--border-color); transition:background-color 0.3s ease; }
[data-theme="quantum"] .sidebar { backdrop-filter:blur(10px); border-right:1px solid rgba(102,126,234,0.3); }
.sidebar.visible { display:flex; }
.sidebar h2 { font-size:18px; margin-bottom:30px; padding-bottom:10px; border-bottom:1px solid #34495e; }
.sidebar .brand { display:flex; align-items:center; justify-content:center; height:120px; margin-bottom:18px; padding:0; border-bottom:1px solid var(--border-color); }
.sidebar .brand a { display:flex; align-items:center; justify-content:center; width:90%; }
.sidebar .brand img { max-height:100px; max-width:90%; display:block; filter:drop-shadow(0 0 10px rgba(102,126,234,0.3)); }
[data-theme="quantum"] .sidebar .brand img { filter:drop-shadow(0 0 20px rgba(102,126,234,0.6)); }
.sidebar nav { display:flex; flex-direction:column; height:100%; }
.sidebar nav a { display:block; color:var(--sidebar-text); text-decoration:none; padding:12px 15px; margin-bottom:5px; border-radius:5px; transition:all 0.3s; }
.sidebar nav a:last-child { margin-top:auto; margin-bottom:0; }
.sidebar nav a:hover { background:var(--sidebar-hover); }
[data-theme="quantum"] .sidebar nav a:hover { background:rgba(102,126,234,0.2); box-shadow:0 0 15px rgba(102,126,234,0.3); }
.sidebar .bottom-links { margin-top:auto; display:flex; flex-direction:column; border-top:1px solid var(--border-color); padding-top:15px; }
.sidebar .bottom-links a { margin-bottom:5px; }
.sidebar .bottom-links a:last-child { margin-bottom:0; }

/* Main Content */
.main-content { flex:1; background:var(--bg-primary); transition:margin-left 0.3s,background-color 0.3s ease; }
.main-content.with-sidebar { margin-left:240px; }
.page { display:none; padding:36px; max-width:1200px; margin:0 auto; }
.page.active { display:block; }

/* Cards */
.card { background:var(--bg-secondary); padding:30px; border-radius:12px; box-shadow:var(--card-shadow); margin-bottom:20px; border:1px solid var(--border-color); transition:all 0.3s ease; }
[data-theme="quantum"] .card { backdrop-filter:blur(10px); border:1px solid rgba(102,126,234,0.2); }
.card.clickable { cursor:pointer; transition:transform 0.15s ease,box-shadow 0.15s ease,border-color 0.15s ease; border:2px solid transparent; }
.card.clickable:hover { transform:translateY(-3px); box-shadow:var(--card-hover-shadow); border-color:var(--primary); }
[data-theme="quantum"] .card.clickable:hover { box-shadow:0 20px 60px rgba(102,126,234,0.3); border-color:rgba(102,126,234,0.5); }
.card.clickable:active { transform:translateY(-1px); box-shadow:0 4px 10px rgba(0,0,0,0.10); }
.card h2,.card h3 { margin-bottom:20px; color:var(--text-primary); }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:12px 30px; margin:5px; border:none; border-radius:10px; cursor:pointer; font-size:16px; font-weight:700; letter-spacing:0.01em; min-height:40px; text-decoration:none; transition:all 0.3s; }
.btn-primary { background:var(--primary); color:white; }
.btn-primary:hover { background:var(--primary-hover); }
[data-theme="quantum"] .btn-primary { background:linear-gradient(135deg,var(--primary),var(--primary-hover)); box-shadow:0 4px 12px rgba(102,126,234,0.3); }
[data-theme="quantum"] .btn-primary:hover { box-shadow:0 6px 20px rgba(102,126,234,0.5); transform:translateY(-2px); }
.btn-secondary { background:var(--secondary); color:white; border:1px solid rgba(255,255,255,0.08); }
.btn-secondary:hover { background:var(--secondary-hover); }
.btn-success { background:#27ae60; color:white; }
.btn-success:hover { background:#229954; }
.btn-danger { background:#e74c3c; color:white; }
.btn-danger:hover { background:#c0392b; }
.btn:disabled { background:#bdc3c7; cursor:not-allowed; }
[data-theme="quantum"] .btn-secondary { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); backdrop-filter:blur(10px); }

/* Stats Grid */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; margin-bottom:30px; }
.stat-card { background:var(--bg-secondary); padding:20px; border-radius:8px; box-shadow:var(--card-shadow); border:1px solid var(--border-color); transition:all 0.3s ease; }
.stat-card:hover { transform:translateY(-3px); box-shadow:var(--card-hover-shadow); }
[data-theme="quantum"] .stat-card { backdrop-filter:blur(10px); border:1px solid rgba(102,126,234,0.2); }
[data-theme="quantum"] .stat-card:hover { border-color:rgba(102,126,234,0.5); box-shadow:0 10px 30px rgba(102,126,234,0.3); }
.stat-card h4 { color:var(--text-secondary); font-size:14px; margin-bottom:10px; }
.stat-card .value { font-size:32px; font-weight:bold; color:var(--text-primary); }
[data-theme="quantum"] .stat-card .value { background:linear-gradient(135deg,var(--primary),#f093fb); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* Tables */
table { width:100%; border-collapse:collapse; background:var(--bg-secondary); border-radius:12px; overflow:hidden; box-shadow:var(--card-shadow); }
table th,table td { padding:12px; text-align:left; border-bottom:1px solid var(--border-color); color:var(--text-primary); }
table th { background:var(--bg-tertiary); font-weight:600; }
table tr:hover { background:var(--bg-tertiary); }

/* Form Elements */
.form-group { margin-bottom:20px; }
.form-group label { display:block; margin-bottom:8px; font-weight:500; color:var(--text-primary); }
.form-group input,.form-group select,.form-group textarea { width:100%; padding:10px; border:1px solid var(--border-color); border-radius:10px; font-size:14px; background:var(--bg-secondary); color:var(--text-primary); transition:all 0.3s ease; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(52, 152, 219, 0.15); }
[data-theme="quantum"] .form-group input:focus,[data-theme="quantum"] .form-group select:focus,[data-theme="quantum"] .form-group textarea:focus { box-shadow:0 0 15px rgba(102,126,234,0.3); }

/* Notifications */
.notifications { background:var(--notification-bg); border:1px solid var(--notification-border); padding:15px; border-radius:5px; margin-bottom:20px; color:var(--text-primary); }
.notifications a { color: var(--accent-color); text-decoration: none; }
.notifications a:hover { text-decoration: underline; opacity: 0.8; }

/* Page Header */
.page-header { margin-bottom:30px; }
.page-header h1 { font-size:32px; color:var(--text-primary); margin-bottom:10px; }
.page-header p { color:var(--text-secondary); font-size:16px; }

/* Breadcrumb */
.breadcrumb { margin-bottom:20px; color:var(--text-secondary); font-size:14px; }
.breadcrumb a { color:var(--primary); text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }

/* Responsive */
@media (max-width:768px) { .theme-toggle{top:10px;right:10px;flex-direction:column;} .sidebar{width:200px;} .main-content.with-sidebar{margin-left:200px;} }

/* =========================================================
   Quantory UI Polish (Global)
   - lightweight, safe overrides for consistency
========================================================= */

/* Typography scale */
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.3; }

/* Page spacing */
.page-header p.subtitle { margin-top: 6px; }

/* Sidebar active link */
.sidebar nav a.active {
  background: var(--sidebar-hover);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
[data-theme="quantum"] .sidebar nav a.active {
  background: rgba(102,126,234,0.22);
  box-shadow: 0 0 18px rgba(102,126,234,0.25);
}

/* Buttons */
.btn.btn-sm { padding: 10px 16px; font-size: 14px; min-height: 36px; }
.btn:focus-visible {
  outline: 3px solid rgba(52, 152, 219, 0.35);
  outline-offset: 2px;
}

/* Inputs */
.input-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.14) !important;
}
.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
  display: none;
}
.field-error.visible { display: block; }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }

/* Shared utility classes */
.hidden { display: none !important; }
.muted { color: var(--text-secondary); }
.status { font-weight: 700; }
.status.complete { color: var(--success); }
.status.in-progress { color: var(--warning); }
.status.not-started { color: var(--text-secondary); }
.small { font-size: 13px; }
.step-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.metric-box { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 10px; padding: 14px; }
.alert,
.alert-inline {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.alert.error,
.alert-inline.error { border-left: 4px solid var(--danger); }
.alert.success,
.alert-inline.success { border-left: 4px solid var(--success); }
.alert.warning,
.alert-inline.warning { border-left: 4px solid var(--warning); }
.tab-btn { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-secondary); cursor: pointer; font-weight: 700; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Public Top Nav (for /login, /register, /pricing, /admin) */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}
.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
}
.topnav-brand img { height: 34px; width: auto; display:block; }
.topnav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topnav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.topnav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.topnav-link.is-active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.topnav-actions { display: inline-flex; gap: 10px; align-items: center; }

/* Public page wrapper */
.public-wrap {
  padding: 34px 22px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Monochrome public pages (pricing/login/register/terms) */
body.mono-public {
  --bg-primary: #0b0d12;
  --bg-secondary: rgba(255, 255, 255, 0.04);
  --bg-tertiary: rgba(255, 255, 255, 0.08);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --border-color: rgba(255, 255, 255, 0.14);
  --primary: #667eea;
  --primary-hover: #4a57c9;
  --secondary: rgba(255, 255, 255, 0.08);
  --secondary-hover: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --card-hover-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  min-height: 100vh;
}

body.mono-public::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 800px at 15% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(900px 650px at 90% 120%, rgba(255, 255, 255, 0.05), transparent 70%),
    linear-gradient(160deg, #0a0b0d 0%, #11131a 55%, #0b0d12 100%);
  z-index: -2;
  pointer-events: none;
}

body.mono-public::after {
  content: '';
  position: fixed;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: soft-light;
  z-index: -1;
  pointer-events: none;
}

body.mono-public .public-wrap {
  position: relative;
  z-index: 1;
}

body.mono-public .public-wrap > .page-header {
  position: relative;
  z-index: 1;
}

body.mono-public .public-wrap > .page-header::before {
  content: '';
  position: absolute;
  inset: -60px -40px -30px;
  background: radial-gradient(800px 300px at 50% 10%, rgba(8, 9, 12, 0.95), rgba(8, 9, 12, 0.7) 55%, rgba(8, 9, 12, 0) 80%);
  z-index: -1;
}

body.mono-public .topnav {
  background: rgba(10, 11, 15, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

body.mono-public .topnav-brand img {
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
}

body.mono-public .topnav-link {
  color: var(--text-secondary);
}

body.mono-public .topnav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
body.mono-public .topnav-link.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.14);
}

body.mono-public .card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

body.mono-public .btn-primary {
  background: linear-gradient(135deg, #667eea, #4a57c9);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.25);
}

body.mono-public .btn-primary:hover {
  background: linear-gradient(135deg, #6f86f3, #5661d6);
  box-shadow: 0 16px 36px rgba(102, 126, 234, 0.35);
}

body.mono-public .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body.mono-public .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.mono-public .card.clickable:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

body.mono-public .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
}

body.mono-public .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Pricing page */
.pricing-wrap {
  padding-top: 42px;
}
.pricing-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 26px;
}
.pricing-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pricing-header .subtitle {
  max-width: 780px;
  margin: 10px auto 0;
}

.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  margin-bottom: 0;
  overflow: hidden;
}
.pricing-tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}
.pricing-tier-head {
  position: relative;
  margin-bottom: 8px;
  padding-right: 150px;
  min-height: 56px;
}
.pricing-tier h2 {
  margin: 10px 0 6px;
}
.pricing-popular {
  display: inline-flex;
  font-size: 12px;
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  color: #ccd6ff;
  margin-bottom: 8px;
}
.pricing-price {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}
.pricing-amount {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
.pricing-period {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1;
  padding-bottom: 5px;
}
.pricing-tier-subtitle {
  color: var(--text-secondary);
  margin-bottom: 14px;
  min-height: 64px;
}

.pricing-tier-split {
  display: grid;
  gap: 12px;
}
.pricing-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
}
.pricing-block h3 {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pricing-list {
  margin: 0;
  padding-left: 18px;
  list-style-position: outside;
}
.pricing-list li {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 7px;
}
.pricing-list li:last-child { margin-bottom: 0; }

.pricing-cta {
  margin-top: auto;
  padding-top: 16px;
}
.pricing-cta .btn {
  width: 100%;
  margin: 0;
}

.pricing-compare {
  margin-top: 20px;
}
.pricing-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}
.pricing-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.pricing-table th,
.pricing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}
.pricing-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}
.pricing-table td:first-child,
.pricing-table th:first-child {
  min-width: 190px;
  color: var(--text-primary);
  font-weight: 700;
}
.pricing-note {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

body.mono-public .pricing-tier-basic {
  border-color: rgba(102, 126, 234, 0.56);
  box-shadow: 0 24px 55px rgba(85, 108, 210, 0.24);
}
body.mono-public .pricing-tier-basic::before {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.95), rgba(102, 126, 234, 0));
}
body.mono-public .pricing-tier-pro {
  border-color: rgba(97, 228, 188, 0.4);
  box-shadow: 0 24px 55px rgba(43, 122, 102, 0.2);
}
body.mono-public .pricing-tier-pro::before {
  background: linear-gradient(90deg, rgba(97, 228, 188, 0.9), rgba(97, 228, 188, 0));
}
body.mono-public .pricing-tier-enterprise {
  border-style: dashed;
}

@media (max-width: 1360px) {
  .pricing-tier-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .pricing-wrap {
    padding-top: 28px;
  }
  .pricing-tier-grid {
    grid-template-columns: 1fr;
  }
  .pricing-tier-subtitle {
    min-height: 0;
  }
}
@media (max-width: 540px) {
  .pricing-tier-head {
    padding-right: 124px;
    min-height: 52px;
  }
  .pricing-amount { font-size: 32px; }
  .pricing-period { font-size: 12px; padding-bottom: 4px; }
}

/* Footer */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 40px;
  color: var(--text-secondary);
  font-size: 13px;
}
.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Toasts */
#toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 260px;
  max-width: 360px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  animation: toast-in 140ms ease-out;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast .toast-title { font-weight: 900; font-size: 13px; margin-bottom: 2px; }
.toast .toast-msg { font-size: 13px; color: var(--text-secondary); }
.toast button.toast-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
}
.toast button.toast-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Button loading spinner */
.btn .btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,0.95);
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { opacity: 0.9; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  [data-theme="quantum"] body::after { animation: none; }
  .toast { animation: none; }
  .btn .btn-spinner { animation: none; }
  .theme-btn[data-theme="quantum"]:hover::before,
  .theme-btn[data-theme="quantum"]:hover::after { animation: none; }
}

/* Small responsive tweaks for public nav */
@media (max-width: 860px) {
  .topnav-inner { flex-wrap: wrap; justify-content: center; }
  .topnav-links { justify-content: center; }
}

/* Monochrome Landing Theme Helpers */
:root {
  --mono-bg: #0b0d12;
  --mono-surface: rgba(255, 255, 255, 0.05);
  --mono-border: rgba(255, 255, 255, 0.12);
  --mono-text: rgba(255, 255, 255, 0.92);
  --mono-muted: rgba(255, 255, 255, 0.6);
  --mono-accent: #667eea;
}

body.landing-page {
  background: var(--mono-bg);
  color: var(--mono-text);
}
