/* DULA VPN Portal Custom Stylesheet */
    html {
      scroll-behavior: auto;
    }

    html.lenis, html.lenis body {
      height: auto;
    }

    .lenis.lenis-smooth {
      scroll-behavior: auto !important;
    }

    .lenis.lenis-smooth [data-lenis-prevent] {
      overscroll-behavior: contain;
    }

    /* Animated Custom Select Dropdown Styling */
    .custom-animated-select {
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      appearance: none;
      -webkit-appearance: none;
      background-image: none;
    }
    .custom-animated-select:focus {
      border-color: #d946ef !important;
      box-shadow: 0 0 15px rgba(217, 70, 239, 0.35), 0 0 0 2px rgba(217, 70, 239, 0.2) !important;
      transform: translateY(-1px);
    }
    .select-chevron-icon {
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    }
    .group:focus-within .select-chevron-icon {
      transform: rotate(180deg) scale(1.15);
      color: #d946ef;
    }

    /* Payment Method Option Cards */
    .pay-method-card {
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .pay-method-card.active-bank {
      border-color: #d946ef !important;
      box-shadow: 0 8px 24px -4px rgba(217, 70, 239, 0.25), 0 0 0 1px rgba(217, 70, 239, 0.4) !important;
      transform: scale(1.02);
    }
    .pay-method-card.active-ezcash {
      border-color: #f59e0b !important;
      box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.4) !important;
      transform: scale(1.02);
    }

    .lenis.lenis-stopped {
      overflow: hidden;
    }

    .lenis.lenis-smooth iframe {
      pointer-events: none;
    }

    body {
      background-color: #050510;
      color: #f8fafc;
      font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    }
    .font-orbitron { font-family: 'Plus Jakarta Sans', Inter, sans-serif; }
    
    .glass-card {
      background: rgba(15, 23, 42, 0.75);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(217, 70, 239, 0.2);
      transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
    }
    .glass-card-hover {
      transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .glass-card-hover:hover {
      transform: translateY(-6px) scale(1.015);
      border-color: rgba(34, 211, 238, 0.6);
      box-shadow: 0 16px 36px rgba(217, 70, 239, 0.22);
    }

    .text-gradient {
      background: linear-gradient(135deg, #22d3ee 0%, #ec4899 50%, #d946ef 100%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .gradient-dula {
      background: linear-gradient(135deg, #f59e0b 0%, #ec4899 40%, #8b5cf6 70%, #3b82f6 100%);
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .gradient-dula:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(217, 70, 239, 0.4);
    }

    .grid-pattern {
      background-image: radial-gradient(rgba(217, 70, 239, 0.12) 1px, transparent 1px);
      background-size: 24px 24px;
    }

    .nav-pill {
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid transparent;
      outline: none !important;
      -webkit-tap-highlight-color: transparent !important;
    }
    .nav-pill.active {
      background: rgba(217, 70, 239, 0.18);
      color: #f472b6;
      border: 1px solid rgba(217, 70, 239, 0.4);
    }

    /* BUTTON & INTERACTIVE TRANSITIONS - Optimized to avoid input typing lag */
    button, a {
      transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    }

    input, select, textarea {
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    }

    button:active {
      transform: scale(0.97);
    }

    /* CUSTOM SLEEK GRADIENT SCROLLBAR DESIGN */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: #050510;
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #d946ef 0%, #8b5cf6 50%, #22d3ee 100%);
      border-radius: 10px;
      border: 2px solid #050510;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #f472b6 0%, #a855f7 50%, #38bdf8 100%);
    }

    /* Firefox custom scrollbar support */
    * {
      scrollbar-width: thin;
      scrollbar-color: #d946ef #050510;
    }

    /* ANIMATION KEYFRAMES & UTILITIES */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* REVEAL & MODAL ANIMATION SYMMETRY */
    @keyframes scaleInWindow {
      from {
        opacity: 0;
        transform: scale(0.92) translateY(16px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    /* Reliable hiding for modals and inactive tab sections without breaking responsive utility classes */
    .modal-backdrop-blur.hidden,
    [id$="-modal"].hidden,
    .tab-section.hidden,
    .nav-pill.hidden,
    .mobile-nav-pill.hidden {
      display: none !important;
    }

    @media (min-width: 640px) {
      #top-nav-tabs-wrapper {
        display: flex !important;
      }
      body.force-bottom-nav #top-nav-tabs-wrapper {
        display: none !important;
      }
      body.force-bottom-nav #mobile-bottom-nav {
        display: block !important;
      }
    }

    /* MODAL TRANSPARENT FROSTED GLASS BACKDROP */
    .modal-backdrop-blur {
      background-color: rgba(5, 5, 16, 0.62) !important;
      backdrop-filter: blur(16px) saturate(140%) !important;
      -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
      z-index: 10000 !important;
    }

    /* MODAL STACKING & Z-INDEX HIERARCHY */
    #custom-confirm-modal {
      z-index: 100050 !important;
    }

    #slip-lightbox-modal {
      z-index: 100100 !important;
    }

    #toast-container {
      z-index: 100200 !important;
    }

    @keyframes fadeInBackdrop {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes fadeOutBackdrop {
      from {
        opacity: 1;
      }
      to {
        opacity: 0;
      }
    }

    @keyframes modalScaleFadeOut {
      0% {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
      100% {
        opacity: 0;
        transform: scale(0.92) translateY(16px);
      }
    }

    .animate-fade-in-up {
      animation: fadeInUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .animate-scale-in {
      animation: scaleInWindow 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .animate-fade-in {
      animation: fadeInBackdrop 0.25s ease-out forwards;
    }

    .animate-fade-out {
      animation: fadeOutBackdrop 0.23s ease-in forwards !important;
    }

    .modal-closing {
      animation: modalScaleFadeOut 0.23s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
      pointer-events: none !important;
    }

    /* SCROLL REVEAL GLIDE ANIMATION (GPU ACCELERATED) */
    .scroll-reveal {
      opacity: 0;
      transform: translate3d(0, 18px, 0);
      transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scroll-reveal.revealed {
      opacity: 1 !important;
      transform: translate3d(0, 0, 0) !important;
    }

    /* ABSOLUTE REMOVAL OF ALL BROWSER FOCUS STROKES & RINGS */
    *, *:focus, *:focus-visible, *:active,
    button, button:focus, button:focus-visible, button:active,
    a, a:focus, a:focus-visible, a:active,
    .nav-pill, .nav-pill:focus, .nav-pill:focus-visible, .nav-pill:active,
    .mobile-nav-pill, .mobile-nav-pill:focus, .mobile-nav-pill:focus-visible {
      outline: none !important;
      outline-style: none !important;
      outline-width: 0 !important;
      outline-color: transparent !important;
      box-shadow: none !important;
      -webkit-tap-highlight-color: transparent !important;
      -webkit-focus-ring-color: transparent !important;
    }

    button, a, select, input[type="radio"], input[type="checkbox"], .nav-pill, [onclick] {
      cursor: pointer !important;
    }

    .scrollbar-hide::-webkit-scrollbar { display: none; }
    .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

    /* LIGHTBOX PAN & ZOOM HAND TOOL */
    #slip-lightbox-viewport {
      cursor: grab !important;
      cursor: -webkit-grab !important;
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='%23ffffff' stroke='%23000000' stroke-width='1.2'%3E%3Cpath d='M10 3.2a1.3 1.3 0 0 0-2.6 0v7.1H6.1a1.3 1.3 0 0 0-1.3 1.3v3.8a6.8 6.8 0 0 0 6.8 6.8h2.8a6.8 6.8 0 0 0 6.8-6.8v-4.8a1.3 1.3 0 0 0-2.6 0v-1a1.3 1.3 0 0 0-2.6 0v-1a1.3 1.3 0 0 0-2.6 0V3.2z'/%3E%3C/svg%3E") 10 3, grab !important;
      user-select: none !important;
      -webkit-user-select: none !important;
      touch-action: none !important;
    }
    #slip-lightbox-viewport *,
    #slip-lightbox-viewport #slip-lightbox-img {
      cursor: inherit !important;
      user-select: none !important;
      -webkit-user-select: none !important;
      -webkit-user-drag: none !important;
      pointer-events: auto !important;
    }
    #slip-lightbox-viewport.is-dragging,
    #slip-lightbox-viewport.is-dragging *,
    #slip-lightbox-viewport.is-dragging #slip-lightbox-img {
      cursor: grabbing !important;
      cursor: -webkit-grabbing !important;
      cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='%23f472b6' stroke='%23000000' stroke-width='1.2'%3E%3Cpath d='M9 5.8a1.3 1.3 0 0 0-1.3 1.3v3.5H6.5a1.3 1.3 0 0 0-1.3 1.3v3.8a6.8 6.8 0 0 0 6.8 6.8h2.8a6.8 6.8 0 0 0 6.8-6.8v-3.5a1.3 1.3 0 0 0-2.6 0V11a1.3 1.3 0 0 0-2.6 0v-1a1.3 1.3 0 0 0-2.6 0V7.1A1.3 1.3 0 0 0 9 5.8z'/%3E%3C/svg%3E") 10 3, grabbing !important;
    }

    /* GOOGLE GSI QUICK SIGN IN BUTTON HOVER FIX (ELIMINATE SQUARE OUTLINE) */
    #google-btn-container {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      width: 100% !important;
      max-width: 290px !important;
      min-height: 44px !important;
      margin: 0 auto !important;
      border-radius: 9999px !important;
      clip-path: inset(0 round 9999px) !important;
      overflow: hidden !important;
      outline: none !important;
      border: none !important;
      box-shadow: none !important;
      -webkit-tap-highlight-color: transparent !important;
    }
    @media (max-width: 640px) {
      #google-btn-container {
        max-width: 240px !important;
        min-height: 40px !important;
      }
    }
    #google-btn-container div,
    #google-btn-container iframe,
    #google-btn-container span {
      border-radius: 9999px !important;
      clip-path: inset(0 round 9999px) !important;
      overflow: hidden !important;
      outline: none !important;
      border: none !important;
      box-shadow: none !important;
      transition: none !important;
    }
    #google-btn-container:hover,
    #google-btn-container div:hover,
    #google-btn-container iframe:hover,
    #google-btn-container:focus,
    #google-btn-container iframe:focus,
    #google-btn-container:active {
      outline: none !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 9999px !important;
      clip-path: inset(0 round 9999px) !important;
    }

    /* PRIORITIZED EYE-CATCHING LOADING SCREEN */
    #app-loading-screen {
      position: fixed;
      inset: 0;
      z-index: 99999999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at 50% 40%, #150628 0%, #080312 60%, #030108 100%);
      gap: 1.5rem;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    #app-loading-screen.fade-out {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .loading-logo-wrapper {
      position: relative;
      width: 110px;
      height: 110px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .loading-logo-ring {
      position: absolute;
      inset: -6px;
      border-radius: 50%;
      border: 2px dashed rgba(217, 70, 239, 0.7);
      animation: spinLoader 6s linear infinite;
      box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
    }
    .loading-logo-ring-cyan {
      position: absolute;
      inset: -14px;
      border-radius: 50%;
      border: 2px solid transparent;
      border-top-color: #38bdf8;
      border-bottom-color: #d946ef;
      animation: spinLoader 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite reverse;
    }
    .loading-logo {
      width: 90px;
      height: 90px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(217, 70, 239, 0.8);
      box-shadow: 0 0 30px rgba(217, 70, 239, 0.6);
      animation: loadingPulse 2s ease-in-out infinite;
    }
    @keyframes loadingPulse {
      0%, 100% { transform: scale(0.96); opacity: 0.9; }
      50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 18px rgba(217, 70, 239, 0.9)); }
    }
    @keyframes spinLoader {
      to { transform: rotate(360deg); }
    }
    .loading-bar-track {
      width: 220px;
      height: 4px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 9999px;
      overflow: hidden;
      position: relative;
    }
    .loading-bar-fill {
      height: 100%;
      width: 40%;
      background: linear-gradient(90deg, #38bdf8, #d946ef);
      border-radius: 9999px;
      position: absolute;
      animation: loadingBarMove 1.5s ease-in-out infinite alternate;
    }
    @keyframes loadingBarMove {
      0% { left: 0%; width: 25%; }
      100% { left: 75%; width: 35%; }
    }

    #floating-support-widget { 
      position: fixed; 
      bottom: 74px; 
      right: 14px; 
      z-index: 45; 
      display: flex; 
      flex-direction: column; 
      align-items: flex-end; 
      gap: 10px; 
      pointer-events: none !important; 
      transition: bottom 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s ease;
    }
    @media (min-width: 640px) {
      #floating-support-widget {
        bottom: 24px;
        right: 24px;
      }
    }
    #floating-support-widget.nav-hidden {
      bottom: 16px !important;
    }
    #support-bubble-btn { 
      width: 54px; 
      height: 54px; 
      border-radius: 50%; 
      background: linear-gradient(135deg, #7c3aed, #ec4899); 
      border: none; 
      cursor: pointer; 
      display: flex; 
      align-items: center; 
      justify-content: center; 
      font-size: 20px; 
      color: #fff; 
      box-shadow: 0 6px 28px rgba(124,58,237,.55); 
      transition: transform .25s cubic-bezier(0.175, .885, .32, 1.275), box-shadow .25s ease; 
      position: relative; 
      pointer-events: auto !important; 
      touch-action: manipulation; 
    }
    #support-bubble-btn:hover { 
      transform: scale(1.08); 
      box-shadow: 0 8px 36px rgba(236,72,153,.65); 
    }
    #support-bubble-btn:active {
      transform: scale(0.94);
    }
    #support-unread-dot { 
      position: absolute; 
      top: -3px; 
      right: -3px; 
      min-width: 20px; 
      height: 20px; 
      padding: 0 5px;
      border-radius: 10px; 
      background: #f43f5e; 
      border: 2px solid #050510; 
      font-size: 10px; 
      font-weight: 900; 
      color: #fff; 
      display: none; 
      align-items: center; 
      justify-content: center; 
      box-shadow: 0 0 12px rgba(244,63,94,0.8);
      animation: pulseBadge 2.2s infinite ease-in-out;
    }
    @keyframes pulseBadge {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.15); }
    }
    #support-chat-panel { 
      width: 360px; 
      max-width: calc(100vw - 28px); 
      max-height: min(520px, calc(100vh - 120px)); 
      border-radius: 22px; 
      background: rgba(15, 15, 26, 0.96); 
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(217, 70, 239, 0.35); 
      box-shadow: 0 12px 50px rgba(0,0,0,.7), 0 0 30px rgba(217, 70, 239, 0.15); 
      display: none; 
      flex-direction: column; 
      overflow: hidden; 
      transform-origin: bottom right;
      transform: scale(0.85) translateY(20px); 
      opacity: 0; 
      pointer-events: none; 
      transition: all .28s cubic-bezier(0.16, 1, 0.3, 1); 
    }
    #support-chat-panel.open { 
      display: flex; 
      transform: scale(1) translateY(0); 
      opacity: 1; 
      pointer-events: auto !important; 
    }
    #support-chat-panel.closing {
      transform: scale(0.85) translateY(18px);
      opacity: 0;
      pointer-events: none;
    }
    #support-chat-header { 
      background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(236,72,153,.18)); 
      border-bottom: 1px solid rgba(124,58,237,.25); 
      padding: 12px 16px; 
      display: flex; 
      align-items: center; 
      justify-content: space-between; 
    }
    #support-chat-messages { 
      flex: 1; 
      overflow-y: auto; 
      padding: 14px; 
      display: flex; 
      flex-direction: column; 
      gap: 10px; 
      min-height: 200px; 
      max-height: 320px; 
    }
    #support-chat-messages::-webkit-scrollbar { width: 4px; } 
    #support-chat-messages::-webkit-scrollbar-thumb { background: rgba(124,58,237,.35); border-radius: 4px; }
    .support-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 12px; line-height: 1.45; word-break: break-word; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
    .support-msg.user { align-self: flex-end; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; border-bottom-right-radius: 4px; }
    .support-msg.admin { align-self: flex-start; background: #1a1a2e; color: #e2e8f0; border: 1px solid rgba(124,58,237,.25); border-bottom-left-radius: 4px; }
    .support-msg .msg-time { font-size: 10px; opacity: .7; margin-top: 3px; }
    #support-chat-input-area { padding: 10px 14px; border-top: 1px solid rgba(124,58,237,.15); display: flex; gap: 8px; background: rgba(10,10,18,0.7); }
    #support-chat-input { flex: 1; padding: 9px 12px; border-radius: 12px; background: #16162a; border: 1px solid rgba(124,58,237,.25); color: #fff; font-size: 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
    #support-chat-input:focus { border-color: #d946ef; box-shadow: 0 0 12px rgba(217,70,239,0.3); }
    #support-chat-send { padding: 8px 15px; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #ec4899); border: none; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; }
    #support-chat-send:hover { opacity: .9; transform: scale(1.04); }
    #support-chat-send:active { transform: scale(0.96); }
    #order-conflict-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.8); display: none; align-items: center; justify-content: center; padding: 20px; }
    #order-conflict-modal.active { display: flex; }

/* ══════════════════════════════════════════════════════════════════
   PERFORMANCE & SMOOTH EXPERIENCE OPTIMIZATIONS
   ══════════════════════════════════════════════════════════════════ */
html {
  scroll-behavior: smooth !important;
}

/* GPU promotion to eliminate scroll repainting bottlenecks */
.glass-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.modal-backdrop-blur {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Eliminate tap delay and ghost clicks on mobile */
button, select, input, a, .nav-pill, .mobile-nav-pill, .pay-method-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile backdrop-filter optimization (lighter blur = 60-120fps smooth scrolling on phones) */
@media (max-width: 640px) {
  .glass-card {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   REDESIGNED USAGE GAUGE & DASHBOARD TELEMETRY ANIMATIONS
   ══════════════════════════════════════════════════════════════════ */
.usage-input-pulse {
  animation: inputHighlightPulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes inputHighlightPulse {
  0% {
    border-color: #d946ef !important;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.4), 0 0 22px rgba(217, 70, 239, 0.7) !important;
    transform: scale(1.012);
  }
  50% {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4), 0 0 26px rgba(56, 189, 248, 0.7) !important;
    transform: scale(1.012);
  }
  100% {
    border-color: #1e293b;
    box-shadow: none;
    transform: scale(1);
  }
}

@keyframes gaugeAmbientBreath {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.95; filter: blur(34px); }
}

#dash-gauge-ambient-glow {
  animation: gaugeAmbientBreath 4s ease-in-out infinite;
}

/* Center Radiating Gauge Particles */
.gauge-particles-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}
.particle-emitter {
  position: relative;
  width: 0;
  height: 0;
}
.gauge-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  margin-left: -2.5px;
  border-radius: 50%;
  transform-origin: 2.5px 2.5px;
}
.gp-1 { --angle: 0deg; --dist: 72px; background: #38bdf8; box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6); animation: emitParticle 2.2s infinite ease-out 0s; }
.gp-2 { --angle: 45deg; --dist: 68px; background: #34d399; box-shadow: 0 0 10px #34d399, 0 0 20px rgba(52, 211, 153, 0.6); animation: emitParticle 2.2s infinite ease-out 0.28s; }
.gp-3 { --angle: 90deg; --dist: 74px; background: #38bdf8; box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6); animation: emitParticle 2.2s infinite ease-out 0.55s; }
.gp-4 { --angle: 135deg; --dist: 70px; background: #34d399; box-shadow: 0 0 10px #34d399, 0 0 20px rgba(52, 211, 153, 0.6); animation: emitParticle 2.2s infinite ease-out 0.82s; }
.gp-5 { --angle: 180deg; --dist: 72px; background: #38bdf8; box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6); animation: emitParticle 2.2s infinite ease-out 1.1s; }
.gp-6 { --angle: 225deg; --dist: 68px; background: #34d399; box-shadow: 0 0 10px #34d399, 0 0 20px rgba(52, 211, 153, 0.6); animation: emitParticle 2.2s infinite ease-out 1.38s; }
.gp-7 { --angle: 270deg; --dist: 74px; background: #38bdf8; box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6); animation: emitParticle 2.2s infinite ease-out 1.65s; }
.gp-8 { --angle: 315deg; --dist: 70px; background: #34d399; box-shadow: 0 0 10px #34d399, 0 0 20px rgba(52, 211, 153, 0.6); animation: emitParticle 2.2s infinite ease-out 1.92s; }

@keyframes emitParticle {
  0% {
    transform: rotate(var(--angle)) translate(0px, 0px) scale(0.4);
    opacity: 0;
  }
  25% {
    opacity: 1;
    transform: rotate(var(--angle)) translate(calc(var(--dist) * 0.3), 0px) scale(1.1);
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(var(--angle)) translate(var(--dist), 0px) scale(0.2);
    opacity: 0;
  }
}

/* Superb Gauge Shell & Interactive Hover Breakdown Animations (Web Portal & TMA) */
#dash-gauge-shell,
#tma-gauge-shell {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Base Normal View: Percentage and Main Ring Fully Visible */
#gauge-center-normal,
#tma-gauge-center-normal {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: none !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#gauge-center-hover,
#tma-gauge-center-hover {
  opacity: 0 !important;
  transform: scale(0.85) !important;
  pointer-events: none !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#dash-circle-progress,
#tma-circle-progress {
  opacity: 1 !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity;
}

#dash-circle-down,
#dash-circle-up,
#tma-circle-down,
#tma-circle-up {
  opacity: 0 !important;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity;
}

/* Breakdown Mode: Toggled cleanly by click or tap */
#dash-gauge-shell.breakdown-active,
#dash-gauge-shell.touch-active,
#tma-gauge-shell.breakdown-active,
#tma-gauge-shell.touch-active {
  transform: scale(1.025);
  border-color: rgba(217, 70, 239, 0.6) !important;
  box-shadow: 0 0 35px rgba(217, 70, 239, 0.35), 0 0 60px rgba(56, 189, 248, 0.22) !important;
}

#dash-gauge-shell.breakdown-active #gauge-center-normal,
#dash-gauge-shell.touch-active #gauge-center-normal,
#tma-gauge-shell.breakdown-active #tma-gauge-center-normal,
#tma-gauge-shell.touch-active #tma-gauge-center-normal {
  opacity: 0 !important;
  transform: scale(0.85) !important;
}

#dash-gauge-shell.breakdown-active #gauge-center-hover,
#dash-gauge-shell.touch-active #gauge-center-hover,
#tma-gauge-shell.breakdown-active #tma-gauge-center-hover,
#tma-gauge-shell.touch-active #tma-gauge-center-hover {
  opacity: 1 !important;
  transform: scale(1) !important;
}

#dash-gauge-shell.breakdown-active #dash-circle-progress,
#dash-gauge-shell.touch-active #dash-circle-progress,
#tma-gauge-shell.breakdown-active #tma-circle-progress,
#tma-gauge-shell.touch-active #tma-circle-progress {
  opacity: 0 !important;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#dash-gauge-shell.breakdown-active #dash-circle-down,
#dash-gauge-shell.breakdown-active #dash-circle-up,
#dash-gauge-shell.touch-active #dash-circle-down,
#dash-gauge-shell.touch-active #dash-circle-up,
#tma-gauge-shell.breakdown-active #tma-circle-down,
#tma-gauge-shell.breakdown-active #tma-circle-up,
#tma-gauge-shell.touch-active #tma-circle-down,
#tma-gauge-shell.touch-active #tma-circle-up {
  opacity: 1 !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Desktop Hover: Interactive highlight without hiding normal percentage */
@media (hover: hover) and (pointer: fine) {
  #dash-gauge-shell:not(.breakdown-active):not(.touch-active):hover,
  #tma-gauge-shell:not(.breakdown-active):not(.touch-active):hover {
    transform: scale(1.02);
    border-color: rgba(217, 70, 239, 0.5) !important;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.3), 0 0 50px rgba(56, 189, 248, 0.15) !important;
  }
}

/* Ultra-Reliable Glowing Usage Percentage Typography */
.usage-pct-safe {
  color: #ffffff !important;
  background: linear-gradient(135deg, #a5f3fc 0%, #38bdf8 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.7));
  text-shadow: 0 0 24px rgba(6, 182, 212, 0.6);
}

.usage-pct-warn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.75));
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.65);
}

.usage-pct-crit {
  color: #ffffff !important;
  background: linear-gradient(135deg, #fda4af 0%, #f43f5e 50%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(244, 63, 94, 0.8));
  text-shadow: 0 0 24px rgba(244, 63, 94, 0.75);
}

.usage-pct-unlimited {
  color: #ffffff !important;
  background: linear-gradient(135deg, #38bdf8 0%, #e879f9 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.75));
  text-shadow: 0 0 24px rgba(217, 70, 239, 0.6);
}

/* Percentage Display Readout Safeguard */
#dash-circle-pct {
  display: inline-block;
  font-size: clamp(3rem, 12.5vw, 3.75rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  text-rendering: optimizeLegibility;
}

/* Dedicated Non-Cropped, Large, Glowing Infinity Symbol */
#dash-circle-pct.is-infinity {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: clamp(3.75rem, 16vw, 4.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
  padding: 0 14px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #38bdf8 0%, #c084fc 40%, #f472b6 75%, #34d399 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.85)) !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, filter;
  animation: infinity-cosmic-glow 3.5s ease-in-out infinite alternate !important;
}

@keyframes infinity-cosmic-glow {
  0% {
    transform: scale(0.95) translateZ(0);
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.75)) drop-shadow(0 0 26px rgba(192, 132, 252, 0.5));
  }
  50% {
    transform: scale(1.06) translateZ(0);
    filter: drop-shadow(0 0 24px rgba(232, 121, 249, 0.95)) drop-shadow(0 0 40px rgba(52, 211, 153, 0.7));
  }
  100% {
    transform: scale(0.98) translateZ(0);
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 30px rgba(232, 121, 249, 0.75));
  }
}

/* Dedicated Unlimited Full Ring Animation */
.unlimited-meter-active #dash-circle-progress {
  stroke-dasharray: 477.52 0 !important;
  stroke: url(#dashGradDynamic) !important;
  stroke-linecap: round !important;
  will-change: filter, stroke-width;
  animation: unlimited-ring-breathe 4s ease-in-out infinite alternate !important;
}

@keyframes unlimited-ring-breathe {
  0% {
    stroke-width: 12.5;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
  }
  50% {
    stroke-width: 14.5;
    filter: drop-shadow(0 0 18px rgba(232, 121, 249, 0.95));
  }
  100% {
    stroke-width: 12.5;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.75));
  }
}

/* Mobile GPU Acceleration Safeguards for Gauge Circles */
#dash-circle-progress,
#dash-circle-down,
#dash-circle-up {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: stroke-dasharray, stroke-dashoffset;
}

#tma-circle-pct {
  display: inline-block;
  line-height: 1.05;
  text-rendering: optimizeLegibility;
}

/* Admin Multi-User Message Bubble Layout */
#support-chat-panel.admin-mode {
  width: 620px;
  max-width: calc(100vw - 20px);
  max-height: min(620px, calc(100vh - 80px));
}

.support-user-tab {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: left;
}
.support-user-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(217, 70, 239, 0.25);
}
.support-user-tab.active {
  background: rgba(217, 70, 239, 0.18);
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.15);
}

.support-bubble-msg {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
  max-width: 88%;
}
.support-bubble-msg.admin {
  align-self: flex-end;
  background: linear-gradient(135deg, #e11d48, #c026d3);
  color: #fff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}
.support-bubble-msg.user {
  align-self: flex-start;
  background: #151528;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.support-bubble-msg .time-stamp {
  font-size: 9px;
  opacity: 0.75;
  margin-top: 2px;
  font-family: monospace;
}

/* Accurate input icon centering & positioning utilities */
.top-1\/2 {
  top: 50% !important;
}
.-translate-y-1\/2 {
  transform: translateY(-50%) !important;
}

/* Smooth GPU hardware acceleration for scrollable cards */
.glass-card {
  will-change: transform, opacity;
  transform: translateZ(0);
}
