/* ═══════════════════════════════════════════════
   MAX API GAMES — Shared Components
   Glass-card, nav, sidebar, badges, buttons,
   forms, tables, modals, toasts
   ═══════════════════════════════════════════════ */

/* ─── GLASS CARD ─── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

/* ─── TOP NAV ─── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  opacity: 0;
  animation: fadeInDown 600ms var(--ease-out) forwards;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 32px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.25)) drop-shadow(0 0 4px rgba(139, 92, 246, 0.15));
  transition: opacity 300ms var(--ease), filter 300ms var(--ease);
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 6px rgba(139, 92, 246, 0.25));
}

.nav-tabs { display: flex; gap: 4px; }

.nav-tab {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 200ms var(--ease), background 200ms var(--ease);
  white-space: nowrap;
}

.nav-tab:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.04); }
.nav-tab.active { color: var(--text-1); background: rgba(255, 255, 255, 0.08); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.nav-logout-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 200ms var(--ease);
}

.nav-logout-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--red); }
.nav-logout-btn svg { width: 16px; height: 16px; }

/* ─── SIDEBAR ─── */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 0;
  border-right: 1px solid var(--border);
  background: rgba(8, 8, 14, 0.5);
  opacity: 0;
  animation: fadeInLeft 500ms var(--ease-out) 200ms forwards;
  overflow-y: auto;
}

/* Provider sidebar (60px icon sidebar — dashboard-1) */
.sidebar.sidebar-providers {
  align-items: center;
  padding: 24px 0;
  overflow-y: visible;
}

.sidebar-icons { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sidebar-bottom-icons { display: flex; flex-direction: column; gap: 8px; align-items: center; }

.sidebar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid transparent;
  color: var(--text-2);
  transition: all 200ms var(--ease);
  position: relative;
}

.sidebar-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border-color: var(--accent, rgba(255, 255, 255, 0.1));
  transform: scale(1.08);
}

.sidebar-icon.active {
  border-color: var(--accent, var(--green));
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
}

.sidebar-icon.active::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent, var(--green));
  border-radius: 0 2px 2px 0;
}

.sidebar-icon svg { width: 16px; height: 16px; }

/* ─── SEARCH BAR ─── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}

.search-icon { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.search-input { width: 100%; font-size: 13px; }
.search-input::placeholder { color: var(--text-3); }

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-green { background: var(--green-dim); color: var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-cyan { background: var(--cyan-dim); color: var(--cyan); }
.badge-pink { background: var(--pink-dim); color: var(--pink); }

.badge-count {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--red-glow);
}

/* ─── STATUS DOT ─── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green-glow); animation: pulse 2s ease-in-out infinite; }
.status-dot.offline { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.status-dot.partial { background: var(--orange); box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
.status-dot.pending { background: var(--yellow); box-shadow: 0 0 8px rgba(234, 179, 8, 0.4); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all 200ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: #4b91f7;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 16px var(--red-glow);
}

.btn-success {
  background: var(--green-dim);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.btn-success:hover {
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 16px var(--green-glow);
}

.btn-sm { padding: 6px 12px; font-size: 11px; }
.btn-sm svg { width: 14px; height: 14px; }

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border-color: var(--border-hover);
}

/* ─── FORM ELEMENTS ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-1);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.form-input::placeholder { color: var(--text-3); }

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-dim);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-select {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-1);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234e4e5a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-dim);
}

.form-select option {
  background: var(--bg-raised);
  color: var(--text-1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.form-error { font-size: 11px; color: var(--red); margin-top: 2px; }

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ─── DATA TABLE ─── */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

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

.data-table thead { background: rgba(255, 255, 255, 0.03); }

.data-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  cursor: default;
}

.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--text-2); }

.data-table td {
  font-size: 13px;
  padding: 12px 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr { transition: background 200ms var(--ease); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table .td-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; }
.data-table .td-right { text-align: right; }
.data-table .td-center { text-align: center; }
.data-table .td-green { color: var(--green); font-weight: 600; }
.data-table .td-red { color: var(--red); font-weight: 600; }

.table-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-3);
}

.table-empty svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.5; }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.pagination-info { font-size: 12px; color: var(--text-3); }

.pagination-btns { display: flex; gap: 4px; }

.pagination-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 200ms var(--ease);
}

.pagination-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: var(--text-1); }
.pagination-btn.active { background: var(--blue-dim); color: var(--blue); border-color: rgba(59, 130, 246, 0.2); }
.pagination-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.filter-chips { display: flex; gap: 4px; flex-wrap: wrap; }

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 200ms var(--ease);
  cursor: pointer;
}

.filter-chip:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.04); }
.filter-chip.active { color: var(--text-1); background: rgba(255, 255, 255, 0.06); border-color: var(--border); }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 200ms var(--ease) forwards;
}

.modal-overlay.closing { animation: fadeIn 200ms var(--ease) reverse forwards; }

.modal-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeInUp 300ms var(--ease-out) forwards;
}

.modal-card.modal-wide {
  max-width: 680px;
}

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 200ms var(--ease);
}

.modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-1); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { display: flex; flex-direction: column; gap: 16px; }

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: toastIn 300ms var(--ease-out) forwards;
}

.toast.closing { animation: toastOut 300ms var(--ease) forwards; }
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--blue); }
.toast-warning { border-left: 3px solid var(--orange); }

.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast-success svg { color: var(--green); }
.toast-error svg { color: var(--red); }
.toast-info svg { color: var(--blue); }
.toast-warning svg { color: var(--orange); }

.toast-text { font-size: 13px; color: var(--text-2); flex: 1; }
.toast-close { color: var(--text-3); cursor: pointer; flex-shrink: 0; }
.toast-close svg { width: 14px; height: 14px; }

/* ─── COPY BUTTON ─── */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: all 200ms var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-1); }
.copy-btn.copied { background: var(--green-dim); color: var(--green); border-color: rgba(34, 197, 94, 0.2); }
.copy-btn svg { width: 14px; height: 14px; }

/* ─── CODE BLOCK ─── */
.code-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  overflow-x: auto;
  white-space: pre;
}

.code-block .ck { color: var(--blue); }    /* keys */
.code-block .cs { color: var(--green); }   /* strings */
.code-block .cn { color: var(--orange); }  /* numbers */
.code-block .cb { color: var(--purple); }  /* booleans */
.code-block .cc { color: var(--text-3); }  /* comments */

/* ─── METRIC CARD ─── */
.metric-card { padding: 20px; position: relative; overflow: hidden; }

.metric-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.metric-icon-wrap svg { width: 20px; height: 20px; }

.metric-title { font-size: 14px; font-weight: 500; color: var(--text-2); line-height: 1.35; margin-bottom: 2px; }
.metric-subtitle { font-size: 11px; color: var(--text-3); margin-bottom: 12px; }
.metric-value-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.metric-big { font-size: 36px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.metric-small { font-size: 16px; font-weight: 400; color: var(--text-3); }
.metric-unit { font-size: 20px; font-weight: 500; color: var(--text-2); }

.metric-delta {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-delta.positive { color: var(--green); }
.metric-delta.negative { color: var(--red); }
.metric-delta svg { width: 14px; height: 14px; }

/* ─── PROGRESS BAR ─── */
.progress-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width 800ms var(--ease-out); }

/* ─── DETAIL PANEL (Slide-in) ─── */
.detail-panel {
  position: fixed;
  top: 56px;
  right: 0;
  width: 400px;
  height: calc(100vh - 56px);
  background: rgba(10, 10, 16, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid var(--border);
  z-index: 50;
  overflow-y: auto;
  transition: transform 350ms var(--ease), opacity 350ms var(--ease);
}

.detail-panel.hidden { transform: translateX(100%); opacity: 0; pointer-events: none; }

.detail-inner { padding: 24px; display: flex; flex-direction: column; min-height: 100%; }

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

.detail-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 200ms var(--ease);
}

.detail-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-1); }
.detail-close svg { width: 16px; height: 16px; }

/* ─── EMPTY STATE ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state svg { width: 48px; height: 48px; color: var(--text-3); margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.empty-state-text { font-size: 13px; color: var(--text-3); }

/* ─── TABS ─── */
.tab-group { display: flex; gap: 4px; }

.tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all 200ms var(--ease);
}

.tab-btn:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.04); }
.tab-btn.active { color: var(--text-1); background: rgba(255, 255, 255, 0.06); border-color: var(--border); }

/* ─── CREDENTIAL ROW ─── */
.credential-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.credential-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  flex-shrink: 0;
}

.credential-value {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── CARD SECTIONS ─── */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-header h3 { font-size: 14px; font-weight: 600; }

.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); }

/* ─── HAMBURGER MENU ─── */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 200ms var(--ease);
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger svg { width: 20px; height: 20px; }

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-inner { flex-wrap: wrap; gap: 0; }

  .nav-tabs {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    order: 10;
  }
  .nav-tabs.nav-tabs-open { display: flex; }

  .nav-tab {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
  }

  .nav-right { margin-left: auto; }

  .nav-user-name { display: none; }

  /* Modal fullscreen on mobile */
  .modal-card {
    max-width: 100%;
    max-height: 100vh;
    border-radius: var(--radius-md);
    margin: 8px;
  }

  /* Toast position */
  .toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }

  /* Filter bar wrap */
  .filter-bar {
    flex-direction: column;
    gap: 8px;
  }
  .filter-bar .form-group { width: 100%; min-width: 0 !important; }
  .filter-bar .form-select { width: 100% !important; }
  .filter-bar .search-bar { width: 100%; min-width: 0 !important; }

  /* Data table scroll */
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td { font-size: 11px; padding: 8px 10px; }

  /* Content padding */
  .content { padding: 16px 12px; }
  .page-content { padding: 16px 12px; }

  /* Content header */
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .content-header h1 { font-size: 20px; }
  .content-header-actions { width: 100%; flex-wrap: wrap; }

  /* Buttons */
  .btn { padding: 8px 14px; font-size: 12px; }
  .btn svg { width: 14px; height: 14px; }

  /* Pagination */
  .pagination { flex-direction: column; gap: 8px; align-items: center; }
  .pagination-info { font-size: 11px; }

  /* Credential rows */
  .credential-row { flex-wrap: wrap; gap: 4px; }
  .credential-label { min-width: 60px; font-size: 10px; }
  .credential-value { font-size: 11px; }
}
