/* ==========================================================================
   SECURE HUB - GLOBAL MASTER RESPONSIVE STYLESHEET
   100% Comprehensive responsive architecture across ALL pages, views, and sides
   Mobile (320px-480px) | Tablets (600px-1024px) | Laptops & Desktops (1024px+)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. UNIVERSAL BOX-SIZING, ANTI-OVERFLOW & VIEWPORT LOCK
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box !important;
}

html, body {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  -webkit-text-size-adjust: 100% !important;
}

#root {
  width: 100% !important;
  min-height: 100vh !important;
}

/* Dashboard & App Main Shell: Keep sidebar on the left and content on the right */
.flex.h-screen,
div[class*="flex h-screen"],
div[class*="w-screen"][class*="h-screen"],
.flex.h-screen.w-screen {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* Right-side main area next to sidebar */
.flex.h-screen > .flex-1,
div[class*="flex h-screen"] > .flex-1,
div[class*="flex h-screen"] > div.flex-1.flex.flex-col {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  height: 100vh !important;
  overflow: hidden !important;
}

/* Ensure no media or canvas pushes the body width past viewport */
img, svg, video, canvas, audio, iframe {
  max-width: 100% !important;
  height: auto;
}

/* --------------------------------------------------------------------------
   2. TOP HEADER & NAVIGATION BAR RESPONSIVENESS
   -------------------------------------------------------------------------- */
.wooden-header-outer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.mahogany-header-inner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
}

@media (max-width: 768px) {
  .wooden-header-outer {
    padding: 6px 8px !important;
  }
  
  .mahogany-header-inner {
    padding: 8px 10px !important;
    min-height: 54px !important;
    gap: 6px !important;
    border-radius: 16px !important;
  }

  /* Compact Wallet Pill on Tablets and Phones */
  .header-wallet-btn {
    padding: 4px 8px !important;
    border-radius: 10px !important;
    gap: 5px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .header-wallet-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .header-wallet-icon span {
    font-size: 13px !important;
  }

  .header-wallet-text {
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  .header-wallet-unit {
    font-size: 9px !important;
  }

  /* Compact Action Buttons (Help, Theme, Notifications) */
  .header-brass-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex-shrink: 0 !important;
  }

  .header-brass-btn span {
    font-size: 17px !important;
  }

  /* Profile Avatar */
  .header-profile-btn {
    max-width: 36px !important;
    flex-shrink: 0 !important;
  }

  .header-profile-btn span.font-sans,
  .header-profile-btn span:not(.material-symbols-outlined) {
    display: none !important;
  }
}

/* Extra Compact on Small Phones (<= 480px and <= 380px) */
@media (max-width: 480px) {
  .mahogany-header-inner {
    padding: 5px 8px !important;
    gap: 4px !important;
  }

  .header-wallet-btn {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
  }

  .header-wallet-icon {
    width: 18px !important;
    height: 18px !important;
  }

  /* Hide Help button on small phones since help is in drawer and floating bot */
  .header-brass-btn[title="Help & Support"],
  .header-brass-btn[aria-label="Help Desk"] {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .mahogany-header-inner {
    padding: 4px 6px !important;
  }

  .header-wallet-text {
    font-size: 10px !important;
  }

  .header-wallet-unit {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE SIDEBAR & MOBILE NAVIGATION DRAWER
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hide static sidebar on mobile/tablet */
  aside.portal-wood-sidebar {
    display: none !important;
  }
  
  /* Slide-in mobile drawer */
  .portal-wood-sidebar.is-mobile-drawer,
  nav.portal-wood-sidebar {
    display: flex !important;
    width: 280px !important;
    max-width: 85vw !important;
    position: relative !important;
    z-index: 60 !important;
  }

  /* Mobile Drawer Overlay Backdrop */
  .md\:hidden.fixed.inset-0.z-50 {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
  }
}

/* --------------------------------------------------------------------------
   4. MAIN CONTENT AREA & LAYOUT WRAPPER PADDING
   -------------------------------------------------------------------------- */
main,
.main-content-area,
div[class*="flex-grow overflow-y-auto"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

@media (max-width: 640px) {
  main,
  .main-content-area,
  div[class*="flex-grow overflow-y-auto"] {
    padding: 10px 12px 75px 12px !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  main,
  .main-content-area,
  div[class*="flex-grow overflow-y-auto"] {
    padding: 16px 20px 80px 20px !important;
  }
}

@media (min-width: 1025px) {
  main,
  .main-content-area,
  div[class*="flex-grow overflow-y-auto"] {
    padding: 24px 32px 85px 32px !important;
  }
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE TABLES & LEDGER GRIDS (ZERO HORIZONTAL SPILLOVER)
   -------------------------------------------------------------------------- */
.table-responsive-wrapper,
.overflow-x-auto,
div:has(> table),
div:has(> .vault-table),
div:has(> .sh-topup-table) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  position: relative !important;
  margin-bottom: 12px !important;
  border-radius: 14px !important;
}

/* Custom sleek dark scrollbar */
.table-responsive-wrapper::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar,
div:has(> table)::-webkit-scrollbar {
  height: 6px !important;
}

.table-responsive-wrapper::-webkit-scrollbar-track,
.overflow-x-auto::-webkit-scrollbar-track,
div:has(> table)::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6) !important;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb,
.overflow-x-auto::-webkit-scrollbar-thumb,
div:has(> table)::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4) !important;
  border-radius: 4px !important;
}

/* Table cells compact typography and padding on mobile */
@media (max-width: 768px) {
  table th, table td {
    padding: 9px 10px !important;
    font-size: 11.5px !important;
  }
  
  .vault-table th, .vault-table td,
  .sh-topup-table th, .sh-topup-table td {
    padding: 7px 8px !important;
    font-size: 11px !important;
  }

  /* Prevent awkward line breaks in badges and IDs */
  table td .font-mono,
  table td span.font-mono,
  table td .badge,
  table td span[class*="rounded"] {
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  table th, table td {
    padding: 6px 8px !important;
    font-size: 10.5px !important;
  }
}

/* --------------------------------------------------------------------------
   6. USER DASHBOARD, WOODEN FRAMES & SERVICE TILES
   -------------------------------------------------------------------------- */
.wooden-card-frame {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .wooden-card-frame {
    padding: 14px !important;
    border-radius: 18px !important;
    margin-bottom: 14px !important;
  }
}

@media (max-width: 480px) {
  .wooden-card-frame {
    padding: 10px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }
}

/* Dashboard Service Categories Bar (Smooth Touch Swiping) */
.service-categories-tabs,
div:has(> button[class*="px-4 py-2 rounded-xl"]),
div[class*="flex items-center gap-2 overflow-x-auto"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 6px !important;
  scrollbar-width: none !important;
}

.service-categories-tabs::-webkit-scrollbar {
  display: none !important;
}

/* Dashboard Instant Services Grid */
@media (max-width: 1024px) {
  .instant-services-grid,
  div[class*="grid-cols-4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 540px) {
  .instant-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* Compact Service Cards on Mobile */
  .instant-service-card,
  div:has(> .service-action-btn) {
    padding: 12px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 360px) {
  .instant-services-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

/* --------------------------------------------------------------------------
   7. TRANSACTIONS PAGE & LEDGER SUMMARY CARDS
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Summary metrics: 2 columns on mobile */
  div[class*="grid grid-cols-2 md:grid-cols-4 gap-4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* Date filters and search stack vertically */
  div[class*="flex flex-col md:flex-row justify-between items-center gap-3"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  /* Date inputs full width */
  div[class*="flex flex-wrap items-center gap-2.5 text-xs"] {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

/* --------------------------------------------------------------------------
   8. ADMIN DASHBOARD & SUMMARY CARDS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .admin-summary-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  
  .admin-stats-card {
    padding: 12px !important;
    border-radius: 14px !important;
  }
  
  .admin-filter-bar,
  div[class*="flex flex-col md:flex-row"],
  div[class*="flex flex-col sm:flex-row"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
}

/* --------------------------------------------------------------------------
   9. CERTIFICATE & MARK SHEET GENERATOR WORKSPACES (AE001 - AE011, BE001 - BE005)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Stack 2-column generator workspaces vertically on mobile/tablet */
  .ae001-workspace-layout,
  .service-generator-workspace,
  .be001-layout,
  .ae007-layout,
  .ae008-layout,
  .ae009-layout,
  .ae010-layout,
  .ae011-layout,
  div[class*="grid-cols-12"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .ae001-form-column,
  .service-form-column,
  div[class*="lg:col-span-8"],
  div[class*="lg:col-span-7"],
  div[class*="lg:col-span-6"],
  div[class*="lg:col-span-5"],
  div[class*="lg:col-span-4"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Certificate live preview container horizontally scrollable or scaled */
  .certificate-preview-container,
  .preview-stage-container,
  .be001-sheet-stage,
  .ae007-sheet-stage,
  .ae008-sheet-stage,
  .ae009-sheet-stage,
  .ae010-sheet-stage,
  .ae011-sheet-stage,
  div:has(> canvas),
  div:has(> .mcd-certificate),
  div:has(> .dl-preview-card) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    justify-content: center !important;
  }
}

/* --------------------------------------------------------------------------
   10. MODALS, POPUPS & GATEWAY CHECKOUT DIALOGS
   -------------------------------------------------------------------------- */
/* Standard small modal dialogs and overlays */
.sh-modal-overlay {
  padding: 10px !important;
  box-sizing: border-box !important;
}

.sh-modal-card,
.photo-vault-modal-box {
  width: 100% !important;
  max-width: 540px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

/* Full-Screen & Full-Page Category Reports / Overlays (100% Viewport Responsive) */
div[class*="fixed inset-0"][class*="z-[99999]"],
div[class*="fixed inset-0"][class*="bg-[#F4F6F8]"],
div[class*="fixed inset-0"][class*="flex-col"],
.full-screen-report-overlay,
.full-page-view {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

div[class*="fixed inset-0"][class*="z-[99999]"] > div,
div[class*="fixed inset-0"][class*="bg-[#F4F6F8]"] > div,
div[class*="fixed inset-0"][class*="flex-col"] > div,
.full-screen-report-overlay > div {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .sh-modal-card,
  .photo-vault-modal-box {
    padding: 14px !important;
    border-radius: 18px !important;
    max-height: 94vh !important;
  }

  /* UPI QR code auto-scales cleanly */
  #akfastpay-qr-img,
  img[src*="qr"],
  .upi-qr-image {
    max-width: 220px !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}

/* --------------------------------------------------------------------------
   11. MASTER LOGIN PAGE, SOLAR ORBIT & BRANDING RESPONSIVENESS
   -------------------------------------------------------------------------- */
/* Top Header Navigation Locks */
nav.sticky,
.sh-login-header-nav,
nav.w-full {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.feature-banner-capsule {
  max-width: 420px !important;
  width: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  .feature-banner-capsule {
    display: none !important;
  }
}

.mr-12 {
  margin-right: 0.5rem !important;
}

/* Main Login Page Container */
.sh-login-page {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: calc(100vh - 4.5rem) !important;
  height: auto !important;
  padding: 1.25rem 1rem !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Central Login Shell */
.sh-login-shell {
  width: 100% !important;
  max-width: 1220px !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  margin: 0.75rem auto !important;
  display: flex !important;
  overflow: visible !important;
  border-radius: 28px !important;
  box-sizing: border-box !important;
}

/* DESKTOP (>= 1024px) */
@media (min-width: 1024px) {
  .sh-login-shell {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  .sh-login-left {
    width: 45% !important;
    max-width: 45% !important;
    padding: 2.25rem 2rem !important;
    border-radius: 28px 0 0 28px !important;
    border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .sh-login-right {
    width: 55% !important;
    max-width: 55% !important;
    padding: 2.25rem 2rem !important;
    border-radius: 0 28px 28px 0 !important;
    border-left: 1px solid rgba(34, 211, 238, 0.25) !important;
    border-top: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sh-login-orbit,
  .sh-login-orbit--solar {
    width: 100% !important;
    max-width: 380px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 1.25rem auto !important;
    --orbit-radius: clamp(95px, 26%, 128px) !important;
    --orbit-radius-outer: clamp(140px, 37%, 180px) !important;
  }

  .sh-login-glass,
  .sh-login-glass--fit {
    width: 100% !important;
    max-width: 470px !important;
    margin: auto !important;
    padding: 2rem 1.85rem !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
}

/* LAPTOPS / STANDARD SCREENS (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
  .sh-login-shell {
    max-width: 1040px !important;
    margin: 0.5rem auto !important;
  }

  .sh-login-left {
    padding: 1.5rem !important;
    width: 44% !important;
    max-width: 44% !important;
  }

  .sh-login-right {
    padding: 1.5rem !important;
    width: 56% !important;
    max-width: 56% !important;
  }

  .sh-login-orbit,
  .sh-login-orbit--solar {
    max-width: 320px !important;
    margin: 0.75rem auto !important;
    --orbit-radius: 95px !important;
    --orbit-radius-outer: 140px !important;
  }

  .sh-login-orbit__planet {
    width: 66px !important;
    height: 66px !important;
  }

  .sh-login-orbit__planet--outer {
    width: 70px !important;
    height: 70px !important;
  }

  .sh-login-orbit__hub {
    width: 140px !important;
    height: 140px !important;
  }

  .sh-login-glass,
  .sh-login-glass--fit {
    max-width: 430px !important;
    padding: 1.6rem 1.35rem !important;
  }
}

/* TABLETS (< 1024px) - Clean Vertical Flow */
@media (max-width: 1023px) {
  .sh-login-shell {
    flex-direction: column !important;
    max-width: 650px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    margin: 0.75rem auto !important;
  }

  .sh-login-right {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 1.5rem !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(34, 211, 238, 0.25) !important;
    box-sizing: border-box !important;
  }

  .sh-login-glass,
  .sh-login-glass--fit {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 1.75rem 1.5rem !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .sh-login-left {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.75rem 1.5rem !important;
    border-right: none !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
  }

  .sh-login-orbit,
  .sh-login-orbit--solar {
    max-width: 330px !important;
    margin: 1.25rem auto !important;
    --orbit-radius: 100px !important;
    --orbit-radius-outer: 145px !important;
  }
}

/* MOBILE PHONES (<= 640px) */
@media (max-width: 640px) {
  .sh-login-page {
    padding: 0.5rem !important;
  }

  .sh-login-shell {
    margin: 0.25rem auto !important;
    border-radius: 20px !important;
    max-width: 100% !important;
  }

  .sh-login-right {
    padding: 1.25rem 0.85rem !important;
  }

  .sh-login-glass,
  .sh-login-glass--fit {
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
    max-width: 100% !important;
  }

  .sh-login-left {
    padding: 1.25rem 0.85rem !important;
  }

  .sh-login-orbit,
  .sh-login-orbit--solar {
    max-width: 290px !important;
    margin: 1rem auto !important;
    --orbit-radius: clamp(75px, 24vw, 92px) !important;
    --orbit-radius-outer: clamp(108px, 34vw, 134px) !important;
  }

  .sh-login-orbit__planet {
    width: 58px !important;
    height: 58px !important;
    padding: 0.2rem !important;
  }

  .sh-login-orbit__planet--outer {
    width: 62px !important;
    height: 62px !important;
  }

  .sh-login-orbit__planet-ico {
    font-size: 18px !important;
  }

  .sh-login-orbit__planet-label {
    font-size: 6.5px !important;
    max-width: 48px !important;
  }

  .sh-login-orbit__hub {
    width: 126px !important;
    height: 126px !important;
    padding: 0.4rem !important;
  }

  .sh-login-orbit__hub-ico {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 0.2rem !important;
  }

  .sh-login-orbit__hub-ico .material-symbols-outlined {
    font-size: 18px !important;
  }

  .sh-login-orbit__hub-title {
    font-size: 9.5px !important;
  }

  .sh-login-orbit__hub-phone {
    font-size: 8px !important;
    padding: 0.12rem 0.35rem !important;
    margin-top: 0.2rem !important;
  }

  .sh-login-orbit__hub-phone .material-symbols-outlined {
    font-size: 10px !important;
  }

  .sh-login-orbit__hub-phone-num {
    font-size: 8.5px !important;
  }

  .sh-login-trust {
    padding: 0.65rem 0.75rem !important;
    border-radius: 14px !important;
  }

  .sh-login-trust h3 {
    font-size: 10px !important;
  }

  .sh-login-trust p {
    font-size: 9px !important;
  }

  .sh-login-input {
    font-size: 15px !important;
    padding: 0.75rem 0.85rem 0.75rem 2.6rem !important;
    min-height: 46px !important;
  }

  .sh-login-submit {
    min-height: 48px !important;
    font-size: 13px !important;
  }
}

/* VERY SMALL SCREENS (<= 380px) */
@media (max-width: 380px) {
  .sh-login-orbit,
  .sh-login-orbit--solar {
    max-width: 250px !important;
    --orbit-radius: 65px !important;
    --orbit-radius-outer: 95px !important;
  }

  .sh-login-orbit__planet {
    width: 48px !important;
    height: 48px !important;
  }

  .sh-login-orbit__planet--outer {
    width: 52px !important;
    height: 52px !important;
  }

  .sh-login-orbit__planet-ico {
    font-size: 15px !important;
  }

  .sh-login-orbit__planet-label {
    display: none !important;
  }

  .sh-login-orbit__hub {
    width: 108px !important;
    height: 108px !important;
  }

  .sh-login-glass,
  .sh-login-glass--fit {
    padding: 1rem 0.75rem !important;
  }
}

/* Form Fields, Inputs & Buttons */
.sh-login-field {
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.sh-login-input {
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.sh-login-submit {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Landing Page Instant Services & Modals */
@media (max-width: 1024px) {
  div.grid.grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 768px) {
  div.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .fixed.inset-0.bg-black\/60 > div {
    max-width: 95vw !important;
    margin: 10px auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* --------------------------------------------------------------------------
   12. ACCESSIBILITY, TOUCH TARGETS & FORM INPUT INTEGRITY
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  button, a, input, select, textarea {
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Prevents iOS Safari from auto-zooming inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* High-contrast and crisp typography across devices */
body, button, input, select, textarea {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   END SECURE HUB MASTER RESPONSIVE STYLESHEET
   ========================================================================== */


/* --------------------------------------------------------------------------
   SECURE HUB REDESIGNED LOGIN & LANDING PAGE SYSTEM
   -------------------------------------------------------------------------- */
.sh-portal-login-root {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dark .sh-portal-login-root {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

.sh-login-header {
  width: 100% !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.dark .sh-login-header {
  background-color: #1e293b !important;
  border-bottom-color: #334155 !important;
}

.sh-login-header-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  height: 4.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .sh-login-header-inner {
    padding: 0 2rem !important;
    height: 5rem !important;
  }
}

.sh-login-main-container {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 2rem 1.25rem !important;
  box-sizing: border-box !important;
}

@media (min-width: 1024px) {
  .sh-login-main-container {
    padding: 3rem 2rem !important;
  }
}

/* Two-column Hero on Desktop (Intro Left ~58%, Login Right ~42%). Mobile Login First. */
.sh-hero-flex {
  display: flex !important;
  width: 100% !important;
  gap: 36px !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}

@media (min-width: 1024px) {
  .sh-hero-flex {
    flex-direction: row !important;
  }
  .sh-hero-left {
    width: 58% !important;
    flex: 0 0 58% !important;
    order: 1 !important;
  }
  .sh-hero-right {
    width: calc(42% - 36px) !important;
    flex: 1 1 calc(42% - 36px) !important;
    order: 2 !important;
  }
}

@media (max-width: 1023px) {
  .sh-hero-flex {
    flex-direction: column !important;
    gap: 28px !important;
  }
  .sh-hero-right {
    width: 100% !important;
    order: 1 !important; /* Mobile: Show Login Card first */
  }
  .sh-hero-left {
    width: 100% !important;
    order: 2 !important; /* Mobile: Show Intro & Shortcuts second */
  }
}

/* Shortcut cards: 4 columns on desktop, 2 columns on mobile */
.sh-shortcut-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .sh-shortcut-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

.sh-shortcut-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 98px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

.sh-shortcut-card:hover {
  box-shadow: 0 6px 16px rgba(13, 130, 138, 0.12) !important;
  border-color: rgba(13, 130, 138, 0.4) !important;
  transform: translateY(-2px) !important;
}

.dark .sh-shortcut-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Login Card styling */
.sh-login-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .sh-login-card {
    padding: 24px 20px !important;
  }
}

.dark .sh-login-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

/* Teal action buttons */
.sh-btn-teal {
  background-color: #0d828a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(13, 130, 138, 0.2) !important;
  text-decoration: none !important;
}

.sh-btn-teal:hover {
  background-color: #0b6f76 !important;
  box-shadow: 0 4px 8px rgba(13, 130, 138, 0.3) !important;
}

.sh-btn-teal:active {
  transform: scale(0.98) !important;
}

.sh-btn-outline-teal {
  background-color: transparent !important;
  color: #0d828a !important;
  border: 1.5px solid #0d828a !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 9px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.sh-btn-outline-teal:hover {
  background-color: #0d828a !important;
  color: #ffffff !important;
}

/* Quick Services / Access without login */
.sh-quick-services-section {
  width: 100% !important;
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 48px 0 !important;
  box-sizing: border-box !important;
}

.dark .sh-quick-services-section {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
}

.sh-service-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .sh-service-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.sh-service-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 190px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.sh-service-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px) !important;
}

.dark .sh-service-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Why Choose Us Section */
.sh-why-choose-section {
  width: 100% !important;
  background-color: #ffffff !important;
  padding: 48px 0 !important;
  box-sizing: border-box !important;
}

.dark .sh-why-choose-section {
  background-color: #111c38 !important;
}

.sh-advantages-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  margin-top: 36px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .sh-advantages-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {
  .sh-advantages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Footer Section */
.sh-login-footer {
  width: 100% !important;
  background-color: #0b1329 !important;
  color: #94a3b8 !important;
  border-top: 1px solid #1e293b !important;
  padding: 40px 0 30px 0 !important;
  box-sizing: border-box !important;
}

.sh-login-footer-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .sh-login-footer-inner {
    padding: 0 2rem !important;
  }
}


/* --------------------------------------------------------------------------
   SECURE HUB REDESIGNED LOGIN & LANDING PAGE SYSTEM
   -------------------------------------------------------------------------- */
.sh-portal-login-root {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dark .sh-portal-login-root {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

/* Header styling - force pure white background with subtle border */
.sh-portal-login-root header,
.sh-portal-login-root .sh-login-header,
header.sh-login-header,
.light-mode header.sh-login-header,
.light-mode header,
.light-mode .wooden-header-outer.sh-login-header {
  width: 100% !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

.dark .sh-login-header,
.dark .sh-portal-login-root header {
  background-color: #1e293b !important;
  border-bottom-color: #334155 !important;
  color: #f8fafc !important;
}

.sh-portal-login-root .sh-login-header span,
.sh-login-header span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.dark .sh-portal-login-root .sh-login-header span,
.dark .sh-login-header span {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

.sh-portal-login-root .sh-login-header span.text-slate-500,
.sh-login-header span.text-slate-500 {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

.dark .sh-portal-login-root .sh-login-header span.text-slate-500,
.dark .sh-login-header span.text-slate-500 {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

.sh-login-header-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  height: 4.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .sh-login-header-inner {
    padding: 0 2rem !important;
    height: 5rem !important;
  }
}

.sh-login-main-container {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 2rem 1.25rem !important;
  box-sizing: border-box !important;
}

@media (min-width: 1024px) {
  .sh-login-main-container {
    padding: 3rem 2rem !important;
  }
}

/* Two-column Hero on Desktop (Intro Left ~58%, Login Right ~42%). Mobile Login First. */
.sh-hero-flex {
  display: flex !important;
  width: 100% !important;
  gap: 36px !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}

@media (min-width: 1024px) {
  .sh-hero-flex {
    flex-direction: row !important;
  }
  .sh-hero-left {
    width: 58% !important;
    flex: 0 0 58% !important;
    order: 1 !important;
  }
  .sh-hero-right {
    width: calc(42% - 36px) !important;
    flex: 1 1 calc(42% - 36px) !important;
    order: 2 !important;
  }
}

@media (max-width: 1023px) {
  .sh-hero-flex {
    flex-direction: column !important;
    gap: 28px !important;
  }
  .sh-hero-right {
    width: 100% !important;
    order: 1 !important; /* Mobile: Show Login Card first */
  }
  .sh-hero-left {
    width: 100% !important;
    order: 2 !important; /* Mobile: Show Intro & Shortcuts second */
  }
}

/* Shortcut cards: 4 columns on desktop, 2 columns on mobile */
.sh-shortcut-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .sh-shortcut-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

.sh-shortcut-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 98px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

.sh-shortcut-card:hover {
  box-shadow: 0 6px 16px rgba(13, 130, 138, 0.12) !important;
  border-color: rgba(13, 130, 138, 0.4) !important;
  transform: translateY(-2px) !important;
}

.dark .sh-shortcut-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Login Card styling */
#login-form-card,
#sh-login-form-card,
.light-mode #login-form-card,
.light-mode #sh-login-form-card {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  color: inherit !important;
}

#login-form-card label,
#sh-login-form-card label,
.light-mode #login-form-card label,
.light-mode #sh-login-form-card label {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

#login-form-card p,
#sh-login-form-card p,
.light-mode #login-form-card p,
.light-mode #sh-login-form-card p {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  text-shadow: none !important;
}

#login-form-card h2,
#sh-login-form-card h2,
.light-mode #login-form-card h2,
.light-mode #sh-login-form-card h2 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

#login-form-card input,
#sh-login-form-card input,
.light-mode #login-form-card input,
.light-mode #sh-login-form-card input {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background-color: #ffffff !important;
  text-shadow: none !important;
}

.sh-login-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .sh-login-card {
    padding: 24px 20px !important;
  }
}

.dark .sh-login-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

/* Teal action buttons */
.sh-btn-teal {
  background-color: #0d828a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(13, 130, 138, 0.2) !important;
  text-decoration: none !important;
}

.sh-btn-teal:hover {
  background-color: #0b6f76 !important;
  box-shadow: 0 4px 8px rgba(13, 130, 138, 0.3) !important;
}

.sh-btn-teal:active {
  transform: scale(0.98) !important;
}

.sh-btn-outline-teal {
  background-color: transparent !important;
  color: #0d828a !important;
  border: 1.5px solid #0d828a !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 9px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.sh-btn-outline-teal:hover {
  background-color: #0d828a !important;
  color: #ffffff !important;
}

/* Quick Services / Access without login */
.sh-quick-services-section {
  width: 100% !important;
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 48px 0 !important;
  box-sizing: border-box !important;
}

.dark .sh-quick-services-section {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
}

.sh-service-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .sh-service-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.sh-service-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 190px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.sh-service-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px) !important;
}

.dark .sh-service-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* Why Choose Us Section */
.sh-why-choose-section {
  width: 100% !important;
  background-color: #ffffff !important;
  padding: 48px 0 !important;
  box-sizing: border-box !important;
}

.dark .sh-why-choose-section {
  background-color: #111c38 !important;
}

.sh-advantages-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  margin-top: 36px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .sh-advantages-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {
  .sh-advantages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Footer Section */
.sh-login-footer {
  width: 100% !important;
  background-color: #0b1329 !important;
  color: #94a3b8 !important;
  border-top: 1px solid #1e293b !important;
  padding: 40px 0 30px 0 !important;
  box-sizing: border-box !important;
}

.sh-login-footer-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .sh-login-footer-inner {
    padding: 0 2rem !important;
  }
}


/* --- DARK MODE (when .light-mode is absent on html) --- */
html:not(.light-mode) .sh-portal-login-root,
.dark .sh-portal-login-root {
  background-color: #0b1329 !important;
  color: #f8fafc !important;
}

html:not(.light-mode) .sh-portal-login-root header,
html:not(.light-mode) header.sh-login-header,
.dark header.sh-login-header,
.dark .sh-portal-login-root header {
  background-color: #0b1329 !important;
  background-image: none !important;
  border-bottom: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

html:not(.light-mode) .sh-portal-login-root .sh-login-header span,
.dark .sh-portal-login-root .sh-login-header span {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html:not(.light-mode) .sh-portal-login-root h1,
html:not(.light-mode) .sh-portal-login-root h2,
html:not(.light-mode) .sh-portal-login-root h3,
.dark .sh-portal-login-root h1,
.dark .sh-portal-login-root h2,
.dark .sh-portal-login-root h3 {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html:not(.light-mode) .sh-portal-login-root p,
.dark .sh-portal-login-root p {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

html:not(.light-mode) .sh-shortcut-card,
html:not(.light-mode) .sh-login-card,
html:not(.light-mode) .sh-service-card,
.dark .sh-shortcut-card,
.dark .sh-login-card,
.dark .sh-service-card {
  background-color: #111c38 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html:not(.light-mode) .sh-shortcut-card span,
.dark .sh-shortcut-card span {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
}

html:not(.light-mode) .sh-login-card input,
.dark .sh-login-card input {
  background-color: #0b1329 !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html:not(.light-mode) .sh-quick-services-section,
.dark .sh-quick-services-section {
  background-color: #070d1e !important;
  border-top: 1px solid #1e293b !important;
  border-bottom: 1px solid #1e293b !important;
}

html:not(.light-mode) .sh-why-choose-section,
.dark .sh-why-choose-section {
  background-color: #0b1329 !important;
}

html:not(.light-mode) .sh-advantages-grid span,
.dark .sh-advantages-grid span {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
}


html:not(.light-mode) .sh-login-card h2,
.dark .sh-login-card h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html:not(.light-mode) .sh-login-card p,
.dark .sh-login-card p {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

html:not(.light-mode) .sh-login-card label,
.dark .sh-login-card label {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html:not(.light-mode) .sh-login-card span,
.dark .sh-login-card span {
  color: #cbd5e1 !important;
}

/* Authentic Official Logo Containers for Access without Login */
.sh-card-official-logo-box {
  width: 62px !important;
  height: 62px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid #e2e8f0 !important;
}

.sh-service-card:hover .sh-card-official-logo-box {
  transform: scale(1.08) translateY(-2px) !important;
  box-shadow: 0 12px 28px -4px rgba(13, 130, 138, 0.25) !important;
  border-color: #0d828a !important;
}

.official-service-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  margin-bottom: 10px !important;
  width: fit-content !important;
}

.modal-official-logo {
  width: 44px !important;
  height: 44px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}


/* ==========================================================================
   SECURE HUB - SOLAR SECURITY GATEWAY (AFTER LOGIN SUCCESS) RESPONSIVE ENGINE
   Authoritative multi-breakpoint viewport-adaptive architecture
   ========================================================================== */

/* 1. Prevent screen overflow and provide responsive padding */
.auth-solar-root {
  padding: clamp(8px, 1.5vh, 20px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide floating corner badges during authentication sequence to avoid clutter */
body:has(.auth-solar-root) #sh-heartbeat-mesh-badge,
body:has(.auth-solar-root) #sh-realtime-heartbeat-badge,
.auth-solar-root ~ #sh-heartbeat-mesh-badge,
.auth-solar-root ~ #sh-realtime-heartbeat-badge {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2. Solar Orbit Main Circle Container - Dual Viewport Bounded (vh + vw) */
.auth-solar-root .auth-solar-orbit-container,
.auth-solar-root > div.relative.flex.items-center.justify-center {
  width: min(540px, 86vw, 72vh) !important;
  height: min(540px, 86vw, 72vh) !important;
  max-width: 92vw !important;
  max-height: 78vh !important;
  aspect-ratio: 1 / 1 !important;
  margin: auto !important;
  position: relative !important;
  flex-shrink: 0 !important;
  transition: width 0.25s ease, height 0.25s ease, transform 0.25s ease !important;
}

/* 3. Orbit SVG Scaler */
.auth-solar-root .auth-solar-orbit-container > svg,
.auth-solar-root > div.relative.flex.items-center.justify-center > svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* 4. Side Cyber Streams Collision Prevention */
@media (max-width: 1379px) {
  .auth-solar-root .auth-solar-side-stream,
  .auth-solar-root div[class*="left-8"],
  .auth-solar-root div[class*="right-8"] {
    display: none !important;
  }
}

@media (min-width: 1380px) {
  .auth-solar-root div[class*="left-8"] {
    left: clamp(16px, 3.5vw, 56px) !important;
    opacity: 0.55 !important;
    font-size: 8.5px !important;
  }
  .auth-solar-root div[class*="right-8"] {
    right: clamp(16px, 3.5vw, 56px) !important;
    opacity: 0.55 !important;
    font-size: 8.5px !important;
  }
}

/* 5. Orbit Circumference Node Badges */
.auth-solar-root .auth-solar-node-badge,
.auth-solar-root [class*="rounded-full"][style*="top:"] {
  white-space: nowrap !important;
  z-index: 10 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* 6. Breakpoint: Laptops & Medium Screens (e.g. 1280x585 short screen) */
@media (max-width: 1080px), (max-height: 680px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(470px, 84vw, 70vh) !important;
    height: min(470px, 84vw, 70vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 2.5px 7px !important;
  }
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 8px !important;
    line-height: 1.1 !important;
  }
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 6.5px !important;
    line-height: 1.1 !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 260px !important;
    transform: scale(0.92) !important;
    transform-origin: center center !important;
  }
}

/* 7. Breakpoint: Tablets & Low Laptops (Height < 580px or Width < 768px) */
@media (max-width: 768px), (max-height: 580px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(390px, 82vw, 66vh) !important;
    height: min(390px, 82vw, 66vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 2px 6px !important;
  }
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 7.5px !important;
  }
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 6px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 235px !important;
    transform: scale(0.82) !important;
    transform-origin: center center !important;
  }
}

/* 8. Breakpoint: Mobile Phones (Width <= 480px or Height <= 500px) */
@media (max-width: 480px), (max-height: 500px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(315px, 78vw, 60vh) !important;
    height: min(315px, 78vw, 60vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 1.5px 5px !important;
  }
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 7px !important;
  }
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 5.5px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 210px !important;
    transform: scale(0.72) !important;
    transform-origin: center center !important;
  }
}

/* 9. Breakpoint: Small Mobile & Ultra-Low Height (Width <= 360px or Height <= 440px) */
@media (max-width: 360px), (max-height: 440px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(265px, 75vw, 56vh) !important;
    height: min(265px, 75vw, 56vh) !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    transform: scale(0.62) !important;
    transform-origin: center center !important;
  }
}




/* ==========================================================================
   SECURE HUB - SOLAR SECURITY GATEWAY PERFECT RESPONSIVE ENGINE
   Authoritative multi-breakpoint viewport-adaptive architecture
   ========================================================================== */

/* 1. Root Container */
.auth-solar-root {
  padding: clamp(6px, 1.5vh, 16px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  inset: 0 !important;
}

/* Hide floating corner badges during authentication sequence to avoid clutter */
body:has(.auth-solar-root) #sh-heartbeat-mesh-badge,
body:has(.auth-solar-root) #sh-realtime-heartbeat-badge,
.auth-solar-root ~ #sh-heartbeat-mesh-badge,
.auth-solar-root ~ #sh-realtime-heartbeat-badge {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2. Solar Orbit Main Circle Container - Dual Viewport Bounded (vh + vw) */
.auth-solar-root .auth-solar-orbit-container,
.auth-solar-root > div.relative.flex.items-center.justify-center {
  width: min(540px, 86vw, 76vh) !important;
  height: min(540px, 86vw, 76vh) !important;
  max-width: 90vw !important;
  max-height: 80vh !important;
  aspect-ratio: 1 / 1 !important;
  margin: auto !important;
  position: relative !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: width 0.2s ease, height 0.2s ease !important;
}

/* 3. Orbit SVG Scaler */
.auth-solar-root .auth-solar-orbit-container > svg,
.auth-solar-root > div.relative.flex.items-center.justify-center > svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* 4. Side Cyber Streams Collision Prevention */
@media (max-width: 1379px) {
  .auth-solar-root .auth-solar-side-stream,
  .auth-solar-root div[class*="left-8"],
  .auth-solar-root div[class*="right-8"] {
    display: none !important;
  }
}

@media (min-width: 1380px) {
  .auth-solar-root div[class*="left-8"] {
    left: clamp(16px, 3.5vw, 56px) !important;
    opacity: 0.55 !important;
    font-size: 8.5px !important;
  }
  .auth-solar-root div[class*="right-8"] {
    right: clamp(16px, 3.5vw, 56px) !important;
    opacity: 0.55 !important;
    font-size: 8.5px !important;
  }
}

/* 5. Orbit Circumference Node Badges */
.auth-solar-root .auth-solar-node-badge,
.auth-solar-root [class*="rounded-full"][style*="top:"] {
  white-space: nowrap !important;
  z-index: 10 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 3px 8px !important;
}
.auth-solar-root .auth-solar-node-badge span:first-child,
.auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
  font-size: 9px !important;
  line-height: 1.1 !important;
}
.auth-solar-root .auth-solar-node-badge span:last-child,
.auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
  font-size: 7px !important;
  line-height: 1.1 !important;
}

/* 6. Center Card Proportionate Containment (Scales inside inner orbital circle) */
.auth-solar-root .auth-solar-center,
.auth-solar-root div[class*="z-20"][class*="flex-col"] {
  max-width: 290px !important;
  width: 100% !important;
  transform: scale(0.82) !important;
  transform-origin: center center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 7. Laptops & Medium Screens (e.g. 1280x585 short screen) */
@media (max-width: 1280px), (max-height: 680px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(480px, 84vw, 74vh) !important;
    height: min(480px, 84vw, 74vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 2.5px 7px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:first-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 8px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:last-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 6.5px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 270px !important;
    transform: scale(0.78) !important;
  }
}

/* 8. Tablets & Low Laptops (Height < 580px or Width < 768px) */
@media (max-width: 768px), (max-height: 580px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(390px, 82vw, 70vh) !important;
    height: min(390px, 82vw, 70vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 2px 6px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:first-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 7.5px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:last-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 6px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 240px !important;
    transform: scale(0.72) !important;
  }
}

/* 9. Mobile Phones (Width <= 480px or Height <= 500px) */
@media (max-width: 480px), (max-height: 500px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(320px, 80vw, 64vh) !important;
    height: min(320px, 80vw, 64vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 1.5px 5px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:first-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 7px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:last-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 5.5px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 220px !important;
    transform: scale(0.64) !important;
  }
}

/* 10. Ultra-Small Mobile (Width <= 360px or Height <= 440px) */
@media (max-width: 360px), (max-height: 440px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(265px, 75vw, 58vh) !important;
    height: min(265px, 75vw, 58vh) !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    transform: scale(0.56) !important;
  }
}



/* ==========================================================================
   SECURE HUB - SOLAR SECURITY GATEWAY PERFECT RESPONSIVE ENGINE V2
   Authoritative multi-breakpoint viewport-adaptive architecture
   ========================================================================== */

/* 1. Root Container */
.auth-solar-root {
  padding: clamp(6px, 1.5vh, 16px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
}

/* Corner HUD telemetry indicators */
.auth-solar-root .auth-solar-hud-tl {
  position: absolute !important;
  top: 18px !important;
  left: 24px !important;
  font-family: monospace !important;
  font-size: 8px !important;
  letter-spacing: 0.25em !important;
  color: rgba(34, 211, 238, 0.75) !important;
  z-index: 15 !important;
}

.auth-solar-root .auth-solar-hud-tr {
  position: absolute !important;
  top: 18px !important;
  right: 24px !important;
  font-family: monospace !important;
  font-size: 8px !important;
  letter-spacing: 0.25em !important;
  color: rgba(34, 211, 238, 0.75) !important;
  z-index: 15 !important;
}

/* Hide floating corner badges during authentication sequence to avoid clutter */
body:has(.auth-solar-root) #sh-heartbeat-mesh-badge,
body:has(.auth-solar-root) #sh-realtime-heartbeat-badge,
.auth-solar-root ~ #sh-heartbeat-mesh-badge,
.auth-solar-root ~ #sh-realtime-heartbeat-badge {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2. Solar Orbit Main Circle Container - Dual Viewport Bounded (vh + vw) */
.auth-solar-root .auth-solar-orbit-container,
.auth-solar-root > div.relative.flex.items-center.justify-center {
  width: min(540px, 86vw, 76vh) !important;
  height: min(540px, 86vw, 76vh) !important;
  max-width: 90vw !important;
  max-height: 80vh !important;
  aspect-ratio: 1 / 1 !important;
  margin: auto !important;
  position: relative !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: width 0.2s ease, height 0.2s ease !important;
}

/* 3. Orbit SVG Scaler */
.auth-solar-root .auth-solar-orbit-container > svg,
.auth-solar-root > div.relative.flex.items-center.justify-center > svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* 4. Side Cyber Streams Collision Prevention */
@media (max-width: 1379px) {
  .auth-solar-root .auth-solar-side-stream,
  .auth-solar-root div[class*="left-8"],
  .auth-solar-root div[class*="right-8"] {
    display: none !important;
  }
}

@media (min-width: 1380px) {
  .auth-solar-root div[class*="left-8"] {
    left: clamp(16px, 3.5vw, 56px) !important;
    opacity: 0.55 !important;
    font-size: 8.5px !important;
  }
  .auth-solar-root div[class*="right-8"] {
    right: clamp(16px, 3.5vw, 56px) !important;
    opacity: 0.55 !important;
    font-size: 8.5px !important;
  }
}

/* 5. Orbit Circumference Node Badges */
.auth-solar-root .auth-solar-node-badge,
.auth-solar-root [class*="rounded-full"][style*="top:"] {
  white-space: nowrap !important;
  z-index: 10 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 3px 8px !important;
}
.auth-solar-root .auth-solar-node-badge span:first-child,
.auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
  font-size: 9px !important;
  line-height: 1.1 !important;
}
.auth-solar-root .auth-solar-node-badge span:last-child,
.auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
  font-size: 7px !important;
  line-height: 1.1 !important;
}

/* 6. Title and Center Card */
.auth-solar-root h2,
.auth-solar-root .auth-solar-title {
  white-space: nowrap !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
}

.auth-solar-root .auth-solar-center,
.auth-solar-root div[class*="z-20"][class*="flex-col"] {
  max-width: 320px !important;
  width: 100% !important;
  transform: scale(0.74) !important;
  transform-origin: center center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 7. Laptops & Medium Screens (e.g. 1280x585 short screen) */
@media (max-width: 1280px), (max-height: 680px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(480px, 84vw, 75vh) !important;
    height: min(480px, 84vw, 75vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 2.5px 7px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:first-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 8.5px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:last-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 6.8px !important;
  }
  .auth-solar-root h2,
  .auth-solar-root .auth-solar-title {
    font-size: 16px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 320px !important;
    transform: scale(0.72) !important;
  }
}

/* 8. Tablets & Low Laptops (Height < 580px or Width < 768px) */
@media (max-width: 768px), (max-height: 580px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(400px, 82vw, 72vh) !important;
    height: min(400px, 82vw, 72vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 2px 6px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:first-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 7.5px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:last-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 6px !important;
  }
  .auth-solar-root h2,
  .auth-solar-root .auth-solar-title {
    font-size: 15px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 310px !important;
    transform: scale(0.66) !important;
  }
}

/* 9. Mobile Phones (Width <= 480px or Height <= 500px) */
@media (max-width: 480px), (max-height: 500px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(325px, 80vw, 66vh) !important;
    height: min(325px, 80vw, 66vh) !important;
  }
  .auth-solar-root .auth-solar-node-badge,
  .auth-solar-root [class*="rounded-full"][style*="top:"] {
    padding: 1.5px 5px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:first-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:first-child {
    font-size: 7px !important;
  }
  .auth-solar-root .auth-solar-node-badge span:last-child,
  .auth-solar-root [class*="rounded-full"][style*="top:"] span:last-child {
    font-size: 5.5px !important;
  }
  .auth-solar-root h2,
  .auth-solar-root .auth-solar-title {
    font-size: 14px !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    max-width: 300px !important;
    transform: scale(0.58) !important;
  }
}

/* 10. Ultra-Small Mobile (Width <= 360px or Height <= 440px) */
@media (max-width: 360px), (max-height: 440px) {
  .auth-solar-root .auth-solar-orbit-container,
  .auth-solar-root > div.relative.flex.items-center.justify-center {
    width: min(270px, 76vw, 60vh) !important;
    height: min(270px, 76vw, 60vh) !important;
  }
  .auth-solar-root .auth-solar-center,
  .auth-solar-root div[class*="z-20"][class*="flex-col"] {
    transform: scale(0.50) !important;
  }
}

/* SECURE HUB - MASTER CONSOLE THEME CONTRAST & RECHARGE WALLET SYSTEM */

/* ==========================================================================
   SECURE HUB - MASTER CONSOLE THEME CONTRAST & RECHARGE WALLET SYSTEM
   Ensures 100% highlighted, high-contrast text and responsive layout in all views
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RECHARGE WALLET CARD (DARK THEME - DEFAULT & ACTIVE)
   -------------------------------------------------------------------------- */
html:not(.light-mode) .sh-recharge-wallet-card,
body:not(.light-mode) .sh-recharge-wallet-card,
.sh-recharge-wallet-card {
  background: linear-gradient(145deg, #0d1527 0%, #060b16 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  border-radius: 24px !important;
  padding: 28px 32px !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}

html:not(.light-mode) .sh-recharge-top-bar,
.sh-recharge-top-bar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 50%, #38bdf8 100%) !important;
}

html:not(.light-mode) .sh-recharge-header-row,
.sh-recharge-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 22px !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

html:not(.light-mode) .sh-recharge-title,
.sh-recharge-title {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

html:not(.light-mode) .sh-recharge-subtitle,
.sh-recharge-subtitle {
  margin: 5px 0 0 0 !important;
  font-size: 13.5px !important;
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  font-weight: 700 !important;
}

html:not(.light-mode) .sh-recharge-minmax,
.sh-recharge-minmax {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.16) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

/* Input container */
html:not(.light-mode) .sh-recharge-input-wrap,
.sh-recharge-input-wrap {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  background: #040814 !important;
  border: 2px solid rgba(245, 158, 11, 0.65) !important;
  border-radius: 16px !important;
  padding: 6px 14px !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 16px rgba(245, 158, 11, 0.18) !important;
  margin-bottom: 20px !important;
  gap: 12px !important;
}

html:not(.light-mode) .sh-recharge-input-wrap:focus-within,
.sh-recharge-input-wrap:focus-within {
  border-color: #f59e0b !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 22px rgba(245, 158, 11, 0.38) !important;
}

html:not(.light-mode) .sh-recharge-input-row,
.sh-recharge-input-row {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 240px !important;
  min-width: 180px !important;
}

html:not(.light-mode) .sh-recharge-currency,
.sh-recharge-currency {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #f59e0b !important;
  -webkit-text-fill-color: #f59e0b !important;
  padding: 0 8px 0 4px !important;
  user-select: none !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}

/* High-specificity rules for the amount input */
html:not(.light-mode) #sh-recharge-wallet-card input.sh-recharge-input,
html:not(.light-mode) #sh-recharge-wallet-card input.sh-recharge-input[type="number"],
html:not(.light-mode) .sh-recharge-input-wrap input,
#sh-recharge-wallet-card input.sh-recharge-input,
#sh-recharge-wallet-card input.sh-recharge-input[type="number"],
.sh-recharge-input-wrap input.sh-recharge-input,
.sh-recharge-input {
  flex: 1 !important;
  padding: 12px 10px !important;
  border: none !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  font-family: monospace !important;
  opacity: 1 !important;
}

html:not(.light-mode) #sh-recharge-wallet-card input.sh-recharge-input::placeholder,
.sh-recharge-input-wrap input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

html:not(.light-mode) .sh-recharge-btn,
.sh-recharge-btn {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f97316 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1.5px solid #fdba74 !important;
  border-radius: 12px !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.5), 0 0 16px rgba(249, 115, 22, 0.3) !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  flex: 0 0 auto !important;
}

html:not(.light-mode) .sh-recharge-btn:hover:not(:disabled),
.sh-recharge-btn:hover:not(:disabled) {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.65), 0 0 20px rgba(249, 115, 22, 0.45) !important;
}

/* Quick Select Pills */
html:not(.light-mode) .sh-quick-row,
.sh-quick-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
}

html:not(.light-mode) .sh-quick-label,
.sh-quick-label {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  -webkit-text-fill-color: #fbbf24 !important;
  margin-right: 4px !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3) !important;
}

html:not(.light-mode) .sh-quick-btn,
.sh-quick-btn {
  border-radius: 12px !important;
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

html:not(.light-mode) .sh-quick-btn-unselected,
.sh-quick-btn-unselected {
  background: rgba(30, 41, 59, 0.9) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border: 1.5px solid rgba(148, 163, 184, 0.35) !important;
}

html:not(.light-mode) .sh-quick-btn-unselected:hover,
.sh-quick-btn-unselected:hover {
  background: rgba(51, 65, 85, 0.95) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  transform: translateY(-1px) !important;
}

html:not(.light-mode) .sh-quick-btn-selected,
.sh-quick-btn-selected {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1.5px solid #f97316 !important;
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.55) !important;
}

/* Security Bar */
html:not(.light-mode) .sh-recharge-security-bar,
.sh-recharge-security-bar {
  background: rgba(10, 16, 30, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

html:not(.light-mode) .sh-security-lock-text,
.sh-security-lock-text {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #4ade80 !important;
  -webkit-text-fill-color: #4ade80 !important;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.3) !important;
}

html:not(.light-mode) .sh-accepted-wrap,
.sh-accepted-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

html:not(.light-mode) .sh-accepted-label,
.sh-accepted-label {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html:not(.light-mode) .sh-accepted-chip,
.sh-accepted-chip {
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* --------------------------------------------------------------------------
   2. LOGIN CARD INPUT & TEXT CONTRAST SYSTEM (BULLETPROOF FIX)
   Ensures username and password inputs are never white rectangles in dark mode
   and never black boxes in light mode, with 100% crisp highlighted text.
   -------------------------------------------------------------------------- */
/* DARK MODE: Sleek Obsidian Inputs with Cyan Glowing Accents */
html:not(.light-mode) .sh-login-card,
html:not(.light-mode) #sh-login-form-card .sh-login-card,
html:not(.light-mode) .sh-portal-login-root {
  background: #030712 !important;
  background-color: #030712 !important;
  color: #f1f5f9 !important;
}

html:not(.light-mode) .sh-login-card {
  background: linear-gradient(180deg, #070d1e 0%, #050914 100%) !important;
  background-color: #070d1e !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(13, 148, 136, 0.2) !important;
}

html:not(.light-mode) .sh-login-card h1,
html:not(.light-mode) .sh-login-card h2,
html:not(.light-mode) #login-form-card h1,
html:not(.light-mode) #login-form-card h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

html:not(.light-mode) .sh-login-card p,
html:not(.light-mode) #login-form-card p {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

html:not(.light-mode) .sh-login-input-row,
html:not(.light-mode) .sh-login-field,
html:not(.light-mode) #sh-login-form-card .sh-login-input-row,
html:not(.light-mode) #sh-login-form-card .sh-login-field,
html:not(.light-mode) #login-form-card .sh-login-input-row,
html:not(.light-mode) #login-form-card .sh-login-field {
  background: #060c1c !important;
  background-color: #060c1c !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12) !important;
  transition: all 0.2s ease !important;
}

html:not(.light-mode) .sh-login-input-row:hover,
html:not(.light-mode) .sh-login-field:hover,
html:not(.light-mode) #sh-login-form-card .sh-login-input-row:hover,
html:not(.light-mode) #login-form-card .sh-login-field:hover {
  background: #081124 !important;
  background-color: #081124 !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
}

html:not(.light-mode) .sh-login-input-row:focus-within,
html:not(.light-mode) .sh-login-field:focus-within,
html:not(.light-mode) #sh-login-form-card .sh-login-input-row:focus-within,
html:not(.light-mode) #login-form-card .sh-login-field:focus-within {
  background: #09152b !important;
  background-color: #09152b !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4) !important;
}

html:not(.light-mode) input.sh-login-input,
html:not(.light-mode) #username,
html:not(.light-mode) #password,
html:not(.light-mode) .sh-login-card input:not([type="checkbox"]):not([type="submit"]):not([type="button"]),
html:not(.light-mode) #login-form-card input:not([type="checkbox"]):not([type="submit"]):not([type="button"]) {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
}

html:not(.light-mode) input.sh-login-input::placeholder,
html:not(.light-mode) #username::placeholder,
html:not(.light-mode) #password::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

/* Autofill Fix for Dark Mode */
html:not(.light-mode) input.sh-login-input:-webkit-autofill,
html:not(.light-mode) input.sh-login-input:-webkit-autofill:hover,
html:not(.light-mode) input.sh-login-input:-webkit-autofill:focus,
html:not(.light-mode) input.sh-login-input:-webkit-autofill:active,
html:not(.light-mode) #username:-webkit-autofill,
html:not(.light-mode) #password:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #060c1c inset !important;
  box-shadow: 0 0 0 1000px #060c1c inset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Labels and Badges in Dark Mode */
html:not(.light-mode) .sh-login-label,
html:not(.light-mode) label[for="username"],
html:not(.light-mode) label[for="password"] {
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  font-weight: 800 !important;
}

html:not(.light-mode) .sh-login-badge {
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
}

html:not(.light-mode) .sh-input-icon-wrap svg,
html:not(.light-mode) .sh-login-field__ico span {
  stroke: #38bdf8 !important;
  color: #38bdf8 !important;
}

html:not(.light-mode) .sh-password-toggle,
html:not(.light-mode) .sh-login-eye {
  color: #94a3b8 !important;
}
html:not(.light-mode) .sh-password-toggle svg,
html:not(.light-mode) .sh-login-eye span {
  stroke: #94a3b8 !important;
  color: #94a3b8 !important;
}
html:not(.light-mode) .sh-password-toggle:hover svg,
html:not(.light-mode) .sh-login-eye:hover span {
  stroke: #38bdf8 !important;
  color: #38bdf8 !important;
}

/* LIGHT MODE: Crisp White Inputs with High-Contrast Slate Text */
html.light-mode .sh-login-card,
html.light-mode #sh-login-form-card .sh-login-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(13, 130, 138, 0.08) !important;
  color: #0f172a !important;
}

html.light-mode .sh-portal-login-root {
  background-color: #f8fafc !important;
}

html.light-mode .sh-portal-login-root header.sh-login-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.light-mode .sh-login-card h1,
html.light-mode .sh-login-card h2,
html.light-mode #login-form-card h1,
html.light-mode #login-form-card h2 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 900 !important;
}

html.light-mode .sh-login-card p,
html.light-mode #login-form-card p {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

html.light-mode .sh-login-input-row,
html.light-mode .sh-login-field,
html.light-mode #sh-login-form-card .sh-login-input-row,
html.light-mode #sh-login-form-card .sh-login-field,
html.light-mode #login-form-card .sh-login-input-row,
html.light-mode #login-form-card .sh-login-field {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .sh-login-input-row:focus-within,
html.light-mode .sh-login-field:focus-within,
html.light-mode #sh-login-form-card .sh-login-input-row:focus-within,
html.light-mode #login-form-card .sh-login-field:focus-within {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

html.light-mode input.sh-login-input,
html.light-mode #username,
html.light-mode #password,
html.light-mode .sh-login-card input:not([type="checkbox"]):not([type="submit"]):not([type="button"]),
html.light-mode #login-form-card input:not([type="checkbox"]):not([type="submit"]):not([type="button"]) {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: transparent !important;
  background-color: transparent !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
}

html.light-mode input.sh-login-input::placeholder,
html.light-mode #username::placeholder,
html.light-mode #password::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

/* Autofill Fix for Light Mode */
html.light-mode input.sh-login-input:-webkit-autofill,
html.light-mode input.sh-login-input:-webkit-autofill:hover,
html.light-mode input.sh-login-input:-webkit-autofill:focus,
html.light-mode input.sh-login-input:-webkit-autofill:active,
html.light-mode #username:-webkit-autofill,
html.light-mode #password:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
  box-shadow: 0 0 0 1000px #f8fafc inset !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Labels and Badges in Light Mode */
html.light-mode .sh-login-label,
html.light-mode label[for="username"],
html.light-mode label[for="password"] {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 800 !important;
}

html.light-mode .sh-login-badge {
  color: #0369a1 !important;
  -webkit-text-fill-color: #0369a1 !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
}

html.light-mode .sh-input-icon-wrap svg,
html.light-mode .sh-login-field__ico span {
  stroke: #64748b !important;
  color: #64748b !important;
}

html.light-mode .sh-password-toggle,
html.light-mode .sh-login-eye {
  color: #64748b !important;
}
html.light-mode .sh-password-toggle svg,
html.light-mode .sh-login-eye span {
  stroke: #64748b !important;
  color: #64748b !important;
}
html.light-mode .sh-password-toggle:hover svg,
html.light-mode .sh-login-eye:hover span {
  stroke: #0284c7 !important;
  color: #0284c7 !important;
}

/* --------------------------------------------------------------------------
   3. RECHARGE WALLET CARD (LIGHT THEME SUPPORT)
   -------------------------------------------------------------------------- */
html.light-mode .sh-recharge-wallet-card,
body.light-mode .sh-recharge-wallet-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px #e2e8f0 !important;
}

html.light-mode .sh-recharge-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

html.light-mode .sh-recharge-subtitle {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

html.light-mode .sh-recharge-minmax {
  color: #0369a1 !important;
  -webkit-text-fill-color: #0369a1 !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  box-shadow: none !important;
}

html.light-mode .sh-recharge-input-wrap {
  background: #ffffff !important;
  border: 2px solid #94a3b8 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .sh-recharge-currency {
  color: #ea580c !important;
  -webkit-text-fill-color: #ea580c !important;
  text-shadow: none !important;
}

html.light-mode #sh-recharge-wallet-card input.sh-recharge-input,
html.light-mode #sh-recharge-wallet-card input.sh-recharge-input[type="number"],
html.light-mode .sh-recharge-input-wrap input {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background-color: transparent !important;
  border: none !important;
}

html.light-mode .sh-recharge-input::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  opacity: 1 !important;
}

html.light-mode .sh-quick-label {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  text-shadow: none !important;
}

html.light-mode .sh-quick-btn-unselected {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}

html.light-mode .sh-recharge-security-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html.light-mode .sh-security-lock-text {
  color: #16a34a !important;
  -webkit-text-fill-color: #16a34a !important;
  text-shadow: none !important;
}

html.light-mode .sh-accepted-label {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

html.light-mode .sh-accepted-chip {
  background: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE MASTER RULES FOR RECHARGE CARD & CONSOLE
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .sh-recharge-wallet-card {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }
  .sh-recharge-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .sh-recharge-title {
    font-size: 19px !important;
  }
  .sh-recharge-subtitle {
    font-size: 12.5px !important;
  }
  .sh-recharge-input-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 12px !important;
    gap: 12px !important;
  }
  .sh-recharge-input-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .sh-recharge-currency {
    font-size: 24px !important;
  }
  .sh-recharge-input {
    font-size: 20px !important;
  }
  .sh-recharge-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 18px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    flex: 1 1 100% !important;
  }
  .sh-quick-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .sh-quick-label {
    grid-column: span 3 !important;
    margin-bottom: 2px !important;
  }
  .sh-quick-btn {
    padding: 9px 6px !important;
    font-size: 13px !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .sh-recharge-security-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .sh-accepted-wrap {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .sh-quick-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sh-quick-label {
    grid-column: span 2 !important;
  }
}

/* --------------------------------------------------------------------------
   5. UNIVERSAL HIGH-CONTRAST & HIGHLIGHTED TEXT ACROSS CONSOLE & PORTAL
   -------------------------------------------------------------------------- */
/* Only target workspace light containers, NOT the login card */
html:not(.light-mode) div.wooden-main div[class*="bg-white"],
html:not(.light-mode) div.wooden-main div.bg-white,
html:not(.light-mode) div.wooden-main section[class*="bg-white"],
html:not(.light-mode) div.wooden-main [class*="bg-slate-50"],
html:not(.light-mode) div.wooden-main [class*="bg-gray-50"],
html:not(.light-mode) div.wooden-main [class*="bg-gray-100"] {
  color: #0f172a !important;
}

html:not(.light-mode) div.wooden-main div[class*="bg-white"] h1,
html:not(.light-mode) div.wooden-main div[class*="bg-white"] h2,
html:not(.light-mode) div.wooden-main div[class*="bg-white"] h3,
html:not(.light-mode) div.wooden-main div[class*="bg-white"] h4,
html:not(.light-mode) div.wooden-main div.bg-white h1,
html:not(.light-mode) div.wooden-main div.bg-white h2,
html:not(.light-mode) div.wooden-main div.bg-white h3,
html:not(.light-mode) div.wooden-main div.bg-white h4,
html:not(.light-mode) div.wooden-main [class*="bg-slate-50"] h1,
html:not(.light-mode) div.wooden-main [class*="bg-slate-50"] h2,
html:not(.light-mode) div.wooden-main [class*="bg-slate-50"] h3 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

html:not(.light-mode) div.wooden-main div[class*="bg-white"] p:not([class*="text-"]):not([class*="bg-"]),
html:not(.light-mode) div.wooden-main div.bg-white p:not([class*="text-"]):not([class*="bg-"]),
html:not(.light-mode) div.wooden-main [class*="bg-slate-50"] p:not([class*="text-"]) {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-weight: 600 !important;
}

html:not(.light-mode) div.wooden-main div[class*="bg-white"] label,
html:not(.light-mode) div.wooden-main div.bg-white label {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 800 !important;
}

/* Any input inside a workspace light container */
html:not(.light-mode) div.wooden-main div[class*="bg-white"] input:not(.sh-login-input):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
html:not(.light-mode) div.wooden-main div.bg-white input:not(.sh-login-input):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
html:not(.light-mode) div.wooden-main [class*="bg-slate-50"] input:not(.sh-login-input):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
html:not(.light-mode) div.wooden-main input.bg-white:not(.sh-login-input) {
  background-color: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1.5px solid #94a3b8 !important;
  font-weight: 700 !important;
}

/* Any heading or label in dark console cards */
html:not(.light-mode) .wooden-main h1:not([class*="text-"]),
html:not(.light-mode) .wooden-main h2:not([class*="text-"]),
html:not(.light-mode) .wooden-main h3:not([class*="text-"]) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 900 !important;
}

html:not(.light-mode) .wooden-main p:not([class*="text-"]):not([class*="bg-"]) {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  font-weight: 600 !important;
}

/* Tables across transaction history and console */
html:not(.light-mode) table th {
  color: #fbbf24 !important;
  -webkit-text-fill-color: #fbbf24 !important;
  font-weight: 800 !important;
}

html:not(.light-mode) table td {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-weight: 600 !important;
}

html:not(.light-mode) table td .text-slate-400,
html:not(.light-mode) table td .text-gray-400 {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}
