/* TimeGo home-polish.css
   Phone-only refinement of the dashboard Home tab (dark theme).
   Load it AFTER mobile-app.css:  <link rel="stylesheet" href="home-polish.css">
   Tune the three tokens below if your dark background differs. */

@media (max-width: 600px) {

  :root {
    --hp-bg: #0e100b;        /* app background (same as theme-color) */
    --hp-surface: #171a13;   /* tiles, stat strip */
    --hp-line: rgba(255, 255, 255, .07);
  }

  html body { background: var(--hp-bg) !important; }

  /* ---------- Greeting ---------- */
  html body #panel-home .hv-greet { margin-bottom: 16px !important; }
  html body #panel-home .hv-greet h1 {
    font-size: 1.9rem !important;
    letter-spacing: -.02em;
  }

  /* ---------- Featured trip card ---------- */
  html body #panel-home .hv-feature {
    min-height: 250px !important;
    border-radius: 28px !important;
    padding: 22px !important;
    border: 1px solid var(--hp-line) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45) !important;
  }
  html body #panel-home .hv-feature::before {
    background: linear-gradient(to top,
      rgba(8, 9, 6, .92) 0%,
      rgba(8, 9, 6, .55) 42%,
      rgba(8, 9, 6, .08) 100%) !important;
  }
  html body #panel-home .hv-feature h2 {
    font-size: 2.1rem !important;
    letter-spacing: -.02em;
  }
  html body #panel-home .hv-feature .hv-tag {
    background: rgba(201, 242, 58, .16) !important;
    color: #c9f23a !important;
    border: 1px solid rgba(201, 242, 58, .35);
    backdrop-filter: blur(8px);
  }
  html body #panel-home .hv-feature .hv-cta:not(.ghost) {
    background: #c9f23a !important;
    color: #10120a !important;
    padding: 13px 24px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(201, 242, 58, .25);
  }

  /* ---------- Quick-action tiles ----------
     6-column grid: first two tiles are wide (Explore, Plan),
     the rest are three per row. */
  html body #panel-home .hv-actions {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 10px !important;
  }

  html body #panel-home .hv-act {
    --a: #c9f23a;
    grid-column: span 2;
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-end;
    gap: 10px !important;
    min-height: 92px;
    padding: 14px !important;
    border-radius: 22px !important;
    border: 1px solid var(--hp-line) !important;
    background: var(--hp-surface) !important;
    color: #f3f5ee !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    text-align: left;
    box-shadow: none !important;
    transition: transform .15s ease, border-color .15s ease;
  }
  html body #panel-home .hv-act:active { transform: scale(.96); border-color: var(--a) !important; }

  /* wide primary tiles */
  html body #panel-home .hv-act:nth-child(1),
  html body #panel-home .hv-act:nth-child(2) {
    grid-column: span 3;
    flex-direction: row;
    align-items: center !important;
    justify-content: flex-start;
    min-height: 74px;
    font-size: .98rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--a) 24%, var(--hp-surface)) 0%,
      var(--hp-surface) 75%) !important;
    border-color: color-mix(in srgb, var(--a) 40%, transparent) !important;
  }

  /* icon holder */
  html body #panel-home .hv-act i {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.25rem !important;
    color: var(--a) !important;
    background: color-mix(in srgb, var(--a) 16%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--a) 30%, transparent);
  }
  html body #panel-home .hv-act i svg { stroke: var(--a) !important; color: var(--a) !important; }

  /* one accent per tile so each feature is recognisable */
  html body #panel-home .hv-act:nth-child(1) { --a: #c9f23a; }
  html body #panel-home .hv-act:nth-child(2) { --a: #f2a65a; }
  html body #panel-home .hv-act:nth-child(3) { --a: #6fc3ff; }
  html body #panel-home .hv-act:nth-child(4) { --a: #5fe3b0; }
  html body #panel-home .hv-act:nth-child(5) { --a: #ff8a6b; }
  html body #panel-home .hv-act:nth-child(6) { --a: #b79bff; }
  html body #panel-home .hv-act:nth-child(7) { --a: #8be07a; }
  html body #panel-home .hv-act:nth-child(8) { --a: #ffd166; }

  /* ---------- Stats strip ---------- */
  html body #panel-home .hv-stats {
    background: var(--hp-surface) !important;
    border: 1px solid var(--hp-line) !important;
    border-radius: 22px !important;
    box-shadow: none !important;
  }
  html body #panel-home .hv-stat b { color: #c9f23a !important; font-size: 1.35rem !important; }
  html body #panel-home .hv-stat span { color: #9aa08f !important; }
  html body #panel-home .hv-stat + .hv-stat { border-left-color: var(--hp-line) !important; }

  /* ---------- Section headings and cards ---------- */
  html body #panel-home .hv-head h2 { color: #f3f5ee !important; font-size: 1.1rem !important; }
  html body #panel-home .hv-link { color: #c9f23a !important; }
  html body #panel-home .hv-card {
    border: 1px solid var(--hp-line);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .4) !important;
  }
}