:root {
  --navy-950: #07162f;
  --navy-900: #0a1d3b;
  --navy-850: #0e2549;
  --blue-700: #1f5eff;
  --blue-600: #2f6eff;
  --blue-500: #4d83ff;
  --blue-300: #9bbcff;
  --blue-100: #eaf1ff;
  --cyan: #61d6ff;
  --white: #ffffff;
  --text: #eef5ff;
  --muted: #a9bbd6;
  --muted-2: #7890b2;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(170, 201, 255, 0.16);
  --green: #55dfa7;
  --gold: #d9af52;
  --danger: #ff848f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--navy-950); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 74% 4%, rgba(47, 110, 255, 0.22), transparent 31%),
    radial-gradient(circle at 36% 85%, rgba(30, 90, 200, 0.16), transparent 34%),
    var(--navy-950);
  color: var(--text);
}

button, input { font: inherit; }

button { color: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  background: rgba(4, 17, 37, 0.84);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  margin-bottom: 44px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(31, 94, 255, .35);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; color: var(--muted-2); font-size: 11px; }

.nav { display: grid; gap: 8px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: .2s ease;
}

.nav-item:hover { background: var(--surface); color: var(--white); }
.nav-item.active {
  color: var(--white);
  background: linear-gradient(90deg, rgba(47,110,255,.24), rgba(47,110,255,.08));
  border-color: rgba(95, 145, 255, .24);
}

.nav-icon { width: 22px; text-align: center; font-weight: 700; }

.sidebar-note {
  display: flex;
  gap: 11px;
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}
.sidebar-note strong { font-size: 12px; }
.sidebar-note p { margin: 5px 0 0; color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.privacy-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(85, 223, 167, .12);
}

.main { min-width: 0; padding: 26px 42px 64px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin-bottom: 28px;
}
.topbar h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.04em; }

.eyebrow {
  margin: 0;
  color: var(--blue-300);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.ghost-button, .secondary-button, .primary-button {
  border-radius: 12px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: .2s ease;
}
.ghost-button, .secondary-button { background: var(--surface); color: var(--muted); }
.ghost-button:hover, .secondary-button:hover { color: var(--white); background: var(--surface-strong); }
.primary-button {
  border-color: transparent;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-700));
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(31, 94, 255, .28);
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.07); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: 42px;
  align-items: center;
  min-height: 430px;
  padding: 54px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(14, 49, 101, .95), rgba(8, 28, 59, .84)),
    var(--navy-900);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -130px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(40, 107, 255, .18);
  filter: blur(4px);
}

.hero-copy, .hero-visual { position: relative; z-index: 1; }
.pill, .year-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(131, 174, 255, .22);
  background: rgba(84, 135, 255, .1);
  color: #cfe0ff;
  font-size: 11px;
  font-weight: 700;
}
.hero h2 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .99;
  letter-spacing: -.058em;
}
.hero p { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 11px; margin-top: 28px; }

.hero-visual { display: grid; gap: 14px; }
.metric-card {
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.metric-card.featured { min-height: 190px; display: flex; flex-direction: column; justify-content: center; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin-top: 9px; font-size: 31px; letter-spacing: -.04em; }
.metric-card.featured strong { font-size: 53px; }
.metric-card small { display: block; margin-top: 10px; color: var(--muted-2); line-height: 1.45; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 44px 0 20px;
}
.section-heading h2, .section-heading h3 { margin: 7px 0 0; letter-spacing: -.035em; }
.section-heading h2 { font-size: 31px; }
.section-heading h3 { font-size: 26px; }
.section-description { margin: 10px 0 0; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  min-height: 215px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.feature-number { color: var(--blue-300); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.feature-card h4 { margin: 45px 0 10px; font-size: 18px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.add-card-slot {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(139, 179, 255, .35);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
  transition: .2s ease;
}
.add-card-slot:hover { border-color: var(--blue-500); background: rgba(47,110,255,.08); color: var(--white); }
.plus-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: rgba(62, 119, 255, .17);
  color: var(--blue-300);
  font-size: 27px;
  font-weight: 400;
}
.add-card-slot small { color: var(--muted-2); }

.wallet-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  border: 1px solid rgba(255, 224, 151, .22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(207, 158, 52, .93), rgba(110, 72, 13, .96)),
    #8f691c;
  box-shadow: 0 22px 50px rgba(0,0,0,.2);
}
.wallet-card-top { display: flex; justify-content: space-between; gap: 12px; }
.wallet-card p { margin: 0; font-size: 10px; letter-spacing: .13em; }
.wallet-card h3 { margin: 8px 0 0; font-size: 23px; letter-spacing: -.04em; }
.wallet-card-bottom { display: flex; justify-content: space-between; align-items: end; }
.wallet-card-bottom span { display: block; font-size: 10px; opacity: .8; }
.wallet-card-bottom strong { display: block; margin-top: 4px; }
.remove-card {
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 9px;
  padding: 6px 9px;
  background: rgba(0,0,0,.13);
  cursor: pointer;
  font-size: 11px;
}

.empty-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(47,110,255,.13);
  color: var(--blue-300);
  font-size: 34px;
}
.empty-state h3 { margin: 18px 0 7px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

.tracker-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}
.card-selector {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
  align-self: start;
}
.selector-label { margin: 2px 4px 13px; color: var(--muted-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.tracker-card-button {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(214, 175, 90, .2);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(169, 123, 24, .36), rgba(88, 58, 5, .3));
  cursor: pointer;
  text-align: left;
}
.tracker-card-button span { display: block; font-size: 10px; opacity: .72; }
.tracker-card-button strong { display: block; margin-top: 4px; }

.tracker-main { min-width: 0; }
.summary-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(22, 63, 127, .82), rgba(9, 31, 65, .88)),
    var(--navy-900);
  box-shadow: var(--shadow);
}
.summary-card h3 { margin: 7px 0 22px; font-size: 27px; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.summary-grid > div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.summary-grid span { display: block; color: var(--muted); font-size: 11px; }
.summary-grid strong { display: block; margin-top: 8px; font-size: 25px; letter-spacing: -.04em; }
.effective-box.positive { border-color: rgba(85,223,167,.34); background: rgba(85,223,167,.09); }
.effective-box.positive strong { color: var(--green); }

.value-progress { margin-top: 20px; }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-500), var(--cyan)); transition: width .3s ease; }

.benefits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 2px 13px;
}
.benefits-header h3 { margin: 0; }
.benefits-header p { margin: 5px 0 0; color: var(--muted-2); font-size: 12px; }

.benefit-list { display: grid; gap: 13px; }
.benefit-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.benefit-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.benefit-title-wrap { display: flex; gap: 13px; }
.benefit-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(47,110,255,.13);
  color: var(--blue-300);
}
.benefit-card h4 { margin: 0; font-size: 16px; }
.benefit-card p { margin: 6px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.5; }
.benefit-amount { text-align: right; }
.benefit-amount strong { display: block; font-size: 22px; letter-spacing: -.04em; }
.benefit-amount span { color: var(--muted-2); font-size: 10px; }
.period-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 18px;
}
.period-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.period-meta strong { color: var(--text); }
.entry-form { display: flex; gap: 8px; }
.money-input {
  width: 120px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0,0,0,.14);
}
.money-input span { color: var(--muted-2); font-size: 12px; }
.money-input input {
  width: 100%;
  padding: 9px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}
.log-button {
  border: 0;
  border-radius: 10px;
  padding: 10px 13px;
  background: var(--blue-600);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.log-button:hover { filter: brightness(1.08); }
.entry-history { margin-top: 13px; }
.entry-history summary { color: var(--muted-2); font-size: 11px; cursor: pointer; }
.history-list { display: grid; gap: 6px; margin-top: 9px; }
.history-entry {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 11px;
}
.history-entry button { border: 0; background: transparent; color: var(--danger); cursor: pointer; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 10, 24, .74);
  backdrop-filter: blur(10px);
}
.modal {
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: #0a1d3b;
  box-shadow: var(--shadow);
}
.modal-header { display: flex; justify-content: space-between; align-items: start; }
.modal-header h2 { margin: 6px 0 0; }
.close-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 13px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}
.search-box input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}
.search-result-card {
  width: 100%;
  display: grid;
  grid-template-columns: 105px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}
.search-result-card:hover { border-color: rgba(93, 145, 255, .55); background: var(--surface-strong); }
.mini-credit-card {
  height: 66px;
  padding: 11px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: .08em;
}
.mini-credit-card.gold { background: linear-gradient(135deg, #ddb65d, #876013); color: white; }
.mini-credit-card strong { font-size: 13px; }
.result-copy strong, .result-copy span { display: block; }
.result-copy span { margin-top: 6px; color: var(--muted-2); font-size: 11px; }
.result-action { color: var(--blue-300); font-size: 12px; font-weight: 700; }
.modal-footnote { margin: 14px 2px 0; color: var(--muted-2); font-size: 10px; line-height: 1.5; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 13px 16px;
  border: 1px solid rgba(85,223,167,.28);
  border-radius: 12px;
  background: #123b38;
  box-shadow: var(--shadow);
  font-size: 12px;
}

.hidden { display: none !important; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 92px minmax(0,1fr); }
  .sidebar { padding: 24px 14px; }
  .brand > span:last-child, .nav-item:not(.active) { }
  .brand strong, .brand small, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; }
  .nav-icon { font-size: 18px; }
  .sidebar-note { display: none; }
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    z-index: 15;
    left: 0; right: 0; bottom: 0; top: auto;
    height: 74px;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-right: 0;
    border-top: 1px solid var(--border);
  }
  .brand, .sidebar-note { display: none; }
  .nav { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .nav-item, .nav-item.active { justify-content: center; padding: 12px; font-size: 0; }
  .nav-icon { font-size: 20px; }
  .main { padding: 18px 18px 105px; }
  .topbar { margin-bottom: 16px; }
  .hero { padding: 28px 22px; border-radius: 22px; }
  .hero h2 { font-size: 42px; }
  .hero-actions { flex-direction: column; }
  .mini-grid, .summary-grid { grid-template-columns: 1fr; }
  .tracker-layout { grid-template-columns: 1fr; }
  .card-selector { display: none; }
  .benefit-top, .period-row { grid-template-columns: 1fr; display: grid; }
  .benefit-amount { text-align: left; }
  .entry-form { width: 100%; }
  .money-input { flex: 1; }
  .search-result-card { grid-template-columns: 82px 1fr; }
  .result-action { display: none; }
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.time-button { display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.time-button span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.time-button strong { color: var(--text); font-size: 12px; }
.mini-credit-card.sapphire { background: linear-gradient(135deg, #244ec7, #101f67); color: white; }
.wallet-card.sapphire-card {
  border-color: rgba(134, 166, 255, .28);
  background: linear-gradient(135deg, rgba(46, 88, 205, .96), rgba(13, 29, 94, .98));
}
.tracker-card-button.sapphire-card {
  border-color: rgba(112, 151, 255, .28);
  background: linear-gradient(135deg, rgba(45, 86, 201, .42), rgba(12, 28, 91, .4));
}
.tracker-card-button.active-card { outline: 2px solid rgba(105, 153, 255, .48); }
.time-modal { width: min(560px, 100%); }
.time-explanation { color: var(--muted); line-height: 1.6; font-size: 13px; }
.date-field { display: grid; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.date-field input { width: 100%; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.05); color: white; color-scheme: dark; }
.time-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 13px; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.anniversary-note { display: inline-flex; margin-top: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 10px; }
@media (max-width: 740px) {
  .topbar-actions { gap: 6px; }
  .time-button span { display: none; }
  .time-shortcuts { grid-template-columns: 1fr; }
}


/* --- Benefit Wallet V3 additions --- */
.nav { gap: 6px; }
.dashboard-strip {
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px;
}
.dashboard-tile {
  min-height:125px; padding:20px; border:1px solid var(--border); border-radius:18px;
  background:var(--surface); text-align:left; cursor:pointer; transition:.2s ease;
}
.dashboard-tile:hover { transform:translateY(-2px); background:var(--surface-strong); border-color:rgba(93,145,255,.42); }
.dashboard-tile span,.dashboard-tile strong,.dashboard-tile small { display:block; }
.dashboard-tile span { color:var(--muted); font-size:11px; }
.dashboard-tile strong { margin-top:10px; font-size:28px; letter-spacing:-.04em; }
.dashboard-tile small { margin-top:7px; color:var(--muted-2); line-height:1.4; }
.streak-card {
  display:flex; align-items:center; gap:15px; padding:18px 20px; border:1px solid rgba(255,183,77,.2);
  border-radius:18px; background:linear-gradient(135deg,rgba(255,160,45,.11),rgba(255,255,255,.04));
}
.streak-flame { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; color:#ffc36a; background:rgba(255,173,60,.13); transform:rotate(45deg); }
.streak-card span,.streak-card strong,.streak-card small { display:block; }
.streak-card span { color:var(--muted); font-size:11px; }
.streak-card strong { margin-top:4px; font-size:21px; }
.streak-card small { margin-top:4px; color:var(--muted-2); line-height:1.4; }

.wallet-card-bottom { gap:16px; }
.effective-mini { margin-top:6px; }
.wallet-progress-button { border:0; background:transparent; cursor:pointer; text-align:center; }
.wallet-progress-button small { margin-top:5px; color:rgba(255,255,255,.8); }
.mini-ring {
  display:grid!important; place-items:center; width:66px; height:66px; padding:5px; border-radius:50%;
}
.mini-ring::before { content:""; grid-area:1/1; width:52px; height:52px; border-radius:50%; background:rgba(11,30,60,.82); }
.mini-ring i { grid-area:1/1; position:relative; z-index:1; font-style:normal; font-size:12px; font-weight:800; }
.wallet-complete { box-shadow:0 0 0 1px rgba(85,223,167,.3),0 22px 55px rgba(20,120,80,.18); }

.benefit-actions { display:flex; align-items:flex-start; gap:14px; }
.activation-button {
  border:1px solid var(--border); border-radius:9px; padding:7px 10px; cursor:pointer; background:rgba(255,255,255,.05); font-size:10px; font-weight:700;
}
.activation-button.deactivate { color:var(--muted); }
.activation-button.activate { color:var(--green); border-color:rgba(85,223,167,.28); }
.inactive-section { margin-top:34px; }
.inactive-benefit { opacity:.56; filter:saturate(.55); }
.inactive-benefit:hover { opacity:.82; }
.inactive-note,.small-empty {
  margin-top:15px; padding:12px 14px; border-radius:11px; background:rgba(255,255,255,.035); color:var(--muted-2); font-size:11px; line-height:1.55;
}
.small-empty { border:1px dashed var(--border); }
.anniversary-note { display:inline-block; margin-top:8px; color:var(--blue-300); font-size:9px; text-transform:uppercase; letter-spacing:.09em; }

.calendar-layout { display:grid; grid-template-columns:minmax(0,1fr) 315px; gap:20px; }
.calendar-main { min-width:0; display:grid; gap:18px; }
.calendar-header-card {
  display:flex; justify-content:space-between; align-items:center; padding:25px; border:1px solid var(--border); border-radius:21px;
  background:linear-gradient(135deg,rgba(22,63,127,.76),rgba(9,31,65,.86)); box-shadow:var(--shadow);
}
.calendar-header-card h3 { margin:7px 0 5px; font-size:28px; }
.calendar-header-card p { margin:0; color:var(--muted); }
.calendar-completion { text-align:center; }
.calendar-completion strong,.calendar-completion span { display:block; }
.calendar-completion strong { font-size:35px; }
.calendar-completion span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.12em; }
.checklist { display:grid; gap:10px; }
.checklist-item {
  display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; padding:16px;
  border:1px solid var(--border); border-radius:15px; background:var(--surface); text-align:left; cursor:pointer;
}
.checklist-item:hover { background:var(--surface-strong); }
.checklist-item.complete { border-color:rgba(85,223,167,.24); background:rgba(85,223,167,.055); }
.check-state { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:rgba(47,110,255,.13); color:var(--blue-300); font-weight:800; }
.checklist-item.complete .check-state { background:rgba(85,223,167,.14); color:var(--green); }
.check-copy strong,.check-copy small { display:block; }
.check-copy small { margin-top:4px; color:var(--muted-2); }
.check-amount { color:var(--muted); font-size:12px; font-weight:700; }
.checklist-item.complete .check-amount { color:var(--green); }

.timeline-card,.at-risk-panel { padding:20px; border:1px solid var(--border); border-radius:19px; background:var(--surface); }
.month-history { display:grid; grid-template-columns:repeat(6,1fr); gap:9px; }
.month-history-item { padding:13px 8px; border-radius:12px; background:rgba(255,255,255,.035); text-align:center; }
.month-history-item span,.month-history-item strong,.month-history-item small { display:block; }
.month-history-item span { color:var(--muted); font-size:10px; text-transform:uppercase; }
.month-history-item strong { margin-top:7px; }
.month-history-item small { margin-top:4px; color:var(--muted-2); font-size:9px; }
.month-history-item.complete { background:rgba(85,223,167,.08); border:1px solid rgba(85,223,167,.18); }
.at-risk-panel { align-self:start; position:sticky; top:25px; }
.at-risk-panel h3 { margin:7px 0 7px; }
.at-risk-intro { margin:0 0 16px; color:var(--muted-2); font-size:11px; line-height:1.5; }
.risk-item {
  display:grid; grid-template-columns:32px minmax(0,1fr) auto; gap:9px; align-items:center; width:100%; padding:12px; margin-top:8px;
  border:1px solid rgba(255,132,143,.19); border-radius:12px; background:rgba(255,132,143,.055); text-align:left; cursor:pointer;
}
.risk-badge { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:rgba(255,132,143,.15); color:var(--danger); font-weight:800; }
.risk-item strong,.risk-item small { display:block; }
.risk-item small { margin-top:3px; color:var(--muted-2); font-size:9px; }
.risk-item em { color:var(--danger); font-size:10px; font-style:normal; }
.all-clear { padding:18px; border-radius:13px; background:rgba(85,223,167,.07); }
.all-clear strong { color:var(--green); }
.all-clear p { margin:6px 0 0; color:var(--muted-2); font-size:11px; line-height:1.5; }

.score-layout { display:grid; gap:18px; }
.score-hero-card {
  display:grid; grid-template-columns:190px minmax(0,1fr); gap:30px; align-items:center; padding:35px; border:1px solid var(--border); border-radius:24px;
  background:linear-gradient(135deg,rgba(22,63,127,.82),rgba(9,31,65,.9)); box-shadow:var(--shadow);
}
.score-ring {
  --score-angle:0deg; display:grid; place-items:center; width:165px; height:165px; border-radius:50%;
  background:conic-gradient(var(--green) var(--score-angle),rgba(255,255,255,.09) 0deg); padding:10px;
}
.score-ring::before { content:""; grid-area:1/1; width:132px; height:132px; border-radius:50%; background:#0b2448; }
.score-ring div { grid-area:1/1; position:relative; z-index:1; text-align:center; }
.score-ring strong { font-size:50px; letter-spacing:-.06em; }
.score-ring span { color:var(--muted); }
.score-copy h3 { margin:8px 0 9px; font-size:31px; }
.score-copy p:last-child { margin:0; max-width:650px; color:var(--muted); line-height:1.65; }
.score-breakdown { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.score-breakdown article { padding:20px; border:1px solid var(--border); border-radius:17px; background:var(--surface); }
.score-breakdown span,.score-breakdown strong { display:block; }
.score-breakdown span { color:var(--muted); font-size:11px; }
.score-breakdown strong { margin:9px 0 13px; font-size:22px; }
.score-explainer { padding:22px; border:1px solid var(--border); border-radius:17px; background:var(--surface); }
.score-explainer h3 { margin:0 0 9px; }
.score-explainer p { margin:0; color:var(--muted); line-height:1.65; }

@media (max-width:1100px) {
  .calendar-layout { grid-template-columns:1fr; }
  .at-risk-panel { position:static; }
}
@media (max-width:900px) {
  .dashboard-strip,.score-breakdown { grid-template-columns:1fr; }
  .month-history { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:740px) {
  .nav { grid-template-columns:repeat(5,1fr); }
  .dashboard-strip { grid-template-columns:1fr; }
  .calendar-header-card,.score-hero-card { grid-template-columns:1fr; }
  .score-ring { margin:auto; }
  .benefit-actions { flex-direction:column; align-items:flex-end; }
  .month-history { grid-template-columns:repeat(2,1fr); }
}


/* --- Netcarda Phase One brand integration --- */
:root {
  --netcarda-green: #55dfa7;
  --netcarda-blue: #2f7dff;
  --netcarda-light-blue: #5eabff;
}

.netcarda-brand { gap: 11px; }
.brand-logo-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 20px rgba(31, 94, 255, .26));
}
.netcarda-brand strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.045em;
  color: #f5f9ff;
}
.netcarda-brand .brand-v { color: var(--netcarda-light-blue); }
.netcarda-brand small {
  margin-top: 6px;
  color: #8ca9d0;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 8px;
  font-weight: 700;
}
.hero-brand-lockup {
  width: min(360px, 82%);
  margin: 18px 0 8px;
}
.hero-brand-lockup img { display: block; width: 100%; height: auto; }
.hero .pill { gap: 7px; }
.hero .pill img { width: 18px; height: 18px; }
.hero h2 { margin-top: 13px; }
.privacy-dot { background: var(--netcarda-green); box-shadow: 0 0 0 5px rgba(85, 223, 167, .12); }

.app-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 42px;
  padding: 22px 2px 4px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--text); font-size: 14px; }
.footer-brand span { margin-top: 3px; font-size: 10px; }
.footer-values { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer-values span {
  padding: 6px 9px;
  border: 1px solid rgba(85, 223, 167, .16);
  border-radius: 999px;
  background: rgba(85, 223, 167, .045);
  color: #9dcfbe;
  font-size: 9px;
  font-weight: 600;
}
.app-footer > small {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 9px;
}

.effective-box.positive,
.wallet-complete {
  border-color: rgba(85,223,167,.38);
}
.effective-box.positive strong { color: var(--netcarda-green); }
.progress-track span {
  background: linear-gradient(90deg, var(--blue-500), var(--cyan), var(--netcarda-green));
}

@media (max-width: 980px) {
  .netcarda-brand strong, .netcarda-brand small { display: none; }
  .brand-logo-icon { width: 48px; height: 48px; }
}
@media (max-width: 740px) {
  .app-footer { grid-template-columns: 1fr; }
  .footer-values { justify-content: flex-start; }
  .app-footer > small { text-align: left; }
  .hero-brand-lockup { width: 92%; }
}


/* --- Netcarda Phase One v1.2 --- */
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.settings-card { padding:23px; border:1px solid var(--border); border-radius:19px; background:var(--surface); }
.settings-card h3 { margin:12px 0 9px; }
.settings-card p { color:var(--muted); font-size:12px; line-height:1.65; }
.settings-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:rgba(47,110,255,.13); color:var(--blue-300); font-size:19px; }
.settings-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:17px; }
.import-label { display:inline-flex; align-items:center; justify-content:center; }
.backup-warning { display:flex; flex-direction:column; gap:5px; margin-top:15px; padding:13px; border:1px solid rgba(255,183,77,.18); border-radius:11px; background:rgba(255,183,77,.055); }
.backup-warning strong { color:#ffd18c; font-size:11px; }
.backup-warning span { color:var(--muted-2); font-size:10px; line-height:1.5; }
.anniversary-settings-list { display:grid; gap:9px; margin-top:16px; }
.anniversary-setting { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px; border-radius:11px; background:rgba(255,255,255,.035); }
.anniversary-setting strong,.anniversary-setting small { display:block; }
.anniversary-setting strong { font-size:11px; }
.anniversary-setting small { margin-top:3px; color:var(--muted-2); font-size:9px; }
.anniversary-setting input { border:1px solid var(--border); border-radius:9px; padding:8px; background:#091b38; color:white; }
.plain-list { margin:13px 0 0; padding-left:18px; color:var(--muted); font-size:11px; line-height:1.8; }
.report-link { display:inline-block; margin-top:10px; text-decoration:none; }
.version-line { display:flex; justify-content:space-between; gap:15px; padding:9px 0; border-bottom:1px solid var(--border); color:var(--muted); font-size:11px; }
.version-line strong { color:var(--text); }
.wallet-card-actions { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.card-date-button { border:1px solid rgba(255,255,255,.2); border-radius:8px; padding:5px 8px; background:rgba(0,0,0,.12); color:white; cursor:pointer; font-size:9px; }
.onboarding-modal { width:min(680px,100%); text-align:center; }
.onboarding-logo { width:280px; max-width:78%; margin:0 auto 13px; }
.onboarding-logo img { width:100%; }
.onboarding-modal h2 { margin:9px auto 22px; max-width:530px; font-size:29px; }
.onboarding-steps { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; text-align:left; }
.onboarding-steps > div { display:flex; gap:10px; padding:13px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.onboarding-steps span { display:grid; place-items:center; width:27px; height:27px; flex:0 0 auto; border-radius:50%; background:rgba(47,110,255,.16); color:var(--blue-300); font-size:11px; font-weight:800; }
.onboarding-steps p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.onboarding-steps strong { color:var(--text); }
.mini-credit-card.platinum { background:linear-gradient(135deg,#eef3f8,#8291a4); color:#061a3a; }
.mini-credit-card.venture { background:linear-gradient(135deg,#10284f,#7b1733); }
.mini-credit-card.reserve { background:linear-gradient(135deg,#101820,#3d5e73); }
.mini-credit-card.citi { background:linear-gradient(135deg,#1e63bf,#092653); }
.mini-credit-card.elite { background:linear-gradient(135deg,#080b10,#777f8b); }
.wallet-card.platinum-card { background:linear-gradient(135deg,#8795a5,#263648); }
.wallet-card.venture-card { background:linear-gradient(135deg,#1d3e70,#4f1731); }
.wallet-card.reserve-card { background:linear-gradient(135deg,#202b33,#527184); }
.wallet-card.citi-card { background:linear-gradient(135deg,#1f65ba,#092751); }
.wallet-card.elite-card { background:linear-gradient(135deg,#15191f,#626b76); }
@media(max-width:900px){.settings-grid{grid-template-columns:1fr;}}
@media(max-width:740px){.nav{grid-template-columns:repeat(6,1fr)}.onboarding-steps{grid-template-columns:1fr}.anniversary-setting{align-items:flex-start;flex-direction:column}}

.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wallet-grid{display:block}.issuer-wallet-group{margin-bottom:28px}.issuer-group-heading{display:flex;justify-content:space-between;margin:0 2px 11px;padding-bottom:9px;border-bottom:1px solid var(--border)}.issuer-group-heading span{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-300)}.issuer-group-heading small{color:var(--muted-2)}.issuer-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px;margin-bottom:20px}.add-card-slot{width:100%;min-height:150px}.benefits-tracker-layout{display:grid;gap:18px}.benefits-card-group{border:1px solid var(--border);border-radius:21px;overflow:hidden;background:var(--surface)}.benefits-card-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;background:linear-gradient(135deg,rgba(23,66,133,.55),rgba(8,29,61,.55));border-bottom:1px solid var(--border)}.benefits-card-heading p{margin:0;color:var(--blue-300);font-size:9px;font-weight:800;letter-spacing:.14em}.benefits-card-heading h3{margin:5px 0 0}.benefits-card-heading>span{color:var(--muted);font-size:10px}.noncredit-benefit{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 22px;border-bottom:1px solid rgba(170,201,255,.08);background:rgba(255,255,255,.018)}.noncredit-benefit.active{background:rgba(85,223,167,.045)}.noncredit-benefit h4{margin:0;font-size:14px}.noncredit-benefit p{margin:6px 0 0;color:var(--muted-2);font-size:10px;line-height:1.5}.noncredit-benefit small{display:block;margin-top:7px;color:var(--blue-300);font-size:9px}.benefit-toggle{display:flex;align-items:center;gap:8px;min-width:126px;border:1px solid var(--border);border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.04);color:var(--muted);cursor:pointer;font-size:9px}.benefit-toggle span{width:17px;height:17px;border-radius:50%;background:rgba(255,255,255,.13)}.benefit-toggle.on{color:var(--green);border-color:rgba(85,223,167,.3)}.benefit-toggle.on span{background:var(--green)}.benefit-date-field{display:grid;gap:5px;min-width:180px}.benefit-date-field span{color:var(--muted-2);font-size:9px}.benefit-date-field input{border:1px solid var(--border);border-radius:9px;padding:8px;background:#091b38;color:white}.benefit-complete-button{border:1px solid rgba(85,223,167,.25);border-radius:10px;padding:9px 12px;background:rgba(85,223,167,.07);color:var(--green);cursor:pointer;font-size:10px}.benefit-counter{display:flex;align-items:center;gap:10px}.benefit-counter button{width:30px;height:30px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:white;cursor:pointer}@media(max-width:740px){.nav{grid-template-columns:repeat(7,1fr)}.noncredit-benefit{align-items:flex-start;flex-direction:column}.benefit-date-field{width:100%;min-width:0}}

/* --- Netcarda Phase One v1.4 refinements --- */
.wallet-grid { display:grid; }
.search-results { max-height: 520px; overflow-y:auto; padding-right:4px; }
.search-issuer-group { padding:15px 4px 7px; color:var(--blue-300); font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.search-issuer-group:first-child { padding-top:2px; }
.search-result-card + .search-result-card { margin-top:8px; }
.search-issuer-group + .search-result-card { margin-top:0; }
.tracker-card-button.gold-card { border-color:rgba(232,190,95,.30); background:linear-gradient(135deg,rgba(205,155,49,.38),rgba(94,62,8,.38)); }
.tracker-card-button.platinum-card { border-color:rgba(210,222,235,.28); background:linear-gradient(135deg,rgba(160,174,190,.32),rgba(43,58,74,.42)); }
.tracker-card-button.venture-card { border-color:rgba(131,83,113,.30); background:linear-gradient(135deg,rgba(29,62,112,.44),rgba(79,23,49,.44)); }
.tracker-card-button.reserve-card { border-color:rgba(124,157,177,.30); background:linear-gradient(135deg,rgba(32,43,51,.70),rgba(82,113,132,.38)); }
.tracker-card-button.citi-card { border-color:rgba(79,141,211,.30); background:linear-gradient(135deg,rgba(31,101,186,.42),rgba(9,39,81,.52)); }
.tracker-card-button.elite-card { border-color:rgba(147,155,166,.30); background:linear-gradient(135deg,rgba(21,25,31,.82),rgba(98,107,118,.42)); }
.tracker-card-button.active-card { outline:2px solid rgba(255,255,255,.52); box-shadow:0 0 0 3px rgba(47,125,255,.15); }


/* --- Netcarda v1 Beta polish --- */
.danger-zone {
  border-color: rgba(255, 92, 105, .28);
  background: linear-gradient(145deg, rgba(255, 92, 105, .055), rgba(255,255,255,.025));
}
.danger-icon {
  background: rgba(255, 92, 105, .13);
  color: var(--danger);
}
.danger-button {
  border: 1px solid rgba(255, 92, 105, .35);
  border-radius: 11px;
  padding: 10px 14px;
  background: rgba(255, 75, 90, .14);
  color: #ff9ca5;
  font-weight: 800;
  cursor: pointer;
}
.danger-button:hover {
  background: rgba(255, 75, 90, .22);
  color: white;
}
.disabled-report {
  opacity: .55;
  cursor: not-allowed;
}
.reset-confirm-modal { text-align: center; }
.reset-warning-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: rgba(255, 92, 105, .12);
  color: var(--danger);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 0 0 9px rgba(255, 92, 105, .045);
}
.danger-eyebrow { color: #ff9ca5; }
.reset-data-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  text-align: left;
}
.reset-data-list span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 92, 105, .13);
  border-radius: 10px;
  background: rgba(255, 92, 105, .04);
  color: var(--muted);
  font-size: 10px;
}
.reset-backup-note {
  color: #ffc4c9;
  font-size: 10px;
}
.reset-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
@media(max-width:560px){
  .reset-data-list{grid-template-columns:1fr}
  .reset-modal-actions{flex-direction:column}
}
.segmented-date [data-date-part="year"]{grid-column:1/-1}}

/* --- Netcarda v1 Beta MM/DD/YYYY date patch --- */
.masked-date-input {
  width: 150px;
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  background: #091b38;
  color: white;
  outline: none;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.masked-date-input::placeholder { color: var(--muted-2); }
.masked-date-input:focus {
  border-color: rgba(94,171,255,.72);
  box-shadow: 0 0 0 3px rgba(47,125,255,.11);
}
.masked-date-input.invalid-date {
  border-color: rgba(255,92,105,.72);
  box-shadow: 0 0 0 3px rgba(255,92,105,.08);
}
.benefit-date-field .masked-date-input {
  margin-top: 3px;
}
@media(max-width:740px){
  .masked-date-input { width: 100%; min-width: 0; }
}

.version-unlock{width:100%;border:0;background:transparent;cursor:pointer;font:inherit}.developer-card{border-color:rgba(97,214,255,.25)}.developer-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}.developer-section-heading{display:flex;justify-content:space-between;gap:12px}.switch-row{display:flex;gap:8px;color:var(--muted);font-size:10px}.developer-time-controls{display:grid;gap:10px;margin-top:10px}.developer-button-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.developer-json-output{width:100%;min-height:220px;margin-top:10px;background:#06152e;color:#cde0ff;border:1px solid var(--border);border-radius:10px;padding:10px;font-family:monospace;font-size:10px}.developer-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.developer-metrics span,.developer-log div{padding:9px;border-radius:9px;background:rgba(255,255,255,.035);font-size:9px}.developer-metrics strong{display:block;font-size:15px}.developer-log{display:grid;gap:6px;max-height:220px;overflow:auto}.developer-log span{display:block;color:var(--muted-2);font-size:8px}.developer-overlay{position:fixed;right:14px;bottom:14px;z-index:100;display:grid;gap:3px;padding:10px 12px;border:1px solid rgba(97,214,255,.35);border-radius:11px;background:rgba(5,20,43,.93);pointer-events:none}.developer-overlay strong{color:var(--cyan);font-size:10px}.developer-overlay span{color:var(--muted);font-size:9px}@media(max-width:740px){.developer-button-grid{grid-template-columns:1fr}}
.brand-final-a{color:var(--netcarda-light-blue,#5eabff)}.benefits-header-actions{display:flex;align-items:center;gap:9px}.compact-action{padding:8px 11px;font-size:10px}.historical-modal{width:min(780px,100%)}.historical-controls{margin:15px 0}.historical-controls label{display:grid;gap:6px;max-width:250px;color:var(--muted);font-size:10px}.historical-controls select{border:1px solid var(--border);border-radius:10px;padding:10px;background:#091b38;color:white}.historical-credit-grid{display:grid;gap:9px;max-height:460px;overflow:auto}.historical-credit-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:18px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.025)}.historical-credit-row strong,.historical-credit-row small{display:block}.historical-credit-row small{margin-top:5px;color:var(--muted-2);font-size:9px}.historical-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:17px}.history-entry-actions{display:flex;gap:7px}.history-entry-actions button{border:0;background:transparent;color:var(--blue-300);cursor:pointer;font-size:9px}.history-entry-actions button:last-child{color:var(--danger)}.edit-entry-form{display:grid;gap:14px}.edit-entry-form>label{display:grid;gap:6px;color:var(--muted);font-size:10px}.edit-entry-actions{display:flex;justify-content:flex-end;gap:9px}.developer-login{display:flex;gap:8px;margin-top:13px}.developer-login input{flex:1;border:1px solid var(--border);border-radius:9px;padding:9px 10px;background:#091b38;color:white}@media(max-width:650px){.historical-credit-row{grid-template-columns:1fr}.historical-footer{flex-direction:column;align-items:stretch}}.entry-history summary{display:flex;align-items:center;justify-content:space-between}.history-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 3px;color:var(--muted-2);font-size:9px}.history-add-past{border:0;background:transparent;color:var(--blue-300);cursor:pointer;font-size:9px;font-weight:700}.history-add-past:hover{text-decoration:underline}.previous-activity-block{margin-top:13px;padding-top:12px;border-top:1px solid rgba(170,201,255,.09)}.previous-activity-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.previous-activity-heading strong,.previous-activity-heading small{display:block}.previous-activity-heading strong{font-size:10px;color:var(--text)}.previous-activity-heading small{margin-top:3px;color:var(--muted-2);font-size:8px}.previous-activity-add{border:0;background:transparent;color:var(--blue-300);cursor:pointer;font-size:9px;font-weight:700}.history-empty-inline{padding-top:9px;color:var(--muted-2);font-size:9px}.entry-history{margin-top:9px}.developer-login{display:flex;gap:8px;margin-top:14px}.developer-login input{flex:1;border:1px solid var(--border);border-radius:9px;padding:9px 10px;background:#091b38;color:white}.developer-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}.developer-section-heading{display:flex;justify-content:space-between;gap:12px}.switch-row{display:flex;gap:8px;color:var(--muted);font-size:10px}.developer-time-controls{display:grid;gap:10px;margin-top:10px}.developer-button-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.developer-json-output{width:100%;min-height:220px;margin-top:10px;background:#06152e;color:#cde0ff;border:1px solid var(--border);border-radius:10px;padding:10px;font-family:monospace;font-size:10px}.developer-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.developer-metrics span,.developer-log div{padding:9px;border-radius:9px;background:rgba(255,255,255,.035);font-size:9px}.developer-metrics strong{display:block;font-size:15px}.developer-log{display:grid;gap:6px;max-height:220px;overflow:auto}.developer-log span{display:block;color:var(--muted-2);font-size:8px}.developer-overlay{position:fixed;right:14px;bottom:14px;z-index:100;display:grid;gap:3px;padding:10px 12px;border:1px solid rgba(97,214,255,.35);border-radius:11px;background:rgba(5,20,43,.93);pointer-events:none}.developer-overlay strong{color:var(--cyan);font-size:10px}.developer-overlay span{color:var(--muted);font-size:9px}@media(max-width:740px){.previous-activity-heading{align-items:flex-start;flex-direction:column}.developer-button-grid{grid-template-columns:1fr}}
.benefit-card.benefit-at-risk{
  border-color:rgba(255,92,105,.42);
  background:linear-gradient(145deg,rgba(255,92,105,.055),rgba(255,255,255,.018));
}
.benefit-card.credit-focus-pulse{animation:netcarda-credit-focus 1.8s ease}
@keyframes netcarda-credit-focus{
  0%{box-shadow:0 0 0 0 rgba(94,171,255,0)}
  22%{box-shadow:0 0 0 5px rgba(94,171,255,.22)}
  100%{box-shadow:0 0 0 0 rgba(94,171,255,0)}
}


/* Netcarda Free v1.0.4 */
.netcarda-wordmark{
  display:inline-flex;
  align-items:baseline;
  white-space:nowrap;
  letter-spacing:-0.035em;
}
.netcarda-wordmark-base{
  display:inline-block;
}
.netcarda-wordmark .brand-final-a{
  display:inline-block;
  margin-left:.035em;
  letter-spacing:0;
}
.hero-brand-lockup{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.hero-brand-lockup img{
  width:82px;
  height:82px;
  flex:0 0 auto;
}
.hero-brand-lockup > div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.hero-brand-lockup .hero-wordmark{
  font-size:48px;
  line-height:1;
}
.hero-brand-lockup small{
  margin-top:8px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.38em;
  color:var(--muted);
}
@media(max-width:740px){
  .hero-brand-lockup img{width:64px;height:64px}
  .hero-brand-lockup .hero-wordmark{font-size:38px}
}

/* Netcarda Free v1.0.5 standardized vector branding */
.netcarda-brand{display:block;width:100%;max-width:178px;padding:0}
.sidebar-full-logo{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 20px rgba(31,94,255,.20))}
.hero-brand-lockup{display:block;width:min(390px,88%);margin:18px 0 10px}
.hero-brand-lockup img{display:block;width:100%;height:auto}
@media(max-width:740px){.hero-brand-lockup{width:min(330px,94%)}}


/* Dynamic Add Card picker compatibility: backend returns *-card classes. */
.mini-credit-card.gold-card { background: linear-gradient(135deg, #ddb65d, #876013); color: white; }
.mini-credit-card.platinum-card { background: linear-gradient(135deg, #eef3f8, #8291a4); color: #061a3a; }
.mini-credit-card.sapphire-card { background: linear-gradient(135deg, #244ec7, #101f67); color: white; }
.mini-credit-card.reserve-card { background: linear-gradient(135deg, #101820, #3d5e73); color: white; }
.mini-credit-card.venture-card { background: linear-gradient(135deg, #10284f, #7b1733); color: white; }
.mini-credit-card.citi-card { background: linear-gradient(135deg, #1e63bf, #092653); color: white; }
.mini-credit-card.elite-card { background: linear-gradient(135deg, #080b10, #777f8b); color: white; }


/* --- Netcarda v1.2 Custom Cards --- */
.custom-section-heading { align-items:flex-start; }
.custom-add-top:disabled,
#custom-selector-add:disabled { opacity:.45; cursor:not-allowed; }
.custom-empty-icon {
  width:92px; height:64px; margin:0 auto 18px; display:grid; place-items:center;
  color:var(--blue-300);
}
.custom-empty-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:3; }
.free-limit-note { display:block; margin-top:12px; color:var(--muted-2); font-size:10px; }

.custom-tracker-layout {
  display:grid; grid-template-columns:240px minmax(0,1fr); gap:20px; align-items:start;
}
.custom-card-selector {
  position:sticky; top:18px; padding:14px; border:1px solid var(--border); border-radius:18px; background:var(--surface);
}
.custom-selector-heading {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;
}
.custom-selector-heading button {
  width:30px; height:30px; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.05); color:var(--text); cursor:pointer;
}
.custom-selector-card {
  width:100%; display:flex; align-items:center; gap:11px; padding:11px; border:1px solid transparent; border-radius:12px; background:transparent; color:var(--text); text-align:left; cursor:pointer;
}
.custom-selector-card:hover,.custom-selector-card.active { background:rgba(255,255,255,.06); border-color:var(--border); }
.custom-selector-card span:last-child { min-width:0; }
.custom-selector-card strong,.custom-selector-card small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.custom-selector-card small { margin-top:3px; color:var(--muted-2); font-size:10px; }
.custom-selector-swatch { flex:0 0 auto; width:32px; height:22px; border-radius:6px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); }

.custom-detail { min-width:0; }
.custom-card-hero {
  position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:22px;
  padding:26px; border:1px solid color-mix(in srgb,var(--custom-card-color) 55%,transparent);
  border-radius:22px; background:linear-gradient(135deg,color-mix(in srgb,var(--custom-card-color) 48%,#0a1830),#09172d 72%);
  box-shadow:var(--shadow);
}
.custom-card-hero::after {
  content:""; position:absolute; width:220px; height:220px; right:-90px; top:-120px; border-radius:50%;
  background:color-mix(in srgb,var(--custom-card-color) 35%,transparent); filter:blur(8px); pointer-events:none;
}
.custom-card-hero.expiring { box-shadow:0 0 0 1px rgba(255,105,105,.38),var(--shadow); }
.custom-card-hero.expired { opacity:.76; }
.custom-card-face { position:relative; z-index:1; min-height:128px; display:flex; flex-direction:column; justify-content:space-between; }
.custom-card-face .custom-card-type { color:rgba(255,255,255,.68); font-size:9px; letter-spacing:.18em; font-weight:800; }
.custom-card-face strong { max-width:520px; font-size:29px; letter-spacing:-.035em; }
.custom-card-face small { color:rgba(255,255,255,.7); }
.custom-balance-block { position:relative; z-index:1; align-self:center; min-width:180px; text-align:right; }
.custom-balance-block span,.custom-balance-block strong,.custom-balance-block small { display:block; }
.custom-balance-block span { color:rgba(255,255,255,.65); font-size:10px; }
.custom-balance-block strong { margin-top:7px; font-size:31px; }
.custom-balance-block small { margin-top:5px; color:rgba(255,255,255,.62); }
.custom-card-actions { position:relative; z-index:1; grid-column:1/-1; display:flex; gap:9px; }
.danger-inline-button { padding:10px 13px; border:1px solid rgba(255,100,100,.3); border-radius:11px; background:rgba(160,30,30,.14); color:#ffb1b1; cursor:pointer; }

.custom-expiry-warning {
  display:flex; gap:8px; flex-direction:column; margin-top:14px; padding:15px 17px; border:1px solid rgba(255,96,96,.28); border-radius:14px; background:rgba(160,34,34,.12);
}
.custom-expiry-warning span { color:var(--muted); font-size:11px; line-height:1.5; }
.custom-expiry-warning.expired { border-color:rgba(255,170,90,.28); background:rgba(150,85,20,.12); }

.custom-activity-card { margin-top:18px; padding:22px; border:1px solid var(--border); border-radius:20px; background:var(--surface); }
.custom-activity-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.custom-activity-heading h3 { margin:5px 0 0; }
.custom-log-form { display:grid; grid-template-columns:130px 140px 150px minmax(140px,1fr) auto; gap:9px; align-items:center; }
.custom-log-form select,.custom-log-form input,.custom-entry-edit-form select,.custom-entry-edit-form input,.custom-card-form input {
  width:100%; min-height:42px; border:1px solid var(--border); border-radius:11px; background:rgba(255,255,255,.05); color:var(--text); padding:10px 12px;
}
.custom-log-form select,.custom-entry-edit-form select { color-scheme:dark; }
.custom-money { min-height:42px; }
.custom-balance-summary { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.custom-balance-summary span { padding:8px 11px; border:1px solid var(--border); border-radius:10px; color:var(--muted); font-size:10px; }
.custom-balance-summary strong { margin-left:4px; color:var(--text); }
.custom-history { margin-top:16px; }
.custom-history-row { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:12px 2px; border-top:1px solid var(--border); }
.custom-history-row > div:first-child strong,.custom-history-row > div:first-child span { display:block; }
.custom-history-row > div:first-child span { margin-top:4px; color:var(--muted-2); font-size:10px; }
.custom-history-row > div:last-child { display:flex; gap:6px; }
.custom-history-row button { border:0; background:transparent; color:var(--blue-300); cursor:pointer; font-size:10px; }
.custom-spend { color:#ffb0b0; }
.custom-add-value { color:var(--green); }

.custom-card-form,.custom-entry-edit-form { display:grid; gap:14px; }
.custom-card-form label,.custom-entry-edit-form label { display:grid; gap:7px; color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.custom-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.color-field { display:flex; align-items:center; gap:11px; min-height:42px; }
.color-field input[type="color"] { width:64px; padding:4px; }
.color-field small { color:var(--muted-2); text-transform:none; letter-spacing:0; font-weight:500; }
.custom-modal-note { margin:0; color:var(--muted-2); font-size:11px; line-height:1.5; }
.custom-modal-actions { gap:9px; }
.custom-risk-badge { color:#ffcf75; background:rgba(255,190,70,.14)!important; }
.custom-expiry-risk { border-color:rgba(255,190,70,.18); }

/* Mobile bottom navigation: all tabs remain reachable in portrait mode. */
@media (max-width:740px) {
  .sidebar { overflow:hidden; padding:8px 8px 10px; }
  .nav {
    display:flex;
    width:100%;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    flex-wrap:nowrap;
    justify-content:flex-start;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }
  .nav::-webkit-scrollbar { display:none; }
  .nav-item,.nav-item.active {
    flex:0 0 58px;
    min-width:58px;
    height:54px;
    padding:10px 8px;
    scroll-snap-align:center;
  }
  .custom-tracker-layout { grid-template-columns:1fr; }
  .custom-card-selector { position:static; }
  .custom-card-hero { grid-template-columns:1fr; }
  .custom-balance-block { text-align:left; }
  .custom-log-form { grid-template-columns:1fr; }
  .custom-form-grid { grid-template-columns:1fr; }
  .custom-history-row { align-items:flex-start; }
}

/* v1.2.2 mobile nav polish: bottom bar is navigation-only. */
@media (max-width:740px) {
  .sidebar > .netcarda-brand,
  .sidebar > .brand { display:none !important; }
  .sidebar { padding-left:8px; padding-right:8px; }
  .nav { flex:1 1 auto; max-width:100%; }
}

/* First-run legal acceptance */
.onboarding-legal-consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:18px 0 12px;
  padding:12px 13px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
  text-align:left;
  cursor:pointer;
}
.onboarding-legal-consent input{
  flex:0 0 auto;
  width:16px;
  height:16px;
  margin-top:1px;
  accent-color:var(--blue);
}
.onboarding-legal-consent a{
  color:var(--blue-300);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
}
#finish-onboarding:disabled{
  opacity:.38;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
  filter:saturate(.35);
}

/* v1.4 card visuals and Business preview */
.wallet-card,.tracker-card-button,.mini-credit-card{color:var(--card-text,#fff);background:linear-gradient(135deg,var(--card-primary,#35567a),var(--card-secondary,#1b304b))!important}
.wallet-card{border-color:rgba(255,255,255,.18)}
.tracker-card-button{border-color:rgba(255,255,255,.13)}
.tracker-card-button.active-card{border-color:var(--blue-300);box-shadow:0 0 0 1px rgba(93,145,255,.2)}
.mini-credit-card{min-height:68px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.13);box-shadow:inset 0 1px rgba(255,255,255,.12),0 7px 18px rgba(0,0,0,.14)}
.mini-credit-card::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 12%,rgba(255,255,255,.10) 43%,transparent 68%);pointer-events:none}
.catalog-type-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0 16px;padding:5px;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.025)}
.catalog-type-tab{position:relative;min-height:45px;border:0;border-radius:9px;background:transparent;color:var(--muted-2);cursor:pointer;font-weight:800}
.catalog-type-tab::after{content:"";position:absolute;left:18%;right:18%;bottom:4px;height:2px;border-radius:99px;background:transparent}
.catalog-type-tab.personal.active{color:var(--blue-300);background:rgba(47,110,255,.08)}
.catalog-type-tab.personal.active::after,.catalog-type-tab.business.active::after{background:var(--blue-300)}
.catalog-type-tab.business{display:flex;justify-content:center;align-items:center;gap:7px}
.catalog-type-tab.business small{padding:3px 6px;border:1px solid rgba(205,168,76,.17);border-radius:999px;color:#9b8453;font-size:8px;font-weight:900;letter-spacing:.1em}
.catalog-type-tab.business.active{color:#f0ca63;overflow:hidden;background:linear-gradient(110deg,rgba(101,70,8,.17),rgba(211,165,43,.15),rgba(101,70,8,.17))}
.catalog-type-tab.business.active span,.catalog-type-tab.business.active small{position:relative;z-index:2}
.catalog-type-tab.business.active small{color:#f5d979;border-color:rgba(239,201,102,.4)}
.catalog-type-tab.business.active::before{content:"";position:absolute;top:-90%;bottom:-90%;left:-28%;width:18%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,238,163,.68),transparent);animation:business-tab-shine 2.8s ease-in-out infinite}
@keyframes business-tab-shine{0%,30%{left:-28%}72%,100%{left:125%}}
.search-result-card.business-locked{opacity:.56;filter:saturate(.38)}
.search-result-card.business-locked:hover{opacity:.72;border-color:rgba(215,174,77,.35)}
.search-result-card.business-locked .mini-credit-card{filter:grayscale(.55)}
.plus-lock{display:inline-flex;padding:5px 8px;border:1px solid rgba(219,178,75,.34);border-radius:999px;color:#e7c568;font-size:9px;font-weight:900;letter-spacing:.09em}
@media(max-width:620px){.search-result-card{grid-template-columns:82px minmax(0,1fr) auto;gap:10px}.mini-credit-card{height:54px;min-height:54px}.result-copy strong{font-size:12px}}

/* Netcarda Plus v0.1 */
:root{
  --plus-gold:#e2b542;
  --plus-gold-bright:#ffe28a;
  --plus-gold-dark:#765000;
}
.plus-logo-wrap{position:relative;display:inline-flex;align-items:center;padding-right:24px}
.plus-mark{
  position:absolute;right:0;top:48%;transform:translateY(-50%);
  font-size:27px;font-weight:950;line-height:1;
  background:linear-gradient(110deg,#8a5b00,#e2b542 38%,#fff0aa 52%,#d8a528 68%,#795100);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 7px rgba(233,188,66,.32));
}
.plus-mark::after{
  content:"";position:absolute;inset:-9px -8px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,229,133,.26),transparent 68%);
  animation:plus-mark-pulse 2.2s ease-in-out infinite;z-index:-1
}
@keyframes plus-mark-pulse{0%,100%{transform:scale(.8);opacity:.35}50%{transform:scale(1.2);opacity:.9}}
.plus-brand .sidebar-full-logo,.plus-hero-brand img{filter:drop-shadow(0 0 8px rgba(218,177,65,.14))}
.plus-pill{border-color:rgba(225,181,66,.32)!important;background:rgba(134,92,8,.13)!important;color:#f2d57d!important}
.plus-sidebar-note{border-color:rgba(225,181,66,.18)!important}
.plus-sync-dot{width:8px;height:8px;border-radius:50%;background:var(--plus-gold);box-shadow:0 0 12px rgba(226,181,66,.65)}
.plus-account-button{
  display:flex;align-items:center;gap:9px;padding:7px 11px;border:1px solid rgba(226,181,66,.28);
  border-radius:13px;background:linear-gradient(135deg,rgba(119,80,0,.18),rgba(226,181,66,.1));
  color:var(--text);cursor:pointer;text-align:left
}
.plus-account-button strong,.plus-account-button small{display:block}
.plus-account-button small{margin-top:2px;color:#c7aa68;font-size:9px}
.account-avatar{
  display:grid;place-items:center;width:31px;height:31px;border-radius:50%;
  background:linear-gradient(135deg,#6e4a00,#e0b23e 60%,#fff0a1);color:#171008;font-weight:950
}
.account-avatar.large{width:48px;height:48px;font-size:18px}
.plus-eyebrow{color:#e8c35e!important}
.plus-account-summary{display:flex;gap:13px;align-items:center;margin:18px 0}
.plus-account-summary strong,.plus-account-summary small{display:block}
.plus-account-summary small{margin-top:4px;color:var(--muted)}
.plus-entitlements{display:grid;gap:7px;margin:16px 0}
.plus-entitlements span{display:flex;justify-content:space-between;gap:20px;padding:11px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.035)}
.plus-entitlements em{font-style:normal;color:#e8c35e}
.plus-account-actions{display:flex;gap:8px;flex-wrap:wrap}
.plus-link-button{text-decoration:none}
.catalog-type-tab.business.active{color:#ffe28a}
.search-result-card.business-plus{border-color:rgba(225,181,66,.16)}
.search-result-card.business-plus:hover{border-color:rgba(225,181,66,.42);box-shadow:0 0 25px rgba(225,181,66,.08)}
.plus-lock.unlocked{color:#ffe18a;border-color:rgba(226,181,66,.45);background:rgba(130,88,7,.16)}
.streak-flame{
  background:none!important;
  width:46px!important;height:52px!important;
  display:grid!important;place-items:center!important;
  transform:scale(var(--flame-scale,.9));
  transform-origin:center bottom;
  transition:transform .35s ease;
  filter:drop-shadow(0 0 9px rgba(255,128,38,.4))
}
.streak-flame::before{
  content:"🔥";font-size:36px;line-height:1;display:block;
  animation:plus-flame 1.15s ease-in-out infinite
}
.streak-flame.hot-streak::before{animation-duration:.72s;filter:drop-shadow(0 0 8px rgba(255,193,54,.42))}
@keyframes plus-flame{0%,100%{transform:rotate(-2deg) scale(.96)}50%{transform:rotate(2deg) scale(1.08)}}
.plus-confetti-piece{
  position:fixed;top:-22px;z-index:9999;width:8px;height:14px;border-radius:2px;
  pointer-events:none;animation:plus-confetti-fall linear forwards
}
@keyframes plus-confetti-fall{
  to{transform:translate(var(--drift),110vh) rotate(760deg);opacity:.15}
}
/* Plus gets 20 Custom Cards */
.free-limit-note{color:#c9b06f}
@media(max-width:740px){
  .plus-account-button span:not(.account-avatar){display:block}
  .plus-account-button{
    width:auto;
    min-width:0;
    max-width:52vw;
    padding:7px 10px;
  }
  .plus-account-button strong{
    display:block;
    white-space:nowrap;
    font-size:10px;
    line-height:1.15;
  }
  .plus-account-button small{
    display:block;
    max-width:145px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:8px;
    line-height:1.2;
  }
  .plus-account-button{padding:6px}
  .plus-mark{font-size:22px}
}

/* Plus v0.2 prototype polish */
.plus-logo-image{display:block;width:214px;max-width:100%;height:auto;object-fit:contain}
.plus-hero-logo-image{display:block;width:min(390px,88%);height:auto}
.plus-brand{margin-bottom:38px}
.plus-hero-brand{display:flex;align-items:center}
.plus-logo-wrap,.plus-mark{display:none!important}
.streak-flame{background:transparent!important;border:0!important;box-shadow:none!important;clip-path:none!important;border-radius:0!important;transform:scale(var(--flame-scale,.34))!important;transform-origin:center bottom!important}
.streak-flame::after{content:none!important;display:none!important}
.streak-flame.zero-streak{opacity:.48;filter:grayscale(.1) drop-shadow(0 0 3px rgba(255,128,38,.18))}
.streak-flame.zero-streak::before{animation-duration:1.8s!important}
.plus-gate-modal{text-align:left}
.plus-gate-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:14px;border-radius:14px;background:linear-gradient(135deg,#6f4b00,#d9a928 52%,#fff0a6);color:#171008;font-size:28px;font-weight:950;box-shadow:0 0 24px rgba(226,181,66,.22)}
.plus-password-field{display:grid;gap:7px;margin:18px 0 10px;color:var(--muted);font-size:11px;font-weight:800}
.plus-password-field input{width:100%;padding:13px 14px;border:1px solid rgba(226,181,66,.24);border-radius:11px;background:rgba(255,255,255,.055);color:var(--text);outline:none}
.plus-password-field input:focus{border-color:rgba(255,226,138,.62);box-shadow:0 0 0 3px rgba(226,181,66,.08)}
.plus-gate-error{margin:0 0 10px;color:#ff9aa2;font-size:11px}
.plus-gold-button{border-color:rgba(226,181,66,.5)!important;background:linear-gradient(110deg,#765000,#d9aa2c 42%,#ffe991 55%,#d4a328 68%,#765000)!important;color:#171008!important}
@media(max-width:740px){.plus-logo-image{width:190px}.plus-hero-logo-image{width:min(330px,92%)}}

/* Plus v0.3 dev cosmetic polish */
.plus-wordmark{position:relative;display:inline-block;line-height:0;overflow:visible}
.plus-wordmark-base{display:block;width:100%;height:auto}
.plus-wordmark-sidebar{width:214px}
.plus-wordmark-hero{width:min(390px,88vw)}
.plus-wordmark-gold-a,.plus-wordmark-plus{
  position:absolute;top:20.5%;font-family:Inter,Arial,sans-serif;font-weight:900;line-height:1;
  background:linear-gradient(110deg,#725000 0%,#d7a72c 30%,#fff2ae 48%,#d9a72b 64%,#7a5200 100%);
  background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 7px rgba(230,184,59,.28));animation:plus-wordmark-shine 2.8s linear infinite;z-index:3
}
.plus-wordmark-gold-a::before{content:"";position:absolute;inset:-6% -8%;z-index:-1;background:#071a35}
.plus-wordmark-gold-a{left:83.5%;font-size:2.15em}
.plus-wordmark-plus{left:94.2%;font-size:2.05em}
@keyframes plus-wordmark-shine{0%{background-position:180% 0}100%{background-position:-60% 0}}

/* Kill the old diamond/base under the flame */
.streak-flame{
  background:none!important;border:none!important;outline:none!important;box-shadow:none!important;
  clip-path:none!important;border-radius:0!important;transform:scale(var(--flame-scale,.28))!important;
  transform-origin:center bottom!important
}
.streak-flame::after,.streak-flame>*::after{content:none!important;display:none!important;background:none!important;border:0!important;box-shadow:none!important}
.streak-flame::before{background:none!important;border:none!important;box-shadow:none!important}

/* Plus-only developer controls */
.dev-fab{position:fixed;right:16px;bottom:16px;z-index:8900;width:48px;height:48px;border-radius:50%;
border:1px solid rgba(255,220,112,.42);background:linear-gradient(135deg,#5d4100,#d5a52c,#fff0a0);
color:#171008;font-size:10px;font-weight:950;letter-spacing:.08em;cursor:pointer;
box-shadow:0 8px 30px rgba(0,0,0,.35),0 0 18px rgba(218,171,44,.18)}
.dev-panel{position:fixed;right:18px;bottom:78px;z-index:8899;width:min(330px,calc(100vw - 36px));padding:16px;
border:1px solid rgba(255,220,112,.25);border-radius:16px;background:#0a1830;box-shadow:0 18px 50px rgba(0,0,0,.5)}
.dev-panel-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}
.dev-panel-header p{margin:0 0 3px;color:#e8c45f}.dev-panel-header strong{font-size:14px}
.dev-panel-header button{border:0;background:transparent;color:var(--text);font-size:22px;cursor:pointer}
.dev-panel label{display:grid;grid-template-columns:1fr auto;gap:7px 10px;margin:12px 0;color:var(--muted);font-size:10px;font-weight:800}
.dev-panel input[type="range"]{grid-column:1/2;width:100%}.dev-panel output{grid-column:2;grid-row:2}
.dev-panel input[type="number"]{grid-column:1/-1;width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:rgba(255,255,255,.05);color:var(--text)}
.dev-panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:13px}
.dev-panel-actions button{min-height:34px;border:1px solid rgba(226,181,66,.25);border-radius:8px;background:rgba(226,181,66,.08);color:#f0cf73;cursor:pointer;font-size:10px;font-weight:800}
.dev-panel-actions button:last-child{grid-column:1/-1}.dev-panel>p:last-child{margin:12px 0 0;color:var(--muted-2);font-size:9px;line-height:1.45}
@media(max-width:740px){.plus-wordmark-sidebar{width:190px}.plus-wordmark-hero{width:min(330px,90vw)}}

.plus-logo-direct{display:block;width:214px;max-width:100%;height:auto}
.plus-hero-logo-direct{display:block;width:min(390px,88%);height:auto}
@media(max-width:740px){.plus-logo-direct{width:190px}.plus-hero-logo-direct{width:min(330px,92%)}}

.footer-legal-link{display:inline-flex;align-items:center;padding:6px 9px;border:1px solid rgba(47,110,255,.20);border-radius:999px;color:var(--blue-300);font-size:9px;font-weight:700;text-decoration:none;background:rgba(47,110,255,.05)}
.footer-legal-link:hover{border-color:rgba(47,110,255,.45);color:#dce9ff}

/* Authenticated Plus access */
.plus-account-button{text-decoration:none}
.plus-access-backdrop{z-index:1000}
.plus-access-modal{text-align:center;max-width:460px}
.plus-access-actions{display:grid;gap:10px;margin-top:18px}
.plus-use-free-link{display:inline-flex;justify-content:center;padding:8px 4px;color:var(--muted);font-size:12px;font-weight:700;text-decoration:none}
.plus-use-free-link:hover{color:var(--text)}
body.plus-access-locked .app-shell{pointer-events:none;user-select:none}

/* Plus convenience controls — v0.7.1 */
.benefit-name-row,.historical-credit-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.benefit-name-row h4{margin:0}
.max-out-button,.max-out-month-button{border:1px solid rgba(255,205,92,.62);border-radius:999px;background:linear-gradient(135deg,rgba(255,214,111,.22),rgba(204,145,25,.12));color:#ffd970;box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);cursor:pointer;font:700 8px/1 inherit;letter-spacing:.04em;padding:5px 8px;white-space:nowrap}
.max-out-button:hover,.max-out-month-button:hover{border-color:rgba(255,220,128,.9);background:linear-gradient(135deg,rgba(255,214,111,.3),rgba(204,145,25,.18))}
.max-out-button:focus-visible,.max-out-month-button:focus-visible{outline:2px solid #ffd970;outline-offset:2px}
.historical-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.max-out-month-button{padding:9px 12px;font-size:9px;margin-bottom:1px}
.historical-credit-name-row{gap:7px}
.historical-max-out{padding:4px 7px}
@media(max-width:650px){.historical-controls{align-items:stretch}.max-out-month-button{width:100%}}

/* Manage Account cleanup — v0.7.2 */
.manage-account-button,
.account-button,
.account-pill {
  gap: 0;
  width: auto;
  min-width: 0;
  padding-left: 18px;
  padding-right: 18px;
}
.manage-account-button .account-copy,
.account-button .account-copy,
.account-pill .account-copy {
  margin-left: 0;
}
.account-avatar,
.account-badge {
  display: none !important;
}

/* Mobile Manage Account: keep the same stable topbar pattern as Free's mobile CTA. */
@media (max-width:740px){
  .topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
  }
  .topbar>div:first-child{min-width:0}
  .topbar-actions{min-width:0;justify-content:flex-end}
  .plus-account-button{
    display:flex;
    flex:0 0 auto;
    width:auto;
    min-width:132px;
    max-width:min(48vw,180px);
    min-height:40px;
    padding:6px 10px;
    border-radius:12px;
  }
  .plus-account-button>span{display:block!important;min-width:0;width:100%}
  .plus-account-button strong{display:block;white-space:nowrap;font-size:10px;line-height:1.15}
  .plus-account-button small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;line-height:1.2}
}
@media (max-width:360px){
  .topbar{gap:8px}
  .topbar h1{font-size:24px}
  .plus-account-button{min-width:124px;max-width:46vw;padding-inline:8px}
}

/* Plus startup: never show a convincing empty wallet while cloud state is still loading. */
body.plus-starting{overflow:hidden}
body.plus-starting .app-shell{visibility:hidden}
.plus-startup-screen{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 10%,#143d78 0,#081f43 42%,#051631 100%)}
.plus-startup-screen.hidden{display:none}
.plus-startup-card{width:min(440px,100%);display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:34px 28px;border:1px solid rgba(72,148,255,.38);border-radius:22px;background:rgba(8,34,75,.94);box-shadow:0 24px 70px rgba(0,12,35,.35)}
.plus-startup-card img{width:min(310px,84%);height:auto;margin-bottom:4px}
.plus-startup-card strong{font-size:20px;color:#f5f9ff}
.plus-startup-card span{max-width:340px;color:#b9cce8;line-height:1.5}
.plus-startup-spinner{width:32px;height:32px;margin:5px 0 2px;border:3px solid rgba(245,249,255,.2);border-top-color:#55dfa7;border-radius:50%;animation:plus-startup-spin .8s linear infinite}
.plus-startup-screen.is-error .plus-startup-spinner{display:none}
.plus-startup-screen.is-error .plus-startup-card{border-color:rgba(255,190,91,.55)}
@keyframes plus-startup-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.plus-startup-spinner{animation-duration:1.8s}}

/* Audit follow-up: Plus account marker and optional historical-setup tip. */
.plus-account-symbol{display:grid;place-items:center;flex:0 0 auto;width:24px;height:24px;border-radius:50%;font-size:20px;font-weight:950;line-height:1;color:#171008;background:linear-gradient(135deg,#765000,#d9aa2c 48%,#ffe991 58%,#b47b08);box-shadow:0 0 16px rgba(226,181,66,.22)}
.past-activity-setup-tip{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:22px 0 30px;padding:16px 18px;border:1px solid rgba(226,181,66,.22);border-radius:14px;background:rgba(226,181,66,.07)}
.past-activity-setup-tip strong{display:block;color:#f0d378;font-size:12px}.past-activity-setup-tip p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55;max-width:760px}
.setup-tip-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.setup-tip-dismiss{border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer}.setup-tip-dismiss:hover{color:var(--text)}
@media(max-width:740px){.past-activity-setup-tip{align-items:flex-start;flex-direction:column}.setup-tip-actions{width:100%;justify-content:space-between}}

/* Plus v0.9.1 convenience pass: wallet filters, calendar Max Out, visible save feedback. */
.wallet-section-heading{gap:18px}
.wallet-filter{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid rgba(104,155,255,.2);border-radius:12px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)}
.wallet-filter-button{border:0;border-radius:9px;padding:8px 11px;background:transparent;color:var(--muted);cursor:pointer;font-size:10px;font-weight:800;transition:.16s ease}
.wallet-filter-button:hover{background:rgba(47,110,255,.10);color:var(--text)}
.wallet-filter-button.active{background:linear-gradient(135deg,rgba(47,110,255,.32),rgba(72,131,255,.18));color:#dce9ff;box-shadow:0 0 0 1px rgba(95,145,255,.25),0 5px 16px rgba(10,40,95,.18)}
.wallet-filter-button:focus-visible{outline:2px solid var(--blue-300);outline-offset:2px}

.checklist-item{grid-template-columns:minmax(0,1fr) auto;padding:0;cursor:default;overflow:hidden}
.checklist-open{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:12px;min-width:0;width:100%;padding:16px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.checklist-open:hover{background:rgba(255,255,255,.025)}
.checklist-open:focus-visible,.check-amount:focus-visible{outline:2px solid var(--blue-300);outline-offset:-3px}
.checklist-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-right:16px}
.check-amount{border:0;background:transparent;color:var(--muted);cursor:pointer;font:700 12px/1.2 inherit;padding:9px 0;text-align:right;white-space:nowrap}
.checklist-item.complete .check-amount{color:var(--green)}
.calendar-max-out-button{font-size:9px;padding:6px 9px}
.calendar-max-out-button:disabled{opacity:.48;cursor:wait}

.plus-account-symbol{position:relative;display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:0;background:linear-gradient(110deg,#725000 0%,#d7a72c 30%,#fff2ae 48%,#d9a72b 64%,#7a5200 100%);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;font-size:31px;font-weight:950;line-height:1;filter:drop-shadow(0 0 8px rgba(230,184,59,.32));box-shadow:none;animation:plus-account-shine 2.8s linear infinite}
.plus-account-symbol::after{content:"";position:absolute;width:7px;height:7px;right:1px;top:2px;border-radius:50%;background:radial-gradient(circle,#fff7cb 0,rgba(255,234,151,.88) 32%,rgba(255,224,115,0) 72%);animation:plus-account-glint 2.8s ease-in-out infinite;pointer-events:none}
@keyframes plus-account-shine{0%{background-position:180% 0}100%{background-position:-60% 0}}
@keyframes plus-account-glint{0%,30%,100%{opacity:0;transform:scale(.45)}48%{opacity:1;transform:scale(1.25)}62%{opacity:.2;transform:scale(.7)}}
.plus-account-note-copy{min-width:0;flex:1}
.cloud-save-feedback{display:inline-flex;align-items:center;gap:6px;margin-top:10px;color:var(--muted);font-size:9px;font-weight:800}
.cloud-save-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 8px rgba(85,223,167,.34)}
.cloud-save-feedback[data-status="saving"]{color:#f2cf73}.cloud-save-feedback[data-status="saving"] .cloud-save-dot{background:#e2b542;box-shadow:0 0 8px rgba(226,181,66,.4);animation:cloud-save-pulse .8s ease-in-out infinite alternate}
.cloud-save-feedback[data-status="error"]{color:#ffaaa9}.cloud-save-feedback[data-status="error"] .cloud-save-dot{background:#ff7b7b;box-shadow:0 0 8px rgba(255,99,99,.4)}
.cloud-save-retry{border:0;background:transparent;color:var(--blue-300);cursor:pointer;font:800 9px/1 inherit;padding:1px 2px;text-decoration:underline;text-underline-offset:2px}
.cloud-save-topbar{display:none;margin:0;padding:7px 9px;border:1px solid rgba(85,223,167,.15);border-radius:10px;background:rgba(255,255,255,.025)}
.cloud-save-topbar[data-status="saving"]{border-color:rgba(226,181,66,.25)}
.cloud-save-topbar[data-status="error"]{border-color:rgba(255,123,123,.28)}
@keyframes cloud-save-pulse{from{opacity:.45;transform:scale(.86)}to{opacity:1;transform:scale(1.08)}}

@media(max-width:980px){.cloud-save-topbar{display:inline-flex}}
@media(max-width:740px){
  .wallet-section-heading{align-items:flex-start;flex-direction:column}
  .wallet-filter{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  .wallet-filter-button{width:100%}
  .checklist-item{grid-template-columns:1fr}
  .checklist-actions{padding:0 16px 14px}
  .cloud-save-topbar{padding:6px 7px;font-size:8px}
}
@media(max-width:420px){.cloud-save-topbar{display:none}}
