:root {
  --bg-root: #070B14;
  --bg-surface: #0D1526;
  --bg-card: rgba(17, 25, 43, 0.88);
  --bg-card-hover: rgba(24, 36, 62, 0.94);
  --bg-input: #0B1220;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-accent: rgba(56, 189, 248, 0.45);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #0078D4;
  --accent-light: #38BDF8;
  --green: #10B981;
  --gold: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;
  --radius-card: 14px;
  --radius-btn: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(900px 500px at 90% 0%, rgba(0,120,212,0.18), transparent 65%), #070B14;
  color: var(--text-primary);
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.vc-shell {
  display: flex;
  min-height: 100vh;
}

.vc-sidebar {
  width: 268px;
  flex-shrink: 0;
  background: rgba(10, 16, 30, 0.96);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.vc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 16px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.vc-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0078D4, #005A9E 60%, #0F1E36);
  border: 1px solid rgba(76, 194, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #FFE066;
  flex-shrink: 0;
}

.vc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.vc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.vc-nav-item:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #FFFFFF;
}

.vc-nav-item.active {
  background: rgba(0, 120, 212, 0.22);
  border-color: rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
}

.vc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.vc-content {
  padding: 20px 24px 86px 24px;
  flex: 1;
}

.vc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.vc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-subtle);
  background: rgba(30, 41, 59, 0.85);
  color: #F8FAFC;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.15s ease;
}
.vc-btn:hover { background: rgba(51, 65, 85, 0.95); }
.vc-btn.primary { background: #0078D4; border-color: #38BDF8; color: #FFFFFF; }
.vc-btn.primary:hover { background: #0066B4; }
.vc-btn.success { background: #059669; border-color: #34D399; color: #FFFFFF; }
.vc-btn.danger { background: rgba(220, 38, 38, 0.2); border-color: rgba(248, 113, 113, 0.5); color: #FCA5A5; }
.vc-btn.warning { background: rgba(217, 119, 6, 0.22); border-color: rgba(251, 191, 36, 0.45); color: #FCD34D; }
.vc-btn.sm { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.vc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.vc-input, .vc-select, .vc-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  min-height: 40px;
}
.vc-input:focus, .vc-select:focus, .vc-textarea:focus {
  outline: none;
  border-color: var(--accent-light);
}

.vc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.vc-badge.blue { background: rgba(0,120,212,0.22); color: #7DD3FC; border: 1px solid rgba(56,189,248,0.35); }
.vc-badge.green { background: rgba(16,185,129,0.18); color: #6EE7B7; border: 1px solid rgba(52,211,153,0.35); }
.vc-badge.gold { background: rgba(245,158,11,0.18); color: #FCD34D; border: 1px solid rgba(251,191,36,0.35); }
.vc-badge.red { background: rgba(239,68,68,0.18); color: #FCA5A5; border: 1px solid rgba(248,113,113,0.35); }
.vc-badge.slate { background: rgba(148,163,184,0.14); color: #CBD5E1; border: 1px solid rgba(148,163,184,0.25); }

.vc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.vc-table th {
  text-align: left;
  padding: 10px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
table.vc-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: middle;
}

.vc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vc-tab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.vc-tab.active {
  background: rgba(0, 120, 212, 0.25);
  border-color: var(--accent-light);
  color: #FFFFFF;
}

.vc-mobile-toggle { display: none; }
.vc-bottom-nav { display: none; }

.vc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vc-modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0F172A;
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

@media (max-width: 1100px) {
  .vc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .vc-sidebar {
    position: fixed;
    left: -280px;
    transition: left 0.2s ease;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.6);
  }
  .vc-sidebar.open { left: 0; }
  .vc-mobile-toggle { display: inline-flex; }
  .vc-topbar { padding: 10px 14px; }
  .vc-content { padding: 14px 12px 92px 12px; }
  .vc-grid-4, .vc-grid-3, .vc-grid-2 { grid-template-columns: 1fr; }
  .vc-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 16, 30, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    z-index: 35;
    justify-content: space-around;
    padding: 6px 4px env(safe-area-inset-bottom, 6px) 4px;
  }
  .vc-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
  }
  .vc-bottom-link.active { color: #38BDF8; background: rgba(0, 120, 212, 0.16); }
}
