/* ==========================================================
   SUPER ADMIN DASHBOARD STYLESHEET
   Owner & HR Director Controls, Analytics, Orders Queue,
   Users CMS, Plans & Pricing, Settings
   ========================================================== */

.admin-top-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.admin-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.35rem 0;
  letter-spacing: -0.01em;
}

.admin-page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.admin-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================
   KPI STATS CARDS
   ========================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrap.revenue {
  background: rgba(16, 185, 129, 0.15);
  color: var(--tx-emerald);
}

.kpi-icon-wrap.users {
  background: rgba(59, 130, 246, 0.15);
  color: var(--tx-primary);
}

.kpi-icon-wrap.orders {
  background: rgba(245, 158, 11, 0.15);
  color: var(--tx-gold);
}

.kpi-icon-wrap.scans {
  background: rgba(99, 102, 241, 0.15);
  color: var(--tx-indigo);
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.kpi-growth {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.kpi-growth i {
  width: 14px;
  height: 14px;
}

/* ==========================================================
   CHARTS GRID
   ========================================================== */
.admin-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.chart-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-legend-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dot-legend {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.bg-primary { background: var(--primary); }
.bg-gold { background: var(--accent-gold); }

.chart-canvas-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}

/* ==========================================================
   TABLES & CARDS
   ========================================================== */
.admin-two-cols-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-title-sm {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.86rem;
}

.admin-table th {
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-badge.new {
  background: rgba(245, 158, 11, 0.15);
  color: var(--tx-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.in_progress {
  background: rgba(59, 130, 246, 0.15);
  color: var(--tx-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--tx-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.frozen {
  background: rgba(239, 68, 68, 0.15);
  color: var(--tx-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--tx-emerald);
}

/* Urgent Queue Mini Cards */
.urgent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.urgent-order-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.urgent-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.urgent-item-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.urgent-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================
   FILTER BARS
   ========================================================== */
.admin-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.search-input-wrap {
  position: relative;
  min-width: min(280px, 100%);
}

.search-input-wrap i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  right: 12px;
}

[dir="ltr"] .search-input-wrap i {
  right: auto;
  left: 12px;
}

.search-input-wrap .form-input {
  padding-inline-start: 1rem;
  padding-inline-end: 2.2rem;
}

[dir="ltr"] .search-input-wrap .form-input {
  padding-inline-start: 2.2rem;
  padding-inline-end: 1rem;
}

/* ==========================================================
   PLANS & PRICING CMS
   ========================================================== */
.admin-section-block {
  margin-bottom: 2.5rem;
}

.admin-sec-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-plans-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.admin-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================
   TEMPLATES & CONTENT CMS
   ========================================================== */
.templates-management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.template-cms-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.template-cms-preview {
  height: 140px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.template-cms-body {
  padding: 1.25rem;
}

.template-cms-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.template-cms-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================
   SYSTEM SETTINGS
   ========================================================== */
.settings-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.settings-card-header i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.settings-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.settings-card-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Admin Grid */
@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-charts-grid, .admin-two-cols-split, .settings-sections-grid, .admin-plans-editor-grid, .templates-management-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================
   ADMIN LOGIN MODAL - SECRET OWNER ACCESS
   ========================================================== */
#modalAdminLogin {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(8, 12, 22, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  align-items: center !important;
  justify-content: center !important;
}

#modalAdminLogin.hidden {
  display: none !important;
}

.admin-login-modal {
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.2), var(--shadow-lg) !important;
  overflow: hidden;
  max-width: 440px !important;
  margin: auto;
  position: relative;
  z-index: 1000000;
}

.admin-login-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.admin-login-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
}

.admin-shield-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.15rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #d97706, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45), 0 0 60px rgba(245, 158, 11, 0.15);
  animation: shieldPulse 3s ease-in-out infinite;
  position: relative;
}

.admin-shield-icon i {
  width: 36px;
  height: 36px;
  color: #111827;
}

@keyframes shieldPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.45), 0 0 60px rgba(245, 158, 11, 0.15); }
  50% { box-shadow: 0 0 36px rgba(245, 158, 11, 0.7), 0 0 80px rgba(245, 158, 11, 0.25); }
}

.admin-login-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--tx-gold);
  margin-bottom: 0.4rem;
  position: relative;
}

.admin-login-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.6;
  position: relative;
}

.admin-login-body {
  padding: 1.75rem 2rem 2rem;
  background: var(--bg-surface);
}

.admin-pass-input {
  letter-spacing: 0.1em;
  font-size: 1.1rem !important;
}

.admin-login-attempts {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tx-danger);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.admin-login-attempts i {
  width: 15px;
  height: 15px;
}

.admin-login-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.admin-login-secure-note i {
  width: 13px;
  height: 13px;
  color: var(--tx-emerald);
}

/* Secret click-counter indicator (tiny dot on logo) */
.admin-secret-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  top: 2px;
  left: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.admin-secret-dot.lit {
  opacity: 1;
  box-shadow: 0 0 4px var(--accent-gold);
}

/* ==========================================================
   OWNER & HR PROFILE MANAGEMENT STYLES
   ========================================================== */
.owner-chip-trigger {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.owner-chip-trigger:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.owner-edit-hint {
  display: flex;
  align-items: center;
  color: var(--tx-gold);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.owner-chip-trigger:hover .owner-edit-hint {
  opacity: 1;
}

.owner-edit-hint i {
  width: 14px;
  height: 14px;
}

.owner-profile-settings-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(245, 158, 11, 0.03) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.owner-avatar-control-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.owner-avatar-preview-box {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b, #2563eb);
  flex-shrink: 0;
}

.owner-big-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-card);
  display: block;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.owner-avatar-preview-box:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-overlay i {
  width: 28px;
  height: 28px;
}

.owner-avatar-inputs-col {
  flex: 1;
  min-width: min(260px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.avatar-presets-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.presets-gallery {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.preset-avatar-chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--border-subtle);
  transition: all 0.2s ease;
  background: var(--bg-surface);
}

.preset-avatar-chip:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

.preset-avatar-chip.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  transform: scale(1.08);
}

.btn-upload-trigger {
  cursor: pointer;
  margin: 0;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   EGYPTIAN PAYMENT GATEWAYS & CANDIDATE MANAGEMENT
   ========================================================== */
.payment-overview-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.overview-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: min(280px, 100%);
}

.overview-info i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.current-fee-pill {
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.current-fee-pill strong {
  color: var(--tx-gold);
  font-size: 1.05rem;
  font-weight: 800;
}

.payment-method-settings-card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-settings-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.payment-card-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-card-badge-icon.vodafone-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--tx-danger);
}

.payment-card-badge-icon.instapay-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--tx-purple);
}

.payment-card-badge-icon.bank-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--tx-emerald);
}

.payment-card-badge-icon.fee-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--tx-gold);
}

.vodafone-card-theme {
  border-top: 3px solid #ef4444;
}

.instapay-card-theme {
  border-top: 3px solid #8b5cf6;
}

.bank-card-theme {
  border-top: 3px solid #10b981;
}

.general-card-theme {
  border-top: 3px solid #f59e0b;
}

/* Live Preview Box in Admin */
.live-preview-box-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}

.preview-method-tabs {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.preview-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.preview-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.live-preview-box {
  background: var(--bg-surface);
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tx-gold);
  text-transform: uppercase;
}

.preview-cash-highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tx-gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 1px;
}

.preview-meta-row {
  font-size: 0.88rem;
  color: var(--text-body);
}

.preview-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  font-size: 0.88rem;
}

.preview-instructions-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Candidate Table Enhancements */
.user-row-profile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-main-name {
  font-size: 0.95rem;
  color: var(--text-heading);
}

.user-job-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.user-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-email-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-phone-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-phone-text {
  font-size: 0.82rem;
  color: var(--text-body);
}

.btn-whatsapp-chat {
  background: #15803d;
  color: #ffffff !important;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-whatsapp-chat:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-whatsapp-chat i {
  width: 12px;
  height: 12px;
}

.tier-amount-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.amount-paid-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tx-emerald);
}

.payment-gateway-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--tx-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
}

.count-metric-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}

/* Cloud Sync Status Badge */
.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cloud-status-badge.status-local {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.cloud-status-badge.status-connected {
  background: rgba(16, 185, 129, 0.12);
  color: var(--tx-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cloud-status-badge.status-syncing {
  background: rgba(245, 158, 11, 0.12);
  color: var(--tx-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cloud-status-badge.status-error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.dot-green {
  background: #047857;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.status-dot.dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.status-dot.dot-red {
  background: #dc2626;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.status-dot.dot-gray {
  background: #94a3b8;
}

.status-dot.spin {
  animation: pulse-dot 1.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================
   Pending Subscriptions & Receipt Verification Styles
   ========================================================== */
.row-pending-highlight {
  background: rgba(245, 158, 11, 0.06);
}

.row-pending-highlight:hover {
  background: rgba(245, 158, 11, 0.1) !important;
}

.pending-users-alert {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.receipt-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.15rem;
  font-size: 0.84rem;
}

.receipt-image-container {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  max-height: 480px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


/* ==========================================================
   COMPLETE RESTRUCTURE & PREMIUM REDESIGN FOR ADMIN DASHBOARD
   ========================================================== */

/* 1. Header & Navigation Refinement */
.admin-header-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.admin-header-tabs::-webkit-scrollbar {
  display: none !important;
}
.subnav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
}
.subnav-link:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: var(--text-main) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.subnav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2)) !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  color: var(--text-main) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25) !important;
}
.badge-counter {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 10px !important;
  background: #dc2626 !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
  margin-inline-start: 0.35rem !important;
}

/* ==========================================================
   ADMIN HAMBURGER MENU & SIDE NAVIGATION DRAWER (OFF-CANVAS)
   ========================================================== */
.admin-drawer-trigger {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-main) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  margin-inline-end: 0.75rem !important;
  position: relative !important;
}

.admin-drawer-trigger:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: var(--tx-gold) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .admin-drawer-trigger {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .admin-drawer-trigger:hover {
  background: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
}

.admin-drawer-trigger i,
.admin-drawer-trigger svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.2px !important;
}

.admin-header-center-bar {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex: 1 !important;
  justify-content: center !important;
}

.admin-quick-menu-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08)) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: var(--tx-gold) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.admin-quick-menu-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.2)) !important;
  border-color: #f59e0b !important;
  color: var(--text-main) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3) !important;
}

[data-theme="light"] .admin-quick-menu-btn {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
  color: #b45309 !important;
}

.admin-view-breadcrumb {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.48rem 1rem !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
}

.admin-view-breadcrumb i,
.admin-view-breadcrumb svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--tx-gold) !important;
}

[data-theme="light"] .admin-view-breadcrumb {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: var(--text-muted) !important;
}

/* Side Drawer Overlay Backdrop */
.admin-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(10, 15, 28, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.28s ease !important;
}

.admin-drawer-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Side Drawer Panel */
.admin-side-drawer {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 380px !important;
  max-width: 90vw !important;
  background: rgba(15, 23, 42, 0.98) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.75) !important;
}

.admin-side-drawer.open {
  transform: translateX(0) !important;
}

[dir="ltr"] .admin-side-drawer,
body[dir="ltr"] .admin-side-drawer {
  right: auto !important;
  left: 0 !important;
  border-left: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  transform: translateX(-100%) !important;
}

[dir="ltr"] .admin-side-drawer.open,
body[dir="ltr"] .admin-side-drawer.open {
  transform: translateX(0) !important;
}

[data-theme="light"] .admin-side-drawer {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.15) !important;
}

/* Drawer Header */
.admin-drawer-header {
  padding: 1.15rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .admin-drawer-header {
  border-bottom-color: #f1f5f9 !important;
}

.admin-drawer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.admin-drawer-logo-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #111827 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
  flex-shrink: 0 !important;
}

.admin-drawer-logo-icon i,
.admin-drawer-logo-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.admin-drawer-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.25 !important;
}

.admin-drawer-brand-text strong {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--text-color, #ffffff) !important;
}

[data-theme="light"] .admin-drawer-brand-text strong {
  color: #0f172a !important;
}

.admin-drawer-brand-text span {
  font-size: 0.72rem !important;
  color: var(--tx-gold) !important;
  font-weight: 600 !important;
}

.admin-drawer-close-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.admin-drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: var(--tx-danger) !important;
  transform: rotate(90deg) !important;
}

[data-theme="light"] .admin-drawer-close-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: var(--text-muted) !important;
}

/* User Card in Drawer */
.admin-drawer-user-card {
  padding: 0.95rem 1.25rem !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.03)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

[data-theme="light"] .admin-drawer-user-card {
  background: #f8fafc !important;
  border-bottom-color: #f1f5f9 !important;
}

.admin-drawer-user-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3) !important;
  flex-shrink: 0 !important;
}

.admin-drawer-user-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.admin-drawer-user-meta strong {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
}

[data-theme="light"] .admin-drawer-user-meta strong {
  color: #0f172a !important;
}

.admin-drawer-user-meta span {
  font-size: 0.72rem !important;
  color: var(--tx-gold) !important;
  font-weight: 600 !important;
}

/* Scrollable Navigation Body */
.admin-drawer-nav {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 0.75rem 0.9rem 3.5rem !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}

.admin-drawer-nav::-webkit-scrollbar {
  width: 5px !important;
}

.admin-drawer-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
}

/* Category Title */
.admin-drawer-category-title {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: var(--tx-gold) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.9rem 0.75rem 0.35rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

[data-theme="light"] .admin-drawer-category-title {
  color: #b45309 !important;
}

/* Nav Item Button */
.admin-drawer-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.7rem 0.85rem !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-color, #e5e7eb) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  text-align: right !important;
  transition: all 0.18s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.admin-drawer-item:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--text-main) !important;
  transform: translateX(-3px) !important;
}

[data-theme="light"] .admin-drawer-item {
  color: #334155 !important;
}

[data-theme="light"] .admin-drawer-item:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

.admin-drawer-item.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.12)) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: var(--tx-gold) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15) !important;
}

.admin-drawer-item-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted) !important;
  flex-shrink: 0 !important;
  transition: all 0.18s ease !important;
}

.admin-drawer-item:hover .admin-drawer-item-icon {
  background: rgba(245, 158, 11, 0.2) !important;
  color: var(--tx-gold) !important;
}

.admin-drawer-item.active .admin-drawer-item-icon {
  background: #f59e0b !important;
  color: #111827 !important;
}

.admin-drawer-item-icon i,
.admin-drawer-item-icon svg {
  width: 17px !important;
  height: 17px !important;
}

.admin-drawer-item-text {
  flex: 1 !important;
  text-align: right !important;
  line-height: 1.3 !important;
}

/* Drawer Footer */
.admin-drawer-footer {
  padding: 1rem 1.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  background: rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .admin-drawer-footer {
  background: #f8fafc !important;
  border-top-color: #e2e8f0 !important;
}

/* 2. Top Banner & Filter Bar */
.admin-top-banner {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.85)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1rem !important;
  padding: 1.5rem 2rem !important;
  margin-bottom: 1.75rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1.5rem !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  flex-wrap: wrap !important;
}
.admin-filter-bar {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}
.search-input-wrap {
  position: relative !important;
  min-width: min(280px, 100%) !important;
}
.search-input-wrap i {
  position: absolute !important;
  right: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--text-muted) !important;
  pointer-events: none !important;
}
.search-input-wrap .form-input {
  width: 100% !important;
  padding: 0.65rem 2.75rem 0.65rem 1rem !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
  color: #fff !important;
  font-size: 0.88rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.search-input-wrap .form-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  outline: none !important;
}
.orders-filter-chips {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: rgba(15, 23, 42, 0.85) !important;
  padding: 0.3rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.filter-chip {
  padding: 0.45rem 1rem !important;
  border-radius: 9999px !important;
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}
.filter-chip:hover {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.filter-chip.active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4) !important;
}

/* 3. Data Table High-End Redesign */
.admin-table-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3) !important;
}
.data-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  text-align: right !important;
  direction: rtl !important;
  font-size: 0.9rem !important;
}
.data-table thead th {
  background: rgba(30, 41, 59, 0.6) !important;
  color: var(--text-muted) !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  padding: 1.1rem 1.25rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}
.data-table tbody tr {
  transition: background 0.15s ease !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.data-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05) !important;
}
.data-table tbody td {
  padding: 1.15rem 1.25rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Row Highlight for New Orders */
.row-highlight-new {
  background: rgba(245, 158, 11, 0.03) !important;
  border-right: 3px solid #f59e0b !important;
}

/* Order ID Badge */
.order-code-badge {
  display: inline-block !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-soft) !important;
  padding: 0.3rem 0.65rem !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}
.order-code-badge:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: #6366f1 !important;
  color: var(--text-main) !important;
}

/* Client Info Cell */
.client-info-cell {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}
.client-avatar-badge {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
  text-transform: uppercase !important;
}
.client-text-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}
.client-name {
  font-weight: 800 !important;
  font-size: 0.96rem !important;
  color: var(--text-main) !important;
}
.client-email {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  direction: ltr !important;
  text-align: right !important;
}
.client-email i {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}
.client-phone {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: 0.15rem !important;
}
.phone-link {
  font-size: 0.78rem !important;
  color: var(--text-soft) !important;
  text-decoration: none !important;
  direction: ltr !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}
.phone-link:hover {
  color: var(--tx-cyan) !important;
}
.whatsapp-btn-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: var(--tx-emerald) !important;
  padding: 0.15rem 0.45rem !important;
  border-radius: 9999px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.15s !important;
}
.whatsapp-btn-chip:hover {
  background: rgba(34, 197, 94, 0.3) !important;
  color: var(--text-main) !important;
}
.whatsapp-btn-chip i {
  width: 12px !important;
  height: 12px !important;
}

/* Job & Exp */
.job-tag-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: rgba(14, 165, 233, 0.12) !important;
  color: var(--tx-cyan) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
}
.job-tag-badge i {
  width: 13px !important;
  height: 13px !important;
}
.exp-hint-text {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.25rem !important;
}

/* Payment & Amount */
.payment-amount-badge {
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  color: var(--tx-emerald) !important;
}
.payment-method-hint {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.2rem !important;
}

/* Date */
.date-badge {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}
.date-badge i {
  width: 13px !important;
  height: 13px !important;
}

/* Status Badges */
.badge-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 9999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
.badge-new {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: var(--tx-gold) !important;
}
.badge-completed {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: var(--tx-emerald) !important;
}
.badge-progress {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: var(--tx-primary) !important;
}
.dot-pulse {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #fbbf24 !important;
  box-shadow: 0 0 8px #fbbf24 !important;
  animation: pulse-dot 1.8s infinite !important;
}
.dot-pulse.blue {
  background: #60a5fa !important;
  box-shadow: 0 0 8px #60a5fa !important;
}

/* Action Buttons in Table */
.table-actions-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}
.btn-action-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.btn-action-pill i {
  width: 14px !important;
  height: 14px !important;
}
.btn-receipt {
  background: rgba(168, 85, 247, 0.15) !important;
  color: var(--tx-purple) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
}
.btn-receipt:hover {
  background: #9333ea !important;
  color: #fff !important;
  border-color: #9333ea !important;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.35) !important;
}
.btn-quick-approve {
  background: linear-gradient(135deg, #047857, #065f46) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35) !important;
}
.btn-quick-approve:hover {
  background: linear-gradient(135deg, #065f46, #047857) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px) !important;
}
.btn-inspect {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-soft) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.btn-inspect:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--text-main) !important;
}
.btn-quick-reject {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--tx-danger) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.btn-quick-reject:hover {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}
.btn-delete-order {
  background: rgba(239, 68, 68, 0.1) !important;
  color: var(--tx-danger) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}
.btn-delete-order:hover {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}
.badge-rejected {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: var(--tx-danger) !important;
}

/* ==========================================================
   RESPONSIVE: tablet (<=1024px) & mobile (<=640px)
   ========================================================== */
@media (max-width: 1024px) {
  .admin-plans-editor-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
  .settings-sections-grid { grid-template-columns: 1fr; }
  .admin-banner-actions { flex-wrap: wrap; }
  .admin-top-banner { padding: 1.25rem !important; }
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)) !important; }
}

@media (max-width: 640px) {
  .admin-top-banner,
  .payment-overview-banner { flex-direction: column; align-items: stretch !important; padding: 1rem !important; }
  .admin-banner-actions { width: 100%; }
  .admin-banner-actions > * { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .admin-page-title { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
  .admin-filter-bar { flex-direction: column; align-items: stretch !important; }
  .admin-filter-bar > * { width: 100%; min-width: 0 !important; max-width: 100%; }
  .search-input-wrap { min-width: 0 !important; width: 100%; }
  .filter-pills,
  .orders-filter-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .filter-pill, .filter-chip { flex: 0 0 auto; }
  .overview-info { min-width: 0; flex-direction: column; text-align: center; }
  .admin-plans-editor-grid,
  .settings-sections-grid,
  .kpi-grid { grid-template-columns: 1fr !important; }
  .admin-plan-card, .settings-card, .payment-method-settings-card, .owner-profile-settings-card { padding: 1rem; min-width: 0; overflow-wrap: anywhere; }
  .admin-plan-card-header, .settings-card-header { flex-wrap: wrap; gap: 0.5rem; }
  .owner-avatar-inputs-col { min-width: 0; }
  /* Flex children default to min-width:auto, so the nowrap chip row widened the whole banner off-screen. */
  .admin-top-banner > * { min-width: 0; max-width: 100%; }
  .form-actions-row { flex-wrap: wrap; }
  .container-admin .btn, .view-actions .btn { max-width: 100%; white-space: normal; height: auto; }
  .container-admin .btn span, .view-actions .btn span { white-space: normal; }
  .view-header, .view-actions { flex-wrap: wrap; min-width: 0; }
  .view-header > * { min-width: 0; max-width: 100%; }
}

/* Admin header actions: keep inside the viewport on phones */
@media (max-width: 640px) {
  .nav-actions { flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; gap: 0.4rem; }
  #btnHeaderAdminProfile { min-width: 0; max-width: 100%; }
  #btnHeaderAdminProfile .user-info-text { min-width: 0; overflow: hidden; }
  #btnHeaderAdminProfile .user-info-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #btnHeaderAdminProfile .owner-edit-hint { display: none; }
}

/* ===== Theme consistency & contrast (light mode for the redesigned admin surfaces) ===== */
[data-theme="light"] .admin-top-banner {
  background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .search-input-wrap .form-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .orders-filter-chips {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .filter-chip { color: #475569 !important; }
[data-theme="light"] .filter-chip:hover { color: #0f172a !important; background: rgba(15, 23, 42, 0.05) !important; }
.filter-chip.active { background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; color: #fff !important; }
[data-theme="light"] .admin-table-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .data-table thead th {
  background: #f1f5f9 !important;
  color: #475569 !important;
}
[data-theme="light"] .data-table tbody tr,
[data-theme="light"] .data-table tbody td { border-bottom-color: #eef2f7 !important; }
[data-theme="light"] .data-table tbody tr:hover { background: rgba(79, 70, 229, 0.04) !important; }
[data-theme="light"] .row-highlight-new { background: rgba(245, 158, 11, 0.06) !important; }
[data-theme="light"] .order-code-badge { background: #f1f5f9 !important; color: #1e293b !important; border-color: #e2e8f0 !important; }
[data-theme="light"] .order-code-badge:hover { background: #4f46e5 !important; color: #fff !important; }
[data-theme="light"] .client-name { color: #0f172a !important; }
[data-theme="light"] .phone-link { color: #334155 !important; }
[data-theme="light"] .btn-inspect { background: #f1f5f9 !important; color: #334155 !important; border-color: #e2e8f0 !important; }
[data-theme="light"] .btn-inspect:hover { background: #e2e8f0 !important; color: #0f172a !important; }
.client-avatar-badge { background: linear-gradient(135deg, #4338ca, #0e7490) !important; }
.btn-quick-approve { background: linear-gradient(135deg, #047857, #065f46) !important; }
.whatsapp-btn-chip:hover { background: #15803d !important; }
[data-theme="light"] .admin-drawer-brand-text span,
[data-theme="light"] .admin-drawer-user-meta span,
[data-theme="light"] .admin-drawer-item.active { color: #b45309 !important; }
[data-theme="light"] .admin-drawer-item.active { background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08)) !important; }
[data-theme="light"] .filter-chip { color: #334155 !important; }
.filter-chip.active { background: linear-gradient(135deg, #4338ca, #6d28d9) !important; }
.admin-login-header .admin-login-title { color: #fbbf24; }
[data-theme="light"] .filter-chip.active { color: #fff !important; }

/* BUTTON TEXT FIT PASS (2026.11.12.1): chip rows wrap (no hidden, half-scrolled chips); header actions fit at tablet widths */
.orders-filter-chips, .filter-pills { flex-wrap: wrap !important; overflow: visible !important; max-width: 100%; border-radius: 1rem !important; }
.filter-chip, .filter-pill { white-space: normal !important; text-align: center; }
.admin-nav-bar .nav-container { min-width: 0; }
.admin-nav-bar .nav-actions { min-width: 0; flex-shrink: 1; }
@media (max-width: 1280px) {
  .admin-nav-bar .admin-header-center-bar { min-width: 0; flex-shrink: 1; }
  .admin-nav-bar .btn-go-user-app { padding-inline: 0.6rem; font-size: 0.78rem; }
}
@media (max-width: 640px) {
  .admin-nav-bar .admin-header-center-bar { order: 3; flex: 1 1 100% !important; min-width: 0; justify-content: center !important; }
  .admin-nav-bar .brand-group { flex: 1 1 auto; min-width: 0; }
  .admin-nav-bar .admin-header-center-bar { flex-wrap: wrap !important; gap: 0.5rem !important; }
  .admin-quick-menu-btn { white-space: normal !important; max-width: 100%; }
  .orders-filter-chips, .filter-pills { flex-wrap: wrap !important; overflow: visible !important; }
  .filter-pill, .filter-chip { flex: 1 1 auto !important; }
}
.row-pending-highlight .email-verified-flag.no { color: #cbd5e1; }
[data-theme="light"] .row-pending-highlight .email-verified-flag.no { color: #475569; }

/* Secrets (API keys) are masked text fields, not type=password: formless password fields make Chrome treat
   the whole admin page as a login form and autofill the saved admin e-mail into the first text box (the users
   search), which emptied the users list, and the admin password into the API-key fields. */
.secret-mask { -webkit-text-security: disc; text-security: disc; font-family: monospace; letter-spacing: 0.08em; }
