/* ==========================================================================
   AUXILIARY DASHBOARD - CMS ADMIN CONSOLE STYLES
   ========================================================================== */

.admin-body {
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
}

.admin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
}

/* ==================== CMS SIDEBAR ==================== */
.admin-sidebar {
  padding: 24px 0 24px 24px;
}

.admin-sidebar-inner {
  position: sticky;
  top: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  padding: 30px 20px;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.admin-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.6px;
  background: var(--primary-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-top: 2px;
}

.admin-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.admin-nav-item:hover {
  background: var(--bg-muted);
  color: var(--text-headings);
}

.admin-nav-item.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-pill);
}

.admin-nav-icon {
  font-size: 18px;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.btn-live-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-live-dashboard:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-live-dashboard svg {
  width: 16px;
  height: 16px;
}

/* ==================== CMS MAIN CONTENT ==================== */
.admin-main {
  padding: 24px 28px 40px;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.admin-topbar-title h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-headings);
  letter-spacing: -0.5px;
}

.admin-topbar-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.cms-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.cms-sync-status.saving {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.cms-sync-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.cms-sync-status.saving .status-dot {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.4; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.1); }
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tab Panes */
.admin-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.admin-tab-pane.active {
  display: block;
}

/* Admin Cards & Grids */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

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

.admin-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-headings);
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 {
  flex: 1;
}

.form-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 22px 0;
}

/* Range input with value display */
.range-with-val {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.range-with-val input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}

.range-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  min-width: 48px;
  text-align: center;
}

/* Chart Points Editor */
.chart-points-editor {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
}

.points-row-header {
  display: grid;
  grid-template-columns: 130px repeat(7, 1fr);
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.points-row-header span:first-child {
  text-align: left;
}

.points-row {
  display: grid;
  grid-template-columns: 130px repeat(7, 1fr);
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.points-row:last-child {
  margin-bottom: 0;
}

.points-row-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-headings);
}

.point-input {
  width: 100%;
  padding: 6px 4px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 13px;
  background: #ffffff;
  outline: none;
}

.point-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-subtle);
}

/* Live Preview Mini Cards */
.preview-mini-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-chart-col {
  flex: 1;
  height: 120px;
}

.preview-stats-col {
  width: 125px;
  flex-shrink: 0;
}

.preview-svg {
  width: 100%;
  height: 100%;
}

.preview-currency-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-headings);
  margin-top: 2px;
}

.preview-gauge-col {
  width: 140px;
}

.preview-gauge-svg {
  width: 100%;
  height: auto;
}

/* Tables */
.p-0 {
  padding: 0 !important;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  background: var(--bg-muted);
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 14px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.table-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.btn-icon-action {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-action:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

.btn-icon-action.delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Services Bar Editor */
.services-bars-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-bar-edit-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-index-tag {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  width: 36px;
}

.color-picker-input {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

/* Advisories List */
.advisory-cms-item {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Callout */
.info-callout {
  display: flex;
  gap: 14px;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.info-callout-icon {
  font-size: 22px;
}

.info-callout-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.max-w-700 {
  max-width: 700px;
}

/* Denomination Customizer Table */
.denom-editor-table th {
  white-space: nowrap;
}

.denom-editor-table td {
  padding: 10px 16px;
}

.input-with-symbol.compact {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 110px;
}

.input-with-symbol.compact span {
  position: absolute;
  left: 9px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-symbol.compact input {
  width: 100%;
  padding: 6px 8px 6px 22px !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-headings);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.input-with-symbol.compact input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(126, 195, 30, 0.2);
}

.denom-bill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(126, 195, 30, 0.15);
  color: #528b10;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(126, 195, 30, 0.35);
}

.spread-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
}

/* ==================== ACTIVITY LOGS & AUDIT STYLES ==================== */

.badge-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.admin-nav-item.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.activity-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: livePulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

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

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-headings);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.activity-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fbfcfd;
  flex-wrap: wrap;
}

.activity-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.activity-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.activity-search-box input {
  padding-left: 36px !important;
  font-size: 13px !important;
  height: 38px;
}

.activity-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: var(--bg-muted);
  color: var(--text-headings);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.activity-period-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.period-pill {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.period-pill:hover {
  background: #f1f5f9;
  color: var(--text-headings);
  border-color: #cbd5e1;
}

.period-pill.active {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

.activity-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-log-table {
  width: 100%;
}

.activity-log-table th {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-log-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.activity-log-table tr:hover td {
  background: #f8faf6;
}

.log-time-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-time-primary {
  font-weight: 700;
  color: var(--text-headings);
  font-size: 12.5px;
}

.log-time-rel {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.log-badge.rate-change {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.log-badge.denomination {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.log-badge.system {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.log-details-wrap {
  line-height: 1.45;
  color: #334155;
  font-weight: 500;
}

.log-diff-item {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 5px;
  margin-bottom: 3px;
}

.log-diff-item.increase {
  background: #dcfce7;
  color: #166534;
}

.log-diff-item.decrease {
  background: #fee2e2;
  color: #991b1b;
}

.log-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-headings);
  font-size: 12.5px;
}

.log-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* User Session Capsule in Topbar */
.cms-user-session-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  margin-left: 6px;
}

.user-2by2-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-2by2-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-session-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-session-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-headings);
  white-space: nowrap;
}

.user-session-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.user-id-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.user-role-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-role-badge.superadmin {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.user-role-badge.user {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.btn-logout {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.btn-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* ==================== UNIVERSAL ADMIN MODAL BACKDROP & CARD ==================== */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.modal-backdrop.open,
.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45) !important;
  width: 100% !important;
  max-width: 560px;
  max-height: 90vh !important;
  overflow-y: auto !important;
  border: 1px solid var(--border-subtle) !important;
  position: relative !important;
  z-index: 100000 !important;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.modal-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--text-headings) !important;
  margin: 0 !important;
}

.modal-close-btn {
  background: transparent !important;
  border: none !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}

.modal-close-btn:hover {
  color: var(--text-headings) !important;
  background: #f1f5f9 !important;
}

.modal-body {
  padding: 22px 24px !important;
}

.modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 16px 24px !important;
  border-top: 1px solid var(--border-subtle) !important;
  background: #f8fafc !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

/* ==================== FUTURISTIC VIDEO-MATCHED TECH LOGIN SCREEN ==================== */
.auth-login-overlay.tech-login-overlay {
  position: fixed;
  inset: 0;
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px 16px;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.4s ease, background 0.6s ease;
}

.auth-login-overlay.tech-login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background Canvas for Circuit Traces, Binary Matrix & Floating Spark Particles */
.tech-login-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Ambient Radial Glow & Dark Backdrop Grid */
.tech-ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.08) 0%, rgba(14, 165, 233, 0.06) 38%, rgba(8, 12, 20, 0.94) 75%, #05080f 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.tech-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

/* Top Action Controls */
.tech-top-controls {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-ctrl-btn {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 7px 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tech-ctrl-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(234, 179, 8, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.tech-close-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

/* Stage Layout */
.tech-login-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 40px 0 24px;
}

/* Intro Centerpiece (Heart & Shockwave Ring) */
.tech-intro-centerpiece {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tech-shockwave-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #eab308;
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.7), inset 0 0 20px rgba(234, 179, 8, 0.4);
  opacity: 0;
  pointer-events: none;
}

.tech-heart-container {
  width: 260px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-heart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tech-heart-ribbon {
  animation: techHeartPulse 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes techHeartPulse {
  0%, 100% {
    stroke-width: 6.5px;
    filter: drop-shadow(0 0 10px #ef4444) drop-shadow(0 0 22px #ef4444);
    transform: scale(1);
  }
  50% {
    stroke-width: 8px;
    filter: drop-shadow(0 0 16px #ff3366) drop-shadow(0 0 32px #ef4444);
    transform: scale(1.04);
  }
}

/* Raquel IT Emblem Badge */
.tech-emblem-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  z-index: 20;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.tech-emblem-gold-bezel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, #fef08a 0%, #eab308 28%, #ca8a04 55%, #854d0e 80%, #fef08a 100%);
  box-shadow: 0 0 28px rgba(234, 179, 8, 0.45), 0 12px 32px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-emblem-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  background: #fbf7ee;
}

.tech-emblem-glint {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 12px;
  background: radial-gradient(ellipse at center, #ffffff 0%, rgba(254, 240, 138, 0.85) 45%, transparent 80%);
  filter: drop-shadow(0 0 8px #ffffff);
  pointer-events: none;
  animation: techGlintShine 3s ease-in-out infinite;
}

@keyframes techGlintShine {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.25); filter: drop-shadow(0 0 14px #ffffff); }
}

/* Video Frosted Glass Login Card */
.tech-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(14, 20, 34, 0.76);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 36px 32px 28px;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.88), 0 0 35px rgba(0, 0, 0, 0.55);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

/* Specular Rim Highlights */
.tech-card-specular-top {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  pointer-events: none;
}

.tech-card-specular-bottom {
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  pointer-events: none;
}

/* Input Fields (Pills) */
.tech-input-pill-wrapper {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.tech-pill-input {
  width: 100%;
  height: 50px;
  border-radius: 9999px;
  background: rgba(23, 33, 51, 0.75);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 0 24px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
}

.tech-pill-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

/* Username Pill has Active Gold Border (matches video frame 10) */
.tech-username-wrapper .tech-pill-input {
  border-color: rgba(234, 179, 8, 0.85);
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.28), inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.tech-username-wrapper .tech-pill-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.45), inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Password Pill */
.tech-password-wrapper .tech-pill-input {
  padding-right: 52px;
}

.tech-password-wrapper .tech-pill-input:focus {
  border-color: rgba(234, 179, 8, 0.85);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.32), inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Eye Toggle Button */
.tech-eye-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.tech-eye-btn:hover {
  color: #facc15;
  transform: translateY(-50%) scale(1.1);
}

/* Centered Dark Pill LOGIN Button */
.tech-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.tech-login-btn {
  background: #090e18;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 48px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  outline: none;
}

.tech-login-btn:hover {
  background: #141f32;
  border-color: #eab308;
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.38), 0 8px 20px rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
  color: #fef08a;
}

.tech-login-btn:active {
  transform: translateY(0.5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Cancel Return Link */
.tech-cancel-wrapper {
  text-align: center;
  margin-top: 18px;
}

.tech-cancel-link {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-cancel-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Error Alert */
.tech-error-msg {
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.4;
  animation: techErrorShake 0.4s ease;
}

@keyframes techErrorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ==================== INTRO STATE CONTROLS ==================== */
/* 1. INTRO PLAYING STATE */
.auth-login-overlay[data-intro-state="intro"] .tech-intro-centerpiece {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.auth-login-overlay[data-intro-state="intro"] .tech-emblem-container {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px) scale(1.6);
}

.auth-login-overlay[data-intro-state="intro"] .tech-login-card {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.96);
}

/* 2. DOCKED / READY STATE */
.auth-login-overlay[data-intro-state="docked"] .tech-intro-centerpiece {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.7);
}

.auth-login-overlay[data-intro-state="docked"] .tech-emblem-container {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.auth-login-overlay[data-intro-state="docked"] .tech-login-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.auth-login-overlay[data-intro-state="docked"] .tech-skip-btn {
  display: none !important;
}

.auth-login-overlay[data-intro-state="docked"] .tech-replay-btn {
  display: inline-flex !important;
}

/* ==================== TABLET & CELLPHONE (CP) RESPONSIVE STYLES ==================== */

/* Tablet View (641px - 1024px, iPads & Tablets) */
@media (max-width: 1024px) {
  .tech-top-controls {
    top: 18px;
    right: 20px;
    gap: 8px;
  }
  .tech-ctrl-btn {
    padding: 6px 13px;
    font-size: 12px;
  }
  .tech-close-btn {
    width: 36px;
    height: 36px;
  }
  .tech-login-stage {
    max-width: 420px;
    padding: 30px 0 20px;
  }
  .tech-emblem-container {
    width: 105px;
    height: 105px;
    margin-bottom: 20px;
  }
  .tech-login-card {
    max-width: 400px;
    padding: 32px 28px 24px;
    border-radius: 22px;
  }
  .tech-pill-input {
    height: 48px;
    font-size: 14.5px;
  }
}

/* Cellphone (CP) View (<= 640px, Mobile Phones) */
@media (max-width: 640px) {
  .auth-login-overlay.tech-login-overlay {
    padding: 16px 12px;
    align-items: flex-start;
  }
  .tech-top-controls {
    top: 12px;
    right: 12px;
    gap: 6px;
  }
  .tech-ctrl-btn {
    padding: 5px 10px;
    font-size: 11px;
    gap: 4px;
  }
  .tech-ctrl-btn svg {
    width: 12px;
    height: 12px;
  }
  .tech-close-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .tech-login-stage {
    max-width: 100%;
    width: 100%;
    padding: 50px 0 20px;
    min-height: auto;
  }
  .tech-intro-centerpiece {
    width: 240px;
    height: 240px;
  }
  .tech-heart-container {
    width: 200px;
    height: 160px;
  }
  .tech-shockwave-ring {
    width: 110px;
    height: 110px;
  }
  .tech-emblem-container {
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
  }
  .tech-emblem-gold-bezel {
    padding: 2.8px;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4), 0 8px 20px rgba(0, 0, 0, 0.7);
  }
  .tech-emblem-glint {
    width: 18px;
    height: 9px;
  }
  .tech-login-card {
    width: 100%;
    max-width: 350px;
    padding: 24px 18px 20px;
    border-radius: 18px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.9);
  }
  .tech-input-pill-wrapper {
    margin-bottom: 16px;
  }
  /* Font size 16px strictly prevents iOS Safari viewport auto-zoom */
  .tech-pill-input {
    height: 46px;
    font-size: 16px !important;
    padding: 0 20px;
    border-radius: 9999px;
  }
  .tech-password-wrapper .tech-pill-input {
    padding-right: 48px;
  }
  .tech-eye-btn {
    right: 14px;
    padding: 8px;
  }
  .tech-eye-btn svg {
    width: 17px;
    height: 17px;
  }
  .tech-submit-wrapper {
    margin-top: 20px;
  }
  .tech-login-btn {
    width: 100%;
    max-width: 200px;
    padding: 12px 24px;
    font-size: 13px;
    letter-spacing: 1.5px;
  }
  .tech-cancel-wrapper {
    margin-top: 14px;
  }
  .tech-cancel-link {
    font-size: 12px;
  }
}

.auth-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  line-height: 1.4;
}

.btn-text-link {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-cancel-to-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-cancel-to-live:hover {
  color: var(--text-headings);
  background: #f1f5f9;
}

.auth-quick-creds {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}

.quick-cred-pill {
  border: 1px solid;
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.quick-cred-pill.super {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.quick-cred-pill.super:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

.quick-cred-pill.user {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #075985;
}

.quick-cred-pill.user:hover {
  background: #e0f2fe;
  transform: translateY(-1px);
}

/* 2x2 Photo Upload & Avatar UI */
.user-photo-upload-section {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.photo-2by2-box {
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-2by2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-2by2-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.photo-upload-controls {
  flex: 1;
  min-width: 0;
}

/* User Management Table Styles */
.user-management-table th,
.user-management-table td {
  vertical-align: middle;
}

.table-user-2by2-wrap {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-user-2by2-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.role-tag.superadmin {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.role-tag.user {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.user-status-pill.active {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.user-status-pill.deactivated {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.user-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-icon-action {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-body);
  transition: all 0.15s ease;
}

.btn-icon-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-headings);
}

.btn-icon-action.danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-icon-action.success:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

/* User Tab Access Restriction Banner */
.tab-restricted-notice {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
  }
  .admin-sidebar-inner {
    height: auto;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .admin-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
  }
  .admin-nav {
    margin-top: 4px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .admin-nav::-webkit-scrollbar {
    height: 4px;
  }
  .admin-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius-pill);
  }
  .admin-sidebar-footer {
    display: none;
  }
  .admin-main {
    padding: 20px 16px 40px;
  }
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
  .cms-user-session-capsule {
    padding: 4px 8px;
  }
  .user-session-details {
    display: none;
  }
}

@media (max-width: 640px) {
  .admin-sidebar {
    padding: 10px 12px;
  }
  .admin-nav-item {
    padding: 7px 11px;
    font-size: 12px;
    gap: 6px;
  }
  .admin-main {
    padding: 14px 10px 36px;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }
  .admin-topbar-title h1 {
    font-size: 21px;
  }
  .admin-topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .rates-management-card, .admin-card {
    padding: 16px 12px !important;
  }
  .rate-input-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rate-input-table th, .rate-input-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   CMS LIVE CHAT INQUIRIES WORKSPACE & CONSOLE
   ========================================================================== */
.cms-inquiries-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 600px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.cms-inquiries-sidebar {
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-input);
  display: flex;
  flex-direction: column;
}

.cms-inquiries-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-queue-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.inquiry-queue-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.inquiry-queue-item.active {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(126, 195, 30, 0.2);
}

.cms-chat-console {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 600px;
}

.cms-chat-console-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.cms-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

.btn-macro-chip {
  font-size: 11px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 11px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
}

.btn-macro-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Inquiries Multi-person Queue Filters & Acceptance */
.cms-inquiries-filter-bar {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.btn-inq-filter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-inq-filter:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-inq-filter.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-inq-filter.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.filter-count {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
}

.filter-count.highlight {
  background: #fef08a;
  color: #854d0e;
}

.btn-accept-queue-item {
  font-size: 10.5px;
  font-weight: 700;
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-accept-queue-item:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.cms-inquiry-status-strip {
  padding: 10px 18px;
  background: #fefce8;
  border-bottom: 1px solid #fef08a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.2s ease-out;
}

.badge-inq-pending {
  background: #fef3c7;
  color: #b45309;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-inq-accepted {
  background: #dcfce7;
  color: #15803d;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-inq-resolved {
  background: #f1f5f9;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .cms-inquiries-workspace {
    grid-template-columns: 1fr;
  }
  .cms-inquiries-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    max-height: 280px;
  }
}

/* ============================================================================
   3RD CURRENCY UPDATE CMS STYLES
   ============================================================================ */
.third-currencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(470px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .third-currencies-grid {
    grid-template-columns: 1fr;
  }
}

.currency-entry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.currency-entry-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.currency-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.currency-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-flag-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.currency-code-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-headings);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-country-name {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
}

.currency-region-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.currency-tiers-wrap {
  padding: 12px 16px;
  flex: 1;
}

.currency-tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.currency-tier-table th {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0 8px 6px;
  text-align: left;
}

.currency-tier-table th.rate-col {
  text-align: right;
  width: 115px;
}

.currency-tier-row {
  background: #f8fafc;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.currency-tier-row:hover {
  background: #f1f5f9;
}

.currency-tier-row td {
  padding: 6px 8px;
  vertical-align: middle;
}

.tier-denom-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: inline-block;
  white-space: nowrap;
}

.curr-rate-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.curr-rate-input {
  width: 100%;
  height: 34px;
  text-align: right;
  font-weight: 700;
  font-size: 13.5px;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 6px;
  padding: 4px 8px;
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-headings);
  transition: all 0.15s ease;
}

.curr-rate-input.buying {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.curr-rate-input.buying:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  background: #ffffff;
}

.curr-rate-input.selling {
  color: #0284c7;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.curr-rate-input.selling:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background: #ffffff;
}

/* ============================================================================
   SUPERADMIN LOGIN AUDIT REPORT STYLES
   ============================================================================ */
.login-report-badge-super {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}

.login-report-badge-user {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}

.login-ip-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

.login-device-tag {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Report modal print optimization */
@media print {
  body * {
    visibility: hidden;
  }
  #modal-login-report,
  #modal-login-report .modal-card,
  #modal-login-report .modal-body,
  #modal-login-report #login-report-modal-body * {
    visibility: visible;
  }
  #modal-login-report {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff !important;
  }
  #modal-login-report .modal-card {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
  }
/* Switch Toggle Component in CMS */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 20px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background-color: #7ec31e;
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(16px);
}

/* Alert Item Card in CMS */
.alert-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.2s ease;
}

.alert-item-card.active {
  border-color: #cbd5e1;
  background: #ffffff;
}

.alert-item-card.disabled {
  opacity: 0.55;
  background: #f8fafc;
}

.alert-item-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.type-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.type-badge.buying {
  background: #dcfce7;
  color: #15803d;
}

.type-badge.selling {
  background: #e0f2fe;
  color: #0369a1;
}

.type-badge.mid {
  background: #f3e8ff;
  color: #7e22ce;
}

.condition-badge {
  font-size: 11px;
  font-weight: 700;
}

.condition-badge.above {
  color: #16a34a;
}

.condition-badge.below {
  color: #ea580c;
}

.btn-delete-alert {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-delete-alert:hover {
  color: #ef4444;
  background: #fee2e2;
}

.btn-primary.spinning .sync-icon {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==================== CMS IT SUPPORT SCHEDULE STYLES ==================== */
.sched-cms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.sched-cms-table th {
  background: var(--bg-input);
  color: var(--text-headings);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 2px solid var(--border-subtle);
  text-align: center;
  white-space: nowrap;
}
.sched-cms-table th:first-child,
.sched-cms-table th:nth-child(2) {
  text-align: left;
}
.sched-cms-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.sched-input-compact {
  width: 100%;
  min-width: 95px;
  padding: 6px 8px;
  font-size: 11.5px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.15s ease;
}
.sched-input-compact:focus {
  border-color: #e11d48;
  outline: none;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.15);
}
.sched-input-compact.is-day-off {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-weight: 600;
}
.btn-quick-off {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  margin-top: 2px;
  display: block;
  width: 100%;
  text-align: center;
}
.btn-quick-off:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.cms-banner-upload-box {
  background: var(--bg-input);
  border: 2px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: border-color 0.2s;
}
.cms-banner-upload-box:hover {
  border-color: #e11d48;
}
.cms-banner-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.cms-banner-preset-btn:hover {
  border-color: #e11d48;
  color: #e11d48;
}
.cms-banner-preset-btn.active {
  background: rgba(225, 29, 72, 0.1);
  border-color: #e11d48;
  color: #e11d48;
}
.cms-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.cms-roster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-login-overlay.tech-login-overlay:not(.active), .auth-login-overlay.tech-login-overlay:not(.active) * { pointer-events: none !important; visibility: hidden !important; }

