/* ═══════════════════════════════════════════
   NOVA AUTH TOOL — Global Theme
   Colors: Dark Navy + Blue→Purple Gradient
═══════════════════════════════════════════ */
:root {
  --bg:         #08091A;
  --bg2:        #0D1128;
  --card:       #111829;
  --card2:      #161E35;
  --border:     rgba(99,130,246,.18);
  --blue:       #3B82F6;
  --purple:     #8B5CF6;
  --grad:       linear-gradient(135deg,#3B82F6,#8B5CF6);
  --grad-rev:   linear-gradient(135deg,#8B5CF6,#3B82F6);
  --text:       #E8EEFF;
  --text2:      #8A97C4;
  --text3:      #4A5580;
  --success:    #34D399;
  --danger:     #F87171;
  --warning:    #FBBF24;
  --radius:     14px;
  --shadow:     0 8px 32px rgba(0,0,0,.45);
  --glow-blue:  0 0 24px rgba(59,130,246,.25);
  --glow-purple:0 0 24px rgba(139,92,246,.25);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter','Segoe UI',sans-serif;
  font-size:15px;
  line-height:1.6;
  min-height:100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:var(--bg2)}
::-webkit-scrollbar-thumb{background:var(--purple);border-radius:3px}

/* ── Typography ── */
h1,h2,h3,h4,h5{font-weight:700;color:var(--text);line-height:1.3}
a{color:var(--blue);text-decoration:none;transition:.2s}
a:hover{color:var(--purple)}

/* ── Gradient Text ── */
.grad-text{
  background:var(--grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* ── Buttons ── */
.btn-nova{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--grad);
  color:#fff;border:none;border-radius:10px;
  padding:11px 28px;font-size:14px;font-weight:600;
  cursor:pointer;transition:.25s;
  box-shadow:0 4px 18px rgba(99,102,241,.35);
}
.btn-nova:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(99,102,241,.5);color:#fff}
.btn-nova:active{transform:translateY(0)}
.btn-nova-outline{
  display:inline-flex;align-items:center;gap:8px;
  background:transparent;
  border:1.5px solid var(--blue);
  color:var(--blue);border-radius:10px;
  padding:10px 24px;font-size:14px;font-weight:600;cursor:pointer;transition:.25s;
}
.btn-nova-outline:hover{background:var(--blue);color:#fff}
.btn-sm{padding:7px 16px;font-size:13px;border-radius:8px}
.btn-danger{background:linear-gradient(135deg,#EF4444,#DC2626)!important}
.btn-success{background:linear-gradient(135deg,#10B981,#059669)!important}

/* ── Card ── */
.nova-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
}
.nova-card-glow{
  box-shadow:var(--shadow),var(--glow-blue);
}

/* ── Form Controls ── */
.nova-input{
  width:100%;
  background:var(--bg2);
  border:1.5px solid var(--border);
  border-radius:10px;
  color:var(--text);
  padding:11px 16px;
  font-size:14px;
  transition:.2s;
  outline:none;
}
.nova-input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(59,130,246,.15)}
.nova-input::placeholder{color:var(--text3)}
.nova-label{display:block;font-size:13px;font-weight:600;color:var(--text2);margin-bottom:6px}
.form-group{margin-bottom:18px}

/* ── Badge ── */
.badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}
.badge-blue{background:rgba(59,130,246,.15);color:var(--blue);border:1px solid rgba(59,130,246,.3)}
.badge-purple{background:rgba(139,92,246,.15);color:var(--purple);border:1px solid rgba(139,92,246,.3)}
.badge-green{background:rgba(52,211,153,.12);color:var(--success);border:1px solid rgba(52,211,153,.3)}
.badge-red{background:rgba(248,113,113,.12);color:var(--danger);border:1px solid rgba(248,113,113,.3)}
.badge-yellow{background:rgba(251,191,36,.12);color:var(--warning);border:1px solid rgba(251,191,36,.3)}

/* ── Alert ── */
.nova-alert{padding:12px 18px;border-radius:10px;font-size:14px;margin-bottom:16px;display:flex;align-items:center;gap:10px}
.nova-alert-error{background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.3);color:var(--danger)}
.nova-alert-success{background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.3);color:var(--success)}
.nova-alert-info{background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.3);color:var(--blue)}

/* ── Table ── */
.nova-table{width:100%;border-collapse:collapse}
.nova-table th{
  background:var(--bg2);color:var(--text2);
  padding:11px 14px;text-align:left;font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.6px;
  border-bottom:1px solid var(--border);
}
.nova-table td{
  padding:12px 14px;border-bottom:1px solid rgba(99,130,246,.06);
  font-size:14px;color:var(--text);vertical-align:middle;
}
.nova-table tr:last-child td{border-bottom:none}
.nova-table tr:hover td{background:rgba(59,130,246,.04)}
.table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--border)}

/* ── Divider ── */
.nova-divider{border:none;border-top:1px solid var(--border);margin:20px 0}

/* ── Stars BG (auth pages) ── */
#stars-canvas{position:fixed;inset:0;z-index:0;pointer-events:none}

/* ── Gradient Orbs ── */
.orb{position:fixed;border-radius:50%;filter:blur(80px);opacity:.12;pointer-events:none;z-index:0}
.orb-1{width:500px;height:500px;background:var(--blue);top:-120px;left:-120px}
.orb-2{width:400px;height:400px;background:var(--purple);bottom:-80px;right:-80px}
.orb-3{width:300px;height:300px;background:var(--blue);bottom:20%;left:40%}

/* ── Sidebar Layout ── */
.nova-sidebar{
  width:240px;min-height:100vh;
  background:var(--card);
  border-right:1px solid var(--border);
  display:flex;flex-direction:column;
  position:fixed;top:0;left:0;z-index:100;
}
.nova-sidebar .sidebar-brand{
  padding:22px 20px 18px;
  display:flex;align-items:center;gap:12px;
  border-bottom:1px solid var(--border);
}
.nova-sidebar .sidebar-brand img{width:36px;height:36px;object-fit:contain}
.nova-sidebar .sidebar-brand span{font-size:15px;font-weight:700;background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.sidebar-nav{padding:14px 10px;flex:1;overflow-y:auto}
.sidebar-nav a{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:10px;
  color:var(--text2);font-size:14px;font-weight:500;
  transition:.2s;margin-bottom:2px;
}
.sidebar-nav a:hover{color:var(--text);background:rgba(59,130,246,.1)}
.sidebar-nav a.active{background:rgba(99,102,241,.15);color:var(--blue);border-left:3px solid var(--blue)}
.sidebar-nav .nav-section{
  font-size:11px;font-weight:700;color:var(--text3);
  text-transform:uppercase;letter-spacing:.8px;
  padding:12px 14px 4px;
}
.sidebar-footer{padding:14px;border-top:1px solid var(--border)}

/* ── Main Content Area ── */
.nova-main{margin-left:240px;min-height:100vh;background:var(--bg)}
.nova-topbar{
  background:var(--card);border-bottom:1px solid var(--border);
  padding:14px 28px;display:flex;align-items:center;justify-content:space-between;
  position:sticky;top:0;z-index:50;
}
.nova-content{padding:28px}

/* ── Stat Card ── */
.stat-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px 22px;
  display:flex;align-items:center;gap:16px;
}
.stat-icon{
  width:48px;height:48px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;font-size:22px;
  flex-shrink:0;
}
.stat-icon-blue{background:rgba(59,130,246,.15)}
.stat-icon-purple{background:rgba(139,92,246,.15)}
.stat-icon-green{background:rgba(52,211,153,.15)}
.stat-icon-yellow{background:rgba(251,191,36,.15)}
.stat-value{font-size:22px;font-weight:700;color:var(--text)}
.stat-label{font-size:12px;color:var(--text2);font-weight:500}

/* ── Grid helpers ── */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:900px){.grid-4,.grid-3{grid-template-columns:1fr 1fr}.nova-sidebar{transform:translateX(-100%)}.nova-main{margin-left:0}}
@media(max-width:600px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}
