
:root{
  --bg:#07070a;--panel:#111116;--panel2:#17171f;--line:#282833;
  --text:#f7f7fb;--muted:#9c9cab;--purple:#7047ff;--purple2:#9b80ff;
  --green:#4bd59b;--red:#ff5a6a;--amber:#f4b84a;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:
radial-gradient(circle at 85% 5%,rgba(112,71,255,.13),transparent 30%),var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}
.container{width:min(1180px,calc(100% - 36px));margin:auto}
.nav{position:sticky;top:0;z-index:50;background:rgba(7,7,10,.86);backdrop-filter:blur(16px);border-bottom:1px solid #1d1d25}
.nav-inner{height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:11px;font-weight:850;font-size:20px}
.mark{width:38px;height:38px;border-radius:14px;background:linear-gradient(145deg,var(--purple),#3213a4);box-shadow:0 8px 28px rgba(112,71,255,.35);position:relative}
.mark:before{content:"";position:absolute;inset:9px;border:2px solid white;border-radius:50%}
.links{display:flex;gap:28px;color:#d1d1da;font-size:14px}.links a:hover{color:#fff}
.actions{display:flex;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:14px;padding:12px 17px;font-weight:750;font-size:14px;cursor:pointer}
.btn-primary{background:linear-gradient(135deg,var(--purple),#5729ed);color:white;box-shadow:0 12px 28px rgba(112,71,255,.22)}
.btn-secondary{background:#121218;border-color:#2b2b35;color:white}
.btn-danger{background:rgba(255,90,106,.12);border-color:rgba(255,90,106,.25);color:#ff8591}
.hero{padding:90px 0 74px}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:60px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(155,128,255,.3);background:rgba(112,71,255,.08);border-radius:999px;padding:7px 11px;color:#c5b6ff;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.dot{width:7px;height:7px;border-radius:50%;background:var(--green)}
h1{font-size:clamp(48px,6vw,76px);line-height:.98;letter-spacing:-.055em;margin:22px 0}
h2{font-size:clamp(32px,4vw,48px);line-height:1.05;letter-spacing:-.04em}
.gradient{background:linear-gradient(90deg,#fff,#b9a7ff 48%,#7a57ff);-webkit-background-clip:text;color:transparent}
.lead{color:var(--muted);font-size:18px;max-width:680px;line-height:1.65}
.hero-actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.mock{border:1px solid #292934;border-radius:30px;background:linear-gradient(145deg,#16151e,#0c0c10);padding:24px;box-shadow:0 28px 70px rgba(0,0,0,.38)}
.profile{border:1px solid #2a2a35;border-radius:20px;padding:18px;background:#101015}.profile small{color:var(--muted)}.profile b{display:block;font-size:23px;margin-top:6px}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.mini{border:1px solid #282832;border-radius:18px;padding:18px;text-align:center;background:#0d0d11}.mini .i{font-size:22px;color:var(--purple2);margin-bottom:6px}
.section{padding:82px 0}.section-head{max-width:760px;margin-bottom:36px}.section-head p{color:var(--muted);font-size:16px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{border:1px solid #24242e;border-radius:23px;padding:25px;background:linear-gradient(145deg,#131318,#0e0e12)}
.card h3{margin:6px 0 8px}.card p{color:var(--muted);font-size:14px}.icon{width:46px;height:46px;border-radius:15px;background:rgba(112,71,255,.12);display:grid;place-items:center;color:#aa96ff;font-size:20px}
.footer{padding:45px 0;border-top:1px solid #1e1e26;color:#83838f;font-size:12px}
.auth{min-height:calc(100vh - 74px);display:grid;place-items:center;padding:50px 18px}.auth-card{width:min(460px,100%);border:1px solid #282833;background:#101014;border-radius:26px;padding:30px;box-shadow:0 26px 70px rgba(0,0,0,.35)}
.auth-card h1{font-size:34px;margin:0 0 8px}.auth-card p{color:var(--muted);font-size:14px}
.field{margin-top:15px}.field label{display:block;font-size:12px;color:#aaaab5;margin-bottom:7px}
.field input,.field select{width:100%;border:1px solid #2c2c37;background:#0b0b0f;color:#fff;border-radius:13px;padding:13px 14px;outline:none}
.field input:focus,.field select:focus{border-color:#7357e8}.w100{width:100%}
.alert{border-radius:14px;padding:12px 14px;margin:14px 0;font-size:13px}.alert-error{background:rgba(255,90,106,.1);border:1px solid rgba(255,90,106,.24);color:#ff9da6}.alert-ok{background:rgba(75,213,155,.1);border:1px solid rgba(75,213,155,.24);color:#83e6bd}
.dash-shell{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 74px)}.side{border-right:1px solid #202028;padding:24px 16px;background:#0b0b0e}
.side a{display:block;padding:12px 13px;border-radius:12px;color:#90909c;font-size:14px;margin:3px 0}.side a.active,.side a:hover{background:rgba(112,71,255,.11);color:#cbbfff}
.main{padding:34px}.topline{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.topline h1{font-size:34px;margin:0}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric{border:1px solid #25252f;background:#111116;border-radius:18px;padding:18px}.metric small{color:#8e8e99}.metric b{display:block;font-size:26px;margin-top:5px}
.table-card{margin-top:20px;border:1px solid #25252f;border-radius:22px;background:#101014;overflow:hidden}.table-head{padding:18px 20px;border-bottom:1px solid #25252f;display:flex;justify-content:space-between;align-items:center}
.table{width:100%;border-collapse:collapse}.table td,.table th{padding:15px 18px;border-bottom:1px solid #202028;text-align:left;font-size:13px}.table th{color:#858590;font-weight:650}.table td{color:#dddde5}.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.badge-ok{background:rgba(75,213,155,.1);color:#76dfb3}.badge-test{background:rgba(112,71,255,.12);color:#b29eff}
.empty{padding:50px 22px;text-align:center;color:#858590}.empty b{display:block;color:#fff;font-size:18px;margin-bottom:6px}
.modal-card{max-width:650px}.hint{font-size:11px;color:#6f6f7b;margin-top:6px}.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.setup{max-width:760px;margin:55px auto;padding:0 18px}.setup-card{border:1px solid #282833;border-radius:24px;background:#101014;padding:28px}
code{background:#15151b;border:1px solid #25252f;padding:2px 6px;border-radius:6px;color:#c5b6ff}
@media(max-width:900px){.links{display:none}.hero-grid{grid-template-columns:1fr}.grid3{grid-template-columns:1fr 1fr}.dash-shell{grid-template-columns:1fr}.side{display:none}.metrics{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.container{width:min(100% - 26px,1180px)}.hero{padding-top:55px}.grid3,.metrics,.row2{grid-template-columns:1fr}.main{padding:22px 15px}.actions .btn-secondary{display:none}.table-card{overflow:auto}}


/* =========================================================
   CONNECT NOW — CUSTOMER DASHBOARD v3
   Polished portal UI. Backend logic intentionally untouched.
   ========================================================= */

:root{
  --dash-sidebar:#0b0b10;
  --dash-surface:#101015;
  --dash-surface-2:#14141b;
  --dash-border:#24242f;
  --dash-muted:#9292a0;
  --dash-purple:#7047ff;
  --dash-purple-soft:#a28cff;
  --dash-green:#54d7a0;
  --dash-red:#ff6474;
}

.portal-shell{
  min-height:calc(100vh - 74px);
  display:grid;
  grid-template-columns:248px minmax(0,1fr);
  background:
    radial-gradient(circle at 88% 4%,rgba(112,71,255,.11),transparent 26%),
    #08080c;
}

.portal-sidebar{
  position:sticky;
  top:74px;
  align-self:start;
  height:calc(100vh - 74px);
  border-right:1px solid var(--dash-border);
  background:linear-gradient(180deg,#0b0b10 0%,#09090d 100%);
  padding:22px 14px;
  overflow-y:auto;
}

.portal-sidebar .account-kicker{
  color:#666675;
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:0 12px 10px;
}

.portal-user-card{
  border:1px solid #22222c;
  background:#101015;
  border-radius:17px;
  padding:13px;
  margin:0 4px 18px;
  display:flex;
  align-items:center;
  gap:11px;
}

.portal-avatar{
  width:38px;height:38px;border-radius:13px;
  background:linear-gradient(145deg,#7a54ff,#3e1ac1);
  display:grid;place-items:center;
  color:#fff;font-weight:850;font-size:14px;
  box-shadow:0 10px 24px rgba(112,71,255,.22);
}

.portal-user-card b{
  display:block;
  font-size:12px;
  color:#f5f5fa;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.portal-user-card span{
  display:block;
  font-size:10px;
  color:#7e7e8b;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.portal-nav{
  display:grid;
  gap:5px;
}
.portal-nav a{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:0 12px;
  border-radius:13px;
  color:#91919e;
  font-size:13px;
  font-weight:650;
  border:1px solid transparent;
  transition:.18s ease;
}
.portal-nav a .nav-icon{
  width:28px;height:28px;border-radius:9px;
  display:grid;place-items:center;
  background:#111118;
  color:#7f7f8c;
  font-size:13px;
  transition:.18s ease;
}
.portal-nav a:hover{
  color:#ededf5;
  background:#111117;
  border-color:#20202a;
}
.portal-nav a.active{
  color:#fff;
  background:linear-gradient(135deg,rgba(112,71,255,.18),rgba(112,71,255,.08));
  border-color:rgba(112,71,255,.25);
}
.portal-nav a.active .nav-icon{
  background:var(--dash-purple);
  color:white;
  box-shadow:0 7px 18px rgba(112,71,255,.24);
}

.portal-main{
  min-width:0;
  padding:34px 36px 54px;
}

.portal-topline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.portal-topline h1{
  font-size:36px;
  line-height:1.05;
  letter-spacing:-.045em;
  margin:0 0 7px;
}
.portal-topline p{
  margin:0;
  color:var(--dash-muted);
  font-size:13px;
}
.portal-topline-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
  margin-bottom:20px;
}
.stat-card{
  border:1px solid var(--dash-border);
  border-radius:19px;
  background:linear-gradient(145deg,#121218,#0e0e13);
  padding:17px 18px;
  min-height:112px;
  position:relative;
  overflow:hidden;
}
.stat-card:after{
  content:"";
  position:absolute;
  width:80px;height:80px;border-radius:50%;
  right:-28px;bottom:-36px;
  background:radial-gradient(circle,rgba(112,71,255,.18),transparent 70%);
}
.stat-label{
  color:#858592;
  font-size:11px;
  font-weight:650;
}
.stat-value{
  display:block;
  font-size:28px;
  font-weight:850;
  margin-top:7px;
  letter-spacing:-.035em;
}
.stat-note{
  color:#6f6f7b;
  font-size:10px;
  margin-top:4px;
}

.portal-panel{
  border:1px solid var(--dash-border);
  border-radius:21px;
  background:linear-gradient(145deg,#111116,#0d0d12);
  overflow:hidden;
  box-shadow:0 14px 42px rgba(0,0,0,.15);
}
.portal-panel + .portal-panel{
  margin-top:16px;
}
.portal-panel-head{
  min-height:61px;
  padding:0 19px;
  border-bottom:1px solid var(--dash-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}
.portal-panel-head b{
  font-size:14px;
}
.portal-panel-head span{
  color:#777784;
  font-size:11px;
}
.portal-panel-body{
  padding:20px;
}

.profile-create-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px;
  gap:12px;
  align-items:end;
}
.profile-create-box .field{margin:0}

.portal-table-wrap{
  overflow:auto;
}
.portal-table{
  width:100%;
  border-collapse:collapse;
}
.portal-table th{
  color:#72727e;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:800;
  padding:13px 18px;
  text-align:left;
  background:#0f0f14;
  border-bottom:1px solid #202029;
}
.portal-table td{
  padding:15px 18px;
  border-bottom:1px solid #202029;
  color:#dedee7;
  font-size:13px;
  vertical-align:middle;
}
.portal-table tbody tr:last-child td{border-bottom:0}
.portal-table tbody tr:hover{background:#121219}
.profile-name-cell{
  display:flex;
  align-items:center;
  gap:11px;
}
.profile-dot{
  width:36px;height:36px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(112,71,255,.12);
  border:1px solid rgba(112,71,255,.18);
  color:#ad99ff;
  font-weight:850;
  font-size:12px;
}
.profile-name-cell b{
  display:block;
  color:#fff;
  font-size:13px;
}
.profile-name-cell small{
  display:block;
  color:#747480;
  font-size:10px;
  margin-top:2px;
}

.portal-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 9px;
  font-size:10px;
  font-weight:800;
}
.portal-status:before{
  content:"";
  width:6px;height:6px;border-radius:50%;
}
.portal-status.pending{
  color:#c2adff;
  background:rgba(112,71,255,.12);
}
.portal-status.pending:before{background:#8b6cff}
.portal-status.active{
  color:#8ce8c0;
  background:rgba(84,215,160,.10);
}
.portal-status.active:before{background:#54d7a0}

.portal-empty{
  padding:52px 22px;
  text-align:center;
}
.portal-empty-icon{
  width:62px;height:62px;border-radius:20px;
  margin:0 auto 15px;
  display:grid;place-items:center;
  background:rgba(112,71,255,.10);
  color:#a791ff;
  font-size:24px;
}
.portal-empty b{
  display:block;
  font-size:17px;
  margin-bottom:5px;
}
.portal-empty p{
  max-width:460px;
  margin:0 auto;
  color:#777783;
  font-size:12px;
}

.portal-hint{
  margin-top:11px;
  color:#686875;
  font-size:11px;
}

.danger-link{
  border:1px solid rgba(255,100,116,.22);
  background:rgba(255,100,116,.07);
  color:#ff8a96;
  border-radius:10px;
  padding:8px 11px;
  cursor:pointer;
  font-weight:750;
  font-size:11px;
}
.danger-link:hover{background:rgba(255,100,116,.12)}

.quick-actions-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:16px;
}
.quick-action{
  border:1px solid var(--dash-border);
  border-radius:17px;
  background:#101015;
  padding:16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.quick-action-icon{
  width:40px;height:40px;border-radius:13px;
  background:rgba(112,71,255,.12);
  display:grid;place-items:center;color:#a993ff;
}
.quick-action b{display:block;font-size:12px}
.quick-action span{display:block;color:#72727e;font-size:10px;margin-top:2px}

@media(max-width:1000px){
  .portal-shell{grid-template-columns:86px minmax(0,1fr)}
  .portal-sidebar{padding:18px 10px}
  .portal-user-card{padding:10px;justify-content:center}
  .portal-user-card .portal-user-copy,.portal-sidebar .account-kicker{display:none}
  .portal-nav a{justify-content:center;padding:0}
  .portal-nav a span:last-child{display:none}
  .portal-nav a .nav-icon{width:34px;height:34px}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
  .portal-shell{display:block}
  .portal-sidebar{
    position:static;height:auto;border-right:0;border-bottom:1px solid var(--dash-border);
    padding:10px 12px;overflow-x:auto;
  }
  .portal-user-card{display:none}
  .portal-nav{display:flex;gap:7px;min-width:max-content}
  .portal-nav a{width:42px;height:42px;min-height:42px}
  .portal-main{padding:23px 14px 40px}
  .portal-topline{align-items:flex-start;flex-direction:column}
  .stat-grid{grid-template-columns:1fr 1fr}
  .profile-create-box{grid-template-columns:1fr}
  .quick-actions-grid{grid-template-columns:1fr}
}
