:root {
  --bg: #111827;
  --bg-secondary: #1f2937;
  --panel: #1f2937;
  --border: #374151;
  --border-light: #4b5563;
  --muted: #9ca3af;
  --text: #ffffff;
  --text-light: #d1d5db;
  --brand: #3b82f6;
  --brand-light: #dbeafe;
  --brand-dark: #2563eb;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(255 255 255 / 0.05);
  --shadow: 0 4px 6px -1px rgb(255 255 255 / 0.05), 0 2px 4px -2px rgb(255 255 255 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(255 255 255 / 0.05), 0 4px 6px -4px rgb(255 255 255 / 0.05);
}

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  margin: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: min(1200px, 95%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.brand { 
  font-weight: 700; 
  font-size: 24px;
  color: var(--brand);
  letter-spacing: -0.025em;
}

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

.nav a { 
  color: var(--text-light); 
  text-decoration: none; 
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

/* Hero Section */
.hero { 
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.hero-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 60px; 
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-copy h1 { 
  font-size: 48px; 
  line-height: 1.1; 
  margin: 0 0 20px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-copy p { 
  color: var(--text-light); 
  margin: 0 0 32px;
  font-size: 20px;
  line-height: 1.6;
}

.hero-art { 
  display: grid; 
  place-items: center; 
}

.card-demo { 
  width: 100%; 
  max-width: 400px; 
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: var(--shadow-lg);
}

.card-header { 
  padding: 16px 20px; 
  background: var(--bg-secondary); 
  border-bottom: 1px solid var(--border); 
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.card-body { 
  padding: 20px; 
  color: var(--text-light); 
}

.card-body ul { 
  margin: 0; 
  padding-left: 0;
  list-style: none;
}

.card-body li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background: var(--bg);
}

.benefits-header {
  text-align: center;
  margin-bottom: 60px;
}

.benefits-header h2 {
  font-size: 36px;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.benefit {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit:hover {
  transform: translateY(-4px);
  border-color: var(--success);
}

.benefit .icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  color: var(--success);
}

.benefit h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

.benefit p {
  margin: 0;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

/* Signup Section */
.signup { 
  padding: 80px 0; 
  background: var(--panel);
}

.signup .container {
  max-width: 500px;
}

.signup h2 { 
  margin: 0 0 8px; 
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.subtitle { 
  margin: 0 0 40px; 
  color: var(--text-light);
  text-align: center;
  font-size: 18px;
}

/* Form Styles */
form { 
  width: 100%;
}

.form-row { 
  display: grid; 
  gap: 8px; 
  margin-bottom: 20px; 
}

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

input[type="text"], 
input[type="email"], 
input[type="password"] {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

input:focus { 
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-row { 
  grid-template-columns: 20px 1fr; 
  align-items: center; 
  gap: 12px;
  margin-top: 8px;
}

.checkbox-row label { 
  font-weight: 400; 
  color: var(--text-light);
  font-size: 14px;
}

/* Buttons */
.btn { 
  display: inline-block; 
  border: none; 
  cursor: pointer; 
  text-decoration: none; 
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary { 
  background: var(--brand); 
  color: white; 
  padding: 16px 32px; 
  border-radius: 12px;
  width: 100%;
  margin-top: 8px;
}

.btn-primary:hover { 
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline { 
  border: 1px solid var(--border); 
  padding: 8px 16px; 
  border-radius: 8px;
  color: var(--text-light);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Form Status */
.error { 
  color: var(--danger); 
  min-height: 16px;
  font-size: 14px;
}

.form-status { 
  margin-top: 16px; 
  padding: 16px; 
  border-radius: 12px; 
  border: 1px solid var(--border); 
  background: var(--bg-secondary);
}

.form-status.ok { 
  border-color: var(--success); 
  color: var(--success); 
  background: var(--success-light);
}

.form-status.err { 
  border-color: var(--danger); 
  color: var(--danger); 
  background: #fef2f2;
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 24px 0; 
  color: var(--text-light);
  background: var(--panel);
  text-align: center;
}


.goals-modal {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  background: transparent;
  width: min(540px, 92vw);
  color: var(--text);
}

.goals-modal::backdrop {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(2px);
}

.onboarding-card {
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--border);
}

.onboarding-card header {
  position: relative;
}

.modal-close {
  position: absolute;
  top: -8px;
  right: -8px;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text);
  background: rgba(59, 130, 246, 0.25);
  outline: none;
}

.onboarding-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.onboarding-card p {
  font-size: 15px;
  color: var(--muted);
}

.goal-options {
  border: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* Dashboard layout */
.dashboard-page {
  --bg: #1e1e2f;
  --bg-secondary: #2c2c3e;
  --panel: #26263a;
  --border: #34344a;
  --border-light: #3f3f58;
  --muted: #a0a0b2;
  --text: #ededed;
  --text-light: #ccccdd;
  --brand: #00ffd1;
  --brand-light: #8fff00;
  --brand-dark: #00c4a6;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dashboard-page .site-footer {
  background: #2c2c3e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.dashboard-sidebar {
  width: 260px;
  background: #141421;
  color: #a0a0b2;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ededed;
  letter-spacing: 0.02em;
}

.sidebar-logo .logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 255, 209, 0.12);
  color: #00ffd1;
  font-size: 1.2rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #a0a0b2;
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link .icon {
  font-size: 1.1rem;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.active {
  background: rgba(0, 255, 209, 0.12);
  color: #ededed;
  outline: none;
  transform: translateX(2px);
}

.sidebar-link.sidebar-logout {
  margin-top: auto;
  border: 1px solid rgba(0, 255, 209, 0.25);
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  margin-left: 260px;
  width: calc(100% - 260px);
}

.dashboard-topbar {
  background: #2c2c3e;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.topbar-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.topbar-title {
  margin: 0;
  font-size: 1.25rem;
  color: #ededed;
  letter-spacing: 0.01em;
}

.topbar-greeting {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ededed;
}

.topbar-greeting span {
  color: #00ffd1;
}

.topbar-subtitle {
  margin: 0;
  color: #a0a0b2;
  font-size: 0.85rem;
}

  .topbar-stats {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
  }

  .topbar-stat {
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 255, 209, 0.2);
    border-radius: 12px;
    padding: 6px 10px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

.topbar-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0b2;
}

.topbar-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: #ededed;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #ededed;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topbar-icon:hover,
.topbar-icon:focus-visible {
  background: rgba(0, 255, 209, 0.12);
  border-color: rgba(0, 255, 209, 0.4);
  outline: none;
  transform: translateY(-1px);
}

.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 209, 0.22), rgba(143, 255, 0, 0.18));
  color: #00ffd1;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 0;
}

.topbar-dropdown summary {
  list-style: none;
}

.topbar-dropdown summary::-webkit-details-marker {
  display: none;
}

.topbar-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 209, 0.2);
  background: rgba(0, 0, 0, 0.14);
  color: #a0a0b2;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.topbar-dropdown-trigger span[aria-hidden="true"] {
  font-size: 0.8rem;
}
.topbar-dropdown-text {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.topbar-dropdown-trigger::after {
  content: '▾';
  font-size: 0.7rem;
  color: inherit;
}

.topbar-dropdown[open] .topbar-dropdown-trigger {
  background: rgba(0, 255, 209, 0.18);
  border-color: rgba(0, 255, 209, 0.45);
  color: #ededed;
}

.topbar-dropdown-panel {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(30, 30, 47, 0.95);
  border: 1px solid rgba(0, 255, 209, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(5, 12, 32, 0.4);
  min-width: 240px;
  max-width: 340px;
  color: #ededed;
  animation: fade-in 0.18s ease;
}

.topbar-dropdown-panel p {
  margin: 0;
  color: #a0a0b2;
  font-size: 0.8rem;
}

.topbar-dropdown-panel p + p {
  margin-top: 6px;
}

.topbar-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  color: #ededed;
}

.topbar-summary .summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.topbar-summary .summary-label {
  color: #a0a0b2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.topbar-summary .summary-value {
  color: #00ffd1;
  font-weight: 600;
}

.view-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.period-filter {
  margin-top: 16px;
  background: rgba(20, 20, 33, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.period-filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.period-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  color: #a0a0b2;
  font-size: 0.7rem;
}

.period-field span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.period-select,
.period-input {
  width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 209, 0.2);
  background: rgba(30, 30, 47, 0.78);
  color: #ededed;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.period-select:focus,
.period-input:focus {
  outline: none;
  border-color: rgba(0, 255, 209, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 255, 209, 0.18);
}

.period-input::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

.period-custom {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.period-apply {
  align-self: center;
  padding: 6px 16px;
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.period-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.period-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 209, 0.08);
  border: 1px solid rgba(0, 255, 209, 0.2);
  color: #a0a0b2;
  font-size: 0.75rem;
  line-height: 1.2;
}

.period-feedback .alert {
  flex: 1 1 100%;
  margin: 0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analytics-overview {
  background: rgba(20, 20, 33, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 18px 20px;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.analytics-metric {
  background: rgba(12, 12, 25, 0.85);
  border: 1px solid rgba(0, 255, 209, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analytics-metric.highlight {
  background: rgba(0, 255, 209, 0.14);
  border-color: rgba(0, 255, 209, 0.35);
}

.analytics-metric .metric-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0b2;
}

.analytics-metric .metric-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ededed;
}

.analytics-metric.highlight .metric-value {
  color: #8fff00;
}

.metric-note {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

.analytics-metric.highlight .metric-note {
  color: #b9f1dd;
}

.analytics-metric .metric-note[data-status='ok'] {
  color: #8fff00;
}

.analytics-metric .metric-note[data-status='warn'] {
  color: #facc15;
}

.analytics-metric .metric-note[data-status='alert'] {
  color: #f87171;
}

.assistant-panel .notifications-panel {
  box-shadow: none;
  background: rgba(24, 24, 40, 0.9);
}

.dashboard-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

.dashboard-content .dash-container {
  padding: 32px 32px 64px;
}

.profile-tools {
  flex-wrap: wrap;
  gap: 12px;
}

.profile-pill {
  background: rgba(0, 255, 209, 0.12);
  border-color: rgba(0, 255, 209, 0.4);
  color: #00ffd1;
}

.profile-pill strong {
  color: #8fff00;
}

@media (max-width: 1100px) {
  .dashboard-topbar {
    padding: 12px 18px;
  }

  .topbar-inner {
    gap: 16px;
  }

  .topbar-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .dashboard-sidebar {
    width: 72px;
    padding: 24px 12px;
    align-items: center;
  }

  .dashboard-main {
    margin-left: 72px;
    width: calc(100% - 72px);
  }

  .sidebar-logo {
    justify-content: center;
  }

  .sidebar-logo .logo-text {
    display: none;
  }

  .sidebar-nav {
    align-items: center;
  }

  .sidebar-link {
    justify-content: center;
    padding: 12px;
  }

  .sidebar-link .label {
    display: none;
  }

  .topbar-inner {
    align-items: flex-start;
  }

  .period-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .period-filter-controls {
    width: 100%;
    justify-content: space-between;
  }

  .period-feedback {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .period-summary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    position: relative;
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 20px;
    overflow: hidden;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    gap: 8px;
  }

  .sidebar-link {
    flex: 0 0 auto;
    padding: 10px;
  }

  .dashboard-main {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-topbar {
    position: static;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions,
  .topbar-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-dropdown-trigger {
    width: 100%;
    justify-content: center;
  }

  .topbar-dropdown-panel {
    width: 100%;
    box-sizing: border-box;
  }

  .dashboard-content .dash-container {
    padding: 24px 16px 48px;
  }
}

.goal-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(15, 23, 42, 0.6);
}

.goal-option span {
  font-weight: 600;
  color: var(--text);
}

.goal-option input {
  margin-top: 3px;
}

.goal-option:hover,
.goal-option input:focus-visible + span {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.goal-other {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text);
}

.goal-other input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
}

.goal-other input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.subtitle#goalsSummary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

#goalsSummary .summary-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

#goalsSummary .summary-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

#goalsSummary .summary-value {
  color: var(--muted);
  font-size: 14px;
}

.cashflow-options {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cashflow-options legend {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

.field-group input,
.field-group textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}

.field-group textarea {
  resize: vertical;
  min-height: 90px;
}

.category-confirm-message {
  font-size: 14px;
}

.category-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.category-confirm-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.category-confirm-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.category-confirm-list li {
  line-height: 1.4;
}

.category-confirm-message strong {
  color: var(--text);
}

.category-confirm-more {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tx-category-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-category-cell.editing {
  gap: 10px;
}

.tx-edit-container {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.tx-category-input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
}

.tx-category-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.tx-edit-actions {
  display: flex;
  gap: 4px;
}

.tx-save-category,
.tx-cancel-category {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tx-save-category {
  color: var(--brand);
  border-color: rgba(59, 130, 246, 0.5);
}

.tx-save-category:hover,
.tx-save-category:focus-visible {
  border-color: var(--brand);
  background: rgba(59, 130, 246, 0.15);
  outline: none;
}

.tx-cancel-category:hover,
.tx-cancel-category:focus-visible {
  border-color: var(--danger);
  color: var(--danger);
  outline: none;
}

.tx-edit-category {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tx-edit-category:hover,
.tx-edit-category:focus-visible {
  border-color: var(--brand);
  background: rgba(59, 130, 246, 0.15);
  outline: none;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.tone-options {
  margin: 0 0 18px;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tone-options legend {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.tone-option {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.6);
  transition: all 0.2s ease;
  align-items: flex-start;
}

.tone-option strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 3px;
}

.tone-option span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.tone-option input {
  margin-top: 4px;
}

.tone-option:hover,
.tone-option.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.tone-option input:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 2px;
}

.onboarding-status {
  min-height: 20px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.onboarding-status.ok {
  color: #86efac;
}

.onboarding-status.err {
  color: #fca5a5;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* Responsive Design */
@media (max-width: 899px) {
  .hero-grid { 
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-copy h1 {
    font-size: 36px;
  }
  
  .hero-copy p {
    font-size: 18px;
  }
  
  .benefits-header h2 {
    font-size: 32px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .security-privacy, .signup {
    padding: 60px 0;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: 28px;
  }
  
  .hero-copy p {
    font-size: 16px;
  }
  
  .benefits-header h2 {
    font-size: 28px;
  }
  
  .signup h2 {
    font-size: 28px;
  }
  
  .nav {
    flex-direction: column;
    gap: 4px;
  }
  
  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }
}
