/* MONTERAH v17 - soft glass, premium. Loaded last.
   Keeps the rounded, glassy dashboard language (big dark wallet card, round shortcut icons, floating bottom bar),
   removes clutter (floating shapes, rings), de-duplicates page headers, and styles support + admin. */
:root{
  --r:20px;--r-md:16px;--r-sm:13px;--r-xs:8px;--r-lg:26px;
  --line-3:rgba(24,16,28,.13);--surface:#F7F3F8;
}
html{scroll-behavior:auto}
body{background:#F7F3F8 linear-gradient(180deg,#FFE7EB 0,#F8F2F8 460px,#F3F6F5 100%) no-repeat}

/* ---- remove decoration, show content instantly ---- */
.shapes,.float-chip,.sp,.shell::before,.shell::after,.card::after,.bx::after,.earn-card::after,.promo::before,.hero-note::after{display:none!important}
.content>*{animation:none!important}
.reveal{opacity:1;transform:none;transition:none}

/* ---- header: greeting + currency capsule + round bell ---- */
.topbar{padding:12px 22px;min-height:68px}
.topbar-title b{font-size:17px}
.topbar-title small{display:none}
.icon-btn{width:44px;height:44px}
.avatar.flag{width:auto;height:44px;padding:0 15px 0 5px;border-radius:99px;display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.88);border:1px solid #fff;box-shadow:var(--sh-1);color:var(--ink);font:600 13px var(--f);letter-spacing:.01em}
.avatar.flag img{width:34px;height:34px;flex:none}
.avatar.flag::after{content:"NGN"}

/* ---- page headers: the top bar carries the title; content starts with one quiet intro line ---- */
.ph{align-items:center;margin:20px 0 18px;gap:12px}
.ph h1{display:none}
.dash-ph .ph h1{display:block;font-size:22px}
.ph p{margin:0;font-size:13px;line-height:1.55;color:var(--muted);max-width:64ch}
.ph-a{margin-left:auto;gap:10px}
.ph:not(:has(p)):not(:has(.ph-a)){display:none}
.content{padding-top:6px}

/* ---- wallet card: crisp, compact, fintech ---- */
.wstack{height:158px}
.wcard{border-radius:20px;padding:18px 20px 14px;border:0;background:linear-gradient(135deg,#DC1F3B 0%,#AD0E2A 58%,#7C0821 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 18px 30px -20px rgba(142,10,34,.9)}
.wcard::before{background:linear-gradient(112deg,rgba(255,255,255,.16) 0,rgba(255,255,255,0) 46%)}
.wcard::after{right:14px;bottom:12px;width:78px;height:78px;opacity:.12}
.wcard-label{font-size:12.5px;opacity:.9;gap:7px}
.eye{width:28px;height:28px;background:rgba(255,255,255,.18)}
.wcard-amt{font-size:32px;margin:9px 0 0;letter-spacing:-.035em}
.wc-sub{font-size:11.5px;margin-top:5px}
.wdots{left:20px;bottom:14px;font-size:11px}
.wdots i{height:5px}.wdots i.on{width:16px}
.wdots em{opacity:.85}

/* ---- Withdraw / Deposit: two matching compact buttons ---- */
.actbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.actbar a,.actbar a+a{padding:9px 12px;gap:10px;font-size:13.5px;font-weight:600;border-radius:14px;background:#fff;border:1px solid var(--line-3);box-shadow:0 1px 2px rgba(24,16,28,.05)}
.actbar a:hover{background:var(--red-1);border-color:var(--red-3)}
.actbar .ai,.actbar a:first-child .ai{width:34px;height:34px;border-radius:10px;background:var(--red-1);color:var(--red);border:0;box-shadow:none}
.actbar a:hover .ai{background:#fff}

/* ---- quick actions: crisp rounded tiles, solid red icons ---- */
.igrid{gap:16px 6px}
.igrid a{gap:7px;font-size:11px;font-weight:500;color:var(--ink-2)}
.igrid .gi,.igrid a:hover .gi{width:52px;height:52px;border-radius:16px}
.igrid .gi{background:#fff;border:1px solid var(--line-3);box-shadow:0 1px 2px rgba(24,16,28,.05);color:var(--red)}
.igrid .gi .ic{width:22px;height:22px;stroke-width:1.9;opacity:1}
.igrid a:hover .gi{background:var(--red);border-color:var(--red);color:#fff;transform:none;box-shadow:none}
.igrid .gb{right:calc(50% - 32px)}
.promo{border-radius:20px;border:1px solid rgba(232,40,63,.55);padding:14px 16px;gap:12px;background:radial-gradient(70% 140% at 100% 0%,rgba(232,40,63,.38),transparent 60%),linear-gradient(145deg,#2D0B16,#14060A)}
.promo .pi{width:42px;height:42px;border-radius:12px}
.promo small{letter-spacing:.1em;text-transform:uppercase;font-size:10.5px}
.promo b{font-size:15.5px}

/* ---- inner pages (mobile): page title in the top bar, greeting stays on the dashboard ---- */
@media(max-width:860px){
  .topbar{padding:12px 16px;min-height:72px;gap:10px}
  .topbar-who .avatar{width:48px;height:48px}
  .topbar-who small{font-size:12px}
  .topbar-who b{font-size:17px;max-width:200px}
  .app-body.inner:not(.admin-body) .topbar-who{display:none}
  .app-body.inner:not(.admin-body) .topbar-title{display:block;flex:1;min-width:0}
  .app-body.inner:not(.admin-body) .topbar-title b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .admin-body .topbar-title{flex:1;min-width:0}
  .ph{margin:14px 0 14px}

  /* floating glass bottom bar: same on every user page, thin icons, dot under the active tab */
  .tabbar{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));padding:8px 8px 6px;border-radius:24px;background:rgba(255,255,255,.97);border:1px solid var(--line);box-shadow:0 14px 30px -18px rgba(24,16,28,.45)}
  .tab{position:relative;gap:4px;padding:6px 0 11px;font-size:10.5px;font-weight:500;color:#7C7488}
  .tab .ic{width:21px;height:21px;stroke-width:1.5}
  .tab.active{color:var(--red)}
  .tab.active .ic{stroke-width:1.7}
  .tab.active::after{content:"";position:absolute;left:50%;bottom:2px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--red)}
  .tab.mid .tabi{display:contents;color:inherit;background:none;box-shadow:none}
  .tab.mid .tabi .ic{color:inherit}
  .tab.mid.active::after{display:block}
  .tab.mid{color:#7C7488}.tab.mid.active{color:var(--red)}
  .app-body:not(.admin-body) .content{padding-bottom:112px}
  .fab-support{bottom:calc(100px + env(safe-area-inset-bottom));width:50px;height:50px}
}
@media(max-width:640px){
  .wstack{height:156px}
  .wcard{padding:17px 18px 14px;border-radius:20px}
  .wcard-amt{font-size:31px}
  .wdots{left:18px;bottom:13px}
  .actbar{margin:12px 0 0}
  .igrid{gap:16px 2px}
  .igrid .gi{width:50px;height:50px;border-radius:15px}
  .igrid a{font-size:10.5px}
  .promo{padding:13px 14px;border-radius:20px;flex-wrap:nowrap}
}

/* ---- admin panel ---- */
.admin-body .content{max-width:1320px}
.admin-chip{padding:7px 12px;font-weight:600;font-size:12px;gap:7px;border:1px solid var(--line);background:var(--cream);color:var(--ink)}
.admin-chip em{font-style:normal;margin-left:2px;padding-left:8px;border-left:1px solid var(--line-3);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--red)}
.admin-body .tbl td{vertical-align:middle;border-bottom:1px solid var(--line-2)}
.admin-body .tbl tbody tr:last-child td{border-bottom:0}
.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--line-2)}
.filters .field{margin:0;min-width:170px;flex:1}
.filters .btn{min-height:44px}
.actions{gap:8px}.actions-cell{white-space:nowrap}
.btn-danger{background:#fff;color:var(--red);border-color:rgba(200,16,46,.28)}.btn-danger:hover{background:var(--red-1);border-color:var(--red)}
@media(max-width:860px){
  .admin-chip em{display:none}.admin-chip{padding:7px 10px}
  .filters{gap:10px}.filters .field{min-width:calc(50% - 5px)}.filters .btn{width:100%}
}
@media(max-width:480px){
  .filters .field{min-width:100%}
  .ph-a{margin-left:0;width:100%}.ph-a .btn{flex:1;justify-content:center}
}

/* =====================================================================
   v15: Support (tickets, floating help button)
   ===================================================================== */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.badge-open{background:var(--warn-1);color:var(--warn)}
.badge-answered{background:var(--ok-1);color:var(--ok)}
.badge-closed{background:#EFEDEF;color:var(--muted)}
.badge-open::before,.badge-answered::before,.badge-closed::before{background:currentColor}

/* floating help button (dashboard) */
.fab-support{position:fixed;right:20px;bottom:24px;z-index:60;display:flex;align-items:center;gap:8px;height:54px;padding:0 20px 0 15px;border-radius:999px;background:var(--red);color:#fff!important;text-decoration:none!important;font:700 13px var(--f);box-shadow:0 16px 30px -12px rgba(200,16,46,.7),0 2px 6px rgba(28,18,22,.2);transition:transform .2s,box-shadow .2s,background .2s}
.fab-support:hover{background:var(--red-6);transform:translateY(-2px)}
.fab-support:active{transform:scale(.97)}
.fab-support::before{content:"";position:absolute;inset:0;border-radius:inherit;border:2px solid var(--red);opacity:0;animation:fabPing 3.2s ease-out infinite;pointer-events:none}
@keyframes fabPing{0%{transform:scale(1);opacity:.55}70%,100%{transform:scale(1.35,1.5);opacity:0}}
.fab-ic{display:grid;place-items:center}
.fab-n{position:absolute;top:-5px;right:-3px;min-width:21px;height:21px;padding:0 5px;border-radius:99px;background:#fff;color:var(--red);font:700 11px/21px var(--f);text-align:center;box-shadow:0 0 0 2px var(--red)}
@media(prefers-reduced-motion:reduce){.fab-support::before{animation:none}}

/* support hub + ticket list */
.sup-narrow{max-width:780px;margin:0 auto}
.sup-narrow>.card{margin-bottom:14px}
.sup-hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px;margin-bottom:16px}
.sup-opt{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);color:var(--ink);text-decoration:none!important;transition:border-color .2s,transform .2s}
.sup-opt:hover{border-color:var(--red-3);transform:translateY(-1px)}
.sup-opt-ic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:var(--r-md);background:var(--red-1);color:var(--red)}
.sup-opt.tg .sup-opt-ic{background:#E6F4FC;color:#2494D6}
.sup-opt.tg:hover{border-color:#9ACBEA}
.sup-opt-t{flex:1;min-width:0}.sup-opt-t b{display:block;font-size:14px}
.sup-opt-t small{display:block;margin-top:2px;color:var(--muted);font-size:12px;line-height:1.5}
.sup-opt>.ic{flex:none;color:var(--faint)}
.sup-list{display:flex;flex-direction:column}
.sup-item{display:flex;align-items:center;gap:14px;padding:15px 18px;border-top:1px solid var(--line-2);color:var(--ink);text-decoration:none!important;transition:background .15s}
.sup-item:hover{background:var(--cream)}
.sup-item.unread{background:var(--red-1)}
.sup-item-ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-sm);background:var(--cream);color:var(--muted)}
.sup-item.unread .sup-item-ic{background:#fff;color:var(--red)}
.sup-item-b{flex:1;min-width:0}
.sup-item-b b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-item-b small{display:block;margin-top:2px;color:var(--muted);font-size:11.5px}
.sup-item-s{flex:none;display:flex;align-items:center;gap:9px}
.sup-dot{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px rgba(200,16,46,.18)}
.sup-new{color:var(--red);font-weight:700}

/* ticket header + conversation */
.sup-top-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.sup-top-h h2{margin:2px 0 0;font-size:17px;line-height:1.35;word-break:break-word}
.sup-kicker{display:block;font:700 10px var(--f);letter-spacing:.1em;text-transform:uppercase;color:var(--red)}
.sup-top-m{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px;color:var(--muted);font-size:11.5px}
.sup-top-m span{display:inline-flex;align-items:center;gap:6px}
.sup-chat{padding:20px;background:var(--cream)}
.sup-thread{display:flex;flex-direction:column;gap:18px}
.sup-msg{display:flex;align-items:flex-end;gap:10px;max-width:88%}
.sup-msg.me{margin-left:auto;flex-direction:row-reverse}
.sup-av{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;font:700 12px var(--f);overflow:hidden}
.sup-av-team{background:#fff;border:1px solid var(--line)}
.sup-av-team img{display:block;width:100%;height:100%;object-fit:contain;padding:4px}
.sup-bub{min-width:0;padding:11px 15px 13px;background:#fff;border:1px solid var(--line);border-radius:16px 16px 16px 4px;box-shadow:var(--sh-1)}
.sup-msg.me .sup-bub{background:var(--red);border-color:var(--red);color:#fff;border-radius:16px 16px 4px 16px}
.sup-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin-bottom:5px;font-size:11px;color:var(--muted)}
.sup-meta b{color:var(--ink);font-size:11.5px}
.sup-msg.me .sup-meta{color:rgba(255,255,255,.78)}.sup-msg.me .sup-meta b{color:#fff}
.sup-txt{white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;font-size:13px;line-height:1.65}
.sup-att{display:block;margin-top:10px}
.sup-att img{display:block;width:100%;max-width:260px;border-radius:10px;border:1px solid rgba(0,0,0,.1)}

/* composer */
.sup-compose textarea{width:100%;min-height:100px;resize:vertical}
.sup-compose-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px}
.sup-compose-btns{display:flex;gap:8px;flex-wrap:wrap}
.sup-file{position:relative;display:flex;align-items:center;gap:9px;padding:12px 14px;border:1px dashed var(--line-3);border-radius:var(--r-sm);background:var(--cream);color:var(--ink-2);font-size:12.5px;font-weight:600;cursor:pointer;overflow:hidden;transition:border-color .2s,background .2s}
.sup-file:hover{border-color:var(--red);background:#fff}
.sup-file span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-file.sm{padding:9px 13px;font-size:12px;max-width:55%}
.sup-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0;padding:0;border:0}
.sup-resolve{margin-top:14px;padding-top:14px;border-top:1px solid var(--line-2)}
.sup-closed{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.sup-closed b{display:flex;align-items:center;gap:7px}.sup-closed p{margin:3px 0 0}

/* admin ticket view */
.sup-admin{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.sup-admin-main{display:flex;flex-direction:column;gap:14px;min-width:0}
.sup-side h3{margin-bottom:6px}
.sup-dl{margin:0 0 14px}
.sup-dl div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line-2)}
.sup-dl dt{color:var(--muted);font-size:12px}
.sup-dl dd{margin:0;font-weight:600;font-size:12.5px;text-align:right;word-break:break-word}

@media(max-width:860px){
  .fab-support{right:14px;bottom:calc(92px + env(safe-area-inset-bottom));width:54px;padding:0;justify-content:center}
  .fab-t{display:none}
  .sup-admin{grid-template-columns:1fr}.sup-side{order:-1}
  .sup-msg{max-width:95%}
}
@media(max-width:640px){
  .sup-chat{padding:14px}.sup-bub{padding:10px 13px 12px}
  .sup-item{padding:14px;flex-wrap:wrap;gap:10px 12px}.sup-item-s{width:100%;padding-left:52px}
  .sup-compose-bar{flex-direction:column;align-items:stretch}.sup-file.sm{max-width:none}
  .sup-compose-btns .btn{flex:1;justify-content:center}
  .sup-opt{padding:14px}
}

/* v20: neat round shortcut icons + promo card that never overflows */
.igrid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 4px}
.igrid a{gap:8px;font-size:11px;font-weight:500;color:var(--ink-2);min-width:0}
.igrid .gi,.igrid a:hover .gi{width:56px;height:56px;border-radius:50%;background:#fff;border:1px solid var(--line-3);box-shadow:0 2px 6px rgba(24,16,28,.06);color:var(--red);transform:none}
.igrid .gi .ic{width:22px;height:22px;stroke-width:1.7}
.igrid a:hover .gi,.igrid a:active .gi{background:var(--red-1);border-color:var(--red-3);color:var(--red)}
.igrid .gl{display:block;max-width:100%;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.igrid .gb{top:-3px;right:calc(50% - 32px)}
@media(max-width:380px){.igrid{grid-template-columns:repeat(4,minmax(0,1fr))}.igrid .gi,.igrid a:hover .gi{width:52px;height:52px}}
.promo>div{flex:1 1 0;min-width:0}
.promo b,.promo p{overflow-wrap:anywhere}
@media(max-width:640px){
  .promo{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:14px;overflow:hidden}
  .promo .btn{grid-column:1/-1;width:100%;margin:0;justify-content:center;text-align:center;white-space:nowrap}
}

/* v20: withdrawal receipt pop-up + tidy admin withdrawal rows */
.wd-pop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:16px;background:rgba(28,18,22,.58);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:fade .2s}
.wd-pop .wd-bg{position:absolute;inset:0}
.wd-pop .wd-done{position:relative;width:100%;max-width:360px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;margin:0;padding:20px 18px 16px;border-radius:24px;box-shadow:0 36px 70px -24px rgba(0,0,0,.55)}
.wd-pop .wd-x{position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(28,18,22,.06);color:var(--ink-2)}
.wd-pop .wd-badge{width:56px;height:56px;margin:2px auto 8px}
.wd-pop .wd-done h3{font-size:17px}
.wd-pop .wd-line{font-size:12.5px;margin-bottom:10px}
.wd-pop .wd-amt{margin-bottom:10px}.wd-pop .wd-amt b{font-size:28px}
.wd-pop .wd-bank{padding:8px 10px;margin-bottom:8px}
.wd-pop .wd-rows{margin-bottom:12px}.wd-pop .wd-rows li{padding:7px 2px;font-size:12.5px}
.wd-pop .wd-act .btn{padding-left:10px;padding-right:10px;white-space:nowrap}
.wd-ref{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}
.wd-ref b{word-break:break-all}
@media(max-width:820px){.wd-ref{align-items:flex-end;text-align:right}}
