:root{
  --bg0:#050606;
  --bg1:#090b0a;
  --card:rgba(255,255,255,.04);
  --card2:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.10);
  --text:#f4f5f5;
  --muted:rgba(244,245,245,.72);
  --muted2:rgba(244,245,245,.56);
  --accent:#22c55e;
  --accent2:#16a34a;
  --danger:#fb7185;
  --shadow:0 14px 36px rgba(0,0,0,.45);
  --radius:18px;
}
*{box-sizing:border-box}
html{height:100%; background:var(--bg1); color-scheme:dark}
body{min-height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background:linear-gradient(180deg, var(--bg0), var(--bg1));
}
a{color:inherit}
.page{
  min-height:100%;
  padding:56px 18px;
}
.container{
  width:min(1100px,100%);
  margin:0 auto;
}
.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card.panel{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.card.panel > *{position:relative; z-index:1}
.card.panel:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  opacity:.55;
  transition:opacity .16s ease;
  z-index:0;
  inset:-2px;
  background:conic-gradient(
    from 0deg,
    transparent 0 68%,
    rgba(34,197,94,.18) 70%,
    rgba(34,197,94,.95) 78%,
    rgba(34,197,94,.18) 86%,
    transparent 90% 100%
  );
  animation:neon-rot 5.2s linear infinite;
}
.card.panel:after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:calc(var(--radius) - 2px);
  pointer-events:none;
  opacity:1;
  z-index:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    linear-gradient(#0b0d0c, #0b0d0c);
}
.card.panel:hover:before,
.card.panel:focus-within:before{opacity:.9}
@keyframes neon-rot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){
  .card.panel:before{animation:none}
}
.logo-text{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  font-weight:950;
  letter-spacing:-.04em;
  line-height:1;
  font-size:18px;
  text-transform:lowercase;
}
.logo-nyx{
  background:linear-gradient(180deg, rgba(34,197,94,1), rgba(22,163,74,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 18px rgba(34,197,94,.22);
}
.logo-vips{
  color:rgba(244,245,245,.92);
  text-shadow:0 0 16px rgba(255,255,255,.06);
}
.hero-card{
  padding:30px;
}
.badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
}
.title{
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.02em;
  margin:14px 0 10px;
}
.subtitle{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}
.cta{
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.landing-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.landing-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.landing-brand-name{
  font-weight:900;
  letter-spacing:-.01em;
}
.landing-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.landing-section{
  margin-top:22px;
}
.section-head{
  margin-bottom:12px;
}
.section-title{
  margin:0;
  font-size:20px;
  font-weight:900;
  letter-spacing:-.01em;
}
.section-subtitle{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.landing-footer{
  margin-top:26px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.landing-footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.landing-bullets{
  margin-top:14px;
}
.btn{
  border:1px solid transparent;
  border-radius:14px;
  padding:10px 14px;
  font-weight:650;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.btn-sm{
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
}
.btn-primary{
  background:linear-gradient(180deg, rgba(34,197,94,1), rgba(22,163,74,1));
  color:#051108;
  box-shadow:0 10px 22px rgba(34,197,94,.18);
}
.btn-secondary{
  background:rgba(255,255,255,.06);
  border-color:var(--border);
  color:var(--text);
}
.btn-ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--text);
}
.btn.active{
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.25);
  color:#dcfce7;
}
.btn-danger{
  background:rgba(251,113,133,.12);
  border-color:rgba(251,113,133,.35);
  color:#ffd6dc;
}
.btn-danger:hover{
  background:rgba(251,113,133,.16);
  border-color:rgba(251,113,133,.45);
}
.btn-danger-ghost{
  background:transparent;
  border-color:rgba(251,113,133,.25);
  color:#ffd6dc;
}
.btn-danger-ghost:hover{
  background:rgba(251,113,133,.10);
  border-color:rgba(251,113,133,.40);
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary:hover{box-shadow:0 14px 28px rgba(34,197,94,.22)}
.btn-ghost:hover,.btn-secondary:hover{background:rgba(255,255,255,.08)}
.btn:disabled,.btn.is-loading{
  opacity:.72;
  cursor:progress;
  transform:none;
}
.toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
  position:relative;
}
.toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}
.toggle-ui{
  width:46px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  position:relative;
  flex:0 0 auto;
  transition:background .15s ease, border-color .15s ease;
}
.toggle-ui:after{
  content:"";
  position:absolute;
  top:50%;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  transform:translateY(-50%);
  background:rgba(255,255,255,.9);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  transition:left .15s ease, background .15s ease;
}
.toggle input:checked + .toggle-ui{
  background:rgba(34,197,94,.22);
  border-color:rgba(34,197,94,.55);
}
.toggle input:checked + .toggle-ui:after{
  left:23px;
  background:#f4f5f5;
}
.toggle input:focus + .toggle-ui{
  box-shadow:0 0 0 5px rgba(34,197,94,.18);
}
.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}
.stat{
  padding:16px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--card2);
}
.stat-label{
  color:var(--muted);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.stat-value{font-size:22px; font-weight:850; margin-top:8px; letter-spacing:-.01em}
.auth-wrap{
  width:min(520px,100%);
  margin:0 auto;
}
.auth-card{
  padding:22px;
}
.form{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.label{font-size:13px; color:var(--muted)}
.input{
  height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.22);
  color:var(--text);
  padding:0 14px;
  outline:none;
  width:100%;
  max-width:100%;
  min-width:0;
  transition:border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.input[type="file"]{padding:0}
select.input{
  appearance:none;
  -webkit-appearance:none;
  padding-right:42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(244,245,245,.75) 50%),
    linear-gradient(135deg, rgba(244,245,245,.75) 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,.10), rgba(255,255,255,0));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 44px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 26px;
  background-repeat:no-repeat;
}
select.input option{
  background:#0b0d0c;
  color:var(--text);
}
.input::placeholder{color:rgba(244,245,245,.32)}
.input:disabled{opacity:.7; cursor:not-allowed}
.file{
  position:relative;
}
.file-native{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.file-ui{
  height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  width:100%;
  max-width:100%;
}
.file-btn{
  border-radius:12px;
  padding:8px 10px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
  font-weight:750;
  color:var(--text);
  white-space:nowrap;
}
.file-name{
  color:var(--muted2);
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.input:focus{
  border-color:rgba(34,197,94,.55);
  box-shadow:0 0 0 5px rgba(34,197,94,.18);
}
.file:focus-within .file-ui{
  border-color:rgba(34,197,94,.55);
  box-shadow:0 0 0 5px rgba(34,197,94,.18);
}
.hint{color:var(--muted2); font-size:13px}
.error{
  border:1px solid rgba(251,113,133,.35);
  background:rgba(251,113,133,.10);
  color:#fecdd3;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
}
.app-shell{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100%;
}
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.70);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:40;
}
.nav-toggle{
  position:fixed;
  top:14px;
  left:14px;
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.78);
  color:var(--text);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:60;
  box-shadow:0 18px 40px rgba(0,0,0,.55);
}
.nav-toggle:active{transform:translateY(1px)}
.nav-toggle svg{width:20px;height:20px}

body.sidebar-open .nav-toggle{opacity:0; pointer-events:none}
.sidebar{
  position:sticky;
  top:0;
  padding:16px;
  border-right:none;
  background:linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.26));
}
.sidebar:after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:2px;
  height:100%;
  background:linear-gradient(180deg, transparent, rgba(34,197,94,.45), transparent);
  opacity:.85;
  pointer-events:none;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 8px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:12px;
}
.bot-switch{
  padding:0 8px 12px;
}
.brand-mark{
  width:38px;height:38px;border-radius:14px;
  background:linear-gradient(180deg, rgba(34,197,94,1), rgba(22,163,74,1));
  color:#051108;
  display:grid;place-items:center;
  font-weight:900;
  letter-spacing:-.02em;
}
.brand-name{font-weight:900; letter-spacing:-.01em}
.nav{display:flex; flex-direction:column; gap:6px}
.nav-item{
  padding:12px 12px 12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:transparent;
  color:rgba(244,245,245,.86);
  text-decoration:none;
  font-weight:780;
  transition:background .12s ease, border-color .12s ease, color .12s ease;
}
.nav-item:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.10);
  color:var(--text);
}
.nav-item.active{
  background:rgba(34,197,94,.10);
  border-color:rgba(34,197,94,.28);
  color:#dcfce7;
  box-shadow:inset 3px 0 0 rgba(34,197,94,.95);
}
.sidebar-footer{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:12px;
}
.user-pill{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(0,0,0,.20);
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sidebar-footer .btn{width:100%}
.main{
  padding:26px 18px;
  overflow-x:hidden;
}
.main-inner{
  width:min(1180px,100%);
  margin:0 auto;
  overflow-x:hidden;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.h1{font-size:22px; font-weight:850; letter-spacing:-.01em; margin:0}
.pill{
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 10px;
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-size:13px;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:6px;
  margin-top:6px;
  white-space:nowrap;
}
.pill-sm{padding:6px 8px; font-size:12px; white-space:nowrap}
.panel{
  padding:18px;
}
.panel-title{font-weight:780; margin:0 0 8px}
.panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.panel-header h2{
  margin:0;
  font-size:18px;
  font-weight:850;
  letter-spacing:-.01em;
}
.row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.row > *{max-width:100%; min-width:0}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.grid-4{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}
.input-group{
  display:flex;
  gap:10px;
  align-items:center;
}
.input-group .btn{white-space:nowrap}
.btn-row-right{justify-content:flex-end}
.textarea{
  height:140px;
  padding:12px 14px;
  resize:vertical;
}
.pill-sm{
  padding:6px 10px;
  font-size:12px;
  border-radius:999px;
}
.pill-green{
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.12);
  color:#dcfce7;
}
.pill-yellow{
  border-color:rgba(245,158,11,.35);
  background:rgba(245,158,11,.12);
  color:#ffedd5;
}
.pill-purple{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(244,245,245,.92);
}
.pill-gray{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(244,245,245,.78);
}
.r-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  align-items:start;
}
.r-item{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:14px;
  box-shadow:none;
}
.r-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.r-title{
  font-weight:850;
  letter-spacing:-.01em;
}
.r-meta{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.r-small{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}
.r-actions{
  margin-top:12px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.r-edit{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
}
.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn-row > *{max-width:100%}
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
  padding:8px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}
.chart{
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  padding:12px;
}
.chart svg{
  width:100%;
  height:170px;
  display:block;
}
.mini-table{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}
.mini-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:16px;
}
.mini-left{min-width:0}
.mini-title{
  font-weight:900;
  letter-spacing:-.01em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
}
.mini-right{
  font-weight:900;
  letter-spacing:-.01em;
  white-space:nowrap;
  color:#dcfce7;
}
.tab{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  text-decoration:none;
  font-weight:750;
  font-size:13px;
}
.tab:hover{background:rgba(255,255,255,.06); color:var(--text)}
.tab.active{
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.25);
  color:#dcfce7;
}
.chips{
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(0,0,0,.22);
  padding:10px 12px;
  min-height:52px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-size:13px;
  font-weight:750;
}
.chip-btn{
  width:22px;
  height:22px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  display:grid;
  place-items:center;
  padding:0;
  line-height:1;
}
.chip-empty{
  color:var(--muted2);
  font-size:13px;
}
.subnote{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin-top:12px;
}
.empty{
  border:1px dashed rgba(255,255,255,.14);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:14px;
  color:var(--muted);
  font-size:13px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.empty:before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(34,197,94,.85);
  box-shadow:0 0 0 4px rgba(34,197,94,.14);
  margin-top:4px;
  flex:0 0 auto;
}
.link{
  color:var(--text);
  font-weight:750;
  text-decoration:underline;
  text-underline-offset:3px;
}
.link:hover{color:#dcfce7}
.flash{
  border:1px solid rgba(34,197,94,.30);
  background:rgba(34,197,94,.10);
  color:#dcfce7;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  margin-bottom:12px;
}
.list{
  margin:0;
  padding-left:16px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
@media (max-width: 940px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .r-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr}
  .main{padding:22px 14px}
  .main-inner{width:100%}
  .topbar{flex-direction:column; align-items:flex-start}
  .topbar .btn-row{width:100%}
  .topbar .btn-row .btn{flex:1}
  .topbar form{flex-wrap:wrap; width:100%}
  .topbar form .input{flex:1}
  .topbar form button{flex:0 0 auto}
  .landing-nav{flex-direction:column; align-items:flex-start}
  .landing-actions{width:100%}
  .landing-actions .btn{flex:1}

  .app-shell{grid-template-columns:1fr}
  .sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:min(320px, 86vw);
    height:100%;
    overflow-y:auto;
    overscroll-behavior:contain;
    transform:translateX(-100%);
    transition:transform .22s ease;
    border-right:none;
    border-bottom:none;
    z-index:50;
    box-shadow:0 30px 80px rgba(0,0,0,.65);
    border-radius:0 18px 18px 0;
    background:linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.86));
  }
  .nav-toggle{display:flex}
  body.sidebar-open .overlay{opacity:1; pointer-events:auto}
  body.sidebar-open .sidebar{transform:translateX(0)}
  body.sidebar-open{overflow:hidden}
}

@media (min-width: 941px){
  .sidebar{
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .sidebar::-webkit-scrollbar{width:0;height:0}
}

@media (max-width: 520px){
  .page{padding:38px 14px}
  .panel{padding:14px}
  .btn{padding:10px 12px}
  .input{height:44px}
  .title{font-size:34px}
  .topbar form button{width:100%}
}
