:root{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#77809a;--blue:#6f8cff;--green:#42b883;--red:#ef6b73;--orange:#f0a44b;--purple:#9575ff;--border:#e8ebf3;--shadow:0 10px 30px rgba(44,55,85,.08)}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,system-ui,sans-serif}body{min-height:100vh}.shell{max-width:620px;margin:0 auto;min-height:100vh;padding:calc(env(safe-area-inset-top) + 18px) 16px calc(92px + env(safe-area-inset-bottom))}.header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.eyebrow{color:var(--muted);font-size:14px}.title{font-size:32px;font-weight:800;letter-spacing:-.03em;margin:2px 0}.icon-btn,.fab,.primary,.secondary,.chip,.tab,.row-btn{border:0;font:inherit;cursor:pointer}.icon-btn{width:42px;height:42px;border-radius:16px;background:var(--card);box-shadow:var(--shadow);font-size:20px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.card{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:var(--shadow);margin-bottom:14px}.hero{background:linear-gradient(135deg,#edf2ff,#ffffff 55%,#f6f1ff)}.big{font-size:30px;font-weight:800;letter-spacing:-.04em}.label{color:var(--muted);font-size:13px}.metric{font-size:20px;font-weight:750;margin-top:4px}.positive{color:var(--green)}.negative{color:var(--red)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:22px 4px 10px}.section-title h2{font-size:19px;margin:0}.link{color:var(--blue);font-weight:650;font-size:14px}.list{overflow:hidden;background:var(--card);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow)}.row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border)}.row:last-child{border-bottom:0}.avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#f0f3ff;font-size:21px;flex:0 0 auto}.row-main{flex:1;min-width:0}.row-title{font-weight:700}.row-sub{font-size:12px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.amount{text-align:right;font-weight:750}.amount small{display:block;color:var(--muted);font-weight:500;margin-top:4px}.chips{display:flex;gap:8px;overflow:auto;padding-bottom:4px;margin-bottom:14px}.chip{background:#fff;border:1px solid var(--border);padding:9px 14px;border-radius:999px;color:var(--muted);white-space:nowrap}.chip.active{background:#eef2ff;border-color:#cfd8ff;color:#526ee6;font-weight:700}.progress{height:10px;background:#eef0f5;border-radius:999px;overflow:hidden;margin:10px 0 6px}.progress>span{display:block;height:100%;background:var(--blue);border-radius:999px}.budget-row{margin-bottom:18px}.budget-head{display:flex;justify-content:space-between;gap:12px}.bottom{position:fixed;z-index:30;left:0;right:0;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(248,249,252,.94);backdrop-filter:blur(16px);border-top:1px solid var(--border)}.tabs{max-width:620px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.tab{background:transparent;color:#8b93a8;font-size:10px;padding:7px 2px}.tab span{display:block;font-size:21px;margin-bottom:2px}.tab.active{color:var(--blue);font-weight:700}.fab{position:fixed;right:max(22px,calc((100vw - 620px)/2 + 22px));bottom:calc(92px + env(safe-area-inset-bottom));width:58px;height:58px;border-radius:50%;background:var(--blue);color:white;font-size:32px;box-shadow:0 12px 28px rgba(82,110,230,.35);z-index:25}.seg{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;background:#eef1f7;border-radius:14px;margin-bottom:18px}.seg button{padding:10px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-weight:650}.seg button.active{background:white;color:var(--text);box-shadow:0 3px 10px rgba(0,0,0,.06)}.field{margin-bottom:14px}.field label{display:block;color:var(--muted);font-size:13px;margin:0 0 6px 4px}.field input,.field select,.field textarea{width:100%;padding:14px;border-radius:15px;border:1px solid var(--border);font:inherit;background:#fff;color:var(--text)}.field textarea{min-height:78px;resize:vertical}.primary{width:100%;padding:14px 16px;border-radius:16px;background:var(--blue);color:#fff;font-weight:750}.secondary{padding:9px 12px;border-radius:12px;background:#f1f3f8;color:var(--text);font-weight:650}.modal-wrap{position:fixed;z-index:100;inset:0;background:rgba(15,21,37,.35);display:flex;align-items:flex-end;justify-content:center}.modal{width:min(620px,100%);max-height:92vh;overflow:auto;background:var(--bg);border-radius:28px 28px 0 0;padding:18px 16px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px rgba(0,0,0,.18)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal h2{margin:0}.finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.finance-tile{background:white;border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:var(--shadow)}.finance-tile b{display:block;margin-top:8px}.note{font-size:12px;color:var(--muted);line-height:1.45}.status{font-size:11px;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#526ee6;font-weight:700;display:inline-block}.danger{background:#fff0f1;color:#ca4d56}.success{background:#edf9f4;color:#268a64}.empty{text-align:center;padding:28px;color:var(--muted)}

.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.summary-grid .card{padding:14px}.transfer-amount{color:var(--purple)}.tx-row{width:100%;text-align:left;background:transparent;color:inherit}.tx-row:active{background:#f7f8fc}.detail-card{text-align:center;padding:24px}.detail-icon{font-size:38px}.detail-amount{font-size:30px;font-weight:800;margin:10px 0}.detail-list{background:#fff;border:1px solid var(--border);border-radius:22px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:14px}.detail-line{display:flex;justify-content:space-between;gap:20px;padding:14px 16px;border-bottom:1px solid var(--border)}.detail-line:last-child{border-bottom:0}.detail-line span{color:var(--muted)}.detail-line b{text-align:right;word-break:break-word}.modal-actions{display:grid;gap:10px}.modal-actions .secondary,.modal-actions .primary{width:100%}@media(max-width:420px){.summary-grid{grid-template-columns:1fr 1fr}.summary-grid .card:last-child{grid-column:1/-1}.metric{font-size:18px}}

.confirm-overlay{position:fixed;z-index:300;inset:0;background:rgba(15,21,37,.38);display:flex;align-items:flex-end;justify-content:center;padding:16px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left))}
.confirm-sheet{width:min(520px,100%);background:#fff;border-radius:24px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.22)}
.confirm-title{font-size:20px;font-weight:800}
.confirm-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.danger-solid{background:#d94b55!important;color:#fff!important}
 
.sub-totals{display:flex;gap:12px;flex-wrap:wrap}.sub-totals>div{padding:12px;border-radius:16px;background:#f5f7fb}.sub-totals b,.sub-totals small{display:block}textarea{width:100%;box-sizing:border-box;border:1px solid #dde2ec;border-radius:14px;padding:12px;font:inherit}
html[data-theme="dark"]{color-scheme:dark}html[data-theme="dark"] body{background:#0d1118;color:#f2f5fa}html[data-theme="dark"] .card,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .confirm-sheet{background:#171d27!important;color:#f2f5fa}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#111722;color:#f2f5fa;border-color:#303847}


:root{--bm-bg:#f6f8fc;--bm-card:#ffffff;--bm-text:#111827;--bm-muted:#6b7280;--bm-border:#e5e7eb;--bm-input:#ffffff}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--bm-bg:#0b1017;--bm-card:#171d27;--bm-text:#f3f6fb;--bm-muted:#9aa6b6;--bm-border:#303847;--bm-input:#111722}
html[data-theme="dark"] body{background:var(--bm-bg)!important;color:var(--bm-text)!important}
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .confirm-sheet,
html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] .sheet{background:var(--bm-card)!important;color:var(--bm-text)!important}
html[data-theme="dark"] .row,
html[data-theme="dark"] .row-btn,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] .row-title,
html[data-theme="dark"] .amount{color:var(--bm-text)!important}
html[data-theme="dark"] .label,
html[data-theme="dark"] .row-sub,
html[data-theme="dark"] .note,
html[data-theme="dark"] small,
html[data-theme="dark"] .eyebrow{color:var(--bm-muted)!important}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:var(--bm-input)!important;color:var(--bm-text)!important;border-color:var(--bm-border)!important}
html[data-theme="dark"] .sub-totals>div{background:#111722!important}
@media (prefers-color-scheme:dark){
 html[data-theme="system"]{color-scheme:dark}
 html[data-theme="system"] body{background:#0b1017!important;color:#f3f6fb!important}
 html[data-theme="system"] .card,
 html[data-theme="system"] .modal-card,
 html[data-theme="system"] .confirm-sheet,
 html[data-theme="system"] .bottom-nav{background:#171d27!important;color:#f3f6fb!important}
 html[data-theme="system"] input,
 html[data-theme="system"] select,
 html[data-theme="system"] textarea{background:#111722!important;color:#f3f6fb!important;border-color:#303847!important}
}
.summary-line{display:flex;align-items:center;justify-content:space-between;padding:10px 0 12px}

/* v8.3 dark-mode and form polish */
.transaction-date-note{align-items:end}
.transaction-date-note .field{display:flex;flex-direction:column;min-width:0}
.transaction-date-note input{width:100%;height:48px;box-sizing:border-box}
.filter-grid input{width:100%;height:46px;box-sizing:border-box}
.summary-line{display:flex;align-items:center;justify-content:space-between;padding:10px 0 12px}
.tx-row .row-title,.row-btn .row-title{font-weight:700;color:#111827}

html[data-theme="dark"] body{background:#0a0f16!important;color:#f5f7fb!important}
html[data-theme="dark"] .shell{background:#0a0f16!important}
html[data-theme="dark"] .card,
html[data-theme="dark"] .finance-tile,
html[data-theme="dark"] .list,
html[data-theme="dark"] .row,
html[data-theme="dark"] .tx-row,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .confirm-sheet,
html[data-theme="dark"] .settings-list{background:#171d27!important;color:#f5f7fb!important;border-color:#2d3746!important}
html[data-theme="dark"] .finance-tile{box-shadow:none!important}
html[data-theme="dark"] .row-title,
html[data-theme="dark"] .finance-tile b,
html[data-theme="dark"] .title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .big{color:#f5f7fb!important}
html[data-theme="dark"] .row-sub,
html[data-theme="dark"] .note,
html[data-theme="dark"] .label,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] small{color:#a8b3c3!important}
html[data-theme="dark"] .positive{color:#4ddb91!important}
html[data-theme="dark"] .negative{color:#ff7782!important}
html[data-theme="dark"] .transfer-amount{color:#a78bfa!important}
html[data-theme="dark"] .bottom{background:#141a23!important;border-color:#2a3342!important;box-shadow:0 -10px 30px rgba(0,0,0,.35)!important}
html[data-theme="dark"] .tabs{background:#141a23!important}
html[data-theme="dark"] .tab{background:transparent!important;color:#8f9bad!important}
html[data-theme="dark"] .tab.active{color:#4b82ff!important}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#0f1620!important;color:#f5f7fb!important;border:1px solid #344052!important}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#7f8a9a!important}
html[data-theme="dark"] .secondary{background:#222b38!important;color:#f5f7fb!important;border-color:#364357!important}
html[data-theme="dark"] .chip{background:#1c2430!important;color:#c6cfdb!important;border-color:#303b4b!important}
html[data-theme="dark"] .chip.active{background:#2d5fe8!important;color:white!important}
html[data-theme="dark"] .avatar{background:#222b38!important}
html[data-theme="dark"] .modal-wrap{background:rgba(0,0,0,.68)!important}
html[data-theme="dark"] .tx-row .row-title,
html[data-theme="dark"] .row-btn .row-title{color:#ffffff!important}
html[data-theme="dark"] .home .tx-row,
html[data-theme="dark"] .home .row{background:#171d27!important}

@media(prefers-color-scheme:dark){
 html[data-theme="system"] body{background:#0a0f16!important;color:#f5f7fb!important}
 html[data-theme="system"] .shell{background:#0a0f16!important}
 html[data-theme="system"] .card,
 html[data-theme="system"] .finance-tile,
 html[data-theme="system"] .list,
 html[data-theme="system"] .row,
 html[data-theme="system"] .tx-row,
 html[data-theme="system"] .modal,
 html[data-theme="system"] .bottom,
 html[data-theme="system"] .tabs{background:#171d27!important;color:#f5f7fb!important;border-color:#2d3746!important}
 html[data-theme="system"] .row-title,
 html[data-theme="system"] .finance-tile b,
 html[data-theme="system"] .title{color:#f5f7fb!important}
 html[data-theme="system"] .row-sub,
 html[data-theme="system"] .note,
 html[data-theme="system"] .label{color:#a8b3c3!important}
}

/* BudgetMate v8.4 layout polish */
.transaction-filter-card{
  width:100%;
  max-width:680px;
  margin:0 auto 16px auto!important;
  box-sizing:border-box;
}
.transaction-filter-card .filter-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  width:100%;
}
.transaction-filter-card .field{
  min-width:0;
}
.transaction-filter-card input[type="date"]{
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  box-sizing:border-box!important;
}

.transaction-date-note{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  width:100%;
}
.transaction-date-note .field{
  min-width:0!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.transaction-date-note label{
  min-height:20px;
  display:flex;
  align-items:flex-end;
  margin-bottom:6px!important;
}
.transaction-date-note input{
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
.transaction-date-note input[type="date"]{
  display:block!important;
  line-height:52px!important;
}

/* Keep the filter visually centered on tablets and phones */
@media (max-width:800px){
  .transaction-filter-card{
    max-width:100%;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* BudgetMate v8.5 - force date filter to true center */
.transaction-filter-card{
  display:block!important;
  width:calc(100% - 32px)!important;
  max-width:620px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  margin-top:0!important;
  margin-bottom:16px!important;
  box-sizing:border-box!important;
  align-self:center!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}
.transaction-filter-card .filter-grid{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.transaction-filter-card .field{
  width:100%!important;
  min-width:0!important;
}
.transaction-filter-card input[type="date"]{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
@media (max-width:520px){
  .transaction-filter-card{
    width:calc(100% - 20px)!important;
    max-width:none!important;
  }
}

/* BudgetMate v8.6 — iPad date-filter alignment fix */

/* Match the exact width/alignment of every other card in the page */
.transaction-filter-card{
  width:auto!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  margin-top:0!important;
  margin-bottom:14px!important;
  padding:18px!important;
  overflow:hidden!important;
  position:static!important;
  transform:none!important;
}

/* Force two truly equal columns */
.transaction-filter-card .filter-grid{
  display:grid!important;
  grid-template-columns:calc(50% - 6px) calc(50% - 6px)!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
}

.transaction-filter-card .filter-grid .field{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

/* iOS/iPadOS Safari otherwise gives date controls an oversized intrinsic width */
.transaction-filter-card input[type="date"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:block!important;
  inline-size:100%!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:52px!important;
  box-sizing:border-box!important;
  padding:0 12px!important;
  margin:0!important;
  border-radius:14px!important;
  font-size:16px!important;
  overflow:hidden!important;
}

/* Keep the internal Safari date text centered without expanding the input */
.transaction-filter-card input[type="date"]::-webkit-date-and-time-value{
  text-align:center!important;
  min-width:0!important;
}

/* Also keep Add Transaction Date/Note perfectly matched */
.transaction-date-note{
  grid-template-columns:calc(50% - 6px) calc(50% - 6px)!important;
}
.transaction-date-note .field{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
.transaction-date-note input{
  -webkit-appearance:none;
  appearance:none;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:52px!important;
  box-sizing:border-box!important;
  padding:0 12px!important;
  margin:0!important;
  font-size:16px!important;
}

/* v9.0 AI + iOS date text centering */
.transaction-filter-card input[type="date"]{
  text-align:center!important;
  text-align-last:center!important;
}
.transaction-filter-card input[type="date"]::-webkit-date-and-time-value{
  text-align:center!important;
  width:100%!important;
}
.budget-actions{display:flex;gap:8px;flex-wrap:wrap}
.ai-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.ai-intro,.ai-answer{margin-bottom:12px}
.ai-answer p{line-height:1.5}
@media(max-width:520px){.ai-quick{grid-template-columns:1fr}}

/* v9.1 — iPad/iPhone Safari transaction date centering */
.transaction-filter-card input[type="date"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  text-align-last:center!important;
  padding-left:38px!important;
  padding-right:38px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.transaction-filter-card input[type="date"]::-webkit-date-and-time-value{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  text-align:center!important;
  margin:0!important;
}
.transaction-filter-card input[type="date"]::-webkit-datetime-edit{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  padding:0!important;
}
.transaction-filter-card input[type="date"]::-webkit-datetime-edit-fields-wrapper{
  display:flex!important;
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
}
.transaction-filter-card input[type="date"]::-webkit-calendar-picker-indicator{
  position:absolute!important;
  right:12px!important;
  margin:0!important;
}
.transaction-filter-card .field{
  position:relative!important;
}

/* v9.2 Rufiyaa Local */
.rufiyaa-hero{margin-bottom:12px}
.rufiyaa-insight-box{padding:16px;border-radius:18px;background:rgba(87,98,246,.08);margin-bottom:12px;line-height:1.5}
.rufiyaa-insight-box p{margin-bottom:0}
.rufiyaa-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}
.rufiyaa-actions button{text-align:left;min-height:48px}
.rufiyaa-actions button span{margin-right:7px}
.rufiyaa-result{margin-top:12px;line-height:1.55}
.rufiyaa-result p{margin-bottom:10px}
html[data-theme="dark"] .rufiyaa-insight-box{background:#171b38!important;color:#f5f7fb}
@media(max-width:520px){.rufiyaa-actions{grid-template-columns:1fr 1fr}}

/* v9.3 navigation, Rufiyaa and Savings */
.header{display:flex;align-items:center;justify-content:space-between}
.header-settings{border:0;background:transparent;color:inherit;font-size:26px;padding:8px 10px;border-radius:14px}
.rufiyaa-tab{position:relative;transform:translateY(-13px)!important;overflow:visible!important}
.rufiyaa-tab span{width:50px;height:50px;border-radius:50%;display:grid!important;place-items:center;background:#315fe8;color:white!important;box-shadow:0 7px 22px rgba(49,95,232,.38);font-size:20px}
.rufiyaa-tab.active span{box-shadow:0 7px 28px rgba(49,95,232,.62),0 0 0 4px rgba(49,95,232,.15)}
.rufiyaa-home-hero{text-align:center;padding:22px}
.progress{height:7px;background:rgba(128,128,128,.18);border-radius:99px;overflow:hidden;margin-top:9px}
.progress i{display:block;height:100%;background:#315fe8;border-radius:99px}
html[data-theme="dark"] .header-settings{color:#fff}

/* ================================
   BudgetMate v9.3.1 bug-fix polish
   ================================ */

/* Add Transaction button: safely above navigation */
.fab{
  bottom:112px!important;
  right:24px!important;
  z-index:40!important;
}

/* Rufiyaa: true centered highlighted middle navigation item */
.tabs{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:end!important;
}
.rufiyaa-tab{
  transform:none!important;
  position:relative!important;
  overflow:visible!important;
  padding-top:0!important;
}
.rufiyaa-tab span{
  width:54px!important;
  height:54px!important;
  margin:-18px auto 4px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,#6d5dfc,#315fe8)!important;
  color:#fff!important;
  box-shadow:0 9px 24px rgba(71,82,242,.42)!important;
  font-size:21px!important;
}
.rufiyaa-tab.active span{
  box-shadow:0 10px 30px rgba(91,72,255,.6),0 0 0 4px rgba(91,72,255,.16)!important;
}
.rufiyaa-tab{
  text-align:center!important;
}

/* Dark mode detail pages: Account / Credit Card / Transaction / Subscription */
html[data-theme="dark"] .modal{
  background:#121923!important;
  color:#f7f9fd!important;
}
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .detail-list,
html[data-theme="dark"] .detail-line{
  background:#171f2b!important;
  color:#f7f9fd!important;
  border-color:#2f3a4b!important;
}
html[data-theme="dark"] .detail-list{
  border-radius:18px!important;
  overflow:hidden!important;
}
html[data-theme="dark"] .detail-line{
  border-bottom:1px solid #2c3646!important;
}
html[data-theme="dark"] .detail-line:last-child{
  border-bottom:0!important;
}
html[data-theme="dark"] .detail-line span{
  color:#9da9ba!important;
}
html[data-theme="dark"] .detail-line b,
html[data-theme="dark"] .detail-card b,
html[data-theme="dark"] .detail-amount,
html[data-theme="dark"] .status{
  color:#f7f9fd!important;
}
html[data-theme="dark"] .modal-actions .secondary{
  background:#202a38!important;
  color:#f7f9fd!important;
  border-color:#344256!important;
}

/* System dark gets same detail-page treatment */
@media(prefers-color-scheme:dark){
  html[data-theme="system"] .modal,
  html[data-theme="system"] .detail-card,
  html[data-theme="system"] .detail-list,
  html[data-theme="system"] .detail-line{
    background:#171f2b!important;
    color:#f7f9fd!important;
    border-color:#2f3a4b!important;
  }
  html[data-theme="system"] .detail-line span{color:#9da9ba!important}
  html[data-theme="system"] .detail-line b,
  html[data-theme="system"] .detail-amount{color:#f7f9fd!important}
}

/* Finance date fields: equal widths, heights and centered text on iOS/iPadOS */
.finance-date-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:end!important;
}
.finance-date-grid .field,
.finance-date-field{
  min-width:0!important;
  width:100%!important;
}
.finance-date-grid input[type="date"],
.finance-date-field input[type="date"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  box-sizing:border-box!important;
  padding:0 14px!important;
  margin:0!important;
  text-align:center!important;
  text-align-last:center!important;
  font-size:16px!important;
}
.finance-date-grid input[type="date"]::-webkit-date-and-time-value,
.finance-date-field input[type="date"]::-webkit-date-and-time-value{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  margin:0!important;
}
.finance-date-grid input[type="date"]::-webkit-datetime-edit,
.finance-date-field input[type="date"]::-webkit-datetime-edit{
  width:100%!important;
  text-align:center!important;
}
.finance-date-grid input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.finance-date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper{
  display:flex!important;
  justify-content:center!important;
  width:100%!important;
}

/* Cleaner Rufiyaa page */
.rufiyaa-overview{
  text-align:left!important;
  padding:22px!important;
  margin-bottom:14px!important;
}
.rufiyaa-greeting{
  font-size:18px!important;
  font-weight:700!important;
  margin-bottom:18px!important;
}
.rufiyaa-safe-label{
  color:#8f9bae!important;
  font-size:13px!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
  margin-bottom:4px!important;
}
.rufiyaa-insights-card{
  padding:18px!important;
  margin-bottom:22px!important;
}
.rufiyaa-section-title{
  margin-top:0!important;
  margin-bottom:8px!important;
}
.rufiyaa-insight-box{
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}
.rufiyaa-tools-title{
  margin-top:6px!important;
  margin-bottom:10px!important;
}
.rufiyaa-actions-clean{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0 0 22px!important;
}
.rufiyaa-tool{
  min-height:96px!important;
  border-radius:18px!important;
  border:1px solid #dfe4ed!important;
  background:#fff!important;
  color:#111827!important;
  padding:16px!important;
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  text-align:left!important;
}
.rufiyaa-tool-icon{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  border-radius:12px!important;
  display:grid!important;
  place-items:center!important;
  background:#eef2ff!important;
}
.rufiyaa-tool>span:last-child{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  min-width:0!important;
}
.rufiyaa-tool b{
  display:block!important;
  margin:0 0 6px!important;
  line-height:1.2!important;
  font-size:15px!important;
}
.rufiyaa-tool small{
  display:block!important;
  line-height:1.35!important;
  color:#758195!important;
  font-size:12px!important;
}
html[data-theme="dark"] .rufiyaa-tool{
  background:#171f2b!important;
  border-color:#303c4d!important;
  color:#f7f9fd!important;
}
html[data-theme="dark"] .rufiyaa-tool-icon{
  background:#222c45!important;
}
html[data-theme="dark"] .rufiyaa-tool b{
  color:#f7f9fd!important;
}
html[data-theme="dark"] .rufiyaa-tool small{
  color:#9eaabc!important;
}
html[data-theme="dark"] .rufiyaa-insights-card,
html[data-theme="dark"] .rufiyaa-overview{
  background:#171f2b!important;
  border-color:#303c4d!important;
}
@media(max-width:520px){
  .rufiyaa-actions-clean{grid-template-columns:1fr!important}
}

/* Keep modal forms themselves dark rather than white */
html[data-theme="dark"] .modal form,
html[data-theme="dark"] .modal .list,
html[data-theme="dark"] .modal .card{
  color:#f7f9fd!important;
}

/* v9.3.2 Lent/Borrowed date alignment */
.debt-date-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;align-items:end!important}
.debt-date-grid .field{width:100%!important;min-width:0!important}
.debt-date-grid input[type="date"]{-webkit-appearance:none!important;appearance:none!important;display:block!important;width:100%!important;min-width:0!important;height:52px!important;box-sizing:border-box!important;padding:0 14px!important;margin:0!important;text-align:center!important;text-align-last:center!important;font-size:16px!important}
.debt-date-grid input[type="date"]::-webkit-date-and-time-value{display:block!important;width:100%!important;text-align:center!important;margin:0!important}
.debt-date-grid input[type="date"]::-webkit-datetime-edit{width:100%!important;text-align:center!important}
.debt-date-grid input[type="date"]::-webkit-datetime-edit-fields-wrapper{display:flex!important;justify-content:center!important;width:100%!important}

/* v9.4 automatic Cloud Sync */
.sync-ok{font-weight:700;color:#1aa66a;margin:10px 0 4px}
.sync-conflict{border:1px solid #e3a52b!important}
.text-button{width:100%;border:0;background:transparent;color:#4f6fe8;padding:14px 10px;font-weight:700;font:inherit}
html[data-theme="dark"] .sync-ok{color:#4ddd96}
html[data-theme="dark"] .sync-conflict{background:#292111!important;border-color:#a97920!important}
html[data-theme="dark"] .text-button{color:#8da4ff}

/* v9.5.1 */
.transaction-search-card{padding:12px 14px!important}.transaction-search{width:100%;border:0!important;background:transparent!important;padding:8px 0!important;font-size:16px!important}
.tx-date-group{margin:18px 0}.tx-date-heading{font-size:14px;font-weight:800;letter-spacing:.04em;opacity:.72;margin:0 4px 8px}
.swipe-shell{position:relative;overflow:hidden;border-radius:18px;margin-bottom:8px}.swipe-actions{position:absolute;right:0;top:0;bottom:0;width:128px;display:flex}.swipe-actions button{width:64px;border:0;background:#4f6fe8;color:white;font-weight:700}.swipe-actions .danger-action{background:#d84b55}.swipe-content{position:relative;z-index:2;background:var(--card,#fff);transition:transform .2s ease}
.quick-add-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick-add-grid button{border:1px solid rgba(128,128,128,.2);background:transparent;color:inherit;border-radius:14px;padding:12px 6px;font-weight:700}
.home-networth-card{position:relative}.privacy-toggle{position:absolute;right:14px;top:14px;width:34px;height:34px;border-radius:11px;border:1px solid rgba(128,128,128,.18);background:rgba(128,128,128,.08);display:grid;place-items:center;color:inherit}.privacy-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.undo-toast{position:fixed;left:50%;bottom:110px;transform:translate(-50%,20px);opacity:0;z-index:9999;background:#111827;color:#fff;border-radius:14px;padding:12px 14px;display:flex;gap:18px;align-items:center;transition:.2s}.undo-toast.show{opacity:1;transform:translate(-50%,0)}.undo-toast button{border:0;background:transparent;color:#9bb0ff;font-weight:800}
.pull-rufiyaa{position:fixed;left:50%;top:0;transform:translate(-50%,-70px);z-index:9998;display:flex;align-items:center;gap:9px;background:#151d29;color:#fff;border-radius:0 0 18px 18px;padding:11px 17px;transition:transform .18s;pointer-events:none}.pull-rufiyaa.refreshing .pull-star{animation:rspin .8s linear infinite}@keyframes rspin{to{transform:rotate(360deg)}}

/* v9.5.2 search + Quick Add + Rufiyaa refresh polish */
.transaction-search-wrap{display:flex;align-items:center;gap:10px}
.search-icon{font-size:22px;opacity:.58;flex:0 0 auto}
.transaction-search{outline:none!important}

.quick-add-home{padding:17px!important;margin-top:14px}
.quick-add-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.quick-add-title{font-size:17px;font-weight:800;margin-top:2px}
.quick-add-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.quick-add-grid button{min-height:72px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:5px!important;border-radius:16px!important}
.quick-add-grid button span{font-size:22px;font-weight:500;line-height:1}
.quick-add-grid button b{font-size:13px}

.pull-rufiyaa{position:fixed!important;left:50%!important;top:0!important;width:min(420px,calc(100% - 28px))!important;transform:translate(-50%,-102px);z-index:9998!important;padding:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;transition:transform .16s ease!important;pointer-events:none}
.pull-card{height:78px;border-radius:0 0 22px 22px;background:rgba(18,25,38,.97);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:flex;align-items:center;padding:11px 16px;gap:12px;box-shadow:0 12px 34px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.08);border-top:0}
.pull-orb{width:48px;height:48px;position:relative;display:grid;place-items:center;flex:0 0 48px}
.pull-star{position:absolute;z-index:2;font-size:20px;color:#fff}
.pull-ring{width:48px;height:48px;transform:rotate(-90deg)}
.pull-ring circle{fill:none;stroke:#715cff;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:113;stroke-dashoffset:113;transition:stroke-dashoffset .08s linear}
.pull-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;text-align:left}
.pull-copy b{font-size:15px;color:#fff}
.pull-copy span{font-size:12px;color:#aab5c8}
.pull-arrow{font-size:20px;color:#8fa1b8;transition:transform .16s ease}
.pull-rufiyaa.ready .pull-card{box-shadow:0 14px 38px rgba(77,66,214,.3)}
.pull-rufiyaa.ready .pull-arrow{color:#8e7cff}
.pull-rufiyaa.refreshing .pull-star{animation:rufiyaaPulse .9s ease-in-out infinite}
.pull-rufiyaa.refreshing .pull-ring{animation:rufiyaaRotate .85s linear infinite}
.pull-rufiyaa.success .pull-star{color:#5ee39a}
.pull-rufiyaa.success .pull-ring circle{stroke:#5ee39a}
.pull-rufiyaa.failed .pull-ring circle{stroke:#ff747e}
@keyframes rufiyaaRotate{to{transform:rotate(270deg)}}
@keyframes rufiyaaPulse{50%{transform:scale(1.25);opacity:.7}}
html[data-theme="light"] .pull-card{background:rgba(255,255,255,.97);border-color:rgba(20,30,50,.08);box-shadow:0 12px 30px rgba(30,45,70,.15)}
html[data-theme="light"] .pull-copy b{color:#172033}
html[data-theme="light"] .pull-copy span{color:#68758a}
html[data-theme="light"] .pull-star{color:#4f46e5}

/* Rufiyaa v10 / Laari Phase 1 */
.rufiyaa-tab span{font-family:system-ui;font-weight:900}
.laari-welcome{display:flex;align-items:center;gap:13px;margin:8px 2px 16px}
.laari-mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#0d9b72,#087c5e);color:#fff;font-size:25px;font-weight:900;box-shadow:0 8px 22px rgba(13,155,114,.22)}
.laari-name{font-size:23px;font-weight:900;letter-spacing:-.02em}.laari-greeting{font-size:14px;opacity:.7;margin-top:2px}
.laari-safe-card{padding:19px!important;overflow:hidden;position:relative}.laari-safe-card:after{content:'ރ';position:absolute;right:-4px;bottom:-31px;font-size:105px;font-weight:900;opacity:.045}
.laari-card-top{display:flex;justify-content:space-between;align-items:flex-start;position:relative;z-index:1}.laari-safe-money{font-size:31px;font-weight:900;margin-top:5px;letter-spacing:-.035em}
.laari-safe-days{min-width:66px;border-radius:16px;padding:9px 10px;text-align:center;background:rgba(13,155,114,.1);color:#0d9b72;font-size:20px;font-weight:900}.laari-safe-days small{display:block;font-size:10px;font-weight:700;margin-top:1px}
.laari-safe-foot{font-size:12px;opacity:.68;margin-top:14px;position:relative;z-index:1}
.laari-section-label{font-size:15px;font-weight:850}.laari-section-label.outside{margin:19px 3px 9px}.laari-brief{margin-top:12px}.laari-brief p{font-size:13px;line-height:1.55;margin:8px 0 0;opacity:.82}
.laari-insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.laari-insight{padding:14px!important;min-height:100px;display:flex;flex-direction:column;gap:7px}.laari-insight b{font-size:13px}.laari-insight span{font-size:12px;line-height:1.45;opacity:.68}
.laari-section-head{display:flex;align-items:center;justify-content:space-between;margin:19px 3px 9px}.laari-section-head button{border:0;background:transparent;color:var(--accent,#5b67f1);font-weight:750;font-size:12px}
.laari-upcoming{padding:5px 14px!important}.laari-upcoming-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid rgba(128,128,128,.12)}.laari-upcoming-row:last-child{border:0}.laari-upcoming-row>div{display:flex;flex-direction:column;gap:3px}.laari-upcoming-row b{font-size:13px}.laari-upcoming-row span{font-size:11px;opacity:.6}.laari-upcoming-row strong{font-size:13px;white-space:nowrap}
.laari-questions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.laari-questions button{min-height:55px;border:1px solid rgba(128,128,128,.16);background:var(--card,#fff);color:inherit;border-radius:15px;text-align:left;padding:11px 12px;font-weight:700;font-size:12px}
.laari-ask{margin-top:18px;margin-bottom:18px}.laari-input-row{display:flex;gap:8px;margin-top:11px}.laari-input-row input{flex:1;min-width:0}.laari-input-row button{border:0;border-radius:12px;padding:0 16px;background:#0d9b72;color:#fff;font-weight:800}.laari-answer-bubble{margin-top:12px;padding:12px 13px;border-radius:14px;background:rgba(13,155,114,.09);font-size:13px;line-height:1.5}

/* Rufiyaa v10.1 bug fixes */

/* Keep pull-to-refresh perfectly centered on phones and tablets. */
.pull-rufiyaa{
  left:0!important;
  right:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  transform:translateY(-102px);
}

/* Laari quick questions must remain readable in dark mode. */
html[data-theme="dark"] .laari-questions button{
  background:#171f2b!important;
  color:#f4f6fb!important;
  border-color:#303a4b!important;
}
@media (prefers-color-scheme: dark){
  html[data-theme="system"] .laari-questions button{
    background:#171f2b!important;
    color:#f4f6fb!important;
    border-color:#303a4b!important;
  }
}

/* Laari replies sit above the Ask field, like a conversation response. */
.laari-answer-area:not(:empty){
  margin-top:12px;
  margin-bottom:12px;
}
.laari-answer-bubble{
  margin-top:0!important;
}

/* Avoid excessive bottom spacing on Laari now that the FAB is hidden. */
body:has(.laari-welcome) .shell{
  padding-bottom:96px;
}

/* Rufiyaa v10.2 */

/* Pull-to-refresh: centered circular Rufiyaa indicator, no side card. */
.pull-rufiyaa{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  right:auto!important;
  width:190px!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  transform:translate(-50%,-116px)!important;
  z-index:9998!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  pointer-events:none!important;
  transition:transform .16s ease,width .22s ease!important;
}
.pull-center{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:4px;
  padding:4px 10px 10px;
  border-radius:22px;
  transition:background .22s ease,box-shadow .22s ease,padding .22s ease;
}
.pull-orb{
  width:58px!important;
  height:58px!important;
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 58px!important;
}
.pull-logo{
  position:absolute;
  z-index:2;
  font-size:24px;
  font-weight:900;
  color:#fff;
  line-height:1;
}
.pull-ring{
  width:58px!important;
  height:58px!important;
  transform:rotate(-90deg);
  overflow:visible;
}
.pull-ring-track,
.pull-ring-progress{
  fill:#111827;
  stroke-width:4;
}
.pull-ring-track{
  stroke:#313a4b;
}
.pull-ring-progress{
  fill:transparent;
  stroke:#725cff;
  stroke-linecap:round;
  stroke-dasharray:138.23;
  stroke-dashoffset:138.23;
  transition:stroke-dashoffset .06s linear;
}
.pull-title{
  margin-top:2px;
  color:#f7f8fb;
  font-size:14px;
  font-weight:800;
  line-height:1.1;
}
.pull-state{
  color:#aeb7c8;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
}
.pull-arrow{
  color:#8f7cff;
  margin-left:3px;
  font-size:16px;
}
.pull-rufiyaa.ready .pull-ring-progress{
  stroke:#8c78ff;
}
.pull-rufiyaa.refreshing .pull-ring{
  animation:rufiyaaRingSpin .8s linear infinite;
}
.pull-rufiyaa.refreshing .pull-logo{
  animation:rufiyaaLogoPulse .8s ease-in-out infinite;
}
.pull-rufiyaa.success{
  width:250px!important;
}
.pull-rufiyaa.success .pull-center{
  background:rgba(18,27,40,.97);
  padding:9px 16px 12px;
  box-shadow:0 12px 34px rgba(0,0,0,.28);
}
.pull-rufiyaa.success .pull-ring-progress{
  stroke:#4dd596;
}
.pull-rufiyaa.success .pull-logo{
  color:#4dd596;
}
.pull-rufiyaa.failed .pull-ring-progress{
  stroke:#ff6f79;
}
@keyframes rufiyaaRingSpin{to{transform:rotate(270deg)}}
@keyframes rufiyaaLogoPulse{50%{transform:scale(1.14);opacity:.72}}
html[data-theme="light"] .pull-ring-track{fill:#fff;stroke:#dfe4ec}
html[data-theme="light"] .pull-logo{color:#0d9b72}
html[data-theme="light"] .pull-title{color:#182133}
html[data-theme="light"] .pull-state{color:#68758a}
html[data-theme="light"] .pull-rufiyaa.success .pull-center{background:rgba(255,255,255,.98);box-shadow:0 12px 30px rgba(20,35,60,.16)}

/* Ask Laari: larger iMessage-style composer. */
.laari-message-composer{
  position:relative;
  display:flex!important;
  align-items:flex-end!important;
  gap:8px!important;
  min-height:58px;
  margin-top:12px!important;
  padding:7px 7px 7px 14px;
  border:1.5px solid #715cff;
  border-radius:22px;
  background:rgba(10,16,27,.55);
}
.laari-message-composer textarea{
  flex:1;
  width:100%;
  min-width:0;
  min-height:42px!important;
  max-height:104px!important;
  height:42px;
  resize:none;
  overflow-y:auto;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:inherit!important;
  padding:10px 2px 7px!important;
  margin:0!important;
  font:inherit;
  font-size:15px!important;
  line-height:1.35!important;
}
.laari-message-composer textarea::placeholder{
  color:#8490a3;
}
.laari-send{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
  border-radius:50%!important;
  border:0!important;
  background:linear-gradient(145deg,#725cff,#5367ff)!important;
  color:#fff!important;
  font-size:23px!important;
  font-weight:800!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:1px!important;
  box-shadow:0 4px 14px rgba(100,83,255,.3);
}
html[data-theme="light"] .laari-message-composer{
  background:#fff;
}

/* Rufiyaa v10.2.1 — pull-to-refresh fix */

/* Outer wrapper handles horizontal centering only.
   JS moves .pull-stage vertically, so X-centering can never be overwritten. */
#pull-rufiyaa.pull-rufiyaa{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:none!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  z-index:9998!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  pointer-events:none!important;
  display:flex!important;
  justify-content:center!important;
  overflow:visible!important;
}

.pull-stage{
  position:relative!important;
  width:260px!important;
  min-height:108px!important;
  transform:translateY(-118px);
  transition:transform .16s ease;
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
}

.pull-compact{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:180px!important;
}

.pull-orb{
  width:64px!important;
  height:64px!important;
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 64px!important;
  margin:0!important;
}

.pull-logo{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-size:27px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:none!important;
}

.pull-ring{
  position:absolute!important;
  inset:0!important;
  width:64px!important;
  height:64px!important;
  transform:rotate(-90deg)!important;
  overflow:visible!important;
}

.pull-ring-track,
.pull-ring-progress{
  fill:#101725!important;
  stroke-width:4!important;
}

.pull-ring-track{
  stroke:#313a4b!important;
}

.pull-ring-progress{
  fill:transparent!important;
  stroke:#725cff!important;
  stroke-linecap:round!important;
  stroke-dasharray:144.51!important;
  stroke-dashoffset:144.51;
  transition:stroke-dashoffset .06s linear;
}

.pull-state{
  color:#aeb7c8!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:nowrap!important;
}

.pull-arrow{
  color:#8f7cff!important;
  font-size:16px!important;
  margin-left:3px!important;
}

.pull-success-pill{
  position:absolute!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%) scale(.82)!important;
  opacity:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:220px!important;
  padding:10px 16px 10px 11px!important;
  border-radius:999px!important;
  background:rgba(18,27,40,.98)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.28)!important;
  transition:opacity .18s ease,transform .22s ease!important;
}

.pull-success-logo{
  width:42px!important;
  height:42px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(77,213,150,.14)!important;
  color:#4dd596!important;
  font-size:22px!important;
  font-weight:900!important;
}

.pull-success-text{
  color:#f7f8fb!important;
  font-size:14px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

.pull-rufiyaa.refreshing .pull-ring{
  animation:rufiyaaRingSpin .8s linear infinite!important;
}

.pull-rufiyaa.refreshing .pull-logo{
  animation:rufiyaaLogoPulse .8s ease-in-out infinite!important;
}

.pull-rufiyaa.success .pull-compact{
  opacity:0!important;
  transform:scale(.88)!important;
  transition:opacity .16s ease,transform .16s ease!important;
}

.pull-rufiyaa.success .pull-success-pill{
  opacity:1!important;
  transform:translateX(-50%) scale(1)!important;
}

.pull-rufiyaa.failed .pull-ring-progress{
  stroke:#ff6f79!important;
}

html[data-theme="light"] .pull-ring-track{
  fill:#fff!important;
  stroke:#dfe4ec!important;
}
html[data-theme="light"] .pull-logo{
  color:#0d9b72!important;
}
html[data-theme="light"] .pull-success-pill{
  background:rgba(255,255,255,.99)!important;
  border-color:rgba(20,35,60,.08)!important;
  box-shadow:0 12px 30px rgba(20,35,60,.16)!important;
}
html[data-theme="light"] .pull-success-text{
  color:#182133!important;
}

/* Rufiyaa v10.2.2 — refresh indicator vertical travel fix */
.pull-stage{
  min-height:132px!important;
  transform:translateY(-142px);
}
