/* ============================================================
   NEXXO HOST — shared design system
   Used by every page (index.html, login.html, signup.html, etc.)
   ============================================================ */

:root{
  --bg:#05070c;
  --surface:#0c1120;
  --surface-2:#121a2e;
  --line:#1e2740;
  --blue:#2e6bff;
  --blue-bright:#5b8bff;
  --glow:#7fd0ff;
  --white:#f4f6fb;
  --muted:#8994ac;
  --muted-2:#5c667e;
  --green:#3ddc97;
  --red:#ff6b6b;
  --radius:14px;
  --display:'Chakra Petch', sans-serif;
  --body:'Inter', sans-serif;
  --mono:'JetBrains Mono', monospace;
}
[data-theme="light"]{
  --bg:#ffffff;
  --surface:#f6f8fc;
  --surface-2:#eef1f8;
  --line:#dfe4ee;
  --blue:#2e6bff;
  --blue-bright:#1b52e0;
  --glow:#1b52e0;
  --white:#0b0e14;
  --muted:#4b5468;
  --muted-2:#7b8494;
  --green:#1a9c6b;
  --red:#d43f3f;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--white);
  font-family:var(--body);
  line-height:1.5;
  overflow-x:hidden;
  transition:background .2s ease, color .2s ease;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
img,svg{display:block;max-width:100%;}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px;}
.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--glow);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:'';
  width:6px;height:6px;
  background:var(--glow);
  border-radius:50%;
  box-shadow:0 0 8px var(--glow);
}
h1,h2,h3{font-family:var(--display);font-weight:600;letter-spacing:-0.01em;}
.btn{
  font-family:var(--body);
  font-weight:600;
  font-size:15px;
  padding:13px 26px;
  border-radius:9px;
  border:1px solid transparent;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{
  background:linear-gradient(135deg, var(--blue), var(--blue-bright));
  color:#fff;
  box-shadow:0 0 0 rgba(46,107,255,0);
}
.btn-primary:hover{box-shadow:0 8px 30px -6px rgba(46,107,255,.65); transform:translateY(-1px);}
.btn-primary:disabled{opacity:.55; cursor:not-allowed; transform:none; box-shadow:none;}
.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--white);
}
.btn-ghost:hover{border-color:var(--blue-bright); background:rgba(46,107,255,.08);}
.btn:focus-visible{outline:2px solid var(--glow); outline-offset:2px;}

/* ---------- background grid ---------- */
.grid-field{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(46,107,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,107,255,.06) 1px, transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image:radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- nav ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(5,7,12,.78);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
[data-theme="light"] header{background:rgba(255,255,255,.82);}
nav{display:flex; align-items:center; justify-content:space-between; padding:16px 24px;}
.logo{display:flex; align-items:center; gap:10px; font-family:var(--display); font-size:19px; font-weight:700; letter-spacing:.01em;}
.logo .mark{
  width:30px;height:30px;border-radius:8px;
  background:linear-gradient(135deg, var(--blue), var(--glow));
  display:flex;align-items:center;justify-content:center;
  color:#05070c; font-weight:700; font-size:15px;
  box-shadow:0 0 18px rgba(46,107,255,.55);
  flex-shrink:0;
}
.nav-links{display:flex; align-items:center; gap:32px;}
.nav-links a{font-size:14.5px; color:var(--muted); transition:color .15s;}
.nav-links a:hover{color:var(--white);}
.nav-actions{display:flex; align-items:center; gap:12px;}
.nav-actions .btn{padding:10px 20px; font-size:14px;}
.burger{display:none; background:none; border:none; color:var(--white); font-size:22px; cursor:pointer;}
.theme-toggle, .sidebar-toggle{
  width:38px; height:38px; border-radius:9px;
  background:var(--surface-2); border:1px solid var(--line);
  color:var(--white); font-size:16px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  transition:border-color .15s, background .15s;
  flex-shrink:0;
}
.theme-toggle:hover, .sidebar-toggle:hover{border-color:var(--blue-bright);}
.theme-toggle-mobile{display:none;}
@media (max-width:860px){
  .nav-links, .nav-actions .btn-ghost{display:none;}
  .nav-actions .theme-toggle{display:none;}
  .theme-toggle-mobile{display:inline-flex; margin-right:10px;}
  .burger{display:block;}
}

section{position:relative; z-index:1;}
.section-pad{padding:88px 0;}
.section-head{max-width:600px; margin-bottom:48px;}
.section-head h2{font-size:clamp(28px,3.4vw,38px); margin-top:14px;}
.section-head p{color:var(--muted); margin-top:12px; font-size:15.5px;}
.divider{height:1px; background:linear-gradient(90deg, transparent, var(--line), transparent);}

.reveal{opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line); padding:64px 0 32px; background:var(--surface);}
.footer-grid{display:grid; grid-template-columns:1.4fr repeat(4, 1fr); gap:32px; margin-bottom:48px;}
@media (max-width:860px){.footer-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr;}}
.footer-brand p{color:var(--muted); font-size:13.5px; margin-top:14px; max-width:260px;}
.footer-col h4{font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); margin-bottom:16px; font-family:var(--mono);}
.footer-col a{display:block; color:var(--muted); font-size:14px; margin-bottom:11px; transition:color .15s;}
.footer-col a:hover{color:var(--white);}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  border-top:1px solid var(--line); padding-top:24px; font-size:13px; color:var(--muted-2);
}
.footer-bottom .by{display:flex; align-items:center; gap:8px; font-family:var(--mono); font-size:12px;}

/* ============================================================
   Auth pages (login / signup / forgot-password)
   ============================================================ */
.auth-shell{
  min-height:calc(100vh - 73px);
  display:flex; align-items:center; justify-content:center;
  padding:56px 20px;
  position:relative; z-index:1;
}
.auth-card{
  width:100%; max-width:420px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:38px 32px;
  box-shadow:0 30px 80px -35px rgba(0,0,0,.6);
}
.auth-card .logo{justify-content:center; margin-bottom:22px;}
.auth-head{text-align:center; margin-bottom:28px;}
.auth-head h1{font-size:24px; margin-bottom:8px;}
.auth-head p{color:var(--muted); font-size:14px;}
.field{margin-bottom:18px;}
.field label{
  display:block; font-size:13px; font-weight:600; color:var(--muted);
  margin-bottom:7px;
}
.field .input-wrap{position:relative;}
.field input{
  width:100%;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:9px;
  padding:12px 14px;
  color:var(--white);
  font-family:var(--body);
  font-size:14.5px;
  transition:border-color .15s, box-shadow .15s;
}
.field input::placeholder{color:var(--muted-2);}
.field input:focus{
  outline:none; border-color:var(--blue-bright);
  box-shadow:0 0 0 3px rgba(46,107,255,.15);
}
.field-error{color:var(--red); font-size:12.5px; margin-top:6px; display:none;}
.field.has-error input{border-color:var(--red);}
.field.has-error .field-error{display:block;}
.toggle-visibility{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--muted-2); cursor:pointer; font-size:13px;
  font-family:var(--mono); padding:4px 6px;
}
.toggle-visibility:hover{color:var(--white);}
.field-row-between{display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; font-size:13.5px;}
.field-row-between a{color:var(--glow);}
.field-row-between a:hover{text-decoration:underline;}
.checkbox-row{display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--muted);}
.checkbox-row input{margin-top:3px; accent-color:var(--blue);}
.checkbox-row a{color:var(--glow);}
.auth-submit{width:100%; margin-top:6px;}
.auth-divider{display:flex; align-items:center; gap:14px; margin:26px 0; color:var(--muted-2); font-size:12px; font-family:var(--mono);}
.auth-divider::before, .auth-divider::after{content:''; flex:1; height:1px; background:var(--line);}
.auth-alt{text-align:center; font-size:13.5px; color:var(--muted); margin-top:22px;}
.auth-alt a{color:var(--glow); font-weight:600;}
.auth-alt a:hover{text-decoration:underline;}
.auth-note{
  display:flex; gap:10px; align-items:flex-start;
  background:rgba(46,107,255,.08); border:1px solid rgba(46,107,255,.25);
  border-radius:10px; padding:13px 14px; font-size:13px; color:var(--muted); margin-bottom:22px;
}
.demo-fill{
  width:100%; margin-top:14px; text-align:center; font-size:12.5px; color:var(--muted-2);
  background:none; border:1px dashed var(--line); border-radius:9px; padding:9px; cursor:pointer;
  font-family:var(--mono);
}
.demo-fill:hover{border-color:var(--blue-bright); color:var(--glow);}
.success-icon{
  width:56px; height:56px; border-radius:50%; margin:0 auto 18px;
  background:rgba(61,220,151,.12); border:1px solid rgba(61,220,151,.4);
  display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--green);
}

/* ============================================================
   Dashboard shell (sidebar + topbar + content)
   ============================================================ */
.dash-shell{display:flex; min-height:100vh;}
.dash-sidebar{
  width:248px; flex-shrink:0;
  background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column;
  position:fixed; top:0; left:0; bottom:0; z-index:60;
  transition:transform .25s ease;
}
.dash-sidebar .logo{padding:22px 22px 18px; flex-shrink:0;}
.dash-nav{flex:1; min-height:0; overflow-y:auto; padding:10px 12px; display:block;}
.dash-nav a{
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:9px; margin-bottom:2px;
  font-size:14px; color:var(--muted); font-weight:500;
  transition:background .15s, color .15s;
}
.dash-nav a .ic{width:18px; height:18px; text-align:center; font-size:17px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center;}
.dash-nav a:hover{background:var(--surface-2); color:var(--white);}
.dash-nav a.active{background:rgba(46,107,255,.12); color:var(--glow); border:1px solid rgba(46,107,255,.25);}
.dash-nav-group{font-family:var(--mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); padding:16px 12px 6px;}
.dash-sidebar-footer{padding:14px 12px; border-top:1px solid var(--line); flex-shrink:0;}
.dash-sidebar-footer a{color:var(--red);}
.sidebar-backdrop{display:none;}

.dash-main{flex:1; margin-left:248px; min-width:0;}
.dash-topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 28px; background:rgba(5,7,12,.8); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
[data-theme="light"] .dash-topbar{background:rgba(255,255,255,.85);}
.dash-topbar h1{font-size:17px;}
.dash-topbar-actions{display:flex; align-items:center; gap:12px;}
.sidebar-toggle{display:none;}
.avatar{
  width:34px; height:34px; border-radius:50%;
  background:linear-gradient(135deg, var(--blue), var(--glow));
  display:flex; align-items:center; justify-content:center;
  color:#05070c; font-weight:700; font-size:13px;
}
.dash-content{padding:28px 28px 48px;}

.stat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:26px;}
@media (max-width:1080px){.stat-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.stat-grid{grid-template-columns:1fr;}}
.stat-card{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px;}
.stat-card .stat-top{display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px;}
.stat-card .stat-icon{
  width:34px;height:34px;border-radius:9px; background:rgba(46,107,255,.12); border:1px solid rgba(46,107,255,.3);
  display:flex; align-items:center; justify-content:center; color:var(--glow); font-size:17px;
}
.stat-card .stat-label{font-size:12.5px; color:var(--muted); font-family:var(--mono);}
.stat-card .stat-value{font-family:var(--display); font-size:26px; margin-bottom:8px;}
.stat-bar{height:6px; border-radius:3px; background:var(--surface-2); overflow:hidden;}
.stat-bar-fill{height:100%; background:linear-gradient(90deg, var(--blue), var(--glow)); border-radius:3px;}
.stat-sub{font-size:12px; color:var(--muted-2); margin-top:8px;}

.dash-grid{display:grid; grid-template-columns:2fr 1fr; gap:20px; align-items:start;}
@media (max-width:960px){.dash-grid{grid-template-columns:1fr;}}
.panel{background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden;}
.panel-head{display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid var(--line);}
.panel-head h2{font-size:15.5px; font-family:var(--body); font-weight:700;}
.panel-head a{font-size:13px; color:var(--glow);}
.panel-body{padding:6px 0;}

.site-row{display:flex; align-items:center; gap:14px; padding:14px 20px; border-bottom:1px solid var(--line);}
.site-row:last-child{border-bottom:none;}
.site-icon{width:36px;height:36px;border-radius:8px; background:var(--surface-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--glow); flex-shrink:0;}
.site-info{flex:1; min-width:0;}
.site-info .name{font-size:14px; font-weight:600;}
.site-info .domain{font-size:12.5px; color:var(--muted); font-family:var(--mono); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.badge{font-family:var(--mono); font-size:11px; padding:4px 10px; border-radius:999px; font-weight:600; flex-shrink:0;}
.badge-live{background:rgba(61,220,151,.12); color:var(--green); border:1px solid rgba(61,220,151,.3);}
.badge-building{background:rgba(245,166,35,.12); color:#f5a623; border:1px solid rgba(245,166,35,.3);}
.badge-suspended{background:rgba(255,107,107,.12); color:var(--red); border:1px solid rgba(255,107,107,.3);}
.site-actions{color:var(--muted-2); font-size:16px; cursor:pointer; flex-shrink:0;}

.info-row{display:flex; justify-content:space-between; padding:12px 20px; font-size:13.5px; border-bottom:1px solid var(--line);}
.info-row:last-child{border-bottom:none;}
.info-row .k{color:var(--muted);}
.info-row .v{font-weight:600;}
.plan-cta{padding:16px 20px;}
.plan-cta .btn{width:100%;}

.qa-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin:24px 0;}
@media (max-width:860px){.qa-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:560px){.qa-grid{grid-template-columns:repeat(2,1fr);}}
.qa-card{
  background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 14px;
  text-align:center; transition:border-color .15s, background .15s; cursor:pointer;
}
.qa-card:hover{border-color:var(--blue-bright); background:var(--surface-2);}
.qa-card .ic{font-size:22px; margin-bottom:8px; color:var(--glow); display:flex; align-items:center; justify-content:center;}
.qa-card .lbl{font-size:12.5px; font-weight:600;}

.activity-row{display:flex; gap:12px; padding:13px 20px; border-bottom:1px solid var(--line); font-size:13px;}
.activity-row:last-child{border-bottom:none;}
.activity-dot{width:7px; height:7px; border-radius:50%; background:var(--glow); margin-top:6px; flex-shrink:0;}
.activity-row .t{color:var(--muted);}
.activity-row .time{color:var(--muted-2); font-family:var(--mono); font-size:11.5px; white-space:nowrap;}

@media (max-width:960px){
  .dash-sidebar{transform:translateX(-100%);}
  .dash-sidebar.open{transform:translateX(0);}
  .dash-main{margin-left:0;}
  .sidebar-toggle{display:inline-flex;}
  .sidebar-backdrop{
    display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:55;
  }
  .sidebar-backdrop.show{display:block;}
}

/* ============================================================
   Toolbar, tables, modals — My Websites / File Manager / lists
   ============================================================ */
.toolbar{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:20px;}
.toolbar .search-wrap{position:relative; flex:1; min-width:200px; max-width:340px;}
.toolbar input[type="search"], .toolbar input[type="text"]{
  width:100%; background:var(--surface); border:1px solid var(--line); border-radius:9px;
  padding:10px 14px 10px 36px; color:var(--white); font-family:var(--body); font-size:13.5px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238994ac' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:11px center; background-size:14px;
}
.toolbar input::placeholder{color:var(--muted-2);}
.toolbar-actions{display:flex; gap:10px; flex-wrap:wrap;}

.data-table{width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden;}
.data-table thead th{
  text-align:left; font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em;
  color:var(--muted-2); padding:13px 18px; background:var(--surface-2); border-bottom:1px solid var(--line);
}
.data-table tbody td{padding:14px 18px; font-size:13.8px; border-bottom:1px solid var(--line); vertical-align:middle;}
.data-table tbody tr:last-child td{border-bottom:none;}
.data-table tbody tr:hover{background:var(--surface-2);}
.data-table .row-name{display:flex; align-items:center; gap:10px; font-weight:600;}
.data-table .row-icon{font-size:16px; color:var(--muted); display:inline-flex;}
.data-table .row-actions{display:flex; gap:8px; justify-content:flex-end;}
.icon-btn{
  width:30px; height:30px; border-radius:7px; background:var(--surface-2); border:1px solid var(--line);
  color:var(--muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:15px;
  transition:border-color .15s, color .15s;
}
.icon-btn:hover{border-color:var(--blue-bright); color:var(--white);}
.icon-btn.danger:hover{border-color:var(--red); color:var(--red);}

.breadcrumb{display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--muted); margin-bottom:16px; font-family:var(--mono);}
.breadcrumb a{color:var(--muted); transition:color .15s;}
.breadcrumb a:hover{color:var(--glow);}
.breadcrumb .sep{color:var(--muted-2);}
.breadcrumb .current{color:var(--white); font-weight:600;}

.dropzone{
  border:1.5px dashed var(--line); border-radius:14px; padding:34px 20px; text-align:center;
  color:var(--muted); font-size:13.5px; margin-bottom:20px; transition:border-color .15s, background .15s;
}
.dropzone.drag{border-color:var(--blue-bright); background:rgba(46,107,255,.06);}
.dropzone .ic{font-size:26px; margin-bottom:10px;}
.dropzone strong{color:var(--glow); cursor:pointer;}

.empty-state{padding:60px 20px; text-align:center; color:var(--muted);}
.empty-state .ic{font-size:32px; margin-bottom:12px;}
.empty-state h3{font-family:var(--body); font-size:15px; color:var(--white); margin-bottom:6px;}
.empty-state p{font-size:13.5px; margin-bottom:18px;}

/* modal */
.modal-overlay{
  display:none; position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.55);
  align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(3px);
}
.modal-overlay.show{display:flex;}
.modal{
  width:100%; max-width:420px; background:var(--surface); border:1px solid var(--line);
  border-radius:16px; padding:26px; box-shadow:0 30px 80px -30px rgba(0,0,0,.7);
}
.modal-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;}
.modal-head h2{font-size:17px;}
.modal-close{background:none; border:none; color:var(--muted); font-size:18px; cursor:pointer;}
.modal-close:hover{color:var(--white);}
.modal-actions{display:flex; gap:10px; margin-top:20px;}
.modal-actions .btn{flex:1;}

.status-toast{
  position:fixed; bottom:24px; right:24px; z-index:200;
  background:var(--surface); border:1px solid var(--line); border-radius:10px;
  padding:13px 18px; font-size:13.5px; display:flex; align-items:center; gap:10px;
  box-shadow:0 20px 50px -20px rgba(0,0,0,.6);
  transform:translateY(20px); opacity:0; pointer-events:none; transition:transform .25s, opacity .25s;
}
.status-toast.show{transform:translateY(0); opacity:1;}
.status-toast .dot{width:7px;height:7px;border-radius:50%;background:var(--green);}
