*, *::before, *::after {
      box-sizing: border-box;
    }

    html, body {
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden;
      margin: 0;
      padding: 0;
    }

    html {
      background-color: #0b0f19;
      scroll-behavior: smooth;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Ultra-smooth micro-interactions without changing colors/theme */
    a, button, input, select, textarea, .glass-card, .sidebar-link, .cat-pill, .product-card, .catalog-list-row, .modal-box {
      transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    }

    body {
      background-color: transparent;
      color: #94a3b8;
      font-family: 'Twemoji Country Flags', 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
      font-size: 15px;
      line-height: 1.5;
      position: relative;
      min-height: 100vh;
      min-height: 100dvh;
      transition: color 0.3s ease;
      -webkit-tap-highlight-color: transparent;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: 'Twemoji Country Flags', 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
      letter-spacing: -0.035em;
      line-height: 1.2;
    }
    h3 {
      letter-spacing: -0.02em;
    }
    code, .mono, pre, kbd {
      font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
      font-size: .86em;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -1;
      background: linear-gradient(180deg, rgba(11, 15, 25, 0.88) 0%, rgba(10, 14, 24, 0.94) 45%, rgba(8, 12, 20, 0.98) 100%), url('/images/bg_cyber_glass.jpg?v=2') center/cover no-repeat;
      pointer-events: none;
      transform: translate3d(0, 0, 0);
      -webkit-transform: translate3d(0, 0, 0);
      will-change: transform;
    }
    
    /* Crystal clear rendering: NO forced translateZ(0) / backface-visibility that causes GPU texture blur */
    .glass-card, .sidebar-link, .cat-pill, .product-card, .catalog-list-row, .modal-box, .tab-btn {
      transform: none;
      -webkit-transform: none;
      backface-visibility: visible;
      -webkit-backface-visibility: visible;
    }

    /* CSS Containment to prevent full-page layout re-calculations */
    .contain-paint {
      contain: layout style paint;
    }

    .contain-list {
      content-visibility: auto;
      contain-intrinsic-size: 0 80px;
    }

    /* Custom Scrollbars */
    ::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }
    ::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.02);
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.12);
      border-radius: 9999px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    /* Hide scrollbars for slick mobile horizontal carousels */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .glass-card {
      background: #111625;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02);
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .glow-active {
      box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    }

    /* Deposit Invoice Modal (Highest priority overlay) */
    #depositInvoiceModal {
      position: fixed !important;
      inset: 0 !important;
      z-index: 999999 !important;
      backdrop-filter: blur(18px) !important;
      -webkit-backdrop-filter: blur(18px) !important;
    }
    html.dark #depositInvoiceModal,
    html:not(.light) #depositInvoiceModal {
      background-color: rgba(0, 0, 0, 0.8) !important;
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
    }
    html.dark #depositInvoiceModal .deposit-modal-card,
    html:not(.light) #depositInvoiceModal .deposit-modal-card {
      background-color: #121622 !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85) !important;
      color: #ffffff !important;
      z-index: 1000000 !important;
    }

    /* Light Theme for Deposit Invoice Modal */
    html.light #depositInvoiceModal,
    html:not(.dark) #depositInvoiceModal {
      background-color: rgba(15, 23, 42, 0.6) !important;
      backdrop-filter: blur(14px) !important;
      -webkit-backdrop-filter: blur(14px) !important;
    }
    html.light #depositInvoiceModal .deposit-modal-card,
    html:not(.dark) #depositInvoiceModal .deposit-modal-card {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
      color: #0f172a !important;
      z-index: 1000000 !important;
    }
    html.light #depositInvoiceModal #depositModalTitle,
    html.light #depositInvoiceModal #sbpAmountDisplay,
    html.light #depositInvoiceModal #tonAmountDisplay,
    html.light #depositInvoiceModal #sbpMethodName,
    html.light #depositInvoiceModal .text-white,
    html:not(.dark) #depositInvoiceModal #depositModalTitle,
    html:not(.dark) #depositInvoiceModal #sbpAmountDisplay,
    html:not(.dark) #depositInvoiceModal #tonAmountDisplay,
    html:not(.dark) #depositInvoiceModal #sbpMethodName,
    html:not(.dark) #depositInvoiceModal .text-white {
      color: #0f172a !important;
    }
    html.light #depositInvoiceModal p,
    html.light #depositInvoiceModal .text-zinc-400,
    html:not(.dark) #depositInvoiceModal p,
    html:not(.dark) #depositInvoiceModal .text-zinc-400 {
      color: #64748b !important;
    }
    html.light #depositInvoiceModal #sbpBankAppBtn,
    html.light #depositInvoiceModal #sbpBankAppBtn *,
    html:not(.dark) #depositInvoiceModal #sbpBankAppBtn,
    html:not(.dark) #depositInvoiceModal #sbpBankAppBtn * {
      color: #ffffff !important;
    }
    #depositInvoiceModal #sbpPayPageLink {
      background: #2563eb !important;
      background-image: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8) !important;
      color: #ffffff !important;
      box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45) !important;
    }
    #depositInvoiceModal #sbpPayPageLink * {
      color: #ffffff !important;
    }
    #depositInvoiceModal #sbpPayPageLink:hover {
      background-image: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af) !important;
      opacity: 0.96;
      transform: translateY(-1px);
      box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.55) !important;
    }
    html.light #depositInvoiceModal .bg-white\/5,
    html:not(.dark) #depositInvoiceModal .bg-white\/5 {
      background-color: #f1f5f9 !important;
      border-color: #e2e8f0 !important;
      color: #475569 !important;
    }
    html.light #depositInvoiceModal .border-white\/10,
    html:not(.dark) #depositInvoiceModal .border-white\/10 {
      border-color: #e2e8f0 !important;
    }
    html.light #depositInvoiceModal button[onclick*="closeDepositInvoiceModal"],
    html:not(.dark) #depositInvoiceModal button[onclick*="closeDepositInvoiceModal"] {
      background-color: #f1f5f9 !important;
      border: 1px solid #e2e8f0 !important;
      color: #475569 !important;
    }
    html.light #depositInvoiceModal button[onclick*="closeDepositInvoiceModal"]:hover,
    html:not(.dark) #depositInvoiceModal button[onclick*="closeDepositInvoiceModal"]:hover {
      background-color: #e2e8f0 !important;
      color: #0f172a !important;
    }
    html.light #depositInvoiceModal [class*="bg-[#0a0d16]"],
    html:not(.dark) #depositInvoiceModal [class*="bg-[#0a0d16]"] {
      background-color: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
    }
    html.light #depositInvoiceModal [class*="bg-[#0a0d16]"] .text-white,
    html:not(.dark) #depositInvoiceModal [class*="bg-[#0a0d16]"] .text-white {
      color: #0f172a !important;
    }

    /* ======================================================== */
    /* LIGHT THEME (h1cloud Inspired Neocrystal Aesthetic)       */
    /* ======================================================== */
    html:not(.dark) {
      background-color: #f8fafc;
      color-scheme: light;
    }

    html:not(.dark) body {
      background-color: transparent !important;
      color: #334155 !important;
    }

    html:not(.dark) body::before {
      background: linear-gradient(180deg, rgba(248, 250, 252, 0.82) 0%, rgba(241, 245, 249, 0.92) 45%, rgba(226, 232, 240, 0.98) 100%), url('/images/bg_3d_light.jpg') center/cover no-repeat !important;
    }

    html:not(.dark) .glass-card {
      background: rgba(255, 255, 255, 0.88) !important;
      backdrop-filter: blur(24px) !important;
      -webkit-backdrop-filter: blur(24px) !important;
      border: 1px solid rgba(226, 232, 240, 0.95) !important;
      box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
    }

    html:not(.dark) aside .border-cardBorder,
    html:not(.dark) .border-cardBorder {
      border-color: rgba(226, 232, 240, 0.8) !important;
    }

    html:not(.dark) aside .bg-sidebar\/80,
    html:not(.dark) aside .bg-sidebar {
      background-color: transparent !important;
    }
    aside .bg-sidebar\/80,
    aside .bg-sidebar {
      background-color: transparent !important;
    }

    html:not(.dark) header {
      background: rgba(255, 255, 255, 0.92) !important;
      border-bottom: 1px solid #e2e8f0 !important;
    }

    html:not(.dark) .sidebar-link {
      color: #475569 !important;
    }

    html:not(.dark) .sidebar-link:hover {
      color: #0f172a !important;
      background: #f1f5f9 !important;
    }

    html:not(.dark) .sidebar-link.active {
      background: #2563eb !important;
      color: #ffffff !important;
      box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3) !important;
    }

    html:not(.dark) .sidebar-link.active * {
      color: #ffffff !important;
    }

    html:not(.dark) .text-white {
      color: #0f172a !important;
    }

    html:not(.dark) .text-zinc-200,
    html:not(.dark) .text-zinc-300 {
      color: #1e293b !important;
    }

    html:not(.dark) .text-zinc-400 {
      color: #64748b !important;
    }

    html:not(.dark) .text-zinc-500 {
      color: #64748b !important;
    }

    html:not(.dark) .text-zinc-600 {
      color: #94a3b8 !important;
    }

    /* All inner cards, info strips, 2FA cards, and credential boxes (eliminate black backgrounds) */
    html:not(.dark) [class*="bg-[#090d19]"],
    html:not(.dark) [class*="bg-[#0a0d16]"],
    html:not(.dark) [class*="bg-[#0c101c]"],
    html:not(.dark) [class*="bg-[#06080c]"],
    html:not(.dark) [class*="bg-[#0e1320]"],
    html:not(.dark) [class*="bg-[#0b0e14]"],
    html:not(.dark) [class*="bg-[#080b11]"],
    html:not(.dark) [class*="bg-[#0f141f]"],
    html:not(.dark) [class*="bg-[#131822]"],
    html:not(.dark) [class*="bg-black"],
    html:not(.dark) .bg-slate-900,
    html:not(.dark) .bg-zinc-900,
    html:not(.dark) .bg-zinc-950 {
      background-color: #f8fafc !important;
      border-color: #e2e8f0 !important;
      color: #0f172a !important;
    }

    /* Toast Notification in Light Mode */
    html:not(.dark) #toast {
      background: rgba(255, 255, 255, 0.98) !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    html:not(.dark) #toast,
    html:not(.dark) #toastText {
      color: #0f172a !important;
    }

    /* Inner link strips hover state */
    html:not(.dark) a[class*="bg-[#090d19]"]:hover {
      background-color: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
    }

    /* Secondary buttons & 2FA helper buttons in light mode */
    html:not(.dark) .bg-white\/5,
    html:not(.dark) .bg-white\/10 {
      background-color: #f1f5f9 !important;
      border-color: #e2e8f0 !important;
      color: #334155 !important;
    }

    html:not(.dark) .hover\:bg-white\/5:hover,
    html:not(.dark) .hover\:bg-white\/10:hover {
      background-color: #e2e8f0 !important;
      color: #0f172a !important;
    }

    html:not(.dark) .border-white\/10,
    html:not(.dark) .border-white\/5,
    html:not(.dark) .border-white\/20 {
      border-color: #e2e8f0 !important;
    }

    html:not(.dark) .font-mono {
      color: #0f172a !important;
    }

    html:not(.dark) .catalog-list-row {
      background: rgba(255, 255, 255, 0.8) !important;
      border-bottom: 1px solid #e2e8f0 !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    }

    html:not(.dark) .catalog-list-row:hover {
      background: #ffffff !important;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08) !important;
    }

    html:not(.dark) input,
    html:not(.dark) select,
    html:not(.dark) textarea {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      color: #0f172a !important;
    }

    html:not(.dark) input::placeholder,
    html:not(.dark) textarea::placeholder {
      color: #94a3b8 !important;
    }

    html:not(.dark) .cat-pill {
      background: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      color: #475569 !important;
    }

    /* ======================================================== */
    /* DARK THEME (h1cloud Inspired Deep Slate Aesthetic)       */
    /* ======================================================== */
    html.dark,
    html.dark {
      background-color: #10151d !important;
      color-scheme: dark;
    }

    html.dark body {
      background-color: #10151d !important;
      color: rgba(255, 255, 255, 0.84) !important;
    }

    html.dark body::before {
      background: radial-gradient(ellipse at 85% 4%, rgba(35, 136, 255, 0.13), transparent 48%),
                  radial-gradient(ellipse at 15% 70%, rgba(81, 177, 198, 0.07), transparent 50%),
                  linear-gradient(180deg, rgba(16, 21, 29, 0.82) 0%, rgba(16, 21, 29, 0.94) 100%),
                  url('/images/bg_cyber_glass.jpg?v=2') center/cover no-repeat !important;
    }

    /* Cards & Modals - EXACT h1cloud: rgba(24, 30, 39, .95) */
    html.dark .glass-card {
      background: rgba(24, 30, 39, 0.95) !important;
      backdrop-filter: blur(20px) !important;
      -webkit-backdrop-filter: blur(20px) !important;
      border: 1px solid rgba(158, 184, 220, 0.20) !important;
      box-shadow: 0 8px 28px rgba(0, 7, 19, 0.18), inset 0 1px 0 rgba(207, 226, 255, 0.13) !important;
    }

    /* Floating Sidebar - EXACT h1cloud rail: rgba(19, 25, 34, 0.96) */
    html.dark #appSidebar {
      background: rgba(19, 25, 34, 0.96) !important;
      backdrop-filter: blur(20px) !important;
      -webkit-backdrop-filter: blur(20px) !important;
      border: 1px solid rgba(158, 184, 220, 0.20) !important;
      box-shadow: 0 8px 28px rgba(0, 7, 19, 0.35), inset 0 1px 0 rgba(207, 226, 255, 0.13) !important;
    }

    html.dark #appSidebar::before {
      display: none !important;
    }

    html.dark #appSidebar .glass-card {
      background: rgba(24, 30, 39, 0.85) !important;
      border: 1px solid rgba(158, 184, 220, 0.16) !important;
      box-shadow: inset 0 1px 0 rgba(207, 226, 255, 0.08) !important;
    }

    html.dark .sidebar-link {
      color: #acb9cc !important;
      border: 1px solid transparent !important;
    }

    html.dark .sidebar-link:hover {
      color: #ffffff !important;
      background: rgba(35, 136, 255, 0.12) !important;
      border-color: rgba(158, 184, 220, 0.20) !important;
    }

    html.dark .sidebar-link.active {
      background: linear-gradient(135deg, #2388ff, #1875df) !important;
      color: #ffffff !important;
      border: 1px solid rgba(255, 255, 255, 0.25) !important;
      box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 4px 14px rgba(35, 136, 255, 0.30) !important;
    }

    html.dark .sidebar-link.active i,
    html.dark .sidebar-link.active svg {
      color: #ffffff !important;
    }

    /* All inner cards, info strips, 2FA cards, and credential boxes */
    html.dark [class*="bg-[#090d19]"],
    html.dark [class*="bg-[#0a0d16]"],
    html.dark [class*="bg-[#0c101c]"],
    html.dark [class*="bg-[#06080c]"],
    html.dark [class*="bg-[#0e1320]"],
    html.dark [class*="bg-[#0b0e14]"],
    html.dark [class*="bg-[#080b11]"],
    html.dark [class*="bg-[#0f141f]"],
    html.dark [class*="bg-[#131822]"] {
      background-color: rgba(17, 22, 30, 0.88) !important;
      border-color: rgba(158, 184, 220, 0.16) !important;
      box-shadow: inset 0 1px 2px rgba(20, 44, 80, 0.08) !important;
    }

    /* Inputs, Selects, Textareas */
    html.dark input,
    html.dark select,
    html.dark textarea {
      background-color: rgba(17, 22, 30, 0.88) !important;
      border-color: rgba(158, 184, 220, 0.20) !important;
      color: #ffffff !important;
      border-radius: 12px !important;
      box-shadow: inset 0 1px 2px rgba(20, 44, 80, 0.08) !important;
    }

    html.dark input:focus,
    html.dark select:focus,
    html.dark textarea:focus {
      border-color: #2388ff !important;
      box-shadow: 0 0 0 3px rgba(35, 136, 255, 0.22) !important;
      outline: none !important;
    }

    html.dark input::placeholder,
    html.dark textarea::placeholder {
      color: #96a6ba !important;
    }

    /* Card header divider and borders */
    html.dark .border-cardBorder {
      border-color: rgba(158, 184, 220, 0.16) !important;
    }

    /* Subdued secondary text & labels */
    html.dark .text-zinc-400 {
      color: #acb9cc !important;
    }

    html.dark .text-zinc-500 {
      color: #96a6ba !important;
    }

    html.dark .text-blue-400 {
      color: #65aaff !important;
    }

    /* Catalog horizontal cards */
    html.dark .catalog-horiz-card {
      background-color: rgba(24, 30, 39, 0.95) !important;
      border: 1px solid rgba(158, 184, 220, 0.18) !important;
      box-shadow: 0 8px 24px rgba(0, 7, 19, 0.18), inset 0 1px 0 rgba(207, 226, 255, 0.10) !important;
    }

    html.dark .catalog-horiz-card:hover {
      background-color: rgba(30, 37, 48, 0.95) !important;
      border-color: rgba(35, 136, 255, 0.45) !important;
      box-shadow: 0 10px 28px rgba(35, 90, 160, 0.15), inset 0 1px 0 rgba(207, 226, 255, 0.15) !important;
    }

    /* Category pills */
    html.dark .cat-pill {
      background-color: rgba(24, 30, 39, 0.95) !important;
      border: 1px solid rgba(158, 184, 220, 0.18) !important;
      color: #acb9cc !important;
    }
    html.dark .cat-pill:hover {
      color: #ffffff !important;
      background-color: rgba(35, 136, 255, 0.14) !important;
      border-color: rgba(158, 184, 220, 0.25) !important;
    }
    html.dark .cat-pill.active {
      background: linear-gradient(135deg, #2388ff, #1875df) !important;
      border-color: rgba(255, 255, 255, 0.25) !important;
      color: #ffffff !important;
      box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 4px 14px rgba(35, 136, 255, 0.30) !important;
    }

    /* Sort buttons */
    html.dark .sort-btn {
      background-color: rgba(24, 30, 39, 0.95) !important;
      border: 1px solid rgba(158, 184, 220, 0.18) !important;
      color: #acb9cc !important;
    }
    html.dark .sort-btn:hover {
      color: #ffffff !important;
      background-color: rgba(35, 136, 255, 0.14) !important;
      border-color: rgba(158, 184, 220, 0.25) !important;
    }
    html.dark .sort-btn.active {
      background: linear-gradient(135deg, #2388ff, #1875df) !important;
      border-color: rgba(255, 255, 255, 0.25) !important;
      color: #ffffff !important;
      box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 4px 14px rgba(35, 136, 255, 0.30) !important;
    }

    /* Secondary buttons */
    html.dark .bg-white\/5 {
      background-color: rgba(255, 255, 255, 0.05) !important;
      border: 1px solid rgba(158, 184, 220, 0.18) !important;
      color: #cbd5e1 !important;
    }
    html.dark .hover\:bg-white\/10:hover {
      background-color: rgba(255, 255, 255, 0.10) !important;
      color: #ffffff !important;
    }

    /* Primary buttons */
    html.dark .bg-brandBlue {
      background: linear-gradient(135deg, #2388ff, #1875df) !important;
      border: 1px solid rgba(255, 255, 255, 0.22) !important;
      box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 4px 14px rgba(35, 136, 255, 0.30) !important;
      color: #ffffff !important;
    }
    html.dark .hover\:bg-brandBlueHover:hover {
      background: linear-gradient(135deg, #3895ff, #2080ea) !important;
    }

    /* Alert Notice */
    html.dark .sms-alert-banner {
      background-color: rgba(244, 63, 94, 0.06) !important;
      border: 1px solid rgba(244, 63, 94, 0.22) !important;
    }

    /* ======================================================== */
    /* VIEW 10: EARN (НАРЕЗКИ) DEDICATED PIXEL-PERFECT STYLES   */
    /* ======================================================== */
    .clip-card {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 20px !important;
      padding: 24px 28px !important;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
    }
    html.dark .clip-card, html:not(.light) .clip-card {
      background-color: #0e1322 !important;
      border-color: rgba(255, 255, 255, 0.08) !important;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
    }

    .clip-tier-box {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 16px !important;
      padding: 24px 16px !important;
      text-align: center !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
    }
    html.dark .clip-tier-box, html:not(.light) .clip-tier-box {
      background-color: #090d19 !important;
      border-color: rgba(255, 255, 255, 0.08) !important;
    }

    .clip-tier-views {
      font-size: 22px !important;
      font-weight: 700 !important;
      color: #0f172a !important;
      line-height: 1.2 !important;
    }
    html.dark .clip-tier-views, html:not(.light) .clip-tier-views {
      color: #ffffff !important;
    }

    .clip-tier-label {
      font-size: 10.5px !important;
      font-weight: 600 !important;
      color: #94a3b8 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.08em !important;
      margin-top: 4px !important;
    }

    .clip-tier-price {
      font-size: 28px !important;
      font-weight: 700 !important;
      color: #2563eb !important;
      line-height: 1 !important;
      margin-top: 8px !important;
    }

    .clip-tier-rub {
      font-size: 12px !important;
      color: #94a3b8 !important;
      margin-top: 4px !important;
    }

    .clip-rule-icon {
      width: 32px !important;
      height: 32px !important;
      border-radius: 8px !important;
      background-color: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      color: #64748b !important;
      font-size: 13px !important;
      flex-shrink: 0 !important;
    }
    html.dark .clip-rule-icon, html:not(.light) .clip-rule-icon {
      background-color: rgba(255, 255, 255, 0.05) !important;
      border-color: rgba(255, 255, 255, 0.1) !important;
      color: #94a3b8 !important;
    }

    .clip-rule-text {
      font-size: 12px !important;
      line-height: 1.35 !important;
      color: #64748b !important;
      font-weight: 400 !important;
    }
    html.dark .clip-rule-text, html:not(.light) .clip-rule-text {
      color: #94a3b8 !important;
    }

    .clip-section-title {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #0f172a !important;
      line-height: 1.2 !important;
      margin: 0 !important;
    }
    html.dark .clip-section-title, html:not(.light) .clip-section-title {
      color: #ffffff !important;
    }

    .clip-section-desc {
      font-size: 13px !important;
      color: #64748b !important;
      margin-top: 4px !important;
      margin-bottom: 0 !important;
    }
    html.dark .clip-section-desc, html:not(.light) .clip-section-desc {
      color: #94a3b8 !important;
    }

    .clip-balance-label {
      font-size: 11px !important;
      font-weight: 500 !important;
      color: #94a3b8 !important;
      text-transform: lowercase !important;
    }

    .clip-balance-val {
      font-size: 28px !important;
      font-weight: 800 !important;
      color: #10b981 !important;
      line-height: 1 !important;
      margin-top: 2px !important;
    }

    .clip-balance-rub {
      font-size: 12px !important;
      color: #94a3b8 !important;
      margin-top: 4px !important;
    }

    .clip-btn-primary {
      background-color: #70a6ff !important;
      color: #ffffff !important;
      border: none !important;
      border-radius: 12px !important;
      padding: 10px 20px !important;
      font-size: 13.5px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      box-shadow: 0 2px 8px rgba(112, 166, 255, 0.25) !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-decoration: none !important;
      outline: none !important;
    }
    .clip-btn-primary:hover {
      background-color: #5593f6 !important;
      box-shadow: 0 4px 12px rgba(112, 166, 255, 0.4) !important;
      transform: translateY(-1px) !important;
    }
    .clip-btn-primary:active {
      transform: scale(0.98) !important;
    }

    .clip-btn-secondary {
      background-color: #eff6ff !important;
      color: #3b82f6 !important;
      border: 1px solid #dbeafe !important;
      border-radius: 12px !important;
      padding: 10px 20px !important;
      font-size: 13.5px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-decoration: none !important;
      outline: none !important;
    }
    html.dark .clip-btn-secondary, html:not(.light) .clip-btn-secondary {
      background-color: rgba(59, 130, 246, 0.12) !important;
      color: #60a5fa !important;
      border-color: rgba(59, 130, 246, 0.25) !important;
    }
    .clip-btn-secondary:hover {
      background-color: #dbeafe !important;
      color: #2563eb !important;
      transform: translateY(-1px) !important;
    }
    html.dark .clip-btn-secondary:hover, html:not(.light) .clip-btn-secondary:hover {
      background-color: rgba(59, 130, 246, 0.2) !important;
      color: #93c5fd !important;
    }
    .clip-btn-secondary:active {
      transform: scale(0.98) !important;
    }

    .clip-input-label {
      font-size: 12.5px !important;
      font-weight: 500 !important;
      color: #475569 !important;
      display: block !important;
      margin-bottom: 6px !important;
    }
    html.dark .clip-input-label, html:not(.light) .clip-input-label {
      color: #94a3b8 !important;
    }

    .clip-input-field {
      width: 100% !important;
      height: 48px !important;
      padding: 0 16px !important;
      border-radius: 12px !important;
      font-size: 14px !important;
      font-weight: 400 !important;
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      color: #0f172a !important;
      outline: none !important;
      transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }
    .clip-input-field:focus {
      border-color: #70a6ff !important;
      box-shadow: 0 0 0 3px rgba(112, 166, 255, 0.2) !important;
    }
    html.dark .clip-input-field, html:not(.light) .clip-input-field {
      background-color: #090d19 !important;
      border-color: rgba(255, 255, 255, 0.12) !important;
      color: #ffffff !important;
    }
    html.dark .clip-input-field:focus, html:not(.light) .clip-input-field:focus {
      border-color: #70a6ff !important;
      box-shadow: 0 0 0 3px rgba(112, 166, 255, 0.25) !important;
    }
    .clip-input-field::placeholder {
      color: #94a3b8 !important;
    }

    html:not(.dark) .cat-pill:hover {
      background: #f1f5f9 !important;
      color: #0f172a !important;
    }

    html:not(.dark) .cat-pill.active {
      background: #2563eb !important;
      color: #ffffff !important;
      border-color: #2563eb !important;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    }

    html:not(.dark) .cat-pill.active * {
      color: #ffffff !important;
    }

    html:not(.dark) .tab-btn {
      color: #64748b !important;
      background: #f8fafc !important;
    }

    html:not(.dark) .tab-btn.active {
      background: #2563eb !important;
      color: #ffffff !important;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    }

    html:not(.dark) .tab-btn.active * {
      color: #ffffff !important;
    }

    /* Fast Recharge Quick Buttons (+500 ₽, +1000 ₽, +2500 ₽) in Light Mode */
    html:not(.dark) button[onclick*="setDepAmount"] {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      color: #1e293b !important;
    }

    html:not(.dark) button[onclick*="setDepAmount"]:hover {
      background-color: #eff6ff !important;
      border-color: #93c5fd !important;
      color: #2563eb !important;
    }

    /* Primary buttons in light mode */
    html:not(.dark) .bg-brandBlue,
    html:not(.dark) .bg-blue-600,
    html:not(.dark) button.bg-brandBlue {
      background-color: #2563eb !important;
      color: #ffffff !important;
    }

    html:not(.dark) .bg-brandBlue:hover,
    html:not(.dark) .bg-blue-600:hover,
    html:not(.dark) button.bg-brandBlue:hover {
      background-color: #1d4ed8 !important;
      color: #ffffff !important;
    }

    /* Header Bar in Light Mode */
    html:not(.dark) header {
      background-color: rgba(255, 255, 255, 0.88) !important;
      border-bottom-color: #e2e8f0 !important;
    }
    html:not(.dark) #headerTitle {
      color: #0f172a !important;
    }
    /* ALL MODALS IN LIGHT THEME                                */
    /* ======================================================== */
    html:not(.dark) .fixed.inset-0.z-50,
    html:not(.dark) .fixed.inset-0.z-\[100\],
    html:not(.dark) #countryVariationModal,
    html:not(.dark) #productDetailModal,
    html:not(.dark) #cartModal,
    html:not(.dark) #apiKeyModal,
    html:not(.dark) #passwordModal,
    html:not(.dark) #totpQrModal,
    html:not(.dark) #tgBindModal,
    html:not(.dark) #logoutConfirmModal,
    #logoutConfirmModal {
      background-color: rgba(15, 23, 42, 0.6) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
    }

    /* Modal Windows */
    html:not(.dark) #countryVariationModal > div,
    html:not(.dark) #productDetailModal > div,
    html:not(.dark) #cartModal > div,
    html:not(.dark) #apiKeyModal > div,
    html:not(.dark) #passwordModal > div,
    html:not(.dark) #totpQrModal > div,
    html:not(.dark) #tgBindModal > div,
    html:not(.dark) [class*="bg-[#0e1322]"],
    html:not(.dark) [class*="bg-[#0c101c]"],
    html:not(.dark) .modal-box,
    html:not(.dark) .modal-content {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
      color: #0f172a !important;
    }

    /* Modal Titles and Headings */
    html:not(.dark) #countryVariationModal h3,
    html:not(.dark) #productDetailModal h3,
    html:not(.dark) #cartModal h3,
    html:not(.dark) #apiKeyModal h3,
    html:not(.dark) #passwordModal h3,
    html:not(.dark) #totpQrModal h3,
    html:not(.dark) #tgBindModal h3,
    html:not(.dark) #variationModalCountryName,
    html:not(.dark) #modalProductName {
      color: #0f172a !important;
      font-weight: 800 !important;
    }

    html:not(.dark) #variationModalSubtitle,
    html:not(.dark) #variationModalTotalStock,
    html:not(.dark) #modalProductDesc {
      color: #64748b !important;
    }

    /* Variation Item Card (Theme-Adaptive) */
    .variation-item-card {
      background: rgba(17, 24, 39, 0.88) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      color: #ffffff !important;
    }
    .variation-item-card:hover:not(.cursor-not-allowed) {
      background: rgba(23, 33, 56, 0.95) !important;
      border-color: rgba(59, 130, 246, 0.6) !important;
      box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25) !important;
    }
    .variation-item-card.cursor-not-allowed {
      background: rgba(255, 255, 255, 0.02) !important;
      border: 1px solid rgba(255, 255, 255, 0.05) !important;
      opacity: 0.55 !important;
      box-shadow: none !important;
    }
    .variation-item-card .variation-title,
    .variation-item-card .variation-country,
    .variation-item-card .variation-price {
      color: #ffffff !important;
    }

    /* Modal Inner Cards & Variation Rows in Light Theme */
    html:not(.dark) .variation-item-card,
    html:not(.dark) #variationsListContainer > div,
    html:not(.dark) #productDetailModal .bg-black\/40,
    html:not(.dark) #cartModal .bg-black\/40 {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
      color: #0f172a !important;
    }

    html:not(.dark) .variation-item-card:hover:not(.cursor-not-allowed),
    html:not(.dark) #variationsListContainer > div:hover:not(.cursor-not-allowed) {
      background-color: #f8fafc !important;
      border-color: #2563eb !important;
      box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12) !important;
    }

    html:not(.dark) .variation-item-card.cursor-not-allowed,
    html:not(.dark) #variationsListContainer > div.cursor-not-allowed {
      background-color: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      opacity: 0.55 !important;
      box-shadow: none !important;
    }

    html:not(.dark) .variation-item-card .variation-title,
    html:not(.dark) .variation-item-card .variation-country,
    html:not(.dark) .variation-item-card .variation-price {
      color: #0f172a !important;
    }

    html:not(.dark) #variationsListContainer .text-white,
    html:not(.dark) #productDetailModal .text-white {
      color: #0f172a !important;
    }

    html:not(.dark) #variationModalCountBadge {
      background-color: #eff6ff !important;
      color: #2563eb !important;
      border-color: #bfdbfe !important;
    }

    /* Close Cross Buttons on Modals */
    html:not(.dark) button[onclick*="close"],
    html:not(.dark) button[onclick*="close"]:hover {
      background-color: #f1f5f9 !important;
      color: #475569 !important;
      border: 1px solid #e2e8f0 !important;
    }

    html:not(.dark) button[onclick*="close"]:hover {
      background-color: #e2e8f0 !important;
      color: #0f172a !important;
    }

    /* Quantity Steppers inside Modals */
    html:not(.dark) #modalQtyDisplay,
    html:not(.dark) #modalProductPrice {
      color: #0f172a !important;
    }

    html:not(.dark) button[onclick*="changeModalQty"] {
      background-color: #f1f5f9 !important;
      border: 1px solid #e2e8f0 !important;
      color: #0f172a !important;
    }

    html:not(.dark) button[onclick*="changeModalQty"]:hover {
      background-color: #e2e8f0 !important;
    }

    html:not(.dark) ::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.02);
    }
    html:not(.dark) ::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.15);
    }
    html:not(.dark) ::-webkit-scrollbar-thumb:hover {
      background: rgba(0, 0, 0, 0.28);
    }

    /* Purchases list in light theme */
    html:not(.dark) #purchasesContainer .glass-card {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    }
    html:not(.dark) #purchasesContainer [id^="purch-menu-"] {
      border-top-color: #e2e8f0 !important;
    }
    html:not(.dark) #purchasesContainer [id^="purch-menu-"] .bg-black\/40 {
      background-color: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
    }
    html:not(.dark) #purchasesContainer [id^="purch-code-input-"] {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      color: #0f172a !important;
    }
    html:not(.dark) #purchasesContainer .text-white {
      color: #0f172a !important;
    }
    html:not(.dark) #purchasesContainer .text-zinc-300,
    html:not(.dark) #purchasesContainer .text-zinc-400 {
      color: #475569 !important;
    }
    html:not(.dark) #purchasesContainer .bg-white\/5 {
      background-color: #f1f5f9 !important;
      border-color: #e2e8f0 !important;
      color: #1e293b !important;
    }
    html:not(.dark) #purchasesContainer .border-cardBorder\/60,
    html:not(.dark) #purchasesContainer .border-cardBorder {
      border-color: #e2e8f0 !important;
    }

    /* Dedicated CSS for Floating Action Bar & Modal */
    #purchFloatingBar {
      position: fixed !important;
      bottom: 28px !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      z-index: 99999 !important;
      display: none !important;
      pointer-events: auto !important;
    }
    #purchFloatingBar.active-bar {
      display: flex !important;
    }
    @media (min-width: 1024px) {
      #purchFloatingBar {
        left: calc(50% + 128px) !important;
      }
    }
    #purchBulkDownloadModal,
    #downloadChoiceModal {
      position: fixed !important;
      inset: 0 !important;
      z-index: 100000000 !important;
    }
    #purchBulkDownloadModal.active-modal {
      display: flex !important;
    }

    /* SMS Virtual Numbers Alert Banner Contrast Styling */
    .sms-alert-banner {
      background: rgba(225, 29, 72, 0.08) !important;
      border: 1px solid rgba(225, 29, 72, 0.28) !important;
      box-shadow: 0 4px 20px rgba(225, 29, 72, 0.08) !important;
    }
    html:not(.dark) .sms-alert-banner {
      background: rgba(254, 226, 226, 0.85) !important;
      border: 1px solid rgba(239, 68, 68, 0.35) !important;
    }
    html:not(.dark) .sms-alert-banner .sms-alert-title {
      color: #b91c1c !important;
    }
    html:not(.dark) .sms-alert-banner .sms-alert-desc {
      color: #0f172a !important; /* ultra-high contrast dark slate */
    }
    html:not(.dark) .sms-alert-banner .sms-alert-highlight {
      color: #991b1b !important;
      font-weight: 700 !important;
    }

    /* Dark theme contrast */
    html.dark .sms-alert-banner,
    html:not(.light) .sms-alert-banner {
      background: rgba(136, 19, 55, 0.25) !important;
      border: 1px solid rgba(244, 63, 94, 0.35) !important;
    }
    html.dark .sms-alert-banner .sms-alert-title,
    html:not(.light) .sms-alert-banner .sms-alert-title {
      color: #fb7185 !important;
    }
    html.dark .sms-alert-banner .sms-alert-desc,
    html:not(.light) .sms-alert-banner .sms-alert-desc {
      color: #f1f5f9 !important;
    }
    html.dark .sms-alert-banner .sms-alert-highlight,
    html:not(.light) .sms-alert-banner .sms-alert-highlight {
      color: #ffffff !important;
      font-weight: 700 !important;
    }

    /* ======================================================== */
    /* 2-COLUMN VIRTUAL SMS SERVICES & COUNTRIES                */
    /* ======================================================== */
    .virtual-service-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.07);
      background: rgba(255, 255, 255, 0.02);
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
      user-select: none;
      position: relative;
      content-visibility: auto;
      contain-intrinsic-size: 46px;
    }
    .virtual-service-item:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.18);
      transform: translateX(2px);
    }
    .virtual-service-item.active {
      background: rgba(37, 99, 235, 0.18) !important;
      border-color: rgba(59, 130, 246, 0.6) !important;
      box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.25) !important;
    }
    .virtual-service-item.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 18%;
      bottom: 18%;
      width: 3.5px;
      background: #3b82f6;
      border-radius: 0 4px 4px 0;
      box-shadow: 0 0 10px #3b82f6;
    }
    .virtual-service-item .service-title {
      font-size: 12.5px;
      font-weight: 700;
      color: #ffffff;
      transition: color 0.15s ease;
    }
    .virtual-service-item.active .service-title {
      color: #60a5fa !important;
    }

    html:not(.dark) .virtual-service-item {
      border: 1px solid rgba(226, 232, 240, 0.95);
      background: #ffffff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }
    html:not(.dark) .virtual-service-item:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
    }
    html:not(.dark) .virtual-service-item.active {
      background: #eff6ff !important;
      border-color: #3b82f6 !important;
      box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.15) !important;
    }
    html:not(.dark) .virtual-service-item .service-title {
      color: #0f172a !important;
    }
    html:not(.dark) .virtual-service-item.active .service-title {
      color: #1d4ed8 !important;
    }

    .virtual-country-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.07);
      background: rgba(255, 255, 255, 0.025);
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .virtual-country-card:hover {
      background: rgba(255, 255, 255, 0.055);
      border-color: rgba(59, 130, 246, 0.35);
      transform: translateY(-1px);
      box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.2);
    }
    html:not(.dark) .virtual-country-card {
      border: 1px solid rgba(226, 232, 240, 0.95);
      background: #ffffff;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    }
    html:not(.dark) .virtual-country-card:hover {
      background: #ffffff;
      border-color: #93c5fd;
      box-shadow: 0 6px 18px -3px rgba(37, 99, 235, 0.08);
    }
    html:not(.dark) .virtual-country-card .country-name {
      color: #0f172a !important;
    }

    /* ======================================================== */
    /* FLOATING SIDEBAR (h1cloud Solid Slate Style)              */
    /* ======================================================== */
    #appSidebar {
      position: fixed;
      top: 12px;
      bottom: 12px;
      left: 12px;
      width: 260px;
      height: calc(100vh - 24px);
      height: calc(100dvh - 24px);
      border-radius: 20px !important;
      overflow: hidden !important;
      z-index: 50;
      background: #111625 !important;
      backdrop-filter: blur(20px) !important;
      -webkit-backdrop-filter: blur(20px) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.45) !important;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease !important;
    }

    #appSidebar::before {
      display: none !important;
    }

    #appSidebar > * {
      position: relative;
      z-index: 1;
    }

    html:not(.dark) #appSidebar {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 245, 255, 0.68) 100%), rgba(255, 255, 255, 0.75) !important;
      backdrop-filter: blur(28px) saturate(190%) !important;
      -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
      border: 1px solid rgba(255, 255, 255, 0.8) !important;
      box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 
                  inset 0 1px 2px rgba(255, 255, 255, 0.95), 
                  0 0 0 1px rgba(226, 232, 240, 0.75) !important;
    }

    html:not(.dark) #appSidebar::before {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    }

    @media (min-width: 1024px) {
      main {
        margin-left: 284px !important;
      }
    }

    @media (max-width: 1023px) {
      #appSidebar {
        top: 10px;
        bottom: 10px;
        left: 10px;
        width: 275px;
        max-width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        height: calc(100dvh - 20px);
        border-radius: 22px !important;
      }
      #appSidebar.-translate-x-full {
        transform: translateX(-125%) !important;
      }
    }

    #appSidebar .glass-card {
      background: rgba(255, 255, 255, 0.04) !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12) !important;
    }

    html:not(.dark) #appSidebar .glass-card {
      background: rgba(255, 255, 255, 0.6) !important;
      border: 1px solid rgba(255, 255, 255, 0.9) !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 1) !important;
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 600;
      color: #94a3b8;
      transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
      user-select: none;
    }

    .sidebar-link:active {
      transform: scale(0.98);
    }

    .sidebar-link:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.06);
    }

    .sidebar-link.active {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
      color: #ffffff !important;
      box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    html:not(.dark) .sidebar-link.active {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
      color: #ffffff !important;
      box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    }

    .sidebar-link.active i, .sidebar-link.active svg {
      color: #ffffff !important;
    }

    .badge-count {
      margin-left: auto;
      font-size: 11px;
      padding: 2px 7px;
      border-radius: 9999px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.1);
      color: #e2e8f0;
    }

    .sidebar-link.active .badge-count {
      background: rgba(255, 255, 255, 0.25);
      color: #ffffff;
    }

    .fade-in {
      animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes fadeIn {
      0% { opacity: 0; transform: translateY(7px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .view-enter {
      animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
      will-change: opacity, transform;
    }

    /* List row item styles */
    .catalog-list-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
      user-select: none;
      gap: 8px;
      min-width: 0;
      position: relative;
    }

    .catalog-list-row:first-child {
      border-top-left-radius: 1rem;
      border-top-right-radius: 1rem;
    }

    .catalog-list-row:last-child {
      border-bottom-left-radius: 1rem;
      border-bottom-right-radius: 1rem;
      border-bottom: none;
    }

    .catalog-list-row:active {
      transform: scale(0.992);
    }

    @media (min-width: 640px) {
      .catalog-list-row {
        padding: 13px 18px;
        gap: 12px;
      }
    }

    .catalog-list-row:hover {
      background: rgba(255, 255, 255, 0.04);
      z-index: 20;
    }

    .catalog-list-row:has(.verified-badge:hover) {
      z-index: 50;
    }

    /* Direct Link Pulse Animation */
    @keyframes rowPulseGlow {
      0% {
        box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.9), 0 0 25px rgba(59, 130, 246, 0.5);
        background: rgba(59, 130, 246, 0.16);
      }
      50% {
        box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 1), 0 0 35px rgba(59, 130, 246, 0.7);
        background: rgba(59, 130, 246, 0.24);
      }
      100% {
        box-shadow: none;
        background: transparent;
      }
    }
    .row-highlight-pulse {
      animation: rowPulseGlow 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    /* Category Filter Pills */
    .cat-pill {
      color: #94a3b8;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      cursor: pointer;
      user-select: none;
      transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cat-pill:active {
      transform: scale(0.97);
    }

    .cat-pill:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.15);
    }

    .cat-pill.active {
      background: #2563eb;
      color: #ffffff;
      border-color: #3b82f6;
      box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
    }

    /* Green feature pill badges under country names */
    .catalog-tag-green {
      display: inline-flex;
      align-items: center;
      gap: 3.5px;
      padding: 1.5px 6px;
      border-radius: 6px;
      font-size: 10px;
      font-weight: 600;
      line-height: 1.25;
      color: #34d399; /* emerald-400 */
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid rgba(16, 185, 129, 0.25);
      white-space: nowrap;
      letter-spacing: -0.01em;
    }
    html:not(.dark) .catalog-tag-green {
      color: #047857; /* emerald-700 */
      background: rgba(16, 185, 129, 0.1);
      border-color: rgba(16, 185, 129, 0.28);
    }

    /* Verified Blue Badge Tooltip */
    .verified-badge {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .verified-badge:hover {
      z-index: 60;
    }

    .badge-tooltip {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 100;
      white-space: nowrap;
      pointer-events: none;
      filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
    }

    .badge-tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border-width: 5px;
      border-style: solid;
      border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
    }

    .verified-badge:hover .badge-tooltip {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* Light Theme Tooltip */
    html:not(.dark) .badge-tooltip {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
      color: #0f172a !important;
      filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    }

    html:not(.dark) .badge-tooltip::after {
      border-color: #ffffff transparent transparent transparent !important;
    }

    html:not(.dark) .badge-tooltip .text-zinc-300 {
      color: #64748b !important;
    }

    html:not(.dark) .badge-tooltip strong {
      color: #0f172a !important;
    }

    .sort-btn {
      padding: 6px 11px;
      border-radius: 9px;
      font-size: 11px;
      font-weight: 700;
      color: #94a3b8;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.07);
      transition: all 0.2s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .sort-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(255, 255, 255, 0.15);
    }

    .sort-btn.active {
      background: rgba(37, 99, 235, 0.18);
      border-color: #2563eb;
      color: #60a5fa;
      box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    }
  
    /* Mobile & App Performance */
    @media (max-width: 1024px) {
      #tgParticlesCanvas {
        display: none !important;
      }
    }

    /* ======================================================== */
    /* LARGE SCREENS / BIG MONITORS READABILITY OPTIMIZATION    */
    /* ======================================================== */
    @media (min-width: 1440px) {
      html {
        font-size: 17px;
      }
      .sidebar-link {
        font-size: 14px;
        padding: 11px 15px;
      }
      .catalog-tag-green {
        font-size: 11.5px;
        padding: 2px 7px;
      }
      .sort-btn {
        font-size: 12px;
        padding: 7px 13px;
      }
      .catalog-list-row {
        padding: 15px 20px;
      }
    }

    @media (min-width: 1750px) {
      html {
        font-size: 18.5px;
      }
      #appSidebar {
        width: 290px;
      }
      main {
        margin-left: 315px !important;
      }
      .sidebar-link {
        font-size: 15px;
        padding: 12px 16px;
        gap: 14px;
      }
      .sidebar-link i, .sidebar-link svg {
        font-size: 16px;
      }
      .catalog-tag-green {
        font-size: 12.5px;
        padding: 2.5px 8px;
      }
      .sort-btn {
        font-size: 13px;
        padding: 8px 15px;
      }
      .catalog-list-row {
        padding: 16px 22px;
      }
    }

    @media (min-width: 2200px) {
      html {
        font-size: 20px;
      }
      #appSidebar {
        width: 330px;
      }
      main {
        margin-left: 360px !important;
      }
      .sidebar-link {
        font-size: 16.5px;
        padding: 13px 18px;
        gap: 16px;
      }
      .catalog-tag-green {
        font-size: 13.5px;
        padding: 3px 9px;
      }
      .sort-btn {
        font-size: 14px;
        padding: 9px 17px;
      }
    }

    /* Ultra-Low Latency Touch Response (0ms delay for 144Hz AMOLED) */
    * {
      -webkit-tap-highlight-color: transparent !important;
      touch-action: manipulation !important;
    }
    input, button, a, select, textarea, [onclick] {
      touch-action: manipulation !important;
      pointer-events: auto !important;
    }

/* DOWNLOAD CHOICE MODAL THEME STYLING (DARK CYBER BLUE THEME) */
    #downloadChoiceModal .dl-modal-box {
      max-width: 290px !important;
      width: 100% !important;
      border-radius: 1.25rem !important;
      padding: 1.25rem !important;
      position: relative !important;
      text-align: center !important;
      user-select: none !important;
      background-color: #0e1322 !important;
      border: 1px solid rgba(59, 130, 246, 0.25) !important;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(37, 99, 235, 0.15) !important;
    }
    html.light #downloadChoiceModal .dl-modal-box {
      background-color: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15) !important;
    }
    #downloadChoiceModal .dl-modal-title {
      font-size: 0.95rem !important;
      font-weight: 700 !important;
      color: #ffffff !important;
      margin: 0 0 1rem 0 !important;
      letter-spacing: -0.01em !important;
    }
    html.light #downloadChoiceModal .dl-modal-title {
      color: #0f172a !important;
    }
    .dl-format-btn {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0.55rem 0.5rem !important;
      border-radius: 0.75rem !important;
      font-size: 0.78rem !important;
      font-weight: 600 !important;
      transition: all 0.15s ease !important;
      cursor: pointer !important;
      background-color: #151b2d !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      color: #94a3b8 !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }
    .dl-format-btn:hover {
      background-color: #1e263d !important;
      color: #ffffff !important;
      border-color: rgba(59, 130, 246, 0.4) !important;
    }
    .dl-format-btn.active {
      border: 2px solid #3b82f6 !important;
      background-color: rgba(59, 130, 246, 0.2) !important;
      color: #60a5fa !important;
      font-weight: 700 !important;
      box-shadow: 0 0 12px rgba(59, 130, 246, 0.35) !important;
    }
    html.light .dl-format-btn {
      background-color: #f1f5f9 !important;
      border: 1px solid #cbd5e1 !important;
      color: #475569 !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    }
    html.light .dl-format-btn:hover {
      background-color: #e2e8f0 !important;
      color: #0f172a !important;
    }
    html.light .dl-format-btn.active {
      border: 2px solid #2563eb !important;
      background-color: rgba(37, 99, 235, 0.12) !important;
      color: #2563eb !important;
      font-weight: 700 !important;
    }
    #downloadChoiceModal .dl-cancel-btn {
      flex: 1 !important;
      padding: 0.55rem 0.75rem !important;
      border-radius: 0.75rem !important;
      background-color: #151b2d !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      color: #94a3b8 !important;
      font-weight: 600 !important;
      font-size: 0.78rem !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.4rem !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
    }
    #downloadChoiceModal .dl-cancel-btn:hover {
      background-color: #1e263d !important;
      color: #ffffff !important;
      border-color: rgba(255, 255, 255, 0.2) !important;
    }
    html.light #downloadChoiceModal .dl-cancel-btn {
      background-color: #f1f5f9 !important;
      border: 1px solid #cbd5e1 !important;
      color: #475569 !important;
    }
    html.light #downloadChoiceModal .dl-cancel-btn:hover {
      background-color: #e2e8f0 !important;
      color: #0f172a !important;
    }
    #downloadChoiceModal .dl-confirm-btn {
      flex: 1 !important;
      padding: 0.55rem 0.75rem !important;
      border-radius: 0.75rem !important;
      background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
      border: none !important;
      color: #ffffff !important;
      font-weight: 700 !important;
      font-size: 0.8rem !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.4rem !important;
      cursor: pointer !important;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
      transition: all 0.15s ease !important;
    }
    #downloadChoiceModal .dl-confirm-btn:hover {
      background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
      box-shadow: 0 4px 18px rgba(59, 130, 246, 0.6) !important;
    }
    #downloadChoiceModal .dl-confirm-btn:active,
    #downloadChoiceModal .dl-cancel-btn:active,
    .dl-format-btn:active {
      transform: scale(0.96) !important;
    }