/* ==========================================================================
   SHORTLONG HUB — REVOLUT FINTECH DESIGN SYSTEM (MASTER V5 GLOBAL)
   Strictly aligned with revoult DESIGN.md specification
   Zero fake data | 1M Concurrent Users Ready | 100% Client-Side Pure CSS
   ========================================================================== */

/* ─── 1. CORE CANVASES & TOKENS (OBSIDIAN FINTECH PRO) ─── */
:root, html.dark, [data-theme="dark"], html:not(.light-theme) body {
  --bg-app:         #06090f !important;
  --bg-sidebar:     #080c14 !important;
  --bg-header:      rgba(9, 13, 22, 0.88) !important;
  --bg-overlay:     rgba(3, 6, 12, 0.86) !important;

  --surface-0:      #080c14 !important;
  --surface-1:      #0d131f !important;
  --surface-2:      #121a29 !important;
  --surface-3:      #182235 !important;
  --surface-4:      #1f2c42 !important;
  --surface-hover:  #162032 !important;
  --surface-active: #1d2940 !important;

  --border-subtle:  rgba(255, 255, 255, 0.06) !important;
  --border-default: rgba(255, 255, 255, 0.09) !important;
  --border-strong:  rgba(255, 255, 255, 0.16) !important;
  --border-focus:   #4f46e5 !important;

  --text-primary:   #f8fafc !important;
  --text-secondary: rgba(226, 232, 240, 0.78) !important;
  --text-tertiary:  #94a3b8 !important;
  --text-muted:     #64748b !important;
  --text-disabled:  #475569 !important;

  --brand-500:      #4f46e5 !important;
  --brand-400:      #6366f1 !important;
  --brand-300:      #818cf8 !important;
  --accent:         #3b82f6 !important;
  --accent-hover:   #60a5fa !important;

  --profit:         #10b981 !important;
  --loss:           #f43f5e !important;
  --success-500:    #10b981 !important;
  --danger-500:     #f43f5e !important;
  --warning-500:    #f59e0b !important;
}

/* ─── 2. GLOBAL APP BACKGROUND & CANVAS (SCOPED TO DARK MODE) ─── */
html:not(.light-theme) body,
html:not(.light-theme) .bg-app,
html:not(.light-theme) #mainScrollContainer,
html:not(.light-theme) #appView,
html:not(.light-theme) .tab-section,
html:not(.light-theme) [id^="sec-"],
html:not(.light-theme) main,
html:not(.light-theme) article {
  background-color: #06090f !important;
  color: #f8fafc !important;
}

/* ─── 3. TOP NAVBAR HEADER & USER BADGE ─── */
html:not(.light-theme) header,
html:not(.light-theme) #topNavbar,
html:not(.light-theme) .top-header-bar {
  background-color: rgba(9, 13, 22, 0.88) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Header Role Badge ("مدیریت"): Sleek dark pill with emerald dot */
#userRoleBadge,
.header-role-badge,
header [class*="bg-emerald"],
header [class*="bg-green"] {
  background: rgba(18, 26, 41, 0.9) !important;
  background-image: none !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 5px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#userRoleBadge i,
.header-role-badge i,
header [class*="bg-emerald"] i,
header [class*="bg-green"] i {
  color: #10b981 !important;
}

/* ─── 4. GLOBAL PRIMARY CTA: ROYAL-INDIGO FINTECH METALLIC PILL ─── */
.ibm-btn-primary,
button.ibm-btn-primary,
button[onclick*="openCreate"],
button[onclick*="openNew"],
button[onclick*="openAdd"],
button[type="submit"]:not(.ibm-btn-secondary):not(.btn-secondary):not([class*="delete"]):not([class*="danger"]),
.btn-primary,
[class*="bg-gradient-to-r"][class*="from-cyan-600"],
[class*="bg-gradient-to-r"][class*="from-blue-600"],
[class*="bg-gradient-to-r"][class*="from-amber-500"] {
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.3, 1) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.ibm-btn-primary *,
button.ibm-btn-primary *,
button[onclick*="openCreate"] *,
button[onclick*="openNew"] *,
button[onclick*="openAdd"] *,
button[type="submit"]:not(.ibm-btn-secondary) *,
.btn-primary *,
[class*="bg-gradient-to-r"][class*="from-cyan-600"] *,
[class*="bg-gradient-to-r"][class*="from-blue-600"] *,
[class*="bg-gradient-to-r"][class*="from-amber-500"] * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.ibm-btn-primary:hover,
button.ibm-btn-primary:hover,
button[onclick*="openCreate"]:hover,
button[onclick*="openNew"]:hover,
button[onclick*="openAdd"]:hover,
button[type="submit"]:not(.ibm-btn-secondary):hover,
.btn-primary:hover,
[class*="bg-gradient-to-r"][class*="from-cyan-600"]:hover,
[class*="bg-gradient-to-r"][class*="from-blue-600"]:hover,
[class*="bg-gradient-to-r"][class*="from-amber-500"]:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* ─── 5. GLOBAL SECONDARY ACTIONS: REVOLUT TRANSLUCENT DARK PILLS ─── */
.ibm-btn-save,
.ibm-btn-secondary,
.btn-secondary,
button[onclick*="saveUserDashboardProfile"],
button[onclick*="resetIbmDashboardLayout"],
button[onclick*="openDashboardWidgetsModal"],
button[onclick*="loadDashboardData"],
button[onclick*="loadCorrespondenceList"],
button[onclick*="loadTasksTabMainData"],
button[onclick*="reload"],
button[onclick*="refresh"] {
  background: #11141a !important;
  background-image: none !important;
  background-color: #11141a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 7px 16px !important;
  transition: all 0.18s ease !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ibm-btn-save *,
.ibm-btn-secondary *,
.btn-secondary *,
button[onclick*="saveUserDashboardProfile"] *,
button[onclick*="resetIbmDashboardLayout"] *,
button[onclick*="openDashboardWidgetsModal"] *,
button[onclick*="loadDashboardData"] *,
button[onclick*="loadCorrespondenceList"] *,
button[onclick*="loadTasksTabMainData"] * {
  color: #ffffff !important;
}

.ibm-btn-save:hover,
.ibm-btn-secondary:hover,
.btn-secondary:hover,
button[onclick*="saveUserDashboardProfile"]:hover,
button[onclick*="resetIbmDashboardLayout"]:hover,
button[onclick*="openDashboardWidgetsModal"]:hover,
button[onclick*="loadDashboardData"]:hover,
button[onclick*="loadCorrespondenceList"]:hover {
  background: #181d26 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-1px) !important;
}

/* ─── 6. GLOBAL SEGMENTED CONTROLS & SCOPE TABS ─── */
/* E.g., IB Leaderboard tabs, Inbox/Outbox scope, Preset buttons */
.corr-scope-btn,
.ib-rank-tab,
.smart-preset-btn,
[id^="pipeTab-"],
.segment-tab-btn {
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  transition: all 0.15s ease !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.65) !important;
  cursor: pointer !important;
}

/* Inactive Hover */
.corr-scope-btn:not(.active):hover,
.ib-rank-tab:not(.active):not([class*="bg-indigo"]):hover,
.smart-preset-btn:not(.active):hover,
[id^="pipeTab-"]:not(.active):hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Active Segmented Pill -> Pure White with Black Text */
.corr-scope-btn[class*="bg-cyan"],
.corr-scope-btn.active,
.ib-rank-tab[class*="bg-indigo"],
.ib-rank-tab.active,
#ibRankTab_deposit[class*="indigo"],
.smart-preset-btn.active,
.smart-preset-btn[class*="bg-blue"],
.smart-preset-btn[class*="bg-indigo"],
[id^="pipeTab-"].active,
[id^="pipeTab-"][class*="bg-blue"],
[id^="pipeTab-"][class*="bg-indigo"],
.segment-tab-btn.active {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.corr-scope-btn[class*="bg-cyan"] *,
.corr-scope-btn.active *,
.ib-rank-tab[class*="bg-indigo"] *,
.ib-rank-tab.active *,
#ibRankTab_deposit[class*="indigo"] *,
.smart-preset-btn.active *,
.smart-preset-btn[class*="bg-blue"] *,
.smart-preset-btn[class*="bg-indigo"] *,
[id^="pipeTab-"].active * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* ─── 7. GLOBAL SUB-NAVIGATION PILL TABS ─── */
/* E.g., Tabs in announcements, reports, settings */
[id^="annSubTabBtn"],
.sub-nav-pill,
.tab-pill {
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 7px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #11141a !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}

[id^="annSubTabBtn"]:hover,
.sub-nav-pill:hover,
.tab-pill:hover {
  background: #181d26 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

[id^="annSubTabBtn"].active,
[id^="annSubTabBtn"][class*="bg-cyan"],
#annSubTabBtnCorr[class*="bg-cyan"],
.sub-nav-pill.active,
.tab-pill.active {
  background: #494fdf !important;
  background-image: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: #494fdf !important;
  box-shadow: 0 4px 16px rgba(73, 79, 223, 0.35) !important;
}

[id^="annSubTabBtn"].active *,
[id^="annSubTabBtn"][class*="bg-cyan"] *,
#annSubTabBtnCorr[class*="bg-cyan"] * {
  color: #ffffff !important;
}

/* ─── 8. CARDS, BENTO BOXES & GLASS PANELS (LAYERED OBSIDIAN) ─── */
html:not(.light-theme) .glass-card,
html:not(.light-theme) .ibm-card,
html:not(.light-theme) .ibm-tile,
html:not(.light-theme) [class*="rounded-3xl"].p-6,
html:not(.light-theme) [class*="rounded-2xl"].p-4,
html:not(.light-theme) [class*="rounded-2xl"].p-6 {
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.88) 0%, rgba(11, 16, 27, 0.94) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html:not(.light-theme) .glass-card:hover,
html:not(.light-theme) .ibm-card:hover,
html:not(.light-theme) .ibm-tile:hover {
  border-color: rgba(99, 102, 241, 0.28) !important;
}

/* Remove clashing rainbow gradient icons across sections */
html:not(.light-theme) [class*="w-12"][class*="rounded-2xl"][class*="bg-gradient"] {
  background: rgba(24, 34, 53, 0.85) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ─── 9. SECTION-SPECIFIC OVERRIDES ─── */

/* ── DASHBOARD (sec-dashboard) ── */
html:not(.light-theme) .ibm-tile {
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.88) 0%, rgba(11, 16, 27, 0.94) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 20px !important;
}

.ibm-tile.ibm-tile-featured, #tile-build {
  background: linear-gradient(135deg, #373cc2 0%, #494fdf 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 10px 32px rgba(73, 79, 223, 0.42) !important;
}

.ibm-tag-featured {
  background: #ffffff !important;
  background-image: none !important;
  color: #373cc2 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  padding: 3px 12px !important;
}

/* Funnel bars */
#panelSalesFunnel [class*="bg-[#050811]"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 9999px !important;
  height: 7px !important;
}
#panelSalesFunnel > div:nth-child(1) .h-full, #panelSalesFunnel > div:nth-child(1) [class*="bg-gradient"] {
  background: #494fdf !important; background-image: none !important;
}
#panelSalesFunnel > div:nth-child(2) .h-full, #panelSalesFunnel > div:nth-child(2) [class*="bg-gradient"] {
  background: #376cd5 !important; background-image: none !important;
}
#panelSalesFunnel > div:nth-child(3) .h-full, #panelSalesFunnel > div:nth-child(3) [class*="bg-gradient"] {
  background: #007bc2 !important; background-image: none !important;
}
#panelSalesFunnel > div:nth-child(4) .h-full, #panelSalesFunnel > div:nth-child(4) [class*="bg-gradient"] {
  background: #00a87e !important; background-image: none !important;
}

/* Quick Action Buttons in Hot Leads */
#card-urgent-leads button,
#panelUrgentLeads button,
button[onclick*="closeDeal"] {
  background: #16181a !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(73, 79, 223, 0.45) !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 5px 14px !important;
  transition: all 0.18s ease !important;
}
#card-urgent-leads button:hover,
#panelUrgentLeads button:hover {
  background: #494fdf !important;
  border-color: #494fdf !important;
}

/* ── ANNOUNCEMENTS & CORRESPONDENCE (sec-announcements) ── */
#sec-announcements .glass-card {
  background: #0d1015 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#corrCountBadge {
  background: #11141a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #8d969e !important;
  border-radius: 9999px !important;
}

/* Table Buttons ("مشاهده و گفتگو") */
#sec-announcements table button,
table button[onclick*="openTechTicketThread"],
table button[onclick*="openConversationModal"],
table button[onclick*="viewRecord"] {
  background: #16181a !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  padding: 5px 14px !important;
  transition: all 0.15s ease !important;
}

#sec-announcements table button:hover {
  border-color: #494fdf !important;
  background: #1e2430 !important;
}

/* ── CUSTOMERS & LEADS (sec-persons) ── */
#sec-persons button[onclick*="openDataIngestionModal"],
button[onclick*="openDataIngestionModal('single')"],
button[onclick*="openDataIngestionModal('bulk')"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#sec-persons button[onclick*="openDataIngestionModal"] *,
button[onclick*="openDataIngestionModal('single')"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Smart Presets bar in persons */
.smart-preset-btn {
  background: #11141a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 9999px !important;
}

.smart-preset-btn.active,
.smart-preset-btn[class*="bg-cyan"],
.smart-preset-btn[class*="bg-blue"],
.smart-preset-btn[class*="bg-indigo"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.smart-preset-btn.active *,
.smart-preset-btn[class*="bg-cyan"] * {
  color: #000000 !important;
}

/* Persons Secondary Actions */
#sec-persons button[onclick*="openColumnSettingsModal"],
#sec-persons button[onclick*="openSaveCustomViewModal"],
#sec-persons button[onclick*="resetPersonsListFilters"],
#sec-persons button[onclick*="export"] {
  background: #11141a !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
}

/* ── KANBAN PIPELINE (sec-kanban) ── */
#sec-kanban [class*="kanban-col"],
#sec-kanban .kanban-column {
  background: #090c10 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
}

.kanban-card,
#sec-kanban [data-card-id] {
  background: #11141a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}

.kanban-card:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px) !important;
}

#pipeTab-leads, #pipeTab-clients, #pipeTab-ibs {
  background: #11141a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 9999px !important;
}

#pipeTab-leads.active, #pipeTab-clients.active, #pipeTab-ibs.active,
#pipeTab-leads[class*="bg-blue"], #pipeTab-clients[class*="bg-blue"], #pipeTab-ibs[class*="bg-blue"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
}

#pipeTab-leads.active *, #pipeTab-clients.active *, #pipeTab-ibs.active * {
  color: #000000 !important;
}

/* ── TASK MATRIX (sec-tasks) ── */
button[onclick*="openNewTaskModalGlobal"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

button[onclick*="openNewTaskModalGlobal"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

#sec-tasks [class*="quadrant"],
#sec-tasks [id^="quadrant-"] {
  background: #0d1015 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
}

/* ── IB PARTNERS (sec-ib) ── */
button[onclick*="openIBImportModal"],
button[onclick*="openAddPartnerModal"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

button[onclick*="openIBImportModal"] *,
button[onclick*="openAddPartnerModal"] * {
  color: #000000 !important;
}

/* ─── 10. GLOBAL TABLES & DATA LISTS ─── */
table thead,
table thead tr,
table thead th {
  background-color: #080a0d !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 16px !important;
}

table tbody tr {
  background-color: #0d1015 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: background-color 0.15s ease !important;
}

table tbody tr:hover {
  background-color: #141820 !important;
}

table tbody td {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 12px !important;
  padding: 12px 16px !important;
}

/* ─── 11. GLOBAL FORM INPUTS, SEARCH BARS & SELECTS ─── */
input[type="text"]:not(.lg-input-well),
input[type="password"]:not(.lg-input-well),
input[type="email"]:not(.lg-input-well),
input[type="number"]:not(.lg-input-well),
input[type="tel"]:not(.lg-input-well),
input[type="search"]:not(.lg-input-well),
select,
textarea {
  background-color: #11141a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  transition: border-color 0.18s ease !important;
}

textarea {
  border-radius: 16px !important;
}

input:not(.lg-input-well):focus, select:focus, textarea:focus {
  border-color: #494fdf !important;
  box-shadow: 0 0 0 2px rgba(73, 79, 223, 0.25) !important;
  outline: none !important;
}

/* ─── 12. GLOBAL MODALS & DIALOGS ─── */
.modal-overlay, [id$="Modal"]:not(#loginModal), [id*="-modal"]:not(#loginModal) {
  background-color: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px) !important;
}

.modal-content, [class*="modal-dialog"], .modal-card, [id$="Modal"]:not(#loginModal) > div > div {
  background-color: #0d1015 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
}

/* ─── 13. SIDEBAR NAVIGATION ─── */
#sidebar, aside {
  background-color: #050709 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sidebar-item.active,
.nav-link.active,
[data-tab].active {
  background: #11141a !important;
  color: #ffffff !important;
  border-right: 3px solid #494fdf !important;
  border-radius: 0 10px 10px 0 !important;
  font-weight: 700 !important;
}


/* ==========================================================================
   SHORTLONG HUB — REVOLUT FINTECH DESIGN SYSTEM (PHASE 3 ENHANCEMENTS)
   Covers: sec-persons, sec-kanban, sec-transfers, and Header polish
   ========================================================================== */

/* ─── HEADER STATUS & ROLE BADGE POLISH ─── */
#headerRoleBadge, #headerStatusBadge, .header-role-btn,
button[onclick*="showRole"], button[onclick*="admin"],
header button:has(.fa-user-shield), header [class*="bg-emerald-500/10"],
header [class*="border-emerald-500"], header [class*="text-emerald-400"] {
  background: rgba(255, 255, 255, 0.06) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
}
header button:has(.fa-user-shield) *, header [class*="text-emerald-400"] * {
  color: #ffffff !important;
}

/* ─── PHASE 3: CUSTOMERS & LEADS (sec-persons) ─── */
#sec-persons {
  background: #000000 !important;
}

/* Smart Presets bar in persons */
.smart-preset-btn,
#sec-persons button[id^="preset_btn_"] {
  background: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.smart-preset-btn:hover,
#sec-persons button[id^="preset_btn_"]:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Active Preset (White Pill) */
.smart-preset-btn.active,
.smart-preset-btn[class*="bg-cyan-600"],
.smart-preset-btn[class*="bg-blue-600"],
#sec-persons button[id^="preset_btn_"].active {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(255, 255, 255, 0.25) !important;
}

.smart-preset-btn.active *,
.smart-preset-btn[class*="bg-cyan-600"] *,
.smart-preset-btn[class*="bg-blue-600"] *,
#sec-persons button[id^="preset_btn_"].active * {
  color: #000000 !important;
}

/* Primary Action in Persons: Add Lead (White Pill) */
#sec-persons button[onclick*="openDataIngestionModal"],
button[onclick*="openDataIngestionModal('single')"],
button[onclick*="openDataIngestionModal('bulk')"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#sec-persons button[onclick*="openDataIngestionModal"] *,
button[onclick*="openDataIngestionModal('single')"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Secondary Actions in Persons Toolbar (Translucent Pills) */
#sec-persons button[onclick*="openColumnSettingsModal"],
#sec-persons button[onclick*="openSaveCustomViewModal"],
#sec-persons button[onclick*="export"],
#sec-persons button[onclick*="loadPersonsList"] {
  background: rgba(255, 255, 255, 0.06) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 6px 14px !important;
}

#sec-persons button[onclick*="resetPersonsListFilters"] {
  background: rgba(226, 59, 74, 0.12) !important;
  border: 1px solid rgba(226, 59, 74, 0.3) !important;
  color: #e23b4a !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
}

/* Filter inputs & selects in Persons */
#sec-persons #filterSearch,
#sec-persons select,
#sec-persons .glass-card input {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

#sec-persons #filterSearch:focus,
#sec-persons select:focus {
  border-color: #494fdf !important;
  box-shadow: 0 0 0 2px rgba(73, 79, 223, 0.25) !important;
  outline: none !important;
}

/* Persons Table Header & Rows */
#sec-persons table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

#sec-persons thead,
#personsTableHead {
  background: #080a0d !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#sec-persons thead th,
#personsTableHead th {
  background: #080a0d !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 14px !important;
}

#sec-persons tbody tr,
#personsTableBody tr {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: background 0.15s ease !important;
}

#sec-persons tbody tr:hover,
#personsTableBody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

#sec-persons tbody td,
#personsTableBody td {
  padding: 12px 14px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

/* Action buttons inside persons table */
#sec-persons tbody button,
#personsTableBody button {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

#sec-persons tbody button:hover,
#personsTableBody button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ─── PHASE 3: KANBAN PIPELINE (sec-kanban) ─── */
#sec-kanban {
  background: #000000 !important;
}

#pipeTab-leads, #pipeTab-clients, #pipeTab-ibs {
  background: rgba(255, 255, 255, 0.05) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
}

#pipeTab-leads.active, #pipeTab-clients.active, #pipeTab-ibs.active,
#pipeTab-leads[class*="from-blue"], #pipeTab-clients[class*="from-blue"], #pipeTab-ibs[class*="from-blue"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(255, 255, 255, 0.25) !important;
}

#pipeTab-leads.active *, #pipeTab-clients.active *, #pipeTab-ibs.active *,
#pipeTab-leads[class*="from-blue"] *, #pipeTab-clients[class*="from-blue"] *, #pipeTab-ibs[class*="from-blue"] * {
  color: #000000 !important;
}

#sec-kanban [class*="kanban-col"],
#sec-kanban .kanban-column {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
}

.kanban-card,
#sec-kanban [data-card-id] {
  background: #0f131a !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
}

.kanban-card:hover,
#sec-kanban [data-card-id]:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: #141922 !important;
  transform: translateY(-2px) !important;
}

/* ─── PHASE 3: LEAD TRANSFERS (sec-transfers) ─── */
#sec-transfers,
#sec-transfers .glass-card {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
}

#sec-transfers button[type="submit"],
#sec-transfers button[onclick*="Transfer"],
#sec-transfers button[onclick*="transfer"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
}
#sec-transfers button[type="submit"] *,
#sec-transfers button[onclick*="Transfer"] * {
  color: #000000 !important;
}


/* ==========================================================================
   SHORTLONG HUB — REVOLUT FINTECH DESIGN SYSTEM (PHASE 4 ENHANCEMENTS)
   Covers: sec-calls, sec-bulk-message, sec-notifications
   ========================================================================== */

/* ─── PHASE 4: VOIP CALLS & AI ANALYSIS (sec-calls) ─── */
#sec-calls {
  background: #000000 !important;
}

#sec-calls .glass-card,
#sec-calls [class*="bg-gradient-to-r"] {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Calls Hub Tabs */
#sec-calls button[onclick*="switchCallsHubTab"],
#sec-calls .sub-nav-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

#sec-calls button[onclick*="switchCallsHubTab"].active,
#sec-calls button[onclick*="switchCallsHubTab"][class*="from-cyan-600"],
#sec-calls button[onclick*="switchCallsHubTab"][class*="from-blue-600"],
#sec-calls button[onclick*="switchCallsHubTab"][class*="bg-cyan-600"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(255, 255, 255, 0.25) !important;
}

#sec-calls button[onclick*="switchCallsHubTab"].active *,
#sec-calls button[onclick*="switchCallsHubTab"][class*="from-cyan-600"] * {
  color: #000000 !important;
}

/* Primary Action: Run Elay Analysis (White Pill) */
#sec-calls button[onclick*="runElayAnalysis"],
#sec-calls button[onclick*="openCallScriptModal"],
#sec-calls button[onclick*="createScenario"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#sec-calls button[onclick*="runElayAnalysis"] *,
#sec-calls button[onclick*="openCallScriptModal"] * {
  color: #000000 !important;
}

/* Secondary Calls Actions */
#sec-calls button[onclick*="insertSampleTranscript"],
#sec-calls button[onclick*="refreshCallsArchive"],
#sec-calls button[onclick*="insertMasterAshrafiScript"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Inputs & Textareas in sec-calls */
#sec-calls input,
#sec-calls select,
#sec-calls textarea {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
}

#sec-calls input:focus,
#sec-calls select:focus,
#sec-calls textarea:focus {
  border-color: #494fdf !important;
  box-shadow: 0 0 0 2px rgba(73, 79, 223, 0.25) !important;
  outline: none !important;
}

/* ─── PHASE 4: BULK MESSAGING (sec-bulk-message) ─── */
#sec-bulk-message {
  background: #000000 !important;
}

#sec-bulk-message .glass-card,
#sec-bulk-message [class*="bg-gradient-to-r"] {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Hub navigation tabs */
#sec-bulk-message button[onclick*="switchMassHubView"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#sec-bulk-message button[onclick*="switchMassHubView"].active,
#sec-bulk-message button[onclick*="switchMassHubView"][class*="from-purple-600"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(255, 255, 255, 0.25) !important;
}

#sec-bulk-message button[onclick*="switchMassHubView"].active *,
#sec-bulk-message button[onclick*="switchMassHubView"][class*="from-purple-600"] * {
  color: #000000 !important;
}

/* Audience Filter Pills */
.mm-filter-pill,
#sec-bulk-message .mm-filter-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 5px 14px !important;
  font-size: 11px !important;
}

.mm-filter-pill.active,
.mm-filter-pill[class*="bg-indigo-600"],
.mm-filter-pill[class*="bg-purple-600"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.25) !important;
}

.mm-filter-pill.active *,
.mm-filter-pill[class*="bg-indigo-600"] * {
  color: #000000 !important;
}

/* Smart Tags in Bulk Message */
#sec-bulk-message button[onclick*="insertSmartTag"],
#sec-bulk-message button[onclick*="insertOccTag"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Primary Action: Send Campaign / Submit (White Pill) */
#mmSubmitBtn,
#sec-bulk-message button[type="submit"],
#sec-bulk-message button[onclick*="saveOccasionSettings"],
#sec-bulk-message button[onclick*="dispatchTodayOccasionsNow"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 9px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#mmSubmitBtn *,
#sec-bulk-message button[type="submit"] *,
#sec-bulk-message button[onclick*="saveOccasionSettings"] *,
#sec-bulk-message button[onclick*="dispatchTodayOccasionsNow"] * {
  color: #000000 !important;
}

/* Secondary Actions in Bulk Message */
#sec-bulk-message button[onclick*="sendTestCampaignMessage"],
#sec-bulk-message button[onclick*="loadMassCampaignsHub"],
#sec-bulk-message button[onclick*="loadMoreManualPersons"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Inputs & Selects in Bulk Message */
#sec-bulk-message input,
#sec-bulk-message select,
#sec-bulk-message textarea {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
}

#sec-bulk-message input:focus,
#sec-bulk-message select:focus,
#sec-bulk-message textarea:focus {
  border-color: #494fdf !important;
  box-shadow: 0 0 0 2px rgba(73, 79, 223, 0.25) !important;
  outline: none !important;
}

/* ─── PHASE 4: NOTIFICATIONS CENTER (sec-notifications) ─── */
#sec-notifications {
  background: #000000 !important;
}

#sec-notifications .glass-card {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

#sec-notifications button[onclick*="filterNotifications"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#sec-notifications button[onclick*="filterNotifications"].active,
#sec-notifications button[onclick*="filterNotifications"][class*="active"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.25) !important;
}

#sec-notifications button[onclick*="runSystemNotificationAnalysis"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}
#sec-notifications button[onclick*="runSystemNotificationAnalysis"] * {
  color: #000000 !important;
}


/* ==========================================================================
   SHORTLONG HUB — REVOLUT FINTECH DESIGN SYSTEM (PHASE 5 ENHANCEMENTS)
   Covers: sec-tasks, sec-shifts, sec-staff-reports
   ========================================================================== */

/* ─── PHASE 5: TASKS & EISENHOWER MATRIX (sec-tasks) ─── */
#sec-tasks {
  background: #000000 !important;
}

#sec-tasks .glass-card,
#sec-tasks [class*="quadrant"] {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Primary Action in Tasks: New Task (White Pill) */
#sec-tasks button[onclick*="openNewTaskModalGlobal"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#sec-tasks button[onclick*="openNewTaskModalGlobal"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

#sec-tasks button[onclick*="loadTasksTabMainData"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
}

/* ─── PHASE 5: STAFF SHIFTS & ATTENDANCE (sec-shifts) ─── */
#sec-shifts {
  background: #000000 !important;
}

#sec-shifts .glass-card {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Primary Action: Start Shift (White Pill) */
#btnStartShift,
#sec-shifts #btnStartShift,
#sec-shifts button[onclick*="startWorkShift"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#btnStartShift *,
#sec-shifts #btnStartShift * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Exit Shift (Subtle Rose Pill) */
#btnEndShift,
#sec-shifts #btnEndShift {
  background: rgba(226, 59, 74, 0.15) !important;
  border: 1px solid rgba(226, 59, 74, 0.35) !important;
  color: #e23b4a !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

/* Secondary Shift Actions */
#sec-shifts button[onclick*="openStaffTaskModal"],
#sec-shifts button[onclick*="openLeaveRequestModal"],
#sec-shifts button[onclick*="exportPresenceLogsToPDF"],
#sec-shifts button[onclick*="changeShiftWeekOffset"],
#sec-shifts button[onclick*="setPresenceDate"],
#sec-shifts button[onclick*="loadUnifiedApprovals"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
}

/* Sub-nav Tabs in Shifts */
.shift-subtab-btn,
#sec-shifts .shift-subtab-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 7px 18px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.shift-subtab-btn.active,
.shift-subtab-btn[class*="bg-indigo-600"],
#sec-shifts .shift-subtab-btn.active {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(255, 255, 255, 0.25) !important;
}

.shift-subtab-btn.active *,
.shift-subtab-btn[class*="bg-indigo-600"] * {
  color: #000000 !important;
}

/* Shift Current Week Button */
#shiftWeekCurrentBtn {
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

/* Shifts Tables */
#sec-shifts table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

#sec-shifts thead th {
  background: #080a0d !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 14px !important;
}

#sec-shifts tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: background 0.15s ease !important;
}

#sec-shifts tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

#sec-shifts tbody td {
  padding: 12px 14px !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

#sec-shifts select,
#sec-shifts input {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

/* ─── PHASE 5: STAFF EVALUATION & REPORTS (sec-staff-reports) ─── */
#sec-staff-reports {
  background: #000000 !important;
}

#sec-staff-reports .glass-card,
#sec-staff-reports [class*="bg-"] {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px !important;
}


/* ==========================================================================
   SHORTLONG HUB — REVOLUT FINTECH DESIGN SYSTEM (PHASE 6 ENHANCEMENTS)
   Covers: sec-ib, sec-trading-reports, sec-reports, sec-ai-chat
   ========================================================================== */

/* ─── PHASE 6: IB & PARTNER NETWORK (sec-ib) ─── */
#sec-ib {
  background: #000000 !important;
}

#sec-ib .glass-card {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Primary Actions in IB (White Pill) */
#sec-ib button[onclick*="openIBImportModal"],
#sec-ib button[onclick*="openIBManualModal"],
button[onclick*="openIBImportModal"],
button[onclick*="openIBManualModal"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#sec-ib button[onclick*="openIBImportModal"] *,
#sec-ib button[onclick*="openIBManualModal"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Secondary Actions in IB */
#sec-ib button[onclick*="openIBSyncModal"],
#sec-ib button[onclick*="loadIBData"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* IB Table */
#sec-ib table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

#sec-ib thead th {
  background: #080a0d !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 14px !important;
}

#sec-ib tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: background 0.15s ease !important;
}

#sec-ib tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

#sec-ib tbody td {
  padding: 12px 14px !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

#sec-ib select, #sec-ib input {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

/* ─── PHASE 6: TRADING REPORTS MT5 (sec-trading-reports) ─── */
#sec-trading-reports {
  background: #000000 !important;
}

#sec-trading-reports .glass-card {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Primary Actions in Trading Reports (White Pill) */
#sec-trading-reports button[onclick*="openTradingImportModal"],
#sec-trading-reports button[onclick*="openUpsertTradingStatModal"],
button[onclick*="openTradingImportModal"],
button[onclick*="openUpsertTradingStatModal"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#sec-trading-reports button[onclick*="openTradingImportModal"] *,
#sec-trading-reports button[onclick*="openUpsertTradingStatModal"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Secondary Actions in Trading Reports */
#sec-trading-reports button[onclick*="openClientBrokerSyncModal"],
#sec-trading-reports button[onclick*="loadTradingReportsPage"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#sec-trading-reports table thead th {
  background: #080a0d !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 14px !important;
}

#sec-trading-reports tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

#sec-trading-reports select, #sec-trading-reports input {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

/* ─── PHASE 6: EXECUTIVE REPORTS (sec-reports) ─── */
#sec-reports {
  background: #000000 !important;
}

#sec-reports .glass-card {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

#sec-reports button[onclick*="switchReportsTab"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#sec-reports button[onclick*="switchReportsTab"].active,
#sec-reports button[onclick*="switchReportsTab"][class*="active"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.25) !important;
}

#sec-reports button[onclick*="switchReportsTab"].active * {
  color: #000000 !important;
}

/* ─── PHASE 6: AI CHAT ASSISTANT (sec-ai-chat) ─── */
#sec-ai-chat {
  background: #000000 !important;
}

#sec-ai-chat .glass-card {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Mode buttons */
#aiChatModeBtnClient, #aiChatModeBtnAcademy {
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 18px !important;
}

#aiChatModeBtnClient[class*="from-purple"], #aiChatModeBtnAcademy[class*="from-purple"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 3px 14px rgba(255, 255, 255, 0.25) !important;
}

#aiChatModeBtnClient[class*="from-purple"] *, #aiChatModeBtnAcademy[class*="from-purple"] * {
  color: #000000 !important;
}

/* Filter pills in AI chat */
#aiChatFilterAll, #aiChatFilterIb, #aiChatFilterClient, #aiChatFilterLead {
  border-radius: 9999px !important;
  padding: 5px 14px !important;
  font-size: 11px !important;
}

#aiChatFilterAll[class*="bg-purple-600"],
#aiChatFilterIb[class*="bg-purple-600"],
#aiChatFilterClient[class*="bg-purple-600"],
#aiChatFilterLead[class*="bg-purple-600"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

#sec-ai-chat textarea, #sec-ai-chat input {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

#sec-ai-chat textarea:focus, #sec-ai-chat input:focus {
  border-color: #494fdf !important;
  box-shadow: 0 0 0 2px rgba(73, 79, 223, 0.25) !important;
  outline: none !important;
}


/* ==========================================================================
   SHORTLONG HUB — REVOLUT FINTECH DESIGN SYSTEM (PHASE 7 ENHANCEMENTS)
   Covers: sec-settings, access-matrix, 51 Global Modals & Popups, Form Controls
   ========================================================================== */

/* ─── PHASE 7: SETTINGS & ACCESS MATRIX (sec-settings) ─── */
#sec-settings {
  background: #000000 !important;
}

#sec-settings .glass-card,
#sec-settings [class*="bg-"] {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
}

/* Settings Hub Navigation Tabs */
#sec-settings button[onclick*="switchSettingsTab"],
#sec-settings button[onclick*="switchSettingsSubTab"],
#sec-settings .settings-tab-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

#sec-settings button[onclick*="switchSettingsTab"].active,
#sec-settings button[onclick*="switchSettingsTab"][class*="active"],
#sec-settings button[onclick*="switchSettingsTab"][class*="from-indigo-600"],
#sec-settings button[onclick*="switchSettingsTab"][class*="bg-indigo-600"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.25) !important;
}

#sec-settings button[onclick*="switchSettingsTab"].active *,
#sec-settings button[onclick*="switchSettingsTab"][class*="bg-indigo-600"] * {
  color: #000000 !important;
}

/* Primary Save buttons in Settings (White Pill) */
#sec-settings button[type="submit"],
#sec-settings button[onclick*="save"],
#sec-settings button[onclick*="Save"],
#sec-settings button[onclick*="update"],
#sec-settings button[onclick*="Update"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

#sec-settings button[type="submit"] *,
#sec-settings button[onclick*="save"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Secondary Actions in Settings */
#sec-settings button:not([type="submit"]):not([onclick*="save"]):not([onclick*="Save"]):not([onclick*="switchSettings"]) {
  border-radius: 9999px !important;
}

/* Settings Tables */
#sec-settings table thead th {
  background: #080a0d !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 14px !important;
}

#sec-settings tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Settings Inputs */
#sec-settings input, #sec-settings select, #sec-settings textarea {
  background: #080a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

#sec-settings input:focus, #sec-settings select:focus, #sec-settings textarea:focus {
  border-color: #494fdf !important;
  box-shadow: 0 0 0 2px rgba(73, 79, 223, 0.25) !important;
  outline: none !important;
}

/* ─── PHASE 7: GLOBAL MODALS & POPUPS (All 51 Modals, excluding #loginModal) ─── */
div[id*="Modal"]:not(#loginModal), div[id*="modal"]:not(#loginModal) {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Modal Inner Dialog Box */
div[id*="Modal"]:not(#loginModal) > div:not(.absolute),
div[id*="modal"]:not(#loginModal) > div:not(.absolute),
div[id*="Modal"]:not(#loginModal) .glass-card,
div[id*="modal"]:not(#loginModal) .glass-card {
  background: #080a0d !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

/* Modal Header Close Button (Circular Glass) */
div[id*="Modal"] button[onclick*="close"],
div[id*="modal"] button[onclick*="close"],
div[id*="Modal"] button[onclick*="Close"],
div[id*="modal"] button[onclick*="Close"],
div[id*="Modal"] button[onclick*="hide"],
div[id*="modal"] button[onclick*="hide"],
div[id*="Modal"] button:has(.fa-xmark),
div[id*="modal"] button:has(.fa-xmark) {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  transition: all 0.15s ease !important;
}

div[id*="Modal"] button[onclick*="close"]:hover,
div[id*="modal"] button[onclick*="close"]:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Modal Primary Actions (White Pill) */
div[id*="Modal"] button[type="submit"],
div[id*="modal"] button[type="submit"],
div[id*="Modal"] button[onclick*="save"],
div[id*="modal"] button[onclick*="save"],
div[id*="Modal"] button[onclick*="Save"],
div[id*="modal"] button[onclick*="Save"],
div[id*="Modal"] button[onclick*="confirm"],
div[id*="modal"] button[onclick*="confirm"],
div[id*="Modal"] button[onclick*="Confirm"],
div[id*="modal"] button[onclick*="Confirm"] {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.22) !important;
}

div[id*="Modal"] button[type="submit"] *,
div[id*="modal"] button[type="submit"] *,
div[id*="Modal"] button[onclick*="save"] *,
div[id*="modal"] button[onclick*="save"] * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Modal Inputs & Selects */
div[id*="Modal"]:not(#loginModal) input, div[id*="modal"]:not(#loginModal) input,
div[id*="Modal"]:not(#loginModal) select, div[id*="modal"]:not(#loginModal) select,
div[id*="Modal"]:not(#loginModal) textarea, div[id*="modal"]:not(#loginModal) textarea {
  background: #0d1015 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

div[id*="Modal"]:not(#loginModal) input:focus, div[id*="modal"]:not(#loginModal) input:focus,
div[id*="Modal"]:not(#loginModal) select:focus, div[id*="modal"]:not(#loginModal) select:focus,
div[id*="Modal"]:not(#loginModal) textarea:focus, div[id*="modal"]:not(#loginModal) textarea:focus {
  border-color: #494fdf !important;
  box-shadow: 0 0 0 1000px #0d1015 inset, 0 0 0 2px rgba(73, 79, 223, 0.25) !important;
  outline: none !important;
}


/* ==========================================================================
   SHORTLONG HUB — REVOLUT FINTECH DESIGN SYSTEM (PHASE 8 CONTRAST & FIXES)
   Fixes: Active/Inactive Sub-tabs, Close Buttons, Chrome Autofill Dark Reset,
          Form Input radius fix, and scoping of gradient buttons.
   ========================================================================== */

/* ─── 8.1 CHROME AUTOFILL & INPUT RESET (No More Giant White/Blue Bars) ─── */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0b0e14 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #0b0e14 inset !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Normal Form Inputs: 12px clean rounded rectangle, never bloated */
input[type="text"]:not(.lg-input-well),
input[type="password"]:not(.lg-input-well),
input[type="email"]:not(.lg-input-well),
input[type="number"]:not(.lg-input-well),
input[type="tel"]:not(.lg-input-well),
input[type="date"]:not(.lg-input-well),
input[type="month"]:not(.lg-input-well),
select,
textarea {
  background-color: #0b0e14 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 8px 14px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

input:not(.lg-input-well):focus, select:focus, textarea:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #0b0e14 inset, 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
  outline: none !important;
}

/* ─── 8.2 HIGH-CONTRAST CLOSE & CANCEL BUTTONS ("دکمه ضربدر / اکس") ─── */
button[onclick*="close"],
button[onclick*="Close"],
.btn-close,
.modal-close-btn,
button:has(> .fa-xmark),
button:has(> .fa-times),
button:has(> i.fa-xmark),
button:has(> i.fa-times) {
  color: #ffffff !important;
  opacity: 1 !important;
  transition: all 0.15s ease !important;
}

.fa-xmark, .fa-times,
button[onclick*="close"] i,
button[onclick*="Close"] i {
  color: #ffffff !important;
  opacity: 1 !important;
}

div[id*="Modal"] button[onclick*="close"],
div[id*="modal"] button[onclick*="close"],
div[id*="Modal"] button[onclick*="Close"],
div[id*="modal"] button[onclick*="Close"] {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
}

div[id*="Modal"] button[onclick*="close"]:hover,
div[id*="modal"] button[onclick*="close"]:hover,
div[id*="Modal"] button[onclick*="Close"]:hover,
div[id*="modal"] button[onclick*="Close"]:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

/* ─── 8.3 PER-SECTION SUBTABS (CALLS, SHIFTS, TASKS, BULK, SETTINGS) ─── */

/* Calls Sub-Tabs (#sec-calls) */
#callsTabStudio, #callsTabScript, #callsTabHistory {
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

#callsTabStudio:hover, #callsTabScript:hover, #callsTabHistory:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* Active Calls Tab: SOLID WHITE PILL, BLACK TEXT & BLACK ICONS */
#callsTabStudio[class*="from-cyan-600"],
#callsTabStudio[class*="bg-gradient"],
#callsTabStudio.active,
#callsTabScript[class*="from-amber-600"],
#callsTabScript[class*="bg-gradient"],
#callsTabScript.active,
#callsTabHistory[class*="from-indigo-600"],
#callsTabHistory[class*="bg-gradient"],
#callsTabHistory.active {
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25) !important;
}

#callsTabStudio[class*="from-cyan-600"] *,
#callsTabStudio[class*="bg-gradient"] *,
#callsTabStudio.active *,
#callsTabScript[class*="from-amber-600"] *,
#callsTabScript[class*="bg-gradient"] *,
#callsTabScript.active *,
#callsTabHistory[class*="from-indigo-600"] *,
#callsTabHistory[class*="bg-gradient"] *,
#callsTabHistory.active * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Inactive Calls Tabs: High-Contrast White Text */
#callsTabStudio:not([class*="from-cyan-600"]):not([class*="bg-gradient"]):not(.active) *,
#callsTabScript:not([class*="from-amber-600"]):not([class*="bg-gradient"]):not(.active) *,
#callsTabHistory:not([class*="from-indigo-600"]):not([class*="bg-gradient"]):not(.active) * {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Shifts Sub-Tabs (#sec-shifts) */
#sec-shifts button[onclick*="switchShiftSubTab"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#sec-shifts button[onclick*="switchShiftSubTab"].active,
#sec-shifts button[onclick*="switchShiftSubTab"][class*="active"],
#sec-shifts button[onclick*="switchShiftSubTab"][class*="bg-"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25) !important;
}

#sec-shifts button[onclick*="switchShiftSubTab"].active *,
#sec-shifts button[onclick*="switchShiftSubTab"][class*="bg-"] * {
  color: #000000 !important;
}

/* Bulk Message Sub-Tabs (#sec-bulk-message) */
#sec-bulk-message button[onclick*="switchMassHubView"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#sec-bulk-message button[onclick*="switchMassHubView"].active,
#sec-bulk-message button[onclick*="switchMassHubView"][class*="active"],
#sec-bulk-message button[onclick*="switchMassHubView"][class*="bg-gradient"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25) !important;
}

#sec-bulk-message button[onclick*="switchMassHubView"].active *,
#sec-bulk-message button[onclick*="switchMassHubView"][class*="bg-gradient"] * {
  color: #000000 !important;
}

/* Trading Reports Filter Tabs (#sec-trading-reports) */
.tr-filter-tab {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
}

.tr-filter-tab.active,
.tr-filter-tab[class*="active"],
.tr-filter-tab[class*="bg-gradient"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25) !important;
}

.tr-filter-tab.active *,
.tr-filter-tab[class*="bg-gradient"] * {
  color: #000000 !important;
}

/* AI Data & Knowledge Hub Tabs (#sec-ai-data) */
#sec-ai-data button[onclick*="switchElayDataTab"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
}

#sec-ai-data button[onclick*="switchElayDataTab"].active,
#sec-ai-data button[onclick*="switchElayDataTab"][class*="active"],
#sec-ai-data button[onclick*="switchElayDataTab"][class*="bg-"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25) !important;
}

#sec-ai-data button[onclick*="switchElayDataTab"].active *,
#sec-ai-data button[onclick*="switchElayDataTab"][class*="bg-"] * {
  color: #000000 !important;
}


/* ==========================================================================
   REVOLUT GLASS AUDIO PLAYER & WAVEFORM VISUALIZER (Phase 1)
   ========================================================================== */
.revolut-audio-box {
  background: rgba(13, 16, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.revolut-audio-box:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}
.rev-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.rev-play-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}
.rev-play-btn:active {
  transform: scale(0.95);
}
/* Mini Soundwave Equalizer Bars */
.rev-equalizer {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  padding: 0 2px;
}
.rev-eq-bar {
  width: 2.5px;
  background: #06b6d4;
  border-radius: 2px;
  height: 4px;
  transition: height 0.1s ease;
}
.revolut-audio-box.is-playing .rev-eq-bar:nth-child(1) { animation: revEq 0.6s infinite ease-in-out alternate; }
.revolut-audio-box.is-playing .rev-eq-bar:nth-child(2) { animation: revEq 0.8s infinite ease-in-out alternate 0.15s; }
.revolut-audio-box.is-playing .rev-eq-bar:nth-child(3) { animation: revEq 0.5s infinite ease-in-out alternate 0.3s; }
.revolut-audio-box.is-playing .rev-eq-bar:nth-child(4) { animation: revEq 0.7s infinite ease-in-out alternate 0.1s; }
@keyframes revEq {
  0% { height: 3px; opacity: 0.5; }
  100% { height: 15px; opacity: 1; }
}
/* Custom Range Track */
.rev-seekbar {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  width: 100%;
}
.rev-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  cursor: pointer;
  transition: transform 0.1s;
}
.rev-seekbar::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}
.rev-speed-btn {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rev-speed-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}


/* ══════════════════════════════════════════════════════════════════════════
 * 📱 ULTRA MOBILE RESPONSIVENESS & ZERO-OVERFLOW (PHASE 5)
 * ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .revolut-audio-box {
    max-width: 100% !important;
    gap: 6px !important;
    padding: 6px 8px !important;
  }
  .revolut-audio-box .rev-equalizer {
    display: none !important;
  }
  .rev-radar-container {
    height: 280px !important;
    max-width: 100% !important;
  }
  .rev-transcript-bubble {
    max-width: 92% !important;
    font-size: 11px !important;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
 * 💎 REVOLUT DARK GLASS — KANBAN PIPELINE UPGRADE (PHASE 2)
 * ══════════════════════════════════════════════════════════════════════════ */
.kanban-col-card {
  background: rgba(8, 12, 20, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.kanban-col-card:hover {
  border-color: rgba(6, 182, 212, 0.25) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.08) !important;
}

.kanban-col-card.drag-over {
  border-color: rgba(6, 182, 212, 0.6) !important;
  background: rgba(6, 182, 212, 0.06) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25) !important;
}

.kanban-person-card {
  background: rgba(13, 21, 37, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.kanban-person-card:hover {
  background: rgba(18, 28, 48, 0.9) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(6, 182, 212, 0.2) !important;
}

.kanban-person-card:active {
  cursor: grabbing !important;
  transform: scale(0.98) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
 * 👥 REVOLUT DARK GLASS — PERSONS & LEADS TABLE UPGRADE (PHASE 3)
 * ══════════════════════════════════════════════════════════════════════════ */
#personsTable tbody tr {
  transition: background-color 0.15s ease, transform 0.15s ease !important;
}

#personsTable tbody tr:hover {
  background-color: rgba(6, 182, 212, 0.05) !important;
}

#personsControlsHeader {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(8, 12, 20, 0.92) !important;
}

.smart-preset-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.smart-preset-btn:hover {
  transform: translateY(-1.5px) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
 * 📊 REVOLUT DARK GLASS — DASHBOARD TILES & METRICS (PHASE 4)
 * ══════════════════════════════════════════════════════════════════════════ */
.ibm-tile {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ibm-tile:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 14px rgba(6, 182, 212, 0.12) !important;
}
