/* Amity — Hebrew RTL, mobile-first */
:root {
  /* Brand Amity — soft lilac / purple (keep --green aliases for legacy selectors) */
  --brand: #a78bfa;
  --brand-dark: #7c6aab;
  --brand-soft: #f3eef9;
  --green: var(--brand);
  --green-dark: var(--brand-dark);
  --navy: #2d2640;
  --navy-2: #3d3454;
  --bg: #f7f4fb;
  --card: #ffffff;
  --text: #2d2640;
  --muted: #8a8199;
  --border: #ebe4f4;
  --danger: #e74c3c;
  --orange: #e67e22;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(45, 38, 64, 0.08);
  --shell: 420px;
  --header-h: 56px;
  --nav-h: 64px;
  --font: 'Heebo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(160deg, #ebe4f5 0%, #d9d0e8 100%);
  color: var(--text);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green-dark); text-decoration: none; }
img { max-width: 100%; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.875rem; }
.pos { color: var(--green-dark) !important; }
.neg { color: var(--danger) !important; }
.center { text-align: center; }
code { font-size: 0.8em; background: #eef2f7; padding: 2px 6px; border-radius: 6px; }

/* Phone shell */
.phone-shell {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(26,39,68,0.06), 0 20px 60px rgba(26,39,68,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 480px) {
  body { padding: 24px 0; }
  .phone-shell {
    min-height: calc(100vh - 48px);
    height: calc(100vh - 48px);
    max-height: calc(100vh - 48px);
    border-radius: 28px;
    overflow: hidden;
  }
}

/* Header */
.app-header {
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo { display: flex; align-items: center; gap: 8px; color: inherit; }
.logo__word { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo__money { color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.logo__flow { color: var(--brand); }

/* Main */
.screens {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px calc(var(--nav-h) + 20px);
  -webkit-overflow-scrolling: touch;
}
.screen { animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.screen-head h1 { margin: 0; font-size: 1.45rem; font-weight: 800; }
.screen-sub { margin: 0 0 12px; }

/* Greeting */
.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.greeting__hello { margin: 0; font-size: 1.35rem; font-weight: 800; }
.greeting__date { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: var(--navy); color: #fff;
  font-weight: 700; cursor: pointer;
}

.month-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.month-bar__label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }

/* Cards & stats */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border: 1px solid rgba(26,39,68,0.04);
}
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card__title { margin: 0; font-size: 1rem; font-weight: 700; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stat-card {
  background: var(--card);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,39,68,0.04);
}
.stat-card__icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-size: 14px; margin-bottom: 6px;
}
.stat-card__icon--blue { background: #e8f1fb; }
.stat-card__icon--green { background: var(--brand-soft); }
.stat-card__icon--orange { background: #fef0e4; }
.stat-card__label { margin: 0; font-size: 0.7rem; color: var(--muted); }
.stat-card__value { margin: 4px 0 0; font-size: 0.95rem; font-weight: 800; word-break: break-word; }

.kv-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  text-align: center;
}
.kv-row span { display: block; font-size: 0.75rem; }
.kv-row strong { font-size: 0.9rem; }

/* Empty */
.empty-card {
  background: var(--card);
  border: 1px dashed #b8c4d6;
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 12px;
}
.empty-card__title { margin: 0 0 6px; font-weight: 800; }
.empty-card__text { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.empty-card__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.empty-inline { color: var(--muted); font-size: 0.9rem; padding: 8px 0; }

/* AI teaser */
.ai-teaser__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-teaser__badge {
  background: var(--navy); color: #fff; font-size: 0.65rem; font-weight: 800;
  padding: 3px 7px; border-radius: 6px;
}
.ai-teaser__bubble {
  background: #f0faf4;
  border: 1px solid #c9eed9;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px; padding: 10px 16px;
  font-weight: 700; cursor: pointer; transition: transform 0.1s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: #eef2f7; color: var(--navy); }
.btn--danger { background: #fdecea; color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 10px; }
.icon-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 1.1rem; padding: 4px 6px; border-radius: 8px;
}
.icon-btn:hover { background: #eef2f7; }
.linkish {
  border: none; background: none; color: var(--green-dark);
  font-weight: 600; cursor: pointer; padding: 0; font-size: inherit;
}

/* Inputs */
.input {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 1rem;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(167,139,250,0.28); }
.input--sm { padding: 8px 10px; font-size: 0.85rem; border-radius: 10px; }
.input--color { padding: 4px; height: 44px; }
.field { display: block; margin-bottom: 12px; }
.field__label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field__hint { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.field--check { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: #eef2f7; padding: 4px; border-radius: 12px; margin-bottom: 12px;
}
.seg__btn {
  border: none; background: transparent; border-radius: 10px;
  padding: 10px 6px; font-weight: 700; cursor: pointer; color: var(--muted);
}
.seg__btn.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* Filters */
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.filters .input:last-child { grid-column: 1 / -1; }

/* Lists */
.tx-list, .acc-list, .budget-list, .goal-list, .simple-list, .tips-list, .cat-legend {
  list-style: none; margin: 0; padding: 0;
}
.tx-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }
.tx-item__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem;
}
.tx-item__body { flex: 1; min-width: 0; }
.tx-item__title { font-weight: 700; font-size: 0.95rem; }
.tx-item__sub { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-item__amt { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.tx-item__actions { display: flex; gap: 2px; }

.acc-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-right: 4px solid var(--acc, var(--green));
}
.acc-card.is-inactive { opacity: 0.55; }
.acc-card__main { display: flex; align-items: center; gap: 10px; }
.acc-card__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); flex-shrink: 0; }
.acc-card__info { flex: 1; min-width: 0; }
.acc-card__name { font-weight: 800; }
.acc-card__meta { font-size: 0.8rem; color: var(--muted); }
.acc-card__bal { font-weight: 800; font-size: 1.05rem; }
.acc-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acc-card__recent { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

.budget-card, .goal-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.budget-card.is-over { border: 1px solid #f5c6c2; }
.budget-card__head, .goal-card__head {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 0.9rem; margin-bottom: 8px;
}
.budget-card__foot, .goal-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-size: 0.8rem; gap: 8px;
}
.goal-card__actions { margin-top: 8px; display: flex; gap: 6px; }

.progress {
  height: 10px; background: #ebe4f4; border-radius: 99px; overflow: hidden;
}
.progress--budget {
  height: 14px;
  background: #ebe4f4;
  box-shadow: inset 0 1px 2px rgba(45, 38, 64, 0.06);
}
.progress__bar { height: 100%; border-radius: 99px; transition: width 0.35s ease; min-width: 0; }
.progress__bar--brand { background: var(--brand); }
.progress__bar--over { background: var(--danger); }

.simple-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.simple-list li:last-child { border-bottom: none; }

.tips-list { display: flex; flex-direction: column; gap: 8px; }
.tip {
  display: flex; justify-content: space-between; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4;
}
.tip--ok { background: #e7f8ef; }
.tip--info { background: #e8f1fb; }
.tip--warn { background: #fef0e4; }
.tip--alert { background: #fdecea; }

.quick-links, .stack-btns {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.stack-btns { flex-direction: column; }
.stack-btns .btn { width: 100%; }

/* Charts */
.chart-label { font-size: 9px; fill: #7a8699; }
.donut-center-label { font-size: 10px; fill: #7a8699; font-family: var(--font); }
.donut-center-value { font-size: 11px; font-weight: 700; fill: var(--navy); font-family: var(--font); }
.gauge-score { font-size: 28px; font-weight: 800; fill: var(--navy); font-family: var(--font); }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.donut-layout {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
}
.cat-legend { flex: 1; font-size: 0.8rem; list-style: none; margin: 0; padding: 0; }
.cat-legend li {
  display: flex; align-items: center; gap: 6px;
  padding: 0;
  min-height: 40px;
}
.cat-legend li strong { margin-inline-start: auto; }
.cat-legend__btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: inherit;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.cat-legend__btn:hover,
.cat-legend__btn:focus-visible {
  background: var(--brand-soft);
  outline: none;
}
.cat-legend__name { flex: 1; text-align: start; }
.cat-legend__btn strong { margin-inline-start: auto; font-weight: 700; }
.cat-legend--block { margin-top: 10px; }
.donut-hint { margin: 8px 0 0; font-size: 0.75rem; }
.donut-seg:focus { outline: none; }
.donut-seg:focus-visible { filter: brightness(1.08); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Income vs expense comparison */
.cf-compare { display: flex; flex-direction: column; gap: 12px; }
.cf-compare__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: 10px;
}
.cf-compare__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.cf-compare__track {
  height: 14px;
  background: #ebe4f4;
  border-radius: 99px;
  overflow: hidden;
}
.cf-compare__fill {
  height: 100%;
  border-radius: 99px;
  min-width: 0;
  transition: width 0.35s ease;
}
.cf-compare__fill--income { background: var(--brand); }
.cf-compare__fill--expense { background: #f87171; }
.cf-compare__amt { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

/* נשאר החודש */
.remain-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.remain-card--pos {
  background: linear-gradient(135deg, #f3eef9 0%, #ffffff 70%);
  border-color: #d8c9f5;
}
.remain-card--neg {
  background: linear-gradient(135deg, #fdecea 0%, #ffffff 70%);
  border-color: #f5c6c2;
}
.remain-card__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.remain-card__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.remain-card__hint { font-size: 0.72rem; }
.remain-card__value {
  margin: 6px 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.budget-list--home { margin: 0; }
.budget-card--home { box-shadow: none; border: 1px solid var(--border); }
.filter-chip-row { margin: 0 0 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--brand-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.filter-chip .linkish { font-size: 1rem; line-height: 1; padding: 0 2px; }

/* Chat */
.chat {
  display: flex; flex-direction: column; gap: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 4px 2px 12px;
  margin-bottom: 8px;
}
.bubble {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}
.bubble--user {
  align-self: flex-start;
  background: #d8f5e5;
  border-bottom-right-radius: 4px;
}
.bubble--bot {
  align-self: flex-end;
  background: #fff;
  border: 1px solid #c9eed9;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}
.chat-link { color: var(--green-dark); font-weight: 700; text-decoration: underline; }
.chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
}
.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
}
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.chip--action {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--navy);
}
.chip--nav {
  border-style: dashed;
}
.chat-actions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 8px;
}
.chat-input {
  display: flex; gap: 8px; align-items: center;
  position: sticky; bottom: 0;
  background: var(--bg); padding-top: 4px;
}
.chat-input .input { flex: 1; }
.chat-send { width: 48px; height: 48px; border-radius: 14px; padding: 0; font-size: 1.1rem; }

/* Bottom nav */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 0.7rem; font-weight: 600;
  text-decoration: none;
}
.bottom-nav__item.is-active { color: var(--green-dark); }
.bottom-nav__icon { font-size: 1.15rem; line-height: 1; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 39, 68, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: fadeIn 0.15s ease;
  overscroll-behavior: none;
}
@media (min-width: 480px) {
  .modal-overlay { align-items: center; padding: 16px; }
}
.modal {
  background: #fff;
  width: 100%;
  max-width: var(--shell);
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.2s ease;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
@media (min-width: 480px) {
  .modal { border-radius: 20px; }
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.modal__title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.modal__close { font-size: 1.4rem; line-height: 1; }
.modal__form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal__body { padding: 14px 16px; overflow-y: auto; flex: 1; overscroll-behavior: contain; touch-action: pan-y; }
.modal__actions {
  display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
  background: #fff;
}
.modal__actions .btn { flex: 1; padding: 14px; font-size: 1rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--err { background: var(--danger); }
.toast--ok { background: var(--navy); }


/* Color swatches (account form) */
.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.color-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  text-align: right;
}
.color-swatch__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.color-swatch__name { font-size: 0.9rem; color: var(--navy); }
.color-swatch.is-selected {
  border-color: var(--swatch);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch) 28%, transparent);
  background: #fafcfa;
}


/* Category chips in transaction modal */
.cat-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}
.cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: right;
  font-weight: 700;
}
.cat-chip__icon { font-size: 1.1rem; line-height: 1; }
.cat-chip__name { font-size: 0.88rem; color: var(--navy); }
.cat-chip.is-selected {
  border-color: var(--cat, var(--green));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--green)) 25%, transparent);
  background: #f7fbf8;
}


/* Modal fields: reduce swipe-to-scroll quirks that can dismiss overlay */
.modal input,
.modal select,
.modal textarea,
.modal button {
  touch-action: manipulation;
}


/* Recurring rules */
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg--3 { grid-template-columns: 1fr 1fr 1fr; }
.tx-filter-total {
  margin: 4px 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.rr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rr-card {
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(45, 38, 64, 0.06);
  border: 1px solid var(--border);
}
.rr-card.is-inactive { opacity: 0.55; }
.rr-card__main { display: flex; align-items: center; gap: 10px; }
.rr-card__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem;
}
.rr-card__body { flex: 1; min-width: 0; }
.rr-card__title { font-weight: 700; font-size: 0.95rem; }
.rr-card__sub { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-card__amt { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.rr-card__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border);
}
.rr-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; margin-inline-end: auto;
}
.rr-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }


/* Demo video / preview block */
.demo-video__h1 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
}
.demo-video__sub { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.45; }
.demo-video__stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #ebe4f5, #d9d0e8);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.demo-video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.demo-video__badge {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-end: 10px;
  background: rgba(45, 38, 64, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.demo-video__caption {
  margin: 10px 0 4px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}
.demo-video__note { margin: 0 0 10px; font-size: 0.75rem; }
.demo-video__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 4px;
}
.demo-video__thumbs img {
  width: 72px;
  height: 128px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--brand-soft);
}
.demo-video__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.demo-video__cta { margin-top: 4px; }
.demo-video__cta-hint { margin: 8px 0 0; font-size: 0.8rem; }

/* Legal disclaimer */
.disclaimer {
  margin: 16px 0 28px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f7f4fb;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}
.disclaimer__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}
.disclaimer p { margin: 0 0 8px; }
.disclaimer p:last-child { margin-bottom: 0; }
