/* 
  Dashboard Styles
*/

.dashboard-layout {
  display: flex;
  /* 100vh leaves the iOS keyboard covering the bottom of the layout.
   * 100dvh updates with the dynamic viewport, so inputs near the
   * bottom of forms (e.g. profile edit) stay visible while typing.
   * Fallback declaration first for older browsers. */
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  /* Pin the sidebar to the full viewport height as a defensive
     measure so the inner scroll region below has a concrete cap to
     measure against, even if a parent flex/grid layout ever changes.
     `100vh` first as the fallback for older browsers; `100dvh`
     overrides on modern mobile browsers where dynamic toolbars
     would otherwise leave a `100vh` overflow when chrome hides. */
  height: 100vh;
  height: 100dvh;
  background: var(--primary-color);
  color: white;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  z-index: 100;
}

.sidebar-header {
  /* `flex: 0 0 auto` — never grow, never shrink, basis = content
     size. Guarantees the logo block keeps its natural height even
     when the menu's content forces flex distribution under tight
     viewports, so the menu (and only the menu) absorbs the squeeze. */
  flex: 0 0 auto;
  padding: 30px;
  text-align: center;
}

.sidebar-logo {
  width: 100px;
  filter: brightness(0) invert(1);
}

.sidebar-menu {
  /* `flex: 1 1 auto` — grow to fill remaining space (grow:1), and
     absorb any squeeze when total content exceeds the viewport
     (shrink:1) since the neighbouring header/footer are pinned to
     `0 0 auto`. Combined with `min-height: 0` + `overflow-y: auto`,
     this is the canonical "flex + overflow inside" recipe: the
     menu can shrink below its content height and the surplus
     content scrolls inside this region instead of escaping the
     sidebar (which would push the footer off-screen).
     `min-height: 0` is load-bearing — without it the flex child's
     intrinsic min-size defaults to its content height and the
     flex parent can't constrain it. */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;

  /* Subtle dark-theme scrollbar. Firefox uses the standard
     `scrollbar-*` properties; WebKit/Blink (Safari, Chrome, Edge,
     Brave) need the pseudo-element variants. Both styles are
     no-ops on browsers that don't support them, so the rule set is
     safe to ship as-is. */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}
.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.menu-item i {
  margin-left: 14px;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.menu-item.active {
  background: var(--accent-color);
}

.sidebar-footer {
  /* `flex: 0 0 auto` — pin to natural content height, no grow, no
     shrink. The neighbouring `.sidebar-menu` carries all the flex
     give, so the logout button stays at its full size and never
     gets squeezed off-screen even when the menu has many items at
     100% browser zoom. */
  flex: 0 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  display: flex;
  align-items: center;
  color: #ff4d4d;
  padding: 14px 20px;
  font-weight: 600;
}

/* Main Dashboard Area */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-color);
}

.top-nav {
  height: 80px;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.theme-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: rotate(15deg);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.username {
  color: var(--text-primary);
  font-weight: 600;
}

/* Content Area */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}

/* Wallet Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--surface-color);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

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

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

.icon-blue {
  background: rgba(19, 181, 243, 0.1);
  color: var(--accent-color);
}
.icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}
.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Table Styles */
.data-card {
  background: var(--surface-color);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 0;
  overflow: hidden;
}

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

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.table-container {
  overflow-x: auto;
}

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

th {
  text-align: right;
  padding: 18px 30px;
  background: var(--bg-color);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

td {
  padding: 18px 30px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
}

.status-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.status-completed {
  background: rgba(0, 230, 118, 0.1);
  color: var(--success-color);
}
.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.status-accepted {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
}
.status-on-my-way {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}
.status-in-progress {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-input {
  max-width: 200px;
  background: var(--bg-color);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.date-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.date-picker-wrapper i {
  position: absolute;
  right: 14px;
  color: var(--accent-color);
  font-size: 14px;
}

.date-picker-wrapper input {
  padding-right: 40px !important;
  cursor: pointer;
}

/* ================================================================
   Fancy Flatpickr Calendar — Rich Design Overrides
   ================================================================ */
.flatpickr-calendar.fancy-calendar {
  background: var(--surface-color) !important;
  border: 1px solid rgba(19, 181, 243, 0.2) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(19, 181, 243, 0.08) !important;
  border-radius: 20px !important;
  font-family: var(--font-main) !important;
  overflow: hidden;
  padding: 8px;
}

/* Month nav header */
.flatpickr-calendar.fancy-calendar .flatpickr-month {
  background: transparent !important;
  color: var(--text-primary) !important;
  height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.flatpickr-calendar.fancy-calendar .flatpickr-monthDropdown-months,
.flatpickr-calendar.fancy-calendar .cur-year {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  background: transparent !important;
}

/* Prev / Next arrows */
.flatpickr-calendar.fancy-calendar .flatpickr-prev-month,
.flatpickr-calendar.fancy-calendar .flatpickr-next-month {
  color: var(--text-secondary) !important;
  fill: var(--text-secondary) !important;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  top: 9px;
}

.flatpickr-calendar.fancy-calendar .flatpickr-prev-month:hover,
.flatpickr-calendar.fancy-calendar .flatpickr-next-month:hover {
  background: rgba(19, 181, 243, 0.12) !important;
  color: var(--accent-color) !important;
  fill: var(--accent-color) !important;
}

/* Weekday header row */
.flatpickr-calendar.fancy-calendar .flatpickr-weekdays {
  background: transparent !important;
}

.flatpickr-calendar.fancy-calendar .flatpickr-weekday {
  color: var(--accent-color) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px;
}

/* Day cells */
.flatpickr-calendar.fancy-calendar .flatpickr-day {
  color: var(--text-primary) !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500;
  transition: all 0.15s ease !important;
  border: none !important;
}

.flatpickr-calendar.fancy-calendar .flatpickr-day:hover {
  background: rgba(19, 181, 243, 0.12) !important;
  color: var(--accent-color) !important;
}

/* Today */
.flatpickr-calendar.fancy-calendar .flatpickr-day.today {
  border: 1.5px solid rgba(19, 181, 243, 0.45) !important;
  color: var(--accent-color) !important;
  font-weight: 700 !important;
}

.flatpickr-calendar.fancy-calendar .flatpickr-day.today:hover {
  background: rgba(19, 181, 243, 0.15) !important;
}

/* Selected day */
.flatpickr-calendar.fancy-calendar .flatpickr-day.selected,
.flatpickr-calendar.fancy-calendar .flatpickr-day.selected:hover {
  background: linear-gradient(135deg, var(--accent-color), #0da5d4) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.35) !important;
}

/* Disabled / out-of-range days */
.flatpickr-calendar.fancy-calendar .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar.fancy-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar.fancy-calendar .flatpickr-day.nextMonthDay {
  color: rgba(255, 255, 255, 0.18) !important;
}

/* ================================================================
   Report Date Filter Card  (rdf-*)
   ================================================================ */
.rdf-card {
  background: var(--surface-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

/* Accent stripe at the top */
.rdf-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, var(--accent-color), #0da5d4);
  border-radius: 20px 20px 0 0;
}

.rdf-inner {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Icon + headings */
.rdf-header-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  flex-shrink: 0;
}

.rdf-icon-box {
  width: 46px;
  height: 46px;
  background: rgba(19, 181, 243, 0.1);
  border: 1.5px solid rgba(19, 181, 243, 0.25);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 20px;
  flex-shrink: 0;
}

.rdf-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.rdf-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Date range fields row */
.rdf-range {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 320px;
}

.rdf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.rdf-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.3px;
}

.rdf-field-label i {
  font-size: 12px;
}

.rdf-input {
  width: 100%;
  background: var(--bg-color);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.rdf-input:hover {
  border-color: rgba(19, 181, 243, 0.35);
  background: rgba(19, 181, 243, 0.03);
}

.rdf-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.12);
  background: rgba(19, 181, 243, 0.05);
  outline: none;
}

.rdf-input::placeholder {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Dot / dash separator between the two fields */
.rdf-range-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
  flex-shrink: 0;
}

.rdf-range-dot span {
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(19, 181, 243, 0.25),
    rgba(19, 181, 243, 0.7),
    rgba(19, 181, 243, 0.25)
  );
  border-radius: 2px;
}

/* Action buttons */
.rdf-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.rdf-apply-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent-color), #0da5d4);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.28);
  white-space: nowrap;
}

.rdf-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(19, 181, 243, 0.45);
}

.rdf-apply-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(19, 181, 243, 0.2);
}

.rdf-export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.rdf-export-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(19, 181, 243, 0.06);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .rdf-range {
    min-width: unset;
    width: 100%;
  }
  .rdf-header-group {
    min-width: unset;
  }
}

@media (max-width: 600px) {
  .rdf-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .rdf-range {
    flex-direction: column;
    gap: 12px;
  }
  .rdf-range-dot {
    display: none;
  }
  .rdf-actions {
    flex-direction: column;
  }
  .rdf-apply-btn,
  .rdf-export-btn {
    justify-content: center;
  }
}

/* Services & Packages List */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-card {
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.03),
    rgba(19, 181, 243, 0.01)
  );
  padding: 24px 28px;
  border-radius: 16px;
  border: 2px solid rgba(19, 181, 243, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(19, 181, 243, 0.3),
    transparent
  );
}

.item-card:hover {
  border-color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.06),
    rgba(19, 181, 243, 0.02)
  );
  box-shadow: 0 8px 24px rgba(19, 181, 243, 0.15);
  transform: translateY(-2px);
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.item-info-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  align-items: center;
}

.item-info-service {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-weight: 600;
}

.item-info p {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-info p i {
  font-size: 16px;
}

/* ── Package Card Enhanced Styles ───────────────────────── */
.package-item-card {
  align-items: flex-start;
}

.item-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.item-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.18),
    rgba(16, 185, 129, 0.08)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  letter-spacing: 0.2px;
}

.item-service-label {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.item-package-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.item-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.item-regular-price {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.7;
}

.item-discounted-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0 !important;
}

/* Weekend badges (dashboard) */
.weekend-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.weekend-badge--yes {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.14),
    rgba(16, 185, 129, 0.06)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.weekend-badge--no {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.14),
    rgba(148, 163, 184, 0.06)
  );
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
/* ─────────────────────────────────────────────────────────── */

.item-actions {
  display: flex;
  gap: 12px;
  margin-left: 24px;
  flex-shrink: 0;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
}

.btn-edit {
  background: rgba(19, 181, 243, 0.12);
  color: var(--accent-color);
  border-color: rgba(19, 181, 243, 0.2);
}

.btn-edit:hover {
  background: rgba(19, 181, 243, 0.2);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.2);
  transform: scale(1.08);
}

.btn-delete {
  background: rgba(255, 82, 82, 0.12);
  color: var(--error-color);
  border-color: rgba(255, 82, 82, 0.2);
}

.btn-delete:hover {
  background: rgba(255, 82, 82, 0.2);
  border-color: var(--error-color);
  box-shadow: 0 4px 12px rgba(255, 82, 82, 0.2);
  transform: scale(1.08);
}

.btn-add {
  background: linear-gradient(135deg, var(--accent-color), #0da5d4);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 181, 243, 0.35);
}

.btn-add:active {
  transform: translateY(0);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: var(--surface-color);
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal-content-scrollable {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}

.modal-content-scrollable .modal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-color);
}

.modal-actions {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.close-modal {
  color: var(--text-secondary);
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
}

.close-modal:hover {
  background: rgba(255, 82, 82, 0.1);
  color: var(--error-color);
  box-shadow: 0 2px 8px rgba(255, 82, 82, 0.15);
}

.modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 300px);
  max-height: calc(100dvh - 300px);
}

.modal .form-group {
  margin-bottom: 20px;
  text-align: right;
}

.modal .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.modal input:focus {
  border-color: var(--accent-color);
  outline: none;
}

@media (max-width: 992px) {
  .sidebar {
    width: 80px;
  }
  .sidebar .name,
  .sidebar-logo {
    display: none;
  }
  .menu-item {
    justify-content: center;
    padding: 14px;
  }
  .menu-item i {
    margin-left: 0;
  }
}
/* Profile Redesign Styles */
.profile-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.profile-hero {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 40px;
  background: linear-gradient(
    135deg,
    #1a1e2e 0%,
    var(--surface-color) 45%,
    #161920 100%
  );
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  padding: 50px 40px 44px;
}

.profile-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(19, 181, 243, 0.07) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

/* CR Existing File Styles */
.cr-existing-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.cr-existing-file .file-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cr-existing-file i {
  font-size: 24px;
  color: var(--accent-color);
}

.cr-existing-file .file-details {
  display: flex;
  flex-direction: column;
}

.cr-existing-file .label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.cr-existing-file .filename {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-existing-file .filename:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.btn-change-file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(19, 181, 243, 0.1);
  color: var(--accent-color);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-file:hover {
  background: var(--accent-color);
  color: white;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
  gap: 22px;
}

.profile-avatar-wrapper {
  position: relative;
}

.avatar-main {
  width: 200px;
  height: 200px;
  border-radius: 36px;
  background: var(--surface-color);
  border: 3px solid rgba(19, 181, 243, 0.35);
  box-shadow:
    0 0 0 8px rgba(19, 181, 243, 0.07),
    0 25px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}

.avatar-main:hover {
  box-shadow:
    0 0 0 10px rgba(19, 181, 243, 0.12),
    0 25px 60px rgba(0, 0, 0, 0.45);
}

.avatar-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-main .avatar {
  width: 100%;
  height: 100%;
  font-size: 72px;
  background: var(--primary-color);
  color: white;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.type-laundry {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.type-carwash {
  background: rgba(19, 181, 243, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(19, 181, 243, 0.2);
}

.avatar-edit-btn {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  background: var(--accent-color);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(19, 181, 243, 0.4);
  transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
  background: #0ea5e9;
}

.hero-text {
  margin: 0;
  text-align: center;
}

.hero-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: 0.4px;
}

.hero-text p {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-text p i {
  margin-left: 8px;
  color: var(--accent-color);
}

.profile-grid-fancy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.glass-card {
  background: var(--surface-color);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.card-icon-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body-fancy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-fancy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-fancy label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group-fancy input,
.form-group-fancy select {
  background: var(--bg-color);
  border: 1.5px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-group-fancy input:focus,
.form-group-fancy select:focus {
  border-color: var(--accent-color);
  background: var(--surface-color);
  outline: none;
}

.business-type-selector {
  display: flex;
  gap: 15px;
}

.type-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.type-option i {
  font-size: 20px;
  color: var(--text-secondary);
}

.type-option span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.type-option:hover {
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.05);
}

.type-option.active {
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.1);
}

.type-option.active i,
.type-option.active span {
  color: var(--accent-color);
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.time-input-wrapper,
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.time-input-wrapper i,
.input-with-icon i {
  position: absolute;
  right: 18px;
  color: var(--accent-color);
  font-size: 16px;
}

.time-input-wrapper input,
.input-with-icon input {
  padding-right: 48px !important;
  width: 100%;
}

/* ================================================
   Operating Hours Block — Premium Redesign
================================================ */
.operating-hours-block {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.oh-section {
  padding: 18px 20px;
}

.oh-section--days {
  background: rgba(139, 92, 246, 0.05);
}

.oh-section--hours {
  background: rgba(19, 181, 243, 0.05);
}

.oh-divider {
  height: 1px;
  background: linear-gradient(
    to left,
    rgba(19, 181, 243, 0.35),
    rgba(139, 92, 246, 0.35)
  );
  border: none;
}

/* Section label */
.oh-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.oh-section--days .oh-section-label i {
  color: #8b5cf6;
  font-size: 13px;
}

.oh-section--hours .oh-section-label i {
  color: var(--accent-color);
  font-size: 13px;
}

.oh-section-label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.oh-section--days .oh-section-label span {
  color: #8b5cf6;
}

.oh-section--hours .oh-section-label span {
  color: var(--accent-color);
}

/* Range row */
.oh-range-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.oh-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.oh-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Connector */
.oh-connector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 13px;
  flex-shrink: 0;
}

.oh-connector-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.oh-connector--days .oh-connector-dot {
  background: rgba(139, 92, 246, 0.55);
}

.oh-connector--hours .oh-connector-dot {
  background: rgba(19, 181, 243, 0.55);
}

.oh-connector-line {
  height: 1.5px;
  width: 24px;
}

.oh-connector--days .oh-connector-line {
  background: linear-gradient(
    to left,
    rgba(139, 92, 246, 0.45),
    rgba(139, 92, 246, 0.1)
  );
}

.oh-connector--hours .oh-connector-line {
  background: linear-gradient(
    to left,
    rgba(19, 181, 243, 0.45),
    rgba(19, 181, 243, 0.1)
  );
}

/* Custom Select Wrapper */
.oh-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.oh-select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-color);
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 11px 14px 11px 36px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.oh-select-wrapper select:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.04);
}

.oh-select-wrapper select:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.oh-chevron {
  position: absolute;
  left: 13px;
  color: #8b5cf6;
  font-size: 10px;
  pointer-events: none;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.oh-select-wrapper select:focus ~ .oh-chevron {
  transform: rotate(180deg);
}

/* Time Input */
.oh-time-wrapper {
  position: relative;
}

.oh-time-wrapper input[type="time"] {
  width: 100%;
  background: var(--bg-color);
  border: 1.5px solid rgba(19, 181, 243, 0.2);
  border-radius: 12px;
  padding: 9px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  box-sizing: border-box;
}

.oh-time-wrapper input[type="time"]:hover {
  border-color: rgba(19, 181, 243, 0.45);
  background: rgba(19, 181, 243, 0.04);
}

.oh-time-wrapper input[type="time"]:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.07);
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.12);
}

.oh-time-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(60%) sepia(80%) saturate(400%) hue-rotate(160deg);
  opacity: 0.65;
  cursor: pointer;
  border-radius: 4px;
}

.cr-upload-fancy {
  margin-top: 5px;
}

.cr-drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: var(--bg-color);
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.cr-drop-zone:hover {
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.05);
}

#cr-upload-prompt {
  text-align: center;
}

#cr-upload-prompt i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 8px;
}

#cr-upload-prompt p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

#cr-preview-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

#cr-preview-container i {
  font-size: 32px;
  color: #ff4d4d;
}

#cr-filename {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-text-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-text-icon:hover {
  opacity: 0.8;
}

.profile-submit-footer {
  background: var(--surface-color);
  padding: 30px 40px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.info-alert {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
}

.info-alert i {
  font-size: 18px;
  color: var(--accent-color);
}

.info-alert span {
  font-size: 14px;
  font-weight: 500;
}

.primary-gradient-btn {
  background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
  color: white;
  padding: 16px 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  min-width: 220px;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(19, 181, 243, 0.3);
  transition: all 0.3s ease;
}

.primary-gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(19, 181, 243, 0.4);
}

.icon-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Global Mobile Elements (Hidden on Desktop) */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

.menu-toggle-btn {
  display: none; /* Hidden on desktop */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.menu-toggle-btn:hover {
  background: rgba(19, 181, 243, 0.12);
  border-color: rgba(19, 181, 243, 0.35);
  color: var(--accent-color);
}

.nav-left-mobile {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Media Queries */
@media (max-width: 992px) {
  /* Layout */
  .dashboard-layout {
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    transform: translateX(100%); /* Hide off-screen (RTL) */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    /* No `overflow-y` here on purpose — the inner `.sidebar-menu`
       now owns the scroll so the logout button stays pinned even on
       narrow viewports where the sidebar is the slide-out drawer. */
  }

  .sidebar.open {
    transform: translateX(0);
    width: 280px;
    z-index: 200;
  }

  .sidebar.open .name,
  .sidebar.open .sidebar-logo {
    display: block;
  }

  .sidebar.open .menu-item {
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .sidebar.open .menu-item i {
    margin-left: 10px;
  }

  .menu-toggle-btn {
    display: block;
  }

  .top-nav {
    padding: 0 20px;
  }

  /* Profile Grid */
  .profile-grid-fancy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .avatar-container {
    margin-right: 0;
  }

  /* Generic Grid */
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .dashboard-content {
    padding: 20px 15px;
  }

  .profile-submit-footer {
    position: sticky;
    bottom: 15px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
  }

  .primary-gradient-btn {
    min-width: auto;
    font-size: 15px;
    padding: 16px 36px;
  }

  .hours-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .oh-range-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .oh-connector {
    display: none;
  }

  .oh-section {
    padding: 16px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .filter-input {
    max-width: 100%;
    flex: 1;
  }
}

/* Form Sections */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: rgba(19, 181, 243, 0.04);
  border: 1.5px solid rgba(19, 181, 243, 0.1);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: fit-content;
  min-height: 420px;
}

.form-section:first-child {
  margin-top: 0;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(19, 181, 243, 0.2);
}

.form-section-title i {
  font-size: 18px;
  background: rgba(19, 181, 243, 0.1);
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

.form-label i {
  font-size: 16px;
  color: var(--accent-color);
  flex-shrink: 0;
  background: rgba(19, 181, 243, 0.1);
  padding: 4px 6px;
  border-radius: 4px;
}

.form-input-enhanced {
  width: 100%;
  padding: 16px 18px;
  background: var(--surface-color);
  border: 1.5px solid rgba(19, 181, 243, 0.15);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-input-enhanced::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.form-input-enhanced:hover {
  border-color: rgba(19, 181, 243, 0.3);
  background: rgba(19, 181, 243, 0.05);
  transform: translateY(-1px);
  /* box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(19, 181, 243, 0.1); */
}

.form-input-enhanced:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.04);
  /* box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(19, 181, 243, 0.12); */
}

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

.form-helper-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 8px;
}

/* Price Calculation Summary */
.subscription-price-summary {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.12),
    rgba(19, 181, 243, 0.06)
  );
  padding: 28px 24px;
  border-radius: 14px;
  border: 2px solid var(--accent-color);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(19, 181, 243, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.subscription-price-summary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(19, 181, 243, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.price-calculation-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.price-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.price-value-large {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-color);
  font-family: "Monaco", "Courier New", monospace;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-value-large.final {
  font-size: 36px;
  background: linear-gradient(135deg, var(--accent-color), #0da5d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  filter: drop-shadow(0 0 8px rgba(19, 181, 243, 0.4));
}

.price-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.price-step-multiply {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 12px;
  background: rgba(19, 181, 243, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(19, 181, 243, 0.2);
}

.multiply-symbol {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(19, 181, 243, 0.3);
}

.multiply-value {
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent-color), #0da5d4);
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(19, 181, 243, 0.3);
}

/* ===== ELEGANT DELETE CONFIRMATION MODAL ===== */

.modal-content-delete-elegant {
  max-width: 480px;
  width: 90vw;
  background: var(--surface-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
  border: 1.5px solid rgba(255, 82, 82, 0.35);
  animation: scaleUpFade 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
}

.modal-content-delete-elegant::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 82, 82, 0.6),
    rgba(255, 82, 82, 0.3)
  );
  z-index: 10;
}

.delete-modal-header {
  padding: 36px 28px 24px;
  background: rgba(255, 82, 82, 0.02);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(255, 82, 82, 0.15);
  transition: all 0.2s ease;
}

.delete-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 82, 82, 0.08);
  border-radius: 50%;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: none;
  border: 1.5px solid rgba(255, 82, 82, 0.2);
  transition: all 0.3s ease;
}

.delete-icon-inner {
  width: 58px;
  height: 58px;
  background: var(--error-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: none;
}

.delete-modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--error-color);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.delete-modal-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.delete-modal-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delete-item-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 82, 82, 0.05);
  border-radius: 12px;
  border: 1.5px solid rgba(255, 82, 82, 0.2);
  border-right: 3px solid rgba(255, 82, 82, 0.5);
  box-shadow: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-item-display:hover {
  box-shadow: none;
  border-color: rgba(255, 82, 82, 0.35);
  border-right-color: rgba(255, 82, 82, 0.6);
  background: rgba(255, 82, 82, 0.08);
}

.delete-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 0.9),
    rgba(255, 108, 95, 0.8)
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  box-shadow: none;
  transition: all 0.25s ease;
}

.delete-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.delete-item-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.delete-item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--error-color);
  word-break: break-word;
  line-height: 1.3;
}

.delete-warning-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: rgba(255, 82, 82, 0.04);
  border-radius: 10px;
  border: 1.5px solid rgba(255, 82, 82, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-style: italic;
  box-shadow: none;
  transition: all 0.2s ease;
}

.delete-warning-box i {
  font-size: 18px;
  color: var(--error-color);
  flex-shrink: 0;
}

.delete-modal-actions {
  display: flex;
  gap: 10px;
  padding: 20px 28px;
  border-top: 1.5px solid rgba(255, 82, 82, 0.1);
  background: rgba(255, 82, 82, 0.01);
}

.btn-cancel-elegant,
.btn-delete-elegant {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.btn-cancel-elegant {
  background: rgba(148, 163, 184, 0.06);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-cancel-elegant:hover {
  border-color: rgba(19, 181, 243, 0.35);
  background: rgba(19, 181, 243, 0.1);
  color: var(--accent-color);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-cancel-elegant:active {
  box-shadow: none;
  transform: translateY(0);
}

.btn-delete-elegant {
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 0.95),
    rgba(255, 100, 87, 0.85)
  );
  color: white;
  border: none;
  box-shadow: none;
}

.btn-delete-elegant:hover {
  box-shadow: none;
  filter: brightness(1.1);
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 1),
    rgba(255, 100, 87, 0.95)
  );
}

.btn-delete-elegant:active {
  box-shadow: none;
  transform: translateY(0);
}

.btn-cancel-elegant i,
.btn-delete-elegant i {
  font-size: 14px;
}

/* ===== OLD DELETE CONFIRMATION MODAL STYLING (Legacy) ===== */

.modal-content-warning {
  max-width: 540px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 82, 82, 0.15);
}

.modal-header-warning {
  border-bottom: none;
  padding: 40px 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 0.1),
    rgba(255, 82, 82, 0.04)
  );
  position: relative;
  overflow: hidden;
}

.modal-header-warning .modal-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.modal-header-warning .modal-header-icon {
  color: var(--error-color);
  font-size: 44px;
  background: rgba(255, 82, 82, 0.15);
  padding: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  box-shadow: 0 4px 16px rgba(255, 82, 82, 0.25);
}

.modal-header-warning .modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--error-color);
  margin: 0;
  letter-spacing: -0.3px;
}

.warning-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 32px;
}

.warning-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.warning-details {
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 0.08),
    rgba(255, 82, 82, 0.03)
  );
  padding: 22px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 82, 82, 0.2);
  border-left: 4px solid var(--error-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 82, 82, 0.1);
}

.warning-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 1;
}

.warning-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--error-color);
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.warning-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  padding: 14px;
  background: rgba(255, 82, 82, 0.06);
  border-radius: 11px;
  border: 1.5px solid rgba(255, 82, 82, 0.18);
  line-height: 1.5;
  text-align: center;
  font-style: italic;
}

.modal-footer-warning {
  display: flex;
  gap: 12px;
  padding: 24px 32px;
  border-top: 1.5px solid rgba(255, 82, 82, 0.12);
  justify-content: center;
}

.btn-delete-confirm {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--error-color), #ff3838);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 18px rgba(255, 82, 82, 0.3);
  letter-spacing: 0.3px;
  min-width: 140px;
  justify-content: center;
}

.btn-delete-confirm:hover {
  box-shadow: 0 8px 24px rgba(255, 82, 82, 0.35);
  filter: brightness(1.08);
}

.btn-delete-confirm:active {
  box-shadow: 0 3px 10px rgba(255, 82, 82, 0.25);
}

/* Cancel button styling for warning modal */
.modal-footer-warning .btn-cancel {
  padding: 14px 28px;
  background: rgba(148, 163, 184, 0.08);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  color: var(--text-primary);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.3px;
  min-width: 140px;
  justify-content: center;
}

.modal-footer-warning .btn-cancel:hover {
  border-color: rgba(19, 181, 243, 0.35);
  background: rgba(19, 181, 243, 0.1);
  color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.18);
}

.modal-footer-warning .btn-cancel:active {
  box-shadow: 0 2px 6px rgba(19, 181, 243, 0.12);
}

/* ===== RESPONSIVE DESIGN FOR SUBSCRIPTION FORM ===== */

/* Tablets and smaller devices */
@media (max-width: 992px) {
  .modal-content-subscription {
    max-width: 90vw;
    width: 90vw;
  }

  .subscription-form-elegant {
    padding: 28px 22px;
    gap: 20px;
  }

  .subscription-details-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .price-calculation-elegant {
    flex-direction: column;
    gap: 16px;
  }

  .price-box {
    width: 100%;
  }

  .modal-header-subscription {
    padding: 24px 22px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-header-icon {
    width: 54px;
    height: 54px;
    font-size: 28px;
    padding: 12px;
  }

  .price-amount {
    font-size: 20px;
  }

  .final-price {
    font-size: 26px;
  }

  /* Delete modal responsive */
  .modal-content-delete-elegant {
    max-width: 90vw;
    width: 90vw;
    border: 1.5px solid rgba(255, 82, 82, 0.4);
    border-top: 3px solid rgba(255, 82, 82, 0.6);
  }

  .delete-modal-header {
    padding: 36px 26px 28px;
  }

  .delete-icon-circle {
    width: 80px;
    height: 80px;
  }

  .delete-icon-inner {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .delete-modal-title {
    font-size: 22px;
  }

  .delete-modal-body {
    padding: 24px 26px;
  }

  .delete-modal-actions {
    padding: 22px 26px;
    flex-direction: column;
  }

  .btn-cancel-elegant,
  .btn-delete-elegant {
    width: 100%;
  }
}

/* Legacy styles */
.subscription-form {
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
}

.subscription-form::before {
  display: none;
}

.form-section {
  min-height: auto;
}

.modal-header-subscription-legacy {
  padding: 28px 24px;
}

.price-calculation-flow {
  gap: 16px;
}

.price-value-large.final {
  font-size: 32px;
}

.modal-content-warning {
  max-width: 90vw;
}

.warning-content {
  padding: 28px 24px;
}

.modal-footer-warning {
  padding: 24px;
  flex-direction: column;
}

.btn-delete-confirm,
.modal-footer-warning .btn-cancel {
  width: 100%;
  min-width: unset;
}

/* Mobile devices */
@media (max-width: 640px) {
  .modal-content-subscription {
    max-width: 95vw;
    width: 95vw;
    max-height: 92vh;
  }

  .subscription-form-elegant {
    padding: 20px 18px;
    gap: 18px;
  }

  .subscription-row {
    flex-direction: column;
  }

  .subscription-details-row {
    gap: 16px;
  }

  .elegant-section-header {
    padding: 9px 12px;
    font-size: 12px;
  }

  .elegant-section-header i {
    font-size: 14px;
  }

  .form-select-elegant,
  .form-input-elegant,
  .form-textarea-elegant {
    padding: 14px 16px;
    font-size: 13px;
  }

  .subscription-price-showcase {
    padding: 20px 18px;
  }

  .price-calculation-elegant {
    gap: 12px;
  }

  .price-box {
    padding: 18px;
    gap: 12px;
  }

  .price-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .price-amount {
    font-size: 19px;
  }

  .final-price {
    font-size: 24px;
  }

  .price-label {
    font-size: 10px;
  }

  .price-multiplier {
    padding: 11px 10px;
  }

  .multiplier-value {
    font-size: 12px;
    padding: 5px 11px;
  }

  .btn-save-subscription {
    padding: 14px 36px;
    font-size: 13px;
  }

  .modal-header-subscription {
    padding: 22px 18px;
  }

  .modal-header-content {
    gap: 10px;
  }

  .modal-header-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    padding: 10px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-header-subscription .close-modal {
    top: 18px;
    left: 18px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  /* Delete modal mobile */
  .modal-content-delete-elegant {
    max-width: 95vw;
    width: 95vw;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 82, 82, 0.4);
    border-top: 3px solid rgba(255, 82, 82, 0.6);
  }

  .delete-modal-header {
    padding: 32px 22px 26px;
  }

  .delete-icon-circle {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }

  .delete-icon-inner {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }

  .delete-modal-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .delete-modal-subtitle {
    font-size: 14px;
  }

  .delete-modal-body {
    padding: 22px 22px;
    gap: 16px;
  }

  .delete-item-display {
    padding: 16px 18px;
    gap: 12px;
  }

  .delete-item-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .delete-item-name {
    font-size: 15px;
  }

  .delete-warning-box {
    padding: 12px 16px;
    font-size: 11px;
  }

  .delete-modal-actions {
    padding: 18px 22px;
    gap: 10px;
  }

  .btn-cancel-elegant,
  .btn-delete-elegant {
    padding: 12px 18px;
    font-size: 13px;
  }

  /* Legacy styles */
  .subscription-form {
    gap: 20px;
    padding: 20px;
  }

  .form-section {
    padding: 20px;
    gap: 20px;
  }

  .form-section-title {
    font-size: 14px;
  }

  .subscription-price-summary {
    padding: 20px 16px;
  }

  .price-calculation-flow {
    flex-direction: column;
    gap: 16px;
  }

  .price-step-multiply {
    flex-direction: row;
    gap: 12px;
  }

  .price-value-large {
    font-size: 22px;
  }

  .price-value-large.final {
    font-size: 28px;
  }

  .modal-subscription-actions {
    flex-direction: column;
  }

  .modal-subscription-actions .btn-add-item {
    width: 100%;
    justify-content: center;
  }

  .modal-content-warning {
    max-width: 95vw;
    border-radius: 16px;
  }

  .modal-header-warning {
    padding: 32px 20px;
  }

  .modal-header-warning .modal-header-icon {
    width: 72px;
    height: 72px;
    font-size: 40px;
  }

  .modal-header-warning .modal-title {
    font-size: 20px;
  }

  .warning-content {
    padding: 24px 20px;
    gap: 20px;
  }

  .warning-message {
    font-size: 15px;
  }

  .warning-details {
    padding: 20px;
  }

  .modal-footer-warning {
    padding: 20px;
    gap: 12px;
  }
}

/* ===== APPOINTMENT SETTINGS STYLES (MATCHING PROFILE DESIGN) ===== */

.icon-teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

#appointment-display-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.capacity-display-dashboard {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-color);
  min-width: 80px;
  padding: 14px 24px;
  background: var(--bg-color);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  font-family: "Segoe UI", monospace;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.capacity-display-dashboard:hover {
  border-color: var(--accent-color);
  background: var(--surface-color);
}

.btn-edit-appointment {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-edit-appointment:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.3);
}

.btn-edit-appointment:active {
  transform: translateY(0);
}

.capacity-control-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-color);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.capacity-control-dashboard:hover {
  border-color: var(--accent-color);
  background: var(--surface-color);
}

.capacity-control-dashboard .capacity-display {
  font-size: 36px;
  font-weight: 800;
  min-width: 70px;
  text-align: center;
  color: var(--accent-color);
  font-family: "Segoe UI", monospace;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.capacity-control-dashboard .btn-capacity {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.capacity-control-dashboard .btn-capacity:hover:not(:disabled) {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 181, 243, 0.3);
}

.capacity-control-dashboard .btn-capacity:active:not(:disabled) {
  transform: translateY(0);
}

.capacity-control-dashboard .btn-capacity:disabled {
  border-color: var(--border-color);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.4;
}

.form-group-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn-save,
.btn-cancel {
  flex: 1;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-save {
  background: var(--success-color);
  color: white;
}

.btn-save:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-save:active {
  transform: translateY(0);
}

.btn-cancel {
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-cancel:hover {
  border-color: var(--accent-color);
  background: var(--surface-color);
  transform: translateY(-2px);
}

.btn-cancel:active {
  transform: translateY(0);
}

/* ===== ANIMATION KEYFRAMES ===== */

@keyframes scaleUpFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   WALLET TABS
   ======================================== */

.wallet-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--surface-color);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  width: fit-content;
}

.wallet-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.wallet-tab-btn i {
  font-size: 15px;
  transition: color 0.25s ease;
}

.wallet-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.wallet-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-color) 0%, #0da5d4 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(19, 181, 243, 0.35);
}

.wallet-tab-btn.active i {
  color: #fff;
}

.wallet-tab-content {
  animation: scaleUpFade 0.25s ease;
}

/* ========================================
   BALANCE OFFERS — DEDICATED SECTION HERO
   ======================================== */

.offers-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.14) 0%,
    rgba(13, 165, 212, 0.05) 55%,
    transparent 100%
  );
  border: 1.5px solid rgba(19, 181, 243, 0.22);
}

.offers-hero-glow {
  position: absolute;
  top: -45%;
  inset-inline-start: -8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 181, 243, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.offers-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.offers-hero-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color) 0%, #0da5d4 100%);
  box-shadow: 0 8px 24px rgba(19, 181, 243, 0.35);
}

.offers-hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offers-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.offers-hero-subtitle {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.offers-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.offers-hero-meta:empty {
  display: none;
}

.offers-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.offers-meta-chip i {
  font-size: 11px;
}

.offers-meta-chip.active {
  color: var(--success-color);
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.25);
}

.offers-hero-add {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ========================================
   OFFER CARDS
   ======================================== */

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.06) 0%,
    rgba(13, 165, 212, 0.03) 100%
  );
  border: 1.5px solid rgba(19, 181, 243, 0.18);
  border-radius: 18px;
  padding: 22px 28px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
  border-radius: inherit;
}

.offer-card:hover {
  border-color: rgba(19, 181, 243, 0.4);
  box-shadow: 0 6px 24px rgba(19, 181, 243, 0.1);
  transform: translateY(-2px);
}

.offer-card.is-best {
  border-color: rgba(19, 181, 243, 0.5);
  box-shadow: 0 6px 24px rgba(19, 181, 243, 0.12);
}

.offer-card.offer-inactive {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
}

.offer-card.offer-inactive:hover {
  opacity: 0.75;
  box-shadow: none;
}

/* Left: amounts */
.offer-amounts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.offer-amount-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.offer-amount-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-amount-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.offer-amount-value .offer-currency {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 3px;
}

.offer-arrow {
  color: var(--text-secondary);
  font-size: 16px;
  flex-shrink: 0;
}

/* Center: bonus badge */
.offer-bonus-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.offer-best-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  color: #2a1d00;
  background: linear-gradient(135deg, #ffd54a 0%, #ffb300 100%);
  box-shadow: 0 3px 10px rgba(255, 179, 0, 0.3);
}

.offer-best-tag i {
  font-size: 10px;
}

.offer-bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.18) 0%,
    rgba(13, 165, 212, 0.12) 100%
  );
  color: var(--accent-color);
  border: 1px solid rgba(19, 181, 243, 0.3);
}

.offer-bonus-badge.no-bonus {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.offer-bonus-badge i {
  font-size: 12px;
}

/* Right: status + actions */
.offer-actions-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.offer-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.offer-status-pill.active {
  background: rgba(0, 230, 118, 0.12);
  color: var(--success-color);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.offer-status-pill.inactive {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Offer empty state */
.offer-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: var(--surface-color);
  border-radius: 24px;
  border: 1.5px dashed var(--border-color);
}

.offer-empty-state .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(19, 181, 243, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.offer-empty-state .empty-icon i {
  font-size: 28px;
  color: var(--accent-color);
}

.offer-empty-state h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.offer-empty-state p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 320px;
}

/* ========================================
   OFFER MODAL
   ======================================== */

.offer-modal-content {
  max-width: 560px;
}

.offer-modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #0da5d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-modal-icon i {
  color: #fff;
  font-size: 16px;
}

.offer-modal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Fields grid: two columns */
.offer-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.offer-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.offer-field-label i {
  color: var(--accent-color);
  font-size: 12px;
}

.offer-input-wrapper {
  position: relative;
}

.offer-input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  background: var(--bg-color);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
}

.offer-input::-webkit-outer-spin-button,
.offer-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.offer-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.15);
}

.offer-input.input-error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.1);
}

.offer-input-currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
}

.offer-field-error {
  font-size: 12px;
  color: var(--error-color);
  font-weight: 500;
}

/* Bonus preview box */
.offer-bonus-preview-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(19, 181, 243, 0.06);
  border: 1.5px solid rgba(19, 181, 243, 0.15);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.offer-bonus-preview-box.has-bonus {
  background: rgba(0, 230, 118, 0.07);
  border-color: rgba(0, 230, 118, 0.25);
  color: var(--success-color);
}

.offer-bonus-preview-box.has-error {
  background: rgba(255, 82, 82, 0.07);
  border-color: rgba(255, 82, 82, 0.25);
  color: var(--error-color);
}

.offer-bonus-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Active toggle row */
.offer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-color);
  border: 1.5px solid var(--border-color);
}

.offer-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.offer-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.offer-toggle-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

/* CSS Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  border: 1.5px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--accent-color) 0%, #0da5d4 100%);
  border-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider::before {
  right: auto;
  left: 3px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vat-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.vat-toggle-row .vat-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vat-toggle-row .vat-toggle-text label {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.vat-toggle-row .vat-toggle-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.offer-modal-actions {
  padding: 20px 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive: stack offer card on small screens */
@media (max-width: 700px) {
  .offer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .offer-actions-col {
    width: 100%;
    justify-content: flex-end;
  }

  .offer-fields-grid {
    grid-template-columns: 1fr;
  }

  .wallet-tabs {
    width: 100%;
  }

  .wallet-tab-btn {
    flex: 1;
    justify-content: center;
  }

  .offers-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
  }

  .offers-hero-add {
    width: 100%;
    justify-content: center;
  }
}

/* ── Employee Section ─────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════ */
/* EMPLOYEES SECTION                                     */
/* ═══════════════════════════════════════════════════════ */

/* Header */
.emp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.emp-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.emp-section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.emp-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.emp-add-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(19, 181, 243, 0.3);
}

/* Stats Cards */
.emp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.emp-stat-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.emp-stat-card:hover {
  border-color: rgba(19, 181, 243, 0.25);
}

.emp-stat-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.emp-stat-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emp-stat-card-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.emp-stat-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Employee List */
.emp-list-wrapper {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.emp-list-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.emp-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.emp-list-title i {
  font-size: 13px;
  color: var(--accent-color);
}

.emp-table {
  display: flex;
  flex-direction: column;
}

.emp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.emp-row:last-child {
  border-bottom: none;
}

.emp-row:hover {
  background: rgba(19, 181, 243, 0.03);
}

.emp-row-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emp-row-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(19, 181, 243, 0.12), rgba(19, 181, 243, 0.04));
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.emp-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.emp-row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.emp-row-phone {
  font-size: 12px;
  color: var(--text-secondary);
  direction: ltr;
  unicode-bidi: embed;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  letter-spacing: 0.3px;
}

.emp-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

.emp-badge i {
  font-size: 6px;
}

.emp-badge--active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.emp-badge--inactive {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.emp-row-delete {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.emp-row-delete:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Empty State */
.emp-empty {
  text-align: center;
  padding: 80px 20px;
}

.emp-empty-visual {
  margin-bottom: 24px;
}

.emp-empty-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(19, 181, 243, 0.06);
  border: 2px dashed rgba(19, 181, 243, 0.2);
  color: var(--accent-color);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.emp-empty h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.emp-empty p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .emp-stats {
    grid-template-columns: 1fr;
  }
  .emp-section-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .emp-add-btn {
    justify-content: center;
  }
  .emp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .emp-row-left {
    align-self: flex-end;
  }
}

.emp-modal-body {
  padding: 32px;
}

.emp-modal-hero {
  text-align: center;
  margin-bottom: 28px;
}

.emp-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(19, 181, 243, 0.1);
  color: var(--accent-color);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.emp-modal-hero p {
  color: var(--text-secondary);
  font-size: 13px;
}

.emp-phone-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.emp-submit-btn {
  width: 100%;
  margin-top: 24px;
  background: linear-gradient(135deg, var(--accent-color), #0da5d4);
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(19, 181, 243, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.emp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(19, 181, 243, 0.4);
}

/* Employee tag in order cards */
.order-employee-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(19, 181, 243, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(19, 181, 243, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Accountant / Withdraw Section ────────────────────────────── */

.withdraw-action-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.btn-withdraw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-withdraw:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4);
}

.btn-withdraw:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Transaction amount coloring */
.amount-credit {
  color: var(--success-color) !important;
  font-weight: 700;
}

.amount-debit {
  color: #ef4444 !important;
  font-weight: 700;
}

/* Additional status badges */
.status-fee {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.status-withdrawal {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Table empty state */
.table-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  gap: 12px;
}

.table-empty-state i {
  font-size: 36px;
  opacity: 0.4;
}

/* Withdrawal cards */
.withdrawal-card {
  border-right: 4px solid var(--accent-color);
}

.wd-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.wd-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.wd-card-details i {
  margin-left: 4px;
}

.wd-transfer-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.wd-transfer-link:hover {
  text-decoration: underline;
}

/* Invoice cards (wallet → invoices tab) */
#invoices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.invoice-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-color);
  opacity: 0.85;
}

.invoice-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.invoice-card-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.invoice-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invoice-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.invoice-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-card-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.invoice-card-currency {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-inline-start: 2px;
}

.invoice-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.invoice-card-meta i {
  margin-inline-end: 4px;
}

.invoice-card-desc {
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-download-btn {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 188, 212, 0.12);
  color: var(--accent-color);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-smooth);
}

.invoice-download-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-1px);
}

/* Per-type accents — tint the icon tile and the left border. */
.invoice-accent-primary::before {
  background: #60a5fa;
}
.invoice-accent-primary .invoice-card-icon {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
}

.invoice-accent-info::before {
  background: #22d3ee;
}
.invoice-accent-info .invoice-card-icon {
  background: rgba(34, 211, 238, 0.14);
  color: #22d3ee;
}

.invoice-accent-warning::before {
  background: #f59e0b;
}
.invoice-accent-warning .invoice-card-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

@media (max-width: 768px) {
  .invoice-card {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }
  .invoice-card-body {
    width: calc(100% - 56px);
  }
  .invoice-card-header {
    flex-wrap: wrap;
  }
  .invoice-download-btn {
    margin-inline-start: auto;
  }
  .invoice-card-desc {
    max-width: 100%;
  }
}

/* Withdraw modal available display */
.withdraw-available-display {
  font-size: 28px;
  font-weight: 800;
  color: var(--success-color);
  padding: 12px 0;
}

@media (max-width: 768px) {
  .wd-card-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .withdraw-action-bar {
    justify-content: stretch;
  }
  .btn-withdraw {
    width: 100%;
    justify-content: center;
  }
}

/* ── Admin Panel ──────────────────────────────────────────────────── */

.admin-wd-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-admin-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  margin: 0 3px;
}

.btn-approve {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.btn-approve:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: scale(1.1);
}

.btn-invoice-dl {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
.btn-invoice-dl:hover {
  background: rgba(56, 189, 248, 0.3);
  transform: scale(1.1);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.btn-reject:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}

.admin-actions-cell {
  white-space: nowrap;
}

.admin-wd-summary {
  background: var(--bg-color);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.admin-wd-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.admin-wd-info-row strong {
  color: var(--text-primary);
  font-weight: 700;
}

#approve-wd-form textarea,
#reject-wd-form textarea {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  resize: vertical;
}

.admin-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ── Admin KPI Cards ─────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   KPI CARDS — Admin Overview
   ═══════════════════════════════════════════════════════════ */

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

/* ── Base card ─────────────────────────────────────────────── */
.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px 22px 20px;
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}

/* ── Orb: soft ambient light source (blurred circle) ────────── */
.kpi-orb {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--kpi-color);
  filter: blur(72px);
  opacity: 0.13;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 0;
}

/* ── Simple hover: gentle lift + strengthen orb ─────────────── */
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.kpi-card:hover .kpi-orb {
  opacity: 0.24;
}

/* ── Header: icon (left) + tag pill (right) ─────────────────── */
.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

/* Solid colored icon square — the main visual anchor */
.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--kpi-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px var(--kpi-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Small pill tag: unit or category label */
.kpi-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--kpi-color);
  background: var(--kpi-bg);
  border: 1px solid var(--kpi-border);
  padding: 4px 11px;
  border-radius: 20px;
}

/* ── Content: big number + metric label ─────────────────────── */
.kpi-content {
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.kpi-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Footer: fine detail below separator ─────────────────────── */
.kpi-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  position: relative;
  z-index: 1;
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  opacity: 0.6;
  line-height: 1.4;
}

/* ── Color tokens: color · bg wash · glow · border ──────────── */
.kpi-blue   { --kpi-color: #38bdf8; --kpi-bg: rgba(56,189,248,0.1);  --kpi-glow: rgba(56,189,248,0.28);  --kpi-border: rgba(56,189,248,0.2);  }
.kpi-purple { --kpi-color: #a78bfa; --kpi-bg: rgba(167,139,250,0.1); --kpi-glow: rgba(167,139,250,0.28); --kpi-border: rgba(167,139,250,0.2); }
.kpi-pink   { --kpi-color: #f472b6; --kpi-bg: rgba(244,114,182,0.1); --kpi-glow: rgba(244,114,182,0.28); --kpi-border: rgba(244,114,182,0.2); }
.kpi-amber  { --kpi-color: #fbbf24; --kpi-bg: rgba(251,191,36,0.1);  --kpi-glow: rgba(251,191,36,0.28);  --kpi-border: rgba(251,191,36,0.2);  }
.kpi-emerald{ --kpi-color: #34d399; --kpi-bg: rgba(52,211,153,0.1);  --kpi-glow: rgba(52,211,153,0.28);  --kpi-border: rgba(52,211,153,0.2);  }
.kpi-cyan   { --kpi-color: #22d3ee; --kpi-bg: rgba(34,211,238,0.1);  --kpi-glow: rgba(34,211,238,0.28);  --kpi-border: rgba(34,211,238,0.2);  }
.kpi-yellow { --kpi-color: #facc15; --kpi-bg: rgba(250,204,21,0.1);  --kpi-glow: rgba(250,204,21,0.28);  --kpi-border: rgba(250,204,21,0.2);  }
.kpi-indigo { --kpi-color: #818cf8; --kpi-bg: rgba(129,140,248,0.1); --kpi-glow: rgba(129,140,248,0.28); --kpi-border: rgba(129,140,248,0.2); }

@media (max-width: 1100px) {
  .admin-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 880px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-value { font-size: 28px; }
}
@media (max-width: 480px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-value { font-size: 24px; }
}

.admin-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-chart-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-chart-toggle-group {
  display: flex;
  background: var(--bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.admin-chart-toggle,
.admin-period-toggle,
.admin-invoices-toggle {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.admin-chart-toggle:hover,
.admin-period-toggle:hover,
.admin-invoices-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.admin-chart-toggle.active {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.admin-period-toggle.active,
.admin-invoices-toggle.active {
  background: rgba(19, 181, 243, 0.15);
  color: var(--accent-color);
}

.admin-chart-wrapper {
  position: relative;
  height: 340px;
  width: 100%;
}

@media (max-width: 768px) {
  .admin-chart-wrapper {
    height: 260px;
  }
  .admin-chart-header {
    flex-direction: column;
  }
}

#approve-wd-form input[type="file"],
#reject-wd-form input[type="file"] {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
}

/* ── Reports Section — Compact Design ─────────────────────────── */

.rpt-toolbar {
  margin-bottom: 20px;
}

.rpt-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rpt-filters .filter-input {
  max-width: 160px;
  font-size: 13px;
  padding: 9px 14px;
}

.rpt-apply-btn,
.rpt-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rpt-apply-btn {
  background: var(--accent-color);
  color: #fff;
}

.rpt-apply-btn:hover {
  box-shadow: 0 4px 14px rgba(19, 181, 243, 0.3);
}

.rpt-export-btn {
  background: var(--bg-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.rpt-export-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Stat chips row */
.rpt-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.rpt-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  min-width: 120px;
  flex: 1;
}

.rpt-chip > i {
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rpt-chip > div {
  display: flex;
  flex-direction: column;
}

.rpt-chip-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.rpt-chip-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.rpt-chip-blue > i { background: rgba(19,181,243,0.1); color: var(--accent-color); }
.rpt-chip-green > i { background: rgba(16,185,129,0.1); color: #10b981; }
.rpt-chip-teal > i { background: rgba(20,184,166,0.1); color: #14b8a6; }
.rpt-chip-amber > i { background: rgba(245,158,11,0.1); color: #f59e0b; }
.rpt-chip-red > i { background: rgba(239,68,68,0.1); color: #ef4444; }
.rpt-chip-purple > i { background: rgba(139,92,246,0.1); color: #8b5cf6; }

.rpt-count-badge {
  background: var(--accent-color);
  color: #fff;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .rpt-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .rpt-filters .filter-input {
    max-width: 100%;
  }
  .rpt-stats-row {
    flex-direction: column;
  }
  .rpt-chip {
    min-width: auto;
  }
}

/* ── Admin Mini Stats (section-level analytics cards) ────────── */

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

.admin-mini-stat-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-mini-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

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

.admin-mini-stat-body {
  flex: 1;
  min-width: 0;
}

.admin-mini-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-mini-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 600;
}

.admin-mini-stat-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  opacity: 0.7;
}

/* ── Financial Reports (admin) ───────────────────────────────── */

/* ── Financial Reports ─────────────────────────────────────────── */

.fin-reports-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tabs */
.fin-report-tabs {
  display: flex;
  gap: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 5px;
  overflow: hidden;
}

.fin-report-tab {
  flex: 1;
  min-width: 180px;
  padding: 13px 18px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.fin-report-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.fin-report-tab.active {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(19, 181, 243, 0.25);
}

/* Filters */
.fin-report-filters {
  padding: 20px 24px;
}

.fin-report-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.fin-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}

.fin-filter-group label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.fin-filter-group input[type="date"] {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  color-scheme: dark;
}

.fin-filter-actions {
  display: flex;
  gap: 10px;
  margin-inline-start: auto;
}

.fin-print-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
}

/* Empty state */
.fin-report-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}

.fin-report-empty i {
  font-size: 28px;
  margin-bottom: 12px;
  opacity: 0.5;
  display: block;
}

/* Report sections */
.fin-report-section {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.fin-report-section h3.fin-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fin-report-section h3.fin-section-title i {
  color: var(--accent-color);
  font-size: 14px;
}

/* Tables */
.fin-report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.fin-report-table th,
.fin-report-table td {
  padding: 13px 24px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.fin-report-table thead th {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-color);
  padding: 12px 24px;
  white-space: nowrap;
}

.fin-report-table tbody td {
  color: var(--text-primary);
}

.fin-report-table td.num,
.fin-report-table th.num {
  text-align: left;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.fin-report-table tfoot td {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(19, 181, 243, 0.05);
  border-top: 2px solid rgba(19, 181, 243, 0.3);
  border-bottom: none;
  font-size: 13px;
}

/* Grand total row */
.fin-report-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--surface-color);
  border: 1px solid rgba(19, 181, 243, 0.2);
  border-radius: 14px;
  margin-top: 4px;
}

.fin-report-total-row .label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.fin-report-total-row .value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-color);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

/* Balanced banner */
.fin-balanced-banner {
  margin-top: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
}

.fin-balanced-banner.ok {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.fin-balanced-banner.bad {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

@media (max-width: 768px) {
  .fin-report-tabs { flex-direction: column; }
  .fin-report-table { table-layout: auto; }
  .fin-report-table th, .fin-report-table td { padding: 10px 14px; font-size: 12px; }
  .fin-report-total-row { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Company Revenue Breakdown Table ─────────────────────────── */

.admin-breakdown-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.admin-breakdown-rank.rank-1 { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.admin-breakdown-rank.rank-2 { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.admin-breakdown-rank.rank-3 { background: rgba(180, 83, 9, 0.15); color: #b45309; }
.admin-breakdown-rank.rank-other { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

@media (max-width: 768px) {
  .admin-mini-stats {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN EXPENSE CALCULATOR
   ═══════════════════════════════════════════════════════════════════ */

/* ── KPI Grid ───────────────────────────────────────────────────── */
.expense-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.expense-kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--kpi-border, rgba(255,255,255,0.08));
  background: var(--kpi-bg, var(--surface-color));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.expense-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--kpi-glow, rgba(0,0,0,0.3));
}

.expense-kpi-orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: -40px;
  left: -30px;
  background: var(--kpi-color, #38bdf8);
  opacity: 0.07;
  filter: blur(30px);
  pointer-events: none;
}

.expense-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: var(--kpi-icon-bg, rgba(255,255,255,0.06));
  color: var(--kpi-color, #38bdf8);
  box-shadow: 0 4px 16px var(--kpi-glow, rgba(0,0,0,0.15));
}

.expense-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expense-kpi-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--kpi-color, var(--text-secondary));
  text-transform: uppercase;
}

.expense-kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  direction: ltr;
  text-align: right;
}

.expense-kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* KPI color variants */
.expense-kpi-revenue {
  --kpi-color: #10b981;
  --kpi-bg: rgba(16, 185, 129, 0.06);
  --kpi-glow: rgba(16, 185, 129, 0.2);
  --kpi-border: rgba(16, 185, 129, 0.15);
  --kpi-icon-bg: rgba(16, 185, 129, 0.12);
}
.expense-kpi-expenses {
  --kpi-color: #f43f5e;
  --kpi-bg: rgba(244, 63, 94, 0.06);
  --kpi-glow: rgba(244, 63, 94, 0.2);
  --kpi-border: rgba(244, 63, 94, 0.15);
  --kpi-icon-bg: rgba(244, 63, 94, 0.12);
}
.expense-kpi-balance {
  --kpi-color: #8b5cf6;
  --kpi-bg: rgba(139, 92, 246, 0.06);
  --kpi-glow: rgba(139, 92, 246, 0.2);
  --kpi-border: rgba(139, 92, 246, 0.15);
  --kpi-icon-bg: rgba(139, 92, 246, 0.12);
}

/* ── Revenue Breakdown Strip ────────────────────────────────────── */
.expense-revenue-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 28px;
  margin-bottom: 24px;
}
.expense-rev-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.expense-rev-item i {
  font-size: 18px;
  color: var(--accent-color);
  opacity: 0.7;
}
.expense-rev-item > div {
  display: flex;
  flex-direction: column;
}
.expense-rev-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}
.expense-rev-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  direction: ltr;
  text-align: right;
}
.expense-rev-negative {
  color: #f43f5e !important;
}
.expense-rev-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  margin: 0 24px;
}

/* ── Two Column Layout (Form + Categories) ──────────────────────── */
.expense-two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Form Card */
.expense-form-card,
.expense-categories-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}
.expense-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.expense-form-header i {
  color: var(--accent-color);
}

#expense-add-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.expense-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.expense-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.expense-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.expense-req { color: #f43f5e; }

.expense-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.25s;
}
.expense-input-wrap:focus-within {
  border-color: var(--accent-color);
}
.expense-input-wrap i {
  color: var(--text-secondary);
  font-size: 14px;
  min-width: 16px;
}
.expense-input-wrap input,
.expense-input-wrap select {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: Tajawal, sans-serif;
  font-size: 14px;
  min-width: 0;
}
.expense-input-wrap select option {
  background: var(--surface-color);
  color: var(--text-primary);
}

#expense-add-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
  color: var(--text-primary);
  font-family: Tajawal, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s;
}
#expense-add-form textarea:focus {
  border-color: var(--accent-color);
}

/* File Drop */
.expense-file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  color: var(--text-secondary);
  font-size: 13px;
}
.expense-file-drop:hover {
  border-color: var(--accent-color);
  background: rgba(19,181,243,0.04);
}
.expense-file-drop i {
  font-size: 24px;
  color: var(--accent-color);
  opacity: 0.6;
}
.expense-file-name {
  font-weight: 700;
  color: var(--accent-color);
}

/* Submit Button */
.expense-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.3);
  transition: opacity 0.2s, transform 0.2s;
}
.expense-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.expense-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Category Breakdown ─────────────────────────────────────────── */
.expense-categories-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expense-cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.expense-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.expense-cat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.expense-cat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.expense-cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.expense-cat-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  direction: ltr;
}
.expense-cat-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.expense-cat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.expense-cat-count {
  font-size: 11px;
  color: var(--text-secondary);
}

.expense-empty-cats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 13px;
}
.expense-empty-cats i {
  font-size: 32px;
  opacity: 0.3;
}

/* Category color mapping */
.cat-personal_withdrawal { background: rgba(139,92,246,0.12); color: #a78bfa; }
.cat-operational         { background: rgba(59,130,246,0.12); color: #60a5fa; }
.cat-salary              { background: rgba(16,185,129,0.12); color: #34d399; }
.cat-marketing           { background: rgba(251,191,36,0.12); color: #fbbf24; }
.cat-subscription        { background: rgba(236,72,153,0.12); color: #f472b6; }
.cat-equipment           { background: rgba(99,102,241,0.12); color: #818cf8; }
.cat-other               { background: rgba(148,163,184,0.12); color: #94a3b8; }
.bar-personal_withdrawal { background: #a78bfa; }
.bar-operational         { background: #60a5fa; }
.bar-salary              { background: #34d399; }
.bar-marketing           { background: #fbbf24; }
.bar-subscription        { background: #f472b6; }
.bar-equipment           { background: #818cf8; }
.bar-other               { background: #94a3b8; }

/* ── History Card ───────────────────────────────────────────────── */
.expense-history-card {
  margin-top: 0;
}
.expense-history-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Amount column styling in table */
.expense-amount-cell {
  font-weight: 800;
  color: #f43f5e;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
}
.expense-cat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.expense-receipt-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}
.expense-receipt-link:hover {
  opacity: 0.7;
}
.expense-delete-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.expense-delete-btn:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}

/* ── Pagination ─────────────────────────────────────────────────── */
.expense-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}
.expense-page-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-secondary);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.expense-page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.expense-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.expense-page-info {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .expense-two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .expense-kpi-grid {
    grid-template-columns: 1fr;
  }
  .expense-revenue-strip {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .expense-rev-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .expense-form-row {
    grid-template-columns: 1fr;
  }
}

/* Read-only fields */
.readonly-field {
  background: #f5f5f5 !important;
  color: #666 !important;
  cursor: not-allowed;
  border-color: #e0e0e0 !important;
}

/* ─── Companies Management — metric cards, filter pills, badges ─────
   Super-admin view of all laundries. Metric cards at the top give
   at-a-glance counts by status; filter pills below narrow the table
   to a single bucket. The pending-approval badge + row tint pulls
   the super-admin's eye to freshly-registered laundries waiting
   for first approval. */
.companies-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 980px) {
  .companies-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .companies-metrics { grid-template-columns: 1fr; }
}

.metric-card {
  position: relative;
  padding: 16px 18px;
  background: var(--surface-color, #1a1c22);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.metric-card:hover { transform: translateY(-1px); }

.metric-label {
  font-family: 'Tajawal', sans-serif;
  font-size: 12.5px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 6px;
}
.metric-value {
  font-family: 'Tajawal', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary, #fff);
}
.metric-icon {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  opacity: 0.18;
}

.metric-total .metric-icon { color: #13b5f3; }
.metric-visible .metric-icon,
.metric-visible { border-color: rgba(20, 184, 166, 0.28); }
.metric-visible .metric-icon { color: #14b8a6; }
.metric-hidden { border-color: rgba(245, 158, 11, 0.28); }
.metric-hidden .metric-icon { color: #f59e0b; }
.metric-suspended { border-color: rgba(239, 68, 68, 0.28); }
.metric-suspended .metric-icon { color: #ef4444; }
.metric-pending { border-color: rgba(168, 85, 247, 0.32); }
.metric-pending .metric-icon { color: #a855f7; }

/* Filter pills sit under the search bar inside the data-card. */
.companies-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 14px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
  margin-bottom: 6px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.10));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary, #94a3b8);
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #fff);
}
.filter-pill.active {
  background: rgba(19, 181, 243, 0.14);
  border-color: rgba(19, 181, 243, 0.45);
  color: #13b5f3;
}
.filter-pill-count {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.filter-pill.active .filter-pill-count {
  background: rgba(19, 181, 243, 0.22);
}

/* "Pending approval" badge — pulses gently on each freshly-
   registered laundry so the super-admin can scan the table and
   know exactly which rows need their attention. The row also
   gets a faint left-edge tint for the same purpose. */
.pending-approval-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.16);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.40);
  font-family: 'Tajawal', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  animation: pendingPulse 1.4s ease-in-out infinite;
}
@keyframes pendingPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

tr.row-pending-approval td {
  background: rgba(168, 85, 247, 0.04);
}
tr.row-pending-approval td:first-child {
  box-shadow: inset 3px 0 0 0 #a855f7;
}

/* Sidebar pending-approval count badge — same shape language as
   notification badges elsewhere. Sits to the inline-end of the
   "إدارة الشركات" sidebar label. The admin sidebar uses
   `.menu-item` (see views/admin.html), not `.nav-item`. */
.menu-item .sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-inline-start: 8px;
  border-radius: 10px;
  background: #a855f7;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}


.action-cell {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 100%;
  padding: 2px 0;
}

.action-cell-divider {
  width: 1px;
  align-self: stretch;
  margin: 4px 4px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  flex-shrink: 0;
}

.action-btn {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--ab-border, rgba(255, 255, 255, 0.10));
  background: var(--ab-bg, rgba(255, 255, 255, 0.04));
  color: var(--ab-fg, #fff);
  font-family: "Tajawal", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.action-btn:hover {
  background: var(--ab-bg-hover, rgba(255, 255, 255, 0.08));
  border-color: var(--ab-border-hover, var(--ab-border));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--ab-shadow, rgba(0, 0, 0, 0.25));
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.action-btn:focus-visible {
  outline: 2px solid var(--ab-fg);
  outline-offset: 2px;
}

.action-btn i {
  font-size: 13px;
  line-height: 1;
  opacity: 0.95;
}

.action-btn span {
  display: inline-block;
  position: relative;
}

.action-btn--approve {
  --ab-bg: rgba(34, 197, 94, 0.07);
  --ab-bg-hover: rgba(34, 197, 94, 0.18);
  --ab-border: rgba(34, 197, 94, 0.28);
  --ab-border-hover: rgba(34, 197, 94, 0.50);
  --ab-fg: #4ade80;
  --ab-shadow: rgba(34, 197, 94, 0.20);
}

.action-btn--info {
  --ab-bg: rgba(56, 189, 248, 0.07);
  --ab-bg-hover: rgba(56, 189, 248, 0.18);
  --ab-border: rgba(56, 189, 248, 0.28);
  --ab-border-hover: rgba(56, 189, 248, 0.50);
  --ab-fg: #38bdf8;
  --ab-shadow: rgba(56, 189, 248, 0.20);
}

.action-btn--caution {
  --ab-bg: rgba(245, 158, 11, 0.07);
  --ab-bg-hover: rgba(245, 158, 11, 0.18);
  --ab-border: rgba(245, 158, 11, 0.28);
  --ab-border-hover: rgba(245, 158, 11, 0.50);
  --ab-fg: #f59e0b;
  --ab-shadow: rgba(245, 158, 11, 0.20);
}

.action-btn--reject {
  --ab-bg: rgba(239, 68, 68, 0.07);
  --ab-bg-hover: rgba(239, 68, 68, 0.18);
  --ab-border: rgba(239, 68, 68, 0.28);
  --ab-border-hover: rgba(239, 68, 68, 0.50);
  --ab-fg: #f87171;
  --ab-shadow: rgba(239, 68, 68, 0.20);
}

/* Mid-viewport (laptop / tablet landscape): keep buttons compact so
 * the action cell with 4 buttons doesn't wrap. Still at 36px so the
 * tap target stays usable on touch laptops. */
@media (max-width: 1180px) and (min-width: 641px) {
  .action-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 6px;
  }
  .action-btn i {
    font-size: 12px;
  }
}
/* Mobile (≤640px): grow the tap target so an admin reviewing on a
 * phone can hit a single button without fat-fingering its neighbor.
 * 40px is the practical compromise — full 44px (iOS HIG) would push
 * the cell into vertical overflow when 4+ actions are present. */
@media (max-width: 640px) {
  .action-btn {
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    font-size: 12.5px;
    gap: 8px;
  }
  .action-btn i {
    font-size: 13px;
  }
}

/* ============================================================
   Review Drawer — super-admin company review surface
   ============================================================ */

.action-btn--review {
  --ab-bg: rgba(99, 102, 241, 0.08);
  --ab-bg-hover: rgba(99, 102, 241, 0.20);
  --ab-border: rgba(99, 102, 241, 0.32);
  --ab-border-hover: rgba(99, 102, 241, 0.55);
  --ab-fg: #a5b4fc;
  --ab-shadow: rgba(99, 102, 241, 0.25);
}

.action-cell-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
  align-self: center;
}

body.review-drawer-open {
  overflow: hidden;
}

.review-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5000;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.review-drawer-backdrop.is-visible {
  opacity: 1;
}
.review-drawer-backdrop.hidden {
  display: none;
}

.review-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(58vw, 920px);
  background: linear-gradient(180deg, #0b1220 0%, #0a0f1c 100%);
  border-inline-end: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  z-index: 5001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  color: #e2e8f0;
}
[dir="rtl"] .review-drawer {
  transform: translateX(100%);
}
.review-drawer.is-visible {
  transform: translateX(0);
}
.review-drawer.hidden {
  display: none;
}

.review-drawer-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(15, 23, 42, 0.92);
  border-block-end: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 2;
}

.review-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.review-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60ch;
}

.review-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #c7d2fe;
}
.review-state-badge--pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fcd34d;
}
.review-state-badge--info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
}
.review-state-badge--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.32);
  color: #86efac;
}
.review-state-badge--danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

.review-drawer-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.review-drawer-close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
  transform: rotate(90deg);
}

.review-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
}
.review-drawer-body::-webkit-scrollbar {
  width: 8px;
}
.review-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 4px;
}

.review-drawer-loading,
.review-drawer-error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 64px 24px;
  color: #94a3b8;
  font-size: 14px;
}
.review-drawer-loading i,
.review-drawer-error i {
  font-size: 28px;
  color: #6366f1;
}
.review-drawer-error i {
  color: #f87171;
}

.review-section {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 18px;
}

.review-section-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}
.review-section-title i {
  color: #818cf8;
  font-size: 14px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.review-kv {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.review-kv--full {
  grid-column: 1 / -1;
}
.review-kv-key {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.review-kv-val {
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 600;
  word-break: break-word;
}

.review-empty {
  margin: 0;
  padding: 22px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.review-pdf-shell {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.review-pdf-frame {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: #1e293b;
}
.review-pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.review-pdf-download:hover {
  background: rgba(99, 102, 241, 0.22);
}

.review-image-wrap {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
}
.review-image-wrap img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.review-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.0);
  color: #ffffff;
  opacity: 0;
  font-size: 22px;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.review-image-wrap:hover .review-image-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.review-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 8px;
  text-decoration: none;
}
.review-map-link:hover {
  background: rgba(34, 197, 94, 0.22);
}

.review-map-embed {
  grid-column: 1 / -1;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.review-map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.review-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.review-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}
.review-table thead {
  background: rgba(99, 102, 241, 0.08);
}
.review-table th,
.review-table td {
  padding: 10px 12px;
  text-align: start;
  border-block-end: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: top;
}
.review-table th {
  font-size: 12px;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.review-table tbody tr:last-child td {
  border-block-end: 0;
}
.review-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.review-discount-tag {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 999px;
}

.review-drawer-footer {
  flex: 0 0 auto;
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.95);
  border-block-start: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.review-decision-default {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-confirm-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 100%;
}

.review-drawer-footer--busy {
  pointer-events: none;
  opacity: 0.65;
}
.review-drawer-footer--busy .review-decision-btn {
  cursor: progress;
}

.review-decision-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.review-decision-btn:hover {
  transform: translateY(-1px);
}
.review-decision-btn--success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.review-decision-btn--success:hover {
  background: rgba(34, 197, 94, 0.24);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.18);
}
.review-decision-btn--danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.review-decision-btn--danger:hover {
  background: rgba(239, 68, 68, 0.24);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.18);
}
.review-decision-btn--info {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}
.review-decision-btn--info:hover {
  background: rgba(56, 189, 248, 0.24);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.18);
}
.review-decision-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.review-decision-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.review-decision-info {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
}
.review-decision-info i {
  color: #818cf8;
  flex: 0 0 auto;
}

.review-decision-reject {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-decision-reject-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.review-reject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-reject-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-align: start;
  max-width: 100%;
}
.review-reject-chip:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.32);
  color: #fecaca;
}
.review-reject-chip.is-selected {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.18);
}
.review-reject-chip--other {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
}
.review-reject-chip--other:hover {
  background: rgba(99, 102, 241, 0.2);
}

.review-reject-textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.review-reject-textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.review-reject-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .review-drawer {
    width: 78vw;
  }
}
@media (max-width: 900px) {
  .review-drawer {
    width: 100vw;
  }
  .review-drawer-header,
  .review-drawer-body,
  .review-drawer-footer {
    padding-inline: 16px;
  }
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
  .review-pdf-frame {
    height: 440px;
  }
}
@media (max-width: 640px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-drawer-title {
    font-size: 16px;
    max-width: 18ch;
  }
  .review-pdf-frame {
    height: 360px;
  }
  .review-map-embed iframe {
    height: 220px;
  }
  .review-decision-default {
    justify-content: stretch;
  }
  .review-decision-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .review-section {
    padding: 14px;
  }
  .review-drawer-header {
    padding-block: 14px;
  }
  .review-drawer-footer {
    padding-block: 12px;
  }
}
@media (max-width: 480px) {
  .review-image-wrap img {
    max-height: 320px;
  }
  /* At this size an inline PDF is unreadable, so hide the iframe
   * entirely and let the admin open the file in a new tab via the
   * download link below it. */
  .review-pdf-frame {
    display: none;
  }
  .review-pdf-shell {
    background: rgba(0, 0, 0, 0);
    border: 0;
  }
  .review-pdf-download {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Commission Control modal + Audit Log drawer
   Super-admin tooling — adjusts per-laundry commission % and shows
   the history of every admin mutation on a company.
   Matches existing dashboard tokens (--accent-color, Tajawal, dark
   surfaces). Both surfaces are fully RTL.
   ──────────────────────────────────────────────────────────── */

.commission-modal-content {
  max-width: 540px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(19, 181, 243, 0.18);
  background: var(--bg-card, #1e2130);
  padding: 0;
}

.commission-modal-banner {
  background: linear-gradient(135deg, #0e3a5a 0%, #0a253a 100%);
  padding: 26px 24px 22px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(19, 181, 243, 0.15);
}

.commission-modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.commission-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.commission-modal-banner-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(19, 181, 243, 0.18);
  border: 2px solid rgba(19, 181, 243, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
  color: var(--accent-color, #13b5f3);
}

.commission-modal-title {
  margin: 0 0 6px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.commission-modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-height: 1em;
}

.commission-modal-body {
  padding: 22px 24px 24px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

/* Current rate panel */
.commission-current-card {
  background: rgba(19, 181, 243, 0.05);
  border: 1px solid rgba(19, 181, 243, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  font-family: Tajawal, sans-serif;
}
.commission-current-card__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  padding: 4px 0;
}
.commission-current-card__loading i {
  color: var(--accent-color, #13b5f3);
}
.commission-current-card__error {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fca5a5;
  font-size: 13px;
}
.commission-current-rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.commission-current-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  font-weight: 600;
}
.commission-current-rate {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  direction: ltr;
}
.commission-current-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: Tajawal, sans-serif;
}
.commission-current-source-pill--override {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.commission-current-source-pill--tier {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.commission-current-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
}
.commission-current-meta strong {
  color: #fff;
  font-weight: 700;
  direction: ltr;
  display: inline-block;
}
.commission-tier-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.7;
}
.commission-tier-summary code {
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1px 6px;
  direction: ltr;
  display: inline-block;
}

/* Editor */
.commission-editor {
  margin-bottom: 16px;
}
.commission-editor-label {
  display: block;
  color: var(--text-secondary, #94a3b8);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.commission-editor-hint {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.75);
  margin-top: 2px;
}
.commission-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.commission-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 16px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease-out;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.commission-chip:hover {
  background: rgba(19, 181, 243, 0.1);
  border-color: rgba(19, 181, 243, 0.35);
  transform: translateY(-1px);
}
.commission-chip.is-selected {
  background: rgba(19, 181, 243, 0.18);
  border-color: var(--accent-color, #13b5f3);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(19, 181, 243, 0.4) inset;
}
.commission-chip--clear {
  font-weight: 600;
  color: rgba(252, 165, 165, 0.95);
  min-width: 0;
  padding: 9px 14px;
}
.commission-chip--clear.is-selected {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.45) inset;
}
.commission-custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.commission-custom-label {
  color: var(--text-secondary, #94a3b8);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
}
.commission-custom-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s;
}
.commission-custom-input-wrap:focus-within {
  border-color: rgba(19, 181, 243, 0.5);
}
.commission-custom-input {
  width: 90px;
  background: transparent;
  border: none;
  padding: 9px 12px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  direction: ltr;
  text-align: end;
}
.commission-custom-input::-webkit-outer-spin-button,
.commission-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.commission-custom-unit {
  padding: 0 10px 0 4px;
  color: var(--text-secondary, #94a3b8);
  font-size: 14px;
  font-weight: 700;
}
.commission-range-hint {
  color: rgba(148, 163, 184, 0.7);
  font-size: 11.5px;
  font-family: Tajawal, sans-serif;
  width: 100%;
  margin-top: 2px;
}

/* Meta */
.commission-meta {
  margin-bottom: 14px;
}
.commission-meta-label {
  display: block;
  color: var(--text-secondary, #94a3b8);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.commission-reason-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 12px;
}
.commission-reason-input:focus {
  border-color: rgba(19, 181, 243, 0.45);
}
.commission-notify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.commission-notify-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color, #13b5f3);
  cursor: pointer;
}
.commission-notify-text {
  color: var(--text-secondary, #94a3b8);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
}

/* History details */
.commission-history-details {
  margin-bottom: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}
.commission-history-details summary {
  cursor: pointer;
  color: var(--text-secondary, #94a3b8);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 6px 0;
  outline: none;
}
.commission-history-details summary::-webkit-details-marker {
  display: none;
}
.commission-history-details summary::after {
  content: "\f0d7";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-inline-start: auto;
  font-size: 11px;
  transition: transform 0.2s;
}
.commission-history-details[open] summary::after {
  transform: rotate(180deg);
}
.commission-history-count {
  background: rgba(19, 181, 243, 0.16);
  border: 1px solid rgba(19, 181, 243, 0.3);
  color: var(--accent-color, #13b5f3);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  direction: ltr;
}
.commission-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}
.commission-history-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: Tajawal, sans-serif;
}
.commission-history-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.commission-history-rate {
  font-weight: 800;
  color: #fff;
  direction: ltr;
}
.commission-history-arrow {
  color: var(--text-secondary, #94a3b8);
  margin: 0 6px;
}
.commission-history-when {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  direction: ltr;
}
.commission-history-reason {
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  line-height: 1.55;
}
.commission-history-actor {
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.75);
  margin-top: 4px;
  direction: ltr;
  text-align: end;
}

/* Action buttons */
.commission-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.commission-action-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: Tajawal, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.commission-action-btn--primary {
  background: linear-gradient(135deg, #13b5f3 0%, #0a8bc1 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(19, 181, 243, 0.28);
}
.commission-action-btn--primary:hover:not(:disabled) {
  opacity: 0.92;
}
.commission-action-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.commission-action-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
}
.commission-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Company name cell — name + inline commission chip on a single line
   so the row doesn't stack vertically. Chip wraps to a second line
   on narrow widths via flex-wrap. */
.company-name-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-weight: 600;
  min-width: 0;
}
.company-name-cell__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Commission badge — rendered as a clickable button. Doubles as the
   read-out (current rate / source) and the entry point for editing,
   so the action cell stays lean. */
.commission-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: Tajawal, sans-serif;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  white-space: nowrap;
}
.commission-badge i {
  font-size: 9px;
}
.commission-badge:hover {
  transform: translateY(-1px);
}
.commission-badge--default {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(148, 163, 184, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.commission-badge--default:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}
.commission-badge--override {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.commission-badge--override:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
}
.commission-badge:focus-visible {
  outline: 2px solid var(--accent-color, #13b5f3);
  outline-offset: 2px;
}

/* Icon-only action button variant — same surface treatment as
   .action-btn but compact (no text, square footprint). Every row
   action on the companies table uses this so the toolbar reads as
   a single, uniform line at every desktop width. Colors + glyphs
   carry the meaning; tooltips (title) carry the verbose Arabic
   explanation for new admins. */
.action-btn--icon {
  padding: 0;
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0;        /* swallow any whitespace inside button */
}
.action-btn--icon i {
  margin: 0 !important;
  font-size: 14px;
  opacity: 1;
}
.action-btn--icon span {
  display: none;
}
/* Primary-tier icon button — used for the review action so the
   most-clicked operation visually anchors the toolbar. Subtle
   accent-blue fill instead of the bordered surface used by the
   secondary actions. */
.action-btn--icon-primary {
  --ab-bg: rgba(19, 181, 243, 0.16);
  --ab-bg-hover: rgba(19, 181, 243, 0.28);
  --ab-border: rgba(19, 181, 243, 0.40);
  --ab-border-hover: rgba(19, 181, 243, 0.65);
  --ab-fg: #13b5f3;
  --ab-shadow: rgba(19, 181, 243, 0.22);
}

/* Purple-tier icon button — reserved for the audit-log action so
   it visually separates from the amber visibility-toggle and the
   red suspend. Distinct colour family means the five row actions
   never share a hue, even when hovering. */
.action-btn--icon-purple {
  --ab-bg: rgba(168, 85, 247, 0.10);
  --ab-bg-hover: rgba(168, 85, 247, 0.22);
  --ab-border: rgba(168, 85, 247, 0.34);
  --ab-border-hover: rgba(168, 85, 247, 0.62);
  --ab-fg: #c084fc;
  --ab-shadow: rgba(168, 85, 247, 0.24);
}

/* ──────────────────────────────────────────────────────────────
   Custom tooltip — JS-driven (see `_initTooltips` in admin.js)
   A single `.custom-tooltip` element lives at the end of <body>
   and is reused for every hover/focus on a `[data-tooltip]` host.
   Positioning is computed against `getBoundingClientRect()` so the
   tooltip stays inside the viewport even when the host is at the
   left edge of an RTL screen — no CSS-only solution can handle
   that reliably across the table contexts in this dashboard.
   ──────────────────────────────────────────────────────────── */
.custom-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #262932 0%, #181a20 100%);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 9px 13px;
  font-family: Tajawal, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 280px;
  text-align: right;
  direction: rtl;
  white-space: normal;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out,
    visibility 0s linear 0.2s;
}
.custom-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out,
    visibility 0s linear 0s;
}

/* Arrow — separately positioned via --tooltip-arrow-left to stay
   anchored to the host element's centre even when the tooltip is
   shifted to keep within viewport bounds. */
.custom-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
}
.custom-tooltip[data-placement="top"]::after {
  bottom: -12px;
  border-top-color: #1d1f25;
}
.custom-tooltip[data-placement="bottom"]::after {
  top: -12px;
  border-bottom-color: #262932;
}

/* ── Companies table — scoped denser spacing ──────────────────
   The global `td { padding: 18px 30px }` is too breathy when the
   row carries 9 columns. Scope a tighter padding to this table
   only so other admin tables (accounts, withdrawals, invoices)
   keep their existing rhythm. */
.companies-table {
  table-layout: auto;
}
.companies-table th,
.companies-table td {
  padding: 12px 14px;
  vertical-align: middle;
  font-size: 13.5px;
}
.companies-table th {
  font-size: 12px;
  letter-spacing: 0.2px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.companies-table th:first-child,
.companies-table td:first-child {
  padding-inline-start: 18px;
  width: 36px;
  color: var(--text-secondary, #94a3b8);
}
.companies-table th:last-child,
.companies-table td:last-child {
  padding-inline-end: 18px;
}
.companies-table .action-cell {
  flex-wrap: nowrap;
  gap: 6px;
}
.companies-table .commission-badge {
  flex-shrink: 0;
}
.companies-table .company-name-cell {
  flex-wrap: nowrap;
  min-width: 0;
}
.companies-table .company-name-cell__name {
  font-size: 14px;
}
.companies-table .status-badge {
  font-size: 11.5px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Narrow-laptop fallback — if the columns still get too tight,
   allow the action cell to wrap (rather than overflow horizontally
   or cause a horizontal scroll on the page). The badge inside the
   name cell wraps the same way. */
@media (max-width: 1280px) {
  .companies-table th,
  .companies-table td {
    padding: 10px 10px;
  }
  .companies-table .company-name-cell {
    flex-wrap: wrap;
  }
}
@media (max-width: 1080px) {
  .companies-table .action-cell {
    flex-wrap: wrap;
  }
}

/* Mobile: bump icon-only action buttons up to a 44px tap target —
   Apple HIG / Material Design baseline. Below this size, hitting
   the right button with a thumb on a phone is unreliable, and the
   five-icon toolbar gets even harder. Also gives the table cell
   a bit more vertical room so neighbouring rows don't crowd. */
@media (max-width: 640px) {
  .action-btn--icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .action-btn--icon i {
    font-size: 15px;
  }
  .companies-table .action-cell {
    gap: 8px;
  }
}

/* ── Audit Log drawer ────────────────────────────────────────── */
body.audit-drawer-open {
  overflow: hidden;
}

.audit-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(440px, 100vw);
  max-width: 100vw;
  background: var(--bg-card, #1a1c22);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  z-index: 1100;
  transform: translateX(-101%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: Tajawal, sans-serif;
}
[dir="rtl"] .audit-drawer {
  transform: translateX(101%);
}
.audit-drawer.is-visible {
  transform: translateX(0);
}
.audit-drawer.hidden {
  display: none;
}
.audit-drawer-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.audit-drawer-title-group {
  flex: 1;
  min-width: 0;
}
.audit-drawer-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.audit-drawer-subtitle {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  line-height: 1.45;
}
.audit-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}
.audit-drawer-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.audit-drawer-filter {
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.audit-filter-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.audit-filter-select {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s;
}
.audit-filter-select:focus {
  border-color: rgba(19, 181, 243, 0.45);
}
.audit-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px 22px;
}
.audit-drawer-loading,
.audit-drawer-error,
.audit-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--text-secondary, #94a3b8);
  padding: 40px 14px;
  font-size: 13px;
}
.audit-drawer-loading i,
.audit-drawer-error i,
.audit-drawer-empty i {
  font-size: 26px;
  margin-bottom: 4px;
}
.audit-drawer-loading i {
  color: var(--accent-color, #13b5f3);
}
.audit-drawer-error i {
  color: #fca5a5;
}
.audit-drawer-empty i {
  color: rgba(148, 163, 184, 0.6);
}
.audit-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audit-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}
.audit-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.audit-entry-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(19, 181, 243, 0.14);
  color: var(--accent-color, #13b5f3);
  border: 1px solid rgba(19, 181, 243, 0.28);
}
.audit-entry-action-chip--danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.32);
}
.audit-entry-action-chip--success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
}
.audit-entry-action-chip--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.audit-entry-when {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  direction: ltr;
}
.audit-entry-diff {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.65;
  margin-bottom: 8px;
}
.audit-entry-diff-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.audit-entry-diff-key {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}
.audit-entry-diff-arrow {
  color: var(--text-secondary, #94a3b8);
  font-size: 10px;
}
.audit-entry-diff-from,
.audit-entry-diff-to {
  direction: ltr;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 5px;
}
.audit-entry-diff-to {
  color: #86efac;
}
.audit-entry-diff-from {
  color: rgba(252, 165, 165, 0.85);
}
.audit-entry-reason {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary, #f1f5f9);
  margin: 0 0 6px;
}
.audit-entry-actor {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  direction: ltr;
}
.audit-entry-actor i {
  font-size: 10px;
}

@media (max-width: 720px) {
  .commission-modal-content {
    max-width: 100%;
    margin: 0 8px;
    border-radius: 16px;
  }
  .commission-modal-body {
    padding: 18px 18px 20px;
    max-height: calc(100vh - 200px);
  }
  .commission-current-meta {
    grid-template-columns: 1fr;
  }
  .commission-modal-banner {
    padding: 22px 18px 18px;
  }
  .commission-modal-title {
    font-size: 17px;
  }
  .commission-chip {
    flex: 1 0 calc(33.33% - 8px);
    padding: 10px 12px;
  }
  .audit-drawer {
    width: 100vw;
  }
  .audit-drawer-header,
  .audit-drawer-filter,
  .audit-drawer-body {
    padding-inline: 16px;
  }
}

@media (max-width: 420px) {
  .commission-chip {
    flex: 1 0 calc(50% - 8px);
    font-size: 13px;
  }
  .commission-custom-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .commission-current-rate {
    font-size: 24px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Platform Metrics tile
   Hero card on the super-admin overview showing the live
   operational pulse: today/MTD GMV, active orders, pending
   approvals, top-5 laundry leaderboard. Auto-refreshes every 60s.
   ──────────────────────────────────────────────────────────── */

.platform-metrics-tile {
  background: linear-gradient(
    135deg,
    rgba(19, 181, 243, 0.06) 0%,
    rgba(19, 181, 243, 0.015) 60%,
    transparent 100%
  ), var(--surface-color, #1a1c22);
  border: 1px solid rgba(19, 181, 243, 0.18);
  border-radius: 18px;
  padding: 22px 26px 24px;
  margin-bottom: 28px;
  font-family: Tajawal, sans-serif;
  position: relative;
  overflow: hidden;
}

.platform-metrics-tile::after {
  /* Soft accent glow in the corner to lift the tile from the page. */
  content: "";
  position: absolute;
  inset-block-start: -80px;
  inset-inline-start: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 181, 243, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.platform-metrics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.platform-metrics-title-group {
  min-width: 0;
  flex: 1;
}
.platform-metrics-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.platform-metrics-title i {
  color: var(--accent-color, #13b5f3);
  font-size: 15px;
}
.platform-metrics-subtitle {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  line-height: 1.5;
}
.platform-metrics-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.platform-metrics-updated {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.platform-metrics-updated::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-color, #00e676);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
}
.platform-metrics-updated.is-stale::before {
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}
.platform-metrics-refresh {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.platform-metrics-refresh:hover {
  background: rgba(19, 181, 243, 0.15);
  border-color: rgba(19, 181, 243, 0.35);
  color: var(--accent-color, #13b5f3);
}
.platform-metrics-refresh.is-loading i {
  animation: platform-spin 0.8s linear infinite;
}
@keyframes platform-spin {
  to { transform: rotate(360deg); }
}

/* Stat tiles grid */
.platform-metrics-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.platform-stat {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.platform-stat[role="button"] {
  cursor: pointer;
}
.platform-stat[role="button"]:hover,
.platform-stat[role="button"]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.platform-stat[role="button"]:focus-visible {
  outline: 2px solid var(--accent-color, #13b5f3);
  outline-offset: 2px;
}
.platform-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.platform-stat-body {
  min-width: 0;
  flex: 1;
}
.platform-stat-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.platform-stat-value {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  direction: ltr;
  word-break: break-all;
}
.platform-stat-sub {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  margin-top: 4px;
}

/* Color variants — each stat has a tinted icon for quick recognition */
.platform-stat--accent .platform-stat-icon {
  background: rgba(19, 181, 243, 0.16);
  color: var(--accent-color, #13b5f3);
}
.platform-stat--purple .platform-stat-icon {
  background: rgba(168, 85, 247, 0.16);
  color: #a855f7;
}
.platform-stat--green .platform-stat-icon {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}
.platform-stat--amber .platform-stat-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

/* Hint when there's a non-zero pending-approvals queue — gentle pulse
   on the icon to draw the eye without being noisy. */
.platform-stat--amber.has-attention .platform-stat-icon {
  animation: platform-attention 2.2s ease-in-out infinite;
}
@keyframes platform-attention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18); }
}

/* Leaderboard */
.platform-leaderboard {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  position: relative;
  z-index: 1;
}
.platform-leaderboard-head {
  margin-bottom: 12px;
}
.platform-leaderboard-title {
  margin: 0 0 3px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.platform-leaderboard-title i {
  color: #fbbf24;
  font-size: 13px;
}
.platform-leaderboard-sub {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
}
.platform-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.platform-leaderboard-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: background 0.18s, border-color 0.18s;
}
.platform-leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.platform-leaderboard-rank {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-secondary, #94a3b8);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.platform-leaderboard-rank--1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.08));
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}
.platform-leaderboard-rank--2 {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.22), rgba(203, 213, 225, 0.06));
  border-color: rgba(203, 213, 225, 0.45);
  color: #f1f5f9;
}
.platform-leaderboard-rank--3 {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.25), rgba(180, 83, 9, 0.08));
  border-color: rgba(180, 83, 9, 0.55);
  color: #fed7aa;
}
.platform-leaderboard-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.platform-leaderboard-suspended {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
}
.platform-leaderboard-revenue {
  color: var(--accent-color, #13b5f3);
  font-size: 14.5px;
  font-weight: 800;
  direction: ltr;
  white-space: nowrap;
}
.platform-leaderboard-orders {
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
  direction: ltr;
  white-space: nowrap;
}

.platform-leaderboard-skeleton {
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: platform-shimmer 1.4s ease-in-out infinite;
}
@keyframes platform-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.platform-leaderboard-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
}
.platform-leaderboard-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  color: rgba(148, 163, 184, 0.5);
}
.platform-leaderboard-empty p {
  margin: 0;
}

.platform-metrics-error {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.platform-metrics-retry {
  background: transparent;
  border: 1px solid rgba(252, 165, 165, 0.4);
  color: #fca5a5;
  border-radius: 8px;
  padding: 4px 10px;
  margin-inline-start: 6px;
  font-family: Tajawal, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.platform-metrics-retry:hover {
  background: rgba(252, 165, 165, 0.12);
  color: #fff;
}

/* Responsive: 4-up → 2x2 grid on tablet, single column on phone */
@media (max-width: 980px) {
  .platform-metrics-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .platform-metrics-tile {
    padding: 18px 18px 20px;
    border-radius: 14px;
  }
  .platform-metrics-stats {
    grid-template-columns: 1fr;
  }
  .platform-stat-value {
    font-size: 20px;
  }
  .platform-leaderboard {
    padding: 14px;
  }
  .platform-leaderboard-row {
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    row-gap: 4px;
  }
  .platform-leaderboard-revenue,
  .platform-leaderboard-orders {
    grid-column: 2;
  }
}

/* ──────────────────────────────────────────────────────────────
   Customer Support Drawer
   Slides in from start side (RTL: right). Phone search + customer
   profile panels (summary, wallets, subscriptions, orders) +
   refund flow. Trigger is the headset icon in the top nav.
   ──────────────────────────────────────────────────────────── */

/* Top-nav icon button used by the support drawer trigger. Reusable
   for any future top-nav action. */
.top-nav-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  margin-inline-end: 14px;
  font-family: inherit;
}
.top-nav-icon-btn:hover {
  background: rgba(19, 181, 243, 0.18);
  border-color: rgba(19, 181, 243, 0.42);
  color: var(--accent-color, #13b5f3);
  transform: translateY(-1px);
}
.top-nav-icon-btn:focus-visible {
  outline: 2px solid var(--accent-color, #13b5f3);
  outline-offset: 2px;
}

body.support-drawer-open {
  overflow: hidden;
}

.support-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(560px, 100vw);
  background: var(--bg-card, #1a1c22);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  z-index: 1100;
  transform: translateX(-101%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: Tajawal, sans-serif;
}
[dir="rtl"] .support-drawer {
  transform: translateX(101%);
}
.support-drawer.is-visible {
  transform: translateX(0);
}
.support-drawer.hidden {
  display: none;
}

.support-drawer-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.support-drawer-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.support-drawer-title i {
  color: var(--accent-color, #13b5f3);
  font-size: 16px;
}
.support-drawer-subtitle {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  line-height: 1.5;
}
.support-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.support-drawer-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Search bar */
.support-drawer-search {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
}
.support-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  transition: border-color 0.18s;
}
.support-search-input-wrap:focus-within {
  border-color: rgba(19, 181, 243, 0.5);
}
.support-search-icon {
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  padding: 0 12px;
}
.support-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 0;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 14px;
  direction: ltr;
  text-align: end;
}
.support-search-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}
.support-search-clear {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
  transition: color 0.18s;
}
.support-search-clear:hover {
  color: #fff;
}
.support-search-submit {
  background: linear-gradient(135deg, #13b5f3 0%, #0a8bc1 100%);
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
}
.support-search-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.support-search-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Body — overall scroll container */
.support-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px 24px;
}
.support-drawer-empty,
.support-drawer-loading,
.support-drawer-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: var(--text-secondary, #94a3b8);
  padding: 60px 16px;
  font-size: 13px;
}
.support-drawer-empty i,
.support-drawer-loading i,
.support-drawer-error i {
  font-size: 32px;
  margin-bottom: 4px;
}
.support-drawer-empty i { color: rgba(148, 163, 184, 0.55); }
.support-drawer-loading i { color: var(--accent-color, #13b5f3); }
.support-drawer-error i { color: #fca5a5; }
.support-drawer-empty p,
.support-drawer-loading p,
.support-drawer-error p {
  margin: 0;
  max-width: 280px;
  line-height: 1.55;
}

.support-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.support-drawer-content.hidden {
  display: none;
}

/* Sections */
.support-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
}
.support-section-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-section-title i {
  color: var(--accent-color, #13b5f3);
  font-size: 12px;
}
.support-section-empty {
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  padding: 6px 2px;
}

/* Customer summary card */
.support-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.support-summary-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 181, 243, 0.22), rgba(19, 181, 243, 0.08));
  border: 1px solid rgba(19, 181, 243, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-color, #13b5f3);
  flex-shrink: 0;
}
.support-summary-info {
  min-width: 0;
}
.support-summary-info h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-customer-phone {
  margin: 0 0 3px;
  color: var(--text-primary, #f1f5f9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.support-customer-meta {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
}
.support-summary-totals {
  display: flex;
  gap: 10px;
}
.support-total {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 78px;
}
.support-total-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 2px;
}
.support-total-value {
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  direction: ltr;
}

/* Wallets list */
.support-wallets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.support-wallet-row__name {
  color: var(--text-primary, #f1f5f9);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-wallet-row__balance {
  color: #4ade80;
  font-size: 13.5px;
  font-weight: 800;
  direction: ltr;
  white-space: nowrap;
}

/* Subscriptions list */
.support-subs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-sub-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
}
.support-sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.support-sub-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-sub-company {
  color: var(--text-secondary, #94a3b8);
  font-size: 11px;
  flex-shrink: 0;
}
.support-sub-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
}
.support-sub-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.support-sub-meta strong {
  color: #fff;
  direction: ltr;
}

/* Orders timeline */
.support-orders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-order-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
}
.support-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.support-order-ref {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  direction: ltr;
}
.support-order-amount {
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  direction: ltr;
}
.support-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 8px;
}
.support-order-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.support-order-status-chip--completed {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.support-order-status-chip--refunded {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.support-order-status-chip--cancelled {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.support-order-status-chip--in-flight {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.support-order-refund-btn {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  border-radius: 8px;
  padding: 5px 11px;
  font-family: Tajawal, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.18s, border-color 0.18s;
  margin-inline-start: auto;
}
.support-order-refund-btn:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.6);
  color: #fff;
}
.support-order-refund-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Refund confirmation modal ──────────────────────────────── */
.refund-modal-content {
  max-width: 480px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: var(--bg-card, #1e2130);
  padding: 0;
}
.refund-modal-banner {
  background: linear-gradient(135deg, #4a1d8f 0%, #2b0e5a 100%);
  padding: 26px 24px 20px;
  text-align: center;
  position: relative;
}
.refund-modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.refund-modal-close:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}
.refund-modal-banner-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.25);
  border: 2px solid rgba(168, 85, 247, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: #d8b4fe;
}
.refund-modal-title {
  margin: 0 0 5px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.refund-modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: Tajawal, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
}
.refund-modal-body {
  padding: 20px 24px 22px;
  font-family: Tajawal, sans-serif;
}
.refund-modal-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 14px;
  line-height: 1.6;
}
.refund-modal-summary strong {
  color: #fff;
  direction: ltr;
}
.refund-modal-label {
  display: block;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.refund-required {
  color: #fca5a5;
}
.refund-reason-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 16px;
}
.refund-reason-input:focus {
  border-color: rgba(168, 85, 247, 0.55);
}
.refund-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.refund-action-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 11px;
  font-family: Tajawal, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
}
.refund-action-btn--primary {
  background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}
.refund-action-btn--primary:hover:not(:disabled) {
  opacity: 0.93;
}
.refund-action-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.refund-action-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
}
.refund-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 640px) {
  .support-drawer {
    width: 100vw;
  }
  .support-drawer-header,
  .support-drawer-search,
  .support-drawer-body {
    padding-inline: 16px;
  }
  .support-summary {
    grid-template-columns: auto 1fr;
  }
  .support-summary-totals {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .support-total {
    flex: 1;
  }
}

/* ──────────────────────────────────────────────────────────────
   Bulk Operations on Companies
   * Custom checkbox column (header + per-row)
   * Floating action bar that slides up when selection > 0
   * Bulk-suspend modal with shared reason
   ──────────────────────────────────────────────────────────── */

.companies-table__select {
  width: 36px;
  padding-inline-start: 14px !important;
  padding-inline-end: 4px !important;
}
.companies-table td.companies-table__select {
  width: 36px;
}

/* Custom checkbox — neutral by default, accent on check. Reused
   for header "select all" and per-row selection. */
.bulk-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.bulk-checkbox input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.bulk-checkbox__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}
.bulk-checkbox__box::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0.5);
  opacity: 0;
  transition: opacity 0.15s, transform 0.18s;
  margin-top: -2px;
}
.bulk-checkbox input[type="checkbox"]:checked + .bulk-checkbox__box {
  background: var(--accent-color, #13b5f3);
  border-color: var(--accent-color, #13b5f3);
}
.bulk-checkbox input[type="checkbox"]:checked + .bulk-checkbox__box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.bulk-checkbox input[type="checkbox"]:focus-visible + .bulk-checkbox__box {
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.32);
}
.bulk-checkbox input[type="checkbox"]:indeterminate + .bulk-checkbox__box {
  background: rgba(19, 181, 243, 0.4);
  border-color: var(--accent-color, #13b5f3);
}
.bulk-checkbox input[type="checkbox"]:indeterminate + .bulk-checkbox__box::after {
  content: "";
  width: 9px;
  height: 2px;
  border: none;
  background: #fff;
  transform: none;
  opacity: 1;
  margin-top: 0;
}

/* Highlight rows that are part of the current selection. */
.companies-table tr.is-selected {
  background: rgba(19, 181, 243, 0.06);
}

/* Floating bulk action bar — sticky at the bottom of the viewport */
.bulk-action-bar {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(180deg, #1d2129 0%, #14171d 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(19, 181, 243, 0.10);
  z-index: 900;
  font-family: Tajawal, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease-out,
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.22s;
  max-width: calc(100vw - 32px);
}
.bulk-action-bar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.22s ease-out,
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}
.bulk-action-bar.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bulk-action-bar__count {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding-inline-end: 14px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}
.bulk-action-bar__count i {
  color: var(--accent-color, #13b5f3);
  font-size: 14px;
}
.bulk-action-bar__count span {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-color, #13b5f3);
  direction: ltr;
  display: inline-block;
}

.bulk-action-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bulk-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 8px 13px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.bulk-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.bulk-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bulk-action-btn--approve {
  border-color: rgba(34, 197, 94, 0.32);
  color: #4ade80;
  background: rgba(34, 197, 94, 0.08);
}
.bulk-action-btn--approve:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
}
.bulk-action-btn--caution {
  border-color: rgba(245, 158, 11, 0.32);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}
.bulk-action-btn--caution:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.55);
}
.bulk-action-btn--reject {
  border-color: rgba(239, 68, 68, 0.32);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}
.bulk-action-btn--reject:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.55);
}
.bulk-action-btn--unsuspend {
  border-color: rgba(168, 85, 247, 0.32);
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
}
.bulk-action-btn--unsuspend:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.55);
}
.bulk-action-bar__clear {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-inline-start: 6px;
}
.bulk-action-bar__clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Bulk-suspend modal */
.bulk-suspend-modal-content {
  max-width: 480px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, 0.20);
  background: var(--bg-card, #1e2130);
  padding: 0;
}
.bulk-suspend-banner {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  padding: 24px 22px 20px;
  text-align: center;
  position: relative;
}
.bulk-suspend-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.bulk-suspend-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.bulk-suspend-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid rgba(239, 68, 68, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
  color: #fca5a5;
}
.bulk-suspend-title {
  margin: 0 0 5px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.bulk-suspend-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: Tajawal, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
}
.bulk-suspend-body {
  padding: 20px 24px 22px;
  font-family: Tajawal, sans-serif;
}
.bulk-suspend-label {
  display: block;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bulk-suspend-reason {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 16px;
}
.bulk-suspend-reason:focus {
  border-color: rgba(239, 68, 68, 0.45);
}
.bulk-suspend-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bulk-suspend-action-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 11px;
  font-family: Tajawal, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
}
.bulk-suspend-action-btn--primary {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.bulk-suspend-action-btn--primary:hover:not(:disabled) {
  opacity: 0.93;
}
.bulk-suspend-action-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.bulk-suspend-action-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
}
.bulk-suspend-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 760px) {
  .bulk-action-bar {
    bottom: 12px;
    padding: 8px 10px;
    gap: 10px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    transform: translateY(20px);
    max-width: none;
  }
  .bulk-action-bar.is-visible {
    transform: translateY(0);
  }
  .bulk-action-bar__count {
    border: none;
    padding-inline-end: 0;
    font-size: 12.5px;
  }
  .bulk-action-bar__actions {
    flex: 1;
    justify-content: flex-end;
  }
  .bulk-action-btn span {
    display: none;
  }
  .bulk-action-btn {
    padding: 8px 10px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Notification Templates section
   List of editable copy for outbound SMS/push. Cards link to a
   modal editor with placeholder chips, body textarea, and a live
   client-side preview pane.
   ──────────────────────────────────────────────────────────── */

/* Class-name collision fix. `.section-card { display: none }` is
   also defined in onboarding.css for the onboarding stepper, where
   each step card is hidden until `.is-active` is added. The admin's
   `.section-card` is a different concept (a generic titled wrapper)
   and must always be visible when its parent `.dashboard-section`
   is shown. This more-specific selector beats the onboarding rule
   for admin only; the onboarding stepper keeps its toggle behavior. */
.dashboard-section .section-card {
  display: block;
}

.section-card {
  background: var(--surface-color, #1a1c22);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 24px;
  font-family: Tajawal, sans-serif;
}
.section-card-head {
  margin-bottom: 18px;
}
.section-card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.section-card-title i {
  color: var(--accent-color, #13b5f3);
  font-size: 15px;
}
.section-card-subtitle {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  line-height: 1.65;
}
.section-card-subtitle code {
  background: rgba(19, 181, 243, 0.10);
  border: 1px solid rgba(19, 181, 243, 0.22);
  color: #67c9f9;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 12px;
  direction: ltr;
  display: inline-block;
}

.notif-templates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.notif-templates-loading {
  color: var(--text-secondary, #94a3b8);
  padding: 40px 14px;
  text-align: center;
  font-size: 13.5px;
  grid-column: 1 / -1;
}
.notif-templates-loading i {
  color: var(--accent-color, #13b5f3);
  margin-inline-end: 6px;
}

.notif-template-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px 12px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-template-card:hover {
  background: rgba(19, 181, 243, 0.06);
  border-color: rgba(19, 181, 243, 0.30);
  transform: translateY(-1px);
}
.notif-template-card:focus-visible {
  outline: 2px solid var(--accent-color, #13b5f3);
  outline-offset: 2px;
}
.notif-template-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.notif-template-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.notif-template-card__chips {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.notif-template-card__chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-family: Tajawal, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.notif-template-card__chip i {
  font-size: 9px;
}
.notif-template-card__chip--sms {
  background: rgba(19, 181, 243, 0.14);
  color: #67c9f9;
  border: 1px solid rgba(19, 181, 243, 0.28);
}
.notif-template-card__chip--push {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
}
.notif-template-card__chip--override {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.30);
}
.notif-template-card__chip--disabled {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.30);
}
.notif-template-card__description {
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  line-height: 1.55;
}
.notif-template-card__preview {
  color: var(--text-primary, #f1f5f9);
  font-size: 12.5px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.20);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  max-height: 3.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-template-card__meta {
  color: rgba(148, 163, 184, 0.7);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-template-card__meta i {
  font-size: 10px;
}

/* ── Editor modal ───────────────────────────────────────────── */
.notif-template-modal-content {
  max-width: 580px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(19, 181, 243, 0.18);
  background: var(--bg-card, #1e2130);
  padding: 0;
}
.notif-template-banner {
  background: linear-gradient(135deg, #0e3a5a 0%, #0a253a 100%);
  padding: 24px 22px 18px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(19, 181, 243, 0.15);
}
.notif-template-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.notif-template-close:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}
.notif-template-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(19, 181, 243, 0.18);
  border: 2px solid rgba(19, 181, 243, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: var(--accent-color, #13b5f3);
}
.notif-template-title {
  margin: 0 0 4px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.notif-template-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: Tajawal, sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
}
.notif-template-body {
  padding: 20px 22px 22px;
  font-family: Tajawal, sans-serif;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.notif-template-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 14px;
}
.notif-template-section-label:first-child {
  margin-top: 0;
}
.notif-template-section-label i {
  font-size: 11px;
  color: var(--accent-color, #13b5f3);
}
.notif-template-placeholders-hint,
.notif-template-preview-hint {
  font-size: 11px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.70);
  margin-inline-start: auto;
}

/* Placeholder chips */
.notif-template-placeholders-wrap {
  margin-bottom: 16px;
}
.notif-template-placeholders-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.notif-template-placeholders-empty {
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
}
.notif-template-placeholder-chip {
  background: rgba(19, 181, 243, 0.10);
  border: 1px solid rgba(19, 181, 243, 0.30);
  color: #67c9f9;
  border-radius: 8px;
  padding: 5px 10px;
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.18s, transform 0.18s;
}
.notif-template-placeholder-chip:hover {
  background: rgba(19, 181, 243, 0.22);
  transform: translateY(-1px);
}
.notif-template-placeholder-chip__desc {
  font-family: Tajawal, sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.70);
}

/* Restore-default link in the body label */
.notif-template-restore-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary, #94a3b8);
  font-family: Tajawal, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 2px 8px;
  margin-inline-start: auto;
  transition: background 0.18s, color 0.18s;
}
.notif-template-restore-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.notif-template-restore-btn i {
  font-size: 10px;
}

/* Textarea */
.notif-template-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 4px;
}
.notif-template-textarea:focus {
  border-color: rgba(19, 181, 243, 0.5);
}

/* Live preview pane */
.notif-template-preview {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, rgba(34, 197, 94, 0.02) 100%);
  border: 1px solid rgba(34, 197, 94, 0.20);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  min-height: 50px;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

/* Active toggle */
.notif-template-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--text-secondary, #94a3b8);
  font-family: Tajawal, sans-serif;
  font-size: 12.5px;
  margin-top: 12px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.notif-template-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color, #13b5f3);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Action buttons */
.notif-template-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notif-template-action-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 11px;
  font-family: Tajawal, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
}
.notif-template-action-btn--primary {
  background: linear-gradient(135deg, #13b5f3 0%, #0a8bc1 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(19, 181, 243, 0.28);
}
.notif-template-action-btn--primary:hover:not(:disabled) {
  opacity: 0.93;
}
.notif-template-action-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.notif-template-action-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
}
.notif-template-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 640px) {
  .notif-template-modal-content {
    max-width: 100%;
    margin: 0 8px;
    border-radius: 14px;
  }
  .notif-template-body {
    padding: 16px 18px 20px;
    max-height: calc(100vh - 180px);
  }
  .notif-template-banner {
    padding: 20px 18px 14px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Featured-Laundry Placement section
   * List of currently pinned + scheduled + expired placements
   * Add / edit modal with company picker + datetime fields
   ──────────────────────────────────────────────────────────── */

.featured-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.featured-add-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border: none;
  border-radius: 11px;
  padding: 10px 16px;
  color: #1a1c22;
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.25);
}
.featured-add-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.featured-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.featured-list-loading,
.featured-list-empty {
  color: var(--text-secondary, #94a3b8);
  padding: 36px 14px;
  text-align: center;
  font-size: 13.5px;
}
.featured-list-loading i,
.featured-list-empty i {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  color: rgba(251, 191, 36, 0.6);
}

.featured-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.featured-row__rank {
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  text-align: center;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.30);
  border-radius: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
}
.featured-row__main {
  min-width: 0;
}
.featured-row__name {
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
}
.featured-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.featured-row__meta i {
  font-size: 10px;
}
.featured-row__meta strong {
  color: #fff;
  direction: ltr;
}

.featured-row__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-family: Tajawal, sans-serif;
}
.featured-row__status i {
  font-size: 9px;
}
.featured-row__status--live {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.32);
}
.featured-row__status--scheduled {
  background: rgba(19, 181, 243, 0.14);
  color: #67c9f9;
  border: 1px solid rgba(19, 181, 243, 0.28);
}
.featured-row__status--expired {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(148, 163, 184, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.30);
}
.featured-row__status--disabled {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.featured-row__actions {
  display: flex;
  gap: 6px;
}

/* ── Add / Edit modal ───────────────────────────────────────── */
.featured-modal-content {
  max-width: 540px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: var(--bg-card, #1e2130);
  padding: 0;
}
.featured-modal-banner {
  background: linear-gradient(135deg, #78350f 0%, #422006 100%);
  padding: 24px 22px 20px;
  text-align: center;
  position: relative;
}
.featured-modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.featured-modal-close:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}
.featured-modal-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.22);
  border: 2px solid rgba(251, 191, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: #fde68a;
}
.featured-modal-title {
  margin: 0 0 4px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.featured-modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
  font-family: Tajawal, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
}
.featured-modal-body {
  padding: 20px 22px 22px;
  font-family: Tajawal, sans-serif;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.featured-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-bottom: 12px;
}
.featured-modal-label {
  display: block;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 10px;
}
.featured-modal-grid .featured-modal-label {
  margin-top: 0;
}
.featured-modal-hint {
  font-weight: 500;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.70);
}
.featured-required {
  color: #fca5a5;
}
.featured-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s;
  direction: ltr;
  text-align: end;
}
.featured-modal-input:focus {
  border-color: rgba(251, 191, 36, 0.55);
}
.featured-modal-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  cursor: pointer;
  padding-top: 10px;
}
.featured-modal-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #fbbf24;
  cursor: pointer;
}

/* Company picker inside the add modal */
.featured-company-picker {
  position: relative;
  margin-bottom: 8px;
}
.featured-company-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s;
}
.featured-company-search:focus {
  border-color: rgba(251, 191, 36, 0.5);
}
.featured-company-results {
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.featured-company-result {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  border: none;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  padding: 9px 13px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.featured-company-result:last-child { border-bottom: none; }
.featured-company-result:hover,
.featured-company-result:focus-visible {
  background: rgba(251, 191, 36, 0.12);
  color: #fff;
  outline: none;
}
.featured-company-results-empty {
  padding: 10px 13px;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
}
.featured-company-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.30);
  border-radius: 10px;
  padding: 9px 13px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
}
.featured-company-selected i {
  font-size: 14px;
}
.featured-company-clear {
  margin-inline-start: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary, #94a3b8);
  border-radius: 7px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.featured-company-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.featured-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.featured-action-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 11px;
  font-family: Tajawal, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
}
.featured-action-btn--primary {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #1a1c22;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.30);
}
.featured-action-btn--primary:hover:not(:disabled) {
  opacity: 0.94;
}
.featured-action-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.featured-action-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
}
.featured-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 640px) {
  .featured-card-head {
    flex-direction: column;
    align-items: stretch;
  }
  .featured-add-btn {
    align-self: flex-start;
  }
  .featured-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 8px;
  }
  .featured-row__rank {
    grid-row: 1 / -1;
  }
  .featured-row__status,
  .featured-row__actions {
    grid-column: 2;
  }
  .featured-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────
   Geographic Heat Map section
   * Totals strip (cities / orders / GMV in last 90 days)
   * City ranking with horizontal-bar visualization
   * Leaflet map with weighted circle markers
   ──────────────────────────────────────────────────────────── */

.geo-card .section-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.geo-refresh-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.geo-refresh-btn:hover {
  background: rgba(19, 181, 243, 0.16);
  color: var(--accent-color, #13b5f3);
  border-color: rgba(19, 181, 243, 0.40);
  transform: translateY(-1px);
}
.geo-refresh-btn.is-loading i {
  animation: platform-spin 0.8s linear infinite;
}

.geo-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.geo-total {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
}
.geo-total-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.geo-total-value {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  direction: ltr;
}

.geo-subtitle {
  margin: 18px 0 12px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.geo-subtitle i {
  color: var(--accent-color, #13b5f3);
  font-size: 13px;
}

.geo-cities-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.geo-city-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 6px 4px;
}
.geo-city-row__name {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.geo-city-row__bar-wrap {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.geo-city-row__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #13b5f3, #6366f1);
}
.geo-city-row__metric {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.geo-city-row__metric strong {
  color: #fff;
  direction: ltr;
}
.geo-cities-empty {
  color: var(--text-secondary, #94a3b8);
  padding: 24px 12px;
  text-align: center;
  font-size: 12.5px;
}

.geo-map-wrap {
  position: relative;
}
.geo-map {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
/* Dim the Leaflet tile layer slightly to sit better against the
   dark dashboard surface. Pure CSS — no JS / plugin needed. */
.geo-map .leaflet-tile {
  filter: brightness(0.78) saturate(0.85) hue-rotate(-6deg);
}
.geo-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 10px;
}
.geo-map .leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.78);
}
.geo-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 17, 21, 0.9);
  border-radius: 14px;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
}
.geo-map-empty i {
  font-size: 30px;
  color: rgba(148, 163, 184, 0.5);
}

.geo-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .geo-totals {
    grid-template-columns: 1fr;
  }
  .geo-city-row {
    grid-template-columns: 1fr auto auto;
  }
  .geo-city-row__bar-wrap {
    grid-column: 1 / -1;
    width: 100%;
    order: 4;
    margin-top: 2px;
  }
  .geo-map {
    height: 260px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Owner Insights (Phase 4)
   * Peak-times heatmap (7×24 cells)
   * Revenue forecast (history bars + projected band)
   * Employee leaderboard (rank list)
   * Pricing suggestions (verdict chips)
   * Closure schedule (cards + add modal)
   ──────────────────────────────────────────────────────────── */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.insights-card {
  background: var(--surface-color, #1a1c22);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 20px 22px;
  font-family: Tajawal, sans-serif;
}
.insights-card-head {
  margin-bottom: 14px;
}
.insights-card-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.insights-card-title i {
  font-size: 14px;
  color: var(--accent-color, #13b5f3);
}
.insights-card--peak .insights-card-title i { color: #f97316; }
.insights-card--forecast .insights-card-title i { color: #4ade80; }
.insights-card--employees .insights-card-title i { color: #fbbf24; }
.insights-card--pricing .insights-card-title i { color: #c084fc; }
.insights-card-subtitle {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  line-height: 1.6;
}
.insights-loading {
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  padding: 20px 4px;
  text-align: center;
}
.insights-loading i { color: var(--accent-color, #13b5f3); margin-inline-end: 6px; }
.insights-error {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Peak-times heatmap — 7×24 grid */
.peak-grid {
  display: grid;
  grid-template-columns: 70px repeat(24, 1fr);
  gap: 2px;
  font-size: 10.5px;
  direction: ltr;  /* hour axis reads left-to-right naturally */
}
.peak-grid__hour-label,
.peak-grid__day-label {
  color: var(--text-secondary, #94a3b8);
  font-weight: 600;
  font-size: 9.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.peak-grid__day-label {
  font-family: Tajawal, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding-inline-end: 6px;
  direction: rtl;
  justify-content: flex-end;
}
.peak-grid__hour-label {
  height: 16px;
}
.peak-grid__cell {
  height: 18px;
  border-radius: 3px;
  background: rgba(249, 115, 22, var(--cell-intensity, 0));
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: default;
  position: relative;
  transition: transform 0.12s;
}
.peak-grid__cell:hover {
  transform: scale(1.4);
  z-index: 5;
  outline: 1px solid rgba(255, 255, 255, 0.25);
}
.peak-peak-info {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(249, 115, 22, 0.10);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 10px;
  color: #fb923c;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.peak-peak-info i { font-size: 12px; }
.peak-peak-info strong { color: #fff; direction: ltr; display: inline-block; }
.peak-empty {
  color: var(--text-secondary, #94a3b8);
  padding: 30px 12px;
  text-align: center;
  font-size: 13px;
}

/* Revenue forecast */
.forecast-history {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 110px;
  margin-bottom: 14px;
  padding: 0 4px;
}
.forecast-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.forecast-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: opacity 0.18s;
}
.forecast-bar--partial {
  background: repeating-linear-gradient(
    45deg,
    rgba(74, 222, 128, 0.6) 0 6px,
    rgba(74, 222, 128, 0.25) 6px 12px
  );
}
.forecast-bar--projection {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.55), rgba(22, 163, 74, 0.35));
  border: 1.5px dashed rgba(74, 222, 128, 0.65);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.forecast-bar-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 10.5px;
  font-weight: 600;
  direction: ltr;
  white-space: nowrap;
}
.forecast-projection {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.forecast-projection-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.forecast-projection-value {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  direction: ltr;
  margin-bottom: 6px;
}
.forecast-projection-band {
  color: rgba(148, 163, 184, 0.85);
  font-size: 11.5px;
  direction: ltr;
}

/* Employee leaderboard */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.leaderboard-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: rgba(251, 191, 36, 0.85);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
}
.leaderboard-rank--1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(251, 191, 36, 0.10));
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.55);
}
.leaderboard-rank--2 {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.30), rgba(203, 213, 225, 0.08));
  color: #f1f5f9;
  border-color: rgba(203, 213, 225, 0.45);
}
.leaderboard-rank--3 {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.30), rgba(180, 83, 9, 0.10));
  color: #fed7aa;
  border-color: rgba(180, 83, 9, 0.50);
}
.leaderboard-name {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaderboard-metric {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
}
.leaderboard-metric strong {
  color: #fff;
  direction: ltr;
}
.leaderboard-empty {
  color: var(--text-secondary, #94a3b8);
  padding: 20px 8px;
  text-align: center;
  font-size: 13px;
}

/* Pricing suggestions */
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.pricing-service-name {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pricing-price-row {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.pricing-price-row strong {
  color: #fff;
  direction: ltr;
}
.pricing-verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-family: Tajawal, sans-serif;
}
.pricing-verdict i { font-size: 9px; }
.pricing-verdict--aligned {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.30);
}
.pricing-verdict--overpriced {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.30);
}
.pricing-verdict--underpriced {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.30);
}
.pricing-verdict--no_peer_data {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(203, 213, 225, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.pricing-empty {
  color: var(--text-secondary, #94a3b8);
  padding: 20px 8px;
  text-align: center;
  font-size: 13px;
}

/* Closures — list + add modal */
.closures-card {
  background: var(--surface-color, #1a1c22);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 22px 24px;
  font-family: Tajawal, sans-serif;
}
.closures-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.closures-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.closures-title i {
  color: #f97316;
  font-size: 15px;
}
.closures-subtitle {
  margin: 0;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  line-height: 1.65;
}
.closures-add-btn {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  border: none;
  border-radius: 11px;
  padding: 10px 16px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25);
}
.closures-add-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.closures-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.closures-empty {
  color: var(--text-secondary, #94a3b8);
  padding: 36px 14px;
  text-align: center;
  font-size: 13px;
}
.closures-empty i {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  color: rgba(148, 163, 184, 0.5);
}

.closure-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.closure-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.closure-row__icon--live {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.30);
}
.closure-row__icon--scheduled {
  background: rgba(19, 181, 243, 0.14);
  color: var(--accent-color, #13b5f3);
  border: 1px solid rgba(19, 181, 243, 0.30);
}
.closure-row__icon--past {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(203, 213, 225, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.closure-row__main { min-width: 0; }
.closure-row__title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.closure-row__meta {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  direction: ltr;
  text-align: end;
}
.closure-row__status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.closure-row__status--live {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.30);
}
.closure-row__status--scheduled {
  background: rgba(19, 181, 243, 0.12);
  color: var(--accent-color, #13b5f3);
  border: 1px solid rgba(19, 181, 243, 0.28);
}
.closure-row__status--past {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(203, 213, 225, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Closure type badge (closures-list row) + type picker chips (add modal).
   Holiday = calm blue, Maintenance = amber, generic = neutral grey
   fallback for unknown/future types. */
.closure-row__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-inline-end: 8px;
  vertical-align: middle;
}
.closure-row__type-badge--holiday {
  background: rgba(19, 181, 243, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(19, 181, 243, 0.30);
}
.closure-row__type-badge--maintenance {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.closure-row__type-badge--generic {
  background: rgba(148, 163, 184, 0.14);
  color: rgba(203, 213, 225, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.closure-type-picks {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.closure-type-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary, #94a3b8);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: all 0.15s ease;
}
.closure-type-chip i { font-size: 14px; }
.closure-type-chip--holiday.is-active {
  background: rgba(19, 181, 243, 0.14);
  color: #7dd3fc;
  border-color: rgba(19, 181, 243, 0.45);
}
.closure-type-chip--maintenance.is-active {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}

/* Add-closure modal — variant of the bulk-suspend pattern */
.closure-modal-content {
  max-width: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: var(--bg-card, #1e2130);
  padding: 0;
}

/* Redesigned closure modal (v2) — wider with inline range calendar,
   quick-pick chips, all-day toggle, and live summary card. */
.closure-modal-content--v2 {
  max-width: 540px;
}
.closure-modal-content--v2 .closure-modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.closure-step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 10px;
  font-family: Tajawal, sans-serif;
}
.closure-step-label:first-child {
  margin-top: 0;
}
.closure-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.20);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.42);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.closure-step-hint {
  font-weight: 500;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.75);
  margin-inline-start: auto;
}

.closure-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.closure-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.closure-chip i { font-size: 10px; opacity: 0.85; }
.closure-chip:hover {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.40);
  color: #fdba74;
  transform: translateY(-1px);
}
.closure-chip.is-active {
  background: rgba(249, 115, 22, 0.22);
  border-color: rgba(249, 115, 22, 0.60);
  color: #fff;
}

/* Inline calendar mount + per-calendar overrides on top of the
   existing .fancy-calendar dark theme so the range looks correct.
   Flatpickr renders inline with width:auto by default; we width the
   container to look at home in the modal. */
/* The calendar lives inside a presentation "card" that aligns with
   the other step containers above (chips, summary, reason). The
   card draws a subtle gradient + border to give the calendar a
   visual home rather than floating in a gap. */
.closure-calendar-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 6px 18px rgba(0, 0, 0, 0.25);
}
.closure-calendar-mount {
  width: 100%;
}
/* Force the inline calendar to fill the card width — flatpickr's
   default has a hardcoded `width: 307.875px` we need to override
   with both !important AND higher specificity. */
.closure-calendar-card .flatpickr-calendar,
.closure-calendar-mount .flatpickr-calendar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
.closure-calendar-card .flatpickr-days,
.closure-calendar-card .dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}
/* Each day cell stretches to take 1/7 of the container — gives the
   calendar an even grid look at any modal width, instead of the
   ~308px-fixed grid huddling to one corner. */
.closure-calendar-card .flatpickr-day {
  max-width: none;
  flex: 1 1 calc(100% / 7);
  height: 40px;
  line-height: 38px;
  border-radius: 9px;
  margin: 1px 0;
  border: 1px solid transparent;
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  color: var(--text-primary, #f1f5f9);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.closure-calendar-card .flatpickr-day:hover {
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(249, 115, 22, 0.30);
}
.closure-calendar-card .flatpickr-day.flatpickr-disabled,
.closure-calendar-card .flatpickr-day.prevMonthDay,
.closure-calendar-card .flatpickr-day.nextMonthDay {
  color: rgba(148, 163, 184, 0.35);
}
.closure-calendar-card .flatpickr-day.today {
  border-color: rgba(19, 181, 243, 0.55);
  color: var(--accent-color, #13b5f3);
  font-weight: 700;
}
/* Range highlight in orange to match the section's accent. The
   start/end dates carry a filled gradient; mid-range days carry a
   tinted tint. Both win the cascade with !important since the
   default flatpickr theme uses higher specificity. */
.closure-calendar-card .flatpickr-day.startRange,
.closure-calendar-card .flatpickr-day.endRange,
.closure-calendar-card .flatpickr-day.selected {
  background: linear-gradient(135deg, #f97316, #c2410c) !important;
  border-color: rgba(249, 115, 22, 0.85) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}
.closure-calendar-card .flatpickr-day.inRange {
  background: rgba(249, 115, 22, 0.18) !important;
  border-color: rgba(249, 115, 22, 0.32) !important;
  color: #fed7aa !important;
  box-shadow: none !important;
}
/* Weekday header row — Arabic day names with a subtle separator
   beneath. */
.closure-calendar-card .flatpickr-weekdays {
  background: transparent !important;
  margin-top: 6px;
  padding: 0;
}
.closure-calendar-card .flatpickr-weekdaycontainer {
  display: flex;
  width: 100%;
}
.closure-calendar-card .flatpickr-weekday {
  color: var(--text-secondary, #94a3b8) !important;
  font-family: Tajawal, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
  margin-bottom: 4px;
  flex: 1 1 calc(100% / 7);
}
/* Month / year header — make the navigation arrows luxurious */
.closure-calendar-card .flatpickr-months {
  padding: 4px 2px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.closure-calendar-card .flatpickr-month {
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-weight: 700;
  font-size: 14px;
  height: 34px;
  flex: 1;
}
.closure-calendar-card .flatpickr-current-month {
  padding: 0;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.closure-calendar-card .flatpickr-current-month .cur-month {
  font-weight: 800;
  color: #fff;
  font-family: Tajawal, sans-serif;
}
.closure-calendar-card .flatpickr-current-month input.cur-year {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px;
  width: 64px;
  text-align: center;
  direction: ltr;
}
.closure-calendar-card .flatpickr-current-month .flatpickr-monthDropdown-months {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 10px;
}
.closure-calendar-card .flatpickr-prev-month,
.closure-calendar-card .flatpickr-next-month {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  padding: 0 !important;
}
.closure-calendar-card .flatpickr-prev-month svg,
.closure-calendar-card .flatpickr-next-month svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.closure-calendar-card .flatpickr-prev-month:hover,
.closure-calendar-card .flatpickr-next-month:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.40);
  color: #fdba74 !important;
}

/* All-day toggle as a real card-style choice */
.closure-all-day-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 10px;
}
.closure-all-day-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #f97316;
  cursor: pointer;
}
.closure-all-day-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: Tajawal, sans-serif;
  line-height: 1.5;
}
.closure-all-day-text strong {
  color: #fff;
  font-size: 13px;
}
.closure-all-day-text small {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
}

.closure-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.closure-time-row.hidden {
  display: none;
}
.closure-time-input {
  text-align: center;
}

/* Summary card */
.closure-summary {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.02));
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fed7aa;
  font-family: Tajawal, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  margin: 6px 0 16px;
}
.closure-summary--empty {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: start;
}
.closure-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.closure-summary-row i {
  font-size: 11px;
  color: #fdba74;
}
.closure-summary-row strong {
  color: #fff;
  direction: ltr;
  display: inline-block;
}

.closure-reason-input {
  margin-bottom: 6px;
}
.closure-reason-note {
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.7;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.closure-reason-note i {
  color: #fdba74;
  font-size: 11px;
  margin-top: 4px;
}
.closure-modal-banner {
  background: linear-gradient(135deg, #9a3412 0%, #431407 100%);
  padding: 24px 22px 18px;
  text-align: center;
  position: relative;
}
.closure-modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.10);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.closure-modal-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.closure-modal-banner-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.22);
  border: 2px solid rgba(249, 115, 22, 0.50);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 20px;
  color: #fdba74;
}
.closure-modal-title {
  margin: 0 0 4px;
  color: #fff;
  font-family: Tajawal, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
}
.closure-modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-family: Tajawal, sans-serif;
}
.closure-modal-body {
  padding: 20px 22px 22px;
  font-family: Tajawal, sans-serif;
}
.closure-modal-label {
  display: block;
  color: var(--text-secondary, #94a3b8);
  font-size: 12.5px;
  font-weight: 700;
  margin: 10px 0 6px;
}
.closure-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--text-primary, #f1f5f9);
  font-family: Tajawal, sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s;
  direction: ltr;
  text-align: end;
}
.closure-modal-input:focus {
  border-color: rgba(249, 115, 22, 0.55);
}
.closure-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.closure-action-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 11px;
  font-family: Tajawal, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
}
.closure-action-btn--primary {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.30);
}
.closure-action-btn--primary:hover:not(:disabled) { opacity: 0.94; }
.closure-action-btn--primary:disabled { opacity: 0.55; cursor: not-allowed; }
.closure-action-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
}
.closure-action-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

@media (max-width: 720px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .closures-card-head {
    flex-direction: column;
    align-items: stretch;
  }
  .closures-add-btn {
    align-self: flex-start;
  }
  .closure-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
  }
  .closure-row__status {
    grid-column: 3;
    grid-row: 1;
  }
  .closure-row__meta {
    grid-column: 2 / -1;
  }
}

/* ──────────────────────────────────────────────────────────────
   Marketing observability — opt-in/out split + recent-send audit
   feed for the recurring re-engagement push (Wed/Thu/Sat). Reads
   from /accountant/admin/marketing-stats/ which surfaces both the
   current preferences and the last 14 MarketingPushLog rows.
   ──────────────────────────────────────────────────────────── */

.marketing-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.marketing-total {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
}
.marketing-total-label {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.marketing-total-value {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  direction: ltr;
}

.marketing-subtitle {
  margin: 18px 0 12px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.marketing-subtitle i {
  color: var(--accent-color, #13b5f3);
  font-size: 13px;
}

.marketing-sends-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.marketing-sends-empty {
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  text-align: center;
  padding: 30px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  line-height: 1.7;
}

.marketing-send-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.marketing-send-row__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.marketing-send-row__date,
.marketing-send-row__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
}
.marketing-send-row__date {
  color: var(--text-secondary, #94a3b8);
}
.marketing-send-row__date i,
.marketing-send-row__stats i {
  color: var(--accent-color, #13b5f3);
  font-size: 11.5px;
}
.marketing-send-row__buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.marketing-send-row__skipped {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  font-style: italic;
}

.marketing-bucket-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.marketing-bucket-chip--never {
  background: rgba(19, 181, 243, 0.14);
  color: #67c9f9;
  border: 1px solid rgba(19, 181, 243, 0.28);
}
.marketing-bucket-chip--active {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.marketing-bucket-chip--lapsed {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.32);
}
.marketing-bucket-chip--dormant {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.30);
}

.marketing-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.30);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .marketing-totals {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Pause / resume banner ─────────────────────────────────── */
.marketing-pause-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.marketing-pause-banner--active {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.marketing-pause-banner--paused {
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.34);
}
.marketing-pause-banner__state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-wrap: wrap;
}
.marketing-pause-banner__state > i {
  font-size: 17px;
}
.marketing-pause-banner--active .marketing-pause-banner__state > i {
  color: #86efac;
}
.marketing-pause-banner--paused .marketing-pause-banner__state > i {
  color: #fcd34d;
}
.marketing-pause-banner__meta {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  font-weight: 500;
}
.marketing-pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: Tajawal, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.marketing-pause-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.marketing-pause-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Charts row (donut + sparkline bar) ────────────────────── */
.marketing-charts {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 14px;
  margin-bottom: 22px;
}
.marketing-chart-wrap {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.marketing-chart-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.marketing-chart-title i {
  color: var(--accent-color, #13b5f3);
  font-size: 12px;
}
.marketing-chart-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  height: 220px;
  min-height: 220px;
}
@media (max-width: 860px) {
  .marketing-charts {
    grid-template-columns: 1fr;
  }
  .marketing-pause-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .marketing-pause-btn {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD MODAL REDESIGN — Add Services & Create Package
   Scoped to #service-modal / #package-modal so the shared base
   classes used by the onboarding flow (under #step-12 / #step-13)
   are left untouched. Goals: calmer motion (no overshoot/slide,
   per the dashboard motion guidelines), flatter & more elegant
   surfaces, clearer hierarchy, more comfortable spacing.
   No IDs, handlers, or business logic changed.
   ═══════════════════════════════════════════════════════════════ */

#service-modal .modal-content,
#package-modal .modal-content {
  border-radius: 20px;
}

/* ───────────────────────── Add Services ───────────────────────── */

/* Tight label→field grouping with clear separation between sections */
#service-modal .service-form-structured {
  gap: 8px;
}

#service-modal .svc-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-primary);
}
#service-modal .service-form-structured > .svc-section-label:first-child {
  margin-top: 0;
}
/* Was var(--primary-color) (#21242b) inline — invisible on the dark
   surface. Accent makes the section icons actually read. */
#service-modal .svc-section-label i {
  color: var(--accent-color);
  font-size: 13px;
}
#service-modal .svc-section-optional {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}

#service-modal .service-form-label {
  font-size: 12px;
  color: var(--text-secondary);
}

#service-modal .service-form-structured input {
  height: 50px;
  border-radius: 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#service-modal .service-form-structured input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.12);
}

/* Price field + currency suffix (replaces inline-positioned span) */
#service-modal .service-form-row--price {
  max-width: 260px;
}
#service-modal .svc-price-field {
  position: relative;
}
#service-modal .svc-price-suffix {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Added-services preview — calm hover (drop the sideways slide) */
#service-modal .collection-item {
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
#service-modal .collection-item:hover {
  transform: none;
  border-color: var(--accent-color);
  background: rgba(19, 181, 243, 0.04);
}

/* ──────────────────────── Create Package ──────────────────────── */

#package-modal .package-builder-v2 {
  gap: 18px;
}

#package-modal .section-title-v2 {
  font-size: 16px;
  margin-bottom: 6px;
}
#package-modal .section-title-v2 i {
  font-size: 16px;
}

/* Service rows: flat, elegant, no sideways slide or bounce */
#package-modal .service-option-v2 {
  border-width: 1px;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease;
}
#package-modal .service-option-v2:hover {
  transform: none;
  border-color: rgba(19, 181, 243, 0.4);
  background: rgba(19, 181, 243, 0.04);
  box-shadow: none;
}
#package-modal .service-option-v2.active {
  box-shadow: inset 0 0 0 1px var(--accent-color);
}
#package-modal .service-option-v2.active::before {
  transition: transform 0.25s ease; /* drop the overshoot bezier */
}
#package-modal .service-option-header-v2 strong {
  font-size: 15px;
  font-weight: 700;
}
/* JS renders .service-option-desc-v2 (base CSS only had …-description-v2) */
#package-modal .service-option-desc-v2 {
  font-size: 12px;
  color: var(--text-secondary);
}
#package-modal .btn-select-service-v2 {
  border-radius: 8px;
  padding: 7px 16px;
  transition: background 0.2s ease;
}
#package-modal .btn-select-service-v2:hover {
  transform: none;
  background: #0ea5e9;
  box-shadow: none;
}

/* Package tier cards: calm lift, no bounce on the check badge */
#package-modal .package-options-inline {
  gap: 14px;
}
#package-modal .package-option-v2 {
  border-width: 1px;
  border-radius: 14px;
  padding: 18px 14px;
  transition: border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}
#package-modal .package-option-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
#package-modal .package-option-v2.selected {
  box-shadow: inset 0 0 0 1px var(--accent-color);
}
#package-modal .package-option-v2::after {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#package-modal .option-icon {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Price block + inputs */
#package-modal .price-info-grid {
  border-radius: 12px;
}
#package-modal .price-input-v2 {
  border-width: 1px;
  border-radius: 12px;
}
/* Keep the dark theme on focus — the base inverted to a white field
   with dark text, which is jarring inside the dark modal. */
#package-modal .price-input-v2:focus {
  background: var(--bg-color);
  color: var(--text-primary);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.12);
}

#package-modal .btn-create-package-v2 {
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
#package-modal .btn-create-package-v2:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* ── Create Laundry (super-admin onboarding) panel ─────────────────── */
.cl-card {
  background: var(--surface-color, #1a1c22);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 22px;
  padding: 30px 32px;
  max-width: 1040px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* Header */
.cl-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}
.cl-head-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(19, 181, 243, 0.12);
  color: var(--accent-color, #13b5f3);
  font-size: 22px;
}
.cl-head-text { min-width: 0; }
.cl-title {
  color: var(--text-primary, #fff);
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
}
.cl-subtitle {
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
  max-width: 70ch;
}

/* Field groups */
.cl-group { margin-bottom: 26px; }
.cl-group:last-of-type { margin-bottom: 0; }
.cl-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cl-group-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(19, 181, 243, 0.14);
  color: var(--accent-color, #13b5f3);
  font-size: 12.5px;
  font-weight: 800;
}
.cl-group-title {
  color: var(--text-primary, #fff);
  font-size: 14.5px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.2px;
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.cl-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cl-span2 { grid-column: 1 / -1; }
.cl-label {
  color: rgba(226, 232, 240, 0.9);
  font-size: 12.5px;
  font-weight: 700;
}
.cl-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text-primary, #fff);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}
.cl-input::placeholder { color: rgba(148, 163, 184, 0.55); }
.cl-input:focus {
  outline: none;
  border-color: rgba(19, 181, 243, 0.6);
  background: rgba(19, 181, 243, 0.06);
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.12);
}
select.cl-input { cursor: pointer; }
.cl-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #fcd34d;
  font-size: 11.5px;
  line-height: 1.65;
  margin-top: 3px;
}
.cl-hint i { margin-top: 1px; flex-shrink: 0; }

/* Upload zones (dashed, click-to-upload — matches onboarding/expense) */
/* auto-fit so the two zones stay roomy and collapse to one column gracefully
   on tablet widths instead of getting cramped before the 720px breakpoint. */
.cl-grid--uploads { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cl-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  min-height: 138px;
  padding: 20px;
  border: 2px dashed rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cl-upload:hover {
  border-color: rgba(19, 181, 243, 0.6);
  background: rgba(19, 181, 243, 0.05);
}
.cl-upload:focus-visible {
  outline: none;
  border-color: var(--accent-color, #13b5f3);
  box-shadow: 0 0 0 3px rgba(19, 181, 243, 0.16);
}
.cl-upload-input { display: none; }
.cl-upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(19, 181, 243, 0.12);
  color: var(--accent-color, #13b5f3);
  font-size: 20px;
  transition: transform 0.2s ease;
}
.cl-upload:hover .cl-upload-icon { transform: translateY(-2px); }
.cl-upload-prompt {
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 700;
}
.cl-upload-types {
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
}
.cl-upload-file {
  display: none;
  align-items: center;
  gap: 7px;
  color: #34d399;
  font-size: 12.5px;
  font-weight: 700;
  max-width: 100%;
}
.cl-upload-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
}
.cl-upload.has-file {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.06);
}
.cl-upload.has-file .cl-upload-prompt,
.cl-upload.has-file .cl-upload-types { display: none; }
.cl-upload.has-file .cl-upload-file { display: inline-flex; }
.cl-upload.has-file .cl-upload-icon {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
}

/* Actions */
.cl-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  flex-wrap: wrap;
}
.cl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.cl-btn--primary {
  background: var(--accent-color, #13b5f3);
  color: #fff;
  box-shadow: 0 6px 16px rgba(19, 181, 243, 0.28);
}
.cl-btn--primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.cl-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.cl-btn--ghost {
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}
.cl-btn--ghost:hover { background: rgba(148, 163, 184, 0.14); }
.cl-result {
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.cl-result-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary, #fff);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}
.cl-result-head i { color: #34d399; }
.cl-result-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(226, 232, 240, 0.85);
  font-size: 13px;
  margin-bottom: 6px;
}
.cl-result-row span { color: var(--text-secondary, #94a3b8); }
.cl-ok { color: #34d399; }
.cl-warn { color: #f87171; }
.cl-result-steps {
  color: rgba(226, 232, 240, 0.8);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 12px 0 14px;
}
.cl-resend-btn { font-size: 12.5px; padding: 8px 14px; }

@media (max-width: 720px) {
  .cl-card { padding: 22px 20px; border-radius: 18px; }
  .cl-grid,
  .cl-grid--uploads { grid-template-columns: 1fr; }
  .cl-head { gap: 13px; }
  .cl-head-icon { width: 46px; height: 46px; font-size: 19px; }
  .cl-title { font-size: 19px; }
}

/* ── Contact Us (owner support panel) ──────────────────────────────── */
/* Keep the panel at the top of the content area and horizontally centred
   as a full-width banner — `margin-bottom: auto` defeats any inherited
   bottom-anchoring when the content area behaves as a flex column. */
#section-contact { margin-bottom: auto; }
.contactus-wrap {
  max-width: 1400px;
  margin: 0 auto;
}
.contactus-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.contactus-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 32px;
  background: radial-gradient(
      120% 160% at 100% 0%,
      rgba(19, 181, 243, 0.16) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, rgba(19, 181, 243, 0.08), rgba(19, 181, 243, 0));
  border-bottom: 1px solid var(--border-color);
}
.contactus-head-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(19, 181, 243, 0.16);
  color: var(--accent-color);
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(19, 181, 243, 0.2);
}
.contactus-head-text {
  min-width: 0;
}
.contactus-title {
  color: var(--text-primary);
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 6px;
}
.contactus-sub {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 70ch;
}
.contactus-body {
  padding: 26px 32px 30px;
}
.contactus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.contactus-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  border-radius: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.contactus-channel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.contactus-channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}
.contactus-channel:hover::before {
  opacity: 0.8;
}
.contactus-channel-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 22px;
}
.contactus-channel-label {
  color: var(--text-primary);
  font-size: 15.5px;
  font-weight: 700;
}
.contactus-channel-value {
  color: var(--text-secondary);
  font-size: 13px;
  direction: ltr;
  unicode-bidi: isolate;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contactus-channel-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
}
.contactus-channel-cta i {
  font-size: 11px;
  transition: transform 0.18s ease;
}
.contactus-channel:hover .contactus-channel-cta i {
  transform: translateX(-4px);
}
/* Brand accents — `color` also drives the top hairline (::before). */
.contactus-channel--whatsapp {
  color: #25d366;
}
.contactus-channel--whatsapp .contactus-channel-icon {
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
}
.contactus-channel--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
}
.contactus-channel--whatsapp .contactus-channel-cta {
  color: #25d366;
}
.contactus-channel--x {
  color: #e7e9ea;
}
.contactus-channel--x .contactus-channel-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.contactus-channel--x:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.contactus-channel--x .contactus-channel-cta {
  color: #e7e9ea;
}
.contactus-channel--email {
  color: var(--accent-color);
}
.contactus-channel--email .contactus-channel-icon {
  background: rgba(19, 181, 243, 0.14);
  color: var(--accent-color);
}
.contactus-channel--email:hover {
  border-color: rgba(19, 181, 243, 0.5);
}
.contactus-channel--email .contactus-channel-cta {
  color: var(--accent-color);
}
@media (max-width: 768px) {
  .contactus-banner {
    padding: 24px 22px;
    gap: 14px;
  }
  .contactus-head-icon {
    width: 50px;
    height: 50px;
    font-size: 21px;
  }
  .contactus-title {
    font-size: 20px;
  }
  .contactus-body {
    padding: 22px 22px 24px;
  }
}
@media (max-width: 576px) {
  .contactus-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
}
