/* Pay100 premium interface layer.
   This file intentionally contains visual overrides only. */

:root{
  --ink:#24125f;
  --muted:#747892;
  --line:#e7e1f8;
  --paper:#fff;
  --bg:#f8f7fd;
  --navy:#180847;
  --blue:#5b2ede;
  --mint:#20c784;
  --amber:#ff9418;
  --red:#df4664;
  --violet:#5b2ede;
  --violet-dark:#32107d;
  --violet-soft:#f1edff;
  --orange:#ff8a1d;
  --shadow-sm:0 8px 26px rgba(57,31,124,.07);
  --shadow-md:0 20px 52px rgba(57,31,124,.11);
  --shadow-lg:0 28px 72px rgba(45,19,108,.15);
}

*{scrollbar-width:thin;scrollbar-color:#cfc1f4 transparent}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  background:
    radial-gradient(circle at 94% 4%,rgba(255,145,31,.09),transparent 24rem),
    radial-gradient(circle at 45% -10%,rgba(108,66,225,.11),transparent 34rem),
    var(--bg);
  color:var(--ink);
  font-family:'DM Sans',sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background-image:linear-gradient(rgba(91,46,222,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(91,46,222,.018) 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}
::selection{background:#5b2ede;color:#fff}
a,button,input,select,textarea{transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease,transform .2s ease,opacity .2s ease}

/* Application shell */
.sidebar{
  width:264px;
  padding:28px 22px 22px;
  background:
    radial-gradient(circle at 12% 9%,rgba(129,89,255,.28),transparent 15rem),
    radial-gradient(circle at 95% 78%,rgba(255,139,28,.13),transparent 19rem),
    linear-gradient(165deg,#271065 0%,#180842 55%,#10052f 100%);
  border-right:1px solid rgba(255,255,255,.09);
  box-shadow:16px 0 55px rgba(35,14,87,.12);
  overflow-x:hidden;
  overflow-y:auto;
  isolation:isolate;
}
.sidebar::before,.sidebar::after{
  content:"";
  position:absolute;
  z-index:-1;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
}
.sidebar::before{width:260px;height:260px;left:-175px;top:160px}
.sidebar::after{width:330px;height:330px;right:-265px;bottom:160px}
.sidebar .brand{
  min-height:74px;
  margin:0 2px 34px;
  padding:11px 14px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(255,255,255,.6);
  border-radius:18px;
  box-shadow:0 16px 38px rgba(8,2,31,.25);
}
.sidebar .brand img{max-width:none;height:auto;filter:saturate(1.04) contrast(1.02)}
.sidebar nav{gap:6px}
.sidebar nav a,.sidebar nav .nav-parent{
  min-height:46px;
  padding:12px 14px;
  border:1px solid transparent;
  border-radius:12px;
  color:#beb4dd;
  font-size:13px;
  letter-spacing:.01em;
}
.sidebar nav a>span,.sidebar nav .nav-parent>span{color:#d5caff}
.sidebar nav a:hover,.sidebar nav .nav-parent:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.08);
  transform:translateX(2px);
}
.sidebar nav>a.active,.sidebar nav .nav-group.open>.nav-parent{
  color:#fff;
  background:linear-gradient(100deg,rgba(126,81,255,.28),rgba(255,255,255,.07));
  border-color:rgba(218,205,255,.16);
  box-shadow:inset 3px 0 0 var(--orange),0 10px 24px rgba(5,0,29,.15);
}
.sidebar nav .nav-chevron{color:#ab9dce;font-size:16px}
.sidebar nav .nav-submenu{gap:2px;padding:2px 0 5px}
.sidebar nav .sub-link{
  min-height:36px;
  margin-left:19px;
  padding:9px 12px 9px 20px;
  border:0;
  border-left:1px solid rgba(218,205,255,.22);
  border-radius:0 10px 10px 0;
  color:#a99fc7;
}
.sidebar nav .sub-link:hover{border-left-color:rgba(255,255,255,.4)}
.sidebar nav .sub-link.active{
  color:#fff;
  background:linear-gradient(90deg,rgba(102,55,232,.25),rgba(102,55,232,.04));
  border-left:3px solid var(--orange);
  box-shadow:none;
}
.sidebar .profile{
  margin-top:auto;
  padding:22px 7px 9px;
  border-top:1px solid rgba(229,220,255,.14);
  color:#fff;
  text-decoration:none;
}
.sidebar .profile:hover{transform:translateY(-1px)}
.sidebar .avatar{
  background:linear-gradient(145deg,#7650f5,#4b1dc4);
  box-shadow:0 8px 22px rgba(82,41,201,.38);
}
.sidebar .profile small{color:#a99fc7}
.sidebar .logout{color:#aaa0c7;border-radius:10px}
.sidebar .logout:hover{color:#fff;transform:translateX(2px)}

.main{
  margin-left:264px;
  max-width:none;
  min-height:100vh;
  padding:30px clamp(26px,3vw,52px) 72px;
}
.main>header{
  top:0;
  z-index:90;
  margin:-30px calc(clamp(26px,3vw,52px) * -1) 30px;
  padding:22px clamp(26px,3vw,52px);
  border-bottom:1px solid rgba(220,212,241,.78);
  background:rgba(248,247,253,.83);
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  box-shadow:0 12px 36px rgba(45,20,107,.035);
}
.main>header::after{display:none}
.header-greeting{color:var(--violet);font-weight:800;letter-spacing:.025em}
.main h1{font-size:clamp(27px,2.4vw,37px);letter-spacing:-.04em;color:#201052}
.header-actions{gap:14px}
.header-profile{
  position:relative;
  top:auto;
  right:auto;
  flex:0 0 52px;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:17px;
  background:linear-gradient(145deg,#7048ed,#4519bd);
  box-shadow:0 12px 30px rgba(84,39,203,.25);
}
.header-profile:hover{transform:translateY(-2px) rotate(-2deg);box-shadow:0 16px 38px rgba(84,39,203,.32)}
.header-profile i{background:var(--mint);border-color:#faf8ff;box-shadow:0 0 0 3px rgba(32,199,132,.16)}

.wallet-strip{
  border:1px solid #e2daf7;
  border-radius:17px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow-sm);
}
.wallet-strip>div{min-width:145px;padding:13px 18px;border-color:#e9e3f6}
.wallet-strip small{font-size:9px;letter-spacing:1.15px;color:#8588a2}
.wallet-strip strong{font-size:17px;color:var(--ink)}
.wallet-strip>div:nth-child(1) strong{color:var(--violet)}
.wallet-strip>div:nth-child(2) strong{color:#119667}
.wallet-strip>div:nth-child(3) strong{color:#d77900}
.wallet-strip>.chargeback-balance strong{color:#d94163}

/* Reusable premium surfaces */
.card,.panel,.kpi,.metric,.table-card,.secret-box,
.pricing-form-card,.pricing-list-card,.scheme-form-card,.scheme-list-card,
.limit-form-card,.limit-list-card,.assignment-form-card,.assignment-list-card,
.users-list-card,.ip-list-card,.gateway-list-card,.callback-list-card,
.accounting-form-card,.accounting-list-card,.ledger-list-card,.chargeback-list-card,
.profile-card,.beneficiary-card,.payout-card{
  border:1px solid rgba(224,216,246,.96);
  border-radius:20px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow-sm);
}
.card,.panel,.kpi,.metric{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.card:hover,.panel:hover,.kpi:hover,.metric:hover{
  border-color:#d8cdf5;
  box-shadow:var(--shadow-md);
}
.card{padding:27px;margin-bottom:24px}
.panel{padding:25px}
.card h2,.card h3,.panel h3,.section-title h2,.section-title h3{color:#24125f;letter-spacing:-.025em}
.card-head,.section-title{gap:20px}
.section-title{border-color:#ebe6f7;padding-bottom:22px}
.section-title p,.card p,.panel p{color:var(--muted)}
.icon,.kpi-icon,.merchant-mark,.blank-doc .blank-icon,.integration-icon{
  border:1px solid rgba(103,62,220,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.icon.blue,.kpi-icon.blue,.merchant-mark,.blank-doc .blank-icon,.integration-icon{background:#eee9ff;color:var(--violet)}
.icon.mint,.kpi-icon.green{background:#e7f9f2;color:#0c9c6a}
.icon.amber,.kpi-icon.amber{background:#fff1dc;color:#d77900}
.kpi-icon.violet{background:#f2eaff;color:#6834df}

/* Reference-inspired hero treatment */
.premium-hero,.hero,.profile-banner,.bank-intro-card,.callback-hero{
  color:var(--ink);
  border:1px solid #ddd3f7;
  background:
    radial-gradient(circle at 82% 45%,rgba(255,141,24,.13),transparent 13rem),
    radial-gradient(circle at 66% 30%,rgba(106,67,226,.13),transparent 15rem),
    linear-gradient(125deg,#fff 0%,#faf8ff 58%,#fff8f1 100%);
  box-shadow:var(--shadow-md);
}
.premium-hero,.hero{border-radius:24px;padding:34px 38px}
.premium-hero::before,.hero::before{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  right:13%;
  bottom:-95px;
  border:26px solid rgba(255,139,28,.16);
  border-left-color:rgba(101,56,224,.12);
  border-radius:50%;
  transform:rotate(-20deg);
}
.premium-hero::after,.hero::after{border-color:rgba(92,48,222,.09)}
.premium-hero h2,.hero h2{color:#2a126f;font-size:clamp(27px,2.4vw,36px);letter-spacing:-.045em}
.premium-hero p,.hero p{color:#6f7590}
.live-label{color:#4e21c2;letter-spacing:.12em;text-transform:uppercase}
.live-label i,.status-dot{background:var(--mint);box-shadow:0 0 0 5px rgba(32,199,132,.14)}
.hero-meta span{
  color:#5c3eaa;
  border-color:#e3daf9;
  background:rgba(255,255,255,.75);
}
.route-health,.mini-card{
  border:1px solid #e1d7f8;
  background:rgba(255,255,255,.78);
  box-shadow:0 15px 38px rgba(77,39,167,.08);
}
.health-ring{background:conic-gradient(var(--violet) calc(var(--rate,100)*1%),#eee9fa 0)}
.health-ring::before{background:#fff}
.health-ring span,.mini-card strong{color:#2a126f}
.health-ring small,.route-health>div>small,.mini-card small{color:#7b74a0}
.route-health p,.mini-card span{color:#13966a}

/* Dashboard cards and data graphics */
.kpi-grid{gap:18px;margin-bottom:22px}
.kpi{padding:21px;border-radius:18px}
.kpi strong,.metric strong,.stats strong,.chart-total strong{color:#24125f}
.kpi small,.panel-head small,.metric small{color:#8c88a3;letter-spacing:1.15px}
.dashboard-grid{gap:22px;margin-bottom:22px}
.panel-head a,.integration-list a,.text-btn{color:var(--violet)}
.bar-chart{border-color:#ebe5f8}
.bar-track i{background:linear-gradient(180deg,#7248ee,#5524cf 65%,#ff9423);box-shadow:0 8px 18px rgba(91,46,222,.2)}
.fund-row,.integration-list>div,.merchant{border-color:#ece6f7}
.settlement-note{background:linear-gradient(120deg,#f4f0ff,#fff9f1);border:1px solid #e8e0f8}
.cycle-badge{background:#eee9ff;color:#5222c3}
.test-badge,.health-pill{background:#e6f9f1;color:#0c8b61}
.metric-row{gap:18px}
.metric{border-radius:17px;padding:20px}
.merchant.selected{background:#f6f2ff;border-left-color:var(--violet)}

/* Tables */
.table-card{overflow:hidden;padding:0}
.table-card .card-head{padding:25px 27px 17px}
.table-wrap{scrollbar-gutter:stable}
table{background:transparent}
th{
  padding:14px 20px;
  color:#7f7c97;
  background:linear-gradient(180deg,#faf9fd,#f6f4fb);
  border-bottom:1px solid #ebe5f5;
  font-family:'Manrope',sans-serif;
  font-size:9.5px;
  letter-spacing:1.25px;
}
td{padding:17px 20px;border-color:#eee9f6;color:#60647d}
td strong{color:#26165a}
tbody tr{transition:background-color .18s ease}
tbody tr:hover{background:#fbf9ff}
.empty{color:#8d8aa4;padding:36px}

/* Forms and controls */
label{color:#504d69;font-weight:700}
input:not([type=checkbox]):not([type=radio]),select,textarea{
  min-height:48px;
  color:#251657;
  background:#fff;
  border:1px solid #dcd5ec;
  border-radius:12px;
  outline:none;
}
input:not([type=checkbox]):not([type=radio]):hover,select:hover,textarea:hover{border-color:#c7b8ec}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus,
.login-form input:not([type=checkbox]):focus,dialog input:not([type=checkbox]):focus{
  border-color:#7048e8;
  box-shadow:0 0 0 4px rgba(91,46,222,.11);
}
input::placeholder,textarea::placeholder{color:#aaa8b8}
.amount,.premium-amount{
  border:1px solid #dcd5ec;
  border-radius:13px;
  background:#fff;
}
.amount:focus-within,.premium-amount:focus-within{border-color:#7048e8;box-shadow:0 0 0 4px rgba(91,46,222,.11)}
.amount input,.premium-amount input{background:transparent;box-shadow:none!important}
input[type=checkbox],input[type=radio]{accent-color:var(--violet)}

.primary,.secondary,.text-btn,.close,.switch{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,opacity .18s ease}
.primary{
  min-height:46px;
  border-radius:12px;
  background:linear-gradient(115deg,#4a18bd,#6a3ee4);
  box-shadow:0 10px 24px rgba(80,32,196,.2);
}
.primary:hover:not(:disabled){background:linear-gradient(115deg,#3d0eab,#7448ea);transform:translateY(-2px);box-shadow:0 15px 31px rgba(80,32,196,.28)}
.primary:active:not(:disabled){transform:translateY(0)}
.secondary{
  min-height:44px;
  border-radius:12px;
  color:#4e20c1;
  background:#eee9ff;
  border:1px solid #e2d9fa;
}
.secondary:hover{background:#e4dcfb;transform:translateY(-1px)}
.text-btn:hover{color:#37109e}
.close{background:#f1edfa;color:#4a277f}
.close:hover{background:#e9e2f7;transform:rotate(4deg)}
.switch{background:#d5cfdf}
.switch.on{background:linear-gradient(100deg,#5420cf,#754ce7);box-shadow:0 6px 14px rgba(85,34,204,.2)}

.pill{background:#f0edf6;color:#69637c;border:1px solid transparent}
.pill.green{background:#e5f8f0;color:#07835b}
.pill.amber{background:#fff1d9;color:#ae6a00}
.pill.red{background:#fee8ed;color:#bd2e4d}
.toast{
  border-radius:13px;
  box-shadow:var(--shadow-sm);
  background:#e7f9f1;
  color:#087654;
  border-color:#c2ead9;
}
.toast.error{background:#fff0f3;color:#b22c4a;border-color:#f8ccd6}
.secret-box{border-color:#d9cff8;background:linear-gradient(125deg,#fff,#f7f3ff)}

/* Dialogs and overlays */
dialog{
  color:var(--ink);
  border:1px solid rgba(227,218,248,.96);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow-lg);
}
dialog::backdrop{background:rgba(25,8,66,.55);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
dialog form{padding:29px}
.dialog-head h3{color:#25125e;letter-spacing:-.025em}

/* Page-specific surfaces retain their structure but share the theme */
.pricing-card-head,.pricing-list-head,.scheme-card-head,.scheme-list-head,
.limit-card-head,.assignment-card-head,.users-card-head,.gateway-card-head,
.accounting-card-head,.ledger-card-head{
  background:linear-gradient(125deg,#fff,#faf7ff 62%,#fff8f0);
  border-color:#e8e0f8;
}
.profile-banner,.bank-intro-card,.callback-hero{border-radius:22px}
.profile-banner h2,.bank-intro-card h2,.callback-hero h2,
.profile-banner strong,.bank-intro-card strong,.callback-hero strong{color:#271260}
.profile-banner p,.bank-intro-card p,.callback-hero p{color:#72758d}
.service-status,.ledger-summary,.wallet-balance-card,.beneficiary-account-row{
  border-color:#e6dff5!important;
  background:linear-gradient(125deg,#fff,#fbf9ff)!important;
  box-shadow:var(--shadow-sm);
}
.pricing-layout,.scheme-layout,.assignment-layout,.limit-layout,.accounting-layout{gap:22px}

/* Login */
.login-shell{background:#fbfaff}
.login-art{
  background:
    radial-gradient(circle at 68% 37%,rgba(255,145,31,.34),transparent 13rem),
    radial-gradient(circle at 18% 82%,rgba(125,82,245,.58),transparent 23rem),
    linear-gradient(145deg,#32107c,#190745 68%,#10032d);
}
.login-art::after{
  content:"";
  position:absolute;
  width:260px;height:260px;right:-100px;bottom:-110px;
  border:46px solid rgba(255,145,31,.22);border-radius:50%;
}
.art-copy small{color:#ffb25d}
.art-copy p{color:#ccc1e8}
.orbit div{background:linear-gradient(145deg,#7b4ff3,#4d1cc2);box-shadow:0 24px 70px rgba(5,0,26,.5)}
.login-panel{background:radial-gradient(circle at 95% 8%,rgba(255,145,31,.08),transparent 15rem),#fff}
.login-form h2{color:#24115c;letter-spacing:-.04em}

/* Subtle, reliable motion */
@keyframes premium-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.main>header+*{animation:premium-rise .4s cubic-bezier(.2,.7,.2,1) both}

@media(max-width:1180px){
  .wallet-strip>div{min-width:118px;padding:12px 13px}
  .route-health{min-width:250px}
}

@media(max-width:980px){
  .sidebar{width:88px;padding:23px 13px}
  .sidebar .brand{min-height:60px;margin:0 0 27px;padding:8px;border-radius:15px}
  .sidebar nav b,.sidebar .profile div:not(.avatar),.sidebar .logout{font-size:0}
  .sidebar nav a,.sidebar nav .nav-parent{justify-content:center;padding:11px}
  .sidebar nav .nav-parent span{font-size:15px}
  .sidebar nav .nav-chevron{display:none}
  .sidebar nav .sub-link{margin-left:28px;min-height:30px;width:32px;padding:7px;font-size:0}
  .sidebar nav .sub-link::after{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;margin:auto}
  .sidebar .profile{justify-content:center;padding-inline:0}
  .main{margin-left:88px;padding:25px}
  .main>header{margin:-25px -25px 26px;padding:18px 25px;align-items:flex-start;flex-wrap:wrap}
  .header-actions{width:100%;margin-left:0}
  .header-actions .wallet-strip{flex:1}
}

@media(max-width:700px){
  body{background:#faf9fe}
  .sidebar{
    position:sticky;
    top:0;
    z-index:110;
    width:100%;height:70px;
    padding:10px 16px;
    flex-direction:row;
    align-items:center;
    overflow:visible;
    border-right:0;border-bottom:1px solid rgba(255,255,255,.1);
  }
  .sidebar .brand{width:145px;min-height:48px;height:48px;margin:0;padding:7px 11px}
  .sidebar nav,.sidebar .profile,.sidebar form{display:none}
  .main{margin:0;padding:20px 15px 48px}
  .main>header{display:block;margin:-20px -15px 22px;padding:17px 15px}
  .main h1{font-size:27px;margin-bottom:10px}
  .header-actions{display:flex;align-items:stretch;margin-top:13px;gap:9px;overflow:hidden}
  .header-actions .wallet-strip{overflow:auto;width:100%;margin:0}
  .wallet-strip>div{flex:0 0 112px;min-width:112px;padding:10px 11px}
  .wallet-strip strong{font-size:13px}
  .header-profile{display:none}
  .premium-hero,.hero{display:block;padding:25px 22px;border-radius:20px}
  .route-health,.mini-card{min-width:0;margin-top:22px}
  .card,.panel{padding:20px;border-radius:17px}
  .table-card{padding:0}
  .table-card .card-head{padding:20px}
  .primary,.secondary{min-height:48px}
  dialog{border-radius:18px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
