/* ================================================================
   DOLARFLOW — style.css
   Premium Dark Fintech · Clash Display + JetBrains Mono
   Aesthetic: Luxury terminal meets São Paulo finance
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  /* Backgrounds */
  --bg-root:    #060608;
  --bg-surface: #0d0e12;
  --bg-card:    #111318;
  --bg-raised:  #161a22;
  --bg-hover:   #1c2030;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.05);
  --border-soft:   rgba(255,255,255,0.09);
  --border-active: rgba(200,251,0,0.4);

  /* Brand */
  --lime:      #c8fb00;
  --lime-dim:  rgba(200,251,0,0.12);
  --lime-glow: rgba(200,251,0,0.06);
  --teal:      #00e5a0;
  --teal-dim:  rgba(0,229,160,0.12);
  --red:       #ff4455;
  --amber:     #ffb340;

  /* Text */
  --text-primary:   #f0f2f8;
  --text-secondary: #8890aa;
  --text-muted:     #454d63;
  --text-accent:    var(--lime);

  /* Type */
  --font-display: 'Clash Display', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;

  /* Shadows */
  --shadow-card: 0 1px 0 var(--border-subtle), 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(200,251,0,0.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--bg-root);
  color: var(--text-primary);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 99px; }

/* ── SELECTION ── */
::selection { background: var(--lime-dim); color: var(--lime); }

/* ================================================================
   LOGIN
   ================================================================ */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-root);
  overflow: hidden;
}

/* Grid background decoration */
.login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Lime glow orb */
.login-noise {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,251,0,0.07) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%,-50%) scale(1.15); opacity: 0.7; }
}

.login-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 2.5rem 2.2rem 2rem;
  width: 380px;
  max-width: 94vw;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: slideUp .5s cubic-bezier(.16,1,.3,1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: .35rem;
}

.logo-icon {
  color: var(--lime);
  font-size: 1.15em;
  filter: drop-shadow(0 0 8px rgba(200,251,0,0.5));
}

.login-sub {
  color: var(--text-secondary);
  font-size: .82rem;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
  letter-spacing: 0.3px;
}

.btn-login {
  width: 100%;
  padding: .85rem;
  background: var(--lime);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  letter-spacing: .3px;
  margin-top: .8rem;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 20px rgba(200,251,0,0.25);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,251,0,0.35);
  filter: brightness(1.05);
}
.btn-login:active { transform: translateY(0); }

.login-hint {
  text-align: center;
  font-size: .73rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 1.2rem;
}
.login-hint strong { color: var(--text-secondary); }

/* ================================================================
   APP SHELL
   ================================================================ */
.app { display: flex; min-height: 100vh; }
.hidden { display: none !important; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
  width: 230px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1rem 1.2rem;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  padding: .5rem .75rem .5rem .6rem;
  margin-bottom: 1.8rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-links li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
  user-select: none;
  position: relative;
}

.nav-links li:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-links li.active {
  background: var(--lime-dim);
  color: var(--lime);
}

.nav-links li.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--lime);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(200,251,0,0.6);
}

.nav-icon {
  font-size: .95em;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .4rem .2rem;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--lime) 0%, #a8d800 100%);
  color: #000;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(200,251,0,0.3);
}

.user-name  { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.user-loc   { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); }

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: .5rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
  transition: all .15s;
  text-align: center;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); background: rgba(255,68,85,0.06); }

/* ================================================================
   CONTENT
   ================================================================ */
.content {
  flex: 1;
  padding: 2rem 2.2rem 4rem;
  overflow-y: auto;
  min-width: 0;
}

/* ── PAGES ── */
.page { display: none; }
.page.active {
  display: block;
  animation: pageIn .3s cubic-bezier(.22,1,.36,1) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.page-sub {
  color: var(--text-muted);
  font-size: .78rem;
  font-family: var(--font-mono);
  margin-top: .35rem;
  letter-spacing: .2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: .3rem;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.live-label {
  font-size: .75rem;
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ================================================================
   QUOTE HERO
   ================================================================ */
.quote-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.quote-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 0% 50%, rgba(200,251,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.quote-left {
  padding: 2rem 2rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
}

.quote-label {
  font-size: .7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.quote-value {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--lime);
  font-family: var(--font-mono);
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(200,251,0,0.2));
}

.quote-change {
  font-size: .85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.quote-change.up   { color: var(--teal); }
.quote-change.down { color: var(--red); }

.quote-right {
  padding: 1.5rem 1.8rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
}

.quote-mini {
  font-size: .78rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.progress-bar-wrap { margin-top: .4rem; }

.progress-bar-track {
  background: var(--bg-hover);
  border-radius: 99px;
  height: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  border-radius: 99px;
  transition: width .8s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 8px rgba(200,251,0,0.4);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: .62rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: .3rem;
}

.quote-recommendation {
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: transparent;
}

.rec-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

#recText {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ================================================================
   KPI CARDS
   ================================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 0% 100%, rgba(255,255,255,0.015) 0%, transparent 70%);
  pointer-events: none;
}

.kpi-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
}

.kpi-card.accent {
  border-color: rgba(200,251,0,0.18);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200,251,0,0.03) 100%);
}

.kpi-card.accent:hover { border-color: rgba(200,251,0,0.35); }

.kpi-icon  { font-size: 1.3rem; margin-bottom: .6rem; }
.kpi-label { font-size: .7rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .35rem; }
.kpi-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; font-family: var(--font-mono); line-height: 1; }
.kpi-sub   { font-size: .7rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: .4rem; }

/* ================================================================
   BOTTOM GRID (chart + strategy)
   ================================================================ */
.bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.chart-legend { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); }
.legend-dot   { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 6px rgba(200,251,0,0.6); }

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.strategy-title {
  font-size: .68rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.strategy-empty {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.6;
}
.strategy-empty strong { color: var(--text-secondary); }

.strat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: .83rem;
}
.strat-row:last-child { border: none; }
.strat-row span:first-child { color: var(--text-secondary); }

.strat-pct-badge {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: .18rem .55rem;
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 600;
  color: var(--lime);
}

/* ================================================================
   INPUTS & FORMS
   ================================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.form-card h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  color: var(--text-primary);
}

.input-group { margin-bottom: 1.1rem; }

.input-group label {
  display: block;
  font-size: .68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: .45rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="number"],
.input-group input[type="month"] {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: .7rem .95rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: .88rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}

.input-group input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200,251,0,0.08);
}

.input-group input::placeholder { color: var(--text-muted); }

/* remove arrows on number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

.btn-primary {
  width: 100%;
  background: var(--lime);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: .78rem 1.4rem;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  letter-spacing: .3px;
  margin-top: .6rem;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 16px rgba(200,251,0,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,251,0,0.3); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
  padding: .62rem 1.2rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .15s;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); background: rgba(255,68,85,0.05); }

/* ================================================================
   RESULT CARD
   ================================================================ */
.result-card { display: flex; flex-direction: column; }

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: .85rem;
}
.result-row:last-child { border: none; }
.result-row span:first-child { color: var(--text-secondary); }
.result-row span:last-child  { font-family: var(--font-mono); font-weight: 500; }
.result-row.highlight        { padding: .9rem 0; }
.result-row.highlight span:first-child { font-weight: 600; color: var(--text-primary); }
.result-row.highlight span:last-child  { color: var(--lime); font-size: 1.15rem; font-weight: 700; }

/* ================================================================
   HISTORY TABLE
   ================================================================ */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hist-table { width: 100%; border-collapse: collapse; }

.hist-table thead { background: var(--bg-raised); }

.hist-table th {
  text-align: left;
  padding: .9rem 1.2rem;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.hist-table td {
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-secondary);
}

.hist-table tbody tr:last-child td { border-bottom: none; }
.hist-table tbody tr:hover td { background: var(--bg-raised); }
.hist-table td:first-child { color: var(--text-primary); font-weight: 500; }

.badge-good { color: var(--teal); font-weight: 600; }
.badge-ok   { color: var(--amber); font-weight: 600; }
.badge-bad  { color: var(--red); font-weight: 600; }

/* ================================================================
   SIMULATOR
   ================================================================ */
.sim-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
}

.sim-form .quick-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.sim-form .quick-btns button {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: .4rem .85rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.sim-form .quick-btns button:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--lime-dim);
}

.sim-results {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.sim-empty {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.6;
  font-family: var(--font-mono);
}

.sim-block {
  background: var(--bg-raised);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
}

.sim-block-title {
  font-size: .67rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  margin-bottom: .8rem;
}

.sim-period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.sim-period {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: .8rem .4rem;
  transition: border-color .2s;
}
.sim-period:hover { border-color: var(--border-soft); }

.sim-period-label { font-size: .67rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .5px; }
.sim-period-usd   { font-size: 1.05rem; font-weight: 700; color: var(--lime); font-family: var(--font-mono); margin: .3rem 0 .15rem; }
.sim-period-brl   { font-size: .68rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ================================================================
   STRATEGY PAGE
   ================================================================ */
.strat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.strat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid;
  border-radius: var(--r-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s;
}
.strat-item:hover { transform: translateY(-3px); }

.s-blue   { border-top-color: #5b9cf6; }
.s-green  { border-top-color: var(--teal); }
.s-orange { border-top-color: var(--amber); }
.s-pink   { border-top-color: #f06da8; }

.strat-pct {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: .3rem;
}

.s-blue .strat-pct   { color: #5b9cf6; }
.s-green .strat-pct  { color: var(--teal); }
.s-orange .strat-pct { color: var(--amber); }
.s-pink .strat-pct   { color: #f06da8; }

.strat-label { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.strat-desc  { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

.strat-calculator {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  max-width: 500px;
  box-shadow: var(--shadow-card);
}

.strat-calculator h3 { font-size: .95rem; font-weight: 600; margin-bottom: 1.2rem; }

.strat-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: 1rem;
}

.strat-result-item {
  background: var(--bg-raised);
  border-radius: var(--r-md);
  padding: .9rem;
  border: 1px solid var(--border-subtle);
}

.strat-result-label { font-size: .68rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .8px; margin-bottom: .25rem; }
.strat-result-val   { font-size: 1.15rem; font-weight: 700; font-family: var(--font-mono); }

.strat-tips {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.strat-tips h3 { font-size: .95rem; font-weight: 600; margin-bottom: 1.2rem; }

.strat-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.strat-tips li {
  padding-left: 1.4rem;
  position: relative;
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.strat-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}

.strat-tips strong { color: var(--text-primary); }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  padding: .85rem 1.3rem;
  border-radius: var(--r-md);
  font-size: .83rem;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateY(12px) scale(.97);
  transition: all .3s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  z-index: 999;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .strat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar {
    width: 64px;
    padding: 1rem .6rem;
    align-items: center;
  }
  .sidebar-logo span:last-child,
  .nav-links li span:not(.nav-icon),
  .user-name, .user-loc,
  .btn-logout { display: none; }
  .sidebar-logo { padding: .5rem; justify-content: center; }
  .nav-links li { justify-content: center; padding: .65rem; }
  .nav-links li.active::before { display: none; }
  .nav-links li.active { background: var(--lime-dim); }
  .user-chip { justify-content: center; }
  .quote-hero { grid-template-columns: 1fr 1fr; }
  .quote-recommendation { display: none; }
  .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .content { padding: 1.2rem 1rem 3rem; }
  .quote-hero { grid-template-columns: 1fr; }
  .quote-right { border-right: none; border-top: 1px solid var(--border-subtle); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .sim-layout { grid-template-columns: 1fr; }
  .strat-grid { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 1.5rem; }
}



/* ================================================================
   DÍVIDAS — estilos completos
   ================================================================ */

/* ── DEBT DOT ── */
.debt-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 4px;
  animation: blink 1.5s infinite;
}
.debt-dot.hidden { display: none; }

/* ── DEBT SUMMARY BAR ── */
.debt-summary-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.dsb-col { display: flex; flex-direction: column; gap: .25rem; min-width: 100px; }
.dsb-label { font-size: .67rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; }
.dsb-value { font-size: 1.3rem; font-weight: 800; font-family: var(--font-mono); }
.dsb-value.red    { color: var(--red); }
.dsb-value.green  { color: var(--teal); }
.dsb-pct { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: .3rem; }

.debt-global-bar {
  height: 8px;
  background: var(--bg-hover);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .3rem;
  min-width: 120px;
}
.debt-global-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--teal));
  border-radius: 99px;
  transition: width .6s ease;
}

/* ── MAIN LAYOUT ── */
.debt-main-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}
.debt-left-col, .debt-right-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── DEBT FORM CARD ── */
.debt-form-card { margin-bottom: 0; }

/* ── DEBT LIST ITEMS ── */
.debt-group-label {
  font-size: .7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .3rem 0 .5rem;
}

.debt-item {
  background: var(--bg-raised);
  border-radius: var(--r-md);
  padding: 1rem;
  margin-bottom: .7rem;
  border: 1px solid var(--border-subtle);
  transition: border-color .15s;
}
.debt-item:hover { border-color: var(--border-soft); }
.debt-item.debt-done {
  opacity: .65;
  border-color: rgba(0,229,160,.2);
}
.debt-item:last-child { margin-bottom: 0; }

.debt-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
}
.debt-item-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.debt-item-name { font-size: .9rem; font-weight: 700; }

.debt-cat-badge {
  font-size: .7rem;
  background: var(--bg-hover);
  border-radius: var(--r-sm);
  padding: .15rem .5rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
}

.debt-paid-badge {
  font-size: .72rem;
  background: rgba(0,229,160,.12);
  color: var(--teal);
  border-radius: var(--r-sm);
  padding: .15rem .5rem;
  font-weight: 700;
}

.debt-numbers {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}
.debt-num-block { display: flex; flex-direction: column; gap: 1px; }
.debt-num-label { font-size: .62rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .5px; }
.debt-num-val   { font-size: .88rem; font-weight: 700; font-family: var(--font-mono); }
.debt-num-val.green  { color: var(--teal); }
.debt-num-val.red    { color: var(--red); }
.debt-num-val.amber  { color: var(--amber); }

/* ── STRATEGY SELECTOR ── */
.debt-strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.debt-strategy-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }

.strategy-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .6rem;
  margin-bottom: .8rem;
}

.strat-opt {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: .9rem .8rem;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.strat-opt:hover { border-color: var(--border-soft); background: var(--bg-hover); }
.strat-opt.active {
  background: var(--lime-dim);
  border-color: var(--lime);
}

.strat-opt-icon { font-size: 1.5rem; margin-bottom: .3rem; }
.strat-opt-name { font-size: .82rem; font-weight: 700; margin-bottom: .2rem; }
.strat-opt-desc { font-size: .7rem; color: var(--text-muted); line-height: 1.4; }
.strat-opt.active .strat-opt-desc { color: rgba(200,251,0,.7); }

/* ── STRATEGY RESULT ── */
.debt-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
  font-size: .85rem;
  font-weight: 700;
  flex-wrap: wrap;
  gap: .5rem;
}

.debt-free-badge {
  background: rgba(0,229,160,.12);
  color: var(--teal);
  border-radius: var(--r-sm);
  padding: .3rem .8rem;
  font-size: .78rem;
  font-family: var(--font-mono);
}
.debt-free-badge strong { color: var(--lime); }

.debt-steps { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }

.debt-step {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--bg-raised);
  border-radius: var(--r-sm);
  padding: .6rem .8rem;
  border-left: 3px solid var(--lime);
}

.debt-step-num {
  width: 24px; height: 24px;
  background: var(--lime);
  color: #000;
  font-weight: 800;
  font-size: .8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.debt-step-body { flex: 1; min-width: 0; }
.debt-step-name   { font-size: .85rem; font-weight: 700; }
.debt-step-detail { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 1px; }
.debt-step-detail strong { color: var(--text-secondary); }

.debt-result-tip {
  background: var(--bg-raised);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 3px solid var(--amber);
}
.debt-result-tip strong { color: var(--lime); }

/* ── SAVINGS CARD ── */
.debt-savings-card {
  background: linear-gradient(135deg, rgba(200,251,0,.06), rgba(0,229,160,.04));
  border: 1px solid rgba(200,251,0,.2);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.debt-savings-card.hidden { display: none; }
.dsc-icon  { font-size: 2rem; flex-shrink: 0; }
.dsc-body  { flex: 1; }
.dsc-title  { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .2rem; }
.dsc-amount { font-size: 1.1rem; font-weight: 800; color: var(--lime); font-family: var(--font-mono); }
.dsc-sub    { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: .2rem; }

/* ── PLAN TABLE ── */
.debt-quitada-row td { background: rgba(0,229,160,.04) !important; }
.debt-focus-badge {
  display: inline-block;
  font-size: .65rem;
  background: rgba(200,251,0,.15);
  color: var(--lime);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  font-weight: 700;
  vertical-align: middle;
}

/* ── RESPONSIVE DEBT ── */
@media (max-width: 900px) {
  .debt-main-layout { grid-template-columns: 1fr; }
  .strategy-selector { grid-template-columns: 1fr 1fr 1fr; }
  .debt-summary-bar  { gap: 1rem; }
}
@media (max-width: 600px) {
  .strategy-selector { grid-template-columns: 1fr; }
  .debt-numbers { gap: .7rem; }
}
/* ================================================================
   EXTRA FEATURES CSS — Hostinger completo
   ================================================================ */

/* ── FAB BUTTON ── */
.fab-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px; height: 56px;
  background: var(--lime);
  color: #000;
  font-size: 1.4rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,251,0,0.4);
  transition: all .2s;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.fab-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(200,251,0,0.6); }
@media(max-width:640px){ .fab-btn { bottom: 4.5rem; right: 1rem; } }

/* ── MÊS ATUAL BAR ── */
.mes-atual-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: .9rem 1.4rem;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0; margin-bottom: 1.2rem;
  box-shadow: var(--shadow-card);
}
.mab-col { display: flex; flex-direction: column; gap: .18rem; padding: .25rem 1rem; flex: 1; min-width: 90px; }
.mab-col.mab-wide { flex: 2; min-width: 180px; }
.mab-sep { width: 1px; background: var(--border-subtle); align-self: stretch; margin: .15rem 0; flex-shrink: 0; }
.mab-label  { font-size: .62rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; }
.mab-val    { font-size: 1.05rem; font-weight: 800; font-family: var(--font-mono); }
.mab-insight{ font-size: .78rem; color: var(--text-secondary); font-family: var(--font-mono); line-height: 1.4; }

/* ── MODO NOTURNO ── */
body.night-mode {
  --bg-root:    #020203;
  --bg-surface: #070709;
  --bg-card:    #0a0b0e;
  --bg-raised:  #0f1117;
  --bg-hover:   #141720;
  --lime:       #a8d400;
  --teal:       #00c488;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.tool-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .5rem; }
.tool-desc { font-size: .78rem; color: var(--text-muted); margin-bottom: .8rem; line-height: 1.4; }

/* ── DIÁRIO MOOD ── */
.diario-mood {
  font-size: 1.6rem; cursor: pointer; padding: .3rem .5rem;
  border-radius: var(--r-sm); border: 2px solid transparent;
  transition: all .15s;
}
.diario-mood:hover { background: var(--bg-raised); }
.diario-mood.active { border-color: var(--lime); background: var(--lime-dim); }

/* ── RESPONSIVE EXTRAS ── */
@media (max-width: 900px) {
  .mes-atual-bar { gap: .5rem; }
  .mab-sep { display: none; }
  .mab-col { padding: .25rem .5rem; min-width: 75px; }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mes-atual-bar { flex-wrap: wrap; }
  .mab-col { flex: 1 0 45%; }
}
