/* Fieldflare Portal - Flame Orange Design System */
:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: rgba(249, 115, 22, 0.15);
  --secondary: #17110a;
  --accent: #f59e0b;
  --flame-gold: #fbbf24;
  --flame-glow: rgba(249, 115, 22, 0.45);
  --bg-main: #0c0906;
  --bg-body: #080604;
  --bg-surface: #140e09;
  --bg-card: #140e09;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(245, 158, 11, 0.22);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #f97316;
  --radius: 10px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 15px -1px rgba(249, 115, 22, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 30px -3px rgba(249, 115, 22, 0.35), 0 4px 8px -4px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Layouts */
.portal-wrapper {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  width: 260px;
  background-color: #0b0704;
  border-right: 1px solid rgba(245, 158, 11, 0.15);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.portal-brand {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-brand a {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  box-shadow: 0 0 10px #f97316;
}

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

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 12px 12px 6px;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #94a3b8;
  border-radius: 8px;
  margin-bottom: 3px;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.15s;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(249, 115, 22, 0.4);
}

.portal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-header {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-body {
  padding: 28px 36px;
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.grid-4, .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3, .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2, .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-1, .grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 1920px) {
  .portal-body { padding: 36px 48px; }
  .grid { gap: 24px; }
}

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

@media (max-width: 768px) {
  .portal-wrapper { flex-direction: column; }
  .portal-sidebar { width: 100%; }
  .portal-header { padding: 0 16px; }
  .portal-body { padding: 16px; }
  .grid-4, .grid-cols-4, .grid-3, .grid-cols-3, .grid-2, .grid-cols-2 { grid-template-columns: 1fr; }
}

.card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 14px 20px;
  background-color: #1a130c;
  border-top: 1px solid var(--border);
}

/* Stat Box */
.stat-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.stat-info .stat-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-info .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.stat-icon.success { background-color: #d1fae5; color: var(--success); }
.stat-icon.warning { background-color: #fef3c7; color: var(--warning); }
.stat-icon.danger { background-color: #fee2e2; color: var(--danger); }
.stat-icon.info { background-color: #dbeafe; color: var(--info); }

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fb923c;
  background-color: #1a130c;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: #f8fafc;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background-color: rgba(249, 115, 22, 0.08);
  color: #ffffff;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success { background-color: #def7ec; color: #03543f; }
.badge-warning { background-color: #fef08a; color: #713f12; }
.badge-danger { background-color: #fde8e8; color: #9b1c1c; }
.badge-info { background-color: #e1effe; color: #1e429f; }
.badge-secondary { background-color: #f3f4f6; color: #374151; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 3px 12px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.55);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #f8fafc;
}
.btn-secondary:hover {
  background-color: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fbbf24;
}

/* Stat Cards for Dashboard */
.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.stat-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}
.stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 4px;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-success { background-color: var(--success); color: #fff; }
.btn-success:hover { background-color: #059669; color: #fff; }

.btn-danger { background-color: var(--danger); color: #fff; }
.btn-danger:hover { background-color: #dc2626; color: #fff; }

.btn-warning { background-color: var(--warning); color: #fff; }
.btn-warning:hover { background-color: #d97706; color: #fff; }

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
  color: #f8fafc;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  color: #ffffff;
  background-color: #1a130c;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.35);
  background-color: #22180f;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-success { background-color: #def7ec; color: #03543f; border: 1px solid #bcf0da; }
.alert-danger { background-color: #fde8e8; color: #9b1c1c; border: 1px solid #f8b4b4; }
.alert-warning { background-color: #fef3c7; color: #713f12; border: 1px solid #fde68a; }
.alert-info { background-color: #e1effe; color: #1e429f; border: 1px solid #b4c6fc; }

/* Invoices Print */
@media print {
  body { background: #fff; font-size: 12pt; }
  .portal-sidebar, .portal-header, .btn, .no-print { display: none !important; }
  .portal-body { padding: 0 !important; }
  .card { border: none !important; box-shadow: none !important; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ============================================================
   TOP CATEGORIES SUITE NAV (Matching Futuristic UI Specs)
   ============================================================ */
.client-top-suites-nav {
  background: #070b14;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  padding: 10px 24px;
  position: relative;
  z-index: 15;
}

.suites-nav-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #f97316 #0d0804;
  align-items: center;
  padding-bottom: 4px;
}

.suites-nav-scroll::-webkit-scrollbar {
  height: 9px;
}
.suites-nav-scroll::-webkit-scrollbar-track {
  background: #0d0804;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.18);
}
.suites-nav-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f97316 0%, #ea580c 50%, #f59e0b 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  border: 1.5px solid #0d0804;
}
.suites-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.85);
}

.suite-cat-pill {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 145px;
  flex-shrink: 0;
  text-align: left;
  outline: none;
}

.suite-cat-pill:hover {
  background: #131d33;
  border-color: rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

.suite-cat-pill.active {
  background: #14192b;
  border: 1.5px solid #f97316;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35);
}

.suite-cat-pill .cat-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.suite-cat-pill .cat-idx {
  font-size: 10.5px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
  letter-spacing: 0.5px;
}

.suite-cat-pill.active .cat-idx {
  color: #f97316;
}

.suite-cat-pill .cat-active-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.suite-cat-pill .cat-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 2px;
  white-space: nowrap;
}

.suite-cat-pill.active .cat-title {
  color: #ffffff;
}

/* Category App Drawer */
.category-app-drawer {
  background: #090e1b;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 10px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  animation: drawerFadeIn 0.18s ease-out;
}

@keyframes drawerFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.drawer-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.drawer-app-card {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.drawer-app-card:hover {
  background: #111b33;
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.drawer-app-card .app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.drawer-app-card .app-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.drawer-app-card .app-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.drawer-app-card .btn-app-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

/* Card variants */
.drawer-app-card.licensed .btn-app-launch {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
}

.drawer-app-card.free .btn-app-launch {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
}

.drawer-app-card.add-more {
  border: 1.5px dashed rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.04);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 130px;
}

.drawer-app-card.add-more:hover {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

/* ============================================================
   FULL-SIZE APP WORKSPACE CANVAS (No embedded screen)
   ============================================================ */
.portal-fullsize-body {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: calc(100vh - 122px) !important;
  min-height: calc(100vh - 122px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.portal-fullsize-body .card {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ============================================================
   ACTIVE SERVICE OPTIONS IN SIDE NAV
   ============================================================ */
.active-service-header-pill {
  padding: 10px 14px;
  margin: 10px 12px 14px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-nav-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 2px 10px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  width: calc(100% - 20px);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.service-nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.service-nav-action-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 700;
}

.sidebar-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: calc(100% - 24px);
  transition: all 0.15s;
}

.sidebar-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}


/* ==========================================================================
   CLIENT TOP NAVIGATION BAR & SUITE CATEGORY PILLS (IMAGE 1 STYLE)
   ========================================================================== */
.client-top-suites-bar {
  background: #0d0905;
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  padding: 8px 24px;
  position: relative;
  z-index: 90;
}

.client-top-suites-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 6px;
  scrollbar-width: auto;
  scrollbar-color: #f97316 #0d0804;
}

.client-top-suites-nav::-webkit-scrollbar {
  height: 9px;
}
.client-top-suites-nav::-webkit-scrollbar-track {
  background: #0d0804;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.18);
}
.client-top-suites-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f97316 0%, #ea580c 50%, #f59e0b 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  border: 1.5px solid #0d0804;
}
.client-top-suites-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.85);
}

/* Suite Nav Pill - Modeled identically on Order/Store Category Filter Tabs */
.suite-nav-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(245, 158, 11, 0.14) !important;
  color: #94a3b8 !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  outline: none !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

.suite-nav-pill:hover {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #f8fafc !important;
  border-color: rgba(249, 115, 22, 0.35) !important;
  transform: translateY(-1px);
}

.suite-nav-pill.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.45) !important;
  font-weight: 700 !important;
}

.suite-nav-pill.drawer-open {
  border-color: #f97316 !important;
  background: rgba(249, 115, 22, 0.18) !important;
  color: #fb923c !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3) !important;
}

.suite-nav-pill .suite-icon {
  font-size: 12.5px;
  opacity: 0.9;
}

.suite-nav-pill.active .suite-icon {
  opacity: 1;
  color: #ffffff;
}

.suite-nav-pill .suite-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.8;
  margin-right: 2px;
}

.suite-nav-pill.active .suite-id {
  opacity: 0.95;
  color: #ffffff;
}

.suite-nav-pill .suite-title {
  color: inherit;
}

.suite-nav-pill .suite-badge {
  background: rgba(0, 0, 0, 0.3);
  color: #cbd5e1;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.suite-nav-pill.active .suite-badge {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* Category App Drawer Dropdown */
.category-app-drawer {
  background: #120d08;
  border-bottom: 2px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 25px rgba(249, 115, 22, 0.12);
  padding: 18px 24px 22px;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  animation: slideDrawerDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawerDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
}

.drawer-cat-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  color: #f97316;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 4px 8px;
  border-radius: 6px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.drawer-app-card {
  background: #18110b;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.drawer-app-card:hover {
  border-color: #f97316;
  background: #20160e;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 12px rgba(249, 115, 22, 0.2);
}

.drawer-app-card .card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.drawer-app-card .card-body {
  flex: 1;
  min-width: 0;
}

.drawer-app-card .card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.drawer-app-card .card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-app-card .card-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.drawer-app-card .badge-active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.drawer-app-card .badge-free {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.drawer-app-card .badge-store {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.drawer-app-card .card-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.drawer-app-card .card-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.drawer-app-card .card-action-link {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.drawer-app-card:hover .card-action-link {
  color: #fb923c;
}

.drawer-empty-state {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(245, 158, 11, 0.2);
  border-radius: 8px;
}

/* ============================================================
   CYBER-FLAME PAGINATION COMPONENT & DEFENSIVE SVG GUARDS
   ============================================================ */
.cyber-pagination-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  margin-top: 18px !important;
  background: #140e09 !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.cyber-pagination-info {
  font-size: 12.5px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px !important;
}

.cyber-pagination-info .highlight {
  color: #fb923c !important;
  font-weight: 700 !important;
}

.cyber-pagination-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.cyber-pagination-links .page-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  background: #1c140d !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  gap: 6px !important;
  user-select: none !important;
}

.cyber-pagination-links .page-pill:hover:not(.disabled):not(.dots) {
  background: rgba(249, 115, 22, 0.18) !important;
  border-color: #f97316 !important;
  color: #fb923c !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2) !important;
  transform: translateY(-1px) !important;
}

.cyber-pagination-links .page-pill.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4) !important;
}

.cyber-pagination-links .page-pill.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.cyber-pagination-links .page-pill.dots {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: default !important;
  min-width: 20px !important;
  padding: 0 4px !important;
}

/* DEFENSIVE OVERRIDE: Constrain any raw Tailwind / Vendor SVGs that might get rendered anywhere in pagination */
nav[role="navigation"] svg,
.pagination svg,
.cyber-pagination-wrap svg,
div[aria-label="Pagination Navigation"] svg {
  max-width: 16px !important;
  max-height: 16px !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

nav[role="navigation"] {
  width: 100% !important;
}

/* ============================================================
   PROMINENT CYBER-FLAME GLOBAL SCROLLBAR SYSTEM
   ============================================================ */
* {
  scrollbar-width: auto !important;
  scrollbar-color: #f97316 #090503 !important;
}

::-webkit-scrollbar {
  width: 11px !important;
  height: 11px !important;
}

::-webkit-scrollbar-track {
  background: #090503 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8) !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #f59e0b 100%) !important;
  border-radius: 999px !important;
  border: 2px solid #090503 !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.8) !important;
  cursor: grab !important;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 1) !important;
}

::-webkit-scrollbar-thumb:active {
  cursor: grabbing !important;
  background: linear-gradient(135deg, #ffffff 0%, #f97316 100%) !important;
}

::-webkit-scrollbar-corner {
  background: #090503 !important;
}

.client-category-subbar,
.client-top-suites-nav,
.suites-nav-scroll,
.table-responsive,
.studio-nav-tabs,
.os-nav-tabs,
.db-list-wrap {
  scrollbar-width: auto !important;
  scrollbar-color: #f97316 #090503 !important;
  scroll-behavior: smooth !important;
}

.client-category-subbar::-webkit-scrollbar,
.client-top-suites-nav::-webkit-scrollbar,
.suites-nav-scroll::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.studio-nav-tabs::-webkit-scrollbar,
.os-nav-tabs::-webkit-scrollbar,
.db-list-wrap::-webkit-scrollbar {
  height: 11px !important;
  width: 11px !important;
}


