:root{--navy:#0b0e45;--navy2:#070b2d;--blue:#2b5cff;--purple:#6e39ed;--cyan:#2fd3ff;--green:#13a979;--orange:#f28a3b;--ink:#0c153b;--muted:#68738e;--bg:#f7f8fd;--line:#e4e8f2;--card:#fff;--shadow:0 12px 35px rgba(26,35,95,.08);--r:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}.svg-icon{display:inline-block;vertical-align:middle;flex:none}.shell{max-width:1180px;margin:auto;padding:0 22px}.top{background:linear-gradient(135deg,#0a123d,#17176a 55%,#3420a0);color:#fff}.nav{display:flex;align-items:center;justify-content:space-between;padding:20px 0}.brand{display:flex;align-items:center;gap:12px;font-size:30px;font-weight:800}.logo{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#7a43ff,#25caff);display:grid;place-items:center;color:#fff;font-weight:900;font-size:25px;box-shadow:0 10px 25px #0003}.brand span{background:linear-gradient(90deg,#fff,#a985ff);-webkit-background-clip:text;color:transparent}.navlinks{display:flex;gap:20px;align-items:center}.btn{border:0;border-radius:13px;padding:12px 18px;font-weight:700}.btn.primary{background:linear-gradient(90deg,var(--blue),var(--purple));color:#fff;box-shadow:0 8px 22px #4525d43d}.btn.ghost{background:#ffffff18;color:#fff;border:1px solid #ffffff2a}.btn.light{background:#fff;color:var(--navy)}
/* shared legacy/public styles */.hero{padding:72px 0 90px}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:35px;align-items:center}.eyebrow{color:#8edfff;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.hero h1{font-size:58px;line-height:1.03;margin:15px 0}.hero p{font-size:19px;color:#cfd6f5;line-height:1.65}.hero-actions{display:flex;gap:12px;margin-top:28px}.phone-card{background:linear-gradient(145deg,#fff,#eaf0ff);border-radius:32px;padding:18px;box-shadow:0 30px 70px #0005}.phone-screen{background:linear-gradient(160deg,#11185b,#2423a7);border-radius:25px;padding:22px;color:#fff;min-height:500px}.balance{background:linear-gradient(135deg,#2757f4,#4323d6);border-radius:20px;padding:22px;box-shadow:0 15px 35px #1c42d54a;color:#fff}.balance .amount{font-size:38px;font-weight:850;margin:8px 0}.mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.mini{padding:17px;border-radius:17px;background:#fff1;border:1px solid #ffffff20;text-align:center}.section{padding:55px 0}.section h2{font-size:34px;margin:0 0 12px}.section-sub{color:var(--muted);margin-bottom:25px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.feature{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow)}.icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#eef2ff}.footer{background:#080f32;color:#cbd2ec;padding:45px 0}
/* mobile banking shell */.app-shell{min-height:100vh;background:var(--bg)}.mobile-app-header{background:linear-gradient(155deg,#0a0f42 0%,#16135d 56%,#24188d 100%);color:#fff;position:relative;overflow:hidden;padding:24px max(18px,calc((100vw - 1180px)/2 + 22px)) 72px}.mobile-app-header:after{content:"";position:absolute;right:-10%;bottom:-65px;width:72%;height:180px;border-radius:50% 50% 0 0;background:radial-gradient(ellipse at 30% 40%,#4536c7aa,transparent 65%);transform:rotate(-6deg);pointer-events:none}.app-header-row{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.header-left{display:flex;align-items:center;gap:12px}.app-brand{display:grid;grid-template-columns:54px auto;grid-template-rows:auto auto;column-gap:10px;align-items:center}.brand-mark{width:54px;height:42px;position:relative;display:block}.brand-mark:before{content:"";position:absolute;left:3px;top:0;width:44px;height:11px;border-radius:10px;background:linear-gradient(90deg,#7138ef,#8b48ff)}.brand-mark:after{content:"";position:absolute;left:15px;top:9px;width:16px;height:31px;border-radius:4px 4px 12px 12px;transform:skewX(-13deg);background:linear-gradient(180deg,#7b42f7,#24d1ff)}.brand-mark span{display:none}.brand-word{font-size:33px;line-height:1;font-weight:850;letter-spacing:-1.5px;color:#fff}.brand-word span{color:#7444ff}.app-brand small{grid-column:2;color:#c9cdf1;font-size:14px;margin-top:4px}.round-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:#fff}.back-btn{background:#ffffff12;border:1px solid #ffffff20}.icon-btn{border:0;background:transparent;position:relative}.profile-btn{background:#ffffff18;border:1px solid #ffffff22}.header-actions{display:flex;align-items:center;gap:10px}.notif-dot{position:absolute;right:4px;top:1px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#ff5068;color:#fff;font-size:10px;display:grid;place-items:center;border:2px solid #15145d}.notification-wrap{position:relative}.notification-popover{position:absolute;right:0;top:52px;width:320px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 50px #0b123d2b;padding:12px;display:none;z-index:50}.notification-popover.open{display:block}.notification-head{display:flex;justify-content:space-between;padding:8px 9px 10px;border-bottom:1px solid var(--line)}.notification-head span{font-size:12px;color:var(--muted)}.notification-item{padding:11px 9px;border-bottom:1px solid #edf0f6}.notification-item:last-child{border-bottom:0}.notification-item b,.notification-item span{display:block}.notification-item span{font-size:12px;color:var(--muted);margin-top:3px}.notification-item.unread{background:#f4f5ff;border-radius:12px}.notification-empty{padding:18px 10px;text-align:center;color:var(--muted);font-size:13px}.app-user-greeting{position:relative;z-index:2;margin-top:32px;max-width:780px}.app-user-greeting h1{font-size:31px;margin:0 0 5px;letter-spacing:-.5px}.app-user-greeting p{font-size:17px;color:#cbd0ef;margin:0;line-height:1.5}.dashboard{max-width:1180px;margin:-40px auto 0;padding:0 22px 110px;position:relative;z-index:3}.dashboard h1,.dashboard h2,.dashboard h3{letter-spacing:-.35px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--shadow)}.kpi{display:flex;align-items:center;justify-content:space-between;gap:16px}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.action-card{text-align:center;min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:transform .18s ease,box-shadow .18s ease}.action-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(26,35,95,.12)}.action-card .icon{margin:auto}.action-card b{font-size:15px}.summary{margin-top:18px}.summary-row{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:0;align-items:stretch}.metric{padding:12px 16px;border-right:1px solid var(--line)}.metric:last-child{border:0}.label{font-size:13px;color:var(--muted)}.value{font-size:24px;font-weight:800;margin-top:5px}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:99px;font-size:12px;font-weight:800}.pill.green{background:#dff8ed;color:#07875f}.pill.orange{background:#fff0e0;color:#b65a05}.pill.blue{background:#e4edff;color:#2458d7}.pill.red{background:#ffe4e4;color:#b71d2b}.list{display:grid;gap:12px}.list-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff}.list-item:hover{border-color:#ccd4ef}.form{max-width:720px}.field{margin-bottom:15px}.field label{display:block;font-size:13px;font-weight:750;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid #dfe3ee;border-radius:12px;background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#5575ff;box-shadow:0 0 0 4px #5575ff16}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.right{text-align:right}.center{text-align:center}.hidden{display:none}.muted{color:var(--muted)}.notice{padding:13px 15px;border-radius:12px;background:#eef3ff;margin-bottom:15px}.danger{background:#fff0f0}.toast{position:fixed;right:18px;top:18px;z-index:99;padding:14px 18px;border-radius:12px;background:#111;color:#fff;box-shadow:var(--shadow)}.toast.success{background:#087d5d}.toast.warning{background:#a45d00}.toast.error{background:#a31c2b}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:15px;overflow:hidden}.table th,.table td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;font-size:13px}.table th{background:#f7f8fd}.bottomnav{position:fixed;z-index:40;bottom:0;left:0;right:0;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 8px max(7px,env(safe-area-inset-bottom));box-shadow:0 -8px 28px rgba(15,25,73,.06)}.bottomnav a{text-align:center;font-size:11px;color:#69738b;padding:5px 2px;display:flex;flex-direction:column;align-items:center;gap:3px}.bottomnav a .svg-icon{width:24px;height:24px}.bottomnav a.active{color:#4c2ce3;font-weight:800}.bottomnav a.active:after{content:"";height:3px;width:58px;border-radius:4px;background:#5630e8;margin-top:1px}
/* dashboard */.home-balance{position:relative;overflow:hidden;margin-top:-18px;border-radius:22px;background:linear-gradient(130deg,#2b55ee 0%,#3436dd 50%,#5728d7 100%);min-height:192px;padding:24px 28px;display:flex;justify-content:space-between;align-items:center;color:#fff;box-shadow:0 20px 45px #263ddf35}.home-balance:before{content:"";position:absolute;width:70%;height:150%;right:-12%;top:-30%;border:1px solid #ffffff22;border-radius:50%;transform:rotate(-15deg);box-shadow:0 0 0 22px #ffffff0a,0 0 0 44px #ffffff07}.home-balance .balance-copy{position:relative;z-index:2}.home-balance .balance-title{font-size:15px;display:flex;gap:8px;align-items:center}.home-balance .amount{font-size:45px;line-height:1.1;font-weight:850;margin:12px 0 10px}.growth{color:#4ef0bb;font-weight:800}.wallet-illustration{position:relative;z-index:2;width:210px;height:145px}.wallet-body{position:absolute;right:18px;bottom:25px;width:105px;height:72px;border-radius:14px;background:linear-gradient(145deg,#5d55ee,#9b5aff);border:3px solid #bcaeff;box-shadow:0 18px 25px #09154c55;transform:skewY(-5deg)}.wallet-body:after{content:"";position:absolute;right:-22px;top:22px;width:42px;height:18px;border-radius:8px;background:#f9b833;border:3px solid #ffe07a}.coin{position:absolute;right:92px;bottom:4px;width:48px;height:48px;border-radius:50%;background:#ffb72e;border:5px solid #ffe07a;display:grid;place-items:center;color:#fff;font-weight:900;font-size:22px;box-shadow:0 8px 18px #0b124555}.bars{position:absolute;right:5px;bottom:26px;display:flex;gap:6px;align-items:end}.bars i{display:block;width:18px;border-radius:6px 6px 2px 2px;background:linear-gradient(#9bd5ff,#6b80ff);box-shadow:0 6px 12px #0a164c44}.bars i:nth-child(1){height:45px}.bars i:nth-child(2){height:70px}.bars i:nth-child(3){height:93px}.overview-card{margin-top:18px;padding:0;overflow:hidden}.overview-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 15px}.overview-head h2{margin:0;font-size:23px}.overview-link{color:#4c2ce3;font-weight:750}.overall-row{display:grid;grid-template-columns:1.5fr 1fr 1fr;padding:0 8px 18px}.overall-row .metric{padding:14px 16px}.home-list{margin-top:18px}.home-list .list-item{min-height:86px}.list-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#edf1ff;color:#4d38dd}.list-icon.green{background:#e0f8ef;color:#0aa378}.list-icon.orange{background:#fff0e6;color:#ed742e}.list-icon.blue{background:#e5efff;color:#2462d7}.list-main{display:flex;align-items:center;gap:14px;min-width:0}.list-main>div:last-child{min-width:0}.list-main b{font-size:16px}.list-main .muted{margin-top:3px;font-size:13px}
/* FD and loan hero sections */.feature-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:-10px}.feature-tile{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 10px;text-align:center;box-shadow:var(--shadow);min-height:130px}.feature-tile .tile-icon{width:52px;height:52px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;background:#e8e9ff;color:#5931dc}.feature-tile:nth-child(2) .tile-icon{background:#ddf7ee;color:#07966e}.feature-tile:nth-child(3) .tile-icon{background:#fff0e7;color:#ee7831}.feature-tile:nth-child(4) .tile-icon{background:#e5efff;color:#1f62d9}.feature-tile b{display:block;font-size:14px}.feature-tile span{display:block;color:var(--muted);font-size:12px;line-height:1.35;margin-top:5px}.fd-balance{margin-top:-18px;display:grid;grid-template-columns:1.3fr 1fr 1fr;background:linear-gradient(125deg,#2856ef,#382bd8 58%,#3f35e8);color:#fff;border-radius:22px;overflow:hidden;box-shadow:0 20px 45px #263ddf35}.fd-main{padding:24px 30px}.fd-main .amount{font-size:44px;font-weight:850;margin:10px 0}.fd-stat{padding:28px 22px;border-left:1px solid #ffffff2d;display:flex;flex-direction:column;justify-content:center}.fd-stat .svg-holder{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#ffffff24;margin-bottom:8px}.fd-stat b{font-size:21px}.fd-stat span{font-size:13px;color:#e0e4ff}.section-card{margin-top:18px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-title h2{margin:0;font-size:22px}.fd-row{display:grid;grid-template-columns:1.25fr 1fr auto;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff}.fd-id{display:flex;gap:13px;align-items:flex-start}.fd-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#eee9ff;color:#6537dd}.fd-row:nth-child(3n) .fd-avatar{background:#e1f4ff;color:#2270df}.fd-info b{font-size:16px}.fd-info .amount-sm{font-size:16px;font-weight:800;margin:7px 0}.fd-meta{font-size:12px;color:var(--muted)}.fd-detail{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-line{display:flex;gap:9px;color:#5d6881;font-size:13px}.detail-line b{display:block;color:var(--ink);font-size:14px;margin-top:2px}.row-arrow{color:#111c51}.safe-card{margin-top:14px;background:linear-gradient(100deg,#e8fbf3,#f4fff9);border-color:#cdeee1;display:flex;align-items:center;justify-content:space-between;gap:20px}.safe-card .safe-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#11ad7c;color:#fff}.safe-copy{display:flex;align-items:center;gap:12px}.safe-copy b{font-size:15px}.safe-copy span{display:block;color:#5c7180;font-size:12px;margin-top:3px}
.loan-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:-10px}.loan-action{padding:18px;border-radius:18px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);min-height:175px;position:relative}.loan-action.green{background:#eefbf6;border-color:#cbeee0}.loan-action.purple{background:#f3f0ff;border-color:#ddd5fb}.loan-action.blue{background:#eef7ff;border-color:#d4e8fb}.loan-action .tile-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin-bottom:12px}.loan-action.green .tile-icon{background:#0ba67b;color:#fff}.loan-action.purple .tile-icon{background:#6534dd;color:#fff}.loan-action.blue .tile-icon{background:#2673e9;color:#fff}.loan-action b{font-size:19px}.loan-action p{color:#65728d;font-size:13px;line-height:1.45;max-width:230px}.loan-action .action-link{position:absolute;left:18px;bottom:17px;font-size:13px;font-weight:800}.loan-section{margin-top:18px}.loan-card{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff}.loan-name{display:flex;gap:13px;align-items:center}.loan-avatar{width:50px;height:50px;border-radius:50%;background:#eeeaff;color:#5a32d8;display:grid;place-items:center}.loan-name b{font-size:17px}.loan-name small{display:block;color:#647089;margin-top:3px}.loan-stat .label{margin-bottom:4px}.loan-stat b{font-size:15px}.offers{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.offer{border:1px solid var(--line);border-radius:18px;padding:18px;background:linear-gradient(145deg,#f0f6ff,#fff);position:relative;min-height:260px;overflow:hidden}.offer.purple{background:linear-gradient(145deg,#f5f0ff,#fff)}.offer.green{background:linear-gradient(145deg,#effbf6,#fff)}.offer-badge{position:absolute;right:12px;top:12px;padding:6px 10px;border-radius:12px;background:#e5efff;color:#2565db;font-size:11px;font-weight:800}.offer.purple .offer-badge{background:#ece5ff;color:#6233d8}.offer.green .offer-badge{background:#dff8ee;color:#0a966d}.offer-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e6efff;color:#2670df}.offer h3{margin:11px 0 3px;font-size:17px}.offer p{font-size:12px;color:#65718b;margin:0 0 10px}.offer ul{padding:0;margin:0;list-style:none;color:#59716c;font-size:12px;line-height:1.8}.offer li:before{content:"✓";font-weight:900;color:#18a277;margin-right:7px}.offer-price{position:absolute;bottom:16px;left:18px}.offer-price span{display:block;font-size:11px;color:#65718b}.offer-price b{font-size:20px}.higher-banner{margin-top:14px;padding:16px 20px;border:1px solid #f1dda8;border-radius:18px;background:linear-gradient(100deg,#fff8df,#fffdf3);display:flex;align-items:center;justify-content:space-between}.higher-banner .btn{background:#f5b91b;color:#191600;padding:10px 17px}
/* Account exact dark model */.app-shell-account{background:#050a25;color:#fff}.app-shell-account .mobile-app-header{padding-bottom:25px;background:linear-gradient(155deg,#0a0f42,#071031);}.app-shell-account .mobile-app-header:after{opacity:.4}.app-shell-account .app-brand small{color:#c5cae9}.account-dashboard{max-width:1180px;margin:0 auto;padding-top:0}.account-hero{background:linear-gradient(135deg,#0d1b50,#091a43);border:1px solid #21437b;border-radius:20px;padding:17px 20px;box-shadow:0 15px 35px #0003}.account-profile{display:flex;align-items:center;gap:14px}.avatar-large{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#5637f3,#17b9e7);border:3px solid #1fd3ff;color:#fff}.verified{background:#12a77d;color:#fff;padding:5px 9px;border-radius:12px;font-size:11px;font-weight:800}.account-meta b{font-size:24px}.account-meta .meta-line{font-size:12px;color:#b6c2e6;margin-top:5px}.copy-inline{border:0;background:transparent;color:#b8c6ee;padding:0;margin-left:6px}.account-arrow{margin-left:auto}.account-balance{margin-top:15px;border-radius:20px;background:linear-gradient(120deg,#145cff,#2439d9 58%,#2f24c9);padding:23px 27px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 20px 42px #071a9a44}.account-balance .big{font-size:39px;font-weight:850;margin:6px 0}.account-balance .small{color:#c7d5ff;font-size:13px}.wallet-side{display:flex;align-items:center;gap:13px}.wallet-side .wallet-visual{width:85px;height:58px;border-radius:12px;background:linear-gradient(145deg,#5b55ee,#8b63ff);border:2px solid #a9c1ff;transform:skewY(-5deg);display:grid;place-items:center}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:15px}.quick-action{background:#0b173d;border:1px solid #1d3970;border-radius:18px;padding:18px;text-align:center;min-height:118px;color:#fff}.quick-action .qa-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px}.quick-action:nth-child(1) .qa-icon{background:#14bf91}.quick-action:nth-child(2) .qa-icon{background:#f24877}.quick-action:nth-child(3) .qa-icon{background:#6d36ee}.quick-action:nth-child(4) .qa-icon{background:#3165e7}.quick-action b{font-size:14px}.quick-action span{display:block;color:#abb8dd;font-size:11px;margin-top:4px}.dark-card{margin-top:15px;background:#0a1638;border:1px solid #1c386e;border-radius:18px;overflow:hidden}.dark-card-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #203963}.dark-card-head b{font-size:17px}.dark-card-body{padding:18px 20px}.account-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}.account-detail-col{padding:0 18px}.account-detail-col:first-child{padding-left:0;border-right:1px solid #1f3864}.account-detail-col:last-child{padding-right:0}.detail-item{display:flex;gap:12px;margin-bottom:17px}.detail-item:last-child{margin-bottom:0}.detail-item .di-icon{width:38px;height:38px;border-radius:50%;background:#102b5b;color:#b6c9ef;display:grid;place-items:center;flex:none}.detail-item small{display:block;color:#8fa1c9;font-size:11px}.detail-item b{display:block;color:#fff;font-size:13px;margin-top:3px}.virtual-card{display:grid;grid-template-columns:1.1fr 1fr .65fr;gap:20px;align-items:center;padding:18px 20px}.visa-card{height:145px;border-radius:17px;padding:16px;color:#fff;background:linear-gradient(145deg,#4b2ce3,#1465ee);position:relative;overflow:hidden;box-shadow:0 15px 30px #0005}.visa-card:after{content:"";position:absolute;width:160px;height:160px;right:-70px;top:-60px;border:1px solid #ffffff35;border-radius:50%;box-shadow:0 0 0 20px #ffffff0b}.visa-card .card-brand{font-size:16px;font-weight:850}.visa-card .chip{width:27px;height:20px;border-radius:5px;background:#f0c84a;margin:22px 0 11px}.visa-card .number{font-size:14px;letter-spacing:2px}.visa-card .holder{font-size:10px;margin-top:12px}.visa-card .visa{position:absolute;right:15px;bottom:12px;font-size:19px;font-weight:900}.virtual-info b{font-size:16px}.virtual-info p{font-size:12px;color:#aab8dc;margin:6px 0 13px}.dark-btn{border:1px solid #3161a9;background:#102d5e;color:#fff;border-radius:13px;padding:10px 15px;font-weight:750}.limits{border-left:1px solid #203963;padding-left:20px}.limit-row{display:flex;gap:10px;align-items:center;margin:10px 0;color:#bdc9e8}.limit-row b{display:block;color:#fff;font-size:13px}.limit-row span{display:block;color:#8fa1c9;font-size:11px}.account-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:15px}.account-mini{background:#0a173a;border:1px solid #1c386e;border-radius:18px;padding:16px;display:flex;align-items:center;justify-content:space-between}.account-mini .am-left{display:flex;align-items:center;gap:11px}.account-mini .am-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#10306a;color:#9db9ff}.account-mini b{display:block;font-size:14px}.account-mini span{display:block;color:#aab8da;font-size:12px;margin-top:3px}.address-row{display:flex;align-items:center;gap:13px;color:#c5cfea}.address-row .location{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#102d5f;color:#b5cbff}.address-row b{display:block;color:#fff;font-size:13px}.address-row span{display:block;color:#9eafd4;font-size:12px;margin-top:3px}.dark-bottomnav{background:#050a25;border-top-color:#1a2b50}.app-shell-account .bottomnav{background:#050a25;border-top-color:#1a2b50}.app-shell-account .bottomnav a{color:#9aa9cb}.app-shell-account .bottomnav a.active{color:#6f52ff}
/* admin */.admin-layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:#0b123d;color:#cfd5ee;padding:22px;position:sticky;top:0;height:100vh}.sidebrand{font-size:24px;font-weight:850;color:#fff;margin-bottom:30px}.side a{display:block;padding:12px 14px;border-radius:12px;margin:5px 0}.side a:hover,.side a.active{background:#ffffff12;color:#fff}.admin-main{padding:25px;background:#f5f7fc}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.statgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.stat{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px}.admin-tabs{display:flex;gap:8px;overflow:auto;margin-bottom:18px}.tab{padding:10px 14px;border:1px solid var(--line);border-radius:11px;background:#fff}.tab.active{background:#151a64;color:#fff}.lock{opacity:.72}.hero-wave{height:25px;background:var(--bg);border-radius:50% 50% 0 0/100% 100% 0 0;margin-top:-25px;position:relative}.chart{height:190px;background:linear-gradient(180deg,#f0f4ff,#fff);border-radius:16px;padding:18px;display:flex;align-items:end;gap:10px}.bar{flex:1;border-radius:8px 8px 0 0;background:linear-gradient(#4e6cff,#753de8)}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.hero h1{font-size:44px}.feature-grid{grid-template-columns:repeat(2,1fr)}.grid4{grid-template-columns:repeat(2,1fr)}.statgrid{grid-template-columns:repeat(2,1fr)}.admin-layout{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.side{display:flex;overflow:auto}.side a{white-space:nowrap}.summary-row{grid-template-columns:1fr 1fr}.loan-card{grid-template-columns:1.5fr 1fr auto}.loan-card .loan-stat:nth-child(3){display:none}.offers{grid-template-columns:repeat(2,1fr)}.fd-balance{grid-template-columns:1.2fr 1fr 1fr}.account-mini-grid{grid-template-columns:1fr 1fr}.virtual-card{grid-template-columns:1fr 1fr}.limits{border-left:0;padding-left:0}.app-brand small{font-size:12px}}
@media(max-width:600px){.shell{padding:0 15px}.navlinks{display:none}.mobile-app-header{padding:17px 15px 64px}.app-brand{grid-template-columns:44px auto}.brand-mark{width:44px;height:38px}.brand-mark:before{width:36px;height:9px}.brand-mark:after{left:12px;width:14px;height:28px}.brand-word{font-size:27px}.app-brand small{font-size:11px}.round-icon{width:42px;height:42px}.header-actions{gap:2px}.app-user-greeting{margin-top:23px}.app-user-greeting h1{font-size:27px}.app-user-greeting p{font-size:14px}.dashboard{padding:0 12px 95px;margin-top:-32px}.home-balance{margin-top:-15px;padding:19px 18px;min-height:165px}.home-balance .amount{font-size:34px}.home-balance .balance-title{font-size:13px}.wallet-illustration{transform:scale(.72);transform-origin:right center;margin-left:-50px}.grid4{grid-template-columns:repeat(2,1fr);gap:10px}.action-card{min-height:112px;padding:12px 8px}.feature-actions{grid-template-columns:repeat(2,1fr);gap:10px}.feature-tile{min-height:112px;padding:13px 8px}.feature-tile .tile-icon{width:44px;height:44px}.fd-balance{grid-template-columns:1fr;overflow:visible}.fd-main{padding:20px}.fd-main .amount{font-size:34px}.fd-stat{padding:14px 20px;border-left:0;border-top:1px solid #ffffff2d;flex-direction:row;align-items:center;gap:12px}.fd-stat .svg-holder{margin:0}.fd-stat b{font-size:17px}.fd-row{grid-template-columns:1fr auto;gap:12px}.fd-detail{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:8px}.row-arrow{grid-column:2;grid-row:1}.loan-actions{grid-template-columns:1fr;gap:10px}.loan-action{min-height:145px}.loan-card{grid-template-columns:1fr auto}.loan-card .loan-stat{display:none}.offers{grid-template-columns:1fr}.offer{min-height:245px}.higher-banner{align-items:flex-start;gap:10px}.higher-banner .btn{white-space:nowrap}.summary-row,.overall-row{grid-template-columns:1fr 1fr}.metric{border-right:0;border-bottom:1px solid var(--line)}.metric:nth-child(2n){border-right:0}.list-item{padding:13px}.list-main{gap:9px}.list-main b{font-size:14px}.list-main .muted{font-size:11px}.notification-popover{right:-45px;width:min(320px,calc(100vw - 24px))}.account-dashboard{padding-top:0}.account-hero{padding:15px}.account-profile{gap:10px}.avatar-large{width:55px;height:55px}.account-meta b{font-size:20px}.account-meta .meta-line{font-size:10px}.account-balance{padding:18px;align-items:flex-start}.account-balance .big{font-size:30px}.wallet-side{display:none}.quick-actions{grid-template-columns:repeat(2,1fr);gap:9px}.quick-action{min-height:105px;padding:13px 8px}.quick-action .qa-icon{width:45px;height:45px}.account-details-grid{grid-template-columns:1fr}.account-detail-col{padding:0}.account-detail-col:first-child{border-right:0;border-bottom:1px solid #1f3864;padding-bottom:16px;margin-bottom:16px}.virtual-card{grid-template-columns:1fr;padding:15px}.visa-card{height:135px}.limits{border-top:1px solid #203963;padding-top:10px}.account-mini-grid{grid-template-columns:1fr}.safe-card{align-items:flex-start}.two{grid-template-columns:1fr}.table{min-width:650px}.form{max-width:none}.right{white-space:nowrap}.bottomnav a{font-size:10px}.bottomnav a.active:after{width:42px}.admin-main{padding:15px}}

/* Cash Love Pay v2 mobile-first/auth/analytics layer */
.page-loader{position:fixed;inset:0;background:linear-gradient(145deg,#070b2d,#17135e 58%,#3420a0);z-index:9999;display:grid;place-content:center;justify-items:center;gap:10px;color:#fff;transition:opacity .35s ease,visibility .35s ease}.page-loader.hide{opacity:0;visibility:hidden;pointer-events:none}.loader-mark{width:62px;height:52px;position:relative}.loader-mark:before{content:"";position:absolute;left:5px;top:0;width:50px;height:12px;border-radius:12px;background:linear-gradient(90deg,#7138ef,#8b48ff)}.loader-mark:after{content:"";position:absolute;left:18px;top:10px;width:18px;height:40px;border-radius:5px 5px 14px 14px;transform:skewX(-13deg);background:linear-gradient(180deg,#7b42f7,#24d1ff)}.loader-word{font-size:28px;font-weight:850;letter-spacing:-1px}.loader-word span{color:#7c4cff}.loader-line{width:90px;height:3px;border-radius:4px;background:#ffffff30;overflow:hidden;position:relative}.loader-line:after{content:"";position:absolute;inset:0;width:45%;background:#7d56ff;animation:loadline 1.1s infinite ease-in-out}@keyframes loadline{0%{transform:translateX(-120%)}100%{transform:translateX(230%)}}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:#f7f8fd}.auth-visual{position:relative;overflow:hidden;background:linear-gradient(145deg,#070b2d,#12155c 52%,#3520a0);color:#fff;padding:48px clamp(30px,6vw,90px);display:flex;flex-direction:column;justify-content:center}.auth-visual:after{content:"";position:absolute;right:-20%;bottom:-18%;width:90%;height:45%;border:1px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 35px #ffffff05,0 0 0 70px #ffffff03}.auth-brand{display:flex;align-items:center;gap:10px;position:absolute;top:35px;left:clamp(30px,6vw,90px)}.auth-brand .brand-word,.auth-logo-mobile .brand-word{font-size:34px}.auth-copy{position:relative;z-index:1;max-width:590px}.auth-kicker{display:inline-flex;padding:7px 12px;border-radius:99px;background:#ffffff12;border:1px solid #ffffff20;color:#bcd0ff;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.auth-copy h1{font-size:clamp(42px,5vw,68px);line-height:1.02;letter-spacing:-2px;margin:18px 0 15px}.auth-copy p{font-size:18px;line-height:1.65;color:#cbd2f1;max-width:560px}.auth-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:30px}.auth-mini-grid>div{padding:15px;border:1px solid #ffffff16;border-radius:16px;background:#ffffff0b;backdrop-filter:blur(8px)}.auth-mini-grid b,.auth-mini-grid span{display:block}.auth-mini-grid b{font-size:18px}.auth-mini-grid span{color:#aebbe0;font-size:11px;margin-top:4px}.auth-panel{display:grid;place-items:center;padding:30px}.auth-card{width:min(510px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 25px 70px #151a6420}.auth-card-register{padding-bottom:25px}.auth-back{display:inline-flex;align-items:center;gap:6px;color:#596580;font-size:13px;font-weight:700;margin-bottom:24px}.auth-logo-mobile{display:none}.auth-heading h2{font-size:32px;letter-spacing:-1px;margin:13px 0 5px}.auth-heading p{color:var(--muted);font-size:14px;margin:0 0 22px}.auth-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:99px;background:#edf2ff;color:#3158ce;font-size:11px;font-weight:800}.auth-form .field{margin-bottom:14px}.auth-form .field input{height:48px}.auth-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8791a8;margin:3px 0 18px}.check{display:flex;align-items:center;gap:6px}.auth-submit{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:7px}.auth-divider{display:flex;align-items:center;gap:10px;color:#98a1b5;font-size:11px;margin:22px 0 13px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-register{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border:1px solid #dfe4f2;border-radius:12px;color:#2f49b7;font-weight:800;font-size:13px;background:#fafbff}.auth-register span{font-size:18px}.auth-benefits{display:grid;gap:12px;margin-top:28px}.auth-benefits>div{display:flex;align-items:center;gap:12px;color:#bfcaf0}.auth-benefits>div>svg{width:40px;height:40px;padding:10px;background:#ffffff10;border:1px solid #ffffff18;border-radius:13px}.auth-benefits b,.auth-benefits small{display:block}.auth-benefits b{color:#fff;font-size:14px}.auth-benefits small{font-size:11px;margin-top:2px}.admin-auth .auth-card{max-width:480px}
.live-section{margin-top:18px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-title h2{margin:0;font-size:21px}.section-title p{margin:3px 0 0;font-size:12px}.live-chip{display:inline-flex;align-items:center;gap:5px;background:#e2faef;color:#087d5d;border-radius:99px;padding:6px 9px;font-size:10px;font-weight:900}.chart-grid-2x2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.chart-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;box-shadow:var(--shadow);min-width:0}.chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.chart-head span b,.chart-head span small{display:block}.chart-head b{font-size:13px}.chart-head small{font-size:9px;color:#0c9b71;margin-top:3px}.chart-head strong{font-size:15px}.live-chart{height:118px;margin-top:7px;color:#3f58df;background:linear-gradient(180deg,#f5f7ff,#fff);border-radius:12px;padding:4px}.live-chart svg{width:100%;height:100%;display:block}.kyc-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:15px}.kyc-intro{background:linear-gradient(145deg,#0b123d,#181667 70%,#3420a0);color:#fff;border-color:#202b70}.kyc-intro .muted{color:#c2cbed}.kyc-status{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #ffffff18;border-radius:14px;background:#ffffff0b;margin:18px 0}.kyc-status small,.kyc-status b{display:block}.kyc-status small{color:#9eadd5;font-size:10px}.kyc-status b{margin-top:2px}.status-dot{width:10px;height:10px;border-radius:50%;background:#f2a23a}.status-dot.verified{background:#24d39c}.status-dot.rejected{background:#ff5d68}.kyc-form-card h2{margin-top:0}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 16px}.upload-box{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:150px;border:1.5px dashed #bfc8e1;border-radius:16px;background:#fafbff;padding:18px;cursor:pointer;transition:.2s}.upload-box:hover{border-color:#5872ef;background:#f5f7ff}.upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-icon{width:48px;height:48px;border-radius:14px;background:#e9edff;color:#3657dc;display:grid;place-items:center;margin-bottom:8px}.upload-box b{font-size:13px}.upload-box small{font-size:10px;color:var(--muted);margin-top:4px}.notice.success{background:#e4faef;color:#087d5d}.pending-verification{background:#fff0dc!important;color:#a65c08!important}
.doc-link{font-size:11px;color:#3455cc;font-weight:800}
/* compact mobile banking dimensions */
.dashboard{max-width:1100px}.dashboard .card{border-radius:17px;padding:16px}.dashboard .grid4{gap:10px}.dashboard .action-card{min-height:102px;padding:10px}.dashboard .action-card .icon{width:42px;height:42px;border-radius:13px}.dashboard .action-card b{font-size:13px}.dashboard .overview-card,.dashboard .section-card{margin-top:13px}.dashboard .list{gap:8px}.dashboard .list-item{padding:12px;border-radius:14px}.dashboard .list-main b{font-size:13px}.dashboard .label{font-size:11px}.dashboard .value{font-size:20px}.account-dashboard .account-hero{border-radius:17px}.account-dashboard .account-balance{border-radius:17px}.account-dashboard .quick-actions{gap:9px}.account-dashboard .quick-action{border-radius:15px;min-height:98px;padding:11px}.account-dashboard .dark-card{border-radius:15px}
@media(max-width:900px){.auth-page{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{padding:18px}.auth-logo-mobile{display:flex;align-items:center;gap:9px;margin-bottom:24px}.auth-card{padding:22px;border-radius:21px}.kyc-layout{grid-template-columns:1fr}.kyc-intro{padding:18px}.chart-grid-2x2{gap:9px}}
@media(max-width:600px){body{font-size:14px}.auth-panel{padding:10px}.auth-card{padding:18px;border-radius:19px;box-shadow:0 14px 35px #151a6415}.auth-logo-mobile .brand-word{font-size:28px}.auth-heading h2{font-size:27px}.auth-heading p{font-size:12px;margin-bottom:18px}.auth-row{font-size:10px}.two{gap:9px}.field{margin-bottom:11px}.field label{font-size:11px;margin-bottom:5px}.field input,.field select,.field textarea{padding:11px 12px;border-radius:10px}.auth-submit{height:45px}.dashboard{padding-left:10px;padding-right:10px;padding-bottom:84px;margin-top:-30px}.mobile-app-header{padding:13px 11px 57px}.app-brand{grid-template-columns:39px auto;column-gap:7px}.brand-mark{width:39px;height:34px}.brand-mark:before{width:34px;height:8px}.brand-mark:after{left:11px;width:13px;height:27px}.brand-word{font-size:25px}.app-brand small{font-size:9px}.round-icon{width:38px;height:38px}.header-actions{gap:0}.app-user-greeting{margin-top:18px}.app-user-greeting h1{font-size:24px}.app-user-greeting p{font-size:12px}.home-balance{padding:15px 14px;min-height:145px;border-radius:17px}.home-balance .amount{font-size:30px}.home-balance .growth{font-size:12px}.wallet-illustration{transform:scale(.6);margin-left:-75px}.grid4{gap:8px}.dashboard .action-card{min-height:96px;padding:9px 5px}.dashboard .action-card .icon{width:38px;height:38px}.dashboard .action-card b{font-size:12px}.summary-row,.overall-row{grid-template-columns:repeat(2,1fr)}.metric{padding:9px 10px}.metric .value{font-size:17px}.chart-grid-2x2{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.chart-card{padding:10px;border-radius:13px}.chart-head b{font-size:11px}.chart-head small{font-size:8px}.chart-head strong{font-size:12px}.live-chart{height:85px;padding:2px}.section-title h2{font-size:18px}.live-section{margin-top:12px}.kyc-layout{gap:9px}.kyc-intro{padding:14px}.kyc-intro h1{font-size:23px}.kyc-form-card{padding:13px}.upload-grid{grid-template-columns:1fr 1fr;gap:7px}.upload-box{min-height:120px;padding:10px}.upload-icon{width:38px;height:38px}.upload-box b{font-size:11px}.upload-box small{font-size:8px}.account-profile{gap:7px}.account-meta b{font-size:18px}.account-meta .meta-line{font-size:9px}.account-balance{padding:15px}.account-balance .big{font-size:27px}.quick-action span{font-size:9px}.quick-action b{font-size:12px}.dark-card-head{padding:12px 14px}.dark-card-body{padding:13px 14px}.detail-item{gap:8px;margin-bottom:12px}.detail-item .di-icon{width:32px;height:32px}.detail-item b{font-size:12px}.virtual-card{padding:12px}.visa-card{height:120px}.visa-card .number{font-size:11px}.visa-card .chip{margin:15px 0 8px}.limits{padding-top:8px}.bottomnav{height:65px}.bottomnav a{font-size:9px}.bottomnav a .svg-icon{width:20px;height:20px}.admin-main{padding:10px}.statgrid{gap:8px}.stat{padding:12px;border-radius:13px}.stat .value{font-size:18px}}
/* Cash Love Pay final enhancement layer */
.admin-layout{grid-template-columns:245px minmax(0,1fr);background:#f5f7fc}.sidebar{width:245px;padding:18px 14px;background:linear-gradient(180deg,#080d35,#101650 70%,#15145d);z-index:100;box-shadow:14px 0 40px rgba(7,12,50,.12)}.sidebrand{display:flex;align-items:center;gap:10px;margin:2px 8px 18px;font-size:18px}.sidebrand small{display:block;font-size:10px;color:#aeb8df;font-weight:500;margin-top:2px}.admin-logo{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#7140ef,#21c8ff);font-size:20px;font-weight:900;color:#fff}.side a{display:flex;align-items:center;gap:10px;padding:10px 11px;margin:3px 0;border:1px solid transparent;color:#bfc8e7;font-size:12px;font-weight:700}.side a:hover,.side a.active{background:linear-gradient(90deg,#ffffff14,#ffffff08);border-color:#ffffff14;color:#fff}.side a .svg-icon{width:18px;height:18px}.admin-main{min-width:0}.admin-mobilebar,.admin-menu-close,.admin-scrim{display:none}
.auth-page{min-height:calc(100vh - 1px);background:#f7f8fd}.auth-panel{min-width:0}.auth-card{position:relative;z-index:2}.landing-hero .nav{padding:15px 0}.landing-copy{position:relative;z-index:2}.trust-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:20px;color:#aebbe3;font-size:11px}.trust-row span{display:inline-flex;align-items:center;gap:5px}.demo-growth{display:flex;align-items:center;gap:5px;color:#5af0bd;font-weight:700}.demo-activity{margin-top:15px;padding:11px 12px;border:1px solid #ffffff18;border-radius:13px;background:#ffffff0b;display:grid;grid-template-columns:auto 1fr auto;gap:3px 7px;align-items:center}.demo-activity b{font-size:11px}.demo-activity strong{font-size:12px;color:#5af0bd}.demo-activity small{grid-column:2;color:#aebbe3;font-size:9px}.pulse-dot{width:8px;height:8px;border-radius:50%;background:#31e1a7;box-shadow:0 0 0 5px #31e1a726;animation:pulseLive 1.4s infinite}.landing-live{margin-top:-1px;padding:0 0 35px;background:var(--bg)}.live-counter{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow);display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.live-counter h2{margin:8px 0 5px;font-size:23px}.live-counter p{margin:0}.counter-grid{display:grid;grid-template-columns:repeat(3,120px);gap:9px}.counter-grid>div{padding:12px 10px;text-align:center;border:1px solid var(--line);border-radius:14px;background:#fafbff}.counter-grid b,.counter-grid span{display:block}.counter-grid b{font-size:23px;color:#294fd7}.counter-grid span{font-size:10px;color:var(--muted);margin-top:3px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow.dark{color:#5131d7;font-size:10px}.finance-section{background:#f0f3fb}.finance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.finance-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow);min-height:190px}.finance-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;margin-bottom:13px}.finance-icon.green{background:#e2f8f0;color:#079c71}.finance-icon.purple{background:#eee8ff;color:#6336e8}.finance-icon.blue{background:#e6efff;color:#2363dc}.finance-icon.orange{background:#fff0e5;color:#ed7830}.finance-card h3{margin:0 0 6px;font-size:16px}.finance-card p{font-size:12px;line-height:1.55;color:var(--muted);min-height:55px}.finance-card b{font-size:10px;color:#475a86}.security-section b{display:flex;align-items:center;gap:6px}
@keyframes pulseLive{50%{transform:scale(1.25);opacity:.65}}
@media(max-width:900px){.admin-layout{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;height:100dvh;transform:translateX(-105%);transition:transform .22s ease;box-shadow:20px 0 60px #050a2d55}.sidebar.open{transform:translateX(0)}.side{display:block!important;overflow:visible!important}.side a{white-space:normal}.admin-mobilebar{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:10px;box-shadow:var(--shadow)}.admin-mobilebar b,.admin-mobilebar small{display:block}.admin-mobilebar small{font-size:9px;color:var(--muted);margin-top:2px}.admin-menu-btn,.admin-menu-close{border:0;background:transparent;color:#26386e}.admin-menu-btn{width:38px;height:38px;border-radius:11px;background:#eef2ff;display:grid;place-items:center}.admin-menu-close{display:block;position:absolute;right:9px;top:9px;color:#fff;font-size:26px}.admin-scrim{position:fixed;inset:0;background:#03072599;z-index:90}.admin-scrim.open{display:block}.section-heading{align-items:flex-start}.finance-grid{grid-template-columns:repeat(2,1fr)}.live-counter{grid-template-columns:1fr}.counter-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.nav{padding:11px 0}.brand{font-size:24px;gap:8px}.brand .logo{width:38px;height:38px;font-size:20px}.landing-hero .hero{padding:42px 0 55px}.hero h1{font-size:36px;letter-spacing:-1.2px}.hero p{font-size:14px;line-height:1.55}.hero-actions{margin-top:19px}.trust-row{gap:8px;font-size:9px}.landing-phone{padding:10px;border-radius:24px}.landing-phone .phone-screen{padding:15px;min-height:0}.landing-phone .balance{padding:15px}.landing-phone .balance .amount{font-size:29px}.landing-phone .mini{padding:10px 4px;font-size:10px}.landing-live{padding-bottom:20px}.live-counter{padding:14px;border-radius:17px}.live-counter h2{font-size:18px}.counter-grid{gap:6px}.counter-grid>div{padding:9px 5px}.counter-grid b{font-size:18px}.counter-grid span{font-size:8px}.section{padding:34px 0}.section h2{font-size:25px}.section-heading{display:block}.section-heading .btn{margin-top:10px}.finance-grid{grid-template-columns:1fr 1fr;gap:8px}.finance-card{padding:12px;min-height:165px;border-radius:15px}.finance-icon{width:38px;height:38px;border-radius:11px;margin-bottom:9px}.finance-card h3{font-size:13px}.finance-card p{font-size:10px;min-height:56px}.finance-card b{font-size:8px}.auth-page{min-height:100dvh}.auth-panel{padding:9px}.auth-card{width:100%;min-height:calc(100dvh - 18px);display:flex;flex-direction:column;justify-content:center}.auth-form{width:100%}.admin-main{padding:9px}.statgrid{grid-template-columns:repeat(2,1fr)}.admin-top{gap:8px}.admin-top h1{font-size:22px}.admin-top .btn{padding:9px 11px;font-size:10px}}
/* Loan workflow v2 */
.loan-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px;background:linear-gradient(135deg,#fff,#f0f3ff)}.loan-hero h1{margin:10px 0 5px;font-size:30px}.loan-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}.loan-status-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px;box-shadow:var(--shadow)}.status-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.status-head b,.status-head small{display:block}.status-head small{color:var(--muted);font-size:10px;margin-top:3px}.loan-money{display:flex;justify-content:space-between;align-items:end;padding:14px 0;border-bottom:1px solid var(--line)}.loan-money span{font-size:11px;color:var(--muted)}.loan-money strong{font-size:20px}.loan-meta{display:flex;justify-content:space-between;padding:11px 0;font-size:11px;color:var(--muted)}.due-box{background:#f2f5ff;border-radius:14px;padding:12px;display:grid;grid-template-columns:1fr auto;gap:4px}.due-box span{font-size:10px;color:var(--muted)}.due-box b{font-size:13px}.due-box strong{grid-column:1/-1;font-size:20px}.full{width:100%;text-align:center}.loan-plan{position:relative}.loan-plan .offer-badge{top:12px}.loan-apply-card{margin-bottom:20px}.admin-loan-form{display:grid;grid-template-columns:repeat(2,minmax(100px,1fr));gap:7px;min-width:250px}.admin-loan-form input{padding:8px;border:1px solid var(--line);border-radius:8px;width:100%}.loan-review{white-space:normal;line-height:1.7;min-width:250px;margin-top:8px}.loan-review a{color:#4c2ce3;font-weight:700}.loan-admin-table td{vertical-align:top;white-space:normal}.loan-admin-table th{white-space:nowrap}.loan-admin-table details summary{cursor:pointer;font-weight:700;color:#4c2ce3}.loan-status-card .notice{margin-top:8px;font-size:11px}
@media(max-width:900px){.loan-status-grid{grid-template-columns:1fr 1fr}.loan-hero{align-items:flex-start;flex-direction:column}.loan-admin-form{grid-template-columns:1fr}.loan-admin-table{min-width:900px}.loan-admin-table td{white-space:normal}}
@media(max-width:600px){.loan-status-grid{grid-template-columns:1fr}.loan-hero{padding:15px}.loan-hero h1{font-size:24px}.loan-hero .btn{width:100%;text-align:center}.loan-apply-card{padding:13px}.loan-apply-card .two{grid-template-columns:1fr}.loan-status-card{border-radius:16px;padding:14px}.loan-money strong{font-size:18px}}

/* ===== User mobile refinement + account/FD/loan animation layer ===== */
.fd-compact-card,.fd-list-card,.account-reveal-card,.loan-form-hero,.loan-application-form-card{animation:uiRise .55s ease both}
.fd-feature-actions .feature-tile{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.fd-feature-actions .feature-tile:hover{transform:translateY(-5px);box-shadow:0 16px 35px rgba(46,57,135,.13);border-color:#cfd8ff}
.fd-list-card .fd-row{transition:transform .22s ease,box-shadow .22s ease}
.fd-list-card .fd-row:hover{transform:translateX(3px);box-shadow:0 10px 25px rgba(26,35,95,.08)}
.loan-form-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:14px;background:linear-gradient(135deg,#fff,#f1f4ff);overflow:hidden;position:relative}
.loan-form-hero:after{content:"";position:absolute;width:180px;height:180px;right:-60px;top:-80px;border-radius:50%;background:#6d4aff12;animation:floatOrb 5s ease-in-out infinite}
.loan-form-hero h1{margin:9px 0 5px;font-size:30px}.loan-form-hero p{max-width:700px;margin:0}.ghost-dark{background:#eef1ff;color:#293a78;border:1px solid #dce3ff}
.loan-application-form-card{overflow:hidden}.form-step{font-size:11px;font-weight:800;color:#5b46d8;background:#f0edff;padding:7px 10px;border-radius:999px}.loan-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.loan-application-form .field{margin-bottom:13px}.loan-application-form input,.loan-application-form select,.loan-application-form textarea{transition:border-color .2s,box-shadow .2s,transform .2s}.loan-application-form input:focus,.loan-application-form select:focus,.loan-application-form textarea:focus{border-color:#7152ee;box-shadow:0 0 0 4px #7152ee12;transform:translateY(-1px)}.file-field{position:relative}.file-field small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.loan-submit-note{display:flex;gap:10px;align-items:center;background:#f3f8ff;border:1px solid #dde8ff;border-radius:13px;padding:11px 13px;margin:4px 0 14px}.loan-submit-note>span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#dff8ed;color:#07875f;font-weight:900}.loan-submit-note b,.loan-submit-note small{display:block}.loan-submit-note small{font-size:10px;color:var(--muted);margin-top:2px}.loan-submit-btn{min-width:230px;transition:transform .2s,box-shadow .2s}.loan-submit-btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px #4525d433}
.bank-identity-card{margin:14px 0;padding:20px;border-radius:20px;background:linear-gradient(135deg,#101653,#211c75);color:#fff;box-shadow:0 18px 45px rgba(17,22,83,.2);position:relative;overflow:hidden}.bank-identity-card:before{content:"";position:absolute;inset:auto -40px -90px auto;width:230px;height:230px;border-radius:50%;background:#7b60ff22}.bank-identity-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;position:relative;z-index:1}.bank-identity-head h2{margin:5px 0;font-size:22px}.bank-identity-head p{margin:0;color:#c8cff0;font-size:11px}.identity-active{font-size:10px;background:#ffffff14;border:1px solid #ffffff20;padding:7px 10px;border-radius:999px;color:#65e8bd}.bank-identity-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.identity-item{background:#ffffff0d;border:1px solid #ffffff12;border-radius:14px;padding:12px;position:relative}.identity-item span{display:block;color:#aeb8df;font-size:9px;margin-bottom:5px}.identity-item b{font-size:14px;word-break:break-word}.identity-copy{position:absolute;right:9px;bottom:9px;border:0;border-radius:8px;padding:5px 8px;background:#ffffff18;color:#fff;font-size:9px}.identity-transfer{font-size:12px;color:#fff;font-weight:800}.card-detail-modal{position:fixed;inset:0;background:#05082d99;backdrop-filter:blur(5px);display:none;align-items:center;justify-content:center;padding:18px;z-index:999}.card-detail-modal.open{display:flex;animation:modalIn .22s ease}.card-detail-dialog{width:min(430px,100%);background:#fff;border-radius:22px;padding:22px;box-shadow:0 25px 80px #05082d44;position:relative}.modal-close{position:absolute;right:12px;top:10px;border:0;background:#eef1ff;color:#27356e;width:32px;height:32px;border-radius:50%;font-size:22px}.modal-card-number{margin:18px 0;padding:17px;border-radius:15px;background:linear-gradient(135deg,#171b65,#5131d7);color:#fff;font-size:18px;letter-spacing:2px}.modal-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modal-detail-grid div{padding:11px;border-radius:12px;background:#f5f7fc}.modal-detail-grid span,.modal-detail-grid b{display:block}.modal-detail-grid span{font-size:9px;color:var(--muted)}.modal-detail-grid b{font-size:12px;margin-top:3px}.account-mini{transition:transform .2s,box-shadow .2s}.account-mini:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(26,35,95,.1)}
@keyframes uiRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes floatOrb{50%{transform:translate(-12px,12px) scale(1.05)}}@keyframes modalIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
/* Fix header/content overlap: content starts below header on phones instead of negative overlay */
@media(max-width:600px){.mobile-app-header{padding:12px 11px 26px}.app-user-greeting{margin-top:15px}.app-user-greeting h1{font-size:23px}.app-user-greeting p{font-size:11px;line-height:1.45}.dashboard{margin-top:0;padding:12px 10px 88px}.dashboard.account-dashboard{padding-top:0}.dashboard .card{padding:13px;border-radius:15px}.fd-balance{padding:12px!important;border-radius:15px!important}.fd-main .amount{font-size:24px!important}.fd-stat{padding:9px!important}.fd-stat b{font-size:13px}.feature-actions{gap:7px!important}.fd-feature-actions .feature-tile{min-height:82px!important;padding:8px 5px!important;border-radius:13px}.fd-feature-actions .feature-tile b{font-size:10px}.fd-feature-actions .feature-tile span{font-size:8px}.fd-feature-actions .tile-icon{width:32px!important;height:32px!important}.fd-list-card .fd-row{padding:9px!important;gap:7px}.fd-list-card .fd-info b{font-size:11px}.fd-list-card .fd-meta{font-size:8px}.loan-form-hero{padding:14px!important;display:block}.loan-form-hero h1{font-size:23px}.loan-form-hero p{font-size:11px}.loan-form-hero .btn{margin-top:10px;width:100%;text-align:center}.loan-form-grid{grid-template-columns:1fr;gap:0}.loan-application-form-card{padding:12px!important}.loan-application-form-card .section-title{gap:8px}.loan-application-form-card h2{font-size:18px}.loan-application-form input,.loan-application-form select,.loan-application-form textarea{padding:10px 11px;border-radius:10px;font-size:12px}.loan-submit-btn{width:100%;min-width:0}.bank-identity-grid{grid-template-columns:1fr}.bank-identity-card{padding:14px;border-radius:16px}.bank-identity-head h2{font-size:19px}.identity-item b{font-size:12px}.account-profile{min-width:0}.account-meta{min-width:0}.account-meta .meta-line{white-space:normal;word-break:break-word}.virtual-card{padding:9px}.visa-card{height:108px}.visa-card .number{font-size:10px}.modal-card-number{font-size:15px}.modal-detail-grid{gap:7px}.modal-detail-grid div{padding:9px}.header-left{min-width:0}.app-brand{min-width:0}.brand-word{font-size:23px}.app-brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.header-actions{flex:none}.notification-popover{position:fixed;right:10px;top:62px;width:min(320px,calc(100vw - 20px));max-height:65vh;overflow:auto}.round-icon{width:36px;height:36px}.back-btn{width:34px;height:34px}.account-dashboard .quick-actions{grid-template-columns:1fr 1fr!important}.account-dashboard .quick-action{min-height:84px;padding:9px}.account-dashboard .quick-action b{font-size:11px}.account-dashboard .quick-action span{font-size:8px}.account-dashboard .dark-card-head{gap:8px}.account-dashboard .dark-card-head a{font-size:10px}.account-dashboard .detail-item{margin-bottom:9px}.account-dashboard .detail-item .di-icon{width:29px;height:29px}.account-dashboard .detail-item b{font-size:11px}}
@media(min-width:601px) and (max-width:900px){.dashboard{margin-top:0;padding-top:14px}.mobile-app-header{padding-bottom:30px}.loan-form-grid{grid-template-columns:1fr 1fr}}

/* ===== FINAL MOBILE / PAGE HEADER POLISH ===== */
.page-top-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:22px 24px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);position:relative;overflow:hidden;animation:uiRise .45s ease both}.page-top-intro:after{content:"";position:absolute;width:170px;height:170px;right:-65px;top:-85px;border-radius:50%;background:radial-gradient(circle,#6e39ed18,transparent 68%);pointer-events:none}.page-top-intro>div{position:relative;z-index:1}.page-top-intro h1{margin:4px 0 5px;font-size:30px;letter-spacing:-.7px}.page-top-intro p{margin:0;color:var(--muted);font-size:14px}.page-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:850;color:#6443df}.page-top-intro .btn{position:relative;z-index:2;white-space:nowrap}.fd-page-intro{background:linear-gradient(135deg,#fff,#f5f3ff)}.loan-page-intro{background:linear-gradient(135deg,#fff,#f2f6ff)}.loan-application-intro{background:linear-gradient(135deg,#fff,#f4f2ff)}
/* FD: compact, clean mobile-first layout */
.fd-page-intro + .fd-balance{margin-top:0}.fd-balance{overflow:hidden}.fd-feature-actions .feature-tile{cursor:pointer}.fd-page-intro .btn{padding:10px 14px;font-size:12px}
/* Account must use a clean white theme while preserving dashboard identity */
.app-shell-account{background:#f6f8fc}.app-shell-account .mobile-app-header{background:linear-gradient(155deg,#fff 0%,#f8f9fd 100%);color:var(--ink);border-bottom:1px solid #e6eaf2}.app-shell-account .mobile-app-header:after{background:radial-gradient(ellipse at 30% 40%,#6e39ed12,transparent 65%)}.app-shell-account .brand-word{color:#151a42}.app-shell-account .brand-word span{color:#5b35dc}.app-shell-account .app-brand small{color:#68738e}.app-shell-account .back-btn,.app-shell-account .profile-btn{color:#26335d;background:#fff;border-color:#dfe4ef}.app-shell-account .icon-btn{color:#26335d}.app-shell-account .notif-dot{border-color:#fff}.app-shell-account .account-hero,.app-shell-account .account-balance,.app-shell-account .dark-card,.app-shell-account .quick-action{box-shadow:0 12px 32px rgba(26,35,95,.07)}.app-shell-account .dark-card{background:#fff;border:1px solid var(--line);color:var(--ink)}.app-shell-account .dark-card-head{background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}.app-shell-account .dark-card-body{background:#fff}.app-shell-account .detail-item{border-color:#e7eaf1}.app-shell-account .detail-item small,.app-shell-account .muted{color:var(--muted)}.app-shell-account .dark-btn{background:linear-gradient(90deg,var(--blue),var(--purple));color:#fff;border:0}.app-shell-account .account-balance{background:linear-gradient(135deg,#315af2,#5631d9);color:#fff}.app-shell-account .account-hero{background:#fff;color:var(--ink);border:1px solid var(--line)}
/* Never let page content slide underneath the header on any mobile breakpoint */
@media(max-width:900px){.dashboard{margin-top:0!important}.home-balance{margin-top:0}.page-top-intro{margin-top:0}}
@media(max-width:600px){
 body{overflow-x:hidden}.mobile-app-header{padding:12px 10px 22px}.app-header-row{gap:8px}.header-left{gap:7px;min-width:0}.app-brand{grid-template-columns:34px minmax(0,1fr);column-gap:6px;min-width:0}.brand-mark{width:34px;height:31px}.brand-mark:before{width:30px;height:7px}.brand-mark:after{left:9px;width:12px;height:23px;top:7px}.brand-word{font-size:22px;letter-spacing:-1px}.app-brand small{font-size:8px;max-width:150px;margin-top:2px}.header-actions{gap:3px}.round-icon{width:34px;height:34px}.back-btn{width:32px;height:32px}.notification-popover{top:50px;right:0;width:min(310px,calc(100vw - 18px))}
 .dashboard{width:100%;padding:10px 9px 82px!important}.dashboard .card{padding:12px;border-radius:14px}.page-top-intro{min-height:88px;padding:14px 13px;border-radius:15px;margin-bottom:10px;gap:9px}.page-top-intro h1{font-size:21px;line-height:1.15}.page-top-intro p{font-size:10px;line-height:1.4;max-width:235px}.page-eyebrow{font-size:8px}.page-top-intro .btn{font-size:9px;padding:9px 10px;border-radius:10px}
 .fd-balance{grid-template-columns:1fr!important;padding:0!important;border-radius:15px!important}.fd-main{padding:14px!important}.fd-main .amount{font-size:25px!important}.fd-stat{padding:8px 12px!important}.fd-stat span{font-size:9px}.fd-stat b{font-size:12px}.fd-feature-actions{grid-template-columns:repeat(2,1fr)!important;gap:6px!important}.fd-feature-actions .feature-tile{min-height:74px!important;padding:7px 4px!important;border-radius:11px}.fd-feature-actions .feature-tile b{font-size:9px}.fd-feature-actions .feature-tile span{font-size:7px;line-height:1.15}.fd-feature-actions .tile-icon{width:29px!important;height:29px!important}.fd-list-card{margin-top:9px}.fd-list-card .section-title h2{font-size:16px}.fd-list-card .fd-row{grid-template-columns:minmax(0,1fr) auto;padding:8px!important}.fd-list-card .fd-avatar{width:31px;height:31px}.fd-list-card .fd-info b{font-size:10px}.fd-list-card .amount-sm{font-size:12px}.fd-list-card .fd-meta{font-size:7px}.fd-list-card .fd-detail{grid-template-columns:1fr 1fr}.fd-list-card .detail-line{font-size:8px}.fd-list-card .detail-line b{font-size:9px}
 .loan-page-intro .btn{font-size:9px}.loan-status-grid{gap:8px}.loan-status-card{padding:11px!important;border-radius:14px!important}.loan-status-card .status-head b{font-size:12px}.loan-status-card .status-head small{font-size:8px}.loan-money{padding:9px 0}.loan-money strong{font-size:17px}.loan-meta{font-size:9px;padding:8px 0}.loan-status-card .pill{font-size:8px;padding:4px 7px}.offers{gap:8px}.offer{padding:13px!important;border-radius:14px!important}.offer h3{font-size:16px}.offer p,.offer li{font-size:9px}.offer .btn{font-size:10px;padding:9px}.loan-application-intro .btn{font-size:9px;padding:8px 9px}.loan-application-form-card{margin-top:8px}.loan-application-form-card .section-title h2{font-size:16px}.loan-application-form-card .section-title .muted{font-size:9px}.loan-application-form .field{margin-bottom:9px}.loan-application-form .field label{font-size:9px;margin-bottom:4px}.loan-application-form input,.loan-application-form select,.loan-application-form textarea{font-size:11px;padding:9px 10px;border-radius:9px}.loan-application-form textarea{min-height:72px}.loan-submit-note{padding:8px 9px;border-radius:10px}.loan-submit-note b{font-size:10px}.loan-submit-note small{font-size:8px}.loan-submit-btn{font-size:11px;padding:10px}
 .app-shell-account .mobile-app-header{padding-bottom:15px}.app-shell-account .dashboard{padding-top:8px!important}.app-shell-account .account-hero{padding:12px;border-radius:14px}.app-shell-account .account-profile{gap:7px}.app-shell-account .avatar-large{width:46px;height:46px}.app-shell-account .account-meta b{font-size:15px}.app-shell-account .account-meta .meta-line{font-size:8px}.app-shell-account .account-balance{padding:13px;border-radius:14px}.app-shell-account .account-balance .big{font-size:25px}.app-shell-account .quick-actions{gap:7px}.app-shell-account .quick-action{min-height:80px;padding:8px 5px;border-radius:12px}.app-shell-account .quick-action .qa-icon{width:34px;height:34px}.app-shell-account .quick-action b{font-size:10px}.app-shell-account .quick-action span{font-size:7px}.app-shell-account .dark-card{border-radius:13px}.app-shell-account .dark-card-head{padding:10px 11px}.app-shell-account .dark-card-body{padding:11px}.app-shell-account .detail-item{margin-bottom:9px}.app-shell-account .detail-item .di-icon{width:28px;height:28px}.app-shell-account .detail-item b{font-size:10px}.app-shell-account .bank-identity-card{padding:12px;border-radius:14px}.app-shell-account .bank-identity-head h2{font-size:17px}.app-shell-account .bank-identity-head p{font-size:8px}.app-shell-account .identity-item{padding:9px}.app-shell-account .identity-item span{font-size:7px}.app-shell-account .identity-item b{font-size:10px}.app-shell-account .virtual-card{padding:8px}.app-shell-account .visa-card{height:105px}
}


/* =========================================================
   FINAL MOBILE/UI POLISH - v5
   Keep normal readable text sizes; avoid over-compression.
   ========================================================= */
:root{
  --theme-primary:#5b45e6;
  --theme-primary-2:#3478f6;
  --theme-soft:#f1efff;
  --theme-blue-soft:#edf5ff;
  --theme-border:#e2e6f2;
}

/* page headers belong to page content, not the global header */
.page-top-intro{
  background:linear-gradient(135deg,#ffffff 0%,#f7f5ff 55%,#eef5ff 100%);
  border:1px solid #e1e5f2;
  box-shadow:0 12px 32px rgba(72,62,160,.09);
}
.page-top-intro h1{font-size:30px;font-weight:850;color:#172044}
.page-top-intro p{font-size:15px;line-height:1.55;color:#68738e}
.page-top-intro .btn{font-size:13px;padding:11px 16px}

/* FD: compact structure without tiny typography */
.fd-page-intro{margin-bottom:14px}
.fd-balance{box-shadow:0 14px 34px rgba(54,68,160,.10)}
.fd-feature-actions .feature-tile{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.fd-feature-actions .feature-tile:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(70,60,170,.12);border-color:#cfc9fa}
.fd-page-intro + .fd-balance{margin-top:0}
.fd-list-card,.fd-compact-card,.fd-page-intro,.loan-status-card,.offer,.loan-application-form-card{animation:uiRise .45s ease both}
.fd-list-card .fd-info b{font-size:15px}
.fd-list-card .fd-meta{font-size:12px}
.fd-list-card .detail-line{font-size:12px}
.fd-list-card .detail-line b{font-size:13px}
.fd-list-card .amount-sm{font-size:17px}
.fd-list-card .fd-row{min-height:82px}
#open-fd .section-title h2{font-size:23px}
#open-fd .field label{font-size:14px}
#open-fd .field input,#open-fd .field select{font-size:15px;min-height:46px}

/* Consistent attractive native select */
.field select{
  appearance:auto;
  -webkit-appearance:auto;
  min-height:46px;
  font-size:15px;
  color:#182044;
  background-color:#fff;
}

/* Loans: normal readable content on mobile */
.loan-page-intro{margin-bottom:14px}
.loan-status-grid{display:grid;gap:14px}
.loan-status-card{background:#fff;border:1px solid #e0e5f1;box-shadow:0 10px 28px rgba(35,49,110,.08);transition:transform .2s ease,box-shadow .2s ease}
.loan-status-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(35,49,110,.12)}
.loan-status-card .status-head b{font-size:17px}
.loan-status-card .status-head small{font-size:12px}
.loan-money span{font-size:13px}
.loan-money strong{font-size:22px}
.loan-meta{font-size:13px}
.loan-status-card .pill{font-size:11px;padding:6px 9px}
.loan-status-card .btn{font-size:14px;padding:11px 14px}
.offer h3{font-size:18px}
.offer p,.offer li{font-size:13px}
.offer .btn{font-size:13px}

/* Loan application */
.loan-application-intro h1{font-size:30px}
.loan-application-form-card{box-shadow:0 14px 34px rgba(54,68,160,.09)}
.loan-application-form-card h2{font-size:23px}
.loan-application-form .field label{font-size:14px}
.loan-application-form input,.loan-application-form select,.loan-application-form textarea{font-size:15px;min-height:46px}
.loan-application-form textarea{min-height:105px}
.loan-application-form .field small{font-size:11px}
.loan-submit-note b{font-size:13px}
.loan-submit-note small{font-size:11px}
.loan-submit-btn{font-size:14px;padding:12px 18px}

/* Account: WHITE base + dashboard blue/purple accents, never navy */
.app-shell-account{background:#f7f8fd;color:#172044}
.app-shell-account .mobile-app-header{background:linear-gradient(135deg,#4b3ccf 0%,#356de8 100%);padding-bottom:26px}
.app-shell-account .mobile-app-header:after{opacity:.25}
.app-shell-account .app-brand small{color:#eef1ff}
.app-shell-account .account-dashboard{background:transparent}
.app-shell-account .account-hero,
.app-shell-account .account-balance,
.app-shell-account .quick-action,
.app-shell-account .dark-card,
.app-shell-account .account-mini,
.app-shell-account .bank-identity-card{color:#172044}
.app-shell-account .account-hero{background:#fff;border:1px solid #e1e5f2;box-shadow:0 12px 32px rgba(53,65,145,.09)}
.app-shell-account .avatar-large{background:linear-gradient(145deg,#6348e9,#397cf1);border-color:#bfcaff}
.app-shell-account .account-meta b{color:#172044}
.app-shell-account .account-meta .meta-line{color:#69748e}
.app-shell-account .account-balance{background:linear-gradient(135deg,#4c43df,#3976ee);box-shadow:0 18px 38px rgba(67,70,220,.22)}
.app-shell-account .account-balance .small{color:#eef1ff}
.app-shell-account .quick-action{background:#fff;border:1px solid #e1e5f2;box-shadow:0 10px 25px rgba(40,55,120,.07);transition:transform .2s ease,box-shadow .2s ease}
.app-shell-account .quick-action:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(40,55,120,.12)}
.app-shell-account .quick-action b{color:#172044}
.app-shell-account .quick-action span{color:#75809a}
.app-shell-account .dark-card{background:#fff;border:1px solid #e1e5f2;box-shadow:0 10px 28px rgba(40,55,120,.07)}
.app-shell-account .dark-card-head{border-bottom:1px solid #e8ebf3}
.app-shell-account .dark-card-head b{color:#172044}
.app-shell-account .dark-card-body{color:#172044}
.app-shell-account .detail-item .di-icon{background:#eef2ff;color:#5a45dc}
.app-shell-account .detail-item small{color:#7b8499}
.app-shell-account .detail-item b{color:#172044}
.app-shell-account .dark-btn{background:linear-gradient(90deg,#5b45e6,#3478f6);border:0;color:#fff;box-shadow:0 8px 20px rgba(74,65,205,.18)}
.app-shell-account .bank-identity-card{background:linear-gradient(135deg,#fff,#f5f4ff);border:1px solid #dddff1;box-shadow:0 12px 30px rgba(63,56,145,.09)}
.app-shell-account .bank-identity-head h2{color:#172044}
.app-shell-account .bank-identity-head p{color:#6d7890}
.app-shell-account .identity-item{background:#fff;border-color:#e2e6f1}
.app-shell-account .identity-item span{color:#78839b}
.app-shell-account .identity-item b{color:#172044}
.app-shell-account .identity-copy{background:#eef2ff;color:#5642d5;border-color:#dfe4ff}
.app-shell-account .identity-transfer{color:#4d43d7}
.app-shell-account .virtual-card{background:#fff}
.app-shell-account .visa-card{background:linear-gradient(145deg,#5a3de1,#3478ef);box-shadow:0 14px 28px rgba(55,67,170,.20)}
.app-shell-account .virtual-info b{color:#172044}
.app-shell-account .virtual-info p{color:#75809a}
.app-shell-account .limits{border-color:#e5e8f1}
.app-shell-account .limit-row{color:#59657e}
.app-shell-account .limit-row b{color:#172044}
.app-shell-account .limit-row span{color:#7c879c}
.app-shell-account .account-mini{background:#fff;border-color:#e1e5f2;box-shadow:0 9px 23px rgba(40,55,120,.06)}
.app-shell-account .account-mini span{color:#75809a}
.app-shell-account .account-mini .am-icon{background:#eef2ff;color:#5a45dc}
.app-shell-account .address-row{color:#172044}
.app-shell-account .address-row b{color:#172044}
.app-shell-account .address-row span{color:#75809a}
.app-shell-account .address-row .location{background:#eef2ff;color:#5a45dc}
.app-shell-account .bottomnav{background:rgba(255,255,255,.98);border-top-color:#e1e5f2}
.app-shell-account .bottomnav a{color:#69748d}
.app-shell-account .bottomnav a.active{color:#5a45df}

/* Remove the old compressed account styling from earlier rules */
.app-shell-account .quick-action b{font-size:14px}
.app-shell-account .quick-action span{font-size:11px}
.app-shell-account .account-mini b{font-size:14px}
.app-shell-account .account-mini span{font-size:12px}

/* Header/content separation: page content starts below header, no overlay */
@media(max-width:900px){
  .dashboard{margin-top:0!important;position:relative;z-index:1}
  .mobile-app-header{z-index:5}
}

@media(max-width:600px){
  body{font-size:16px}
  .mobile-app-header{padding:13px 12px 24px}
  .app-header-row{align-items:center}
  .header-left{gap:9px}
  .app-brand{grid-template-columns:40px auto}
  .brand-mark{width:40px;height:36px}
  .brand-word{font-size:24px;letter-spacing:-.8px}
  .app-brand small{font-size:11px}
  .round-icon{width:38px;height:38px}
  .dashboard{width:100%;padding:12px 12px 90px!important;margin:0!important}

  /* readable page titles and descriptions */
  .page-top-intro{min-height:auto;padding:16px 15px;border-radius:16px;margin-bottom:13px;gap:12px}
  .page-top-intro h1{font-size:26px;line-height:1.18;margin:4px 0 6px}
  .page-top-intro p{font-size:14px;line-height:1.45;max-width:none}
  .page-eyebrow{font-size:10px}
  .page-top-intro .btn{font-size:13px;padding:10px 12px;white-space:nowrap}

  /* FD normal mobile sizing */
  .fd-page-intro{display:flex;align-items:center}
  .fd-page-intro>div{min-width:0}
  .fd-page-intro .btn{flex:none}
  .fd-balance{display:grid!important;grid-template-columns:1fr!important;border-radius:16px!important;padding:0!important}
  .fd-main{padding:17px!important}
  .fd-main .amount{font-size:30px!important}
  .fd-main>div:first-child{font-size:14px!important}
  .fd-main .growth{font-size:13px!important}
  .fd-stat{padding:12px 14px!important}
  .fd-stat span{font-size:12px!important}
  .fd-stat b{font-size:16px!important}
  .fd-feature-actions{grid-template-columns:repeat(2,1fr)!important;gap:9px!important}
  .fd-feature-actions .feature-tile{min-height:100px!important;padding:13px 10px!important;border-radius:14px}
  .fd-feature-actions .feature-tile b{font-size:13px!important}
  .fd-feature-actions .feature-tile span{font-size:11px!important;line-height:1.3}
  .fd-feature-actions .tile-icon{width:38px!important;height:38px!important}
  .fd-list-card{margin-top:12px}
  .fd-list-card .section-title h2{font-size:20px}
  .fd-list-card .fd-row{grid-template-columns:1fr;gap:10px;padding:13px!important}
  .fd-list-card .fd-avatar{width:38px;height:38px}
  .fd-list-card .fd-info b{font-size:14px}
  .fd-list-card .amount-sm{font-size:17px}
  .fd-list-card .fd-meta{font-size:11px}
  .fd-list-card .fd-detail{grid-template-columns:1fr 1fr}
  .fd-list-card .detail-line{font-size:11px}
  .fd-list-card .detail-line b{font-size:12px}
  #open-fd{margin-top:12px}
  #open-fd .section-title{align-items:flex-start;gap:10px}
  #open-fd .section-title h2{font-size:21px}
  #open-fd .section-title .label{font-size:12px}
  #open-fd .field label{font-size:14px}
  #open-fd .field input,#open-fd .field select{font-size:15px;min-height:46px;padding:11px 12px}

  /* Loans readable */
  .loan-page-intro{display:flex}
  .loan-page-intro h1{font-size:26px}
  .loan-page-intro p{font-size:14px}
  .loan-page-intro .btn{font-size:13px;padding:10px 12px}
  .loan-status-grid{gap:11px}
  .loan-status-card{padding:15px!important;border-radius:15px!important}
  .loan-status-card .status-head{gap:8px}
  .loan-status-card .status-head b{font-size:16px}
  .loan-status-card .status-head small{font-size:11px}
  .loan-status-card .pill{font-size:10px;padding:5px 8px}
  .loan-money{padding:11px 0}
  .loan-money span{font-size:12px}
  .loan-money strong{font-size:21px}
  .loan-meta{font-size:12px;padding:9px 0}
  .loan-status-card .btn{font-size:14px;padding:11px 13px}
  .offers{grid-template-columns:1fr!important;gap:11px}
  .offer{padding:16px!important;border-radius:15px!important;min-height:240px}
  .offer h3{font-size:18px}
  .offer p,.offer li{font-size:12px;line-height:1.55}
  .offer .btn{font-size:13px;padding:10px 12px}
  .section-card h2{font-size:20px}
  .section-card .muted{font-size:13px;line-height:1.45}
  .two{grid-template-columns:1fr}
  .section-card .field label{font-size:14px}
  .section-card .field input,.section-card .field select{font-size:15px;min-height:46px}

  /* Loan application readable */
  .loan-application-intro{display:flex}
  .loan-application-intro h1{font-size:26px}
  .loan-application-intro p{font-size:14px}
  .loan-application-intro .btn{font-size:13px;padding:10px 11px}
  .loan-application-form-card{padding:15px!important;border-radius:16px!important}
  .loan-application-form-card .section-title h2{font-size:21px}
  .loan-application-form-card .section-title .muted{font-size:12px}
  .loan-application-form{max-width:none}
  .loan-application-form .field{margin-bottom:13px}
  .loan-application-form .field label{font-size:14px;margin-bottom:6px}
  .loan-application-form input,.loan-application-form select,.loan-application-form textarea{font-size:15px!important;padding:11px 12px!important;min-height:46px;border-radius:11px}
  .loan-application-form textarea{min-height:100px}
  .loan-application-form .field small{font-size:11px}
  .loan-submit-note{padding:11px 12px}
  .loan-submit-note b{font-size:13px}
  .loan-submit-note small{font-size:11px;line-height:1.4}
  .loan-submit-btn{width:100%;font-size:14px;padding:12px 14px}

  /* Account white dashboard-theme */
  .app-shell-account .account-dashboard{padding-top:12px!important}
  .app-shell-account .account-hero{padding:15px;border-radius:16px}
  .app-shell-account .account-profile{gap:10px}
  .app-shell-account .avatar-large{width:52px;height:52px}
  .app-shell-account .account-meta b{font-size:18px}
  .app-shell-account .account-meta .meta-line{font-size:11px;line-height:1.4}
  .app-shell-account .account-balance{margin-top:12px;padding:18px;border-radius:16px}
  .app-shell-account .account-balance .big{font-size:31px}
  .app-shell-account .wallet-side{display:none}
  .app-shell-account .quick-actions{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .app-shell-account .quick-action{min-height:104px;padding:12px}
  .app-shell-account .quick-action .qa-icon{width:42px;height:42px;margin-bottom:7px}
  .app-shell-account .quick-action b{font-size:13px}
  .app-shell-account .quick-action span{font-size:10px;line-height:1.3}
  .app-shell-account .dark-card{margin-top:12px;border-radius:16px}
  .app-shell-account .dark-card-head{padding:14px}
  .app-shell-account .dark-card-head b{font-size:15px}
  .app-shell-account .dark-card-head a{font-size:12px}
  .app-shell-account .dark-card-body{padding:14px}
  .app-shell-account .account-details-grid{grid-template-columns:1fr}
  .app-shell-account .account-detail-col{padding:0}
  .app-shell-account .account-detail-col:first-child{border-right:0;border-bottom:1px solid #e7eaf2;padding-bottom:10px;margin-bottom:10px}
  .app-shell-account .account-detail-col:last-child{padding:0}
  .app-shell-account .detail-item{margin-bottom:12px}
  .app-shell-account .detail-item .di-icon{width:34px;height:34px}
  .app-shell-account .detail-item small{font-size:11px}
  .app-shell-account .detail-item b{font-size:13px}
  .app-shell-account .bank-identity-card{padding:15px;border-radius:16px;margin-top:12px}
  .app-shell-account .bank-identity-head h2{font-size:20px}
  .app-shell-account .bank-identity-head p{font-size:12px;line-height:1.45}
  .app-shell-account .bank-identity-grid{grid-template-columns:1fr}
  .app-shell-account .identity-item{padding:12px}
  .app-shell-account .identity-item span{font-size:11px}
  .app-shell-account .identity-item b{font-size:14px}
  .app-shell-account .virtual-card{grid-template-columns:1fr;padding:14px;gap:13px}
  .app-shell-account .visa-card{height:145px}
  .app-shell-account .visa-card .number{font-size:13px}
  .app-shell-account .virtual-info b{font-size:15px}
  .app-shell-account .virtual-info p{font-size:12px}
  .app-shell-account .limits{border-left:0;border-top:1px solid #e7eaf2;padding:12px 0 0}
  .app-shell-account .account-mini-grid{grid-template-columns:1fr;gap:9px;margin-top:12px}
  .app-shell-account .account-mini{padding:13px}
  .app-shell-account .account-mini b{font-size:13px}
  .app-shell-account .account-mini span{font-size:11px}
  .app-shell-account .address-row{align-items:flex-start}
}

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


/* FINAL ACCOUNT/USER MOBILE OVERRIDES */
.app-shell-account .mobile-app-header{background:linear-gradient(135deg,#4b3ccf 0%,#356de8 100%)!important;color:#fff!important}
.app-shell-account .brand-word{color:#fff!important}.app-shell-account .brand-word span{color:#cfc5ff!important}.app-shell-account .app-brand small{color:#eef1ff!important}
.app-shell-account .account-active-badge{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.2}
.app-shell-account .account-meta{min-width:0;flex:1}.app-shell-account .account-meta .meta-line{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.app-shell-account .account-hero,.app-shell-account .account-balance,.app-shell-account .quick-action,.app-shell-account .dark-card,.app-shell-account .bank-identity-card,.app-shell-account .account-mini{background:#fff!important;color:#172044!important}
.app-shell-account .account-balance{background:linear-gradient(135deg,#315af2,#5631d9)!important;color:#fff!important}
.app-shell-account .dark-card-head,.app-shell-account .dark-card-body{background:#fff!important;color:#172044!important}
.app-shell-account .bottomnav{background:rgba(255,255,255,.98)!important;color:#69748d!important}
.app-shell-account .bottomnav a{color:#69748d!important}.app-shell-account .bottomnav a.active{color:#5a45df!important}
.app-shell-account .virtual-card{background:#fff!important}.app-shell-account .visa-card{background:linear-gradient(145deg,#5a3de1,#3478ef)!important}
.app-shell-account .card-detail-dialog{background:#fff!important;color:#172044!important}
@media(max-width:600px){
 .app-shell-account .mobile-app-header{padding:12px 11px 28px!important}
 .app-shell-account .dashboard{padding:12px 12px 88px!important}
 .app-shell-account .account-profile{align-items:flex-start;gap:10px}
 .app-shell-account .avatar-large{width:50px;height:50px;flex:none}
 .app-shell-account .account-meta b{font-size:18px!important;line-height:1.25}
 .app-shell-account .account-meta .meta-line{font-size:11px!important}
 .app-shell-account .account-active-badge{margin-top:5px;font-size:10px;padding:5px 7px}
 .app-shell-account .quick-action{min-height:94px!important;padding:11px 8px!important}
 .app-shell-account .quick-action b{font-size:13px!important}.app-shell-account .quick-action span{font-size:10px!important}
 .app-shell-account .dark-card-head b{font-size:14px!important}.app-shell-account .dark-card-head a{font-size:12px!important}
 .app-shell-account .detail-item b{font-size:12px!important}.app-shell-account .detail-item small{font-size:10px!important}
 .app-shell-account .bank-identity-head h2{font-size:20px!important}.app-shell-account .bank-identity-head p{font-size:12px!important}
 .app-shell-account .identity-item span{font-size:10px!important}.app-shell-account .identity-item b{font-size:14px!important;letter-spacing:.4px}
 .app-shell-account .virtual-card{gap:12px!important}.app-shell-account .visa-card{height:125px!important}.app-shell-account .visa-card .number{font-size:11px!important;letter-spacing:1px}
}


/* =========================================================
   FINAL SERIES FIX v7 - Account/header consistency + readable mobile UI
   ========================================================= */
.app-shell-account{background:var(--bg)!important;min-height:100vh}
/* Account uses the exact same global header treatment as Dashboard. */
.app-shell-account .mobile-app-header{
  background:linear-gradient(155deg,#0a0f42 0%,#16135d 56%,#24188d 100%)!important;
  color:#fff!important;border:0!important;
}
.app-shell-account .mobile-app-header:after{background:radial-gradient(ellipse at 30% 40%,#4536c7aa,transparent 65%)!important}
.app-shell-account .brand-word{color:#fff!important}
.app-shell-account .brand-word span{color:#7444ff!important}
.app-shell-account .app-brand small{color:#c9cdf1!important}
.app-shell-account .profile-btn,.app-shell-account .icon-btn{color:#fff!important}
.app-shell-account .profile-btn{background:#ffffff18!important;border-color:#ffffff22!important}
.app-shell-account .back-btn{display:none!important}
/* Keep account content on the dashboard background; cards provide the white surfaces. */
.app-shell-account .dashboard{background:transparent!important}
.app-shell-account .account-hero,
.app-shell-account .dark-card,
.app-shell-account .quick-action,
.app-shell-account .bank-identity-card,
.app-shell-account .account-mini{background:#fff!important;color:var(--ink)!important;border-color:var(--line)!important}
.app-shell-account .account-balance{background:linear-gradient(135deg,#2757f4,#4323d6)!important;color:#fff!important}
.app-shell-account .dark-card-head,.app-shell-account .dark-card-body{background:#fff!important;color:var(--ink)!important}
.app-shell-account .bottomnav{background:rgba(255,255,255,.97)!important;color:#69748d!important}
.app-shell-account .bottomnav a{color:#69748d!important}
.app-shell-account .bottomnav a.active{color:#5a45df!important}
.app-shell-account .virtual-card{background:#fff!important}
.app-shell-account .visa-card{background:linear-gradient(145deg,#5a3de1,#3478ef)!important}
.app-shell-account .card-detail-dialog{background:#fff!important;color:var(--ink)!important}
.app-shell-account .account-profile{min-width:0}
.app-shell-account .account-meta{min-width:0;overflow:visible}
.app-shell-account .account-meta>b{display:inline-block;max-width:100%;vertical-align:middle;font-size:18px;line-height:1.3}
.app-shell-account .account-active-badge{display:inline-flex!important;vertical-align:middle;white-space:nowrap!important;max-width:100%;line-height:1.15!important;margin:0 0 0 6px}
.app-shell-account .meta-line{overflow-wrap:anywhere;word-break:break-word}
.app-shell-account .modal-detail-grid b{word-break:break-all;overflow-wrap:anywhere}
@media(max-width:600px){
  .app-shell-account .mobile-app-header{padding:12px 10px 72px!important}
  .app-shell-account .dashboard{width:100%;padding:0 10px 86px!important;margin:-40px auto 0!important}
  .app-shell-account .account-hero{padding:15px!important;border-radius:16px!important}
  .app-shell-account .account-profile{gap:10px!important}
  .app-shell-account .avatar-large{width:50px!important;height:50px!important}
  .app-shell-account .account-meta>b{font-size:17px!important}
  .app-shell-account .account-active-badge{font-size:11px!important;padding:5px 7px!important;margin-top:4px!important}
  .app-shell-account .account-meta .meta-line{font-size:11px!important;line-height:1.45!important}
  .app-shell-account .quick-actions{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .app-shell-account .quick-action{min-height:98px!important;padding:12px 9px!important}
  .app-shell-account .quick-action b{font-size:13px!important}
  .app-shell-account .quick-action span{font-size:11px!important;line-height:1.35!important}
  .app-shell-account .detail-item small{font-size:11px!important}
  .app-shell-account .detail-item b{font-size:13px!important;line-height:1.35!important}
  .app-shell-account .identity-item span{font-size:11px!important}
  .app-shell-account .identity-item b{font-size:14px!important;line-height:1.4!important}
  .app-shell-account .virtual-card .number{font-size:13px!important;letter-spacing:1px!important}
}

/* ===== ACCOUNT FINAL THEME FIX =====
   Account must use the EXACT same global Dashboard header/navigation.
   Only the account CONTENT gets its own card treatment. */
.app-shell-account{background:linear-gradient(180deg,#eef2ff 0%,#f7f8fd 28%,#f7f8fd 100%)!important;color:var(--ink)!important}
.app-shell-account .mobile-app-header{background:linear-gradient(155deg,#0a0f42 0%,#16135d 56%,#24188d 100%)!important;color:#fff!important;border-bottom:0!important;padding:24px max(18px,calc((100vw - 1180px)/2 + 22px)) 72px!important}
.app-shell-account .mobile-app-header:after{opacity:1!important;background:radial-gradient(ellipse at 30% 40%,#4536c7aa,transparent 65%)!important}
.app-shell-account .brand-word{color:#fff!important}
.app-shell-account .brand-word span{color:#7444ff!important}
.app-shell-account .app-brand small{color:#c9cdf1!important}
.app-shell-account .round-icon{color:#fff!important}
.app-shell-account .back-btn{background:#ffffff12!important;border:1px solid #ffffff20!important}
.app-shell-account .profile-btn{background:#ffffff18!important;border:1px solid #ffffff22!important}
.app-shell-account .icon-btn{background:transparent!important;color:#fff!important}
.app-shell-account .dashboard{background:transparent!important;color:var(--ink)!important}

/* Account content: attractive Dashboard-style surfaces, not a blank white page */
.app-shell-account .account-hero{background:linear-gradient(135deg,#ffffff 0%,#f5f4ff 100%)!important;border:1px solid #dfe3f2!important;box-shadow:0 14px 34px rgba(42,55,130,.10)!important}
.app-shell-account .account-balance{background:linear-gradient(135deg,#2b55ee 0%,#3436dd 50%,#5728d7 100%)!important;color:#fff!important}
.app-shell-account .quick-action{background:rgba(255,255,255,.96)!important;border:1px solid #e0e5f3!important;color:var(--ink)!important}
.app-shell-account .dark-card{background:linear-gradient(135deg,#ffffff 0%,#f8f8ff 100%)!important;border:1px solid #dfe3f2!important;color:var(--ink)!important;box-shadow:0 12px 30px rgba(42,55,130,.08)!important}
.app-shell-account .dark-card-head,.app-shell-account .dark-card-body{background:transparent!important;color:var(--ink)!important}
.app-shell-account .bank-identity-card{background:linear-gradient(135deg,#eef2ff 0%,#f7f3ff 100%)!important;border:1px solid #d9def2!important}
.app-shell-account .account-mini{background:#fff!important;border:1px solid #e0e5f3!important}
.app-shell-account .bottomnav{background:rgba(255,255,255,.97)!important;border-top-color:var(--line)!important}
.app-shell-account .bottomnav a{color:#69738b!important}
.app-shell-account .bottomnav a.active{color:#4c2ce3!important}

/* Never inherit the old compressed/blank-account rules */
@media(max-width:900px){
  .app-shell-account .mobile-app-header{padding:13px 12px 24px!important}
  .app-shell-account .dashboard{width:100%!important;padding:12px 12px 90px!important;margin:0!important;position:relative!important;z-index:3!important}
}
@media(max-width:600px){
  .app-shell-account .mobile-app-header{padding:13px 12px 24px!important}
  .app-shell-account .dashboard{padding:12px 12px 90px!important;margin:0!important}
  .app-shell-account .account-hero{margin-top:0!important}
  .app-shell-account .account-profile{align-items:center!important}
  .app-shell-account .account-meta{flex:1;min-width:0}
  .app-shell-account .account-meta>b{font-size:18px!important;line-height:1.3!important}
  .app-shell-account .account-active-badge{font-size:11px!important;white-space:nowrap!important}
  .app-shell-account .account-meta .meta-line{font-size:11px!important;line-height:1.45!important}
  .app-shell-account .account-balance .big{font-size:31px!important}
  .app-shell-account .quick-action b{font-size:13px!important}
  .app-shell-account .quick-action span{font-size:11px!important}
  .app-shell-account .detail-item small{font-size:11px!important}
  .app-shell-account .detail-item b{font-size:13px!important}
  .app-shell-account .identity-item span{font-size:11px!important}
  .app-shell-account .identity-item b{font-size:14px!important}
}

/* ===== ACCOUNT PROFILE DETAILS / LOGOUT ===== */
.profile-summary-card{position:relative;overflow:visible!important}
.profile-summary-toggle{width:100%;display:flex;align-items:center;gap:14px;border:0;background:transparent;text-align:left;padding:0;color:inherit;cursor:pointer}
.profile-name-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.profile-name-row>b{font-size:19px}
.profile-arrow{transition:transform .25s ease}
.profile-summary-card.expanded .profile-arrow{transform:rotate(90deg)}
.profile-details-panel{margin-top:16px;padding:18px;border-top:1px solid #e1e5f2;background:rgba(245,247,255,.85);border-radius:14px;animation:profileReveal .25s ease}
.profile-detail-title{font-size:17px;font-weight:800;margin-bottom:12px}
.profile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-detail-grid>div{background:#fff;border:1px solid #e2e6f1;border-radius:12px;padding:11px 12px;min-width:0}
.profile-detail-grid small{display:block;color:#71809a;font-size:12px;margin-bottom:4px}
.profile-detail-grid b{display:block;font-size:14px;overflow-wrap:anywhere}
.name-verified-text{color:#16834b!important}
.profile-logout{margin-top:14px;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:11px;background:#fff0f1;color:#c6283b!important;border:1px solid #ffd5da;font-weight:800;text-decoration:none}
@keyframes profileReveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(max-width:600px){.profile-summary-toggle{gap:10px}.profile-name-row>b{font-size:17px}.profile-details-panel{padding:14px}.profile-detail-grid{grid-template-columns:1fr;gap:9px}.profile-detail-grid>div{padding:10px}.profile-logout{width:100%;justify-content:center}}
/* Wallet page: centered bottom Wallet navigation + wallet overview/card */
.bottomnav-five{grid-template-columns:repeat(5,1fr)!important}.bottomnav-five .wallet-nav-item{position:relative;margin-top:-24px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}.bottomnav-five .wallet-nav-circle{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--blue),var(--purple));border:5px solid #fff;box-shadow:0 8px 24px rgba(54,45,190,.3)}.bottomnav-five .wallet-nav-item span:last-child{font-size:11px;font-weight:800}.wallet-overview-card,.wallet-card-section,.wallet-account-box{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);margin-bottom:18px}.wallet-overview-card{overflow:hidden;background:linear-gradient(145deg,#fff,#f5f7ff)}.wallet-user{padding:22px;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line)}.wallet-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e9edff;color:#4b35d4}.wallet-user>div:nth-child(2){min-width:0;flex:1}.wallet-user span{font-size:12px;color:var(--muted)}.wallet-user h1{margin:2px 0 2px;font-size:22px}.wallet-user small{font-size:12px;color:var(--muted)}.wallet-verified{color:#087c59!important;font-weight:800!important;white-space:nowrap}.wallet-balance{padding:24px;background:linear-gradient(135deg,#315af2,#5631d9);color:#fff}.wallet-balance span,.wallet-balance small{display:block;opacity:.85;font-size:13px}.wallet-balance strong{display:block;font-size:38px;margin:6px 0}.wallet-stat-grid{display:grid;grid-template-columns:1fr 1fr}.wallet-stat-grid>div{padding:18px 20px}.wallet-stat-grid>div+div{border-left:1px solid var(--line)}.wallet-stat-grid span,.wallet-card-info span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.wallet-stat-grid b{font-size:20px}.wallet-card-section,.wallet-account-box{padding:20px}.wallet-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.wallet-section-head h2{margin:3px 0 0;font-size:20px}.wallet-card-layout{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:22px;align-items:center}.wallet-visa-card{width:100%;height:220px}.wallet-card-info{display:grid;gap:13px}.wallet-card-info>div{padding:12px 14px;border:1px solid var(--line);border-radius:14px}.wallet-card-info b{font-size:15px;word-break:break-all}.wallet-view-card{border:0;border-radius:13px;padding:13px 16px;background:linear-gradient(90deg,var(--blue),var(--purple));color:#fff;font-weight:800}.wallet-account-number{display:flex;align-items:center;gap:10px}.wallet-account-number b{font-size:25px;letter-spacing:1px;word-break:break-all;flex:1}.wallet-account-number button{border:0;border-radius:10px;padding:10px 14px;background:#e8edff;color:#3153cf;font-weight:800}.wallet-account-box p{color:var(--muted);font-size:13px;margin:10px 0 0}
@media(max-width:600px){.bottomnav-five .wallet-nav-circle{width:50px;height:50px;border-width:4px}.bottomnav-five .wallet-nav-item{margin-top:-18px}.bottomnav-five a span:last-child{font-size:9px}.wallet-user{padding:16px}.wallet-user h1{font-size:18px}.wallet-verified{font-size:10px!important}.wallet-balance{padding:19px}.wallet-balance strong{font-size:30px}.wallet-stat-grid b{font-size:16px}.wallet-stat-grid>div{padding:15px 13px}.wallet-card-section,.wallet-account-box{padding:15px;border-radius:17px}.wallet-card-layout{grid-template-columns:1fr;gap:16px}.wallet-visa-card{height:190px}.wallet-account-number{align-items:flex-start;flex-direction:column}.wallet-account-number b{font-size:20px}.wallet-account-number button{width:100%}}

/* v13: Card number grouped as 4-digit blocks */
.wallet-visa-card .number,.modal-card-number{white-space:nowrap;word-spacing:0;letter-spacing:2px;font-variant-numeric:tabular-nums}.wallet-card-info b{letter-spacing:1px;font-variant-numeric:tabular-nums}.modal-card-number{word-spacing:6px}
@media(max-width:600px){.wallet-visa-card .number{font-size:10px;letter-spacing:1.5px}.modal-card-number{font-size:15px;letter-spacing:1.5px;word-spacing:4px}}

/* =====================================================================
   ADMIN THEME v2 — New Design System (scoped under .admin-layout so the
   public/user experience is untouched). Also styles the admin loading
   overlay + toast host which live outside .admin-layout in _head.php.
   ===================================================================== */
.admin-layout{
  --a-bg:#f3f5fb;--a-card:#ffffff;--a-line:#e7eaf4;--a-ink:#151a35;--a-muted:#6b7290;
  --a-accent:#5b5ff3;--a-accent2:#8b5cf6;--a-accent-soft:#eef0ff;
  --a-green:#0fa968;--a-green-soft:#e4f9ef;--a-red:#e0304b;--a-red-soft:#fde7ea;
  --a-orange:#e08a1f;--a-orange-soft:#fdf1de;--a-blue:#2f6fed;--a-blue-soft:#e8f0ff;
  --a-radius:16px;--a-radius-lg:22px;--a-shadow:0 10px 30px rgba(23,28,68,.07);--a-shadow-lg:0 20px 55px rgba(19,23,63,.14);
  background:var(--a-bg);display:grid;grid-template-columns:264px minmax(0,1fr);min-height:100vh;align-items:start;
}
.admin-layout *{box-sizing:border-box}

/* ---------- sidebar ---------- */
.admin-layout .sidebar{width:264px;padding:20px 16px;position:sticky;top:0;height:100vh;overflow-y:auto;
  background:linear-gradient(190deg,#100c33 0%,#171341 45%,#241458 100%);
  border-right:1px solid #ffffff0f;box-shadow:16px 0 40px rgba(6,8,35,.16)}
.admin-layout .sidebrand{display:flex;align-items:center;gap:11px;margin:4px 6px 22px;font-size:18px;font-weight:800;color:#fff}
.admin-layout .sidebrand small{display:block;font-size:10.5px;font-weight:600;color:#a7b0e6;letter-spacing:.04em;margin-top:2px}
.admin-layout .admin-logo{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-weight:900;font-size:18px;color:#fff;
  background:linear-gradient(150deg,var(--a-accent),var(--a-accent2));box-shadow:0 8px 18px rgba(91,95,243,.45)}
.admin-layout .side{display:flex;flex-direction:column;gap:2px}
.admin-layout .side a{display:flex;align-items:center;gap:11px;padding:10.5px 13px;border-radius:12px;color:#b7bde3;
  font-size:13px;font-weight:650;letter-spacing:.01em;border:1px solid transparent;transition:background .15s ease,color .15s ease,transform .1s ease}
.admin-layout .side a .svg-icon{width:18px;height:18px;opacity:.85;flex:none}
.admin-layout .side a:hover{background:#ffffff0f;color:#fff}
.admin-layout .side a.active{background:linear-gradient(90deg,rgba(91,95,243,.35),rgba(139,92,246,.16));
  color:#fff;border-color:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.admin-layout .side a.active .svg-icon{opacity:1}
.admin-layout .side a[href="logout.php"]{margin-top:10px;border-top:1px solid #ffffff14;padding-top:14px;border-radius:0;color:#ff9aa8}
.admin-layout .side a[href="logout.php"]:hover{background:transparent;color:#ff5c74}

/* ---------- main / topbar ---------- */
.admin-layout .admin-main{min-width:0;padding:26px 30px 60px;background:var(--a-bg)}
.admin-layout .admin-top{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:22px;
  padding-bottom:18px;border-bottom:1px solid var(--a-line)}
.admin-layout .admin-top h1{margin:0 0 4px;font-size:23px;font-weight:800;letter-spacing:-.4px;color:var(--a-ink)}
.admin-layout .admin-top .muted{color:var(--a-muted);font-size:13px;margin:0}
.admin-layout .admin-mobilebar{background:var(--a-card);border:1px solid var(--a-line);box-shadow:var(--a-shadow)}
.admin-layout .admin-mobilebar b{color:var(--a-ink)}

/* ---------- cards / surfaces ---------- */
.admin-layout .card{background:var(--a-card);border:1px solid var(--a-line);border-radius:var(--a-radius-lg);
  box-shadow:var(--a-shadow);padding:20px 22px}
.admin-layout .card h2{font-size:16px;margin:0 0 14px;letter-spacing:-.2px;color:var(--a-ink)}
.admin-layout .card h3{font-size:14px;color:var(--a-ink)}

/* ---------- stat grid ---------- */
.admin-layout .statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.admin-layout .stat{position:relative;background:var(--a-card);border:1px solid var(--a-line);border-radius:var(--a-radius);
  padding:16px 18px;box-shadow:var(--a-shadow);overflow:hidden}
.admin-layout .stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,var(--a-accent),var(--a-accent2))}
.admin-layout .stat .label{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--a-muted)}
.admin-layout .stat .value{font-size:22px;font-weight:800;color:var(--a-ink);margin-top:6px}
.admin-layout .grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.admin-layout .grid4 .card{padding:16px 18px}

/* ---------- tabs ---------- */
.admin-layout .admin-tabs{display:flex;gap:7px;overflow:auto;margin-bottom:18px;padding-bottom:2px}
.admin-layout .tab{padding:9px 15px;border:1px solid var(--a-line);border-radius:10px;background:var(--a-card);
  color:var(--a-muted);font-weight:700;font-size:12.5px;white-space:nowrap;transition:all .15s ease}
.admin-layout .tab:hover{color:var(--a-ink);border-color:#c9cff0}
.admin-layout .tab.active{background:linear-gradient(120deg,var(--a-accent),var(--a-accent2));color:#fff;
  border-color:transparent;box-shadow:0 8px 18px rgba(91,95,243,.3)}

/* ---------- buttons ---------- */
.admin-layout .btn{background:var(--a-card);border:1px solid var(--a-line);color:var(--a-ink);border-radius:11px;
  padding:10.5px 16px;font-weight:700;font-size:13px;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.admin-layout .btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(20,25,60,.1)}
.admin-layout .btn:active{transform:translateY(0)}
.admin-layout .btn.primary{background:linear-gradient(120deg,var(--a-accent),var(--a-accent2));color:#fff;border:0;
  box-shadow:0 10px 22px rgba(91,95,243,.32)}
.admin-layout .btn[value="reject"],.admin-layout .btn.reject-btn,.admin-layout .btn[name="action"][value*="block"]{
  background:var(--a-red-soft);color:var(--a-red);border-color:#f6c9d1}
.admin-layout .btn[value="approve"],.admin-layout .btn[value="settle"],.admin-layout .btn[value="payment_confirm"],
.admin-layout .btn[name="action"][value*="active"]{background:var(--a-green-soft);color:var(--a-green);border-color:#bdeed6}
.admin-layout .btn.wide{width:100%}
.admin-layout .btn:disabled{opacity:.6;cursor:not-allowed;transform:none}

/* ---------- forms/fields ---------- */
.admin-layout .field label{color:var(--a-ink);font-size:12.5px}
.admin-layout .field input,.admin-layout .field select,.admin-layout .field textarea,
.admin-layout input[type=text],.admin-layout input[type=number],.admin-layout input[type=email],
.admin-layout input:not([type]),.admin-layout select,.admin-layout textarea{
  border:1px solid var(--a-line);border-radius:10px;padding:10px 12px;background:#fbfbff;color:var(--a-ink);font-size:13px}
.admin-layout input:focus,.admin-layout select:focus,.admin-layout textarea:focus{
  outline:none;border-color:var(--a-accent);box-shadow:0 0 0 4px rgba(91,95,243,.14);background:#fff}
.admin-layout .admin-loan-form{background:#fafbff;border:1px solid var(--a-line);border-radius:12px;padding:10px}

/* ---------- table ---------- */
.admin-layout .table-wrap{border:1px solid var(--a-line);border-radius:var(--a-radius);overflow:auto;background:var(--a-card);box-shadow:var(--a-shadow)}
.admin-layout .table{border-radius:0;font-size:13px}
.admin-layout .table th{background:#f7f8fd;color:var(--a-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em;
  font-weight:800;border-bottom:1px solid var(--a-line)}
.admin-layout .table td{border-bottom:1px solid #eef0f8;color:var(--a-ink)}
.admin-layout .table tr:last-child td{border-bottom:0}
.admin-layout .table tr:hover td{background:#f8f9ff}
.admin-layout .label{color:var(--a-muted);font-size:11.5px}

/* ---------- pills / badges ---------- */
.admin-layout .pill{font-weight:800;letter-spacing:.01em}
.admin-layout .pill.green{background:var(--a-green-soft);color:var(--a-green)}
.admin-layout .pill.red{background:var(--a-red-soft);color:var(--a-red)}
.admin-layout .pill.orange{background:var(--a-orange-soft);color:var(--a-orange)}
.admin-layout .pill.blue{background:var(--a-blue-soft);color:var(--a-blue)}
.admin-layout .notice{background:var(--a-blue-soft);color:#1d3f8f;border-radius:12px}
.admin-layout .notice.danger,.admin-layout .danger{background:var(--a-red-soft);color:#8f1d2c}

/* ---------- responsive: table -> stacked cards (data-label injected by admin.js) ---------- */
@media(max-width:760px){
  .admin-layout .table-wrap.is-stacked{border:0;background:transparent;box-shadow:none;overflow:visible}
  .admin-layout .table-wrap.is-stacked .table{border:0;width:100%}
  .admin-layout .table-wrap.is-stacked .table thead{display:none}
  .admin-layout .table-wrap.is-stacked .table,.admin-layout .table-wrap.is-stacked .table tbody,
  .admin-layout .table-wrap.is-stacked .table tr,.admin-layout .table-wrap.is-stacked .table td{display:block;width:100%}
  .admin-layout .table-wrap.is-stacked .table tr{background:var(--a-card);border:1px solid var(--a-line);
    border-radius:14px;margin-bottom:12px;padding:6px 4px;box-shadow:var(--a-shadow)}
  .admin-layout .table-wrap.is-stacked .table td{white-space:normal;border-bottom:1px dashed #eef0f8;
    padding:10px 12px;display:flex;gap:10px;justify-content:space-between;align-items:flex-start;text-align:right}
  .admin-layout .table-wrap.is-stacked .table td:last-child{border-bottom:0}
  .admin-layout .table-wrap.is-stacked .table td:before{content:attr(data-label);text-align:left;font-weight:800;
    font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--a-muted);flex:none;padding-top:2px}
  .admin-layout .table-wrap.is-stacked .table td form{width:100%;justify-content:flex-end}
}

/* ---------- mobile layout ---------- */
@media(max-width:900px){
  .admin-layout{display:block}
  .admin-layout .admin-main{padding:14px 12px 70px}
  .admin-layout .admin-top{flex-direction:column;align-items:flex-start;gap:8px}
}
@media(max-width:600px){
  .admin-layout .admin-main{padding:10px 10px 70px}
  .admin-layout .statgrid{grid-template-columns:repeat(2,1fr);gap:9px}
  .admin-layout .stat{padding:13px 14px}
  .admin-layout .stat .value{font-size:18px}
  .admin-layout .admin-top h1{font-size:19px}
  .admin-layout .card{padding:15px 14px;border-radius:16px}
  .admin-layout .admin-loan-form{grid-template-columns:1fr}
  .admin-layout .two{grid-template-columns:1fr}
  .admin-layout .btn{width:100%;text-align:center}
  .admin-layout form .btn+.btn{margin-top:6px}
  .admin-layout .admin-loan-form .btn{width:auto}
}

/* =====================================================================
   Admin AJAX loading overlay + toast host (live in body, outside
   .admin-layout, rendered once via admin/_head.php)
   ===================================================================== */
.admin-loading-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  background:rgba(15,17,42,.42);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .18s ease}
.admin-loading-overlay.show{opacity:1;pointer-events:all}
.admin-loading-box{background:#fff;border-radius:18px;padding:26px 34px;display:flex;flex-direction:column;
  align-items:center;gap:12px;box-shadow:0 25px 60px rgba(10,14,40,.35);min-width:180px}
.admin-loading-box .spinner{width:34px;height:34px;border-radius:50%;border:3.5px solid #e5e7f7;
  border-top-color:#5b5ff3;animation:admin-spin .7s linear infinite}
.admin-loading-box p{margin:0;font-size:13px;font-weight:700;color:#22254a}
@keyframes admin-spin{to{transform:rotate(360deg)}}

.admin-toast-host{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:10000;
  display:flex;flex-direction:column;gap:8px;align-items:center;width:min(92vw,420px)}
.admin-toast{width:100%;background:#151a35;color:#fff;border-radius:13px;padding:12px 16px;
  display:flex;align-items:center;gap:10px;box-shadow:0 18px 40px rgba(10,14,40,.3);
  font-size:13px;font-weight:650;opacity:0;transform:translateY(-14px);transition:opacity .22s ease,transform .22s ease;position:relative;overflow:hidden}
.admin-toast.show{opacity:1;transform:translateY(0)}
.admin-toast .a-toast-ic{width:20px;height:20px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900}
.admin-toast.success{background:#0b3a2c}
.admin-toast.success .a-toast-ic{background:#0fa968;color:#fff}
.admin-toast.error{background:#3a0b14}
.admin-toast.error .a-toast-ic{background:#e0304b;color:#fff}
.admin-toast.warning{background:#3a2a08}
.admin-toast.warning .a-toast-ic{background:#e08a1f;color:#fff}
.admin-toast .a-toast-bar{position:absolute;left:0;bottom:0;height:2.5px;background:rgba(255,255,255,.5);
  animation:admin-toast-bar 3.2s linear forwards}
@keyframes admin-toast-bar{from{width:100%}to{width:0%}}
@media(max-width:600px){.admin-loading-box{padding:20px 24px;min-width:0}.admin-toast-host{top:10px}}


/* ================================================================
   ADMIN MOBILE-FIRST FINAL FIX
   Applies to every admin page at phone/tablet widths.
   ================================================================ */
@media (max-width:900px){
  html,body{overflow-x:hidden}
  .admin-layout{display:block!important;min-height:100dvh}
  .admin-layout .sidebar{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:min(310px,86vw)!important;height:100dvh!important;
    transform:translateX(-110%)!important;transition:transform .24s cubic-bezier(.22,.61,.36,1)!important;
    z-index:1000!important;overflow-y:auto!important;overscroll-behavior:contain;
    padding:18px 13px calc(22px + env(safe-area-inset-bottom))!important;
  }
  .admin-layout .sidebar.open{transform:translateX(0)!important}
  .admin-layout .side{display:block!important;overflow:visible!important}
  .admin-layout .side a{display:flex!important;min-height:44px;white-space:normal!important}
  .admin-layout .admin-scrim{display:none;z-index:999}
  .admin-layout .admin-scrim.open{display:block!important}
  .admin-layout .admin-main{
    width:100%;min-width:0;padding:10px 12px calc(28px + env(safe-area-inset-bottom))!important;
  }
  .admin-layout .admin-mobilebar{
    position:sticky;top:8px;z-index:80;
    display:flex!important;align-items:center;gap:10px;
    min-height:54px;margin:0 0 12px!important;padding:8px 10px!important;
    border-radius:14px!important;background:rgba(255,255,255,.94)!important;
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  }
  .admin-menu-btn{flex:0 0 40px!important;width:40px!important;height:40px!important}
  .admin-top{width:100%;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .admin-top>div{min-width:0}
  .admin-top h1{margin:0;font-size:clamp(20px,6vw,26px)!important;line-height:1.2}
  .admin-top p{font-size:12px!important;line-height:1.45}
  .admin-top>form,.admin-top>form input{width:100%!important;max-width:none!important}
  .admin-top>.btn,.admin-top>a.btn{width:100%!important}
  .admin-layout .card{max-width:100%;overflow:hidden}
  .admin-layout .statgrid,.admin-layout .grid4{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important
  }
  .admin-layout .stat,.admin-layout .grid4 .card{min-width:0!important;padding:13px!important}
  .admin-layout .stat .label{font-size:10px}
  .admin-layout .stat .value{font-size:19px;overflow-wrap:anywhere}
  .admin-layout .two{grid-template-columns:1fr!important;gap:0!important}
  .admin-layout .field{min-width:0}
  .admin-layout input,.admin-layout select,.admin-layout textarea{max-width:100%;font-size:16px!important}
  .admin-layout textarea{min-height:100px;resize:vertical}
  .admin-layout .btn{min-height:44px;touch-action:manipulation}
  .admin-layout .admin-tabs{padding-bottom:5px;scrollbar-width:none}
  .admin-layout .admin-tabs::-webkit-scrollbar{display:none}
  .admin-layout .table-wrap{width:100%;max-width:100%}
  .admin-layout .table-wrap:not(.is-stacked){overflow-x:auto;-webkit-overflow-scrolling:touch}
}

@media (max-width:760px){
  /* Every admin table becomes readable cards, including tables without .table-wrap. */
  .admin-layout .table-wrap.is-stacked,
  .admin-layout table.table.is-mobile-stacked{
    border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  .admin-layout .table-wrap.is-stacked .table,
  .admin-layout table.table.is-mobile-stacked,
  .admin-layout .table-wrap.is-stacked .table tbody,
  .admin-layout table.table.is-mobile-stacked tbody,
  .admin-layout .table-wrap.is-stacked .table tr,
  .admin-layout table.table.is-mobile-stacked tr,
  .admin-layout .table-wrap.is-stacked .table td,
  .admin-layout table.table.is-mobile-stacked td{
    display:block!important;width:100%!important;
  }
  .admin-layout .table-wrap.is-stacked .table thead,
  .admin-layout table.table.is-mobile-stacked thead,
  .admin-layout .table-wrap.is-stacked .table>tr:first-child,
  .admin-layout table.table.is-mobile-stacked>tr:first-child{display:none!important}
  .admin-layout .table-wrap.is-stacked .table tr,
  .admin-layout table.table.is-mobile-stacked tr{
    background:#fff!important;border:1px solid var(--a-line,#e4e8f2)!important;
    border-radius:15px!important;margin:0 0 11px!important;padding:5px!important;
    box-shadow:0 8px 25px rgba(25,35,90,.07)!important;
  }
  .admin-layout .table-wrap.is-stacked .table td,
  .admin-layout table.table.is-mobile-stacked td{
    white-space:normal!important;border-bottom:1px dashed #edf0f6!important;
    padding:10px 9px!important;display:flex!important;gap:10px;
    justify-content:space-between;align-items:flex-start;text-align:right!important;
    overflow-wrap:anywhere;min-width:0;
  }
  .admin-layout .table-wrap.is-stacked .table td:last-child,
  .admin-layout table.table.is-mobile-stacked td:last-child{border-bottom:0!important}
  .admin-layout .table-wrap.is-stacked .table td:before,
  .admin-layout table.table.is-mobile-stacked td:before{
    content:attr(data-label);display:block;text-align:left!important;flex:0 0 34%;
    font-weight:800;font-size:10px;text-transform:uppercase;letter-spacing:.04em;
    color:var(--a-muted,#68738e);padding-top:2px;
  }
  .admin-layout .table-wrap.is-stacked .table td form,
  .admin-layout table.table.is-mobile-stacked td form{
    width:auto;max-width:100%;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;
  }
  .admin-layout .table-wrap.is-stacked .table td .btn,
  .admin-layout table.table.is-mobile-stacked td .btn{width:auto;min-width:100px}
}

@media (max-width:480px){
  .admin-layout .admin-main{padding-left:9px!important;padding-right:9px!important}
  .admin-layout .statgrid,.admin-layout .grid4{gap:8px!important}
  .admin-layout .stat,.admin-layout .grid4 .card{padding:11px!important;border-radius:13px!important}
  .admin-layout .stat .value{font-size:18px}
  .admin-layout .card{padding:13px!important;border-radius:15px!important}
  .admin-layout .admin-mobilebar{margin-bottom:9px!important}
  .admin-layout .admin-mobilebar b{font-size:13px}
  .admin-layout .admin-mobilebar small{font-size:9px}
  .admin-layout .admin-top h1{font-size:19px!important}
  .admin-layout .admin-top .muted{font-size:11px!important}
  .admin-layout .table-wrap.is-stacked .table td,
  .admin-layout table.table.is-mobile-stacked td{padding:9px 7px!important}
  .admin-layout .table-wrap.is-stacked .table td:before,
  .admin-layout table.table.is-mobile-stacked td:before{flex-basis:31%;font-size:9px}
  .admin-layout .table-wrap.is-stacked .table td .btn,
  .admin-layout table.table.is-mobile-stacked td .btn{min-width:0;width:100%;font-size:12px}
  .admin-layout .admin-loan-form{grid-template-columns:1fr!important}
  .admin-layout .loan-admin-form,.admin-layout .fee-grid{grid-template-columns:1fr!important}
  .admin-layout .mobile-loan-list{display:grid!important;gap:10px}
}


/* ================================================================
   ADMIN ALL-PAGE COMPACT / 2x2 / LONG-CONTENT FINAL PASS
   ================================================================ */
.admin-layout .admin-main{min-width:0;overflow-x:hidden}
.admin-layout .card{min-width:0}
.admin-layout .feature-grid,
.admin-layout .chart-grid-2x2,
.admin-layout .statgrid,
.admin-layout .grid4{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.admin-layout .feature-grid>*,
.admin-layout .chart-grid-2x2>*,
.admin-layout .statgrid>*,
.admin-layout .grid4>*{min-width:0}
.admin-layout .card{padding:15px}
.admin-layout .field{margin-bottom:10px}
.admin-layout .section-title{margin-bottom:10px}
.admin-layout .table-wrap{
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.admin-layout .table-wrap .table{min-width:680px}
.admin-layout .table-wrap td,
.admin-layout .table-wrap th{vertical-align:middle}
.admin-layout .admin-main form{max-width:100%}
.admin-layout .admin-main input,
.admin-layout .admin-main select,
.admin-layout .admin-main textarea{box-sizing:border-box}
.admin-layout .admin-main .btn{white-space:nowrap}
.admin-layout .loan-admin-form,
.admin-layout .admin-loan-form{min-width:0}
@media (min-width:901px){
  .admin-layout .admin-main{padding:18px 20px}
  .admin-layout .admin-top{margin-bottom:14px}
  .admin-layout .statgrid{gap:10px}
  .admin-layout .grid4{gap:10px}
  .admin-layout .feature-grid{gap:10px}
}
@media (max-width:900px){
  .admin-layout .admin-main{overflow-x:hidden}
  .admin-layout .feature-grid,
  .admin-layout .chart-grid-2x2,
  .admin-layout .statgrid,
  .admin-layout .grid4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-layout .feature-grid{gap:9px!important}
  .admin-layout .chart-grid-2x2{gap:9px!important}
  .admin-layout .card{padding:13px!important}
  .admin-layout .card h2{font-size:17px}
  .admin-layout .card h3{font-size:15px}
  .admin-layout .muted{line-height:1.35}
  .admin-layout .admin-top>form{margin-top:2px}
  .admin-layout .two{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .admin-layout .two>*{min-width:0}
  .admin-layout .form .two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-layout .fee-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .admin-layout .upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .admin-layout .loan-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-layout .account-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:760px){
  /* Long tables stay compact and can be swiped left/right instead of becoming
     very tall cards. This preserves every column/action without empty gaps. */
  .admin-layout .table-wrap.is-stacked{
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
    border-radius:12px!important;
  }
  .admin-layout .table-wrap.is-stacked .table,
  .admin-layout table.table.is-mobile-stacked{
    display:table!important;
    width:max-content!important;
    min-width:680px!important;
    border-collapse:separate!important;
  }
  .admin-layout .table-wrap.is-stacked .table thead,
  .admin-layout table.table.is-mobile-stacked thead{display:table-header-group!important}
  .admin-layout .table-wrap.is-stacked .table tbody,
  .admin-layout table.table.is-mobile-stacked tbody{display:table-row-group!important}
  .admin-layout .table-wrap.is-stacked .table tr,
  .admin-layout table.table.is-mobile-stacked tr{
    display:table-row!important;
    background:transparent!important;
    border:0!important;
    margin:0!important;
    padding:0!important;
    box-shadow:none!important;
  }
  .admin-layout .table-wrap.is-stacked .table th,
  .admin-layout .table-wrap.is-stacked .table td,
  .admin-layout table.table.is-mobile-stacked th,
  .admin-layout table.table.is-mobile-stacked td{
    display:table-cell!important;
    width:auto!important;
    min-width:100px!important;
    white-space:nowrap!important;
    text-align:left!important;
    padding:8px 10px!important;
    border-bottom:1px solid var(--line)!important;
    border-right:0!important;
  }
  .admin-layout .table-wrap.is-stacked .table td:before,
  .admin-layout table.table.is-mobile-stacked td:before{display:none!important}
  .admin-layout .table-wrap.is-stacked .table td form,
  .admin-layout table.table.is-mobile-stacked td form{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    gap:5px!important;
    width:max-content!important;
  }
  .admin-layout .table-wrap.is-stacked .table td .btn,
  .admin-layout table.table.is-mobile-stacked td .btn{
    width:auto!important;
    min-width:auto!important;
    min-height:38px!important;
    padding:7px 10px!important;
  }
  .admin-layout .two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-layout .field label{font-size:10px}
  .admin-layout .field input,
  .admin-layout .field select,
  .admin-layout .field textarea{min-height:42px}
  .admin-layout .admin-main .btn{min-height:40px}
}
@media (max-width:480px){
  .admin-layout .feature-grid,
  .admin-layout .chart-grid-2x2,
  .admin-layout .statgrid,
  .admin-layout .grid4,
  .admin-layout .two,
  .admin-layout .form .two,
  .admin-layout .fee-grid,
  .admin-layout .upload-grid,
  .admin-layout .loan-actions,
  .admin-layout .account-mini-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .admin-layout .card{padding:11px!important}
  .admin-layout .stat .value{font-size:16px!important}
  .admin-layout .stat .label{font-size:9px!important}
  .admin-layout .card h2{font-size:15px}
  .admin-layout .card h3{font-size:13px}
  .admin-layout .field{margin-bottom:7px}
  .admin-layout .field input,
  .admin-layout .field select,
  .admin-layout .field textarea{min-height:40px;padding:8px!important}
  .admin-layout .admin-main .btn{font-size:11px;padding:8px 9px!important}
  .admin-layout .table-wrap .table{min-width:620px!important}
}

/* Product/admin long tables: always keep the full row model and allow
   deliberate left/right swipe on narrow screens. */
.admin-layout .admin-horizontal-table{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.admin-layout .admin-horizontal-table .table{width:max-content!important;min-width:760px!important}
@media(max-width:760px){
  .admin-layout .admin-horizontal-table .table{display:table!important;min-width:760px!important;width:max-content!important}
  .admin-layout .admin-horizontal-table .table tr{display:table-row!important}
  .admin-layout .admin-horizontal-table .table th,.admin-layout .admin-horizontal-table .table td{display:table-cell!important;white-space:nowrap!important}
}

/* Final admin horizontal-content protection: long tables remain one compact
   scrollable model on phones instead of being duplicated/stacked. */
.admin-layout .admin-horizontal-table{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;max-width:100%;}
.admin-layout .admin-horizontal-table .table{width:max-content;min-width:900px;}
.admin-layout .loan-admin-card .table-wrap{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;}
.admin-layout .loan-admin-table{width:max-content;min-width:1150px;}
@media(max-width:760px){
  .admin-layout .admin-horizontal-table.is-stacked,.admin-layout .loan-admin-card .table-wrap.is-stacked{border:1px solid var(--a-line)!important;background:var(--a-card)!important;box-shadow:var(--a-shadow)!important;overflow-x:auto!important;overflow-y:hidden!important;}
  .admin-layout .admin-horizontal-table.is-stacked .table,.admin-layout .loan-admin-card .table-wrap.is-stacked .table{display:table!important;width:max-content!important;min-width:900px!important;}
  .admin-layout .admin-horizontal-table.is-stacked .table thead,.admin-layout .loan-admin-card .table-wrap.is-stacked .table thead{display:table-header-group!important;}
  .admin-layout .admin-horizontal-table.is-stacked .table tbody,.admin-layout .loan-admin-card .table-wrap.is-stacked .table tbody{display:table-row-group!important;}
  .admin-layout .admin-horizontal-table.is-stacked .table tr,.admin-layout .loan-admin-card .table-wrap.is-stacked .table tr{display:table-row!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;}
  .admin-layout .admin-horizontal-table.is-stacked .table th,.admin-layout .admin-horizontal-table.is-stacked .table td,.admin-layout .loan-admin-card .table-wrap.is-stacked .table th,.admin-layout .loan-admin-card .table-wrap.is-stacked .table td{display:table-cell!important;width:auto!important;white-space:normal!important;text-align:left!important;vertical-align:top!important;}
  .admin-layout .admin-horizontal-table.is-stacked .table td:before,.admin-layout .loan-admin-card .table-wrap.is-stacked .table td:before{content:none!important;display:none!important;}
}

/* Cash Love Pay rebrand */
.brand-mark{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;position:relative;background:linear-gradient(145deg,#16a34a,#7c3aed);box-shadow:0 10px 25px #0003;overflow:hidden}
.brand-mark:before{content:"♥";font-size:22px;line-height:1;color:#fff;position:absolute;top:5px;left:11px}
.brand-mark:after{content:"$";font-size:12px;font-weight:900;color:#7c3aed;background:#fff;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;position:absolute;right:5px;bottom:5px}
.brand-mark span{display:none}
.brand-word{white-space:nowrap}
