
    :root {
      --bg: #0f172a;
      --bg-soft: #111827;
      --accent: #3b82f6;
      --accent-soft: rgba(59, 130, 246, 0.15);
      --text: #e5e7eb;
      --muted: #9ca3af;
      --border: #1f2937;
      --danger: #ef4444;
      --success: #22c55e;
      --warning: #f59e0b;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    }

    body {
      background: radial-gradient(circle at top left, #1f2937, #020617);
      color: var(--text);
      min-height: 100vh;
      display: flex;
    }

    /* Layout */
    .sidebar {
      width: 260px;
      background: linear-gradient(to bottom, #020617, #030712);
      border-right: 1px solid var(--border);
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
    }

    .sidebar-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 24px;
    }

    .logo {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #e5e7eb;
      font-size: 18px;
    }

    .sidebar-title {
      font-size: 18px;
      font-weight: 600;
    }

    .sidebar-subtitle {
      font-size: 12px;
      color: var(--muted);
    }

    .nav-section-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin: 18px 0 8px;
    }

    .nav-list {
      list-style: none;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 8px;
      color: var(--muted);
      cursor: pointer;
      transition: background 0.15s, color 0.15s, transform 0.1s;
      font-size: 14px;
    }

    .nav-item:hover {
      background: #020617;
      color: var(--text);
      transform: translateX(2px);
    }

    .nav-item.active {
      background: var(--accent-soft);
      color: var(--text);
      border: 1px solid rgba(59, 130, 246, 0.4);
    }

    .nav-icon {
      width: 18px;
      height: 18px;
      border-radius: 6px;
      background: #020617;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
    }

    .sidebar-footer {
      margin-top: auto;
      font-size: 12px;
      color: var(--muted);
      border-top: 1px solid var(--border);
      padding-top: 12px;
    }

    .sidebar-user {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .avatar {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 30%, #22c55e, #16a34a);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 600;
      color: #e5e7eb;
    }

    .sidebar-user-info {
      display: flex;
      flex-direction: column;
    }

    .sidebar-user-name {
      font-size: 13px;
    }

    .sidebar-user-role {
      font-size: 11px;
      color: var(--muted);
    }

    .sidebar-version {
      font-size: 11px;
      color: var(--muted);
    }

    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 18px 22px;
      gap: 16px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .topbar-left {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .topbar-title {
      font-size: 20px;
      font-weight: 600;
    }

    .topbar-subtitle {
      font-size: 13px;
      color: var(--muted);
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .btn {
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #020617;
      color: var(--text);
      font-size: 13px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
    }

    .btn:hover {
      background: #030712;
      border-color: #374151;
      transform: translateY(-1px);
    }

    .btn-primary {
      background: var(--accent);
      border-color: #2563eb;
    }

    .btn-primary:hover {
      background: #2563eb;
    }

    .btn-icon {
      font-size: 14px;
    }

    .search-input {
      background: #020617;
      border-radius: 999px;
      border: 1px solid var(--border);
      padding: 6px 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--muted);
      min-width: 220px;
    }

    .search-input input {
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 13px;
      flex: 1;
    }

    .search-input input::placeholder {
      color: var(--muted);
    }

    .search-icon {
      font-size: 13px;
    }

    .content-grid {
      display: grid;
      grid-template-columns: 2.2fr 1.4fr;
      gap: 16px;
      flex: 1;
      min-height: 0;
    }

    .card {
      background: linear-gradient(to bottom right, #020617, #030712);
      border-radius: 14px;
      border: 1px solid var(--border);
      padding: 14px 14px 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .card-title {
      font-size: 15px;
      font-weight: 500;
    }

    .card-subtitle {
      font-size: 12px;
      color: var(--muted);
    }

    .card-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .badge {
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 11px;
      border: 1px solid var(--border);
      color: var(--muted);
    }

    .badge-success {
      border-color: rgba(34, 197, 94, 0.5);
      color: #bbf7d0;
      background: rgba(22, 163, 74, 0.15);
    }

    .badge-warning {
      border-color: rgba(245, 158, 11, 0.5);
      color: #fed7aa;
      background: rgba(245, 158, 11, 0.15);
    }

    .badge-danger {
      border-color: rgba(239, 68, 68, 0.5);
      color: #fecaca;
      background: rgba(239, 68, 68, 0.15);
    }

    /* Stats row */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .stat-card {
      background: #020617;
      border-radius: 12px;
      border: 1px solid var(--border);
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .stat-label {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .stat-value {
      font-size: 18px;
      font-weight: 600;
    }

    .stat-trend {
      font-size: 11px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .trend-up {
      color: var(--success);
    }

    .trend-down {
      color: var(--danger);
    }

    .trend-neutral {
      color: var(--muted);
    }

    /* Table */
    .table-wrapper {
      border-radius: 10px;
      border: 1px solid var(--border);
      overflow: hidden;
      margin-top: 4px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    thead {
      background: #020617;
    }

    th,
    td {
      padding: 8px 10px;
      text-align: left;
      border-bottom: 1px solid #020617;
    }

    th {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    tbody tr:hover {
      background: #020617;
    }

    .status-pill {
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 11px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .status-active {
      background: rgba(34, 197, 94, 0.15);
      color: #bbf7d0;
    }

    .status-pending {
      background: rgba(245, 158, 11, 0.15);
      color: #fed7aa;
    }

    .status-suspended {
      background: rgba(239, 68, 68, 0.15);
      color: #fecaca;
    }

    .status-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: currentColor;
    }

    .role-pill {
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 11px;
      border: 1px solid var(--border);
      color: var(--muted);
    }

    .role-admin {
      border-color: rgba(59, 130, 246, 0.6);
      color: #bfdbfe;
      background: rgba(37, 99, 235, 0.15);
    }

    .role-manager {
      border-color: rgba(34, 197, 94, 0.6);
      color: #bbf7d0;
      background: rgba(22, 163, 74, 0.15);
    }

    .role-user {
      border-color: rgba(148, 163, 184, 0.6);
      color: #e5e7eb;
      background: rgba(15, 23, 42, 0.4);
    }

    .table-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 10px;
      background: #020617;
      font-size: 11px;
      color: var(--muted);
    }

    .pagination {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .page-btn {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #030712;
      color: var(--muted);
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }

    .page-btn.active {
      background: var(--accent);
      border-color: #2563eb;
      color: #e5e7eb;
    }

    .page-btn:hover {
      background: #020617;
      color: var(--text);
    }

    /* Right column cards */
    .activity-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 4px;
    }

    .activity-item {
      display: flex;
      gap: 10px;
      padding: 8px 9px;
      border-radius: 10px;
      background: #020617;
      border: 1px solid var(--border);
      font-size: 12px;
    }

    .activity-icon {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: #030712;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
    }

    .activity-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .activity-title {
      font-size: 12px;
    }

    .activity-meta {
      font-size: 11px;
      color: var(--muted);
    }

    .activity-meta span {
      margin-right: 6px;
    }

    .activity-meta strong {
      color: var(--text);
      font-weight: 500;
    }

    .activity-tag {
      font-size: 11px;
      padding: 2px 6px;
      border-radius: 999px;
      border: 1px solid var(--border);
      color: var(--muted);
    }

    .chart-placeholder {
      margin-top: 6px;
      border-radius: 10px;
      border: 1px dashed #1f2937;
      padding: 10px;
      font-size: 11px;
      color: var(--muted);
      text-align: center;
    }

    .settings-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 4px;
    }

    .setting-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 9px;
      border-radius: 10px;
      background: #020617;
      border: 1px solid var(--border);
      font-size: 12px;
    }

    .setting-label {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .setting-title {
      font-size: 12px;
    }

    .setting-description {
      font-size: 11px;
      color: var(--muted);
    }

    .toggle {
      width: 34px;
      height: 18px;
      border-radius: 999px;
      background: #030712;
      border: 1px solid var(--border);
      padding: 2px;
      display: flex;
      align-items: center;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }

    .toggle-knob {
      width: 14px;
      height: 14px;
      border-radius: 999px;
      background: #9ca3af;
      transition: transform 0.15s, background 0.15s;
    }

    .toggle.on {
      background: var(--accent-soft);
      border-color: #2563eb;
    }

    .toggle.on .toggle-knob {
      transform: translateX(14px);
      background: #e5e7eb;
    }

    /* Responsive */
    @media (max-width: 960px) {
      .content-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .sidebar {
        display: none;
      }

      body {
        padding: 0;
      }

      .main {
        padding: 14px;
      }

      .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .topbar-right {
        width: 100%;
        justify-content: space-between;
      }

      .search-input {
        flex: 1;
      }
    }
