/* ----------------------------------------------------------------------------
   100XGrowth — dark glass, growth-green glow accent
---------------------------------------------------------------------------- */
:root {
  --ink: #0B0F0D;
  --ink-2: #0e1310;
  --ink-3: #131a15;
  --accent: #3ECF8E;
  --accent-soft: #6bdba8;
  --accent-deep: #16A34A;
  --cream: #F4F7F5;
  --muted: #8BA396;
  --faint: #5d7469;
  --success: #3ECF8E;
  --warn: #FBBF24;
  --danger: #F87171;
  --radius: 1.1rem;
  --radius-lg: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-image:
    radial-gradient(ellipse 60% 50% at 12% -8%, rgba(62, 207, 142, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 45% at 95% 0%, rgba(62, 207, 142, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(62, 207, 142, 0.10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(62, 207, 142, 0.35) transparent;
}
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(62, 207, 142, 0.3); border-radius: 999px; }

/* ----------------------------------------------------------------------------
   Layout
---------------------------------------------------------------------------- */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Glass card */
.glass {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(62, 207, 142, 0.14);
  box-shadow: 0 10px 40px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .glass:hover {
    border-color: rgba(62, 207, 142, 0.3);
    box-shadow: 0 10px 40px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 24px rgba(62, 207, 142, 0.15);
  }
}

.card {
  padding: 18px;
  margin-bottom: 16px;
}

.card h2, .card h3 {
  margin-top: 0;
}

/* ----------------------------------------------------------------------------
   Nav
---------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(62, 207, 142, 0.14);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent);
}

.topbar .who {
  font-size: 0.85rem;
  color: var(--muted);
}
.topbar .who a { color: var(--accent-soft); }

/* Sticky header groups topbar + desktop topnav */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(62, 207, 142, 0.14);
}
.app-header .topbar {
  position: static;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

/* Shared nav icon sizing */
.nav-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-ic svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* --- Desktop top navigation (≥768px): pill tabs, icons + labels --- */
.topnav {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px 10px;
  gap: 6px;
  flex-wrap: wrap;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.topnav-link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.topnav-link.active {
  color: #fff;
  background: linear-gradient(160deg, rgba(62, 207, 142, 0.32), rgba(62, 207, 142, 0.1));
  border-color: rgba(62, 207, 142, 0.4);
  box-shadow: 0 0 18px -2px rgba(62, 207, 142, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.topnav-link.active .nav-ic { color: var(--accent-soft); }

/* --- Mobile bottom tab bar (<768px): fixed, glass, icons above labels --- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  background: rgba(11, 15, 13, 0.82);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(62, 207, 142, 0.16);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.6);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  gap: 2px;
}

.tabbar a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 1px 5px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none !important;
  transition: color 0.18s ease, background 0.18s ease;
}
.tabbar a .nav-ic svg {
  width: 21px;
  height: 21px;
}
.tabbar a .tab-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tabbar a:active {
  background: rgba(62, 207, 142, 0.08);
}
.tabbar a.active {
  color: var(--accent-soft);
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.18), rgba(62, 207, 142, 0.04));
}
.tabbar a.active .nav-ic svg {
  filter: drop-shadow(0 0 8px rgba(62, 207, 142, 0.8));
}

/* Nav responsive switch */
@media (min-width: 768px) {
  .tabbar { display: none; }
  .wrap { padding-bottom: 40px; margin-left: 220px; max-width: 900px; }
  .footer-note { padding-bottom: 20px; margin-left: 220px; }

  /* --- Left sidebar nav (desktop) --- */
  .app-header {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid rgba(62, 207, 142, 0.14);
    overflow-y: auto;
  }
  .app-header .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 14px;
  }
  .topnav {
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 4px 10px 16px;
    gap: 3px;
  }
  .topnav-link {
    width: 100%;
    border-radius: 10px;
    justify-content: flex-start;
  }
}

/* ----------------------------------------------------------------------------
   Goal header
---------------------------------------------------------------------------- */
.goal-header {
  padding: 20px 22px;
  margin: 14px 0 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.18), rgba(62, 207, 142, 0.04));
  border: 1px solid rgba(62, 207, 142, 0.22);
  box-shadow: 0 10px 40px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .goal-header:hover {
    border-color: rgba(62, 207, 142, 0.35);
    box-shadow: 0 10px 40px -14px rgba(0, 0, 0, 0.7), 0 0 24px rgba(62, 207, 142, 0.15);
  }
}

.goal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}

.goal-amount {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.goal-amount .big {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 24px rgba(62, 207, 142, 0.35);
}
.goal-amount .of {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.goal-chips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.stat-chip.green {
  background: rgba(62, 207, 142, 0.14);
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--accent-soft);
}

.progress-bar {
  margin-top: 14px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3ECF8E, #16A34A);
  box-shadow: 0 0 14px 1px rgba(62, 207, 142, 0.65);
  transition: width 0.4s ease;
}

/* ----------------------------------------------------------------------------
   Tasks / tick boxes
---------------------------------------------------------------------------- */
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.task-row:active {
  background: rgba(62, 207, 142, 0.08);
}
@media (hover: hover) {
  .task-row:hover, .milestone-row:hover {
    border-color: rgba(62, 207, 142, 0.28);
    background: rgba(62, 207, 142, 0.05);
  }
}
.task-row.done {
  border-color: rgba(77, 214, 122, 0.35);
  background: rgba(77, 214, 122, 0.08);
}

.checkbox {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(62, 207, 142, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: transparent;
  transition: all 0.15s ease;
}
@keyframes check-pop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.task-row.done .checkbox,
.milestone-row.done .checkbox {
  background: linear-gradient(160deg, var(--success), #16A34A);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px -2px rgba(62, 207, 142, 0.7);
  animation: check-pop 0.15s ease;
}

.task-text {
  flex: 1;
  font-size: 0.95rem;
}

.streak-badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.14);
  color: var(--accent-soft);
  white-space: nowrap;
}
.streak-badge.zero {
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
}

/* ----------------------------------------------------------------------------
   Transparency strip
---------------------------------------------------------------------------- */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.strip-chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.strip-chip .frac {
  font-weight: 700;
  color: var(--accent-soft);
}

/* ----------------------------------------------------------------------------
   Week grid
---------------------------------------------------------------------------- */
.week-grid {
  width: 100%;
  border-collapse: collapse;
}
.week-grid th {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  padding: 4px;
  text-align: center;
}
.week-grid td {
  padding: 6px 4px;
  text-align: center;
}
.week-grid .member-name {
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 10px;
}
.day-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
}
.day-dot.future {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

/* ----------------------------------------------------------------------------
   Milestones (month)
---------------------------------------------------------------------------- */
.milestone-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.milestone-row.done {
  border-color: rgba(77, 214, 122, 0.35);
  background: rgba(77, 214, 122, 0.08);
}
.milestone-meta {
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 2px;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.month-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  font-weight: 600;
}
.month-nav .label {
  font-weight: 800;
  font-size: 1.05rem;
}

/* ----------------------------------------------------------------------------
   Forms
---------------------------------------------------------------------------- */
label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 5px;
  margin-top: 12px;
  font-weight: 600;
}
label:first-child { margin-top: 0; }

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 0.95rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  background: linear-gradient(160deg, var(--accent), #16A34A);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(62, 207, 142, 0.55);
  width: 100%;
  margin-top: 16px;
}
.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: var(--cream);
}

.btn-small {
  width: auto;
  padding: 7px 12px;
  font-size: 0.78rem;
  margin-top: 0;
}

.btn-danger {
  background: linear-gradient(160deg, var(--danger), #b8302c);
}

/* ----------------------------------------------------------------------------
   Login / pick member
---------------------------------------------------------------------------- */
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 26px;
  text-align: center;
}
.login-logo {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.login-logo .accent { color: var(--accent-soft); }
.login-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 10px;
}

.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.member-card {
  padding: 18px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  cursor: pointer;
}
.member-card:active, .member-card:hover {
  border-color: var(--accent);
  background: rgba(62, 207, 142, 0.1);
}
.member-card .name {
  font-weight: 800;
  font-size: 1rem;
}
.member-card .role {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ----------------------------------------------------------------------------
   Revenue
---------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-card .label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stat-card .value {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 4px;
}

table.entries {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.entries th {
  text-align: left;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
table.entries td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  padding-top: 10px;
}
.bar-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
  position: relative;
}
.bar {
  width: 40%;
  border-radius: 6px 6px 0 0;
  min-height: 2px;
}
.bar.actual {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 10px 0 rgba(62, 207, 142, 0.5);
}
.bar.target {
  background: rgba(255, 255, 255, 0.15);
}
.bar-labels {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.bar-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.legend .sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.legend .sw.actual { background: var(--accent); }
.legend .sw.target { background: rgba(255,255,255,0.25); }

/* ----------------------------------------------------------------------------
   Ideas
---------------------------------------------------------------------------- */
.idea-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}
.idea-text {
  flex: 1;
  font-size: 0.9rem;
}
.idea-who {
  font-size: 0.72rem;
  color: var(--faint);
  display: block;
  margin-top: 2px;
}

.section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 20px 0 10px;
  font-weight: 700;
}

h1, h2, h3 { color: #fff; }

.small-muted {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-note {
  text-align: center;
  font-size: 0.68rem;
  color: var(--faint);
  padding: 4px 0 90px;
  letter-spacing: 0.03em;
}

/* Tabbar — 8 tabs, tighten for very small screens */
@media (max-width: 400px) {
  .tabbar a .tab-label { font-size: 0.54rem; }
  .tabbar a .nav-ic svg { width: 19px; height: 19px; }
}

/* ----------------------------------------------------------------------------
   Expense tab — quick add
---------------------------------------------------------------------------- */
.amount-input {
  font-size: 1.8rem !important;
  font-weight: 800;
  text-align: center;
  padding: 18px 14px !important;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.chip:active {
  background: rgba(62, 207, 142, 0.1);
}
.chip.selected {
  background: linear-gradient(160deg, rgba(62, 207, 142, 0.35), rgba(62, 207, 142, 0.15));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px 0 rgba(62, 207, 142, 0.35);
}

.date-toggle {
  margin-top: 14px;
}
.date-toggle summary {
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}

.day-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.expense-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.expense-row:last-child { border-bottom: none; }
.expense-main { flex: 1; min-width: 0; }
.expense-cat {
  font-weight: 700;
  font-size: 0.9rem;
}
.expense-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}
.expense-meta {
  font-size: 0.68rem;
  color: var(--faint);
  margin-top: 2px;
}
.expense-amt {
  flex: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--danger);
}

.btn-icon-del {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
}

/* ----------------------------------------------------------------------------
   Investing tab
---------------------------------------------------------------------------- */
.reminder-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.03));
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.reminder-icon {
  flex: none;
  font-size: 1.2rem;
  color: var(--warn);
}
.reminder-text {
  font-size: 0.85rem;
  color: var(--cream);
  line-height: 1.5;
}

.market-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.market-block {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.market-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}
.market-value {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 4px;
}
.market-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ----------------------------------------------------------------------------
   Loans tab (v1.2.1)
---------------------------------------------------------------------------- */
.loan-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .loan-summary { grid-template-columns: 1fr 1fr; }
  .loan-summary .stat-card:first-child { grid-column: 1 / -1; }
}

.loan-card { padding: 18px; }

.loan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.loan-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(160deg, var(--danger), #d97706);
  box-shadow: 0 0 14px -2px rgba(248, 113, 113, 0.6);
  white-space: nowrap;
}
.rate-chip {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--warn);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}

.loan-numbers {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.loan-outstanding {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--danger);
}
.loan-of {
  font-size: 0.78rem;
  color: var(--muted);
}
.loan-emi {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cream);
  margin-left: auto;
  white-space: nowrap;
}

.loan-progress { margin-top: 12px; height: 10px; }
.loan-paid {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-soft);
}
.loan-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.loan-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.loan-update-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.loan-update-form input[type="number"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-size: 0.88rem;
}
.loan-update-form .btn { white-space: nowrap; flex: none; }

.reminder-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-soft);
  text-decoration: none;
}
.reminder-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------------------
   v1.3: Weekly auto-reschedule (unavailability, reflow proposals, load bars)
---------------------------------------------------------------------------- */
.unavail-btn-wrap { margin: 10px 0 16px; }
.btn-unavail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warn);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-unavail:hover { background: rgba(251, 191, 36, 0.18); }

.moved-badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: var(--warn);
  white-space: nowrap;
  margin-right: 4px;
}

.origin-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.proposal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.proposal-card.type-needs_call, .proposal-card.type-needs_call_fixed {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}
.proposal-card.type-move_day, .proposal-card.type-reassign {
  border-color: rgba(62, 207, 142, 0.25);
}
.proposal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.proposal-text { font-weight: 700; font-size: 0.9rem; flex: 1; }
.proposal-flow {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.proposal-flow .arrow { color: var(--accent-soft); font-weight: 700; }
.proposal-tag {
  flex: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.proposal-tag.move_day { background: rgba(62, 207, 142, 0.14); color: var(--accent-soft); }
.proposal-tag.reassign { background: rgba(62, 207, 142, 0.14); color: var(--accent-soft); }
.proposal-tag.needs_call, .proposal-tag.needs_call_fixed {
  background: rgba(248, 113, 113, 0.16); color: var(--danger);
}
.proposal-override {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.load-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.load-bar-row:last-child { border-bottom: none; }
.load-bar-name { flex: none; width: 78px; font-weight: 700; font-size: 0.82rem; }
.load-bar-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.load-bar-fill { height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.load-bar-fill.green { background: linear-gradient(90deg, #3ECF8E, #16A34A); }
.load-bar-fill.amber { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.load-bar-fill.red { background: linear-gradient(90deg, #F87171, #DC2626); }
.load-bar-pct { flex: none; width: 46px; text-align: right; font-size: 0.78rem; font-weight: 700; color: var(--muted); }

/* ----------------------------------------------------------------------------
   v1.4: More-links (mobile catch-all), Lead Pipeline, Clients, Scoreboard
---------------------------------------------------------------------------- */
.more-links-card { margin-bottom: 16px; }
.more-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.more-link {
  display: block;
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
}
.more-link.active {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: linear-gradient(160deg, rgba(62, 207, 142, 0.18), rgba(62, 207, 142, 0.04));
}
@media (min-width: 768px) {
  .more-links-card { display: none; }
}

/* Lead pipeline kanban */
.lead-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
@media (max-width: 900px) {
  .lead-board { grid-template-columns: 1fr; overflow-x: visible; }
}
.lead-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.lead-col-title .count {
  background: rgba(62, 207, 142, 0.15);
  color: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
}
.lead-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
}
.lead-card .channel { font-weight: 800; font-size: 0.92rem; }
.lead-card .handle { color: var(--accent-soft); font-size: 0.78rem; }
.lead-card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.lead-card .hook {
  font-size: 0.8rem;
  color: var(--cream);
  margin: 6px 0;
  line-height: 1.35;
}
.lead-card .assign-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.lead-card select, .client-card select, .lead-card input[type=text] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.78rem;
}
.days-touch {
  font-size: 0.68rem;
  color: var(--warn);
  font-weight: 700;
}

/* Client cards */
.client-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
}
.client-card.renewal-soon {
  border-color: var(--warn);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}
.client-card .name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.client-card .mrr {
  font-weight: 800;
  color: var(--accent-soft);
}
.client-card .renewal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--warn);
  background: rgba(251, 191, 36, 0.14);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

/* v1.5: Venture cards */
.venture-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
}
.venture-card .name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.venture-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-soft);
  background: rgba(52, 211, 153, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}
.venture-owner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cream);
}
.venture-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.venture-actions select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.78rem;
}
.venture-edit {
  display: none;
}
.venture-edit.open {
  display: block;
}
.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

/* v1.5: dashboard ventures summary strip */
.ventures-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
}
.ventures-strip a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 700;
}

/* Nudge / reminder panel on Today */
.nudge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nudge-row:last-child { border-bottom: none; }
.nudge-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.nudge-actions button {
  font-size: 0.7rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  cursor: pointer;
  white-space: nowrap;
}
.nudge-actions button.primary {
  background: linear-gradient(160deg, rgba(62, 207, 142, 0.35), rgba(62, 207, 142, 0.15));
  border-color: var(--accent);
}

/* Scoreboard */
.score-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.score-bar-name { width: 90px; font-weight: 700; font-size: 0.82rem; flex: none; }
.score-bar-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3ECF8E, #16A34A);
}
.score-bar-val { width: 30px; text-align: right; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
