/* extracted from dashboard.html <style> block 1 */
/* ===== CLIENT DASHBOARD — matches admin panel style ===== */

    /* Sidebar */
    .sidebar {
      width: 260px;
      background: linear-gradient(180deg, var(--hex-030e12) 0%, var(--hex-041018) 100%);
      border-right: 1px solid var(--rgba-6-182-212-0-12);
      box-shadow: 4px 0 40px var(--rgba-0-0-0-0-5);
    }


    .sidebar-logo {
      padding: 20px 18px;
      border-bottom: 1px solid var(--rgba-6-182-212-0-10);
      background: var(--rgba-6-182-212-0-03);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .sidebar-logo-icon.brand-logo-wrap {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 0 20px var(--rgba-6-182-212-0-35), 0 4px 12px var(--rgba-0-0-0-0-4);
    }

    .sidebar-logo-text {
      font-size: 16px;
      font-weight: 800;
      background: linear-gradient(135deg, var(--hex-e0f7fa), var(--hex-06b6d4));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.02em;
    }

    .sidebar-logo-sub {
      font-size: 10px;
      color: var(--rgba-6-182-212-0-55);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-top: 2px;
    }

    .sidebar-nav {
      padding: 16px 12px;
      flex: 1;
      overflow-y: auto;
    }

    .nav-section { margin-bottom: 8px; }

    .nav-section-label {
      font-size: 9px;
      font-weight: 800;
      color: var(--rgba-6-182-212-0-4);
      text-transform: uppercase;
      letter-spacing: 0.14em;
      padding: 12px 10px 6px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--rgba-6-182-212-0-1);
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      color: var(--rgba-176-220-230-0-65);
      font-size: 13px;
      font-weight: 500;
      transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
      cursor: pointer;
      text-decoration: none;
      margin-bottom: 2px;
      position: relative;
      letter-spacing: 0.01em;
    }

    .nav-item:hover {
      background: var(--rgba-6-182-212-0-08);
      color: var(--hex-e0f7fa);
      transform: translateX(2px);
    }

    .nav-item.active {
      color: var(--hex-22d3ee);
      border: 1px solid var(--rgba-6-182-212-0-25);
      font-weight: 600;
      box-shadow: 0 2px 12px var(--rgba-6-182-212-0-12), inset 0 1px 0 var(--rgba-255-255-255-0-04);
    }

    .nav-item.active::before {
      content: '';
      position: absolute;
      left: 0; top: 50%;
      transform: translateY(-50%);
      width: 3px; height: 55%;
      background: linear-gradient(180deg, var(--hex-22d3ee), var(--hex-06b6d4));
      border-radius: 0 3px 3px 0;
      box-shadow: 0 0 8px var(--rgba-6-182-212-0-6);
    }

    .nav-item .nav-icon {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-size: 14px;
      flex-shrink: 0;
      transition: all 0.2s;
    }

    .nav-item:hover .nav-icon,
    .nav-item.active .nav-icon {
      border-color: var(--rgba-6-182-212-0-3);
      color: var(--hex-22d3ee);
    }

    .nav-badge {
      margin-left: auto;
      background: linear-gradient(135deg, var(--hex-06b6d4), var(--hex-0891b2));
      color: var(--hex-fff);
      font-size: 10px;
      padding: 2px 7px;
      border-radius: 100px;
      font-weight: 700;
      box-shadow: 0 2px 8px var(--rgba-6-182-212-0-4);
      animation: pulse-badge 2s infinite;
    }

    @keyframes pulse-badge {
      0%, 100% { box-shadow: 0 2px 8px var(--rgba-6-182-212-0-4); }
      50% { box-shadow: 0 2px 16px var(--rgba-6-182-212-0-7); }
    }

    .sidebar-footer {
      padding: 14px 12px;
      border-top: 1px solid var(--rgba-6-182-212-0-10);
      background: var(--rgba-6-182-212-0-02);
    }

    .user-info {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      background: var(--rgba-6-182-212-0-06);
      border: 1px solid var(--rgba-6-182-212-0-14);
      cursor: pointer;
      transition: all 0.2s;
    }

    .user-info:hover {
      background: var(--rgba-6-182-212-0-1);
      border-color: var(--rgba-6-182-212-0-25);
    }

    .user-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--hex-06b6d4), var(--hex-22d3ee));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: var(--hex-fff);
      flex-shrink: 0;
      box-shadow: 0 0 16px var(--rgba-6-182-212-0-4);
    }

    .user-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--hex-e0f7fa);
    }

    .user-role {
      font-size: 10px;
      color: var(--rgba-6-182-212-0-55);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .user-logout {
      margin-left: auto;
      color: var(--rgba-176-220-230-0-4);
      font-size: 14px;
      border: none;
      outline: none;
      background: none;
      padding: 6px;
      border-radius: 8px;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .user-logout:hover {
      color: var(--hex-f87171);
      background: var(--rgba-248-113-113-0-1);
    }

    /* Main content */
    .main-content {
      flex: 1;
      margin-left: 260px;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Page header */
    .page-header {
    background: none;
      border-bottom: 1px solid var(--rgba-6-182-212-0-10);
      padding: 0 28px;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(24px) saturate(1.4);
      gap: 12px;
    }

    .page-header > div:first-child {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 1;
      min-width: 0;
    }

    .page-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--hex-e0f7fa);
      letter-spacing: -0.01em;
    }

    .page-subtitle {
      font-size: 12px;
      color: var(--rgba-6-182-212-0-5);
      margin-top: 1px;
    }

    .mobile-menu-btn {
      display: none;
      background: var(--rgba-6-182-212-0-08);
      border: 1px solid var(--rgba-6-182-212-0-18);
      color: var(--hex-22d3ee);
      font-size: 18px;
      padding: 8px 10px;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .mobile-menu-btn:hover { background: var(--rgba-6-182-212-0-15); }

    /* Page body */
    .page-body { padding: 24px 28px; flex: 1; }

    /* Grid 2 columns */
    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    /* Charts row uses grid-2 */
    .charts-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    /* Stats */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .stat-card {
      background: linear-gradient(135deg, var(--rgba-7-19-24-0-9) 0%, var(--rgba-4-16-20-0-95) 100%);
      border: 1px solid var(--rgba-6-182-212-0-12);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
      position: relative;
      overflow: hidden;
    }

    .stat-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--rgba-6-182-212-0-4), transparent);
    }

    .stat-card::after {
      content: '';
      position: absolute;
      bottom: 0; right: 0;
      width: 80px; height: 80px;
      background: radial-gradient(circle, var(--rgba-6-182-212-0-06) 0%, transparent 70%);
      pointer-events: none;
    }

    .stat-card:hover {
      border-color: var(--rgba-6-182-212-0-28);
      transform: translateY(-3px);
      box-shadow: 0 12px 40px var(--rgba-0-0-0-0-4), 0 0 30px var(--rgba-6-182-212-0-08);
    }

    .stat-icon {
      width: 50px;
      height: 50px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .stat-icon.purple { background: var(--rgba-6-182-212-0-12); border: 1px solid var(--rgba-6-182-212-0-22); color: var(--hex-22d3ee); }
    .stat-icon.green  { background: var(--rgba-52-211-153-0-10); border: 1px solid var(--rgba-52-211-153-0-22); color: var(--hex-34d399); }
    .stat-icon.blue   { background: var(--rgba-96-165-250-0-10); border: 1px solid var(--rgba-96-165-250-0-22); color: var(--hex-60a5fa); }
    .stat-icon.orange { background: var(--rgba-251-191-36-0-10); border: 1px solid var(--rgba-251-191-36-0-22); color: var(--hex-fbbf24); }
    .stat-icon.red    { background: var(--rgba-248-113-113-0-10); border: 1px solid var(--rgba-248-113-113-0-22); color: var(--hex-f87171); }

    .stat-value {
      font-size: 28px;
      font-weight: 800;
      color: var(--hex-e0f7fa);
      line-height: 1;
      letter-spacing: -0.04em;
    }

    .stat-label {
      font-size: 11px;
      color: var(--rgba-6-182-212-0-5);
      margin-top: 5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.07em;
    }

    /* Cards */
    .card {
      background: linear-gradient(135deg, var(--rgba-7-19-24-0-85) 0%, var(--rgba-4-16-20-0-9) 100%);
      border: 1px solid var(--rgba-6-182-212-0-10);
      border-radius: 16px;
      padding: 22px;
      position: relative;
      overflow: hidden;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--rgba-6-182-212-0-25), transparent);
      opacity: 0;
      transition: opacity 0.2s;
    }

    .card:hover::before { opacity: 1; }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      gap: 12px;
      flex-wrap: wrap;
    }

    .card-title { font-size: 15px; font-weight: 700; color: var(--hex-e0f7fa); }
    .card-subtitle { font-size: 12px; color: var(--rgba-6-182-212-0-45); margin-top: 3px; }

    /* Toolbar */
    .toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }

    .search-wrapper { position: relative; flex: 1; min-width: 200px; }

    .search-input {
      background: var(--rgba-6-182-212-0-05);
      border: 1px solid var(--rgba-6-182-212-0-15);
      color: var(--hex-e0f7fa);
      padding: 10px 14px 10px 40px;
      border-radius: 10px;
      font-size: 13px;
      outline: none;
      transition: all 0.2s;
      width: 100%;
    }

    .search-input:focus {
      border-color: var(--rgba-6-182-212-0-45);
      background: var(--rgba-6-182-212-0-08);
      box-shadow: 0 0 0 3px var(--rgba-6-182-212-0-1);
    }

    .search-input::placeholder { color: var(--rgba-6-182-212-0-35); }

    .filter-select {
      background: var(--rgba-6-182-212-0-05);
      border: 1px solid var(--rgba-6-182-212-0-15);
      color: var(--hex-e0f7fa);
      padding: 10px 14px;
      border-radius: 10px;
      font-size: 13px;
      outline: none;
      cursor: pointer;
      transition: all 0.2s;
    }

    .filter-select:focus {
      border-color: var(--rgba-6-182-212-0-45);
      box-shadow: 0 0 0 3px var(--rgba-6-182-212-0-1);
    }

    .filter-select option { background: var(--hex-071318); color: var(--hex-e0f7fa); }

    /* Table */
    .table-wrapper {
      overflow-x: auto;
      border-radius: 12px;
      border: 1px solid var(--rgba-6-182-212-0-10);
      background: var(--rgba-7-19-24-0-6);
      -webkit-overflow-scrolling: touch;
    }

    table { width: 100%; border-collapse: collapse; }

    thead { background: var(--rgba-6-182-212-0-06); }

    thead th {
      padding: 12px 16px;
      text-align: left;
      font-size: 10px;
      font-weight: 800;
      color: var(--rgba-6-182-212-0-55);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      white-space: nowrap;
      border-bottom: 1px solid var(--rgba-6-182-212-0-10);
    }

    tbody tr { border-top: 1px solid var(--rgba-6-182-212-0-05); transition: background 0.15s; }
    tbody tr:hover { background: var(--rgba-6-182-212-0-04); }
    tbody td { padding: 13px 16px; font-size: 13px; color: var(--hex-c4e8ef); }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 10px 18px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      border: none;
      transition: all 0.2s;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
      position: relative;
      letter-spacing: 0.01em;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--hex-06b6d4) 0%, var(--hex-0891b2) 100%);
      color: var(--hex-fff);
      box-shadow: 0 4px 16px var(--rgba-6-182-212-0-3), inset 0 1px 0 var(--rgba-255-255-255-0-15);
    }

    .btn-primary:hover {
      color: var(--hex-fff);
      transform: translateY(-1px);
      box-shadow: 0 8px 28px var(--rgba-6-182-212-0-45), inset 0 1px 0 var(--rgba-255-255-255-0-2);
    }

    .btn-secondary {
      background: var(--rgba-6-182-212-0-07);
      color: var(--hex-a0d8e0);
      border: 1px solid var(--rgba-6-182-212-0-18);
    }

    .btn-secondary:hover {
      background: var(--rgba-6-182-212-0-13);
      border-color: var(--rgba-6-182-212-0-35);
      color: var(--hex-e0f7fa);
      transform: translateY(-1px);
    }

    .btn-ghost {
      background: transparent;
      color: var(--rgba-6-182-212-0-6);
      border: 1px solid transparent;
    }

    .btn-ghost:hover {
      background: var(--rgba-6-182-212-0-07);
      color: var(--hex-22d3ee);
      border-color: var(--rgba-6-182-212-0-18);
    }

    .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
    .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

    /* Form inputs */
    .form-input {
      background: var(--rgba-6-182-212-0-05);
      border: 1px solid var(--rgba-6-182-212-0-15);
      color: var(--hex-e0f7fa);
      padding: 11px 14px;
      border-radius: 10px;
      font-size: 14px;
      transition: all 0.2s;
      outline: none;
      width: 100%;
    }

    .form-input:focus {
      border-color: var(--rgba-6-182-212-0-5);
      box-shadow: 0 0 0 3px var(--rgba-6-182-212-0-1);
      background: var(--rgba-6-182-212-0-08);
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: var(--rgba-2-8-12-0-88);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
      backdrop-filter: blur(12px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }

    .modal-overlay.active { opacity: 1; pointer-events: all; }

    .modal {
      background: linear-gradient(135deg, var(--hex-071318) 0%, var(--hex-041014) 100%);
      border: 1px solid var(--rgba-6-182-212-0-2);
      border-radius: 18px;
      padding: 28px;
      width: 100%;
      max-width: 520px;
      max-height: 90vh;
      overflow-y: auto;
      transform: translateY(24px) scale(0.97);
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
      box-shadow: 0 24px 80px var(--rgba-0-0-0-0-7), 0 0 60px var(--rgba-6-182-212-0-08);
      position: relative;
    }

    .modal::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--rgba-6-182-212-0-6), transparent);
    }

    .modal-overlay.active .modal { transform: translateY(0) scale(1); }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
    }

    .modal-title { font-size: 18px; font-weight: 700; color: var(--hex-e0f7fa); }

    .modal-close {
      background: var(--rgba-6-182-212-0-07);
      border: 1px solid var(--rgba-6-182-212-0-18);
      color: var(--rgba-6-182-212-0-6);
      font-size: 15px;
      padding: 7px 11px;
      border-radius: 8px;
      transition: all 0.2s;
    }

    .modal-close:hover {
      color: var(--hex-e0f7fa);
      background: var(--rgba-6-182-212-0-14);
      border-color: var(--rgba-6-182-212-0-35);
    }

    /* Toast */
    #toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 9999;
      pointer-events: none;
    }

    .toast {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--rgba-7-19-24-0-95);
      border: 1px solid var(--rgba-6-182-212-0-18);
      border-radius: 12px;
      padding: 14px 18px;
      min-width: 280px;
      max-width: 380px;
      box-shadow: 0 8px 40px var(--rgba-0-0-0-0-5);
      animation: slideInRight 0.35s cubic-bezier(0.34,1.56,0.64,1);
      backdrop-filter: blur(16px);
      pointer-events: all;
    }

    .toast.success { border-left: 3px solid var(--hex-34d399); }
    .toast.error   { border-left: 3px solid var(--hex-f87171); }
    .toast.warning { border-left: 3px solid var(--hex-fbbf24); }
    .toast.info    { border-left: 3px solid var(--hex-22d3ee); }

    /* Sidebar overlay */
    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--rgba-0-0-0-0-8);
      z-index: 99;
      backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active { display: block; }

    /* Badges */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 10px;
      border-radius: 100px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.03em;
    }

    .badge-success { background: var(--rgba-52-211-153-0-1); color: var(--hex-34d399); border: 1px solid var(--rgba-52-211-153-0-25); }
    .badge-danger  { background: var(--rgba-248-113-113-0-1); color: var(--hex-f87171); border: 1px solid var(--rgba-248-113-113-0-25); }
    .badge-warning { background: var(--rgba-251-191-36-0-1); color: var(--hex-fbbf24); border: 1px solid var(--rgba-251-191-36-0-25); }
    .badge-info    { background: var(--rgba-34-211-238-0-1); color: var(--hex-22d3ee); border: 1px solid var(--rgba-34-211-238-0-25); }
    .badge-cyan    { background: var(--rgba-6-182-212-0-1); color: var(--hex-06b6d4); border: 1px solid var(--rgba-6-182-212-0-25); }
    .badge-muted   { background: var(--rgba-255-255-255-0-05); color: var(--rgba-176-220-230-0-6); border: 1px solid var(--rgba-255-255-255-0-08); }

    /* License key */
    .license-key {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      background: var(--rgba-6-182-212-0-07);
      padding: 5px 11px;
      border-radius: 8px;
      border: 1px solid var(--rgba-6-182-212-0-18);
      color: var(--hex-22d3ee);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: all 0.2s;
      user-select: none;
    }

    .license-key:hover {
      border-color: var(--rgba-6-182-212-0-45);
      background: var(--rgba-6-182-212-0-13);
      box-shadow: 0 0 14px var(--rgba-6-182-212-0-18);
    }

    /* Pagination */
    .pagination {
      display: flex;
      align-items: center;
      gap: 6px;
      justify-content: center;
      margin-top: 24px;
      flex-wrap: wrap;
    }

    .page-btn {
      width: 36px;
      height: 36px;
      border-radius: 9px;
      background: var(--rgba-6-182-212-0-06);
      border: 1px solid var(--rgba-6-182-212-0-14);
      color: var(--rgba-6-182-212-0-6);
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 600;
    }

    .page-btn:hover, .page-btn.active {
      background: linear-gradient(135deg, var(--hex-06b6d4), var(--hex-0891b2));
      color: var(--hex-fff);
      border-color: var(--hex-06b6d4);
      box-shadow: 0 4px 14px var(--rgba-6-182-212-0-35);
    }

    /* Empty / muted */
    .empty-state { text-align: center; padding: 60px 20px; color: var(--rgba-6-182-212-0-4); }
    .empty-title { font-size: 17px; font-weight: 700; color: var(--rgba-224-247-250-0-7); margin-bottom: 8px; }
    .empty-desc  { font-size: 14px; color: var(--rgba-6-182-212-0-4); }
    .td-muted    { color: var(--rgba-6-182-212-0-45); font-size: 13px; }

    /* Spinner */
    .spinner {
      width: 18px; height: 18px;
      border: 2px solid var(--rgba-6-182-212-0-18);
      border-top-color: var(--hex-06b6d4);
      border-radius: 50%;
      animation: spin 0.65s linear infinite;
      display: inline-block;
      vertical-align: middle;
    }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes slideInRight {
      from { transform: translateX(110%); opacity: 0; }
      to   { transform: translateX(0); opacity: 1; }
    }

    /* Chart card */
    .chart-card:hover {
      border-color: var(--rgba-6-182-212-0-22);
      box-shadow: 0 8px 40px var(--rgba-0-0-0-0-35), 0 0 30px var(--rgba-6-182-212-0-06);
      transform: translateY(-2px);
    }

    /* Doughnut chart wrap responsive */
    @media (max-width: 480px) {
      .doughnut-wrap {
        flex-direction: column;
        height: auto !important;
        align-items: center;
        gap: 16px;
      }
      .doughnut-wrap > div:first-child {
        width: 160px !important;
        height: 160px !important;
      }
    }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--rgba-6-182-212-0-2); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--rgba-6-182-212-0-4); }

    /* Ambient glow */
    body::before {
      content: '';
      position: fixed;
      top: -30%; left: -10%;
      width: 60%; height: 60%;
      background: radial-gradient(ellipse, var(--rgba-6-182-212-0-05) 0%, transparent 65%);
      pointer-events: none;
      z-index: 0;
    }

    body::after {
      content: '';
      position: fixed;
      bottom: -20%; right: -10%;
      width: 50%; height: 50%;
      background: radial-gradient(ellipse, var(--rgba-34-211-238-0-03) 0%, transparent 65%);
      pointer-events: none;
      z-index: 0;
    }

    .app-layout { position: relative; z-index: 1; }

    /* ===== MOBILE RESPONSIVE ===== */
    @media (max-width: 900px) {
      .charts-row { grid-template-columns: 1fr !important; }
      .grid-2 { grid-template-columns: 1fr !important; }
      .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      thead th, tbody td { white-space: nowrap; }
    }

    @media (max-width: 768px) {
      .sidebar {
        width: 260px;
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: none;
      }

      .sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 60px var(--rgba-0-0-0-0-7);
      }

      .sidebar {
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
      }

      .main-content { margin-left: 0; }
      .mobile-menu-btn { display: flex !important; }

      .page-header { padding: 0 16px; height: 60px; }
      .page-body { padding: 16px; }

      .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

      .toolbar { flex-direction: column; align-items: stretch; }
      .search-wrapper { min-width: unset; width: 100%; }
      .filter-select { width: 100%; }

      .modal-overlay { padding: 12px; align-items: flex-end; }
      .modal { max-height: 92vh; border-radius: 18px 18px 0 0; }

      #toast-container { bottom: 16px; right: 16px; left: 16px; }
      .toast { min-width: unset; width: 100%; }

      .card-header { flex-wrap: wrap; gap: 10px; }
    }

    @media (max-width: 480px) {
      .stats-grid { grid-template-columns: 1fr; }
      .stat-card { padding: 16px; }
      .stat-value { font-size: 24px; }
      .page-header { height: 56px; }
      .page-title { font-size: 15px; }
      .modal-footer { flex-direction: column; }
      .modal-footer .btn { width: 100%; justify-content: center; }
    }

    /* ===== LIGHT MODE OVERRIDES ===== */
    html[data-theme="light"] .sidebar {
      background: linear-gradient(180deg, var(--hex-f0fafd) 0%, var(--hex-e6f7fb) 100%);
      border-right: 1px solid var(--rgba-8-145-178-0-15);
      box-shadow: 4px 0 40px var(--rgba-8-145-178-0-08);
    }

    html[data-theme="light"] .sidebar-logo {
      background: var(--rgba-8-145-178-0-04);
      border-bottom: 1px solid var(--rgba-8-145-178-0-12);
    }

    html[data-theme="light"] .sidebar-logo-text {
      background: linear-gradient(135deg, var(--hex-083344), var(--hex-0891b2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    html[data-theme="light"] .sidebar-logo-sub { color: var(--rgba-8-145-178-0-55); }

    html[data-theme="light"] .nav-section-label { color: var(--rgba-8-145-178-0-5); }
    html[data-theme="light"] .nav-section-label::after { background: var(--rgba-8-145-178-0-12); }

    html[data-theme="light"] .nav-item { color: var(--rgba-8-51-68-0-65); }
    html[data-theme="light"] .nav-item:hover { background: var(--rgba-8-145-178-0-07); color: var(--hex-083344); }

    html[data-theme="light"] .nav-item.active {
      background: linear-gradient(135deg, var(--rgba-8-145-178-0-14) 0%, var(--rgba-8-145-178-0-07) 100%);
      color: var(--hex-0891b2);
      border-color: var(--rgba-8-145-178-0-22);
    }

    html[data-theme="light"] .nav-item .nav-icon {
      background: var(--rgba-8-145-178-0-06);
      border-color: var(--rgba-8-145-178-0-12);
    }

    html[data-theme="light"] .nav-item:hover .nav-icon,
    html[data-theme="light"] .nav-item.active .nav-icon {
      background: var(--rgba-8-145-178-0-12);
      border-color: var(--rgba-8-145-178-0-28);
      color: var(--hex-0891b2);
    }

    html[data-theme="light"] .sidebar-footer {
      background: var(--rgba-8-145-178-0-03);
      border-top: 1px solid var(--rgba-8-145-178-0-12);
    }

    html[data-theme="light"] .user-info {
      background: var(--rgba-8-145-178-0-06);
      border-color: var(--rgba-8-145-178-0-15);
    }

    html[data-theme="light"] .user-info:hover {
      background: var(--rgba-8-145-178-0-1);
      border-color: var(--rgba-8-145-178-0-28);
    }

    html[data-theme="light"] .user-name { color: var(--hex-083344); }
    html[data-theme="light"] .user-role { color: var(--rgba-8-145-178-0-55); }
    html[data-theme="light"] .user-logout { color: var(--rgba-8-51-68-0-4); }

    html[data-theme="light"] .page-header {
      background: var(--rgba-244-251-253-0-94);
      border-bottom: 1px solid var(--rgba-8-145-178-0-12);
    }

    html[data-theme="light"] .page-title { color: var(--hex-083344); }
    html[data-theme="light"] .page-subtitle { color: var(--rgba-8-145-178-0-55); }
    html[data-theme="light"] .mobile-menu-btn { background: var(--rgba-8-145-178-0-07); border-color: var(--rgba-8-145-178-0-18); color: var(--hex-0891b2); }

    html[data-theme="light"] .stat-card {
      background: linear-gradient(135deg, var(--hex-ffffff) 0%, var(--hex-f5fcff) 100%);
      border-color: var(--rgba-8-145-178-0-14);
    }

    html[data-theme="light"] .stat-value { color: var(--hex-083344); }
    html[data-theme="light"] .stat-label { color: var(--rgba-8-145-178-0-55); }

    html[data-theme="light"] .card {
      background: linear-gradient(135deg, var(--hex-ffffff) 0%, var(--hex-f8fdff) 100%);
      border-color: var(--rgba-8-145-178-0-12);
    }

    html[data-theme="light"] .card-title { color: var(--hex-083344); }
    html[data-theme="light"] .card-subtitle { color: var(--rgba-8-145-178-0-5); }

    html[data-theme="light"] .search-input {
      background: var(--rgba-8-145-178-0-04);
      border-color: var(--rgba-8-145-178-0-18);
      color: var(--hex-083344);
    }

    html[data-theme="light"] .search-input::placeholder { color: var(--rgba-8-145-178-0-4); }
    html[data-theme="light"] .search-input:focus { border-color: var(--rgba-8-145-178-0-5); background: var(--rgba-8-145-178-0-07); }

    html[data-theme="light"] .filter-select {
      background: var(--rgba-8-145-178-0-04);
      border-color: var(--rgba-8-145-178-0-18);
      color: var(--hex-083344);
    }

    html[data-theme="light"] .filter-select option { background: var(--hex-fff); color: var(--hex-083344); }

    html[data-theme="light"] .table-wrapper {
      background: var(--rgba-255-255-255-0-8);
      border-color: var(--rgba-8-145-178-0-12);
    }

    html[data-theme="light"] thead { background: var(--rgba-8-145-178-0-05); }
    html[data-theme="light"] thead th { color: var(--rgba-8-145-178-0-6); border-bottom-color: var(--rgba-8-145-178-0-12); }
    html[data-theme="light"] tbody tr { border-top-color: var(--rgba-8-145-178-0-06); }
    html[data-theme="light"] tbody tr:hover { background: var(--rgba-8-145-178-0-04); }
    html[data-theme="light"] tbody td { color: var(--hex-336775); }

    html[data-theme="light"] .btn-secondary {
      background: var(--rgba-8-145-178-0-07);
      color: var(--hex-0891b2);
      border-color: var(--rgba-8-145-178-0-2);
    }

    html[data-theme="light"] .btn-secondary:hover {
      background: var(--rgba-8-145-178-0-13);
      border-color: var(--rgba-8-145-178-0-38);
      color: var(--hex-083344);
    }

    html[data-theme="light"] .btn-ghost { color: var(--rgba-8-145-178-0-65); }
    html[data-theme="light"] .btn-ghost:hover { background: var(--rgba-8-145-178-0-07); color: var(--hex-0891b2); border-color: var(--rgba-8-145-178-0-2); }

    html[data-theme="light"] .modal {
      background: linear-gradient(135deg, var(--hex-ffffff) 0%, var(--hex-f5fcff) 100%);
      border-color: var(--rgba-8-145-178-0-2);
    }

    html[data-theme="light"] .modal-title { color: var(--hex-083344); }
    html[data-theme="light"] .modal-close { background: var(--rgba-8-145-178-0-06); border-color: var(--rgba-8-145-178-0-18); color: var(--rgba-8-145-178-0-6); }
    html[data-theme="light"] .modal-close:hover { background: var(--rgba-8-145-178-0-12); color: var(--hex-083344); }

    html[data-theme="light"] .toast {
      background: var(--rgba-255-255-255-0-97);
      border-color: var(--rgba-8-145-178-0-18);
    }

    html[data-theme="light"] .license-key {
      background: var(--rgba-8-145-178-0-07);
      border-color: var(--rgba-8-145-178-0-2);
      color: var(--hex-0891b2);
    }

    html[data-theme="light"] .td-muted { color: var(--rgba-8-145-178-0-55); }

    html[data-theme="light"] .badge-cyan { background: var(--rgba-8-145-178-0-08); color: var(--hex-0891b2); border-color: var(--rgba-8-145-178-0-22); }

    html[data-theme="light"] body::before,
    html[data-theme="light"] body::after { display: none; }

    html[data-theme="light"] .form-input {
      background: var(--rgba-8-145-178-0-04);
      border-color: var(--rgba-8-145-178-0-18);
      color: var(--hex-083344);
    }

    html[data-theme="light"] .form-input:focus {
      border-color: var(--rgba-8-145-178-0-5);
      background: var(--rgba-8-145-178-0-07);
    }

/* generated inline-style classes from dashboard.html */

.dashboard-inline-1 {display:none;}

.dashboard-inline-2 {flex:1;min-width:0;}

.dashboard-inline-3 {display: flex;flex-direction: row;gap: 5px;}

.dashboard-inline-4 {display:flex;align-items:center;gap:12px;}

.dashboard-inline-5 {display:flex;gap:10px;align-items:center;flex-shrink:0;}

.dashboard-inline-6 {font-size:8px;}

.dashboard-inline-7 {margin-top:0;}

.dashboard-inline-8 {margin-top:20px;margin-bottom:20px;}

.dashboard-inline-9 {position:relative;height:220px;}

.dashboard-inline-10 {display:flex;align-items:center;gap:24px;height:220px;}

.dashboard-inline-11 {position:relative;height:200px;width:200px;flex-shrink:0;}

.dashboard-inline-12 {display:flex;flex-direction:column;gap:10px;flex:1;}

.dashboard-inline-13 {margin-bottom:20px;}

.dashboard-inline-14 {color:var(--primary,var(--hex-06b6d4));margin-right:6px;}

.dashboard-inline-15 {color:var(--hex-34d399);margin-right:6px;}

.dashboard-inline-16 {color:var(--hex-fbbf24);margin-right:6px;}

.dashboard-inline-17 {display:grid;gap:12px;}

.dashboard-inline-18 {color:var(--hex-60a5fa);margin-right:6px;}

.dashboard-inline-19 {padding:40px;color:var(--rgba-6-182-212-0-4);}

.dashboard-inline-20 {max-width:600px;}

.dashboard-inline-21 {max-width:720px;}
