/* ───────────── RESET & VARIABLES ───────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F4F3EF;
  --bg2:       #ECEAE3;
  --surface:   #FFFFFF;
  --border:    #E2DFD8;
  --text:      #1A1917;
  --text-2:    #6B6860;
  --text-3:    #A8A59F;
  --green:     #2D7A4F;
  --green-lt:  #EAF5EE;
  --red:       #C0392B;
  --red-lt:    #FDECEA;
  --accent:    #E8A838;
  --accent-lt: #FEF6E4;
  --blue:      #2563EB;
  --blue-lt:   #EFF6FF;
  --radius:    16px;
  --shadow:    0 2px 12px rgba(26,25,23,0.07);
  --shadow-lg: 0 8px 32px rgba(26,25,23,0.12);
  --font-head: 'Clash Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ───────────── UTILS ───────────── */
.hidden { display: none !important; }

/* ───────────── SCREEN WRAPPER ───────────── */
.screen { display: none; min-height: 100vh; animation: fadeUp 0.3s ease; }
.screen.active { display: flex; }

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

/* ───────────── AUTH SCREENS ───────────── */
.auth-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-brand {
  background: var(--text);
  flex-direction: column;
  gap: 32px;
}

.auth-brand-inner { color: #fff; max-width: 380px; }
.brand-logo { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; letter-spacing: -1px; }
.brand-logo span { color: var(--accent); }
.brand-tagline { font-size: 1.05rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-top: 12px; }
.brand-stats { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.brand-stat {
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.brand-stat-val { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; }
.brand-stat-lbl { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

.auth-form-panel { flex-direction: column; background: var(--surface); }
.auth-form-inner { width: 100%; max-width: 380px; }
.auth-title { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--text-2); font-size: 0.92rem; margin-bottom: 36px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--text); background: #fff; }
.field input::placeholder { color: var(--text-3); }

.pwd-rules { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.rule {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  transition: var(--transition);
}
.rule.ok { color: var(--green); }
.rule-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}
.rule.ok .rule-dot { background: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary { background: var(--text); color: #fff; width: 100%; }
.btn-primary:hover { background: #333; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

.btn-ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: #d69a2e; transform: translateY(-1px); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #245f3e; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--bg); }

.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-2);
}
.auth-link a { color: var(--text); font-weight: 500; cursor: pointer; text-decoration: underline; }

/* ───────────── APP LAYOUT ───────────── */
.app-wrap { display: flex; flex-direction: column; min-height: 100vh; width: 100%; }

.app-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-logout {
  font-size: 0.84rem;
  color: var(--text-2);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-logout:hover { background: var(--bg); color: var(--text); }

.app-content {
  flex: 1;
  padding: 40px 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ───────────── HOME SCREEN ───────────── */
.home-header { margin-bottom: 32px; }
.home-greeting { font-size: 0.9rem; color: var(--text-2); margin-bottom: 4px; }
.home-title { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  min-width: 0;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-value {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  word-break: break-word;
}
.card-value.green { color: var(--green); }
.card-value.red { color: var(--red); }
.card-sub { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.card-icon.green { background: var(--green-lt); }
.card-icon.red { background: var(--red-lt); }
.card-icon.accent { background: var(--accent-lt); }

.card-balance { background: var(--text); color: #fff; }
.card-balance .card-label { color: rgba(255,255,255,0.55); }
.card-balance .card-value { color: #fff; }
.card-balance .card-sub { color: rgba(255,255,255,0.4); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }

.section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: underline;
}

.tx-list { display: flex; flex-direction: column; gap: 1px; }

.tx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tx-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.tx-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.tx-item:only-child { border-radius: var(--radius); }
.tx-item:hover { background: var(--bg); }

.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tx-info { flex: 1; min-width: 0; }
.tx-desc {
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-cat { font-size: 0.78rem; color: var(--text-3); margin-top: 1px; }
.tx-right { text-align: right; flex-shrink: 0; }
.tx-val { font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; }
.tx-val.pos { color: var(--green); }
.tx-val.neg { color: var(--red); }
.tx-date { font-size: 0.75rem; color: var(--text-3); margin-top: 1px; }

.quick-actions {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.qa-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
  text-align: left;
  min-height: 60px;
}
.qa-btn:last-child { margin-bottom: 0; }
.qa-btn:hover { border-color: var(--text); background: var(--surface); transform: translateX(3px); }

.qa-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qa-text { min-width: 0; }
.qa-text strong { display: block; font-size: 0.9rem; font-weight: 500; }
.qa-text span { font-size: 0.78rem; color: var(--text-3); }

/* ───────────── INSERT SCREEN ───────────── */
.insert-wrap { max-width: 600px; width: 100%; }

.page-header { margin-bottom: 32px; }
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: 14px;
  transition: var(--transition);
}
.page-back:hover { color: var(--text); }

.page-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; }
.page-sub { font-size: 0.9rem; color: var(--text-2); margin-top: 4px; }

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.type-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.type-btn {
  flex: 1;
  min-height: 46px;
  padding: 11px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.type-btn.active.entrada { background: var(--green-lt); color: var(--green); }
.type-btn.active.saida { background: var(--red-lt); color: var(--red); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field.full { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form-actions .btn { flex: 1 1 180px; }

/* ───────────── DETAIL SCREEN ───────────── */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.chart-bar-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
}

.bar-chart { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.bar-label {
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.bar-track { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }

.donut-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.donut-center { text-align: center; margin-top: 12px; }
.donut-center strong { font-family: var(--font-head); font-size: 1.5rem; }
.donut-center span { font-size: 0.78rem; color: var(--text-3); display: block; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; justify-content: center; }
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.evolution-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}
.line-chart { height: 140px; position: relative; margin-top: 20px; overflow: visible; }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 9px 14px;
  min-height: 40px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.filter-chip:hover:not(.active) { border-color: var(--text); }

.tx-table {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tx-table-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 160px;
  gap: 0;
  padding: 12px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.tx-table-header span {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.tx-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 160px;
  gap: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: var(--transition);
}
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: var(--bg); }

.tx-row-desc {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 0;
  line-height: 1.4;
}
.tx-row-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tx-row-date { font-size: 0.82rem; color: var(--text-2); }
.tx-row-val {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
}
.tx-row-type {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ───────────── CATEGORY COLORS ───────────── */
.cat-alimentacao { background: #FEF3C7; color: #92400E; }
.cat-transporte  { background: #DBEAFE; color: #1E40AF; }
.cat-saude       { background: #FCE7F3; color: #9D174D; }
.cat-lazer       { background: #D1FAE5; color: #065F46; }
.cat-moradia     { background: #EDE9FE; color: #4C1D95; }
.cat-educacao    { background: #FEE2E2; color: #991B1B; }
.cat-salario     { background: #D1FAE5; color: #065F46; }
.cat-freelance   { background: #E0F2FE; color: #075985; }
.cat-outros      { background: var(--bg2); color: var(--text-2); }

/* ───────────── TOAST ───────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 1000;
  max-width: min(320px, calc(100vw - 32px));
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* ───────────── EMPTY STATE ───────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-3); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; line-height: 1.5; }

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .evolution-card { grid-column: auto; }
  .app-content { padding: 28px 20px; }
  .tx-table-header,
  .tx-row {
    grid-template-columns: 2fr 1.2fr 1fr 1fr 140px;
  }
}

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 32px 20px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .app-nav { padding: 0 20px; }
  .chart-bar-wrap,
  .evolution-card,
  .form-card,
  .quick-actions,
  .card { padding: 22px; }
}

@media (max-width: 680px) {
  .app-content { padding: 20px 14px; }
  .app-nav {
    padding: 10px 14px;
    min-height: auto;
    gap: 10px;
    align-items: flex-start;
  }
  .nav-right { width: 100%; justify-content: flex-end; }
  .home-title { font-size: 1.6rem; }
  .page-title { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.full { grid-column: auto; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  .tx-item {
    align-items: flex-start;
    padding: 14px;
  }
  .tx-right {
    text-align: left;
    width: 100%;
  }
  .tx-item {
    flex-wrap: wrap;
  }
  .tx-info {
    min-width: calc(100% - 52px);
  }

  .tx-table {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .tx-table-header {
    display: none;
  }

  .tx-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
  }

  .tx-row:last-child {
    margin-bottom: 0;
  }

  .tx-row > div:nth-child(2),
  .tx-row > div:nth-child(3),
  .tx-row > div:nth-child(4),
  .tx-row > div:nth-child(5) {
    justify-self: stretch;
  }

  .tx-row-date,
  .tx-row-val {
    font-size: 0.9rem;
  }

  .tx-row > div:last-child {
    display: flex !important;
    justify-content: stretch !important;
    gap: 8px !important;
    flex-wrap: wrap;
  }

  .tx-row > div:last-child .btn {
    flex: 1 1 120px;
  }

  .bar-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-row {
    gap: 8px;
  }

  .filter-chip {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .toast {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .auth-panel { padding: 24px 16px; }
  .auth-form-inner { max-width: 100%; }
  .auth-title { font-size: 1.6rem; }
  .auth-sub { margin-bottom: 28px; }
  .app-content { padding: 16px 12px; }
  .chart-bar-wrap,
  .evolution-card,
  .form-card,
  .quick-actions,
  .card { padding: 18px; }
  .nav-logo { font-size: 1.2rem; }
  .nav-avatar { width: 34px; height: 34px; }
  .line-chart { height: 120px; }
  .legend { justify-content: flex-start; }
}


/* ───────────── MODAL ───────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 23, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: modalFadeUp 0.22s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.modal-subtitle {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.modal-close {
  border: none;
  background: var(--bg);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--border);
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.future-feature-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.future-feature-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.future-feature-item span {
  display: block;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

@media (max-width: 680px) {
  .modal-box {
    padding: 18px;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-actions .btn {
    width: 100%;
  }
}
