/* Product UI mocks: always light, independent of page scene */
.frame {
  --pf: #fff; --pf-2: #F5F7FA; --pf-line: #E6EAF0; --pf-ink: #14243D; --pf-muted: #66758A;
  background: var(--pf); color: var(--pf-ink); border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 40px 80px -30px rgba(3,10,24,.55), 0 12px 30px -12px rgba(3,10,24,.3);
  overflow: hidden; font-size: 13px; line-height: 1.4;
}
.frame-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--pf-line); background: var(--pf-2); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #D7DDE6; }
.frame-title { font-size: 12px; color: var(--pf-muted); }

.st { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.st-ok { background: #E9F7F0; color: #17724F; } .st-watch { background: #FFF5EA; color: #8A5517; } .st-done { background: #EEF2F8; color: #56657A; }

/* Tour panels */
.tour-frame { position: relative; }
.tour-panel { position: absolute; inset: 40px 0 0; padding: 26px; display: grid; gap: 18px; align-content: start;
  opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.tour-frame[data-active="0"] [data-panel="0"], .tour-frame[data-active="1"] [data-panel="1"], .tour-frame[data-active="2"] [data-panel="2"] { opacity: 1; transform: none; transition-delay: .1s; pointer-events: auto; }
.tp-title { font-size: 16px; font-weight: 500; }
.tour-panel[data-panel="0"], .tour-panel[data-panel="2"] { align-content: center; }
/* Cash flow panel: the month's spending as one bar split by category, then a ranked table */
.mix { gap: 16px; }
.mix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mix-head span { font-size: 12px; color: var(--pf-muted); }
.mix-bar { display: flex; gap: 2px; height: 18px; border-radius: 6px; overflow: hidden; }
.mix-bar b { width: var(--w); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.mix-bar b:nth-child(2) { transition-delay: .08s; } .mix-bar b:nth-child(3) { transition-delay: .16s; }
.mix-bar b:nth-child(4) { transition-delay: .24s; } .mix-bar b:nth-child(5) { transition-delay: .32s; }
.tour-frame[data-active="0"] .mix-bar b { transform: none; }
.mx-0 { background: var(--navy-800); } .mx-1 { background: var(--primary-700); } .mx-2 { background: var(--primary-600); }
.mx-3 { background: var(--primary-500); } .mx-4 { background: var(--primary-400); }
.mix-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mix-table thead th { padding: 0 0 8px; font-size: 11px; font-weight: 500; color: var(--pf-muted); text-align: right; }
.mix-table thead th:first-child { text-align: left; }
.mix-table tbody th, .mix-table td { padding: 10px 0; border-top: 1px solid var(--pf-line); font-variant-numeric: tabular-nums; }
.mix-table tbody th { font-weight: 400; text-align: left; }
.mix-table tbody th i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: -1px; }
.mix-table td { text-align: right; padding-left: 12px; }
/* Change vs last month: spending up reads amber, down reads green */
.dl { font-style: normal; font-size: 11.5px; padding: 2px 7px; border-radius: 999px; }
.dl.up { background: #FFF5EA; color: #8A5517; } .dl.down { background: #E9F7F0; color: #17724F; } .dl.flat { background: #EEF2F8; color: #56657A; }

.chg { font-style: normal; font-size: 12px; } .chg.up { color: #17724F; } .chg.down { color: #B5452F; }
.alert-row { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: #FFF7EE; }
.alert-row i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--dawn); box-shadow: 0 0 0 4px rgba(243,185,126,.3); }
.alert-row div { display: grid; gap: 2px; } .alert-row span { color: var(--pf-muted); }

/* Offer panel: amount on a range, what it was built from, when remittances land */
.tour-panel.ofr { gap: 14px; padding: 22px 24px; }
.ofr-top { display: flex; justify-content: space-between; align-items: center; }
.ofr-amount { padding: 16px 18px; border-radius: 14px; color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, rgba(108,137,183,.7), transparent 60%), linear-gradient(140deg, var(--navy), var(--night)); }
.ofr-amount > span { font-size: 12px; color: #C2DAFF; }
.ofr-amount strong { display: block; font-size: 34px; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ofr-range { position: relative; height: 6px; margin: 14px 0 8px; border-radius: 99px; background: rgba(255,255,255,.18); }
.ofr-range b { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary-700), var(--primary-400)); transform: scaleX(.25); transform-origin: left; transition: transform 1.3s var(--ease-out) .25s; }
.ofr-range i { position: absolute; top: 50%; left: 25%; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255,255,255,.22); transition: left 1.3s var(--ease-out) .25s; }
.tour-frame[data-active="2"] .ofr-range b { transform: scaleX(1); }
.tour-frame[data-active="2"] .ofr-range i { left: calc(100% - 8px); }
.ofr-ticks { display: flex; justify-content: space-between; font-size: 11px; color: #C2DAFF; }
.ofr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ofr-box { display: grid; gap: 10px; align-content: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--pf-line); }
.ofr-label { font-size: 12px; color: var(--pf-muted); }
.ofr-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
@media (max-width: 900px) { .ofr-bars { height: 44px; } }
.ofr-bars b { flex: 1; height: calc(var(--h) * 100%); border-radius: 2px; background: linear-gradient(180deg, var(--signal), var(--navy));
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms + .3s); }
.ofr-bars b:nth-child(2) { --i: 1; } .ofr-bars b:nth-child(3) { --i: 2; } .ofr-bars b:nth-child(4) { --i: 3; } .ofr-bars b:nth-child(5) { --i: 4; } .ofr-bars b:nth-child(6) { --i: 5; }
.ofr-bars b:nth-child(7) { --i: 6; } .ofr-bars b:nth-child(8) { --i: 7; } .ofr-bars b:nth-child(9) { --i: 8; } .ofr-bars b:nth-child(10) { --i: 9; } .ofr-bars b:nth-child(11) { --i: 10; } .ofr-bars b:nth-child(12) { --i: 11; }
.tour-frame[data-active="2"] .ofr-bars b { transform: none; }
.ofr-dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ofr-dates li { display: grid; justify-items: center; padding: 5px 0; border-radius: 8px; background: #F2F5F9; font-size: 10.5px; color: var(--pf-muted); }
.ofr-dates b { font-size: 15px; font-weight: 600; color: var(--pf-ink); }
.ofr-dates li:first-child { background: #E6F0FF; outline: 1px solid rgba(108,137,183,.4); }
.ofr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ofr-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ofr-checks li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 6px; border-radius: 999px; background: #E9F7F0; color: #17724F; font-size: 11.5px;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.ofr-checks li::before { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.4L12 5.2' fill='none' stroke='%231F9D6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.tour-frame[data-active="2"] .ofr-checks li { opacity: 1; transform: none; }
.tour-frame[data-active="2"] .ofr-checks li:nth-child(1) { transition-delay: .6s; } .tour-frame[data-active="2"] .ofr-checks li:nth-child(2) { transition-delay: .75s; } .tour-frame[data-active="2"] .ofr-checks li:nth-child(3) { transition-delay: .9s; }
.offer-btn { flex: none; pointer-events: none; }

@media (max-width: 760px) {
  .ofr-checks { display: none; }
  .ofr-amount strong { font-size: 28px; }
  .tour-panel { padding: 18px; gap: 14px; }
}
