/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & SYSTEM VARIABLES (:root) — Sovereign Luxury Fintech
   -------------------------------------------------------------------------- */
:root {
  /* Core Brand Identity (Sovereign Emerald & Champagne Gold) */
  --brand-emerald-deep: #041610;
  /* Nocturne sidebar background */
  --brand-emerald: #08281E;
  /* Authoritative sovereign emerald */
  --brand-emerald-mid: #0D3B2D;
  /* Active state tint / subtle card headers */
  --brand-emerald-light: #165442;
  /* Hover states and focus rings */
  --brand-emerald-tint: #EBF2EE;
  /* Delicate organic emerald wash */

  --brand-gold: #C59B27;
  /* Sovereign champagne gold */
  --brand-gold-light: #DFC062;
  /* Accent highlights & badge rings */
  --brand-gold-glow: rgba(197, 155, 39, 0.16);
  --brand-gold-tint: #FDF9EE;
  /* Warm golden parchment tint */

  /* Backwards-compatible mappings for existing app.js logic */
  --primary: #08281E;
  --primary-hover: #0D3B2D;
  --accent-gold: #C59B27;
  --accent-green: #0D8259;
  --accent-green-bg: #E6F5EE;
  --danger: #D9383A;
  --danger-bg: #FDF2F2;

  /* Surfaces & Canvas (Tinted Linen, never stark white or Claude-cream) */
  --bg-canvas: #F4F6F4;
  --bg-page: #F4F6F4;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #FAFCFA;
  --bg-sidebar: #041610;

  /* Borders & Hairlines */
  --border: #DFE6E2;
  --border-subtle: #E8EFEA;
  --border-light: #EEF4F0;
  --border-strong: #CDD8D2;
  --border-gold: rgba(197, 155, 39, 0.35);

  /* Typography Colors (Deep Obsidian Charcoal-Emerald) */
  --text-primary: #051C15;
  --text-heading: #051C15;
  --text-body: #1C332A;
  --text-secondary: #526B61;
  --text-muted: #7A9489;
  --text-inverse: #FFFFFF;

  /* Semantic Banking Statuses */
  --status-success: #0D8259;
  --status-success-bg: #E6F5EE;
  --status-success-border: #A8DFCA;

  --status-warning: #B88204;
  --status-warning-bg: #FEF8E8;
  --status-warning-border: #F7DE9B;

  --status-danger: #D9383A;
  --status-danger-bg: #FDF2F2;
  --status-danger-border: #F8B6B7;

  --status-info: #1E6BB8;
  --status-info-bg: #EFF6FC;
  --status-info-border: #B6D7F4;

  /* Directional Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(4, 22, 16, 0.04), 0 1px 2px rgba(4, 22, 16, 0.02);
  --shadow-md: 0 4px 14px -2px rgba(4, 22, 16, 0.06), 0 2px 6px rgba(4, 22, 16, 0.03);
  --shadow-card: 0 2px 8px -2px rgba(4, 22, 16, 0.05), 0 1px 3px rgba(4, 22, 16, 0.02);
  --shadow-card-hover: 0 8px 24px -4px rgba(4, 22, 16, 0.09), 0 2px 6px rgba(4, 22, 16, 0.03);
  --shadow-modal: 0 24px 64px -12px rgba(4, 22, 16, 0.32), 0 4px 16px rgba(4, 22, 16, 0.08);

  /* Fluid Motion */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tabular figures for numbers, currency, and IDs */
.tabular-nums,
.metric-value,
.stat-value,
.user-phone-badge,
.amount-val,
.currency-val,
.slot-number,
.timestamp-val {
  font-family: 'Plus Jakarta Sans', 'Outfit', 'Cairo', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 272px;
  background: linear-gradient(180deg, #03120D 0%, #061F17 60%, #041610 100%);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 155, 39, 0.4), transparent);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background-color: #FFFFFF;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.brand-icon .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #8CA39A;
  text-transform: uppercase;
  padding: 14px 12px 6px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.45px;
}

.nav-section-title:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9.5px 13px;
  color: #CBD5E1;
  text-decoration: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item:hover:not(.disabled) {
  background-color: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.nav-item.active {
  background: rgba(197, 155, 39, 0.13);
  color: #FFFFFF;
  font-weight: 800;
  border-inline-start: 3.5px solid var(--brand-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-item.active svg {
  color: var(--brand-gold-light);
}

.nav-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Collapsible Navigation Group / Submenu */
.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-group-header {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.nav-group-chevron {
  margin-inline-start: auto;
  transition: transform 0.25s ease;
  color: #94A3B8;
  display: flex;
  align-items: center;
}

.nav-group.open .nav-group-chevron {
  transform: rotate(180deg);
  color: #FDE047;
}

.nav-submenu {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding-inline-start: 26px;
  padding-top: 4px;
  padding-bottom: 6px;
}

.nav-group.open .nav-submenu {
  display: flex;
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #94A3B8;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-subitem:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.nav-subitem.active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34D399;
  font-weight: 700;
}

.badge-soon {
  margin-inline-start: auto;
  font-size: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #94A3B8;
}

.nav-item .badge,
.nav-subitem span[id^="navSub"] {
  margin-inline-start: auto;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.connection-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.connection-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94A3B8;
}

.connection-indicator.online .dot {
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.connection-indicator.offline .dot {
  background-color: var(--danger);
}

/* Main Wrapper */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Topbar */
.topbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.topbar-title h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.topbar-title .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--bg-page);
  border-color: #CBD5E1;
}

.admin-badge {
  background-color: #F1F5F9;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Content Area (Full Responsive Width) */
.content-area {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Global Floating Administrative Broadcast Banner
   ========================================================================== */
.global-admin-broadcast-banner {
  position: sticky;
  top: 10px;
  z-index: 850;
  border-radius: 12px;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideDownBroadcastBanner 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  margin-bottom: 6px;
}

@keyframes slideDownBroadcastBanner {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.global-admin-broadcast-banner.broadcast-info {
  background: rgba(239, 246, 255, 0.96);
  border-color: #BFDBFE;
  color: #1E3A8A;
}

.global-admin-broadcast-banner.broadcast-warning {
  background: rgba(255, 251, 235, 0.97);
  border-color: #FDE68A;
  color: #92400E;
}

.global-admin-broadcast-banner.broadcast-danger {
  background: rgba(254, 242, 242, 0.97);
  border-color: #FECACA;
  color: #991B1B;
}

.broadcast-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 14px;
  flex-wrap: wrap;
}

.broadcast-content-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.broadcast-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.broadcast-info .broadcast-badge {
  background: #2563EB;
  color: #FFFFFF;
}

.broadcast-warning .broadcast-badge {
  background: #D97706;
  color: #FFFFFF;
}

.broadcast-danger .broadcast-badge {
  background: #DC2626;
  color: #FFFFFF;
}

.broadcast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.broadcast-text {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: inherit;
}

.broadcast-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.broadcast-manage-link {
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s;
  cursor: pointer;
}

.broadcast-manage-link:hover {
  opacity: 1;
}

.broadcast-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.broadcast-close-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

/* Security Banner */
.security-banner {
  background: linear-gradient(135deg, #051C15 0%, #08281E 60%, #0F3D30 100%);
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(4, 22, 16, 0.12);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.security-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(197, 155, 39, 0.14), transparent 70%);
  pointer-events: none;
}


.security-banner .banner-icon {
  width: 52px;
  height: 52px;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid var(--brand-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold-light);
  flex-shrink: 0;
}

.security-banner .banner-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.security-banner .banner-content p {
  font-size: 13px;
  color: #C0D6CD;
  margin-top: 4px;
  line-height: 1.5;
  max-width: 80ch;
}

.info-banner .banner-icon {
  color: #16A34A;
  display: flex;
  align-items: center;
}

.info-banner .banner-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #166534;
}

.info-banner .banner-content p {
  font-size: 12.5px;
  color: #14532D;
  margin-top: 3px;
  line-height: 1.4;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.status-pill.online {
  background-color: var(--accent-green-bg);
  color: #065F46;
}

.status-pill.neutral {
  background-color: #F1F5F9;
  color: #475569;
}

.status-pill.accent {
  background-color: #FEF3C7;
  color: #92400E;
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  font-family: 'Outfit', 'Cairo', sans-serif;
}

.metric-footer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* System Grid */
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .system-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-data {
  font-weight: 600;
  color: var(--text-primary);
}

.info-data.highlight {
  color: var(--primary);
  background-color: rgba(12, 59, 46, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.info-data.code {
  font-family: monospace;
  direction: ltr;
  background-color: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Audit Timeline */
.audit-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.audit-content {
  flex: 1;
}

.audit-text {
  font-weight: 600;
  color: var(--text-primary);
}

.audit-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* App Settings Card Styles */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.setting-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.setting-control {
  display: flex;
  align-items: center;
}

.number-stepper {
  display: inline-flex;
  align-items: center;
  background-color: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  gap: 8px;
}

.form-control-number {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  color: var(--primary);
  background: #FFFFFF;
}

.unit-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.setting-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.save-status {
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.save-status.success {
  color: #16A34A;
}

.save-status.error {
  color: var(--danger);
}

/* View Panel Switching */
.view-panel {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.view-panel.active {
  display: flex;
  animation: panelEntrance 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelEntrance {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-panel.active {
    animation: none;
  }
}

/* Segmented Sub-Tabs ("التقسيمات") */
.segmented-nav-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.segmented-nav-header {
  margin-bottom: 12px;
}

.segmented-nav-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.segmented-nav-header p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.segmented-tabs {
  background-color: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.segmented-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.segmented-tab:hover:not(.disabled) {
  color: var(--text-primary);
}

.segmented-tab.active {
  background-color: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.segmented-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tab-badge {
  font-size: 10px;
  background-color: #E2E8F0;
  color: #64748B;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Preset Buttons */
.preset-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.preset-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: #F8FAFC;
}

.preset-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Split Layout for Settings + Preview */
.settings-split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .settings-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Live Mobile Preview Device */
.preview-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.preview-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.preview-header h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.phone-mockup {
  width: 230px;
  height: 440px;
  background: radial-gradient(circle at center, #1D5A49 0%, #07261D 100%);
  border-radius: 32px;
  border: 5px solid #1E293B;
  box-shadow: 0 16px 30px -6px rgba(12, 59, 46, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 20px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.phone-notch {
  width: 60px;
  height: 10px;
  background-color: #1E293B;
  border-radius: 10px;
}

.phone-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.phone-logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(197, 155, 39, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

.phone-title-ar {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 14px;
  letter-spacing: -0.5px;
}

.phone-title-en {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 3px;
  margin-top: 2px;
}

.phone-tagline {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  text-align: center;
}

.phone-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-progress-bar {
  width: 80px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.phone-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--accent-gold);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.phone-security-pill {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-security-pill .dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

.preview-controls {
  margin-top: 16px;
  width: 100%;
}

/* Form Groups & Text Controls */
.form-group {
  margin-top: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary);
  background-color: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.1);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-divider {
  border-top: 1px solid var(--border-light);
  margin: 20px 0 16px;
}

.section-divider-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Switch Toggle */
.switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
}

.switch-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.switch-info p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked+.switch-slider {
  background-color: var(--primary);
}

input:checked+.switch-slider:before {
  transform: translateX(20px);
}

/* Slide Editor Cards */
.slide-editor-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.slide-editor-card:hover {
  border-color: var(--primary-light);
}

.slide-editor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.slide-number-badge {
  background-color: var(--primary-light);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.slide-editor-header h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Phone Onboarding Mockup */
.phone-onboarding-wrapper {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  border-radius: 26px;
}

.phone-onboarding-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 24px;
}

.phone-skip-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
}

.phone-skip-btn:hover {
  color: var(--primary);
}

.phone-onboarding-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  flex: 1;
  justify-content: center;
}

.phone-slide-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #F0FDF4;
  border: 2px solid #BBF7D0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(12, 59, 46, 0.08);
  transition: transform 0.3s ease;
}

.phone-slide-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.phone-slide-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.phone-onboarding-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.phone-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E2E8F0;
  transition: all 0.25s ease;
  cursor: pointer;
}

.phone-dot.active {
  width: 20px;
  border-radius: 4px;
  background-color: var(--primary);
}

.phone-primary-action-btn {
  width: 100%;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(12, 59, 46, 0.2);
}

.phone-login-link {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.phone-login-link span {
  color: var(--primary);
  font-weight: 700;
}

/* =========================================================================
   Home Sliders Management & Home Phone Mockup Styles
   ========================================================================= */
.sliders-table-wrapper {
  overflow-x: auto;
  margin-top: 14px;
}

.sliders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sliders-table th {
  background-color: #F8FAFC;
  padding: 10px 14px;
  text-align: right;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.sliders-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.sliders-table tr:hover {
  background-color: #F8FAFC;
}

.gradient-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.gradient-badge.ivory {
  background: #FAF6EE;
  color: #1F2A24;
  border: 1px solid rgba(200, 155, 60, 0.4);
}

.gradient-badge.emerald {
  background: linear-gradient(135deg, #144B3A, #1F4A3A);
}

.gradient-badge.gold {
  background: #F4E9CF;
  color: #7A5C18;
  border: 1px solid rgba(200, 155, 60, 0.45);
}

.gradient-badge.navy {
  background: linear-gradient(135deg, #182430, #223240);
}

.gradient-badge.violet {
  background: linear-gradient(135deg, #3B2643, #4D3258);
}

.gradient-badge.sunset {
  background: linear-gradient(135deg, #7D3D26, #984C30);
}

/* Home Phone Screen Specific Mockup */
.phone-home-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #F8FAFC;
  overflow-y: auto;
  position: relative;
}

.phone-home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 8px 14px;
}

.phone-home-greeting {
  font-size: 10px;
  color: var(--text-secondary);
}

.phone-home-username {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.phone-bell-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-bell-dot {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 6px;
  background-color: #EF4444;
  border-radius: 50%;
}

/* Home Slider Banner inside Mockup */
.phone-slider-box {
  margin: 6px 12px;
  padding: 12px;
  border-radius: 12px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 115px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

.phone-slider-box.emerald {
  background: linear-gradient(135deg, #07261D, #0C3B2E, #1D5A49);
}

.phone-slider-box.gold {
  background: linear-gradient(135deg, #8C6D14, #C59B27);
}

.phone-slider-box.navy {
  background: linear-gradient(135deg, #0F172A, #1E293B);
}

.phone-slider-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 4px;
  align-self: flex-start;
}

.phone-slider-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.phone-slider-desc {
  font-size: 9.5px;
  opacity: 0.88;
  margin-top: 3px;
  line-height: 1.35;
}

.phone-slider-btn {
  align-self: flex-end;
  background-color: #FFFFFF;
  color: var(--primary);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}

/* Home Section: ابدأ مع جمعيتي */
.phone-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 6px 14px 4px 14px;
}

.phone-quick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px;
}

.phone-quick-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.phone-quick-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.phone-quick-name {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
}

.phone-quick-desc {
  font-size: 8px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 2px;
}

/* Home Section: اعزم صحابك */
.phone-referral-box {
  margin: 8px 12px 60px 12px;
  background: linear-gradient(135deg, #0C3B2E, #1D5A49);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 10px;
  font-size: 9px;
}

.phone-referral-title {
  font-weight: 800;
  font-size: 10px;
  margin-bottom: 3px;
}

.phone-referral-code {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-weight: 700;
  font-size: 9px;
}

/* Home Bottom Bar Mockup */
.phone-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px;
  z-index: 10;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.phone-nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.phone-nav-fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -14px;
  box-shadow: 0 4px 10px rgba(12, 59, 46, 0.35);
  cursor: pointer;
}

/* Modal Overlays & Containers (Solid Opaque Banking Style) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-container,
.modal-content {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-radius: 18px;
  width: 92%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  position: relative;
  z-index: 1001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--danger);
}

/* ==========================================================================
   Advanced Form Controls & Slider Customizer UI
   ========================================================================== */
.modal-content.modal-large {
  max-width: 680px;
  width: 95%;
  border-radius: 20px;
  padding: 28px;
}

.form-group {
  margin-bottom: 16px;
  text-align: start;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0F172A;
  background-color: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.12);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Segmented Type Switcher */
.slider-type-switcher {
  display: flex;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 20px;
}

.type-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Toggle Switch Control */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 16px;
}

.toggle-switch-wrapper label {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
  margin: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.slider-round {
  background-color: var(--primary);
}

input:checked+.slider-round:before {
  transform: translateX(20px);
}

/* Live Preview Card */
.slider-live-preview-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 22px;
}

.preview-badge-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-mock-card {
  min-height: 196px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 28px -10px rgba(31, 42, 36, 0.14);
  transition: all 0.3s ease;
}

/* Quiet Ledger Color Presets for Live Mock */
.mock-bg-ivory {
  background: #FFFFFF;
  border: 1px solid rgba(200, 155, 60, 0.34);
}

.mock-bg-emerald {
  background: linear-gradient(135deg, #124536 0%, #1F4A3A 100%);
}

.mock-bg-gold {
  background: linear-gradient(135deg, #FAF4E6 0%, #F3E6C8 100%);
  border: 1px solid rgba(200, 155, 60, 0.40);
}

.mock-bg-navy {
  background: linear-gradient(135deg, #182430 0%, #223240 100%);
}

.mock-bg-violet {
  background: linear-gradient(135deg, #3B2643 0%, #4D3258 100%);
}

.mock-bg-sunset {
  background: linear-gradient(135deg, #7D3D26 0%, #984C30 100%);
}

.mock-card-img-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.mock-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 42, 36, 0.08) 0%, rgba(31, 42, 36, 0.45) 48%, rgba(31, 42, 36, 0.86) 100%);
  z-index: 2;
}

.mock-card-halo,
.slider-banner-halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at 88% 12%, rgba(200, 155, 60, 0.20) 0%, rgba(200, 155, 60, 0) 58%);
}

.slider-mock-card:not(.mock-bg-ivory):not(.mock-bg-gold) .mock-card-halo,
.slider-banner-display:not(.ivory):not(.gold) .slider-banner-halo {
  background: radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 52%);
}

.slider-mock-card.is-image-banner .mock-card-halo,
.slider-banner-display.is-image-banner .slider-banner-halo {
  display: none;
}

.mock-card-toprow,
.slider-banner-toprow {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mock-card-icon,
.slider-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #F6F2EA;
  flex-shrink: 0;
}

.mock-bg-ivory .mock-card-icon,
.mock-bg-gold .mock-card-icon,
.slider-banner-display.ivory .slider-banner-icon,
.slider-banner-display.gold .slider-banner-icon {
  background: #FAF6EE;
  border-color: rgba(200, 155, 60, 0.38);
  color: #8C6921;
}

.mock-card-content {
  position: relative;
  z-index: 3;
  color: #F6F2EA;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mock-card-badge {
  display: inline-block;
  padding: 4px 11px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.42);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #F6F2EA;
}

.mock-bg-ivory .mock-card-badge,
.mock-bg-gold .mock-card-badge,
.slider-banner-display.ivory .slider-banner-badge,
.slider-banner-display.gold .slider-banner-badge {
  background: transparent;
  border-color: transparent;
  padding: 2px 0;
  color: #8C6921;
}

.mock-card-title {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: #F6F2EA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mock-bg-ivory .mock-card-title,
.mock-bg-gold .mock-card-title,
.slider-banner-display.ivory .slider-banner-title,
.slider-banner-display.gold .slider-banner-title {
  color: #1F2A24;
}

.mock-card-subtitle {
  font-size: 12px;
  margin: 0;
  color: rgba(246, 242, 234, 0.80);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mock-bg-ivory .mock-card-subtitle,
.mock-bg-gold .mock-card-subtitle,
.slider-banner-display.ivory .slider-banner-desc,
.slider-banner-display.gold .slider-banner-desc {
  color: #5A6460;
}

.mock-card-btn {
  margin-top: 12px;
  background: #F6F2EA;
  color: #1F2A24;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mock-bg-ivory .mock-card-btn,
.mock-bg-gold .mock-card-btn,
.slider-banner-display.ivory .slider-banner-btn,
.slider-banner-display.gold .slider-banner-btn {
  background: #1F4A3A;
  color: #F6F2EA;
}

.slider-mock-card.is-image-banner .mock-card-btn,
.slider-banner-display.is-image-banner .slider-banner-btn {
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
  color: #F6F2EA;
}

/* ==========================================================================
   Live Slider Showcase Banner Component (Clean & Responsive)
   ========================================================================== */
.slider-showcase-container {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.slider-banner-display {
  position: relative;
  min-height: 224px;
  border-radius: 24px;
  overflow: hidden;
  padding: 24px 26px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 30px -10px rgba(31, 42, 36, 0.14);
  transition: all 0.35s ease;
}

.slider-banner-display.ivory {
  background: #FFFFFF;
  border: 1px solid rgba(200, 155, 60, 0.34);
}

.slider-banner-display.emerald {
  background: linear-gradient(135deg, #124536 0%, #1F4A3A 100%);
}

.slider-banner-display.gold {
  background: linear-gradient(135deg, #FAF4E6 0%, #F3E6C8 100%);
  border: 1px solid rgba(200, 155, 60, 0.40);
}

.slider-banner-display.navy {
  background: linear-gradient(135deg, #182430 0%, #223240 100%);
}

.slider-banner-display.violet {
  background: linear-gradient(135deg, #3B2643 0%, #4D3258 100%);
}

.slider-banner-display.sunset {
  background: linear-gradient(135deg, #7D3D26 0%, #984C30 100%);
}

.slider-banner-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slider-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 42, 36, 0.08) 0%, rgba(31, 42, 36, 0.45) 48%, rgba(31, 42, 36, 0.86) 100%);
  z-index: 2;
}

.slider-banner-content {
  position: relative;
  z-index: 3;
  color: #F6F2EA;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.slider-banner-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.42);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #F6F2EA;
  backdrop-filter: blur(4px);
}

.slider-banner-title {
  font-size: 20px;
  font-weight: 800;
  color: #F6F2EA;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.slider-banner-desc {
  font-size: 13.5px;
  color: rgba(246, 242, 234, 0.82);
  margin: 0;
  max-width: 580px;
  line-height: 1.55;
}

.slider-banner-btn {
  margin-top: 14px;
  background: #F6F2EA;
  color: #1F2A24;
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
}

.slider-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.slider-dots-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.slider-nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-nav-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--primary);
}

.slider-showcase-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

/* ========================================================================= */
/* Users Management Section Styles                                           */
/* ========================================================================= */

.users-count-badge {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(197, 155, 39, 0.2);
  color: #FDE047;
  padding: 2px 7px;
  border-radius: 12px;
  line-height: 1.2;
}

.users-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.users-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.users-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.users-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.users-stat-icon.total {
  background: #EFF6FF;
  color: #2563EB;
}

.users-stat-icon.verified {
  background: #ECFDF5;
  color: #059669;
}

.users-stat-icon.pending {
  background: #FFFBEB;
  color: #D97706;
}

.users-stat-icon.unverified {
  background: #F1F5F9;
  color: #64748B;
}

.users-stat-info h4 {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.users-stat-info .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

/* Toolbar & Filters */
.users-kpis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.users-kpis-grid .metric-card {
  padding: 18px;
}

.users-kpis-grid .metric-header {
  gap: 8px;
  align-items: flex-start;
}

.users-kpis-grid .metric-label {
  font-size: 11.5px;
  line-height: 1.35;
}

.users-kpis-grid .status-pill {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10.5px;
  padding: 3px 8px;
}

.users-toolbar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.users-toolbar-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.users-toolbar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.users-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.users-search-box svg {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.users-search-input {
  width: 100%;
  height: 42px;
  padding-block: 9px;
  padding-inline-start: 42px;
  padding-inline-end: 14px;
  font-family: inherit;
  font-size: 13.5px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.users-search-input:focus {
  outline: none;
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 3px rgba(8, 40, 30, 0.09);
  background: #FFFFFF;
}

.users-reset-btn {
  height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.users-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.users-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.users-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.users-filter-field--wide {
  grid-column: span 2;
}

.users-filter-mini-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Opaque Solid Banking Selects & Inputs (Scoped without global layout flex override) */
select:not(.slot-tier-select):not(.slot-rule-select),
.users-filter-select,
.form-input {
  background-color: #FFFFFF !important;
  color: var(--text-primary) !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  box-shadow: 0 1px 2px rgba(4, 22, 16, 0.03) !important;
}

.users-filter-select,
select.form-control,
select.form-select,
select.form-input {
  /* RTL Box Model: Text starts on the RIGHT (14px), Arrow sits on the LEFT (38px buffer) */
  padding: 8px 13px 8px 34px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  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='%23526B61' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 11px center !important;
  background-size: 13px !important;
  min-height: 40px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
}

.users-filter-select {
  width: 100%;
  min-width: 0;
}

.users-filters .users-filter-select {
  width: auto;
  flex: 1 1 180px;
  min-width: 155px;
}

.users-sort-select {
  font-weight: 700 !important;
  color: var(--brand-emerald) !important;
}

.users-filter-select:hover,
select.form-control:hover,
select.form-select:hover,
select.form-input:hover {
  border-color: #94A3B8 !important;
  background-color: #FAFBFB !important;
}

.users-filter-select:focus,
select.form-control:focus,
select.form-select:focus,
select.form-input:focus {
  border-color: var(--brand-emerald) !important;
  box-shadow: 0 0 0 3px rgba(8, 40, 30, 0.1) !important;
  background-color: #FFFFFF !important;
}

/* Opaque Solid Option elements */
select option,
.users-filter-select option {
  background-color: #FFFFFF !important;
  color: #051C15 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Base Modal Tab Styles (overridden inside .user-dossier-modal into calm pill nav) */
.user-modal-tabs {
  display: flex;
  gap: 8px;
}

.user-modal-tab {
  font-family: inherit;
  cursor: pointer;
}

.user-tab-pane {
  display: none;
}

.user-tab-pane.active {
  display: block;
  animation: fadeInSubpane 0.2s var(--ease-smooth);
}

/* Table Card */
.users-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.users-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 13px;
}

.users-table thead {
  background: var(--bg-surface-subtle);
  border-bottom: 1.5px solid var(--border);
}

.users-table th {
  padding: 12px 10px;
  text-align: start;
  font-weight: 800;
  color: var(--text-secondary);
  font-size: 11.5px;
  letter-spacing: 0.1px;
  white-space: normal;
  line-height: 1.35;
  vertical-align: middle;
}

.users-table th.users-th-actions {
  text-align: center;
  width: 116px;
}

.users-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.users-table tbody tr {
  transition: background-color 0.15s ease;
}

.users-table tbody tr:last-child td {
  border-bottom: none;
}

.users-table tbody tr:hover {
  background-color: #F7FAF8;
}

/* User Identity Cell */
.user-info-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-emerald);
  color: #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid rgba(197, 155, 39, 0.55);
  flex-shrink: 0;
}

.user-avatar-circle.is-gold {
  background: linear-gradient(135deg, #92400E, #B45309);
  color: #FEF3C7;
  border-color: var(--brand-gold);
}

.user-avatar-circle.is-banned {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

.user-avatar-circle.is-admin {
  background: var(--brand-emerald);
  color: #FDE68A;
}

.user-avatar-circle.is-user {
  background: #EBF2EE;
  color: var(--brand-emerald);
  border-color: var(--border-strong);
}

.user-name-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-name-text {
  font-weight: 800;
  color: var(--text-heading);
  font-size: 13.5px;
}

.user-submeta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-email-muted {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-users .users-table .user-info-cell {
  gap: 10px;
}

#view-users .users-table .btn-action-view {
  padding: 6px 10px;
  font-size: 11.5px;
  white-space: nowrap;
}

.user-ref-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand-emerald);
  background: var(--brand-emerald-tint);
  padding: 1px 6px;
  border-radius: 5px;
  direction: ltr;
}

.user-contact-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-phone-mono {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-primary);
  direction: ltr;
  width: fit-content;
}

.user-wallet-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--status-success);
  background: var(--status-success-bg);
  border: 1px solid var(--status-success-border);
  padding: 1px 7px;
  border-radius: 6px;
}

.user-kyc-cell,
.user-circles-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.user-cell-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.user-nid-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  direction: ltr;
}

.user-circles-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-heading);
}

.user-circles-empty {
  font-size: 12px;
  color: var(--text-muted);
}

.user-paid-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.user-joined-cell {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  width: fit-content;
}

.user-role-badge.admin {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.user-role-badge.user {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.user-role-badge.banned,
.user-banned-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* KYC Badges */
.kyc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.kyc-status-badge.verified {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.kyc-status-badge.pending {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.kyc-status-badge.unverified {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.kyc-status-badge.rejected {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Credit & Trust Badge */
.trust-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 12px;
  color: var(--text-heading);
}

.trust-level-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-emerald);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.trust-level-pill.tier-ap,
.trust-level-pill.tier-a {
  background: var(--status-success);
}

.trust-level-pill.tier-b {
  background: var(--status-info);
}

.trust-level-pill.tier-c {
  background: var(--status-warning);
}

.trust-level-pill.tier-d {
  background: var(--status-danger);
}

/* Action Buttons */
.user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-action-view {
  background: #FFFFFF;
  color: var(--brand-emerald);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-action-view:hover {
  background: var(--brand-emerald);
  color: #FFFFFF;
  border-color: var(--brand-emerald);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(8, 40, 30, 0.14);
}

.btn-action-verify {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.btn-action-verify:hover {
  background: #D1FAE5;
  color: #047857;
}

/* Empty & Loading States */
.users-table-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}

.users-table-empty svg {
  margin-bottom: 12px;
  color: #CBD5E1;
}

.users-table-empty p {
  font-size: 14px;
  font-weight: 600;
}

/* ========================================================================= */
/* Dedicated KYC Verification & Approval Styles                             */
/* ========================================================================= */

.kyc-pending-count-badge {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 800;
  background-color: #DC2626;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 12px;
  line-height: 1.2;
}

.btn-action-reject {
  background: #FEF2F2;
  color: #991B1B;
  border-color: #FECACA;
}

.btn-action-reject:hover {
  background: #FEE2E2;
  color: #7F1D1D;
}

.kyc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.kyc-pill.gov {
  background: #EFF6FF;
  color: #1D4ED8;
}

.kyc-pill.age {
  background: #F5F3FF;
  color: #6D28D9;
}

.kyc-dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.kyc-dossier-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.kyc-dossier-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.kyc-dossier-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.nid-code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  background: #F8FAFC;
  border: 1px dashed var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--primary);
  display: inline-block;
}

/* KYC Live Photo Inspection Cards */
.kyc-photo-card {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kyc-photo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.kyc-photo-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #ECFDF5;
  color: #059669;
  font-weight: 700;
}

.kyc-photo-status.missing {
  background: #FEF2F2;
  color: #DC2626;
}

.kyc-photo-wrap {
  height: 140px;
  background: #0B101B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.kyc-photo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.kyc-photo-wrap:hover img {
  transform: scale(1.04);
}

.kyc-photo-wrap.kyc-photo-selfie img {
  border-radius: 50%;
  border: 2px solid #10B981;
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.kyc-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
}

/* Gold Member Badges & Buttons */
.gold-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.gold-badge-pill.pending {
  background: #F1F5F9;
  color: #475569;
  border-color: #CBD5E1;
}

.btn-action-gold {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-action-gold:hover {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #F59E0B;
}

.btn-action-gold.active {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

/* ==========================================================================
   Fintech Circles Management & Banking Dossier (الجمعيات المالية ولوحة التدقيق)
   ========================================================================== */

/* Compact Financial Metrics Ribbon */
.circles-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #E2E8F0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 960px) {
  .circles-metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .circles-metrics-ribbon {
    grid-template-columns: 1fr;
  }
}

.circles-metric-item {
  background: #FFFFFF;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
}

.circles-metric-item:hover {
  background: #F8FAFC;
}

.circles-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circles-metric-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.circles-metric-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.circles-metric-value {
  font-size: 17px;
  font-weight: 900;
  color: #0F172A;
  font-family: 'Outfit', 'Cairo', sans-serif;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* Filter & Search Bar */
.circles-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.circles-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.circles-search-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}


.circles-search-wrap input {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  background: #F8FAFC;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.circles-search-wrap input:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.08);
}

.circles-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.circle-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.circle-filter-pill:hover {
  color: #0F172A;
}

.circle-filter-pill.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.circle-filter-pill .pill-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  background: #E2E8F0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
}

.circle-filter-pill.active .pill-count {
  background: rgba(12, 59, 46, 0.1);
  color: var(--primary);
}

.circle-filter-pill .pill-count.warn {
  background: #FEF3C7;
  color: #92400E;
}

.circle-filter-pill .pill-count.success {
  background: #ECFDF5;
  color: #065F46;
}

.circle-filter-pill .pill-count.danger {
  background: #FEF2F2;
  color: #991B1B;
}

/* Spacious Consolidated Table */
.circles-spacious-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.circles-spacious-table thead {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.circles-spacious-table th {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.circles-spacious-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.circles-spacious-table tbody tr {
  transition: background-color 0.15s ease;
}

.circles-spacious-table tbody tr:hover {
  background-color: #F8FAFC;
}

/* Column 1: Member Card */
.circle-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.circle-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0C3B2E;
  color: #C59B27;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  border: 1.5px solid #C59B27;
}

.circle-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.circle-member-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.circle-member-name {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

.circle-member-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748B;
}

.circle-member-sub-row .phone {
  font-family: monospace;
  font-weight: 600;
}

.circle-member-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* Column 2: Financials Card */
.circle-fin-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.circle-fin-amount {
  font-size: 16px;
  font-weight: 900;
  color: #0C3B2E;
  letter-spacing: -0.3px;
  font-family: 'Outfit', 'Cairo', sans-serif;
}

.circle-fin-sub {
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  display: flex;
  align-items: center;
  gap: 4px;
}

.circle-fin-duration {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

/* Column 3: Payout Turn */
.circle-payout-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.circle-payout-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-weight: 800;
  font-size: 12px;
  width: fit-content;
}

.circle-payout-amount-text {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
}

.circle-fee-text {
  font-size: 10.5px;
  color: #94A3B8;
  font-weight: 600;
}

/* Column 4: Status & Date */
.circle-status-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.circle-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  width: fit-content;
}

.circle-status-pill.pending {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.circle-status-pill.active {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.circle-status-pill.rejected {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.circle-status-pill.completed {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.circle-date-text {
  font-size: 11px;
  color: #64748B;
}

/* Column 5: Action Buttons */
.circle-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.btn-dossier-inspect {
  background: #F8FAFC;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-dossier-inspect:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-circle-quick-approve {
  background: #059669;
  color: #FFFFFF;
  border: 1px solid #059669;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-circle-quick-approve:hover {
  background: #047857;
  border-color: #047857;
}

.btn-circle-quick-reject {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-circle-quick-reject:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

.btn-circle-disburse {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-circle-disburse:hover {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.2);
}

.circle-progress-wrap {
  width: 100%;
  background: #E2E8F0;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.circle-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 4px;
}

/* ==========================================================================
   Luxury Banking Dossier Modal Redesign
   ========================================================================== */
.circle-dossier-modal {
  max-width: 900px !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  box-shadow: 0 25px 50px -12px rgba(12, 59, 46, 0.25) !important;
}

.circle-dossier-header {
  background: linear-gradient(135deg, #0C3B2E 0%, #155E49 100%);
  color: #FFFFFF;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.circle-dossier-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.circle-dossier-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.circle-dossier-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 16px 26px;
}

.dossier-hero-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dossier-hero-item .lbl {
  font-size: 11px;
  color: #64748B;
  font-weight: 700;
}

.dossier-hero-item .val {
  font-size: 16px;
  font-weight: 900;
  color: #0F172A;
  font-family: 'Outfit', 'Cairo', sans-serif;
}

.dossier-hero-item.highlight .val {
  color: #059669;
}

.dossier-hero-item .val.blue {
  color: #2563EB;
}

.dossier-hero-item.gold .val {
  color: #D97706;
}

.dossier-hero-item .val.mute {
  color: #94A3B8;
}

/* Dossier Tabs Navigation */
.dossier-tabs-nav {
  display: flex;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 26px;
  gap: 4px;
}

.dossier-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 800;
  color: #64748B;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dossier-tab-btn:hover {
  color: var(--primary);
}

.dossier-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.circle-dossier-body {
  padding: 24px 26px;
  max-height: calc(85vh - 180px);
  overflow-y: auto;
}

.dossier-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.dossier-pane.active {
  display: flex;
}

/* DTI Solvency Card */
.solvency-assessment-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 22px;
}

.dti-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.dti-percent-val {
  font-size: 26px;
  font-weight: 900;
  color: #059669;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.dti-percent-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-align: center;
  margin-top: 2px;
}

.dti-info-text {
  flex: 1;
}

.dti-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.dti-desc {
  font-size: 12px;
  color: #64748B;
  margin: 0;
  line-height: 1.6;
}

/* Dossier Details Grid */
.dossier-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.dossier-detail-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dossier-detail-card .field-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
}

.dossier-detail-card .field-value {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.dossier-detail-card .field-value.mono {
  font-family: monospace;
}

.dossier-detail-card .field-value.highlight {
  color: #0C3B2E;
}

.dossier-detail-card .field-value.green {
  color: #059669;
}

/* Document Cards in Tab 2 */
.dossier-docs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.dossier-doc-card {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.dossier-doc-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dossier-doc-header {
  padding: 10px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-size: 12px;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dossier-doc-preview {
  height: 140px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dossier-doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.dossier-doc-card:hover .dossier-doc-preview img {
  transform: scale(1.05);
}

.dossier-doc-empty {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dossier-doc-footer {
  padding: 10px 14px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  background: #FFFFFF;
}

.dossier-doc-link {
  font-size: 11.5px;
  font-weight: 800;
  color: #059669;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dossier-doc-link:hover {
  text-decoration: underline;
}

/* Schedule Mini Table in Tab 3 */
.schedule-table-wrap {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

.schedule-mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.schedule-mini-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-weight: 800;
  color: #475569;
  text-align: right;
  border-bottom: 1px solid #E2E8F0;
}

.schedule-mini-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
}

.schedule-mini-table tr:last-child td {
  border-bottom: none;
}

.schedule-mini-table tr.payout-row {
  background: #FEF9C3 !important;
  font-weight: 800;
}

/* Modal Footer */
.circle-dossier-footer {
  padding: 16px 26px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
}

/* =========================================================================
   Institutional Fintech Admin Login Portal & Security Governance Styles
   ========================================================================= */

body.auth-locked {
  overflow: hidden !important;
  background-color: #061A14 !important;
}

body.auth-locked .app-layout {
  pointer-events: none !important;
  user-select: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.auth-locked #adminLoginModal {
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  display: flex !important;
}

.admin-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #061A14;
  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: 32px 32px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.admin-auth-overlay.active {
  display: flex;
}

.admin-auth-shell {
  width: 100%;
  max-width: 780px;
  min-height: 410px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: authShellReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authShellReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Right Column (in RTL): Clean Brand Identity Panel */
.admin-auth-brand-panel {
  background: #07231B;
  color: #F8FAFC;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.auth-brand-centerpiece {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.auth-brand-logo-large {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: rgba(197, 155, 39, 0.12);
  border: 1.5px solid rgba(197, 155, 39, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  margin-bottom: 4px;
}

.auth-brand-logo-large img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.auth-brand-title-ar {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
}

.auth-brand-title-en {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #EAB308;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 5px 12px;
  border-radius: 8px;
}

/* Left Column (in RTL): Form Workspace */
.admin-auth-card {
  background: #FFFFFF;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.auth-workspace-header {
  margin-bottom: 24px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.3px;
}

/* Error Alert Box */
.auth-error-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-right: 3px solid #DC2626;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 18px;
  animation: authErrorShake 0.3s ease forwards;
}

@keyframes authErrorShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.auth-error-icon {
  color: #DC2626;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-error-content {
  font-size: 12.5px;
  font-weight: 700;
  color: #991B1B;
  line-height: 1.45;
  flex: 1;
}

/* Form Fields */
.auth-field-group {
  margin-bottom: 16px;
}

.auth-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 7px;
}

.auth-label-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
}

.auth-caps-warning {
  font-size: 10.5px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 2px 7px;
  border-radius: 4px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  right: 13px;
  color: #64748B;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 40px 11px 40px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0F172A;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #0C3B2E;
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.12);
}

.auth-input::placeholder {
  color: #94A3B8;
  font-size: 12.5px;
}

.auth-password-toggle {
  position: absolute;
  left: 10px;
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-password-toggle:hover {
  color: #0C3B2E;
  background-color: #F1F5F9;
}

/* Session Options Box */
.auth-session-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 18px;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox {
  width: 15px;
  height: 15px;
  accent-color: #0C3B2E;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-checkbox-title {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
}

.auth-checkbox-sub {
  font-size: 11px;
  color: #64748B;
  line-height: 1.4;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0C3B2E;
  color: #FFFFFF;
  border: 1px solid #07261D;
  border-radius: 10px;
  padding: 12.5px 20px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.auth-submit-btn:hover:not(:disabled) {
  background: #07261D;
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-btn-arrow {
  transition: transform 0.15s ease;
}

.auth-submit-btn:hover .auth-btn-arrow {
  transform: translateX(-3px);
}

.auth-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Card Footer */
.auth-card-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.auth-footer-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  line-height: 1.45;
}

/* Security View Grid Responsive Layout */
.security-workspace-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-auth-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .admin-auth-brand-panel {
    padding: 24px 24px;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .auth-guarantees-list {
    display: none;
  }

  .admin-auth-card {
    padding: 26px 24px;
  }

  .security-workspace-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Circle Settings & Configuration Styles
   ========================================================================== */
.circle-duration-toggle-card {
  user-select: none;
}

.circle-duration-toggle-card:hover {
  border-color: #0C3B2E !important;
  background-color: #F8FAFC;
}

.circle-duration-toggle-card.selected {
  border-color: #0C3B2E !important;
  background-color: #ECFDF5 !important;
}

.slot-rate-tab {
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.slot-rate-tab:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.slot-rate-tab.active {
  background: #0C3B2E;
  color: #FFFFFF;
  border-color: #0C3B2E;
  box-shadow: 0 2px 6px rgba(12, 59, 46, 0.2);
}

.slot-rate-row:hover {
  background-color: #F8FAFC;
}

.slot-rate-input-wrap {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.slot-rate-input-wrap:focus-within {
  border-color: #0C3B2E;
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.12);
}

.slot-rate-input {
  width: 75px;
  padding: 7px 10px;
  border: none;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #0F172A;
  text-align: center;
  outline: none;
}

.slot-rate-input-wrap .unit {
  padding: 0 10px;
  background: #F1F5F9;
  color: #64748B;
  font-size: 12px;
  font-weight: 800;
  border-inline-start: 1px solid #E2E8F0;
  height: 100%;
  display: flex;
  align-items: center;
}

.preset-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #334155;
}

.custom-dur-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1D4ED8;
}

.custom-dur-badge .remove-btn {
  cursor: pointer;
  color: #DC2626;
  font-weight: 800;
  padding: 0 2px;
}

/* Unified Durations Grid & Cards */
.add-duration-bar {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
}

.durations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .durations-grid {
    grid-template-columns: 1fr;
  }
}

.duration-item-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.duration-item-card:hover {
  border-color: #0C3B2E;
  box-shadow: 0 4px 12px rgba(12, 59, 46, 0.06);
}

.duration-item-card.active-selected {
  border-color: #0C3B2E;
  background-color: #F8FAF9;
}

.duration-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.duration-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duration-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.duration-item-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.duration-item-desc {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 3px;
}

.duration-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
}

.dur-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: inherit;
}

.dur-action-btn.edit {
  background: #F1F5F9;
  color: #334155;
  border-color: #CBD5E1;
}

.dur-action-btn.edit:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

.dur-action-btn.delete {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.dur-action-btn.delete:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

/* ========================================================================= */
/* Slot Fee Rates Matrix & Circle Settings (تحديد نسب رسوم الأدوار)           */
/* ========================================================================= */

.slot-rates-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.slot-rate-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: inherit;
}

.slot-rate-tab:hover {
  border-color: #CBD5E1;
  background: #F1F5F9;
  color: #0F172A;
}

.slot-rate-tab.active {
  background: #0C3B2E;
  border-color: #0C3B2E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(12, 59, 46, 0.15);
}

.slot-rate-tab .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slot-rate-tab .tab-title {
  font-weight: 800;
  font-size: 13.5px;
}

.slot-rate-tab .tab-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #64748B;
  transition: all 0.2s ease;
}

.slot-rate-tab.active .tab-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Slot Rates Table */
.slot-rates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.slot-rates-table thead th {
  background: #F8FAFC;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.slot-rates-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background-color 0.15s ease;
}

.slot-rates-table tbody tr:hover {
  background-color: #F8FAFC;
}

.slot-rates-table tbody tr:last-child {
  border-bottom: none;
}

.slot-rates-table tbody td {
  padding: 14px 20px;
  vertical-align: middle;
}

/* Number & Month badge */
.slot-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
  border: 1px solid #E2E8F0;
}

.slot-num-badge.early {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.slot-num-badge.free {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.slot-info-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-text-wrap {
  display: flex;
  flex-direction: column;
}

.slot-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
}

.slot-subtitle {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
}

/* Rate Tier Badges */
.rate-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.rate-tier-badge.early {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.rate-tier-badge.mid {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.rate-tier-badge.free {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* Tier selector dropdown in table (أولوية الاستلام) */
.slot-tier-select-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 190px;
}

.slot-tier-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border-radius: 8px;
  padding: 6px 10px 6px 26px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-repeat: no-repeat;
  background-position: left 8px center;
  background-size: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.slot-tier-select.early {
  background-color: #FFFBEB;
  color: #B45309;
  border: 1.5px solid #FDE68A;
}

.slot-tier-select.early:focus {
  border-color: #D97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.slot-tier-select.mid {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1.5px solid #BFDBFE;
}

.slot-tier-select.mid:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.slot-tier-select.free {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1.5px solid #A7F3D0;
}

.slot-tier-select.free:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Slot Rules (حالة واشتراطات الدور) */
.slot-rule-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 180px;
}

.slot-rule-select-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.slot-rule-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border-radius: 8px;
  padding: 6px 10px 6px 26px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-repeat: no-repeat;
  background-position: left 8px center;
  background-size: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.slot-rule-select.open {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1.5px solid #A7F3D0;
}

.slot-rule-select.open:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.slot-rule-select.conditional {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1.5px solid #BFDBFE;
}

.slot-rule-select.conditional:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.slot-rule-select.locked {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1.5px solid #FECACA;
}

.slot-rule-select.locked:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.slot-rule-extra {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
}

.slot-rule-min-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #475569;
  font-weight: 700;
}

.slot-rule-min-input {
  width: 52px;
  padding: 3px 6px;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
}

.slot-rule-min-input:focus {
  border-color: #1D4ED8;
}

.slot-rule-reason-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'Cairo', sans-serif;
  color: #334155;
  background: #FFFFFF;
  outline: none;
  box-sizing: border-box;
}

.slot-rule-reason-input:focus {
  border-color: #64748B;
}


/* Input wrap */
.slot-rate-input-wrap {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 9px;
  padding: 3px 10px;
  width: 110px;
  transition: all 0.2s ease;
}

.slot-rate-input-wrap:focus-within {
  border-color: #0C3B2E;
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.12);
}

.slot-rate-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14.5px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  color: #0F172A;
  padding: 5px 0;
  background: transparent;
}

.slot-rate-input-wrap .unit {
  font-size: 13px;
  font-weight: 800;
  color: #64748B;
  padding-left: 2px;
}

/* Status Pill */
.rate-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.rate-status-pill.fee {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.rate-status-pill.free {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* ========================================================================= */
/* AUDIT LOGS VIEW & DETAILS STYLES                                          */
/* ========================================================================= */
.audit-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.audit-stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audit-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.audit-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audit-stat-icon.total {
  background: #ECFDF5;
  color: #0C3B2E;
}

.audit-stat-icon.today {
  background: #EFF6FF;
  color: #1D4ED8;
}

.audit-stat-icon.admin {
  background: #FEF3C7;
  color: #B45309;
}

.audit-stat-icon.system {
  background: #F3E8FF;
  color: #7E22CE;
}

.audit-stat-info h4 {
  font-size: 12.5px;
  color: #64748B;
  margin: 0 0 4px 0;
  font-weight: 700;
}

.audit-stat-info .stat-value {
  font-size: 26px;
  font-weight: 900;
  color: #0F172A;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.audit-toolbar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.audit-table-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.audit-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.audit-table thead th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 800;
  padding: 14px 18px;
  border-bottom: 1.5px solid #E2E8F0;
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
}

.audit-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background-color 0.15s ease;
}

.audit-table tbody tr:hover {
  background-color: #F8FAFC;
}

.audit-table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  color: #1E293B;
}

.audit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.audit-pill.success {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.audit-pill.danger {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.audit-pill.warning {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.audit-pill.info {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.audit-pill.purple {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.audit-pill.neutral {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.audit-diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .audit-diff-container {
    grid-template-columns: 1fr;
  }
}

.audit-diff-pane {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-family: monospace;
  overflow-x: auto;
  max-height: 280px;
}

.audit-diff-pane.old {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.audit-diff-pane.new {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.audit-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================================
   LTR (English Mode) Overrides
   ========================================================================= */
html[dir="ltr"] body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

html[dir="ltr"] .sidebar {
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

html[dir="ltr"] .nav-item,
html[dir="ltr"] .users-table {
  text-align: left;
}

html[dir="ltr"] .badge,
html[dir="ltr"] .users-count-badge,
html[dir="ltr"] .kyc-pending-count-badge,
html[dir="ltr"] .gold-pending-count-badge,
html[dir="ltr"] .nav-group-chevron,
html[dir="ltr"] .nav-menu .nav-item .badge,
html[dir="ltr"] .nav-subitem span[id^="navSub"] {
  margin-inline-start: auto !important;
  margin-right: 0 !important;
}

html[dir="ltr"] table th,
html[dir="ltr"] table td {
  text-align: left;
}

html[dir="ltr"] .topbar-actions {
  margin-left: auto;
  margin-right: 0;
}

html[dir="ltr"] .users-search-box svg,
html[dir="ltr"] .circles-search-wrap svg {
  right: auto;
  left: 14px;
}

html[dir="ltr"] .users-search-input,
html[dir="ltr"] .circles-search-wrap input {
  padding: 10px 14px 10px 42px;
}

html[dir="ltr"] .users-filter-select,
html[dir="ltr"] select.form-control,
html[dir="ltr"] select.form-select,
html[dir="ltr"] select.form-input {
  padding: 9px 38px 9px 14px !important;
  background-position: right 12px center !important;
}

html[dir="ltr"] .slot-tier-select,
html[dir="ltr"] .slot-rule-select {
  padding: 6px 26px 6px 10px;
  background-position: right 8px center;
}

html[dir="ltr"] .admin-auth-brand-panel {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

html[dir="ltr"] .admin-auth-card {
  text-align: left;
}

html[dir="ltr"] .auth-error-box {
  border-right: 1px solid #FECACA;
  border-left: 3px solid #DC2626;
}

html[dir="ltr"] .auth-input-icon {
  right: auto;
  left: 13px;
}

html[dir="ltr"] .auth-password-toggle {
  left: auto;
  right: 10px;
}

html[dir="ltr"] .auth-btn-arrow {
  transform: rotate(180deg);
}

html[dir="ltr"] .auth-submit-btn:hover .auth-btn-arrow {
  transform: rotate(180deg) translateX(-3px);
}



/* ==========================================================================
   GOLD MEMBERSHIP AUDIT DOSSIER & DEPARTMENTAL REVIEW
   ========================================================================== */
.gold-dossier-applicant-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #051C15 0%, #08281E 100%);
  border-radius: 14px;
  color: #FFFFFF;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-gold);
}

.gold-dept-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 20px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.gold-dept-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px 10px 0 0;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.gold-dept-tab:hover {
  color: var(--brand-emerald);
  background: rgba(8, 40, 30, 0.04);
}

.gold-dept-tab.active {
  color: var(--brand-emerald);
  border-bottom-color: var(--brand-gold);
  background: var(--brand-gold-tint);
  font-weight: 800;
}

.gold-dept-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EAEFEA;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gold-dept-tab.active .gold-dept-number-badge {
  background: var(--brand-gold);
  color: #FFFFFF;
}

.gold-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.gold-tab-dot.complete {
  background-color: var(--status-success);
}

.gold-tab-dot.incomplete {
  background-color: #CAD5CF;
}

.gold-dept-panel {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.gold-dept-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.gold-dept-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gold-dept-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.gold-dept-chip.complete {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid var(--status-success-border);
}

.gold-dept-chip.incomplete {
  background: #F1F6F3;
  color: var(--text-secondary);
  border: 1px solid #D8E2DC;
}

.gold-dept-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gold-circles-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.gold-circles-table th {
  background: #F1F6F3;
  color: var(--text-secondary);
  font-weight: 800;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.gold-circles-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

/* Data Table and Responsive Wrapping */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Modal Body & Footer Standard Styles */
.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  color: var(--text-body);
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Circle Settings Header */
.circle-settings-header {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Admin Auth Form */
.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
}

.card-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   OVERVIEW & SYSTEM READINESS ENHANCED STYLES (frontend-design skill)
   ========================================================================== */
.overview-primary-metrics {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
}

@media (max-width: 1200px) {
  .overview-primary-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .overview-primary-metrics {
    grid-template-columns: 1fr;
  }
}

.metric-card-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FCFA 100%);
  position: relative;
  overflow: hidden;
}

.metric-card-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at top right, rgba(197, 155, 39, 0.08), transparent 70%);
  pointer-events: none;
}


.quick-action-tile:hover {
  background: #FFFFFF !important;
  border-color: var(--brand-emerald) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 22, 16, 0.08);
}

.status-dot-pulse {
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
    filter: drop-shadow(0 0 6px #10B981);
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

html[dir="ltr"] .metric-card-hero {
  border-right: 1px solid var(--border) !important;
  border-left: 4px solid var(--brand-gold) !important;
}

html[dir="ltr"] .overview-primary-metrics {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

/* ==========================================================================
   VIEW: COMPREHENSIVE PLATFORM ANALYTICS (frontend-design skill)
   ========================================================================== */
.analytics-header-ribbon {
  background: linear-gradient(135deg, #051C15 0%, #08281E 60%, #0F3D30 100%);
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(4, 22, 16, 0.15);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.analytics-header-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(197, 155, 39, 0.15), transparent 70%);
  pointer-events: none;
}


.analytics-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.analytics-header-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(197, 155, 39, 0.18);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analytics-header-title {
  font-size: 17px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.analytics-header-sub {
  font-size: 12.5px;
  color: #C0D6CD;
  margin-top: 3px;
  max-width: 75ch;
  line-height: 1.45;
}

.analytics-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.analytics-filter-pills {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 2px;
}

.analytics-filter-pill {
  background: transparent;
  border: none;
  color: #A3C2B6;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.analytics-filter-pill:hover {
  color: #FFFFFF;
}

.analytics-filter-pill.active {
  background: #FFFFFF;
  color: var(--brand-emerald);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-weight: 800;
}

.analytics-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-emerald);
  margin-top: 4px;
}

.currency-tag {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-secondary);
}

/* Durations Progress Meters */
.analytics-bar-track {
  width: 100%;
  height: 9px;
  border-radius: 6px;
  background: #E8EFEA;
  overflow: hidden;
  position: relative;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s var(--ease-smooth);
}

.analytics-bar-fill.emerald {
  background: linear-gradient(90deg, #0D8259 0%, #10B981 100%);
}

.analytics-bar-fill.gold {
  background: linear-gradient(90deg, #C59B27 0%, #EAB308 100%);
}

.analytics-bar-fill.indigo {
  background: linear-gradient(90deg, #3730A3 0%, #6366F1 100%);
}

/* Funnel Rows */
.analytics-funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface-subtle);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.analytics-funnel-row:hover {
  background: #FFFFFF;
  border-color: var(--border-strong);
}

.analytics-funnel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.analytics-funnel-val {
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   APP ANALYTICS & INTELLIGENCE STYLES (frontend-design skill)
   ========================================================================== */
.analytics-header-card {
  position: relative;
  overflow: hidden;
}

.analytics-header-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(197, 155, 39, 0.15), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   ROLE MATRIX & GRANULAR PERMISSIONS STYLES (FINTECH RBAC)
   ========================================================================== */
.perm-domain-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.perm-domain-box:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.perm-domain-header {
  padding: 12px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.perm-domain-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.perm-domain-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(12, 59, 46, 0.08);
  color: var(--brand-emerald);
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  padding: 14px 18px;
}

.perm-item-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #F1F5F9;
  background: #FAFAFA;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.perm-item-label:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.perm-item-label.has-checked {
  background: #F0FDF4;
  border-color: #A7F3D0;
}

.perm-item-checkbox {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand-emerald);
  cursor: pointer;
  flex-shrink: 0;
}

.perm-item-content {
  flex: 1;
  min-width: 0;
}

.perm-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.perm-item-key {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
  font-family: monospace;
  direction: ltr;
  display: inline-block;
  margin-bottom: 3px;
}

.perm-item-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.role-matrix-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.role-matrix-card:hover {
  border-color: var(--brand-emerald);
  box-shadow: 0 8px 24px rgba(12, 59, 46, 0.08);
  transform: translateY(-2px);
}

.role-matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.role-matrix-caps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  flex: 1;
}

.role-matrix-cap-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.role-matrix-cap-item.granted {
  color: var(--text-primary);
  font-weight: 600;
}

.role-matrix-cap-item.denied {
  color: #94A3B8;
  text-decoration: line-through;
}

.role-matrix-domain-box {
  margin-top: 10px;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #E2E8F0;
}

.role-matrix-domain-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-matrix-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.role-perm-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

.role-perm-chip.granted {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.role-perm-chip.denied {
  background: #F1F5F9;
  color: #94A3B8;
  border: 1px solid #E2E8F0;
  opacity: 0.65;
}

/* ==========================================================================
   CALM FINTECH HEADER, LOGICAL ACCENTS & SCOPED VIEW SUB-TABS
   ========================================================================== */
.calm-page-header {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.calm-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.calm-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ECFDF5;
  color: var(--brand-emerald);
  border: 1px solid #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calm-header-icon.is-gold {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.calm-header-icon.is-info {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.calm-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calm-header-title-row h2,
.calm-header-main h2 {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
  letter-spacing: -0.2px;
}

.calm-header-main p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  line-height: 1.5;
  max-width: 72ch;
}

.calm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.calm-header-actions .btn-primary,
.btn-sovereign {
  background: var(--brand-emerald);
  color: #FFFFFF;
  border: 1px solid var(--brand-emerald);
  font-weight: 800;
}

.calm-header-actions .btn-primary:hover,
.btn-sovereign:hover {
  background: var(--brand-emerald-deep);
}

/* Logical Start Accent Borders for Metric Cards (RTL & LTR Safe) */
.metric-card--accent-gold {
  border-inline-start: 4px solid var(--brand-gold);
}

.metric-card--accent-success {
  border-inline-start: 4px solid var(--status-success);
}

.metric-card--accent-info {
  border-inline-start: 4px solid #2563EB;
}

.metric-card--accent-emerald {
  border-inline-start: 4px solid var(--brand-emerald);
}

/* Scoped View Sub-Tabs (Calm Progressive Disclosure) */
.view-subtabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.view-subtabs::-webkit-scrollbar {
  display: none;
}

.view-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.view-subtab-btn:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.7);
}

.view-subtab-btn.active {
  background: #FFFFFF;
  color: var(--brand-emerald);
  border-color: var(--border);
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.view-subpane {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.view-subpane.active {
  display: flex;
  animation: fadeInSubpane 0.2s ease-out;
}

@keyframes fadeInSubpane {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Workspace Grids (replacing brittle inline minmax/fixed grids) */
.auth-policies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.circle-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.broadcast-fields-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.ledger-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.security-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Quiet Callout Banners */
.callout-banner {
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: #F8FAFC;
  color: var(--text-body);
}

.callout-banner--warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.callout-banner--info {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E3A8A;
}

/* Pagination Footer */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   REFERRAL & LOYALTY PROGRAM VIEW (#view-referrals)
   ========================================================================== */
.ref-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.ref-sim-box {
  background: #F9FCFA;
  border: 1px solid #D1FAE5;
  border-radius: 14px;
  padding: 20px;
}

.ref-sim-preview-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.ref-sim-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ref-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: #F8FAFC;
}

.ref-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.ref-status-pill.pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.ref-status-pill.rewarded {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.ref-status-pill.cancelled {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.ref-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--brand-emerald);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  direction: ltr;
}

.ref-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  background: #F1F5F9;
  color: var(--text-heading);
}

.ref-rank-badge.top-1 {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.ref-rank-badge.top-2 {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.ref-rank-badge.top-3 {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

/* ==========================================================================
   COMPLETED CIRCLES ARCHIVE & TIMELINE (#view-completed-circles)
   ========================================================================== */
.completed-duration-select {
  width: auto !important;
  min-width: 155px;
  min-height: 36px !important;
  padding: 6px 12px 6px 34px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

html[dir="ltr"] .completed-duration-select {
  padding: 6px 34px 6px 12px !important;
}

.completed-history-modal {
  max-width: 980px !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.completed-history-modal .circle-dossier-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.timing-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.timing-pill.is-early {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.timing-pill.is-ontime {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.timing-pill.is-late {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.timing-pill.is-neutral {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.completed-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.completed-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.completed-info-card h4 {
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-heading);
}

.completed-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #F1F5F9;
  font-size: 12.5px;
}

.completed-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.completed-info-row .info-lbl {
  color: var(--text-secondary);
  font-weight: 600;
}

.completed-info-row .info-val {
  color: var(--text-heading);
  font-weight: 800;
  text-align: end;
}

.completed-timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.completed-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-inline-start: 28px;
}

.completed-timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: #E2E8F0;
}

.completed-tl-item {
  position: relative;
}

.completed-tl-dot {
  position: absolute;
  inset-inline-start: -24px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #64748B;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px #CBD5E1;
}

.completed-tl-dot.tone-emerald {
  background: #059669;
  box-shadow: 0 0 0 1.5px #A7F3D0;
}

.completed-tl-dot.tone-gold {
  background: #D97706;
  box-shadow: 0 0 0 1.5px #FDE68A;
}

.completed-tl-dot.tone-info {
  background: #2563EB;
  box-shadow: 0 0 0 1.5px #BFDBFE;
}

.completed-tl-dot.tone-warning {
  background: #EA580C;
  box-shadow: 0 0 0 1.5px #FED7AA;
}

.completed-tl-dot.tone-danger {
  background: #DC2626;
  box-shadow: 0 0 0 1.5px #FECACA;
}

.completed-tl-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.15s ease;
}

.completed-tl-card:hover {
  border-color: #CBD5E1;
}

.completed-tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.completed-tl-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.completed-tl-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-heading);
}

.completed-tl-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  direction: ltr;
}

.completed-tl-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

.completed-tl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid #F8FAFC;
}

.completed-tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #F1F5F9;
  color: #334155;
}

.completed-tl-ref {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: var(--brand-emerald);
  direction: ltr;
}

/* ==========================================================================
   MOBILE DRAWER BACKDROP, HAMBURGER BUTTON & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.mobile-nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text-heading);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.mobile-nav-btn:hover {
  background: var(--bg-page);
  border-color: #CBD5E1;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 12, 8, 0.52);
  backdrop-filter: blur(2px);
  z-index: 95;
}

.sidebar-backdrop.active {
  display: block;
}

@media (max-width: 1024px) {
  .mobile-nav-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 280px;
    max-width: 84vw;
    height: 100vh;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html[dir="ltr"] .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open,
  html[dir="ltr"] .sidebar.open {
    transform: translateX(0);
  }

  .auth-policies-grid,
  .security-workspace-grid,
  .ref-settings-layout,
  .ledger-channels-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 14px 16px;
  }

  .topbar-title h1 {
    font-size: 16.5px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .content-area {
    padding: 16px;
    gap: 16px;
  }

  .calm-page-header {
    padding: 16px;
  }

  .circle-settings-grid,
  .broadcast-fields-grid,
  .completed-info-grid {
    grid-template-columns: 1fr;
  }

  .completed-history-modal {
    max-height: 94vh;
  }

  .view-subtabs {
    width: 100%;
  }

  .view-subtab-btn {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ========================================================================= */
/* 360° Subscriber Dossier & Control Workspace Styles                        */
/* ========================================================================= */

.user-dossier-modal {
  max-width: 1060px !important;
  width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(197, 155, 39, 0.24);
}

.user-dossier-header {
  padding: 20px 26px;
  gap: 16px;
}

.user-dossier-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.user-dossier-avatar {
  width: 48px;
  height: 48px;
  font-size: 19px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #FDE68A;
  border: 1.5px solid rgba(253, 230, 138, 0.6);
}

.user-dossier-head-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.user-dossier-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-dossier-title-row h2 {
  font-size: 17.5px;
  font-weight: 800;
  margin: 0;
  color: #FFFFFF;
}

.user-dossier-meta-row {
  font-size: 12px;
  color: #D7EBE2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-meta-mono {
  font-family: 'JetBrains Mono', monospace;
  direction: ltr;
  font-weight: 600;
  color: #FFFFFF;
}

.user-meta-ref {
  font-family: 'JetBrains Mono', monospace;
  color: #FDE68A;
  font-weight: 700;
}

.user-meta-dot {
  opacity: 0.45;
}

.user-dossier-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 26px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.user-dossier-kpi {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.user-dossier-kpi.is-emerald {
  border-inline-start: 3.5px solid var(--status-success);
}

.user-dossier-kpi.is-gold {
  border-inline-start: 3.5px solid var(--brand-gold);
}

.user-dossier-kpi.is-info {
  border-inline-start: 3.5px solid var(--status-info);
}

.user-dossier-kpi.is-slate {
  border-inline-start: 3.5px solid #64748B;
}

.user-dossier-kpi .hero-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.user-dossier-kpi .hero-val {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-heading);
}

/* Segmented Sovereign Pill Tab Bar with Horizontal Scroll & Chevron Controls */
.user-dossier-tabs-wrap {
  padding: 12px 26px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.user-dossier-tabs-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-tabs-scroll-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--brand-emerald);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.16s var(--ease-smooth), border-color 0.16s var(--ease-smooth), color 0.16s var(--ease-smooth), opacity 0.16s var(--ease-smooth);
}

.user-dossier-tabs-shell.has-overflow .user-tabs-scroll-btn {
  display: inline-flex;
}

.user-tabs-scroll-btn:hover:not(:disabled) {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #FFFFFF;
}

.user-tabs-scroll-btn:disabled {
  opacity: 0.36;
  cursor: default;
  background: #F8FAFC;
  color: var(--text-muted);
  box-shadow: none;
}

html[dir="ltr"] .user-tabs-scroll-btn svg {
  transform: rotate(180deg);
}

.user-dossier-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 8px;
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 40, 30, 0.35) #E2E8F0;
}

.user-dossier-tabs::-webkit-scrollbar {
  height: 7px;
}

.user-dossier-tabs::-webkit-scrollbar-track {
  background: #E2E8F0;
  border-radius: 999px;
}

.user-dossier-tabs::-webkit-scrollbar-thumb {
  background: rgba(8, 40, 30, 0.32);
  border-radius: 999px;
  border: 1px solid #E2E8F0;
}

.user-dossier-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--brand-emerald);
}

.user-dossier-tabs .user-modal-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: all 0.16s var(--ease-smooth);
}

.user-dossier-tabs .user-modal-tab:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.7);
}

.user-dossier-tabs .user-modal-tab.active {
  background: #FFFFFF;
  color: var(--brand-emerald);
  border-color: var(--border);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.user-dossier-tabs .user-modal-tab.active svg {
  color: var(--brand-emerald);
}

/* Dossier Body & Sections */
.user-dossier-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
  background: var(--bg-canvas);
}

.user-dossier-loading {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-secondary);
}

.user-dossier-loading .spinner {
  margin: 0 auto 14px;
}

.user-dossier-loading p {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
}

.user-dossier-section {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.user-section-spaced {
  margin-top: 16px;
}

.user-dossier-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.user-dossier-section-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-dossier-section-head h4::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: var(--brand-emerald);
  flex-shrink: 0;
}

.user-section-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Vertical Field System (Fixes .setting-row flex collision) */
.user-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.user-two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.user-form-row-gap {
  margin-top: 14px;
}

.user-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.user-field--full {
  grid-column: 1 / -1;
}

.user-field-spaced {
  margin-top: 14px;
}

.user-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.35;
}

.user-dossier-body .form-input {
  width: 100%;
  height: 42px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary) !important;
  background-color: #FAFBFB !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.user-dossier-body .form-input:hover {
  border-color: #94A3B8 !important;
  background-color: #FFFFFF !important;
}

.user-dossier-body .form-input:focus {
  outline: none;
  border-color: var(--brand-emerald) !important;
  box-shadow: 0 0 0 3px rgba(8, 40, 30, 0.10) !important;
  background-color: #FFFFFF !important;
}

.user-dossier-body textarea.form-input,
.user-textarea {
  height: auto !important;
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

.user-input-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

.user-input-bold {
  font-weight: 700 !important;
}

.user-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-input-group .form-input {
  flex: 1;
  min-width: 0;
}

.user-nowrap-btn {
  height: 42px;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.user-btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  height: 42px;
}

.user-checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.user-checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-emerald);
  cursor: pointer;
}

.user-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-status-banner {
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  margin: 12px 0;
  background: #F8FAFC;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.user-status-banner.is-success {
  background: var(--status-success-bg);
  color: #065F46;
  border-color: var(--status-success-border);
}

.user-status-banner.is-error {
  background: var(--status-danger-bg);
  color: #B91C1C;
  border-color: var(--status-danger-border);
}

.user-status-banner.is-info {
  background: var(--status-info-bg);
  color: #1E40AF;
  border-color: var(--status-info-border);
}

/* KYC Header & Cohesive Action Buttons */
.user-kyc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.user-kyc-overline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.user-kyc-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-kyc-notice {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.user-kyc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-kyc-rejection-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.user-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  min-height: 40px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s var(--ease-smooth);
}

.user-action-btn.is-approve {
  background: var(--status-success);
  color: #FFFFFF;
}

.user-action-btn.is-approve:hover {
  background: #065F46;
}

.user-action-btn.is-reject,
.user-action-btn.is-ban {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.user-action-btn.is-reject:hover,
.user-action-btn.is-ban:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.user-action-btn.is-unban {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.user-action-btn.is-unban:hover {
  background: #D1FAE5;
}

.user-action-btn.is-gold {
  background: var(--brand-gold-tint);
  color: #92400E;
  border-color: #F7DE9B;
}

.user-action-btn.is-gold:hover {
  background: #FEF3C7;
}

.user-action-btn.is-neutral {
  background: #FFFFFF;
  color: var(--text-body);
  border-color: var(--border-strong);
  height: 42px;
}

.user-action-btn.is-neutral:hover {
  background: #F1F5F9;
}

/* Protected Documents Grid (Frosted Studio Thumbnails — Never Harsh Pitch-Black) */
.user-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.user-doc-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-doc-card:hover {
  border-color: var(--brand-emerald);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.user-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-heading);
}

.user-doc-thumb {
  height: 164px;
  padding: 10px;
  background: linear-gradient(180deg, #F1F5F7 0%, #E7EEF0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.user-doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.25s var(--ease-smooth);
}

.user-doc-card:hover .user-doc-thumb img {
  transform: scale(1.03);
}

.user-doc-thumb-spin {
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
}

.user-doc-thumb-err {
  color: var(--status-danger);
  font-size: 11.5px;
  font-weight: 700;
}

.user-doc-empty {
  height: 164px;
  background: var(--bg-surface-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.user-doc-pdf-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #991B1B;
  background: #FFFFFF;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 800;
}

.user-doc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.user-doc-zoom-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 7px;
}

/* Semantic Subcards (Addresses, Payouts, Goals, Gateway, Notifications, Audit Logs) */
.user-subcard-item {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-subcard-item--referred {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.user-subcard-empty {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.user-subcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.user-subcard-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-heading);
}

.user-subcard-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.user-subcard-body {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.5;
}

.user-subcard-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-body);
  direction: ltr;
  width: fit-content;
}

.user-subcard-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Circles & Payment Behavior inside Dossier */
.user-circles-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.user-mini-kpi {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--brand-emerald);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.user-mini-kpi:nth-child(2) {
  border-inline-start-color: var(--status-success);
}

.user-mini-kpi:nth-child(3) {
  border-inline-start-color: var(--status-info);
}

.user-mini-kpi:nth-child(4) {
  border-inline-start-color: var(--brand-gold);
}

.user-mini-kpi .lbl {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
}

.user-mini-kpi .val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
}

.user-mini-kpi .sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.user-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-method-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.user-method-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.user-method-bar-bg {
  height: 7px;
  width: 100%;
  border-radius: 999px;
  background: #E2EAE6;
  overflow: hidden;
}

.user-method-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-emerald) 0%, #0D8259 100%);
}

.user-circle-card {
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--brand-gold);
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.user-circle-card.is-completed {
  border-inline-start-color: var(--status-success);
}

.user-circle-card.is-active {
  border-inline-start-color: var(--status-info);
}

.user-circle-card.is-rejected {
  border-inline-start-color: var(--status-danger);
}

.user-circle-card:hover {
  box-shadow: var(--shadow-sm);
}

.user-circle-head {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-surface-subtle);
}

.user-circle-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-circle-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-circle-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-heading);
}

.user-circle-sub-row {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-circle-progress {
  font-weight: 800;
  color: var(--status-success);
}

.user-circle-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-circle-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.user-circle-chevron {
  transition: transform 0.2s ease;
}

.user-circle-card.expanded .user-circle-chevron {
  transform: rotate(180deg);
}

.user-circle-body {
  padding: 16px 18px;
  display: none;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.user-circle-card.expanded .user-circle-body {
  display: block;
}

/* Wallet Sovereign Card & Security Panel */
.user-wallet-banner {
  background: linear-gradient(135deg, #07261C 0%, #0E3E2E 100%);
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(4, 22, 16, 0.12);
}

.user-wallet-banner span {
  font-size: 12.5px;
  font-weight: 700;
  color: #D1FAE5;
}

.user-wallet-banner strong {
  font-size: 22px;
  font-weight: 900;
  color: #FDE68A;
}

.user-wallet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.user-security-metrics {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.user-security-divider {
  border-top: 1px dashed var(--border-strong);
  margin: 18px 0;
}

.user-dossier-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Lightbox Overlay Above Dossier Modal */
.doc-preview-overlay {
  z-index: 1200;
}

.doc-preview-modal {
  max-width: 860px;
  width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

.doc-preview-header {
  padding: 16px 22px;
}

.doc-preview-title-group h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.doc-preview-sub {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #A7F3D0;
}

.doc-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-preview-open-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  padding: 6px 13px;
  font-weight: 700;
  border-radius: 8px;
}

.doc-preview-open-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.doc-preview-stage {
  background: radial-gradient(circle at center, #0F231C 0%, #06120E 100%);
  min-height: 380px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-preview-loading {
  color: #E2E8F0;
  font-size: 13px;
  font-weight: 700;
}

.doc-preview-img {
  min-width: min(320px, 100%);
  min-height: 240px;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

.doc-preview-frame {
  width: 100%;
  height: 74vh;
  border: none;
  border-radius: 10px;
  background: #FFFFFF;
}

.doc-preview-error {
  color: #FCA5A5;
  font-size: 13px;
  font-weight: 700;
  padding: 20px;
}

@media (max-width: 1024px) {
  .users-kpis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-filter-field--wide {
    grid-column: span 2;
  }
}

@media (max-width: 960px) {

  .user-form-grid-3,
  .user-docs-grid,
  .user-two-col-grid,
  .user-dossier-hero,
  .user-circles-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .users-kpis-grid,
  .users-filters-grid,
  .user-form-grid-3,
  .user-docs-grid,
  .user-two-col-grid,
  .user-dossier-hero,
  .user-circles-kpi-grid {
    grid-template-columns: 1fr;
  }

  .users-filter-field--wide {
    grid-column: span 1;
  }

  .user-kyc-rejection-row {
    grid-template-columns: 1fr;
  }

  .user-dossier-modal {
    max-height: 94vh;
    width: 98vw;
  }

  .user-dossier-tabs-wrap,
  .user-dossier-hero,
  .user-dossier-body,
  .user-dossier-header {
    padding-inline: 16px;
  }

  .user-tabs-scroll-btn {
    width: 30px;
    height: 34px;
  }
}





/* ========================================================================= */
/* Operational Oversight, Collections & 30/60/90 Forecast (#view-collections-ops) */
/* ========================================================================= */

.metric-card--accent-danger {
  border-inline-start: 4px solid #DC2626;
}

.metric-card--accent-blue {
  border-inline-start: 4px solid #2563EB;
}

.callout-banner--danger {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.callout-banner--success {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ops-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ops-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.ops-kpi-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}

.ops-kpi-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ops-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #E2E8F0;
  color: #334155;
}

.ops-subtab-count.is-warn {
  background: #FEF3C7;
  color: #B45309;
}

.ops-subtab-count.is-danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.ops-subtab-count.is-emerald {
  background: #ECFDF5;
  color: #065F46;
}

.ops-card {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
}

.ops-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
}

.ops-search-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 460px;
  justify-content: flex-end;
}

.ops-search-input {
  width: auto !important;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 340px;
  height: 36px;
  font-size: 12.5px;
}

.ops-select {
  width: auto !important;
  flex: 0 0 auto;
  height: 36px;
  font-size: 12.5px;
  min-width: 175px;
  max-width: 230px;
}

.ops-search-actions .btn {
  height: 36px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.ops-date-mono {
  font-family: 'JetBrains Mono', monospace;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  display: inline-block;
}

.ops-banner-inset {
  margin: 14px 20px 6px;
}

.ops-summary-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 20px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.ops-dot-sep {
  color: #CBD5E1;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
}

.ops-table th {
  text-align: start;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.ops-table td {
  padding: 13px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.ops-table--compact th,
.ops-table--compact td {
  padding: 10px 12px;
  font-size: 12px;
}

.ops-th-actions {
  text-align: center !important;
}

.ops-empty-cell {
  text-align: center;
  padding: 36px 20px !important;
  color: var(--text-secondary);
  font-weight: 600;
}

.ops-user-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ops-user-link {
  background: none;
  border: none;
  padding: 0;
  text-align: start;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-emerald);
  cursor: pointer;
  text-decoration: none;
}

.ops-user-link:hover {
  text-decoration: underline;
  color: var(--brand-emerald-deep);
}

.ops-user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-secondary);
}

.ops-ref-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  max-width: 280px;
}

.ops-ref-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #0C3B2E;
  direction: ltr;
  unicode-bidi: plaintext;
  overflow-wrap: break-word;
  line-height: 1.45;
}

.ops-copy-btn {
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

.ops-copy-btn:hover {
  background: var(--brand-emerald);
  color: #FFFFFF;
  border-color: var(--brand-emerald);
}

.ops-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ops-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-pill.is-low {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.ops-pill.is-medium {
  background: #FFEDD5;
  color: #C2410C;
  border: 1px solid #FDBA74;
}

.ops-pill.is-critical {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.ops-pill.is-emerald {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.ops-pill.is-blue {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.ops-pill.is-neutral {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

/* Forecast Subpane Layout */
.ops-forecast-topbar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-horizon-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-horizon-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-heading);
}

.ops-horizon-group {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  gap: 4px;
}

.ops-horizon-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ops-horizon-btn.active {
  background: var(--brand-emerald);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.ops-window-range {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  direction: ltr;
}

.ops-horizon-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-forecast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

.ops-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
}

.ops-card-head p {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.ops-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.ops-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ops-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.ops-legend-dot.is-in {
  background: #0D6E52;
}

.ops-legend-dot.is-out {
  background: #C59B27;
}

.ops-bars-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  padding: 20px 20px 8px;
  align-items: end;
}

.ops-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 10px 10px;
}

.ops-bar-track-pair {
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-bottom: 1px solid #CBD5E1;
  padding-bottom: 4px;
}

.ops-bar {
  width: 20px;
  border-radius: 5px 5px 2px 2px;
  min-height: 4px;
  transition: height 0.25s ease;
}

.ops-bar.is-in {
  background: #0D6E52;
}

.ops-bar.is-out {
  background: #C59B27;
}

.ops-bar-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-heading);
  text-align: center;
}

.ops-bar-values {
  font-size: 10.5px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
}

.ops-breakdown-list {
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ops-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 12.5px;
}

.ops-breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ops-breakdown-row .lbl {
  color: var(--text-secondary);
  font-weight: 600;
}

.ops-breakdown-row .val {
  color: var(--text-heading);
  font-weight: 800;
}

.ops-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}

.ops-progress-bar {
  height: 6px;
  width: 100%;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.ops-progress-fill {
  height: 100%;
  background: var(--brand-emerald);
  border-radius: 999px;
}

/* Compact Operational Modals */
.ops-compact-modal {
  max-width: 500px;
  width: 94vw;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #FFFFFF;
}

.ops-modal-head {
  background: var(--brand-emerald);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-modal-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
}

.ops-modal-head p {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #D1FAE5;
}

.ops-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ops-modal-foot {
  padding: 14px 20px;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1100px) {
  .ops-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-forecast-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ops-kpi-grid {
    grid-template-columns: 1fr;
  }

  .ops-search-actions {
    flex: 1 1 100%;
    justify-content: stretch;
  }

  .ops-search-input,
  .ops-select {
    width: 100% !important;
    max-width: none;
    flex: 1 1 100%;
    min-width: 0;
  }

  .ops-toolbar,
  .ops-forecast-topbar {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   PRIVATE CIRCLES CALM FINTECH WORKSPACE
   ========================================================================== */
.prv-toolbar-select {
  min-width: 175px;
  max-width: 220px;
}

.prv-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 105px;
}

.prv-progress-bar {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.prv-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-emerald);
  transition: width 0.25s ease;
}

.prv-progress-fill.is-gold {
  background: var(--brand-gold);
}

.prv-uniform-pair {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prv-uniform-pair .form-input {
  flex: 1 1 110px;
  min-width: 90px;
}

.prv-fee-mode-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}

.prv-fee-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.prv-fee-mode-btn:hover {
  color: var(--text-heading);
}

.prv-fee-mode-btn.active {
  background: #FFFFFF;
  color: var(--brand-emerald);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.prv-fee-mode-hint {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.prv-slot-rates-card {
  animation: fadeInSubpane 0.2s ease-out;
}

.prv-dur-tabs {
  margin-bottom: 16px;
}

.prv-dur-pane {
  display: none;
}

.prv-dur-pane.active {
  display: block;
  animation: fadeInSubpane 0.18s ease-out;
}

.prv-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
}

.prv-slot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.prv-slot-card:focus-within {
  border-color: var(--brand-emerald);
  background: #FFFFFF;
}

.prv-slot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-heading);
}

.prv-slot-card-unit {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.prv-slot-rate-input {
  text-align: center;
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Outfit', monospace;
  padding: 8px 10px !important;
}

.prv-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.prv-detail-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.prv-detail-kpi {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.prv-detail-kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.prv-detail-kpi-val {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-heading);
}

.prv-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
}

.prv-log-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
  line-height: 1.5;
}

.prv-log-item:last-child {
  border-bottom: none;
}

.prv-log-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.prv-payout-banner {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 14px;
}