:root {
  --bg: #091215;
  --bg-soft: #122028;
  --card: #f5f8f7;
  --ink: #122028;
  --ink-soft: #4b6470;
  --primary: #00b894;
  --primary-dark: #06836b;
  --accent: #ff8b36;
  --line: #dbe8e5;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, #1a343f 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #263f4c 0%, transparent 32%),
    var(--bg);
  color: var(--ink);
}

h1,
h2,
strong {
  font-family: "Space Grotesk", sans-serif;
}

.app-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 14px 96px;
}

.hero {
  color: #e9fffb;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

h1 {
  margin: 4px 0;
  font-size: 2rem;
}

.subtitle {
  margin: 0;
  color: #c4dbd6;
  line-height: 1.35;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.17);
}

h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.option-group {
  margin: 12px 0;
}

.label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

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

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--ink);
}

.chip.selected {
  background: #d7fff3;
  border-color: #9ae8d7;
  color: #0e6a58;
  font-weight: 700;
}

.primary-btn {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #00d9b0 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.status {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  margin-bottom: 10px;
}

.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.4;
  font-size: 0.9rem;
}

.bubble p {
  margin: 0;
}

.bubble.ai {
  align-self: flex-start;
  background: #eaf8f2;
  border: 1px solid #d5ebe2;
}

.bubble.user {
  align-self: flex-end;
  background: #142c33;
  color: #f6fbfa;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.quick {
  border: 1px solid #cce7de;
  background: #f2faf7;
  color: #0f5f4f;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.chat-input {
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 11px;
  font-size: 0.9rem;
}

.chat-input button {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
}

.pill {
  font-size: 0.75rem;
  background: #e7f3ef;
  color: #0f6453;
  padding: 5px 8px;
  border-radius: 999px;
}

.pill.accent {
  background: #ffe9d8;
  color: #ab5c22;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plan-list li {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.plan-list span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: right;
}

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

.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.stats-grid span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.stats-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 18, 21, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 14px;
  gap: 6px;
}

.tab {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cce3de;
  padding: 9px;
  font-family: "Space Grotesk", sans-serif;
}

.tab.active {
  background: rgba(0, 184, 148, 0.2);
  color: #fff;
}

@media (min-width: 880px) {
  .app-shell {
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 24px;
  }

  .hero,
  .onboarding {
    grid-column: 1 / -1;
  }

  .bottom-nav {
    position: static;
    grid-column: 1 / -1;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 14px;
  }
}
