/* Lanhorz backend + demo dashboard — matches reference mockup visuals */

/* Compact nav for full mockup menu */
.lux-header { grid-template-columns: 200px 1fr auto !important; }
.desktop-nav { gap: clamp(10px, 1.6vw, 22px) !important; flex-wrap: wrap; justify-content: center; }
.desktop-nav button { font-size: 11px !important; padding: 14px 0 !important; letter-spacing: 0.04em !important; }

/* ---------- Demo / account dashboard shell ---------- */
.demo-page-hero,
.account-dashboard-hero {
  text-align: center;
  padding: clamp(28px, 4vw, 48px) 20px 12px;
}
.demo-page-hero h1,
.account-dashboard-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.04em;
}
.demo-page-hero p,
.account-dashboard-hero p {
  margin: 0 auto;
  max-width: 640px;
  color: #b9b1a1;
  line-height: 1.6;
}

.dashboard-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 20px 48px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 6px;
  padding: 18px 12px;
  border: 1px solid rgba(228, 190, 110, 0.28);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(14, 13, 10, 0.92), rgba(4, 4, 4, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.dashboard-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #d8d0c0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: left;
}
.dashboard-sidebar button span:first-child {
  width: 22px;
  text-align: center;
  color: var(--dash-gold);
}
.dashboard-sidebar button.active,
.dashboard-sidebar button:hover {
  border-color: rgba(228, 190, 110, 0.35);
  background: linear-gradient(90deg, rgba(228, 190, 110, 0.18), rgba(0, 0, 0, 0.2));
  color: #fff8ee;
  box-shadow: 0 0 18px rgba(228, 190, 110, 0.12);
}

.dashboard-main { display: grid; gap: 18px; min-width: 0; }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-metrics article {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(228, 190, 110, 0.22);
  background: linear-gradient(160deg, rgba(12, 11, 9, 0.95), rgba(0, 0, 0, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dashboard-metrics article span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #b9b1a1;
}
.dashboard-metrics article strong {
  font-size: clamp(22px, 3vw, 30px);
  font-family: 'Sora', Inter, sans-serif;
  color: #f4dca0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.dashboard-panel {
  padding: 20px;
  border: 1px solid rgba(228, 190, 110, 0.28);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(14, 13, 10, 0.94), rgba(2, 2, 2, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 36px rgba(0, 0, 0, 0.4);
  min-height: 280px;
}
.dashboard-panel h3 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dash-gold);
}

.spending-chart-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}
.spending-donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.45);
}
.spending-donut::after {
  content: attr(data-label);
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #080807;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: #d8d0c0;
  padding: 8px;
  white-space: pre-line;
}
.spending-legend { display: grid; gap: 8px; }
.spending-legend div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #cfc6b6;
}
.spending-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.strictness-panel .strictness-value {
  font-size: 22px;
  color: var(--dash-gold);
  margin-bottom: 12px;
}
.strictness-panel input[type="range"] {
  width: 100%;
  accent-color: #d4af52;
  margin: 8px 0 16px;
}
.strictness-saved {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(228, 190, 110, 0.35);
  background: rgba(228, 190, 110, 0.08);
  color: #e8c878;
  font-size: 15px;
  line-height: 1.5;
}
.strictness-saved strong { font-size: 24px; display: block; margin-top: 4px; }

.ai-insights-list { display: grid; gap: 14px; }
.ai-insight-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(228, 190, 110, 0.12);
}
.ai-insight-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-insight-item span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(228, 190, 110, 0.35);
  display: grid;
  place-items: center;
  color: var(--dash-gold);
  font-size: 14px;
}
.ai-insight-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #d8d0c0;
}
.ai-insight-item em { color: var(--dash-gold); font-style: normal; }

.dashboard-cta-row {
  text-align: center;
  padding: 8px 0 24px;
}
.dashboard-cta-row small {
  display: block;
  margin-top: 10px;
  color: #9a9284;
  font-size: 13px;
}

.demo-footer-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.demo-footer-features article {
  text-align: center;
  padding: 18px 14px;
  border: 1px solid rgba(228, 190, 110, 0.2);
  border-radius: 12px;
  background: rgba(8, 8, 7, 0.7);
}
.demo-footer-features span { color: var(--dash-gold); font-size: 22px; }
.demo-footer-features h4 { margin: 10px 0 6px; color: var(--dash-gold); font-size: 13px; letter-spacing: 0.08em; }
.demo-footer-features p { margin: 0; font-size: 12px; color: #b9b1a1; line-height: 1.5; }

/* ---------- Strictness levels page ---------- */
.strictness-hero { text-align: center; padding: 40px 20px 20px; }
.strictness-hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); }
.strictness-hero p { margin: 0 auto; max-width: 720px; color: #b9b1a1; line-height: 1.6; }

.strictness-levels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 1240px);
  margin: 24px auto;
  padding: 0 20px;
}
.strictness-level-card {
  padding: 22px 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--level-color, rgba(228, 190, 110, 0.35));
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.95), rgba(0, 0, 0, 0.88));
  box-shadow: 0 0 24px color-mix(in srgb, var(--level-color) 18%, transparent);
  text-align: center;
  position: relative;
}
.strictness-level-card.featured {
  transform: translateY(-6px);
  border-width: 2px;
  box-shadow: 0 0 32px color-mix(in srgb, var(--level-color) 28%, transparent);
}
.strictness-level-card .level-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4dca0, #c79a3c);
  color: #1a1206;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.strictness-level-card h3 { margin: 8px 0 14px; color: var(--level-color); font-size: 15px; }
.strictness-level-card .level-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid var(--level-color);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--level-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--level-color) 25%, transparent);
}
.strictness-level-card p { margin: 0 0 18px; font-size: 13px; line-height: 1.55; color: #d8d0c0; min-height: 72px; }
.strictness-level-card footer { color: var(--level-color); font-size: 13px; font-weight: 700; }

.strictness-info-bar {
  width: min(100%, 1240px);
  margin: 20px auto 40px;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid rgba(77, 163, 255, 0.35);
  background: rgba(77, 163, 255, 0.06);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  color: #d8d0c0;
  font-size: 14px;
  line-height: 1.55;
}
.strictness-info-bar span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(77, 163, 255, 0.5);
  display: grid;
  place-items: center;
  color: #4da3ff;
  font-weight: 700;
}

/* ---------- Crowdfunding page ---------- */
.crowdfunding-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 40px 20px 24px;
}
.crowdfunding-hero h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.crowdfunding-hero p { color: #cfc6b6; line-height: 1.65; }
.crowdfunding-visual {
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid rgba(228, 190, 110, 0.28);
  background:
    radial-gradient(circle at 50% 40%, rgba(228, 190, 110, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(10, 10, 9, 0.95), rgba(0, 0, 0, 0.9));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.crowdfunding-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }

.crowdfunding-why {
  width: min(100%, 1180px);
  margin: 0 auto 40px;
  padding: 28px;
  border: 1px solid rgba(228, 190, 110, 0.28);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(12, 11, 9, 0.94), rgba(0, 0, 0, 0.88));
}
.crowdfunding-why h2 { text-align: center; margin: 0 0 22px; color: var(--dash-gold); }
.crowdfunding-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.crowdfunding-cards article {
  padding: 20px 16px;
  border: 1px solid rgba(228, 190, 110, 0.2);
  border-radius: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
}
.crowdfunding-cards span { font-size: 26px; color: var(--dash-gold); }
.crowdfunding-cards h3 { margin: 12px 0 8px; color: var(--dash-gold); font-size: 14px; letter-spacing: 0.06em; }
.crowdfunding-cards p { margin: 0; font-size: 13px; color: #b9b1a1; line-height: 1.5; }
.crowdfunding-bar {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(228, 190, 110, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.crowdfunding-bar p { margin: 0; color: var(--dash-gold); font-weight: 600; }

/* ---------- How it works (6 steps) ---------- */
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1240px);
  margin: 28px auto;
  padding: 0 20px;
}
.how-step-card {
  padding: 20px 14px;
  border: 1px solid rgba(228, 190, 110, 0.28);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(12, 11, 9, 0.94), rgba(0, 0, 0, 0.88));
  text-align: center;
}
.how-step-card .hex-icon { margin: 0 auto 12px; }
.how-step-card h3 { margin: 0 0 10px; color: var(--dash-gold); font-size: 13px; letter-spacing: 0.06em; }
.how-step-card p { margin: 0; font-size: 12px; color: #b9b1a1; line-height: 1.5; }

.how-next-bar {
  width: min(100%, 1180px);
  margin: 24px auto 40px;
  padding: 24px;
  border: 1px solid rgba(228, 190, 110, 0.28);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(160deg, rgba(12, 11, 9, 0.94), rgba(0, 0, 0, 0.88));
}
.how-next-bar .hex-icon.large { width: 72px; height: 72px; font-size: 28px; }
.how-next-bar h3 { margin: 0 0 8px; color: var(--dash-gold); letter-spacing: 0.08em; }
.how-next-bar p { margin: 0; color: #b9b1a1; line-height: 1.55; }
.how-next-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Finance tools + admin premium layer ---------- */
.account-finance-panel,
.admin-shell .account-hero,
.admin-shell .admin-nav,
.admin-table-wrap,
.admin-status {
  border-color: rgba(228, 190, 110, 0.28) !important;
}

.account-finance-panel {
  border-radius: 14px !important;
  background:
    linear-gradient(160deg, rgba(14, 13, 10, 0.94), rgba(2, 2, 2, 0.9)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

.account-tools-nav button.active,
.admin-nav button.active {
  background: linear-gradient(90deg, rgba(228, 190, 110, 0.2), rgba(0, 0, 0, 0.15)) !important;
  border-color: rgba(228, 190, 110, 0.45) !important;
  color: #fff8ee !important;
  box-shadow: 0 0 16px rgba(228, 190, 110, 0.15) !important;
}

.account-tools-form input,
.account-tools-form select,
.account-tools-form textarea,
.admin-shell textarea,
.admin-shell input,
.admin-shell select {
  border: 1px solid rgba(228, 190, 110, 0.28) !important;
  background: rgba(4, 4, 4, 0.6) !important;
  color: #fff8ee !important;
  border-radius: 10px !important;
}

.admin-table th {
  color: #e8c878 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.admin-table td { color: #d8d0c0 !important; }

.account-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.account-header-bar .account-user-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(228, 190, 110, 0.3);
  color: #e8c878;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dashboard-sidebar button { justify-content: center; font-size: 11px; padding: 10px 8px; }
  .dashboard-sidebar button span:last-child { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .strictness-levels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crowdfunding-hero { grid-template-columns: 1fr; }
  .crowdfunding-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-footer-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strictness-levels-grid,
  .how-steps-grid { grid-template-columns: 1fr; }
  .how-next-bar { grid-template-columns: 1fr; text-align: center; }
  .how-next-actions { justify-content: center; }
  .spending-chart-wrap { grid-template-columns: 1fr; }
}
