/* ================================================================
   MIKHMON GLASSPRO v2 — Matches Reference Design
   Dark premium UI · Floating navbar · Sidebar brand
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:          #0b0d1a;
  --bg-sidebar:  #101223;
  --bg-card:     #181929;
  --bg-card-2:   #1e2035;
  --bg-input:    rgba(255,255,255,0.05);

  --accent:      #7c3aed;
  --accent-2:    #6366f1;
  --accent-cyan: #06b6d4;
  --accent-g:    #10b981;
  --accent-y:    #f59e0b;
  --accent-r:    #ef4444;
  --accent-pk:   #ec4899;
  --accent-or:   #f97316;

  --grad-purple: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-green:  linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-yellow: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --grad-red:    linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --grad-cyan:   linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --grad-pink:   linear-gradient(135deg, #db2777 0%, #ec4899 100%);
  --grad-orange: linear-gradient(135deg, #ea580c 0%, #f97316 100%);

  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #475569;

  --border:       rgba(255,255,255,0.06);
  --border-acc:   rgba(99,102,241,0.3);

  --sidebar-w:    220px;
  --navbar-h:     56px;
  --nb-top:       14px;
  --nb-gap:       16px;

  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;

  --ease: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text-1); text-decoration: none; }
a:hover { color: #fff; }
input, button, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { padding: 0; margin: 0; line-height: 1.3; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.65); }
::-webkit-scrollbar-corner { background: transparent; }

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.sidenav {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  z-index: 1000;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── MIKHMON brand injected via CSS pseudo-element ── */
.sidenav::before {
  content: 'MIKHMON';
  display: block;
  padding: 26px 20px 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
}

/* Session / identity label — small muted */
.sidenav .card-header,
.sidenav > .menu.card-header {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  padding: 0 16px 10px !important;
  border-radius: 0 !important;
  margin-bottom: 6px;
}
.sidenav .card-header h3,
.sidenav > .menu.card-header h3 {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: var(--text-3) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none !important;
  -webkit-text-fill-color: var(--text-3) !important;
}

/* ── Menu items ── */
.sidenav a,
.dropdown-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 2px 8px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: var(--ease);
  border: 1px solid transparent;
  background: transparent;
  width: calc(100% - 16px);
  text-align: left;
  outline: none;
  white-space: nowrap;
}

.sidenav a:hover,
.dropdown-btn:hover {
  color: var(--text-1);
  background: rgba(124,58,237,0.1);
}

/* Active menu item — purple pill like reference */
.sidenav a.active,
.sidenav a.menu.active {
  color: #c4b5fd;
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.3);
  font-weight: 500;
}
.sidenav a.active::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 55%;
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
  border-radius: 0 4px 4px 0;
}

/* Icons */
.sidenav i {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
  margin: 0; padding: 0;
  line-height: 1;
}

/* Separator lines */
.sidenav .spa { border: none; border-top: 1px solid var(--border); margin: 6px 12px; }
.sidenav hr   { border: none; border-top: 1px solid var(--border); margin: 4px 12px; }

/* Dropdown caret */
.dropdown-btn .bi-chevron-compact-down,
.fa-caret-down, .fa-caret-left {
  float: none;
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
  transition: transform 0.2s ease;
}
.dropdown-btn.active .bi-chevron-compact-down { transform: rotate(180deg); }

/* Nested items */
.dropdown-container { display: none; overflow: hidden; }
.dropdown-container.menu-open { display: block !important; }
.dropdown-container a {
  padding-left: 40px;
  font-size: 12px;
  color: var(--text-3);
  margin: 1px 8px;
  width: calc(100% - 16px);
}
.dropdown-container a:hover { color: var(--text-2); }


/* ═══════════════════════════════════════════════
   NAVBAR → FLOATING CONTENT-AREA HEADER
═══════════════════════════════════════════════ */

/* Mobile default */
.navbar {
  position: fixed;
  z-index: 999;
  top: 0; left: 0; right: 0; width: 100%;
  height: var(--navbar-h);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-shadow: none;
}

/* Desktop: floating card positioned in the content area */
@media screen and (min-width: 751px) {
  .navbar {
    top:    var(--nb-top);
    left:   calc(var(--sidebar-w) + var(--nb-gap));
    right:  var(--nb-gap);
    width:  auto;
    border-radius: var(--r-xl);
    border: 1px solid transparent;
    /* gradient border trick */
    background:
      linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
      linear-gradient(120deg, rgba(99,102,241,0.55), rgba(139,92,246,0.4), rgba(6,182,212,0.35)) border-box;
    box-shadow:
      0 4px 28px rgba(0,0,0,0.35),
      0 0 0 1px rgba(99,102,241,0.08);
    border-bottom: none;
    padding: 0 8px 0 20px;
  }
  /* Brand is in sidebar — hide from navbar */
  #brand    { display: none !important; }
  #openNav  { display: none !important; }
  #closeNav { display: flex !important; }
}

/* Navbar flex children */
.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-left a, .navbar-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 12px;
  color: var(--text-1);
  text-decoration: none;
  font-size: 13px;
  transition: var(--ease);
}
.navbar-left a:hover, .navbar-right a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.navbar-hover:hover { background: rgba(255,255,255,0.04); }

/* Brand (mobile only) */
#brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.07em;
  background: linear-gradient(120deg, #c4b5fd, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 130px;
  padding: 0 16px;
  cursor: default;
}

#cpage {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  padding: 0 8px;
  cursor: default;
}

/* Theme/session selects */
.ses {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  padding: 5px 10px;
  margin: 0 5px;
  height: 34px;
  cursor: pointer;
  transition: var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.ses:hover, .ses:focus {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-acc);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.ses option { background: #181929; color: var(--text-1); }
.stheme, .slang { max-width: 120px; }

.dropd {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  margin: 0 4px;
}

/* Logout */
#logout {
  gap: 6px; font-size: 13px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
}
#logout:hover { background: rgba(239,68,68,0.1) !important; color: #fca5a5 !important; }

/* Timer */
#timer {
  font-size: 12px; font-weight: 600;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════ */
#main {
  transition: margin-left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: var(--navbar-h);
  margin-left: 0;
  min-height: calc(100vh - var(--navbar-h));
}

/* JS sets inline width on sidenav — keep transition */
#sidenav { transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important; }

.main-container { padding: 14px; }

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  margin: 8px;
  overflow: hidden;
  transition: var(--ease);
}
.card:hover {
  border-color: rgba(124,58,237,0.22);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h3 i   { color: #8b5cf6; }
.card-header h3 a   { color: var(--text-1); }
.card-header h3 a:hover { color: #c4b5fd; }

.card-body    { padding: 16px 18px; }
.card-footer a { padding: 0 0 8px; margin-top: 8px; min-height: 20px; }
.card a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════
   STAT BOXES
═══════════════════════════════════════════════ */
.box {
  position: relative;
  padding: 18px 20px;
  margin: 6px;
  border-radius: var(--r-xl);
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 80px;
}

/* Decorative circles */
.box::before {
  content: '';
  position: absolute;
  top: -35px; right: -25px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  pointer-events: none;
}
.box::after {
  content: '';
  position: absolute;
  bottom: -45px; left: -15px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.box a, .box .box-group a { color: #fff; text-decoration: none; display: block; position: relative; z-index: 1; }
.box h1, .box h3 { padding: 0; margin: 0; }

.box h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}
.box h1 span { font-size: 14px; font-weight: 500; opacity: 0.85; }

/* Box-group layout */
.box-group { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }

.box-group-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.box-group-area {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  position: relative; z-index: 1;
}

/* Min heights */
.bmh-50{min-height:50px}.bmh-55{min-height:55px}.bmh-60{min-height:60px}.bmh-65{min-height:65px}
.bmh-70{min-height:70px}.bmh-75{min-height:75px}.bmh-80{min-height:80px}.bmh-85{min-height:85px}
.bmh-90{min-height:90px}.bmh-95{min-height:95px}.bmh-100{min-height:100px}

/* Box bordered */
.box-bordered { border: 1px solid var(--border) !important; }

/* Box-group without anchor */
.box-group-area span { line-height: 1.6; }

/* ═══════════════════════════════════════════════
   BACKGROUND COLORS — Gradient
═══════════════════════════════════════════════ */
.bg-primary   { background: var(--grad-purple) !important; color: #fff !important; }
.bg-secondary { background: linear-gradient(135deg, #475569, #334155) !important; color: #fff !important; }
.bg-success   { background: var(--grad-green)  !important; color: #fff !important; }
.bg-info      { background: var(--grad-cyan)   !important; color: #fff !important; }
.bg-warning   { background: var(--grad-yellow) !important; color: #fff !important; }
.bg-danger    { background: var(--grad-red)    !important; color: #fff !important; }
.bg-light     { background: rgba(241,245,249,0.07) !important; color: var(--text-1) !important; }

.bg-blue      { background: var(--grad-purple) !important; color: #fff !important; }
.bg-indigo    { background: linear-gradient(135deg, #3730a3, #4f46e5) !important; color: #fff !important; }
.bg-purple    { background: var(--grad-purple) !important; color: #fff !important; }
.bg-pink      { background: var(--grad-pink)   !important; color: #fff !important; }
.bg-red       { background: var(--grad-red)    !important; color: #fff !important; }
.bg-orange    { background: var(--grad-orange) !important; color: #fff !important; }
.bg-yellow    { background: var(--grad-yellow) !important; color: #fff !important; }
.bg-green     { background: var(--grad-green)  !important; color: #fff !important; }
.bg-teal      { background: linear-gradient(135deg, #0f766e, #14b8a6) !important; color: #fff !important; }
.bg-cyan      { background: var(--grad-cyan)   !important; color: #fff !important; }
.bg-white     { background: rgba(255,255,255,0.95) !important; color: #1e293b !important; }
.bg-dark      { background: rgba(16,18,35,0.85) !important; color: var(--text-1) !important; }
.bg-grey      { background: rgba(71,85,105,0.35) !important; color: var(--text-1) !important; }
.bg-grey-dark { background: rgba(30,32,53,0.8) !important; color: var(--text-1) !important; }
.bg-light-blue { background: var(--grad-cyan) !important; color: #fff !important; }

/* Text colors */
.text-primary   { color: #8b5cf6 !important; }
.text-secondary { color: var(--text-2) !important; }
.text-success   { color: #10b981 !important; }
.text-info      { color: #06b6d4 !important; }
.text-warning   { color: #f59e0b !important; }
.text-danger    { color: #ef4444 !important; }
.text-light     { color: var(--text-1) !important; }
.text-dark      { color: #1e293b !important; }
.text-blue      { color: #818cf8 !important; }
.text-indigo    { color: #818cf8 !important; }
.text-purple    { color: #a78bfa !important; }
.text-pink      { color: #f472b6 !important; }
.text-red       { color: #ef4444 !important; }
.text-orange    { color: #f97316 !important; }
.text-yellow    { color: #f59e0b !important; }
.text-green     { color: #10b981 !important; }
.text-teal      { color: #14b8a6 !important; }
.text-cyan      { color: #06b6d4 !important; }
.text-white     { color: #fff !important; }
.text-grey      { color: var(--text-3) !important; }
.text-grey-dark { color: var(--text-2) !important; }
.text-light-blue { color: #06b6d4 !important; }
.cl-w           { color: #fff !important; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  margin: 4px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--ease);
  vertical-align: middle;
  user-select: none;
  outline: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }

.btn-login {
  display: block; width: 100%;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: none;
  font-size: 15px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: var(--ease);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.4); }

/* ═══════════════════════════════════════════════
   FORMS / INPUTS
═══════════════════════════════════════════════ */
.form-control {
  display: block; width: 100%;
  padding: 8px 12px;
  font-size: 13px; font-family: inherit;
  color: var(--text-1);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-sizing: border-box;
  transition: var(--ease);
  outline: none;
}
.form-control:focus {
  background: rgba(255,255,255,0.07);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
  color: var(--text-1);
}
.form-control::placeholder { color: var(--text-3); opacity: 1; }

.group-item {
  display: block;
  padding: 8px 12px;
  font-size: 13px; font-family: inherit;
  color: var(--text-1);
  background: var(--bg-input);
  border: 1px solid var(--border);
  box-sizing: border-box;
  transition: var(--ease);
  width: 100%;
}
.group-item:focus {
  background: rgba(255,255,255,0.07);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
  color: var(--text-1);
  outline: none;
}
.group-item::placeholder { color: var(--text-3); opacity: 1; }

.group-item-l { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.group-item-r { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.group-item-md { border-radius: 0; }

input[type="text"], input[type="password"], input[type="number"],
input[type="email"], input[type="tel"], input[type="search"],
textarea, select {
  background: var(--bg-input);
  color: var(--text-1);
  border: 1px solid var(--border);
  transition: var(--ease);
}
input[type="text"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="email"]:focus,
input[type="tel"]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
  outline: none;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ═══════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════ */
.table { width: 100%; border-collapse: collapse; }
.table td, .table th {
  padding: 9px 14px;
  color: var(--text-1);
  vertical-align: middle;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-weight: 600;
  color: var(--text-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.02);
}
.table td a, .table th a { color: var(--text-1); }
.table-bordered td, .table-bordered th { border: 1px solid var(--border) !important; }
.table-hover tbody tr:hover { background: rgba(124,58,237,0.07); cursor: pointer; }
.tscroll tbody { display: block; overflow: auto; height: 70vh; }
.tscroll thead { position: relative; display: block; }

/* ═══════════════════════════════════════════════
   PROGRESS
═══════════════════════════════════════════════ */
.progress { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 6px; max-width: 100%; background: var(--grad-purple); border-radius: 999px; transition: width 0.6s ease; }
.progress-bar-blue { height: 6px; max-width: 100%; background: var(--grad-purple); border-radius: 999px; }
.progress-bar-red  { height: 6px; max-width: 100%; background: var(--grad-red);    border-radius: 999px; }

/* ═══════════════════════════════════════════════
   LOGIN BOX
═══════════════════════════════════════════════ */
.login-box, .register-box { width: 420px; margin: 0 auto; padding-top: 8%; }
@media (max-width: 576px) { .login-box, .register-box { width: 92%; margin-top: 20px; padding-top: 4%; } }

/* ═══════════════════════════════════════════════
   SETTINGS
═══════════════════════════════════════════════ */
.settings { width: 66.66%; margin-top: 5%; margin-left: auto; margin-right: auto; }
@media (max-width: 750px) { .settings { width: 95%; margin-top: 10px; } }

/* ═══════════════════════════════════════════════
   GRID SYSTEM
═══════════════════════════════════════════════ */
.row::after { content: ''; display: table; clear: both; }
.wraprer { width: 100%; }

[class*="col-"] { float: left; }
.col-1{width:8.33%}.col-2{width:16.66%}.col-3{width:25%}.col-4{width:33.33%}
.col-5{width:41.66%}.col-6{width:50%}.col-7{width:58.33%}.col-8{width:66.66%}
.col-9{width:75%}.col-10{width:83.33%}.col-11{width:91.66%}.col-12{width:100%}

.w-1{width:8.33%}.w-2{width:16.66%}.w-3{width:25%}.w-4{width:33.33%}
.w-5{width:41.66%}.w-6{width:50%}.w-7{width:58.33%}.w-8{width:66.66%}
.w-9{width:75%}.w-10{width:83.33%}.w-11{width:91.66%}.w-12{width:100%}

[class*="input-group-"] { float: left; }
.input-group::after { content: ''; display: table; clear: both; }
.input-group-1{width:8.33%}.input-group-2{width:16.66%}.input-group-3{width:25%}
.input-group-4{width:33.33%}.input-group-5{width:41.66%}.input-group-6{width:50%}
.input-group-7{width:58.33%}.input-group-8{width:66.66%}.input-group-9{width:75%}
.input-group-10{width:83.33%}.input-group-11{width:91.66%}.input-group-12{width:100%}

/* ═══════════════════════════════════════════════
   ALERTS / MODAL / NOTIFY
═══════════════════════════════════════════════ */
.alert { width: 100%; padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px; }
.bg-danger { background: var(--grad-red) !important; color: #fff !important; padding: 10px; border-radius: var(--r-sm); }

#notify {
  display: none;
  position: fixed;
  background: rgba(24,25,41,0.97);
  backdrop-filter: blur(12px);
  color: var(--text-1);
  border: 1px solid var(--accent);
  width: 220px;
  left: 50%; margin-left: -110px;
  top: calc(var(--navbar-h) + 16px);
  padding: 10px 14px;
  text-align: center;
  border-radius: var(--r-md);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(124,58,237,0.3);
  font-size: 13px; font-weight: 500;
}

.modal-window {
  position: fixed;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-window:target { opacity: 1; pointer-events: auto; }
.modal-window > div {
  width: 36%;
  position: relative;
  margin: 8% auto;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.65);
}
.modal-window header {
  font-weight: 700; font-size: 16px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
}
.modal-close {
  position: absolute; right: 0; top: 0;
  width: 40px; line-height: 40px;
  text-align: center;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border-top-right-radius: var(--r-lg);
  border-bottom-left-radius: var(--r-sm);
  text-decoration: none; font-size: 18px;
  transition: var(--ease);
}
.modal-close:hover { background: #ef4444; color: #fff; }
.modal-window h1 { font-size: 1.2em; margin: 0 0 12px; }

/* ═══════════════════════════════════════════════
   LOADING
═══════════════════════════════════════════════ */
#loading, .lds-dual-ring {
  display: inline-block;
  width: 64px; height: 64px;
  position: absolute;
  top: 50%; left: 50%;
  margin-top: -50px; margin-left: -50px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 46px; height: 46px;
  margin: 1px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: #a78bfa;
  animation: gp-spin 0.8s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}
@keyframes gp-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════ */
@media screen and (min-width: 751px) {
  .sidenav { width: var(--sidebar-w); }

  #main {
    margin-left: var(--sidebar-w);
    margin-top: calc(var(--nb-top) + var(--navbar-h) + var(--nb-top));
  }

  /* Floating navbar (already handled above) */
  #shareWA { display: inline-flex !important; }
}

@media screen and (max-width: 750px) {
  .sidenav { width: 0; border-right: 0; }
  #main { margin-left: 0; margin-top: var(--navbar-h); }
  #brand   { display: flex !important; }
  #openNav { display: flex; }
  #closeNav { display: none; }
  #cpage { display: none !important; }
  #shareWA { display: inline-flex; }
  .modal-window > div { width: 88%; }
  [class*="col-"] { width: 100%; }
  .col-box-1{width:8.33%}.col-box-2{width:16.66%}.col-box-3{width:25%}.col-box-4{width:33.33%}
  .col-box-5{width:41.66%}.col-box-6{width:50%}.col-box-7{width:58.33%}.col-box-8{width:66.66%}
  .col-box-9{width:75%}.col-box-10{width:83.33%}.col-box-11{width:91.66%}.col-box-12{width:100%}
}

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.text-bold   { font-weight: 700; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.text-nowrap { white-space: nowrap; }
.align-middle { vertical-align: middle; }
.pointer     { cursor: pointer; }
.overflow    { overflow-x: auto; overflow-y: auto; max-height: 80vh; }
.overflow::-webkit-scrollbar { width: 4px; height: 4px; }
.overflow::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 2px; }

.plch-center::-webkit-input-placeholder { text-align: center; }
.plch-center:-moz-placeholder { text-align: center; }

.radius-l-3 { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.radius-r-3 { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.radius-b-3 { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.radius-3   { border-radius: var(--r-sm); }
.radius-l-5 { border-radius: var(--r-md) 0 0 var(--r-md); }
.radius-r-5 { border-radius: 0 var(--r-md) var(--r-md) 0; }
.radius-5   { border-radius: var(--r-md); }

.pd-2{padding:2px}.pd-2p5{padding:2.5px}.pd-3{padding:3px}.pd-3p5{padding:3.5px}.pd-4{padding:4px}.pd-4p5{padding:4.5px}
.pd-5{padding:5px}.pd-5p5{padding:5.5px}.pd-6{padding:6px}.pd-7{padding:7px}.pd-8{padding:8px}.pd-9{padding:9px}.pd-10{padding:10px}
.pd-t-2{padding-top:2px}.pd-t-3{padding-top:3px}.pd-t-4{padding-top:4px}.pd-t-5{padding-top:5px}.pd-t-6{padding-top:6px}
.pd-t-7{padding-top:7px}.pd-t-8{padding-top:8px}.pd-t-9{padding-top:9px}.pd-t-10{padding-top:10px}
.pd-b-2{padding-bottom:2px}.pd-b-3{padding-bottom:3px}.pd-b-4{padding-bottom:4px}.pd-b-5{padding-bottom:5px}
.pd-b-6{padding-bottom:6px}.pd-b-7{padding-bottom:7px}.pd-b-8{padding-bottom:8px}.pd-b-9{padding-bottom:9px}.pd-b-10{padding-bottom:10px}
.pd-r-2{padding-right:2px}.pd-r-3{padding-right:3px}.pd-r-4{padding-right:4px}.pd-r-5{padding-right:5px}
.pd-r-6{padding-right:6px}.pd-r-7{padding-right:7px}.pd-r-8{padding-right:8px}.pd-r-9{padding-right:9px}.pd-r-10{padding-right:10px}
.pd-l-2{padding-left:2px}.pd-l-3{padding-left:3px}.pd-l-4{padding-left:4px}.pd-l-5{padding-left:5px}
.pd-l-6{padding-left:6px}.pd-l-7{padding-left:7px}.pd-l-8{padding-left:8px}.pd-l-9{padding-left:9px}.pd-l-10{padding-left:10px}

.mr-a{margin:auto}.mr-2{margin:2px}.mr-3{margin:3px}.mr-4{margin:4px}.mr-5{margin:5px}.mr-6{margin:6px}
.mr-7{margin:7px}.mr-8{margin:8px}.mr-9{margin:9px}.mr-10{margin:10px}
.mr-t-2{margin-top:2px}.mr-t-3{margin-top:3px}.mr-t-4{margin-top:4px}.mr-t-5{margin-top:5px}
.mr-t-6{margin-top:6px}.mr-t-7{margin-top:7px}.mr-t-8{margin-top:8px}.mr-t-9{margin-top:9px}.mr-t-10{margin-top:10px}
.mr-b-2{margin-bottom:2px}.mr-b-3{margin-bottom:3px}.mr-b-4{margin-bottom:4px}.mr-b-5{margin-bottom:5px}
.mr-b-6{margin-bottom:6px}.mr-b-7{margin-bottom:7px}.mr-b-8{margin-bottom:8px}.mr-b-9{margin-bottom:9px}.mr-b-10{margin-bottom:10px}
.mr-r-2{margin-right:2px}.mr-r-3{margin-right:3px}.mr-r-4{margin-right:4px}.mr-r-5{margin-right:5px}
.mr-r-6{margin-right:6px}.mr-r-7{margin-right:7px}.mr-r-8{margin-right:8px}.mr-r-9{margin-right:9px}.mr-r-10{margin-right:10px}
.mr-l-2{margin-left:2px}.mr-l-3{margin-left:3px}.mr-l-4{margin-left:4px}.mr-l-5{margin-left:5px}
.mr-l-6{margin-left:6px}.mr-l-7{margin-left:7px}.mr-l-8{margin-left:8px}.mr-l-9{margin-left:9px}.mr-l-10{margin-left:10px}

.active { background: rgba(124,58,237,0.12); border-radius: var(--r-sm); color: #a78bfa; }
.chart  { height: 200px; margin: 0 auto; }
.footer { position: absolute; bottom: 0; width: 100%; height: 60px; background: var(--bg-sidebar); border-top: 1px solid var(--border); }
.wrapper { min-height: 100vh; }
#temp { display: none; }

/* ═══════════════════════════════════════════════
   CODE MIRROR
═══════════════════════════════════════════════ */
.cm-s-material.CodeMirror { background-color: #0d1117; color: rgba(201,209,217,1); border-radius: var(--r-sm); }
.cm-s-material .CodeMirror-gutters { background: #0d1117; color: #484f58; border: none; }
.cm-s-material .CodeMirror-guttermarker,
.cm-s-material .CodeMirror-guttermarker-subtle,
.cm-s-material .CodeMirror-linenumber { color: #484f58; }
.cm-s-material .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }
.cm-s-material div.CodeMirror-selected { background: rgba(124,58,237,0.2); }
.cm-s-material.CodeMirror-focused div.CodeMirror-selected { background: rgba(124,58,237,0.15); }
.cm-s-material .CodeMirror-line::selection,
.cm-s-material .CodeMirror-line > span::selection,
.cm-s-material .CodeMirror-line > span > span::selection { background: rgba(124,58,237,0.15); }
.cm-s-material .cm-keyword   { color: rgba(199,146,234,1); }
.cm-s-material .cm-operator  { color: rgba(201,209,217,1); }
.cm-s-material .cm-variable-2 { color: #79c0ff; }
.cm-s-material .cm-atom, .cm-s-material .cm-number { color: #f97316; }
.cm-s-material .cm-def     { color: rgba(201,209,217,1); }
.cm-s-material .cm-string  { color: #7ee787; }
.cm-s-material .cm-string-2 { color: #79c0ff; }
.cm-s-material .cm-comment { color: #8b949e; }
.cm-s-material .cm-variable { color: #79c0ff; }
.cm-s-material .cm-meta, .cm-s-material .cm-tag { color: #7ee787; }
.cm-s-material .cm-attribute { color: #e3b341; }
.cm-s-material .cm-property  { color: #79c0ff; }
.cm-s-material .cm-qualifier,
.cm-s-material .cm-type,
.cm-s-material .cm-variable-3 { color: #e3b341; }
.cm-s-material .cm-tag { color: rgba(248,81,73,1); }
.cm-s-material .cm-error { color: #fff; background-color: #f97316; }
.cm-s-material .CodeMirror-matchingbracket { text-decoration: underline; color: var(--accent) !important; }

/* ═══════════════════════════════════════════════
   PACE LOADER
═══════════════════════════════════════════════ */
.pace { pointer-events: none; user-select: none; z-index: 99999; position: fixed; top: 0; left: 0; right: 0; height: 3px; }
.pace .pace-progress {
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  max-width: 200px;
  position: fixed; z-index: 99999;
  display: block; top: 0; right: 100%;
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #06b6d4);
  box-shadow: 0 0 8px rgba(124,58,237,0.6);
}
.pace-inactive { display: none; }
