:root{
  color-scheme:dark;
  --dash-bg:#090a0f;
  --dash-bg-soft:#111827;
  --dash-surface:rgba(17,24,39,.72);
  --dash-surface-strong:rgba(255,255,255,.075);
  --dash-text:#ffffff;
  --dash-muted:#9ca3af;
  --dash-soft:#d8dde7;
  --dash-line:rgba(255,255,255,.10);
  --dash-line-strong:rgba(255,255,255,.18);
  --dash-purple:#7c3aed;
  --dash-blue:#3b82f6;
  --dash-green:#34d399;
  --dash-amber:#fbbf24;
  --dash-danger:#fb7185;
  --dash-shadow:0 24px 80px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08);
}

[data-theme="light"]{
  color-scheme:light;
  --dash-bg:#f7f8fb;
  --dash-bg-soft:#eef2f7;
  --dash-surface:rgba(255,255,255,.82);
  --dash-surface-strong:rgba(255,255,255,.94);
  --dash-text:#0f172a;
  --dash-muted:#64748b;
  --dash-soft:#334155;
  --dash-line:rgba(15,23,42,.10);
  --dash-line-strong:rgba(15,23,42,.16);
  --dash-shadow:0 24px 70px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.75);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,Arial,sans-serif;
  color:var(--dash-text);
  background:
    radial-gradient(circle at 84% 0%,rgba(59,130,246,.14),transparent 28rem),
    radial-gradient(circle at 0% 4%,rgba(124,58,237,.16),transparent 26rem),
    linear-gradient(180deg,var(--dash-bg),var(--dash-bg-soft));
}
body.dashboard-drawer-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button,a,input{touch-action:manipulation}

.dashboard-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
}
.dashboard-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:20px;
  border-right:1px solid var(--dash-line);
  background:
    linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.026)),
    rgba(8,10,16,.78);
  backdrop-filter:blur(22px);
  z-index:30;
}
[data-theme="light"] .dashboard-sidebar{
  background:rgba(255,255,255,.82);
}
.dashboard-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
}
.dashboard-brand img{
  width:42px;
  height:42px;
  border-radius:10px;
  box-shadow:0 10px 28px rgba(0,0,0,.22),0 0 0 1px var(--dash-line);
}
.dashboard-brand strong{
  display:block;
  font-size:16px;
  line-height:1.1;
  font-weight:850;
}
.dashboard-brand small{
  display:block;
  margin-top:3px;
  color:var(--dash-muted);
  font-size:11px;
  font-weight:760;
}
.dashboard-sidebar-close{
  display:none;
}
.dashboard-nav{
  display:grid;
  gap:6px;
  padding-top:8px;
}
.dashboard-nav a{
  min-height:44px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 13px;
  border:1px solid transparent;
  border-radius:12px;
  color:var(--dash-soft);
  font-size:14px;
  font-weight:760;
}
.dashboard-nav a:hover,
.dashboard-nav a.is-active{
  border-color:var(--dash-line-strong);
  color:var(--dash-text);
  background:var(--dash-surface-strong);
}
.dashboard-nav svg{
  flex:0 0 auto;
}
.dashboard-sidebar-footer{
  margin-top:auto;
  padding:14px;
  border:1px solid var(--dash-line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.dashboard-sidebar-footer span{
  display:block;
  color:var(--dash-muted);
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
}
.dashboard-sidebar-footer strong{
  display:block;
  margin-top:8px;
  font-size:15px;
}
.dashboard-sidebar-footer p{
  margin:8px 0 0;
  color:var(--dash-muted);
  font-size:12px;
  line-height:1.5;
}
.dashboard-main{
  min-width:0;
  padding:22px;
}
.dashboard-topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(260px,420px) auto;
  gap:16px;
  align-items:center;
  margin:-22px -22px 22px;
  padding:16px 22px;
  border-bottom:1px solid var(--dash-line);
  background:rgba(9,10,15,.72);
  backdrop-filter:blur(22px);
}
[data-theme="light"] .dashboard-topbar{
  background:rgba(247,248,251,.78);
}
.dashboard-title h1{
  margin:0;
  font-size:24px;
  line-height:1.1;
}
.dashboard-title p{
  margin:5px 0 0;
  color:var(--dash-muted);
  font-size:13px;
}
.dashboard-drawer-button,
.dashboard-icon-button,
.dashboard-user-button{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--dash-line);
  border-radius:12px;
  color:var(--dash-text);
  background:var(--dash-surface-strong);
  cursor:pointer;
}
.dashboard-drawer-button{
  display:none;
  width:42px;
}
.dashboard-search{
  position:relative;
}
.dashboard-search svg{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--dash-muted);
}
.dashboard-search input{
  width:100%;
  min-height:44px;
  padding:0 14px 0 42px;
  border:1px solid var(--dash-line);
  border-radius:14px;
  outline:0;
  color:var(--dash-text);
  background:var(--dash-surface);
}
.dashboard-search input:focus{
  border-color:rgba(59,130,246,.62);
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
.dashboard-topbar-actions{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}
.dashboard-icon-button{
  width:42px;
  position:relative;
}
.notification-dot{
  position:absolute;
  top:9px;
  right:9px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--dash-danger);
  box-shadow:0 0 0 3px rgba(251,113,133,.16);
}
.dashboard-user-button{
  gap:10px;
  padding:0 12px;
  font-weight:800;
}
.dashboard-avatar{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#fff;
  background:linear-gradient(135deg,var(--dash-purple),var(--dash-blue));
  font-size:12px;
}
.dashboard-user-menu{
  position:absolute;
  right:0;
  top:50px;
  width:220px;
  padding:10px;
  border:1px solid var(--dash-line);
  border-radius:14px;
  background:var(--dash-surface-strong);
  box-shadow:var(--dash-shadow);
  display:none;
}
.dashboard-user-menu.is-open{display:grid}
.dashboard-user-menu a{
  min-height:38px;
  display:flex;
  align-items:center;
  padding:0 10px;
  border-radius:10px;
  color:var(--dash-soft);
  font-size:13px;
  font-weight:760;
}
.dashboard-user-menu a:hover{
  color:var(--dash-text);
  background:rgba(255,255,255,.07);
}

.dashboard-content{
  display:grid;
  gap:18px;
}
.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:end;
  padding:26px;
  border:1px solid var(--dash-line);
  border-radius:22px;
  background:
    radial-gradient(circle at 88% 0%,rgba(59,130,246,.18),transparent 18rem),
    linear-gradient(135deg,rgba(124,58,237,.16),rgba(59,130,246,.08)),
    var(--dash-surface);
  box-shadow:var(--dash-shadow);
}
.dashboard-eyebrow{
  margin:0 0 10px;
  color:var(--dash-muted);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}
.dashboard-hero h2{
  max-width:760px;
  margin:0;
  font-size:clamp(28px,4vw,48px);
  line-height:1.04;
}
.dashboard-hero p:not(.dashboard-eyebrow){
  max-width:660px;
  margin:14px 0 0;
  color:var(--dash-soft);
  line-height:1.6;
}
.dashboard-button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 16px;
  border:1px solid var(--dash-line-strong);
  border-radius:12px;
  color:var(--dash-text);
  background:var(--dash-surface-strong);
  font-size:13px;
  font-weight:830;
}
.dashboard-button-primary{
  border-color:transparent;
  color:#fff;
  background:linear-gradient(135deg,var(--dash-purple),var(--dash-blue));
  box-shadow:0 16px 34px rgba(59,130,246,.18);
}
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.dashboard-card{
  min-width:0;
  padding:18px;
  border:1px solid var(--dash-line);
  border-radius:18px;
  background:var(--dash-surface);
  box-shadow:var(--dash-shadow);
}
.dashboard-stat{
  min-height:132px;
}
.dashboard-stat span,
.dashboard-card-kicker{
  display:block;
  color:var(--dash-muted);
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
}
.dashboard-stat strong{
  display:block;
  margin-top:14px;
  font-size:34px;
  line-height:1;
}
.dashboard-stat small{
  display:block;
  margin-top:10px;
  color:var(--dash-muted);
  font-size:12px;
  line-height:1.45;
}
.dashboard-span-2{grid-column:span 2}
.dashboard-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.dashboard-card-head h3{
  margin:6px 0 0;
  font-size:19px;
  line-height:1.16;
}
.dashboard-actions-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.quick-action{
  min-height:94px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid var(--dash-line);
  border-radius:14px;
  color:var(--dash-soft);
  background:rgba(255,255,255,.035);
  font-size:13px;
  font-weight:810;
}
.quick-action:hover{
  border-color:var(--dash-line-strong);
  color:var(--dash-text);
  transform:translateY(-1px);
}
.activity-list{
  display:grid;
  gap:10px;
}
.activity-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:13px;
  border:1px solid var(--dash-line);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.activity-dot{
  width:10px;
  height:10px;
  margin-top:5px;
  border-radius:99px;
  background:linear-gradient(135deg,var(--dash-purple),var(--dash-blue));
}
.activity-item strong{
  display:block;
  font-size:14px;
}
.activity-item p{
  margin:5px 0 0;
  color:var(--dash-muted);
  font-size:13px;
  line-height:1.45;
}
.activity-time{
  color:var(--dash-muted);
  font-size:12px;
  white-space:nowrap;
}
.product-preview{
  display:grid;
  gap:14px;
}
.product-status-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.dashboard-pill{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border:1px solid rgba(251,191,36,.28);
  border-radius:999px;
  color:#fde68a;
  background:rgba(251,191,36,.10);
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
}
[data-theme="light"] .dashboard-pill{
  color:#92400e;
}
.product-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.product-actions .dashboard-button{
  min-height:40px;
  padding:0 10px;
}
.hosting-meter{
  display:grid;
  gap:14px;
}
.meter-row{
  display:grid;
  gap:8px;
}
.meter-label{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--dash-soft);
  font-size:13px;
  font-weight:760;
}
.meter-track{
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
.meter-fill{
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--dash-purple),var(--dash-blue));
}
.empty-state{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:18px;
  border:1px dashed var(--dash-line-strong);
  border-radius:18px;
  background:rgba(255,255,255,.026);
}
.empty-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,var(--dash-purple),var(--dash-blue));
}
.empty-state h3{
  margin:0;
  font-size:18px;
}
.empty-state p{
  margin:6px 0 0;
  color:var(--dash-muted);
  line-height:1.5;
}
.dashboard-ai{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:35;
}
.dashboard-ai-button{
  min-height:54px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,var(--dash-purple),var(--dash-blue));
  box-shadow:0 18px 48px rgba(59,130,246,.30);
  cursor:pointer;
  font-weight:850;
}
.dashboard-ai-panel{
  position:absolute;
  right:0;
  bottom:66px;
  width:min(340px,calc(100vw - 36px));
  padding:16px;
  border:1px solid var(--dash-line);
  border-radius:18px;
  background:var(--dash-surface-strong);
  box-shadow:var(--dash-shadow);
  display:none;
}
.dashboard-ai-panel.is-open{display:block}
.dashboard-ai-panel h3{
  margin:0;
  font-size:16px;
}
.dashboard-ai-panel p{
  margin:10px 0 0;
  color:var(--dash-muted);
  font-size:13px;
  line-height:1.5;
}
.dashboard-ai-panel a{
  width:100%;
  margin-top:14px;
}
.dashboard-backdrop{
  position:fixed;
  inset:0;
  z-index:25;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  background:rgba(8,10,16,.58);
  backdrop-filter:blur(8px);
  transition:opacity .24s ease,visibility .24s ease;
}
body.dashboard-drawer-open .dashboard-backdrop{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.placeholder-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
}
.placeholder-card{
  width:min(760px,100%);
  padding:30px;
  border:1px solid var(--dash-line);
  border-radius:22px;
  background:var(--dash-surface);
  box-shadow:var(--dash-shadow);
}
.placeholder-card h1{
  margin:8px 0 0;
  font-size:clamp(30px,5vw,52px);
  line-height:1.04;
}
.placeholder-card p{
  max-width:620px;
  margin:16px 0 0;
  color:var(--dash-muted);
  line-height:1.65;
}
.placeholder-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

@media (max-width:1180px){
  .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:920px){
  .dashboard-shell{grid-template-columns:1fr}
  .dashboard-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:min(320px,calc(100vw - 32px));
    transform:translateX(-106%);
    transition:transform .26s ease;
  }
  body.dashboard-drawer-open .dashboard-sidebar{transform:translateX(0)}
  .dashboard-sidebar-close{
    position:absolute;
    right:16px;
    top:18px;
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--dash-line);
    border-radius:12px;
    color:var(--dash-text);
    background:var(--dash-surface-strong);
    cursor:pointer;
  }
  .dashboard-drawer-button{display:inline-flex}
  .dashboard-topbar{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  .dashboard-title p{display:none}
  .dashboard-search{
    grid-column:1 / -1;
    grid-row:2;
  }
  .dashboard-hero{grid-template-columns:1fr}
}

@media (max-width:680px){
  .dashboard-main{padding:16px}
  .dashboard-topbar{
    margin:-16px -16px 16px;
    padding:12px 16px;
    gap:10px;
  }
  .dashboard-title h1{font-size:20px}
  .dashboard-grid,
  .dashboard-actions-grid,
  .product-actions{
    grid-template-columns:1fr;
  }
  .dashboard-span-2{grid-column:auto}
  .dashboard-hero,
  .dashboard-card{
    border-radius:16px;
  }
  .dashboard-hero{padding:20px}
  .activity-item{
    grid-template-columns:auto minmax(0,1fr);
  }
  .activity-time{
    grid-column:2;
  }
  .empty-state{
    grid-template-columns:1fr;
  }
  .empty-state .dashboard-button{width:100%}
  .dashboard-user-button strong{display:none}
  .dashboard-ai{right:14px;bottom:14px}
  .dashboard-ai-button span{display:none}
}
