/* ===== SOFT UI MATERIAL SKIN v3 ??? UNIVERSAL PINK-PURPLE THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* { font-family: 'Poppins', sans-serif !important; }

body {
  background: #f5f7fb !important;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND DECORATIONS ===== */
#bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
#bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
#bg-shapes .s1 {
  width: 600px; height: 600px;
  background: #8A2EFF;
  top: -200px; right: -150px;
  animation: float1 20s ease-in-out infinite;
}
#bg-shapes .s2 {
  width: 400px; height: 400px;
  background: #FF008C;
  bottom: -100px; left: -100px;
  animation: float2 25s ease-in-out infinite;
}
#bg-shapes .s3 {
  width: 300px; height: 300px;
  background: #FF66B2;
  top: 40%; left: 10%;
  animation: float1 18s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 30px) scale(1.08); }
  66% { transform: translate(20px, -20px) scale(0.92); }
}
@keyframes skRipple { to { transform: scale(4); opacity: 0; } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c0c4d0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #6C63FF; }

/* ===== HEADER STICKY + GLASS ===== */
#root header {
  background: linear-gradient(135deg, #FF008C 0%, #8A2EFF 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 20px rgba(183,33,255,0.2) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}
#root header > section:first-child { height: 100% !important; }
#root header * { color: #fff !important; }
#root header i { color: #fff !important; }
#root header button,
#root header [type="submit"],
#root header [type="button"] {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
#root header button:hover,
#root header [type="submit"]:hover {
  background: rgba(255,255,255,0.25) !important;
}

/* ===== SIDEBAR ===== */
[class*="sidebar"], [class*="Sidebar"] {
  background: linear-gradient(180deg, #FF008C 0%, #8A2EFF 50%, #6C63FF 100%) !important;
}
[class*="sidebar"] [class*="link"], [class*="sidebar"] [class*="Link"],
[class*="sidebar"] a, [class*="Sidebar"] [class*="link"], [class*="Sidebar"] a {
  color: rgba(255,255,255,0.8) !important;
  border-left: 3px solid transparent !important;
  transition: all 0.25s ease !important;
}
[class*="sidebar"] [class*="link"]:hover, [class*="sidebar"] a:hover,
[class*="Sidebar"] [class*="link"]:hover, [class*="Sidebar"] a:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-left-color: #fff !important;
}
[class*="sidebar"] [class*="active"], [class*="sidebar"] [class*="Active"],
[class*="Sidebar"] [class*="active"], [class*="Sidebar"] [class*="Active"] {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-left-color: #fff !important;
}
[class*="sidebar"] i, [class*="Sidebar"] i { color: rgba(255,255,255,0.7) !important; }
[class*="sidebar"] [class*="logo"], [class*="sidebar"] [class*="Logo"],
[class*="Sidebar"] [class*="logo"], [class*="Sidebar"] [class*="Logo"] {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* ===== NAVIGATION GRADIENT ===== */
#root nav {
  background: linear-gradient(135deg, #FF008C 0%, #8A2EFF 100%) !important;
  box-shadow: 0 4px 24px rgba(183,33,255,0.25) !important;
  position: sticky !important;
  top: 64px !important;
  z-index: 99 !important;
}
#root nav ul li { border-right: 1px solid rgba(255,255,255,0.08) !important; }
#root nav ul li a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.8) !important;
  letter-spacing: 0.3px !important;
  padding: 14px 20px !important;
  transition: all 0.25s ease !important;
  position: relative !important;
}
#root nav ul li a:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
#root nav ul li a.active {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}
#root nav ul li a.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60% !important;
  height: 3px !important;
  background: #fff !important;
  border-radius: 3px 3px 0 0 !important;
}
#root nav ul li ul {
  background: linear-gradient(135deg, #8A2EFF 0%, #6C63FF 100%) !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 12px 40px rgba(183,33,255,0.35) !important;
  min-width: 240px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-top: none !important;
}
#root nav ul li ul li { border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
#root nav ul li ul li a { padding: 12px 20px !important; font-size: 12.5px !important; }

/* ===== FOOTER ===== */
#root footer {
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(108,99,255,0.06) !important;
}

/* ===== MAIN CONTENT WRAPPER ===== */
#root main {
  background: transparent !important;
  padding: 24px !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
}

/* ===== CARDS INSIDE MAIN (target sections inside main) ===== */
#root main > section {
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 12px rgba(183,33,255,0.04), 0 1px 2px rgba(0,0,0,0.02) !important;
  border: 1px solid rgba(183,33,255,0.03) !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  transition: box-shadow 0.3s ease !important;
}
#root main > section:hover {
  box-shadow: 0 4px 20px rgba(183,33,255,0.06), 0 1px 3px rgba(0,0,0,0.02) !important;
}

/* ===== STATS CARDS ??? animated via JS (pink-purple) ===== */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ===== AUTH PAGE ===== */
section[style*="background-color: rgb(211, 240, 255)"],
section[style*="background-color: #d3f0ff"] {
  position: relative !important;
  background: linear-gradient(135deg, #FF008C 0%, #8A2EFF 40%, #6C63FF 100%) !important;
}
section[style*="background-color: rgb(211, 240, 255)"]::before,
section[style*="background-color: #d3f0ff"]::before {
  content: '' !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.04) 0%, transparent 50%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
section[style*="background-color: rgb(255, 255, 255)"][style*="border-radius: 30px"] {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ===== BUTTONS ===== */
button, [type="submit"], [type="button"] {
  border-radius: 12px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(183,33,255,0.12) !important;
}
button:hover, [type="submit"]:hover, [type="button"]:hover {
  box-shadow: 0 6px 20px rgba(183,33,255,0.2) !important;
  transform: translateY(-1px) !important;
}
button:active, [type="submit"]:active, [type="button"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(183,33,255,0.15) !important;
}

/* ===== FORMS ===== */
input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
select, textarea {
  border-radius: 12px !important;
  border: 2px solid #e8ecf4 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  background: #f8f9fe !important;
  transition: all 0.25s ease !important;
  outline: none !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #6C63FF !important;
  box-shadow: 0 0 0 4px rgba(108,99,255,0.08) !important;
  background: #fff !important;
}
label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2d3436 !important;
  margin-bottom: 6px !important;
}

/* ===== TABLE ===== */
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}
table thead {
  background: linear-gradient(135deg, #FF008C 0%, #8A2EFF 100%) !important;
}
table thead th {
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
}
table tbody tr {
  border-bottom: 1px solid #f0f2f8 !important;
  transition: background 0.2s ease !important;
}
table tbody tr:hover {
  background: rgba(108,99,255,0.02) !important;
}
table tbody td {
  padding: 10px 16px !important;
  font-size: 13px !important;
  color: #4a4d5e !important;
  border: none !important;
}

/* ===== STATUS BADGES ===== */
.green {
  background: rgba(16,185,129,0.12) !important;
  color: #059669 !important;
  border-radius: 50px !important;
  padding: 4px 14px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}
.red {
  background: rgba(239,68,68,0.12) !important;
  color: #dc2626 !important;
  border-radius: 50px !important;
  padding: 4px 14px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}
.yellow {
  background: rgba(245,158,11,0.12) !important;
  color: #d97706 !important;
  border-radius: 50px !important;
  padding: 4px 14px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}
.blue {
  background: rgba(59,130,246,0.12) !important;
  color: #2563eb !important;
  border-radius: 50px !important;
  padding: 4px 14px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}

/* ===== PROVIDER STATS ===== */
.provider-stats { gap: 12px !important; margin: 0 24px 16px !important; }
.provider-stats .ps-card {
  background: linear-gradient(135deg, #FF008C 0%, #8A2EFF 100%) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px rgba(183,33,255,0.35) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #fff !important;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 200px !important;
  flex: 1 1 220px !important;
}
.provider-stats .ps-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 35px 80px rgba(183,33,255,0.45) !important;
}
.provider-stats .ps-card h4 { color: #fff !important; letter-spacing: 0.5px !important; opacity: 0.9 !important; }
.provider-stats .ps-card .ps-label { color: rgba(255,255,255,0.65) !important; }
.provider-stats .ps-card .ps-row { border-bottom-color: rgba(255,255,255,0.08) !important; }
.provider-stats .ps-card .ps-val { color: #fff !important; }
.provider-stats .ps-card .ps-success { color: #fff !important; }
.provider-stats .ps-card .ps-failure { color: #fff !important; }
.provider-stats .ps-card .ps-pending { color: #fff !important; }
.provider-stats .ps-card .ps-total { color: #fff !important; }

/* ===== OVERLAY LOADER ===== */
[class*="Overlay"] { background: rgba(255,255,255,0.5) !important; backdrop-filter: blur(4px) !important; }

/* ===== MODAL ===== */
[class*="ModalContainer"] { z-index: 1000 !important; }
[class*="ModalBox"] {
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2) !important;
}

/* ===== PAGINATION ===== */
[class*="Pagination"] button, [class*="pagination"] button {
  border-radius: 8px !important;
  border: 1px solid #e8ecf4 !important;
  background: #fff !important;
  box-shadow: none !important;
}
[class*="Pagination"] button:hover, [class*="pagination"] button:hover {
  background: #6C63FF !important;
  color: #fff !important;
  border-color: #6C63FF !important;
}
[class*="Pagination"] button[style*="background"], [class*="pagination"] button[style*="background"] {
  background: #6C63FF !important;
  border-color: #6C63FF !important;
  color: #fff !important;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  body { background: #13141f !important; }
  #root header { background: rgba(18,19,30,0.88) !important; border-bottom-color: rgba(108,99,255,0.08) !important; }
  #root footer { background: rgba(18,19,30,0.88) !important; border-top-color: rgba(108,99,255,0.08) !important; }
  #root main > section { background: #1c1d2e !important; border-color: rgba(108,99,255,0.04) !important; }
  input, select, textarea { background: #252638 !important; border-color: #353650 !important; color: #e4e6ef !important; }
  input:focus, select:focus, textarea:focus { background: #252638 !important; border-color: #6C63FF !important; }
  table tbody tr { border-bottom-color: rgba(255,255,255,0.03) !important; }
  table tbody td { color: #a0a3b1 !important; }
  table tbody tr:hover { background: rgba(108,99,255,0.04) !important; }
  /* provider-stats already pink-purple via light mode rule */
  label { color: #c8cad4 !important; }
  section[style*="background-color: rgb(255, 255, 255)"][style*="border-radius: 30px"] {
    background: rgba(28,29,46,0.95) !important;
    border-color: rgba(108,99,255,0.1) !important;
  }
}

/* ===== UNIVERSAL THEME ??? ALL MODULES (App, Exchange, etc.) ===== */
#root main section:not([data-sk]):not([data-u]) section:not([data-sk]):not([data-u]) {
  border-radius: 16px !important;
  border: 1px solid rgba(183,33,255,0.03) !important;
  box-shadow: 0 2px 12px rgba(183,33,255,0.04) !important;
}

#root main > div:not([class*="sidebar"]):not([class*="Sidebar"]) {
  border-radius: 16px !important;
  border: 1px solid rgba(183,33,255,0.03) !important;
  box-shadow: 0 2px 12px rgba(183,33,255,0.04) !important;
  background: #fff !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
}

/* App & Exchange module containers */
div[class*="app"]:not([class*="App"]), div[class*="App"]:not([class*="AppBar"]),
div[class*="exchange"]:not([class*="Exchange"]),
div[class*="module"]:not([class*="Module"]),
div[class*="wrapper"]:not([class*="Wrapper"]) {
  border-radius: 16px !important;
  border: 1px solid rgba(183,33,255,0.03) !important;
}

/* All h1-h6 headings globally */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.3px !important;
}
h2 { font-size: 20px !important; font-weight: 700 !important; }
h3 { font-size: 16px !important; font-weight: 600 !important; }
h4 { font-size: 14px !important; font-weight: 600 !important; }

/* ===== FILTER & SEARCH BUTTONS ??? Pink-purple gradient (universal) ===== */
button:has(i.fa-search), button:has(i.fa-filter),
button:has(i.fa-magnifying-glass), button:has(i.fa-sliders-h),
button:has(i[class*="search"]), button:has(i[class*="Search"]),
button:has(i[class*="filter"]), button:has(i[class*="Filter"]),
button:has([class*="search"]):not(:has([class*="search"]) *),
button:has([class*="filter"]):not(:has([class*="filter"]) *),
[type="submit"]:has(i.fa-search), [type="submit"]:has(i.fa-filter),
[type="submit"]:has(i.fa-magnifying-glass), [type="submit"]:has(i.fa-sliders-h) {
  background: linear-gradient(135deg, #FF008C 0%, #8A2EFF 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 3px 10px rgba(183,33,255,0.12) !important;
}
button:has(i.fa-search):hover, button:has(i.fa-filter):hover,
button:has(i.fa-magnifying-glass):hover, button:has(i.fa-sliders-h):hover,
[type="submit"]:has(i.fa-search):hover, [type="submit"]:has(i.fa-filter):hover,
[type="submit"]:has(i.fa-magnifying-glass):hover, [type="submit"]:has(i.fa-sliders-h):hover {
  box-shadow: 0 6px 20px rgba(183,33,255,0.2) !important;
  transform: translateY(-1px) !important;
}

/* ===== CLEAR / RESET BUTTONS ??? Grey-to-black gradient ===== */
button:has(i.fa-times), button:has(i.fa-close), button:has(i.fa-undo),
button:has(i.fa-refresh), button:has(i.fa-rotate-left),
button:has(i.fa-eraser), button:has(i.fa-ban),
button:has([class*="clear"]), button:has([class*="Clear"]),
button:has([class*="reset"]), button:has([class*="Reset"]),
[type="reset"] {
  background: linear-gradient(135deg, #6c757d 0%, #212529 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12) !important;
}
button:has(i.fa-times):hover, button:has(i.fa-close):hover,
button:has(i.fa-undo):hover, button:has(i.fa-refresh):hover,
button:has(i.fa-rotate-left):hover, button:has(i.fa-eraser):hover,
button:has(i.fa-ban):hover,
button:has([class*="clear"]):hover, button:has([class*="Clear"]):hover,
button:has([class*="reset"]):hover, button:has([class*="Reset"]):hover,
[type="reset"]:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
  transform: translateY(-1px) !important;
}

/* ===== LIVE RECHARGE TRANSACTIONS PAGE (Bootstrap-style) ===== */
body[style*="live-recharge-transactions"],
html:has([href*="live-recharge-transactions"]) body,
#root:has(~ [href*="live-recharge-transactions"]) {
  font-size: 12px !important;
}

/* Ensure route-specific styling via JS data attributes */

