:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.55);
  --accent: #7c5cff;
  --accent2:#22d3ee;
  --danger:#ff3b5c;
  --ok:#2dd4bf;
  --shadow: 0 18px 40px rgba(0,0,0,0.35);
  --radius: 16px;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% 20%, rgba(124,92,255,0.35), transparent 60%),
    radial-gradient(1100px 650px at 85% 20%, rgba(34,211,238,0.26), transparent 55%),
    radial-gradient(1000px 700px at 50% 120%, rgba(255,59,92,0.14), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0b1220 60%, #07101f 100%);
}
a{ color: rgba(255,255,255,0.9); text-decoration:none; }
a:hover{ text-decoration:underline; }
.container{ max-width: 1080px; margin: 0 auto; padding: 26px 18px 40px; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7,11,20,0.62);
  border-bottom: 1px solid var(--border);
}
.topbar .inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand-badge{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
.nav{
  display:flex;
  gap: 10px;
  margin-left: 10px;
  flex-wrap: wrap;
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav a:hover{
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--text);
  text-decoration:none;
}
.right{
  margin-left:auto;
  display:flex;
  gap: 10px;
  align-items:center;
  color: var(--muted);
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); text-decoration:none; }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: linear-gradient(135deg, rgba(124,92,255,0.92), rgba(34,211,238,0.72));
  border-color: rgba(255,255,255,0.14);
}
.btn.danger{ background: rgba(255,59,92,0.14); border-color: rgba(255,59,92,0.35); }

.hero{
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero h1{ margin: 0 0 8px 0; font-size: 34px; letter-spacing: -0.6px; }
.hero p{ margin: 0; color: var(--muted); line-height: 1.5; }

.grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}
@media(max-width:900px){ .grid{ grid-template-columns: 1fr; } }

.card{
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card h2{ margin: 0 0 10px 0; font-size: 16px; color: rgba(255,255,255,0.92); letter-spacing: -0.2px;}
.small{ color: var(--muted2); font-size: 12px; }
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}
.input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7,11,20,0.55);
  color: var(--text);
  outline:none;
}
.input::placeholder{ color: rgba(255,255,255,0.35); }
.row{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap;}
.table{
  width: 100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  vertical-align: top;
}
.table th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
}
.table tr:hover td{ background: rgba(255,255,255,0.03); }
.tag{
  display:inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.footer{
  margin-top: 20px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dropdown{ position: relative; }
.menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 260px;
  max-height: 340px;
  overflow:auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(7,11,20,0.96);
  box-shadow: var(--shadow);
  display:none;
  padding: 6px;
}
.menu.open{ display:block; }
.menu a{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,0.86);
  text-decoration:none;
}
.menu a:hover{ background: rgba(255,255,255,0.08); }
.menu .hint{ padding: 8px 10px; color: rgba(255,255,255,0.55); font-size: 12px; }
.divider{ height:1px; background: rgba(255,255,255,0.10); margin: 6px 6px; }
.searchwrap{ position: relative; width:100%; }
.suggest{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 8px);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(7,11,20,0.96);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index: 20;
}
.suggest.open{ display:block; }
.suggest button{
  width:100%;
  text-align:left;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.86);
  padding: 10px 12px;
  cursor:pointer;
  font: inherit;
}
.suggest button:hover{ background: rgba(255,255,255,0.08); }

.brand img{
  height: 28px;
  width: auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}


.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 900px){.grid2{grid-template-columns:1fr}}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.label{font-size:12px;color:var(--muted);margin-bottom:6px}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.list{display:flex;flex-direction:column;gap:10px}
.itemRow{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,0.02)}
.itemRow .title{font-size:14px}
.itemRow .left{flex:1}
.itemRow .right{flex:0}
.modal{position:fixed;inset:0;background:rgba(0,0,0,0.72);display:none;align-items:center;justify-content:center;padding:14px;z-index:50}
.modal.open{display:flex}
.modalInner{width:100%;max-width:720px;background:#0f1524;border:1px solid var(--border);border-radius:18px;padding:14px;box-shadow:0 10px 40px rgba(0,0,0,0.4)}

/* Integrations page rebuild */
.pageHead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:10px 0 16px 0}
.pageHead h1{margin:0;font-size:28px}
.cardHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.toggle{display:flex;gap:10px;align-items:center}
.ruleRow{padding:10px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,0.02);margin-bottom:10px}
.muted{color:var(--muted)}


/* Neon Glass UI */
:root{
  --neonA: rgba(168,85,247,0.85);
  --neonB: rgba(34,211,238,0.75);
  --glass: rgba(255,255,255,0.06);
  --glass2: rgba(255,255,255,0.03);
  --shadowNeon: 0 0 0 1px rgba(168,85,247,0.25), 0 8px 30px rgba(0,0,0,0.55);
}

/* Background mesh */
body::before{
  content:"";
  position:fixed;
  inset:-20vh;
  background:
    radial-gradient(60vh 60vh at 15% 20%, rgba(168,85,247,0.22), transparent 60%),
    radial-gradient(55vh 55vh at 85% 30%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(70vh 70vh at 60% 85%, rgba(168,85,247,0.14), transparent 65%);
  filter: blur(12px);
  z-index:-2;
  animation: meshMove 18s ease-in-out infinite alternate;
  pointer-events:none;
}
@keyframes meshMove{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{ transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

/* Glass cards */
.card{
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadowNeon);
  backdrop-filter: blur(10px);
}
.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: radial-gradient(120% 120% at 20% 0%, rgba(34,211,238,0.10), transparent 55%);
  opacity: 0.9;
}
.card{ position:relative; overflow:hidden; }

/* Inputs focus neon */
.input:focus{
  outline:none;
  border-color: rgba(34,211,238,0.55);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.18), 0 0 0 1px rgba(168,85,247,0.12);
}

/* Buttons: hover lift + press */
.btn{
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  transform: translateY(0);
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.20), 0 10px 30px rgba(0,0,0,0.55);
}
.btn:active{
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.22), 0 6px 18px rgba(0,0,0,0.45);
}
.btn.primary{
  background: linear-gradient(90deg, rgba(168,85,247,0.95), rgba(34,211,238,0.85));
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.25), 0 12px 34px rgba(0,0,0,0.55);
}
.btn.primary:hover{
  box-shadow: 0 0 0 1px rgba(34,211,238,0.28), 0 16px 40px rgba(0,0,0,0.6);
}

/* Page fade + slide in */
.page-enter{
  opacity:0;
  transform: translateY(8px);
  animation: pageEnter 220ms ease-out forwards;
}
@keyframes pageEnter{
  to{ opacity:1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  body::before{ animation:none; }
  .page-enter{ animation:none; opacity:1; transform:none; }
  .btn{ transition:none; }
}

/* Modal backdrop + scale/fade */
.modal{
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
}
.modal .modalInner{
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  background: linear-gradient(180deg, rgba(17,24,39,0.92), rgba(17,24,39,0.76));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.18), 0 28px 80px rgba(0,0,0,0.72);
}
.modal.open .modalInner{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Toasts */
.toasts{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 9999;
}
.toast{
  min-width: 260px;
  max-width: 420px;
  padding: 12px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,24,39,0.92), rgba(17,24,39,0.76));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.18), 0 18px 50px rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  animation: toastIn 180ms ease-out both;
}
@keyframes toastIn{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}
.toast .tTitle{ font-weight:700; }
.toast .tBody{ color: var(--muted); font-size: 13px; margin-top:4px; line-height:1.3; }
.toast.good{ box-shadow: 0 0 0 1px rgba(34,211,238,0.20), 0 18px 50px rgba(0,0,0,0.65); }
.toast.bad{ box-shadow: 0 0 0 1px rgba(239,68,68,0.25), 0 18px 50px rgba(0,0,0,0.65); }

/* Skeletons */
.skel{
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: skel 1.15s ease-in-out infinite;
}
@keyframes skel{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}
.skelRow{ height: 46px; margin-bottom:10px; border:1px solid rgba(255,255,255,0.06); }

/* Live bars */
.bar{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 8px;
}
.bar > i{
  display:block;
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(168,85,247,0.95), rgba(34,211,238,0.85));
  box-shadow: 0 0 22px rgba(34,211,238,0.16);
  transition: width 200ms linear;
}


/* Global Neon Overrides */
/* Links */
a{ color: rgba(34,211,238,0.92); text-decoration:none; }
a:hover{ text-decoration: underline; }

/* Topbar / nav */
.topbar, header.topbar, .nav, nav{
  background: linear-gradient(180deg, rgba(17,24,39,0.70), rgba(17,24,39,0.40));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.topbar a, nav a{ color: rgba(255,255,255,0.88); }
.topbar a:hover, nav a:hover{ color: rgba(34,211,238,0.95); }

/* Headings */
h1,h2,h3{ letter-spacing: -0.02em; }
h1{ font-size: 30px; }
h2{ font-size: 18px; }

/* Panels/containers that are not using .card */
.panel, .box, .section, .hero{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: var(--shadowNeon);
  backdrop-filter: blur(10px);
}

/* Tables */
table{ width:100%; border-collapse: separate; border-spacing: 0 10px; }
th{ text-align:left; font-size:12px; color: var(--muted); font-weight:600; padding: 6px 10px; }
td{
  padding: 12px 10px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
tr td:first-child{
  border-left: 1px solid rgba(255,255,255,0.07);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
tr td:last-child{
  border-right: 1px solid rgba(255,255,255,0.07);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Chips / badges */
.badge, .tag, .chip{
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.12);
  font-size: 12px;
}

/* Secondary cards in lists */
.listItem, .rowCard{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

/* Utility */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: var(--shadowNeon);
  backdrop-filter: blur(10px);
}


/* iOS Glass Theme */
:root{
  --iosGlass: rgba(255,255,255,0.10);
  --iosGlass2: rgba(255,255,255,0.06);
  --iosStroke: rgba(255,255,255,0.18);
  --iosStroke2: rgba(0,0,0,0.18);
  --iosShadow: 0 18px 55px rgba(0,0,0,0.55);
  --iosShadowSoft: 0 10px 35px rgba(0,0,0,0.45);
  --iosHighlight: rgba(255,255,255,0.22);
  --iosAccent: rgba(34,211,238,0.85); /* keep cyan accent */
  --iosAccent2: rgba(168,85,247,0.80); /* keep purple accent */
  --radiusXL: 22px;
  --radiusL: 18px;
  --radiusM: 14px;
}

/* Softer mesh (less neon) */
body::before{
  background:
    radial-gradient(70vh 70vh at 15% 18%, rgba(168,85,247,0.14), transparent 62%),
    radial-gradient(65vh 65vh at 85% 28%, rgba(34,211,238,0.10), transparent 62%),
    radial-gradient(78vh 78vh at 60% 88%, rgba(255,255,255,0.06), transparent 70%);
  filter: blur(22px) saturate(1.05);
  opacity: 0.95;
}

/* iOS-style frosted cards */
.card, .panel, .box, .section, .hero, .glass{
  background: linear-gradient(180deg, var(--iosGlass), var(--iosGlass2));
  border: 1px solid var(--iosStroke);
  border-radius: var(--radiusXL);
  box-shadow: var(--iosShadow);
  backdrop-filter: blur(16px) saturate(1.25);
}
.card::after{
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(255,255,255,0.10), transparent 55%);
  opacity: 1;
}

/* Topbar like iOS blur */
.topbar, header.topbar, nav, .nav{
  background: linear-gradient(180deg, rgba(17,24,39,0.45), rgba(17,24,39,0.20));
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(18px) saturate(1.25);
}

/* Buttons: iOS pill + gentle lift */
.btn{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--iosShadowSoft);
}
.btn:hover{
  transform: translateY(-1.5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.20);
}
.btn:active{
  transform: translateY(0) scale(0.985);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.btn.primary{
  background:
    radial-gradient(140% 200% at 20% 0%, rgba(255,255,255,0.22), transparent 40%),
    linear-gradient(90deg, rgba(34,211,238,0.75), rgba(168,85,247,0.70));
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 18px 55px rgba(0,0,0,0.60);
}

/* Inputs: iOS inset glass */
.input{
  border-radius: var(--radiusM);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.input:focus{
  border-color: rgba(255,255,255,0.20);
  box-shadow:
    0 0 0 3px rgba(34,211,238,0.12),
    0 0 0 1px rgba(255,255,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Pills/badges: iOS chip */
.pill, .badge, .tag, .chip{
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Modal: true frosted sheet */
.modal{
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
}
.modal .modalInner{
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 26px 90px rgba(0,0,0,0.72);
  backdrop-filter: blur(20px) saturate(1.35);
}

/* Toasts: iOS banner */
.toast{
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 20px 70px rgba(0,0,0,0.65);
  backdrop-filter: blur(18px) saturate(1.25);
}

/* Tables: iOS list rows */
table{ border-spacing: 0 12px; }
td{
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
tr td:first-child{ border-left: 1px solid rgba(255,255,255,0.10); }
tr td:last-child{ border-right: 1px solid rgba(255,255,255,0.10); }

/* Reduce neon glow intensity */
.btn.primary, .bar > i{
  box-shadow: 0 0 18px rgba(34,211,238,0.10);
}


/* Studio Slate Theme */
/* This theme intentionally overrides the previous glass/neon styles */
:root{
  --bg0: #0b1020;
  --bg1: #0f1730;
  --panel: #101a33;
  --panel2: #0f1830;
  --stroke: rgba(255,255,255,0.08);
  --stroke2: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted2: rgba(255,255,255,0.62);
  --accent: #7c3aed; /* purple */
  --accent2: #06b6d4; /* cyan */
  --shadow: 0 14px 40px rgba(0,0,0,0.55);
  --rXL: 20px;
  --rL: 16px;
  --rM: 12px;
}

body{
  background: radial-gradient(1200px 700px at 18% 10%, rgba(124,58,237,0.18), transparent 55%),
              radial-gradient(1000px 600px at 92% 15%, rgba(6,182,212,0.14), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
}
/* Kill mesh layer from prior themes */
body::before{ display:none !important; }

/* Layout */
.container{ max-width: 1180px; }

/* Topbar: solid, crisp */
.topbar, header.topbar, nav, .nav{
  background: rgba(15,23,48,0.92);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: none !important;
}

/* Cards: solid matte */
.card, .panel, .box, .section, .hero, .glass{
  background: linear-gradient(180deg, rgba(16,26,51,0.92), rgba(15,24,48,0.92));
  border: 1px solid var(--stroke);
  border-radius: var(--rXL);
  box-shadow: var(--shadow);
  backdrop-filter: none !important;
}
.card::after{ display:none !important; }

/* Headings + subtle accent underline */
h1{
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
h1::after{
  content:"";
  display:block;
  height: 3px;
  width: 58px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.85;
}
.muted{ color: var(--muted2); }

/* Inputs: flat modern */
.input{
  background: rgba(10,16,32,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--rM);
  box-shadow: none;
}
.input:focus{
  outline: none;
  border-color: rgba(6,182,212,0.45);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.14);
}

/* Buttons: squared-ish, no glow */
.btn{
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
}
.btn:active{
  transform: translateY(0) scale(0.99);
}
.btn.primary{
  background: linear-gradient(90deg, rgba(124,58,237,0.95), rgba(6,182,212,0.85));
  border-color: rgba(255,255,255,0.14);
}

/* Pills/badges: sharp */
.pill, .badge, .tag, .chip{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  box-shadow: none;
}

/* Modal: clean sheet, not glassy */
.modal{
  background: rgba(0,0,0,0.72);
  backdrop-filter: none !important;
}
.modal .modalInner{
  background: linear-gradient(180deg, rgba(16,26,51,0.98), rgba(15,24,48,0.98));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.70);
  backdrop-filter: none !important;
}

/* Toasts: compact */
.toast{
  background: rgba(15,23,48,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.65);
  backdrop-filter: none !important;
}
.toast.good{ border-color: rgba(6,182,212,0.28); }
.toast.bad{ border-color: rgba(239,68,68,0.35); }

/* Tables: compact rows */
table{ border-collapse: separate; border-spacing: 0 10px; }
td{
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
tr td:first-child{ border-left: 1px solid rgba(255,255,255,0.08); }
tr td:last-child{ border-right: 1px solid rgba(255,255,255,0.08); }

/* Bars: clean gradient */
.bar{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.bar > i{
  background: linear-gradient(90deg, rgba(124,58,237,0.95), rgba(6,182,212,0.85));
  box-shadow: none;
}
