/*
Theme Name: Inter Online Trust Bank
Theme URI: https://example.com/inter-online-trust
Author: Inter Online Trust Bank (demonstration build)
Author URI: https://example.com/inter-online-trust
Description: Demonstration bank portal theme for Inter Online Trust Bank. A fintech-styled customer portal (homepage, login, dashboard, transactions, cards, transfers, deposit including a demo Bitcoin deposit, currency swap, loans, tax refund tracker, grants, fund recovery, settings, support) plus an admin console and a four-step registration flow. All data is sample data held in the browser session only: this theme is a demonstration and is not a real bank, moves no real money and stores nothing on the server. Requires the Inter Greeting plugin for the time-of-day dashboard greeting.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inter-online-trust
Tags: banking, fintech, demo, custom-template, responsive
*/

/* ============================================================
   Inter Online Trust Bank — fintech theme
   Palette: navy #0c2b3e, teal #0e9594, white surfaces,
   soft blue-teal backdrop. Type: Public Sans.
   ============================================================ */

:root{
  --iot-bg-1:#cdeeea;
  --iot-bg-2:#dcecf8;
  --iot-bg-3:#e7f3ee;
  --iot-surface:#ffffff;
  --iot-surface-2:#edf3f5;
  --iot-ink:#10222e;
  --iot-ink-soft:#54687a;
  --iot-ink-faint:#8496a5;
  --iot-line:#e1eaed;
  --iot-navy:#0c2b3e;
  --iot-navy-2:#0a1f2e;
  --iot-navy-3:#10394d;
  --iot-teal:#0e9594;
  --iot-teal-dark:#0b7c86;
  --iot-teal-soft:#e0f3f1;
  --iot-blue-soft:#e3edf9;
  --iot-brass:#9c7c2d;
  --iot-orange:#f7931a;
  --iot-red:#e2504a;
  --iot-amber:#f0a832;
  --iot-green:#12b5a5;
  --iot-purple:#7c6cf0;
  --iot-blue:#3e8ef7;
  --iot-pink:#ef6ab0;
  --iot-grey:#94a3b8;
  --iot-shadow:0 10px 30px rgba(12,35,50,.10);
  --iot-radius:16px;
  --iot-radius-lg:20px;
  --iot-radius-pill:999px;
  --iot-max-public:1180px;
  --iot-max-app:1300px;
  --iot-sidebar:248px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--iot-ink);
  background:linear-gradient(135deg,var(--iot-bg-1),var(--iot-bg-2) 55%,var(--iot-bg-3));
  background-attachment:fixed;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--iot-teal);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.2;margin:0 0 .5rem;color:var(--iot-navy)}
p{margin:0 0 1rem}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:1rem;color:var(--iot-ink)}
:focus-visible{outline:3px solid var(--iot-teal);outline-offset:2px;border-radius:6px}

.iot-hidden{display:none !important}
.iot-wrap{max-width:var(--iot-max-public);margin:0 auto;padding:0 24px}
.iot-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--iot-teal)}
.iot-muted{color:var(--iot-ink-soft)}
.iot-small{font-size:.85rem}

/* ---------- Buttons ---------- */
.iot-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:2.75rem;padding:.6rem 1.25rem;border-radius:var(--iot-radius-pill);
  border:1px solid transparent;font-weight:700;font-size:.95rem;line-height:1.2;
  background:var(--iot-navy);color:#fff;text-decoration:none;transition:filter .15s ease,transform .15s ease;
}
.iot-btn:hover{filter:brightness(1.12);text-decoration:none}
.iot-btn--teal{background:var(--iot-teal)}
.iot-btn--ghost{background:transparent;color:var(--iot-navy);border-color:var(--iot-line)}
.iot-btn--ghost:hover{border-color:var(--iot-navy)}
.iot-btn--light{background:#fff;color:var(--iot-navy)}
.iot-btn--sm{min-height:2.25rem;padding:.35rem .9rem;font-size:.85rem}
.iot-btn--danger{background:var(--iot-red)}
.iot-btn:disabled{opacity:.55;cursor:not-allowed}
.iot-btn--block{width:100%}

/* ---------- Demo banner ---------- */
.iot-demo-banner{
  background:var(--iot-navy);color:#dcecf8;text-align:center;
  font-size:.85rem;padding:.55rem 1rem;
}
.iot-demo-banner strong{color:#fff}
.iot-demo-flag{
  display:inline-block;background:var(--iot-orange);color:#fff;font-weight:800;
  font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  padding:.2rem .6rem;border-radius:var(--iot-radius-pill);
}

/* ---------- Public header ---------- */
.iot-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--iot-line);
}
.iot-header__inner{
  max-width:var(--iot-max-public);margin:0 auto;padding:.7rem 24px;
  display:flex;align-items:center;gap:1.5rem;
}
.iot-brand{display:flex;align-items:center;gap:.65rem;color:var(--iot-navy);font-weight:800;font-size:1.15rem}
.iot-brand:hover{text-decoration:none}
.iot-brand__mark{
  width:42px;height:42px;border-radius:50%;flex:0 0 42px;
  background:var(--iot-navy);color:#fff;display:flex;align-items:center;justify-content:center;
  font-family:Georgia,"Times New Roman",serif;font-size:1.05rem;letter-spacing:.02em;
}
.iot-nav{display:flex;gap:1.4rem;margin-left:auto}
.iot-nav a{color:var(--iot-ink-soft);font-weight:600;font-size:.95rem}
.iot-nav a:hover{color:var(--iot-navy);text-decoration:none}
.iot-header__actions{display:flex;align-items:center;gap:.6rem}

/* ---------- Hero ---------- */
.iot-hero{padding:3.5rem 0 2.5rem}
.iot-hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:3rem;align-items:center}
.iot-hero h1{font-size:clamp(2.1rem,4.2vw,3.2rem);font-weight:800;margin:.6rem 0 1rem}
.iot-hero h1 em{font-style:italic;color:var(--iot-teal)}
.iot-hero__lede{font-size:1.1rem;color:var(--iot-ink-soft);max-width:34rem}
.iot-hero__ctas{display:flex;gap:.75rem;flex-wrap:wrap;margin:1.4rem 0 1.8rem}
.iot-hero__stats{display:flex;gap:2rem;flex-wrap:wrap}
.iot-hero__stat b{display:block;font-size:1.35rem;color:var(--iot-navy)}
.iot-hero__stat span{font-size:.85rem;color:var(--iot-ink-soft)}
.iot-hero-card{
  background:var(--iot-surface);border-radius:var(--iot-radius-lg);box-shadow:var(--iot-shadow);
  overflow:hidden;
}
.iot-hero-card__photo{height:170px;background-size:cover;background-position:center}
.iot-hero-card__body{padding:1.4rem 1.5rem}
.iot-hero-card__total{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--iot-ink-faint);font-weight:700}
.iot-hero-card__amount{font-size:2rem;font-weight:800;color:var(--iot-navy);margin:.15rem 0 .9rem}
.iot-hero-card__row{display:flex;justify-content:space-between;padding:.45rem 0;border-top:1px solid var(--iot-line);font-size:.95rem}
.iot-hero-card__row span:last-child{font-weight:700}
.iot-hero-card__note{margin:.9rem 0 0;font-size:.85rem;color:var(--iot-teal);font-weight:600}

/* ---------- Stat strip ---------- */
.iot-strip{padding:1.5rem 0 2.5rem}
.iot-strip__grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;
  background:var(--iot-surface);border-radius:var(--iot-radius-lg);box-shadow:var(--iot-shadow);
  padding:1.4rem 1.6rem;
}
.iot-strip__item b{display:block;font-size:1.5rem;color:var(--iot-navy)}
.iot-strip__item span{font-size:.85rem;color:var(--iot-ink-soft)}

/* ---------- Sections ---------- */
.iot-section{padding:2.5rem 0}
.iot-section h2{font-size:1.7rem;font-weight:800}
.iot-section__head{max-width:40rem;margin-bottom:1.6rem}
.iot-cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.iot-card{
  background:var(--iot-surface);border-radius:var(--iot-radius-lg);box-shadow:var(--iot-shadow);
  padding:1.5rem;display:flex;flex-direction:column;
}
.iot-card h3{font-size:1.15rem}
.iot-card .iot-apy{font-size:2rem;font-weight:800;color:var(--iot-teal);margin:.2rem 0 .6rem}
.iot-card ul{margin:0 0 1.2rem;padding-left:1.1rem;color:var(--iot-ink-soft);font-size:.95rem}
.iot-card ul li{margin:.25rem 0}
.iot-card .iot-btn{margin-top:auto;align-self:flex-start}

/* ---------- Split sections (photo + text) ---------- */
.iot-split{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center}
.iot-split__photo{border-radius:var(--iot-radius-lg);overflow:hidden;box-shadow:var(--iot-shadow);min-height:320px}
.iot-split__photo img{width:100%;height:100%;object-fit:cover}
.iot-checks{list-style:none;margin:0 0 1.2rem;padding:0}
.iot-checks li{padding:.35rem 0 .35rem 1.8rem;position:relative;color:var(--iot-ink-soft)}
.iot-checks li::before{
  content:"✓";position:absolute;left:0;top:.35rem;width:1.25rem;height:1.25rem;border-radius:50%;
  background:var(--iot-teal-soft);color:var(--iot-teal);font-weight:800;font-size:.75rem;
  display:flex;align-items:center;justify-content:center;
}

/* ---------- Rates tables ---------- */
.iot-rates{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.iot-rate-table{width:100%;border-collapse:collapse;font-size:.95rem}
.iot-rate-table th,.iot-rate-table td{padding:.6rem .2rem;border-bottom:1px solid var(--iot-line);text-align:left}
.iot-rate-table th{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--iot-ink-faint)}
.iot-rate-table td:last-child,.iot-rate-table th:last-child{text-align:right;font-weight:700;color:var(--iot-navy)}

/* ---------- Steps ---------- */
.iot-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;counter-reset:iot-step}
.iot-step{position:relative;padding-top:3.2rem}
.iot-step::before{
  counter-increment:iot-step;content:counter(iot-step);
  position:absolute;top:0;left:0;width:2.4rem;height:2.4rem;border-radius:50%;
  background:var(--iot-navy);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.iot-step h3{font-size:1.1rem}

/* ---------- Public footer ---------- */
.iot-footer{background:var(--iot-navy);color:#b9cdd9;margin-top:3rem}
.iot-footer a{color:#dcecf8}
.iot-footer__grid{
  max-width:var(--iot-max-public);margin:0 auto;padding:3rem 24px 2rem;
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem;
}
.iot-footer h4{color:#fff;font-size:.9rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.8rem}
.iot-footer ul{list-style:none;margin:0;padding:0}
.iot-footer ul li{margin:.4rem 0;font-size:.92rem}
.iot-footer__brand{color:#fff;font-weight:800;font-size:1.1rem;margin-bottom:.5rem}
.iot-footer__legal{
  border-top:1px solid rgba(255,255,255,.15);padding:1.2rem 24px;text-align:center;
  font-size:.82rem;color:#8fa9b8;max-width:var(--iot-max-public);margin:0 auto;
}
.iot-footer__legal button{background:none;border:none;color:#dcecf8;font:inherit;text-decoration:underline;padding:0;cursor:pointer}

/* ---------- Auth views (login / admin login / register) ---------- */
.iot-auth{
  display:grid;grid-template-columns:1fr 1fr;min-height:calc(100vh - 120px);
  background:var(--iot-surface);border-radius:var(--iot-radius-lg);overflow:hidden;
  box-shadow:var(--iot-shadow);margin:2rem auto;max-width:var(--iot-max-public);
}
.iot-auth__photo{position:relative;background-size:cover;background-position:center;min-height:420px}
.iot-auth__photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,43,62,0) 55%,rgba(12,43,62,.75))}
.iot-auth__caption{
  position:absolute;left:1.5rem;right:1.5rem;bottom:1.4rem;z-index:1;color:#fff;font-size:.95rem;
}
.iot-auth__form{padding:2.5rem 2.5rem 2rem;display:flex;flex-direction:column;justify-content:center}
.iot-auth__form h1{font-size:1.7rem}
.iot-auth__demo{
  background:var(--iot-surface-2);border:1px solid var(--iot-line);border-radius:var(--iot-radius);
  padding:.9rem 1rem;font-size:.9rem;margin:1rem 0;
}
.iot-auth__demo code{background:#fff;border:1px solid var(--iot-line);border-radius:6px;padding:.05rem .35rem;font-size:.85rem}
.iot-auth__links{display:flex;gap:1.2rem;flex-wrap:wrap;margin-top:1rem;font-size:.92rem}
.iot-auth__links button{background:none;border:none;color:var(--iot-teal);font:inherit;font-weight:700;padding:0;cursor:pointer}
.iot-auth__links button:hover{text-decoration:underline}

/* ---------- Forms ---------- */
.iot-field{margin-bottom:1rem}
.iot-field label{display:block;font-weight:700;font-size:.9rem;margin-bottom:.35rem;color:var(--iot-navy)}
.iot-field .iot-hint{font-weight:400;font-size:.82rem;color:var(--iot-ink-faint)}
.iot-input,.iot-select,.iot-textarea{
  width:100%;min-height:2.75rem;padding:.6rem .85rem;border:1px solid var(--iot-line);
  border-radius:10px;background:#fff;
}
.iot-input:focus,.iot-select:focus,.iot-textarea:focus{outline:3px solid var(--iot-teal);outline-offset:1px;border-color:var(--iot-teal)}
.iot-input--error{border-color:var(--iot-red)}
.iot-error{color:var(--iot-red);font-size:.87rem;font-weight:600;margin:.3rem 0 0}
.iot-field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.iot-pin-row{display:flex;gap:.6rem}
.iot-pin{
  width:3.2rem;height:3.4rem;text-align:center;font-size:1.4rem;font-weight:700;
  border:1px solid var(--iot-line);border-radius:12px;background:#fff;
}
.iot-pin:focus{outline:3px solid var(--iot-teal);border-color:var(--iot-teal)}

/* Password strength */
.iot-strength{height:8px;border-radius:var(--iot-radius-pill);background:var(--iot-surface-2);overflow:hidden;margin:.4rem 0 .2rem}
.iot-strength__bar{height:100%;width:0%;border-radius:inherit;transition:width .25s ease,background .25s ease;background:var(--iot-red)}
.iot-strength__label{font-size:.82rem;color:var(--iot-ink-soft)}

/* Stepper (registration) */
.iot-stepper{display:flex;gap:0;margin:1.2rem 0 1.6rem;list-style:none;padding:0}
.iot-stepper li{
  flex:1;text-align:center;font-size:.82rem;font-weight:700;color:var(--iot-ink-faint);
  padding-top:1.9rem;position:relative;
}
.iot-stepper li::before{
  content:"";position:absolute;top:.55rem;left:50%;transform:translateX(-50%);
  width:1.5rem;height:1.5rem;border-radius:50%;background:var(--iot-surface-2);border:2px solid var(--iot-line);
}
.iot-stepper li::after{
  content:"";position:absolute;top:1.25rem;left:calc(-50% + .8rem);right:calc(50% + .8rem);
  height:2px;background:var(--iot-line);
}
.iot-stepper li:first-child::after{display:none}
.iot-stepper li.is-current{color:var(--iot-teal)}
.iot-stepper li.is-current::before{background:var(--iot-teal);border-color:var(--iot-teal)}
.iot-stepper li.is-done{color:var(--iot-navy)}
.iot-stepper li.is-done::before{background:var(--iot-navy);border-color:var(--iot-navy)}
.iot-stepper li.is-done::after{background:var(--iot-navy)}

/* Radio cards (account type) */
.iot-radio-cards{display:grid;gap:.8rem}
.iot-radio-card{
  display:flex;gap:.9rem;align-items:flex-start;border:1.5px solid var(--iot-line);
  border-radius:var(--iot-radius);padding:1rem;cursor:pointer;background:#fff;
}
.iot-radio-card:hover{border-color:var(--iot-teal)}
.iot-radio-card.is-selected{border-color:var(--iot-teal);background:var(--iot-teal-soft)}
.iot-radio-card input{margin-top:.25rem;accent-color:var(--iot-teal)}
.iot-radio-card b{display:block;color:var(--iot-navy)}
.iot-radio-card .iot-apy-sm{color:var(--iot-teal);font-weight:800}
.iot-radio-card p{margin:.2rem 0 0;font-size:.9rem;color:var(--iot-ink-soft)}

/* Review table */
.iot-review{width:100%;border-collapse:collapse;font-size:.95rem;margin-bottom:1rem}
.iot-review th,.iot-review td{padding:.55rem .2rem;border-bottom:1px solid var(--iot-line);text-align:left;vertical-align:top}
.iot-review th{color:var(--iot-ink-faint);font-weight:600;width:38%}
.iot-checkline{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;color:var(--iot-ink-soft);margin:1rem 0}
.iot-checkline input{margin-top:.2rem;accent-color:var(--iot-teal)}
.iot-success{text-align:center;padding:1rem 0}
.iot-success__tick{
  width:4rem;height:4rem;border-radius:50%;background:var(--iot-teal-soft);color:var(--iot-teal);
  font-size:2rem;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;
}

/* ---------- App shell ---------- */
.iot-app{display:flex;min-height:100vh}
.iot-sidebar{
  width:var(--iot-sidebar);flex:0 0 var(--iot-sidebar);background:var(--iot-surface);
  border-right:1px solid var(--iot-line);padding:1.2rem 1rem;display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;
}
.iot-sidebar__brand{display:flex;align-items:center;gap:.6rem;font-weight:800;color:var(--iot-navy);margin-bottom:1.4rem;padding:0 .4rem}
.iot-sidebar__nav{display:flex;flex-direction:column;gap:.15rem}
.iot-sidebar__label{
  font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--iot-ink-faint);padding:1rem .6rem .35rem;
}
.iot-sidebar__link{
  display:flex;align-items:center;gap:.65rem;padding:.6rem .7rem;border-radius:10px;
  color:var(--iot-ink-soft);font-weight:600;font-size:.95rem;background:none;border:none;
  text-align:left;width:100%;cursor:pointer;font-family:inherit;
}
.iot-sidebar__link:hover{background:var(--iot-surface-2);color:var(--iot-navy);text-decoration:none}
.iot-sidebar__link.is-active{background:var(--iot-teal-soft);color:var(--iot-navy)}
.iot-sidebar__link svg{width:19px;height:19px;flex:0 0 19px}
.iot-sidebar__foot{margin-top:auto;font-size:.78rem;color:var(--iot-ink-faint);padding:.8rem .6rem 0;border-top:1px solid var(--iot-line)}
.iot-app__main{flex:1;min-width:0;padding:1.4rem 1.6rem 3rem}
.iot-topbar{display:flex;align-items:center;gap:1rem;margin-bottom:1.4rem;flex-wrap:wrap}
.iot-topbar h1{font-size:1.4rem;margin:0}
.iot-topbar__date{color:var(--iot-ink-soft);font-size:.9rem}
.iot-topbar__search{
  margin-left:auto;display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--iot-line);
  border-radius:var(--iot-radius-pill);padding:.45rem .9rem;min-width:220px;
}
.iot-topbar__search input{border:none;outline:none;flex:1;min-width:0;background:transparent}
.iot-topbar__user{display:flex;align-items:center;gap:.6rem}
.iot-avatar{
  width:2.4rem;height:2.4rem;border-radius:50%;background:var(--iot-navy);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem;
}
.iot-topbar__user b{display:block;font-size:.9rem;line-height:1.2;color:var(--iot-navy)}
.iot-topbar__user span{font-size:.78rem;color:var(--iot-ink-faint)}
.iot-topbar__signout{background:none;border:1px solid var(--iot-line);border-radius:var(--iot-radius-pill);padding:.4rem .9rem;font-weight:700;font-size:.85rem;color:var(--iot-ink-soft)}
.iot-topbar__signout:hover{border-color:var(--iot-navy);color:var(--iot-navy)}
.iot-view-head{margin-bottom:1.2rem}
.iot-view-head h2{font-size:1.35rem;margin-bottom:.2rem}
.iot-view-head p{color:var(--iot-ink-soft);margin:0}

/* ---------- Panels & grids ---------- */
.iot-panel{background:var(--iot-surface);border-radius:var(--iot-radius-lg);box-shadow:var(--iot-shadow);padding:1.4rem}
.iot-panel h3{font-size:1.05rem;margin-bottom:.8rem}
.iot-grid-3{display:grid;grid-template-columns:302px 1fr 302px;gap:1.25rem;align-items:start}
.iot-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:start}
.iot-stack{display:grid;gap:1.25rem}
.iot-balance-big{font-size:2.1rem;font-weight:800;color:var(--iot-navy)}
.iot-balance-sub{color:var(--iot-ink-soft);font-size:.92rem;margin:.2rem 0 1rem}
.iot-pill-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.iot-pill{
  border:1px solid var(--iot-line);background:#fff;border-radius:var(--iot-radius-pill);
  padding:.45rem 1rem;font-weight:700;font-size:.88rem;color:var(--iot-navy);
}
.iot-pill:hover{border-color:var(--iot-teal);color:var(--iot-teal)}
.iot-mini-stat b{display:block;font-size:1.15rem;color:var(--iot-navy)}
.iot-mini-stat span{font-size:.82rem;color:var(--iot-ink-soft)}

/* Visual cards */
.iot-minicards{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:1rem 0}
.iot-minicard{
  border-radius:14px;padding:.9rem 1rem;color:#fff;min-height:96px;cursor:pointer;border:none;text-align:left;
  background:linear-gradient(135deg,#0a1f2e,#10394d 55%,#0e9594);
}
.iot-minicard--credit{background:linear-gradient(135deg,#0b7c86,#12a5a0 55%,#3e8ef7)}
.iot-minicard small{display:block;opacity:.8;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.iot-minicard b{display:block;font-size:1.15rem;margin:.15rem 0}
.iot-minicard span{font-size:.8rem;opacity:.9}
.iot-addcard{
  border:2px dashed var(--iot-line);border-radius:14px;background:transparent;color:var(--iot-ink-soft);
  font-weight:700;min-height:96px;width:100%;
}
.iot-addcard:hover{border-color:var(--iot-teal);color:var(--iot-teal)}

/* Goals */
.iot-goal{margin-bottom:1rem}
.iot-goal__row{display:flex;justify-content:space-between;font-size:.9rem}
.iot-goal__row b{color:var(--iot-navy)}
.iot-goal__bar{height:8px;border-radius:var(--iot-radius-pill);background:var(--iot-surface-2);overflow:hidden;margin:.35rem 0 .2rem}
.iot-goal__bar i{display:block;height:100%;border-radius:inherit}
.iot-goal__pct{font-size:.8rem;color:var(--iot-ink-faint)}

/* Donut */
.iot-donut{display:flex;gap:1.2rem;align-items:center}
.iot-donut svg{flex:0 0 150px}
.iot-legend{list-style:none;margin:0;padding:0;font-size:.88rem}
.iot-legend li{display:flex;align-items:center;gap:.5rem;padding:.15rem 0;color:var(--iot-ink-soft)}
.iot-legend i{width:.7rem;height:.7rem;border-radius:3px;flex:0 0 .7rem}
.iot-legend b{margin-left:auto;color:var(--iot-navy);padding-left:1rem}

/* Transactions */
.iot-txn{display:flex;align-items:center;gap:.8rem;padding:.7rem 0;border-bottom:1px solid var(--iot-line)}
.iot-txn:last-child{border-bottom:none}
.iot-txn__icon{
  width:2.5rem;height:2.5rem;flex:0 0 2.5rem;border-radius:50%;background:var(--iot-surface-2);
  color:var(--iot-navy);font-weight:800;font-size:.8rem;display:flex;align-items:center;justify-content:center;
}
.iot-txn__main{flex:1;min-width:0}
.iot-txn__main b{display:block;font-size:.93rem;color:var(--iot-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iot-txn__main span{font-size:.8rem;color:var(--iot-ink-faint)}
.iot-txn__amt{font-weight:700;white-space:nowrap}
.iot-txn__amt--in{color:var(--iot-teal)}
.iot-txn__amt--out{color:var(--iot-ink)}
.iot-txn__amt small{display:block;font-size:.75rem;color:var(--iot-ink-faint);text-align:right;font-weight:400}
.iot-toolbar{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
.iot-toolbar .iot-input,.iot-toolbar .iot-select{width:auto}
.iot-empty{padding:2rem;text-align:center;color:var(--iot-ink-soft)}

/* Accounts */
.iot-acct{
  display:flex;justify-content:space-between;gap:1rem;align-items:center;
  padding:1rem 0;border-bottom:1px solid var(--iot-line);
}
.iot-acct:last-child{border-bottom:none}
.iot-acct b{color:var(--iot-navy)}
.iot-acct span{display:block;font-size:.85rem;color:var(--iot-ink-soft)}
.iot-acct__bal{font-size:1.15rem;font-weight:800;color:var(--iot-navy);white-space:nowrap}

/* Wallets / contacts */
.iot-wallet{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--iot-line);font-size:.95rem}
.iot-wallet:last-child{border-bottom:none}
.iot-wallet b{color:var(--iot-navy)}
.iot-contacts{display:flex;gap:.6rem;margin-bottom:.9rem}
.iot-contact{
  display:flex;flex-direction:column;align-items:center;gap:.3rem;background:none;border:none;
  font-size:.78rem;color:var(--iot-ink-soft);padding:.3rem;cursor:pointer;font-family:inherit;
}
.iot-contact .iot-avatar{width:2.6rem;height:2.6rem}
.iot-contact.is-selected .iot-avatar{outline:3px solid var(--iot-teal);outline-offset:2px}
.iot-contact.is-selected{color:var(--iot-navy);font-weight:700}

/* Advisor promo */
.iot-advisor{display:flex;gap:1rem;align-items:center}
.iot-advisor img{width:128px;height:96px;object-fit:cover;border-radius:12px;flex:0 0 128px}
.iot-advisor p{font-size:.9rem;color:var(--iot-ink-soft);margin:0 0 .6rem}

/* ---------- Payment cards ---------- */
.iot-paycards{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.iot-paycard{
  border-radius:var(--iot-radius-lg);padding:1.3rem;color:#fff;min-height:210px;position:relative;
  background:linear-gradient(135deg,#0a1f2e,#10394d 55%,#0e9594);
  box-shadow:var(--iot-shadow);display:flex;flex-direction:column;justify-content:space-between;
  transition:filter .2s ease,opacity .2s ease;
}
.iot-paycard--credit{background:linear-gradient(135deg,#0b7c86,#12a5a0 55%,#3e8ef7)}
.iot-paycard.is-frozen{filter:grayscale(.9);opacity:.75}
.iot-paycard__brand{font-weight:800;letter-spacing:.04em}
.iot-paycard__chip{width:44px;height:32px;border-radius:6px;background:linear-gradient(135deg,#e8c96a,#b8933f);margin:.6rem 0}
.iot-paycard__num{font-size:1.25rem;letter-spacing:.14em;font-weight:700}
.iot-paycard__meta{display:flex;justify-content:space-between;font-size:.82rem;opacity:.92}
.iot-paycard__meta small{display:block;opacity:.75;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase}
.iot-paycard__status{
  position:absolute;top:1.1rem;right:1.1rem;font-size:.72rem;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;background:rgba(255,255,255,.2);padding:.25rem .6rem;border-radius:var(--iot-radius-pill);
}
.iot-card-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.9rem}
.iot-usage{height:8px;border-radius:var(--iot-radius-pill);background:var(--iot-surface-2);overflow:hidden;margin:.4rem 0}
.iot-usage i{display:block;height:100%;background:var(--iot-teal)}

/* ---------- Tabs ---------- */
.iot-tabs{display:flex;gap:.4rem;border-bottom:1px solid var(--iot-line);margin-bottom:1.2rem;flex-wrap:wrap}
.iot-tab{
  background:none;border:none;border-bottom:3px solid transparent;padding:.6rem .9rem;
  font-weight:700;color:var(--iot-ink-soft);font-size:.95rem;cursor:pointer;font-family:inherit;
}
.iot-tab:hover{color:var(--iot-navy)}
.iot-tab.is-active{color:var(--iot-navy);border-bottom-color:var(--iot-teal)}

/* ---------- Receipts ---------- */
.iot-receipt{
  border:2px solid var(--iot-teal);border-radius:var(--iot-radius);background:#f4fbfb;
  padding:1.2rem 1.4rem;margin-top:1.2rem;
}
.iot-receipt h3{color:var(--iot-teal);margin-bottom:.6rem}
.iot-receipt dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.3rem 1.2rem;font-size:.95rem}
.iot-receipt dt{color:var(--iot-ink-soft)}
.iot-receipt dd{margin:0;text-align:right;font-weight:700;color:var(--iot-navy);word-break:break-all}

/* ---------- BTC deposit ---------- */
.iot-btc-note{
  background:#fff7ec;border:1px solid #f5d9ae;border-radius:var(--iot-radius);
  padding:.9rem 1rem;font-size:.9rem;color:#7a5410;margin-bottom:1rem;
}
.iot-btc-addr{
  display:flex;gap:.6rem;align-items:center;background:var(--iot-surface-2);
  border:1px solid var(--iot-line);border-radius:10px;padding:.6rem .8rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;word-break:break-all;
}
.iot-btc-addr button{flex:0 0 auto}
.iot-qr-box{
  background:#fff;border:1px solid var(--iot-line);border-radius:12px;padding:1rem;
  display:inline-block;margin:1rem 0;
}
.iot-qr-box svg{display:block}

/* ---------- Loan calculator ---------- */
.iot-calc-result{
  background:var(--iot-teal-soft);border-radius:var(--iot-radius);padding:1.2rem;text-align:center;margin-top:1rem;
}
.iot-calc-result b{display:block;font-size:1.8rem;color:var(--iot-navy)}
.iot-calc-result span{font-size:.85rem;color:var(--iot-ink-soft)}
.iot-calc-result .iot-calc-sub{display:flex;justify-content:center;gap:2rem;margin-top:.6rem;font-size:.9rem}
.iot-calc-result .iot-calc-sub b{font-size:1rem;display:inline}
input[type="range"].iot-range{width:100%;accent-color:var(--iot-teal)}
.iot-seg{display:flex;gap:.4rem;flex-wrap:wrap}
.iot-seg button{
  border:1px solid var(--iot-line);background:#fff;border-radius:var(--iot-radius-pill);
  padding:.45rem 1rem;font-weight:700;font-size:.88rem;color:var(--iot-ink-soft);
}
.iot-seg button.is-active{background:var(--iot-navy);color:#fff;border-color:var(--iot-navy)}

/* ---------- Tracker / timeline ---------- */
.iot-timeline{list-style:none;margin:0;padding:0}
.iot-timeline li{position:relative;padding:0 0 1.4rem 2.4rem}
.iot-timeline li::before{
  content:"";position:absolute;left:.65rem;top:1.7rem;bottom:0;width:2px;background:var(--iot-line);
}
.iot-timeline li:last-child::before{display:none}
.iot-timeline__dot{
  position:absolute;left:0;top:.1rem;width:1.5rem;height:1.5rem;border-radius:50%;
  background:var(--iot-surface-2);border:2px solid var(--iot-line);display:flex;align-items:center;justify-content:center;
  font-size:.75rem;font-weight:800;color:var(--iot-ink-faint);
}
.iot-timeline li.is-done .iot-timeline__dot{background:var(--iot-teal);border-color:var(--iot-teal);color:#fff}
.iot-timeline li.is-current .iot-timeline__dot{background:var(--iot-brass);border-color:var(--iot-brass);color:#fff}
.iot-timeline b{color:var(--iot-navy)}
.iot-timeline p{margin:.15rem 0 0;font-size:.9rem;color:var(--iot-ink-soft)}

/* ---------- Pills / status ---------- */
.iot-pill-status{
  display:inline-block;font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:.25rem .65rem;border-radius:var(--iot-radius-pill);
  background:var(--iot-teal-soft);color:var(--iot-teal-dark);
}
.iot-pill-status--amber{background:#fdf3dc;color:#8a6d1a}
.iot-pill-status--red{background:#fdecea;color:var(--iot-red)}
.iot-pill-status--grey{background:var(--iot-surface-2);color:var(--iot-ink-soft)}
.iot-pill-status--navy{background:var(--iot-navy);color:#fff}

/* ---------- Grant / application cards ---------- */
.iot-grant{display:flex;flex-direction:column}
.iot-grant__amt{font-size:1.4rem;font-weight:800;color:var(--iot-navy)}
.iot-grant__org{font-size:.85rem;color:var(--iot-ink-faint);margin-bottom:.5rem}
.iot-grant p{font-size:.92rem;color:var(--iot-ink-soft);flex:1}
.iot-app-row{
  display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;
  padding:1rem 0;border-bottom:1px solid var(--iot-line);
}
.iot-app-row:last-child{border-bottom:none}
.iot-app-row b{color:var(--iot-navy)}
.iot-app-row p{margin:.15rem 0 0;font-size:.88rem;color:var(--iot-ink-soft)}
.iot-app-row__actions{display:flex;gap:.5rem;flex:0 0 auto}

/* ---------- Settings toggles ---------- */
.iot-toggle-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 0;border-bottom:1px solid var(--iot-line)}
.iot-toggle-row:last-child{border-bottom:none}
.iot-toggle-row b{color:var(--iot-navy);font-size:.95rem}
.iot-toggle-row span{display:block;font-size:.85rem;color:var(--iot-ink-soft)}
.iot-toggle{
  width:3rem;height:1.7rem;border-radius:var(--iot-radius-pill);border:none;flex:0 0 3rem;
  background:var(--iot-line);position:relative;transition:background .2s ease;padding:0;
}
.iot-toggle::after{
  content:"";position:absolute;top:.2rem;left:.2rem;width:1.3rem;height:1.3rem;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .2s ease;
}
.iot-toggle[aria-pressed="true"]{background:var(--iot-teal)}
.iot-toggle[aria-pressed="true"]::after{left:1.5rem}

/* ---------- FAQ ---------- */
.iot-faq{border-bottom:1px solid var(--iot-line);padding:.9rem 0}
.iot-faq summary{font-weight:700;color:var(--iot-navy);cursor:pointer;font-size:.98rem}
.iot-faq p{margin:.5rem 0 0;font-size:.92rem;color:var(--iot-ink-soft)}

/* ---------- Admin ---------- */
.iot-stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-bottom:1.25rem}
.iot-stat-card b{display:block;font-size:1.6rem;color:var(--iot-navy)}
.iot-stat-card span{font-size:.85rem;color:var(--iot-ink-soft)}
.iot-customer{padding:1.1rem 0;border-bottom:1px solid var(--iot-line)}
.iot-customer:last-child{border-bottom:none}
.iot-customer__head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;flex-wrap:wrap}
.iot-customer__head b{color:var(--iot-navy)}
.iot-customer__accts{font-size:.9rem;color:var(--iot-ink-soft);margin:.4rem 0 .8rem}
.iot-customer__accts div{display:flex;justify-content:space-between;max-width:26rem}
.iot-progress{height:8px;border-radius:var(--iot-radius-pill);background:var(--iot-surface-2);overflow:hidden}
.iot-progress i{display:block;height:100%;background:var(--iot-teal)}

/* ---------- Toast ---------- */
.iot-toast{
  position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%,150%);z-index:200;
  background:var(--iot-navy);color:#fff;padding:.8rem 1.4rem;border-radius:var(--iot-radius-pill);
  font-weight:600;font-size:.92rem;box-shadow:var(--iot-shadow);transition:transform .3s ease;
  max-width:90vw;text-align:center;
}
.iot-toast.is-visible{transform:translate(-50%,0)}

/* ---------- WP content fallback ---------- */
.iot-page-content{max-width:760px;margin:2rem auto;padding:0 24px}
.iot-page-content .iot-panel{margin-bottom:1.25rem}

/* ---------- Responsive ---------- */
.iot-menu-toggle{display:none}
@media (max-width:1180px){
  .iot-grid-3{grid-template-columns:1fr 1fr}
  .iot-grid-3 > :nth-child(2){grid-column:1 / -1;order:-1}
}
@media (max-width:1020px){
  .iot-nav{display:none}
  .iot-hero__grid,.iot-split{grid-template-columns:1fr}
  .iot-cards3,.iot-steps,.iot-rates{grid-template-columns:1fr}
  .iot-strip__grid{grid-template-columns:1fr 1fr}
  .iot-footer__grid{grid-template-columns:1fr 1fr}
  .iot-auth{grid-template-columns:1fr}
  .iot-auth__photo{min-height:220px}
  .iot-stat-cards{grid-template-columns:1fr 1fr}
  .iot-paycards{grid-template-columns:1fr}
}
@media (max-width:920px){
  .iot-sidebar{
    position:fixed;left:0;top:0;bottom:0;z-index:120;transform:translateX(-105%);
    transition:transform .25s ease;box-shadow:var(--iot-shadow);
  }
  .iot-sidebar.is-open{transform:translateX(0)}
  .iot-scrim{
    position:fixed;inset:0;background:rgba(12,34,46,.45);z-index:110;
  }
  .iot-menu-toggle{
    display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;
    border:1px solid var(--iot-line);background:#fff;border-radius:10px;font-size:1.2rem;
  }
  .iot-topbar__search{display:none}
}
@media (max-width:760px){
  .iot-grid-3,.iot-grid-2{grid-template-columns:1fr}
  .iot-field-row{grid-template-columns:1fr}
  .iot-minicards{grid-template-columns:1fr}
  .iot-hero{padding:2rem 0 1.5rem}
  .iot-auth__form{padding:1.6rem 1.3rem}
  .iot-app__main{padding:1rem 1rem 2.5rem}
}

/* ---------- Dark mode (system preference) ---------- */
@media (prefers-color-scheme:dark){
  :root{
    --iot-bg-1:#0a1118;--iot-bg-2:#0c1420;--iot-bg-3:#0a1210;
    --iot-surface:#161d26;--iot-surface-2:#202a36;
    --iot-ink:#edf3f6;--iot-ink-soft:#a9bcc9;--iot-ink-faint:#7d93a1;
    --iot-line:#2a3644;--iot-navy:#e9f2f4;--iot-teal:#2bc4c0;
    --iot-teal-soft:#123a3a;--iot-blue-soft:#1a2a3d;
    --iot-shadow:0 10px 30px rgba(0,0,0,.35);
  }
  body{background:linear-gradient(135deg,var(--iot-bg-1),var(--iot-bg-2) 55%,var(--iot-bg-3))}
  h1,h2,h3,h4,.iot-brand,.iot-brand__mark{color:var(--iot-ink)}
  .iot-brand__mark{background:var(--iot-teal);color:#0b141a}
  .iot-header{background:rgba(22,29,38,.92)}
  .iot-btn{background:#e9f2f4;color:#0b141a}
  .iot-btn--teal{background:var(--iot-teal);color:#062a29}
  .iot-btn--ghost{color:var(--iot-ink)}
  .iot-input,.iot-select,.iot-textarea,.iot-pin{background:#0f1720;border-color:var(--iot-line);color:var(--iot-ink)}
  .iot-auth__demo code{background:#0f1720}
  .iot-demo-banner{background:#0b141a}
  .iot-footer{background:#0b141a}
  .iot-receipt{background:#0f2a28}
  .iot-btc-note{background:#2a2113;color:#f5d9ae}
  .iot-step::before{background:var(--iot-teal);color:#062a29}
  .iot-toast{background:#e9f2f4;color:#0b141a}
  .iot-sidebar__link.is-active{background:var(--iot-teal-soft)}
  .iot-topbar__search{background:#0f1720}
  .iot-topbar__search input{color:var(--iot-ink)}
}

/* New-user sessions hide the views that need demo history. */
.iot-newuser [data-iot-newuser-hide]{display:none !important}

/* Footer buttons that behave like links (portal navigation). */
.iot-footer__linklike{
  background:none;border:none;color:#dcecf8;font:inherit;font-size:.92rem;
  padding:0;cursor:pointer;text-align:left;
}
.iot-footer__linklike:hover{text-decoration:underline}
