




    /* 




   DESIGN SYSTEM TOKENS




 */




    :root {
      color-scheme: dark;
      --bg: #090c12;




      --s1: #0f1420;




      --s2: #141926;




      --s3: #1a2030;




      --b1: #1e2638;




      --b2: #28334a;




      --text: #dce4f2;




      --sub: #7a87a0;




      --dim: #3d4d65;




      --blue: #3b7ff5;




      --blue-d: rgba(59, 127, 245, 0.12);




      --green: #1fc86a;




      --green-d: rgba(31, 200, 106, 0.1);




      --red: #f04040;




      --red-d: rgba(240, 64, 64, 0.1);




      --gold: #f0a020;




      --gold-d: rgba(240, 160, 32, 0.1);




      /* legacy alias */




      --accent: #3b7ff5;




      --accent2: #f04040;




      --accent3: #1fc86a;




      --accent4: #f0a020;




      --panel: #141926;




      --surface: #141926;




      --border: #1e2638;




      --muted: #7a87a0;




      --fall: #f04040;




      --rise: #1fc86a;




      --even: #1fc86a;




      --odd: #f0a020;




    }

    select {
      color-scheme: dark !important;
    }
    select option, select optgroup {
      background-color: #0b132b !important;
      color: #e1e9f5 !important;
    }
    select option:hover, select option:focus, select option:checked {
      background-color: #16224f !important;
      color: #00e5ff !important;
    }









    * {




      margin: 0;




      padding: 0;




      box-sizing: border-box;




      -webkit-tap-highlight-color: transparent;




    }









    html,




    body {




      height: 100%;




      overflow: hidden;




      background: var(--bg);




      color: var(--text);




      font-family: 'Inter', -apple-system, sans-serif;




    }









    /*  PAGE ROUTER  */




    .page {




      position: fixed;




      inset: 0;




      display: none;




      flex-direction: column;




      overflow: hidden;




    }









    .page.show {




      display: flex;




    }









    #pgLanding {




      overflow-y: auto;




      display: none;




    }









    #pgLanding.show {




      display: block;




    }









    /*  SCROLLABLE PAGES  */




    #pgLanding * {




      box-sizing: border-box;




    }









    /*  INPUTS  */




    input,




    select,




    textarea {




      font-family: inherit;




    }









    input:focus,




    select:focus {




      outline: none;




      border-color: var(--blue) !important;




    }









    /*  BUTTONS  */




    button {




      font-family: inherit;




      cursor: pointer;




      border: none;




      background: none;




    }









    /*  UTILITY  */




    .mono {




      font-family: monospace;




    }









    .sr-only {




      position: absolute;




      width: 1px;




      height: 1px;




      overflow: hidden;




      clip: rect(0, 0, 0, 0);




    }









    /* 




   PAGE 1 — LANDING (REDESIGNED)




 */




    #pgLanding {




      background: #090c12;




      /* Darker, premium background */




      color: #fff;




      overflow-x: hidden;




      scroll-behavior: smooth;




    }









    .land-glass-nav {




      position: sticky;




      top: 0;




      z-index: 100;




      display: flex;




      justify-content: space-between;




      align-items: center;




      padding: 16px 24px;




      background: rgba(9, 12, 18, 0.7);




      backdrop-filter: blur(12px);




      -webkit-backdrop-filter: blur(12px);




      border-bottom: 1px solid rgba(255, 255, 255, 0.05);




    }









    .land-nav-btn {




      background: rgba(255, 255, 255, 0.08);




      color: #fff;




      border: 1px solid rgba(255, 255, 255, 0.1);




      padding: 8px 16px;




      border-radius: 20px;




      font-size: 13px;




      font-weight: 600;




      cursor: pointer;




      transition: all 0.2s;




    }









    .land-nav-btn:hover {




      background: rgba(255, 255, 255, 0.15);




    }









    .lp-logo {




      display: inline-flex;




      align-items: center;




      gap: 10px;




    }









    .lp-logo-icon {




      width: 32px;




      height: 32px;




      border-radius: 10px;




      background: linear-gradient(135deg, #3b7ff5, #225cc2);




      display: flex;




      align-items: center;




      justify-content: center;




      box-shadow: 0 4px 12px rgba(59, 127, 245, 0.4);




    }









    .lp-logo-text {




      font-size: 20px;




      font-weight: 800;




      letter-spacing: -0.5px;




    }









    .lp-logo-text em {




      color: #3b7ff5;




      font-style: normal;




    }









    .land-hero {




      position: relative;




      padding: 60px 24px 80px;




      display: flex;




      flex-direction: column;




      align-items: center;




      text-align: center;




      min-height: 80vh;




      justify-content: center;




    }









    .land-glow-bg {




      position: absolute;




      top: -10%;




      left: 50%;




      transform: translateX(-50%);




      width: 150vw;




      height: 80vh;




      background: radial-gradient(ellipse at 50% 0%, rgba(59, 127, 245, 0.15), transparent 60%);




      z-index: 0;




      pointer-events: none;




    }









    .land-hero-content {




      position: relative;




      z-index: 1;




      max-width: 600px;




    }









    .land-badge {




      display: inline-block;




      padding: 6px 14px;




      background: rgba(59, 127, 245, 0.1);




      border: 1px solid rgba(59, 127, 245, 0.2);




      color: #6eb0ff;




      font-size: 11px;




      font-weight: 700;




      text-transform: uppercase;




      letter-spacing: 1px;




      border-radius: 100px;




      margin-bottom: 24px;




    }









    .land-h1 {




      font-size: 42px;




      line-height: 1.1;




      font-weight: 800;




      margin-bottom: 20px;




      letter-spacing: -1px;




    }









    .land-gradient-text {




      background: linear-gradient(90deg, #fff, #3b7ff5);




      -webkit-background-clip: text;




      -webkit-text-fill-color: transparent;




    }









    .land-sub {




      font-size: 16px;




      color: #9aa2b1;




      line-height: 1.6;




      margin-bottom: 36px;




      max-width: 480px;




      margin-left: auto;




      margin-right: auto;




    }









    .land-ctas {




      display: flex;




      gap: 16px;




      justify-content: center;




      flex-wrap: wrap;




    }









    .land-btn-primary {




      background: linear-gradient(135deg, #3b7ff5, #225cc2);




      color: #fff;




      border: none;




      padding: 16px 32px;




      border-radius: 12px;




      font-size: 16px;




      font-weight: 600;




      cursor: pointer;




      box-shadow: 0 8px 24px rgba(59, 127, 245, 0.3);




      transition: transform 0.2s, box-shadow 0.2s;




    }









    .land-btn-primary:hover {




      transform: translateY(-2px);




      box-shadow: 0 12px 32px rgba(59, 127, 245, 0.4);




    }









    .land-btn-secondary {




      background: rgba(255, 255, 255, 0.05);




      color: #fff;




      border: 1px solid rgba(255, 255, 255, 0.1);




      padding: 16px 32px;




      border-radius: 12px;




      font-size: 16px;




      font-weight: 600;




      cursor: pointer;




      text-decoration: none;




      transition: all 0.2s;




    }









    .land-btn-secondary:hover {




      background: rgba(255, 255, 255, 0.1);




      border-color: rgba(255, 255, 255, 0.2);




    }









    .land-hero-visual {




      position: relative;




      z-index: 1;




      margin-top: 60px;




      width: 100%;




      max-width: 320px;




      perspective: 1000px;




    }









    .land-visual-card {




      background: rgba(15, 23, 36, 0.8);




      border: 1px solid rgba(255, 255, 255, 0.08);




      border-radius: 16px;




      padding: 16px;




      backdrop-filter: blur(10px);




      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);




      transform: rotateX(10deg);




      transition: transform 0.4s ease;




    }









    .land-visual-card:hover {




      transform: rotateX(0deg) translateY(-5px);




    }









    .land-v-header {




      font-size: 12px;




      font-weight: 600;




      color: #fff;




      margin-bottom: 16px;




      display: flex;




      align-items: center;




      gap: 8px;




    }









    .land-v-header::before {




      content: '';




      width: 8px;




      height: 8px;




      background: #3ce579;




      border-radius: 50%;




      box-shadow: 0 0 8px #3ce579;




      animation: pulse-green 2s infinite;




    }









    .land-v-row {




      display: flex;




      align-items: center;




      padding: 10px 0;




      border-bottom: 1px solid rgba(255, 255, 255, 0.05);




      font-size: 13px;




      color: #9aa2b1;




    }









    .land-v-row:last-child {




      border-bottom: none;




      padding-bottom: 0;




    }









    .land-v-dot {




      width: 6px;




      height: 6px;




      border-radius: 50%;




      margin-right: 12px;




    }









    .land-v-dot.green {




      background: #3ce579;




    }









    .land-v-dot.red {




      background: #f04040;




    }









    .land-v-val {




      margin-left: auto;




      font-family: monospace;




      font-size: 14px;




      font-weight: 700;




      color: #fff;




    }









    .land-section {




      padding: 80px 24px;




      position: relative;




      z-index: 1;




      background: #090c12;




    }









    .land-h2 {




      font-size: 28px;




      font-weight: 800;




      text-align: center;




      margin-bottom: 48px;




      letter-spacing: -0.5px;




    }









    .land-steps {




      display: flex;




      flex-direction: column;




      gap: 20px;




      max-width: 600px;




      margin: 0 auto;




    }









    .land-step-card {




      background: rgba(255, 255, 255, 0.03);




      border: 1px solid rgba(255, 255, 255, 0.06);




      border-radius: 16px;




      padding: 24px;




      position: relative;




      overflow: hidden;




    }









    .land-step-card::before {




      content: '';




      position: absolute;




      top: 0;




      left: 0;




      width: 4px;




      height: 100%;




      background: var(--blue);




    }









    .land-step-num {




      font-size: 40px;




      font-weight: 900;




      color: rgba(255, 255, 255, 0.05);




      position: absolute;




      right: 20px;




      top: 10px;




      line-height: 1;




    }









    .land-step-h3 {




      font-size: 18px;




      font-weight: 700;




      margin-bottom: 8px;




      color: #fff;




    }









    .land-step-p {




      font-size: 14px;




      color: #9aa2b1;




      line-height: 1.5;




      max-width: 85%;




    }









    .land-pricing-grid {




      display: grid;




      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));




      gap: 24px;




      max-width: 960px;




      margin: 0 auto;




    }









    .land-pkg-card {




      background: rgba(15, 23, 36, 0.6);




      border: 1px solid rgba(255, 255, 255, 0.08);




      border-radius: 16px;




      padding: 32px 24px;




      text-align: center;




      position: relative;




      transition: transform 0.3s, box-shadow 0.3s;




    }









    .land-pkg-card:hover {




      transform: translateY(-5px);




      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);




    }









    .land-pkg-card.popular {




      border-color: rgba(59, 127, 245, 0.5);




      background: rgba(15, 23, 36, 0.9);




      box-shadow: 0 0 30px rgba(59, 127, 245, 0.15);




    }









    .land-pkg-name {




      font-size: 14px;




      font-weight: 700;




      text-transform: uppercase;




      color: #9aa2b1;




      letter-spacing: 1px;




      margin-bottom: 8px;




    }









    .land-pkg-credits {




      font-size: 28px;




      font-weight: 800;




      color: #fff;




      margin-bottom: 4px;




    }









    .land-pkg-price {




      font-size: 20px;




      color: #3b7ff5;




      font-weight: 700;




      margin-bottom: 12px;




    }









    .land-pkg-desc {




      font-size: 13px;




      color: #6a7181;




      margin-bottom: 24px;




    }









    .land-footer {




      text-align: center;




      padding: 60px 24px;




      border-top: 1px solid rgba(255, 255, 255, 0.05);




      font-size: 12px;




      color: #6a7181;




      background: #06080d;




      display: flex;




      flex-direction: column;




      align-items: center;




      gap: 20px;




    }




    .social-row { display: flex; gap: 15px; margin-bottom: 5px; justify-content: center; width: 100%; }




    .social-icon { 




      width: 44px; height: 44px; border-radius: 12px; 




      background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); 




      display: flex; align-items: center; justify-content: center; 




      color: #94a3b8; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);




    }




    .social-icon:hover { 




      background: rgba(0,229,255,0.08); border-color: #00e5ff; 




      color: #00e5ff; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,229,255,0.2);




    }




    .social-icon svg { width: 22px; height: 22px; fill: currentColor; }









    @keyframes pulse-green {




      0% {




        box-shadow: 0 0 0 0 rgba(60, 229, 121, 0.4);




      }









      70% {




        box-shadow: 0 0 0 6px rgba(60, 229, 121, 0);




      }









      100% {




        box-shadow: 0 0 0 0 rgba(60, 229, 121, 0);




      }




    }









    /* 




   PAGE 2 & 3 — AUTH / TOKEN




 */




    #pgAuth,




    #pgToken {




      align-items: center;




      justify-content: center;




      padding: 20px;




      background: #090c12;




      background-image: radial-gradient(circle at top right, rgba(59, 127, 245, 0.1), transparent 40%),




        radial-gradient(circle at bottom left, rgba(59, 127, 245, 0.05), transparent 40%);




    }









    .auth-wrap,




    .token-wrap {




      width: 100%;




      max-width: 380px;




      background: rgba(15, 23, 36, 0.6);




      backdrop-filter: blur(20px);




      -webkit-backdrop-filter: blur(20px);




      border: 1px solid rgba(255, 255, 255, 0.08);




      border-radius: 20px;




      padding: 32px 24px;




      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);




    }









    .auth-back-btn {




      display: flex;




      align-items: center;




      gap: 5px;




      color: var(--sub);




      font-size: 12px;




      font-weight: 500;




      background: none;




      border: none;




      margin-bottom: 20px;




      padding: 0;




    }









    .auth-logo {




      display: flex;




      align-items: center;




      gap: 9px;




      margin-bottom: 24px;




    }









    .auth-logo-icon {




      width: 28px;




      height: 28px;




      border-radius: 7px;




      background: var(--blue);




      display: flex;




      align-items: center;




      justify-content: center;




      color: var(--blue);




    }









    .auth-logo-text {




      font-size: 18px;




      font-weight: 800;




    }









    .auth-logo-text em {




      color: var(--blue);




      font-style: normal;




    }









    .auth-tabs {




      display: grid;




      grid-template-columns: 1fr 1fr;




      gap: 3px;




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 10px;




      padding: 3px;




      margin-bottom: 20px;




    }









    .auth-tab {




      padding: 10px;




      border-radius: 7px;




      font-size: 13px;




      font-weight: 600;




      color: var(--sub);




      background: transparent;




      transition: all .15s;




    }









    .auth-tab.active {




      background: var(--s3);




      color: var(--text);




      box-shadow: 0 1px 4px rgba(0, 0, 0, .3);




    }









    .auth-field {




      margin-bottom: 14px;




    }









    .auth-lbl {




      font-size: 11px;




      font-weight: 600;




      text-transform: uppercase;




      letter-spacing: .4px;




      color: var(--sub);




      display: block;




      margin-bottom: 6px;




    }









    .auth-inp {




      width: 100%;




      background: var(--s2);




      border: 1px solid var(--b1);




      color: var(--text);




      font-size: 14px;




      padding: 12px 14px;




      border-radius: 9px;




      transition: border-color .15s;




    }









    .auth-inp::placeholder {




      color: var(--dim);




    }









    .auth-inp:focus {




      border-color: var(--blue);




    }









    .btn-full {




      width: 100%;




      padding: 14px;




      background: var(--blue);




      color: #fff;




      border-radius: 10px;




      font-size: 15px;




      font-weight: 600;




      transition: opacity .15s;




      margin-top: 4px;




    }









    .btn-full:hover {




      opacity: .88;




    }









    .auth-note {




      font-size: 12px;




      color: var(--sub);




      text-align: center;




      margin-top: 14px;




      line-height: 1.5;




    }









    .auth-note a {




      color: var(--blue);




      cursor: pointer;




    }









    .auth-err {




      background: var(--red-d);




      border: 1px solid rgba(240, 64, 64, .25);




      color: var(--red);




      font-size: 12px;




      padding: 9px 12px;




      border-radius: 8px;




      margin-top: 10px;




      display: none;




    }









    .auth-google-btn {




      width: 100%;




      display: flex;




      align-items: center;




      justify-content: center;




      gap: 10px;




      padding: 13px;




      background: #fff;




      color: #1a1a1a;




      border-radius: 10px;




      font-size: 14px;




      font-weight: 600;




      margin-bottom: 14px;




      transition: opacity .15s;




    }









    .auth-google-btn:hover {




      opacity: .9;




    }









    .auth-divider {




      display: flex;




      align-items: center;




      gap: 10px;




      margin-bottom: 14px;




    }









    .auth-divider span {




      font-size: 11px;




      color: var(--dim);




    }









    .auth-divider::before,




    .auth-divider::after {




      content: '';




      flex: 1;




      height: 1px;




      background: var(--b1);




    }









    /* 




   PAGE 3 — TOKEN




 */














    .token-title {




      font-size: 18px;




      font-weight: 700;




      margin-bottom: 6px;




    }









    .token-sub {




      font-size: 13px;




      color: var(--sub);




      line-height: 1.5;




      margin-bottom: 18px;




    }









    .token-sub a {




      color: var(--blue);




    }









    .acct-type-tabs {




      display: grid;




      grid-template-columns: 1fr 1fr;




      gap: 8px;




      margin-bottom: 16px;




    }









    .acct-tab {




      padding: 12px;




      border-radius: 10px;




      border: 1.5px solid var(--b1);




      color: var(--sub);




      font-size: 13px;




      font-weight: 600;




      display: flex;




      align-items: center;




      justify-content: center;




      gap: 7px;




      transition: all .15s;




      background: transparent;




    }









    .acct-tab.active-demo {




      border-color: var(--blue);




      color: var(--blue);




      background: var(--blue-d);




    }









    .acct-tab.active-real {




      border-color: var(--green);




      color: var(--green);




      background: var(--green-d);




    }









    .token-info {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 10px;




      padding: 12px 14px;




      display: flex;




      align-items: flex-start;




      gap: 10px;




      margin-bottom: 16px;




      font-size: 12px;




      color: var(--sub);




      line-height: 1.5;




    }









    .token-checks {




      margin-top: 14px;




      display: none;




    }









    .token-check-row {




      display: flex;




      align-items: center;




      gap: 10px;




      padding: 8px 0;




      border-bottom: 1px solid var(--b1);




      font-size: 13px;




      font-weight: 500;




    }









    .token-check-row:last-child {




      border-bottom: none;




    }









    .check-dot {




      width: 9px;




      height: 9px;




      border-radius: 50%;




      background: var(--gold);




      flex-shrink: 0;




    }









    .check-dot.ok {




      background: var(--green);




    }









    .check-dot.fail {




      background: var(--red);




    }









    /* 




   PAGE 4 — APP SHELL




 */




    #pgApp {




      flex-direction: column;




    }









    .app-screens {




      flex: 1;




      position: relative;




      overflow: hidden;




    }









    .app-screen {




      position: absolute;




      inset: 0;




      display: none;




      flex-direction: column;




      overflow: hidden;




    }









    .app-screen.show {




      display: flex;




    }









    /* BOTTOM NAV */




    .bottom-nav {




      background: var(--s1);




      border-top: 1px solid var(--b1);




      display: grid;




      grid-template-columns: repeat(4, 1fr);




      height: 60px;




      flex-shrink: 0;




      padding-bottom: env(safe-area-inset-bottom);




    }









    .nav-btn {




      display: flex;




      flex-direction: column;




      align-items: center;




      justify-content: center;




      gap: 4px;




      color: var(--dim);




      font-size: 9px;




      font-weight: 500;




      transition: color .15s;




      background: none;




      border: none;




    }









    .nav-btn.active {




      color: var(--text);




    }









    .nav-btn svg {




      display: block;




    }









    /*  SCREEN TOPBAR  */




    .sc-topbar {




      background: var(--bg);




      border-bottom: 1px solid var(--b1);




      padding: 12px 16px;




      display: flex;




      align-items: center;




      justify-content: space-between;




      flex-shrink: 0;




    }









    .sc-topbar-title {




      font-size: 15px;




      font-weight: 700;




    }









    .sc-topbar-credits {




      background: var(--gold-d);




      border: 1px solid rgba(240, 160, 32, .2);




      border-radius: 8px;




      padding: 6px 10px;




      display: flex;




      align-items: center;




      gap: 6px;




      cursor: pointer;




    }









    .sc-topbar-credits span.label {




      font-size: 9px;




      color: var(--sub);




      display: block;




      line-height: 1;




    }









    .sc-topbar-credits span.val {




      font-size: 12px;




      font-weight: 700;




      color: var(--gold);




      font-family: monospace;




      display: block;




    }









    /* 




   SCREEN 0 — DASHBOARD




 */




    #scDash {




      background: var(--bg);




    }









    /* Topbar */




    .dash-topbar {




      background: var(--bg);




      border-bottom: 1px solid var(--b1);




      padding: 12px 16px;




      display: flex;




      align-items: center;




      justify-content: space-between;




      flex-shrink: 0;




    }









    .tb-user {}









    .tb-name {




      font-size: 13px;




      font-weight: 600;




      line-height: 1.2;




    }









    .tb-meta {




      display: flex;




      align-items: center;




      gap: 7px;




      margin-top: 3px;




    }









    .tb-pill {




      font-size: 9px;




      font-weight: 700;




      text-transform: uppercase;




      padding: 2px 6px;




      border-radius: 4px;




      background: var(--blue-d);




      color: var(--blue);




      border: 1px solid rgba(59, 127, 245, .2);




    }









    .tb-pill.real {




      background: var(--green-d);




      color: var(--green);




      border-color: rgb(238 243 240 / 20%);




    }









    .tb-balance {




      font-size: 12px;




      font-weight: 600;




      font-family: monospace;




      color: var(--text);




    }









    .tb-credits-badge {




      background: var(--gold-d);




      border: 1px solid rgba(240, 160, 32, .2);




      border-radius: 8px;




      padding: 6px 10px;




      display: flex;




      flex-direction: column;




      align-items: center;




      cursor: pointer;




      min-width: 58px;




      gap: 1px;




    }









    .tb-credits-badge svg {




      color: var(--gold);




    }









    .tb-credits-label {




      font-size: 9px;




      color: var(--sub);




    }









    .tb-credits-val {




      font-size: 12px;




      font-weight: 700;




      color: var(--gold);




      font-family: monospace;




    }









    /* Asset Bar */




    .asset-bar {




      background: var(--bg);




      border-bottom: 1px solid var(--b1);




      padding: 8px 16px;




      display: flex;




      align-items: center;




      justify-content: space-between;




      flex-shrink: 0;




      cursor: pointer;




    }









    .asset-bar:hover {




      background: var(--s2);




    }









    .ab-left {




      display: flex;




      align-items: center;




      gap: 8px;




    }









    .ab-flags {




      display: flex;




      position: relative;




      width: 35px;




      flex-shrink: 0;




    }









    .ab-flag {




      width: 20px;




      height: 20px;




      border-radius: 50%;




      background: var(--s3);




      border: 1.5px solid var(--bg);




      display: flex;




      align-items: center;




      justify-content: center;




      font-size: 8px;




      font-weight: 700;




      font-family: monospace;




      color: var(--sub);




    }









    .ab-flag:last-child {




      margin-left: -6px;




    }









    .ab-name-wrap {




      display: flex;




      align-items: center;




      gap: 6px;




    }









    .ab-name {




      font-size: 14px;




      font-weight: 600;




    }









    .ab-type {




      font-size: 9px;




      font-weight: 600;




      color: var(--sub);




      background: var(--s3);




      border: 1px solid var(--b2);




      padding: 2px 5px;




      border-radius: 3px;




    }









    .ab-chevron {




      color: var(--sub);




      margin-left: 2px;




    }









    .ab-payout {




      font-size: 13px;




      font-weight: 700;




      font-family: monospace;




      color: var(--green);




      background: var(--green-d);




      border-radius: 6px;




      padding: 4px 10px;




    }









    /* Chart */




    .chart-section {




      flex: 1;




      position: relative;




      overflow: hidden;




      background: var(--bg);




      border-bottom: 1px solid var(--b1);




    }









    #mainChart {




      display: block;




      width: 100%;




      height: 100%;




    }









    .chart-price-tag {




      position: absolute;




      right: 8px;




      top: 50%;




      transform: translateY(-50%);




      background: var(--blue);




      color: #fff;




      font-size: 11px;




      font-weight: 600;




      font-family: monospace;




      padding: 4px 9px;




      border-radius: 6px;




      white-space: nowrap;




      pointer-events: none;




    }









    .chart-time-label {




      position: absolute;




      bottom: 6px;




      left: 10px;




      font-size: 9px;




      font-family: monospace;




      color: var(--dim);




    }









    /* ═══ Unified Bottom Action Bar ═══ */

    .unified-action-bar {
      display: flex;
      flex-direction: row;
      width: 100%;
      background: rgba(8, 8, 12, 0.95);
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      flex-shrink: 0;
      gap: 8px;
      padding: 8px 10px;
      min-height: 66px;
      align-items: stretch;
    }

    /* Each pill: glassmorphic card */
    .action-pill {
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: var(--s1) !important;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
      border-radius: 14px;
      padding: 8px 14px;
      position: relative;
      min-width: 0;
      transition: border-color 0.2s;
    }

    .action-pill:hover {
      border-color: rgba(255, 255, 255, 0.14);
    }

    .pill-stake  { flex: 5; }
    .pill-rounds { flex: 3; }
    .pill-run    { flex: 2; min-width: 130px; padding: 6px 12px; gap: 4px; }

    .pill-label {
      font-size: 8px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.9px;
      color: var(--sub);
      margin-bottom: 5px;
    }

    .pill-content {
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
    }

    /* Stake input inside pill */
    .pill-stake #ctrlStake {
      background: transparent;
      border: none;
      border-bottom: 1px dashed rgba(255,255,255,0.15);
      border-radius: 0;
      padding: 0;
      color: var(--text);
      font-size: 16px;
      font-weight: 700;
      font-family: monospace;
      width: 100%;
      outline: none;
      flex: 1;
      min-width: 0;
    }

    /* +/- stake buttons */
    .stake-btns {
      display: flex;
      flex-direction: column;
      gap: 3px;
      flex-shrink: 0;
    }

    .stake-adj-btn {
      width: 24px;
      height: 18px;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.07);
      color: var(--text);
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, border-color 0.15s;
      padding: 0;
      backdrop-filter: blur(8px);
    }

    .stake-adj-btn:hover {
      background: rgba(255,255,255,0.18);
      border-color: rgba(255,255,255,0.25);
    }

    /* Rounds display */
    .pill-rounds #ctrlEstimatedWins {
      font-size: 13px;
      font-weight: 700;
      font-family: monospace;
      color: var(--text);
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Run pill */
    .pill-run .run-info {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 9px;
      color: var(--sub);
      margin-bottom: 5px;
      white-space: nowrap;
    }

    /* Run Bot button with backglow */
    .pill-run #runBtn {
      width: 100%;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
      color: #fff;
      font-weight: 700;
      font-size: 14px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: all 0.25s;
      padding: 8px 10px;
      /* Backglow effect */
      box-shadow:
        0 0 18px rgba(255, 255, 255, 0.12),
        0 0 40px rgba(200, 200, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.2);
      flex: 1;
      backdrop-filter: blur(8px);
    }

    .pill-run #runBtn:hover {
      background: linear-gradient(160deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.12) 100%);
      box-shadow:
        0 0 28px rgba(255, 255, 255, 0.22),
        0 0 60px rgba(200, 200, 255, 0.14),
        0 6px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255,255,255,0.3);
      transform: translateY(-1px);
    }

    .pill-run #runBtn:active {
      transform: translateY(0px);
    }

    .pill-run #runBtn[data-state="running"] {
      background: linear-gradient(160deg, rgba(239,68,68,0.35) 0%, rgba(239,68,68,0.12) 100%);
      border-color: rgba(239, 68, 68, 0.5);
      box-shadow:
        0 0 24px rgba(239, 68, 68, 0.3),
        0 0 50px rgba(239, 68, 68, 0.12),
        0 4px 12px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,100,100,0.2);
    }

    /* Controls Row (kept for backwards compat) */
    /* Controls Row */




    .controls-row {




      display: grid;




      grid-template-columns: 1fr 1fr;




      gap: 1px;




      background: var(--b1);




      border-bottom: 1px solid var(--b1);




      flex-shrink: 0;




    }









    .ctrl-cell {




      background: var(--bg);




      padding: 10px 14px;




    }









    .ctrl-lbl {




      font-size: 9px;




      font-weight: 600;




      text-transform: uppercase;




      letter-spacing: .7px;




      color: var(--sub);




      margin-bottom: 5px;




    }









    .ctrl-val-row {




      display: flex;




      align-items: center;




      gap: 5px;




    }









    .ctrl-val {




      font-size: 16px;




      font-weight: 700;




      font-family: monospace;




    }









    /* Streak Bar */




    .streak-section {




      padding: 10px 16px;




      border-bottom: 1px solid var(--b1);




      background: var(--bg);




      flex-shrink: 0;




    }









    .streak-header {




      display: flex;




      align-items: center;




      justify-content: space-between;




      margin-bottom: 8px;




    }









    .streak-title {




      font-size: 10px;




      font-weight: 600;




      text-transform: uppercase;




      letter-spacing: .5px;




      color: var(--sub);




    }









    .streak-count {




      font-size: 10px;




      font-weight: 600;




      font-family: monospace;




      color: var(--sub);




    }









    .streak-pips {




      display: flex;




      gap: 5px;




    }









    .streak-pip {




      flex: 1;




      height: 6px;




      border-radius: 99px;




      background: var(--b1);




      transition: background .2s;




    }









    .streak-pip.win {




      background: var(--green);




    }









    .streak-pip.loss {




      background: var(--red);




    }









    .streak-pip.pending {




      background: var(--blue);




      animation: pipPulse 1.4s ease-in-out infinite;




    }









    @keyframes pipPulse {









      0%,




      100% {




        opacity: 1;




      }









      50% {




        opacity: .35;




      }




    }









    /* Run Button Area */




    .run-section {




      padding: 10px 16px;




      background: var(--bg);




      flex-shrink: 0;




    }









    .run-info {




      display: flex;




      align-items: center;




      gap: 6px;




      font-size: 10px;




      color: var(--sub);




      margin-bottom: 8px;




    }









    #runBtn {




      width: 100%;




      height: 48px;




      border-radius: 11px;




      font-size: 15px;




      font-weight: 700;




      display: flex;




      align-items: center;




      justify-content: center;




      gap: 8px;




      transition: opacity .15s, background .2s;




      background: var(--blue);




      color: #fff;




      border: none;




    }









    #runBtn:hover:not([data-state="frozen"]) {




      opacity: .88;




    }









    #runBtn[data-state="running"] {




      background: var(--red);




    }









    #runBtn[data-state="frozen"] {




      background: var(--s2);




      color: var(--dim);




      border: 1px solid var(--b1);




    }









    /* 




   SCREEN 1 — HISTORY




 */




    #scHistory {




      background: var(--bg);




    }









    .hist-scroll {




      flex: 1;




      overflow-y: auto;




      padding: 10px 12px;




    }









    .hist-scroll::-webkit-scrollbar {
      width: 4px;
    }
    .hist-scroll::-webkit-scrollbar-track {
      background: transparent;
    }
    .hist-scroll::-webkit-scrollbar-thumb {
      background: var(--b2);
      border-radius: 4px;
    }
    .hist-scroll::-webkit-scrollbar-thumb:hover {
      background: var(--sub);
    }
    @media (hover: none) {
      .hist-scroll::-webkit-scrollbar { width: 0; }
    }









    .round-card {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 11px;




      margin-bottom: 8px;




      overflow: hidden;




    }









    .round-card-hdr {




      display: flex;




      align-items: center;




      gap: 10px;




      padding: 12px 14px;




      cursor: pointer;




    }









    .round-badge {




      width: 28px;




      height: 28px;




      border-radius: 7px;




      display: flex;




      align-items: center;




      justify-content: center;




      font-size: 11px;




      font-weight: 700;




      font-family: monospace;




      flex-shrink: 0;




    }









    .round-badge.won {




      background: var(--green-d);




      color: var(--green);




      border: 1px solid rgba(31, 200, 106, .25);




    }









    .round-badge.bust {




      background: var(--red-d);




      color: var(--red);




      border: 1px solid rgba(240, 64, 64, .25);




    }









    .round-info {




      flex: 1;




      min-width: 0;




    }









    .round-title {




      font-size: 13px;




      font-weight: 600;




      white-space: nowrap;




      overflow: hidden;




      text-overflow: ellipsis;




    }









    .round-meta {




      font-size: 10px;




      color: var(--sub);




      font-family: monospace;




      margin-top: 2px;




    }









    .round-pnl {




      font-size: 13px;




      font-weight: 700;




      font-family: monospace;




      margin-right: 8px;




    }









    .round-pnl.pos {




      color: var(--green);




    }









    .round-pnl.neg {




      color: var(--red);




    }









    .round-chevron {




      color: var(--dim);




      flex-shrink: 0;




      transition: transform .2s;




    }









    .round-chevron.open {




      transform: rotate(180deg);




    }









    .round-steps {




      display: none;




      border-top: 1px solid var(--b1);




      padding: 10px 14px;




    }









    .round-steps.open {




      display: block;




    }









    .step-row {




      display: flex;




      align-items: center;




      gap: 9px;




      padding: 6px 0;




      border-bottom: 1px solid rgba(30, 38, 56, .5);




    }









    .step-row:last-child {




      border-bottom: none;




    }









    .step-dot {




      width: 7px;




      height: 7px;




      border-radius: 50%;




      flex-shrink: 0;




    }









    .step-dot.win {




      background: var(--green);




    }









    .step-dot.loss {




      background: var(--red);




    }









    .step-info {




      flex: 1;




      font-size: 11px;




      font-weight: 500;




    }









    .step-sub {




      font-size: 10px;




      color: var(--sub);




      font-family: monospace;




    }









    .step-amt {




      font-size: 11px;




      font-weight: 600;




      font-family: monospace;




    }









    .hist-load-more {




      width: 100%;




      padding: 13px;




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 10px;




      color: var(--sub);




      font-size: 13px;




      font-weight: 500;




      margin-bottom: 16px;




    }









    /* 




   SCREEN 2 — STATISTICS




 */




    #scStats {




      background: var(--bg);




    }









    .stats-scroll {




      flex: 1;




      overflow-y: auto;




      -webkit-overflow-scrolling: touch;




      padding: 12px 12px 100px 12px;




    }









    .stats-scroll::-webkit-scrollbar {
      width: 4px;
    }
    .stats-scroll::-webkit-scrollbar-track {
      background: transparent;
    }
    .stats-scroll::-webkit-scrollbar-thumb {
      background: var(--b2);
      border-radius: 4px;
    }
    .stats-scroll::-webkit-scrollbar-thumb:hover {
      background: var(--sub);
    }
    @media (hover: none) {
      .stats-scroll::-webkit-scrollbar { width: 0; }
    }









    .stat-main-card {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 12px;




      padding: 18px;




      margin-bottom: 10px;




    }









    .stat-main-lbl {




      font-size: 10px;




      font-weight: 600;




      text-transform: uppercase;




      color: var(--sub);




      margin-bottom: 6px;




    }









    .stat-main-val {




      font-size: 34px;




      font-weight: 800;




      font-family: monospace;




      letter-spacing: -1px;




    }









    .stat-grid {




      display: grid;




      grid-template-columns: 1fr 1fr;




      gap: 10px;




      margin-bottom: 10px;




    }









    .stat-mini {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 11px;




      padding: 14px;




    }









    .stat-mini-lbl {




      font-size: 9px;




      font-weight: 600;




      text-transform: uppercase;




      color: var(--sub);




      margin-bottom: 5px;




    }









    .stat-mini-val {




      font-size: 22px;




      font-weight: 800;




      font-family: monospace;




    }









    .stat-mini.won {




      border-color: rgba(31, 200, 106, .2);




    }









    .stat-mini.lost {




      border-color: rgba(240, 64, 64, .2);




    }









    .stat-credits-card {




      background: var(--gold-d);




      border: 1px solid rgba(240, 160, 32, .2);




      border-radius: 12px;




      padding: 16px;




      display: flex;




      align-items: center;




      gap: 12px;




      margin-bottom: 10px;




    }









    .stat-credits-info {




      flex: 1;




    }









    .stat-credits-lbl {




      font-size: 10px;




      font-weight: 600;




      text-transform: uppercase;




      color: rgba(240, 160, 32, .7);




      margin-bottom: 4px;




    }









    .stat-credits-val {




      font-size: 26px;




      font-weight: 800;




      font-family: monospace;




      color: var(--gold);




    }









    .stat-credits-sub {




      font-size: 11px;




      color: var(--sub);




      margin-top: 3px;




    }









    .stat-credits-sub a {




      color: var(--blue);




    }









    /* 




   SCREEN 3 — ACCOUNT




 */




    #scAccount {




      background: var(--bg);




    }









    .acct-scroll {




      flex: 1;




      overflow-y: auto;




      -webkit-overflow-scrolling: touch;




      padding: 12px 12px 100px 12px;




    }









    .acct-scroll::-webkit-scrollbar {
      width: 4px;
    }
    .acct-scroll::-webkit-scrollbar-track {
      background: transparent;
    }
    .acct-scroll::-webkit-scrollbar-thumb {
      background: var(--b2);
      border-radius: 4px;
    }
    .acct-scroll::-webkit-scrollbar-thumb:hover {
      background: var(--sub);
    }
    @media (hover: none) {
      .acct-scroll::-webkit-scrollbar { width: 0; }
    }









    .profile-card {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 12px;




      padding: 16px;




      display: flex;




      align-items: center;




      gap: 12px;




      margin-bottom: 10px;




    }









    .profile-av {




      width: 48px;




      height: 48px;




      border-radius: 50%;




      background: var(--blue-d);




      border: 1.5px solid rgba(59, 127, 245, .3);




      display: flex;




      align-items: center;




      justify-content: center;




      font-size: 17px;




      font-weight: 700;




      color: var(--blue);




      flex-shrink: 0;




    }









    .profile-name {




      font-size: 15px;




      font-weight: 600;




      margin-bottom: 2px;




    }









    .profile-email {




      font-size: 11px;




      color: var(--sub);




    }









    .profile-plan {




      display: inline-flex;




      align-items: center;




      gap: 4px;




      margin-top: 5px;




      background: var(--green-d);




      border: 1px solid rgba(31, 200, 106, .2);




      color: var(--green);




      font-size: 10px;




      font-weight: 600;




      text-transform: uppercase;




      padding: 3px 8px;




      border-radius: 5px;




    }









    .acct-credits-row {




      background: var(--gold-d);




      border: 1px solid rgba(240, 160, 32, .2);




      border-radius: 11px;




      padding: 14px;




      display: flex;




      align-items: center;




      justify-content: space-between;




      margin-bottom: 10px;




      gap: 10px;




    }









    .acct-credits-left {




      display: flex;




      align-items: center;




      gap: 10px;




    }









    .acct-credits-text {}









    .acct-credits-lbl {




      font-size: 10px;




      font-weight: 600;




      text-transform: uppercase;




      color: rgba(240, 160, 32, .7);




      margin-bottom: 3px;




    }









    .acct-credits-count {




      font-size: 20px;




      font-weight: 800;




      font-family: monospace;




      color: var(--gold);




    }









    .acct-credits-expiry {




      font-size: 10px;




      color: var(--sub);




      margin-top: 2px;




    }









    .acct-buy-btn {




      background: var(--gold-d);




      border: 1px solid rgba(240, 160, 32, .35);




      color: var(--gold);




      font-size: 12px;




      font-weight: 600;




      padding: 7px 14px;




      border-radius: 7px;




      white-space: nowrap;




    }









    .acct-menu {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 12px;




      overflow: hidden;




      margin-bottom: 10px;




    }









    .acct-menu-item {




      display: flex;




      align-items: center;




      gap: 12px;




      padding: 14px;




      border-bottom: 1px solid var(--b1);




      cursor: pointer;




      transition: background .12s;




    }









    .acct-menu-item:last-child {




      border-bottom: none;




    }









    .acct-menu-item:hover {




      background: var(--s3);




    }









    .acct-menu-icon {




      width: 32px;




      height: 32px;




      border-radius: 8px;




      background: var(--s3);




      display: flex;




      align-items: center;




      justify-content: center;




      color: var(--sub);




      flex-shrink: 0;




    }









    .acct-menu-label {




      font-size: 13px;




      font-weight: 500;




      color: var(--text);




    }









    .acct-menu-sub {




      font-size: 10px;




      color: var(--sub);




    }









    .acct-menu-arrow {




      margin-left: auto;




      color: var(--dim);




    }









    .acct-signout {




      width: 100%;




      background: var(--red-d);




      border: 1px solid rgba(240, 64, 64, .2);




      color: var(--red);




      font-size: 13px;




      font-weight: 600;




      border-radius: 10px;




      padding: 13px;




      display: flex;




      align-items: center;




      justify-content: center;




      gap: 8px;




      margin-bottom: 10px;




    }









    /* 




   BOTTOM SHEETS (Asset + Credits)




 */




    .sheet-overlay {




      position: fixed;




      inset: 0;




      background: rgba(0, 0, 0, .72);




      z-index: 500;




      display: none;




    }









    .sheet-overlay.open {




      display: block;




    }









    .bottom-sheet {




      position: fixed;




      left: 0;




      right: 0;




      bottom: 0;




      background: var(--s1);




      border-radius: 16px 16px 0 0;




      max-height: 82vh;




      display: flex;




      flex-direction: column;




      z-index: 501;




      transform: translateY(100%);




      transition: transform .25s cubic-bezier(.34, 1.2, .64, 1);




    }









    .bottom-sheet.open {




      transform: translateY(0);




    }









    .sheet-handle {




      width: 36px;




      height: 4px;




      border-radius: 99px;




      background: var(--b2);




      margin: 10px auto 0;




    }









    .sheet-header {




      display: flex;




      align-items: center;




      justify-content: space-between;




      padding: 14px 16px 10px;




      flex-shrink: 0;




    }









    .sheet-title {




      font-size: 15px;




      font-weight: 700;




    }









    .sheet-close {




      width: 28px;




      height: 28px;




      border-radius: 50%;




      background: var(--s3);




      display: flex;




      align-items: center;




      justify-content: center;




      color: var(--sub);




      font-size: 14px;




    }









    .sheet-scroll {




      overflow-y: auto;




      flex: 1;




      padding: 0 14px 24px;




    }









    .sheet-scroll::-webkit-scrollbar {
      width: 4px;
    }
    .sheet-scroll::-webkit-scrollbar-track {
      background: transparent;
    }
    .sheet-scroll::-webkit-scrollbar-thumb {
      background: var(--b2);
      border-radius: 4px;
    }
    .sheet-scroll::-webkit-scrollbar-thumb:hover {
      background: var(--sub);
    }
    @media (hover: none) {
      .sheet-scroll::-webkit-scrollbar { width: 0; }
    }









    /* Asset Sheet */




    .asset-cats {




      display: flex;




      gap: 6px;




      overflow-x: auto;




      padding: 0 0 12px;




      scrollbar-width: none;




    }









    .asset-cats::-webkit-scrollbar {




      display: none;




    }









    .cat-chip {




      padding: 5px 12px;




      border-radius: 99px;




      font-size: 12px;




      font-weight: 600;




      flex-shrink: 0;




      border: 1px solid var(--b1);




      background: var(--s2);




      color: var(--sub);




      transition: all .12s;




    }









    .cat-chip.active {




      background: var(--blue-d);




      border-color: rgba(59, 127, 245, .3);




      color: var(--blue);




    }









    .asset-search {




      width: 100%;




      background: var(--s2);




      border: 1px solid var(--b1);




      color: var(--text);




      padding: 10px 12px;




      border-radius: 9px;




      font-size: 14px;




      margin-bottom: 10px;




    }









    .asset-search::placeholder {




      color: var(--dim);




    }









    .asset-item {




      display: flex;




      align-items: center;




      justify-content: space-between;




      padding: 13px 2px;




      border-bottom: 1px solid rgba(30, 38, 56, .6);




      cursor: pointer;




      transition: background .1s;




    }









    .asset-item:last-child {




      border-bottom: none;




    }









    .asset-item:hover {




      background: var(--blue-d);




    }









    .asset-item-left {




      display: flex;




      align-items: center;




      gap: 10px;




    }









    .asset-icon {




      width: 34px;




      height: 34px;




      border-radius: 9px;




      background: var(--s3);




      border: 1px solid var(--b1);




      display: flex;




      align-items: center;




      justify-content: center;




      font-size: 9px;




      font-weight: 700;




      font-family: monospace;




      color: var(--sub);




      flex-shrink: 0;




    }









    .asset-name {




      font-size: 13px;




      font-weight: 600;




    }









    .asset-sub {




      font-size: 10px;




      color: var(--sub);




    }









    .asset-payout {




      font-size: 13px;




      font-weight: 700;




      font-family: monospace;




      color: var(--green);




    }









    /* Credits Sheet */




    .credits-sub {




      font-size: 12px;




      color: var(--sub);




      margin-bottom: 16px;




      line-height: 1.5;




    }









    .pkg-grid {




      display: grid;




      grid-template-columns: 1fr 1fr;




      gap: 10px;




      margin-bottom: 10px;




    }









    .pkg-card {




      background: var(--s2);




      border: 1.5px solid var(--b1);




      border-radius: 12px;




      padding: 14px;




      cursor: pointer;




      transition: border-color .15s, background .15s;




      position: relative;




      overflow: hidden;




    }









    .pkg-card:hover {




      border-color: var(--blue);




      background: var(--s3);




    }









    .pkg-card.popular {




      border-color: rgba(59, 127, 245, .4);




    }









    .pkg-name {




      font-size: 9px;




      font-weight: 700;




      text-transform: uppercase;




      color: var(--sub);




      margin-bottom: 6px;




    }









    .pkg-credits {




      font-size: 22px;




      font-weight: 800;




      font-family: monospace;




      line-height: 1;




      margin-bottom: 4px;




    }









    .pkg-price {




      font-size: 14px;




      font-weight: 600;




      color: var(--blue);




      font-family: monospace;




    }









    .pkg-per {




      font-size: 9px;




      color: var(--dim);




      margin-top: 2px;




    }









    .pkg-badge {




      position: absolute;




      top: 8px;




      right: 8px;




      background: var(--blue);




      color: #fff;




      font-size: 8px;




      font-weight: 700;




      padding: 2px 6px;




      border-radius: 4px;




      text-transform: uppercase;




    }









    .pkg-refer {




      background: transparent;




      border: 1.5px dashed var(--b2);




      border-radius: 12px;




      padding: 14px;




      text-align: center;




      display: flex;




      flex-direction: column;




      align-items: center;




      justify-content: center;




      gap: 6px;




      cursor: pointer;




      transition: background .15s;




    }









    .pkg-refer:hover {




      background: var(--s2);




    }









    .pkg-unlimited {




      border: 1.5px solid var(--gold);




      border-radius: 12px;




      padding: 14px 16px;




      display: flex;




      align-items: center;




      justify-content: space-between;




      margin-bottom: 10px;




      cursor: pointer;




      transition: background .15s;




    }









    .pkg-unlimited:hover {




      background: rgba(240, 160, 32, .05);




    }









    .pkg-unl-label {




      font-size: 11px;




      font-weight: 700;




      text-transform: uppercase;




      color: var(--gold);




      margin-bottom: 3px;




    }









    .pkg-unl-desc {




      font-size: 11px;




      color: var(--sub);




    }









    .pkg-unl-price {




      text-align: right;




    }









    .pkg-unl-val {




      font-size: 20px;




      font-weight: 800;




      font-family: monospace;




      color: var(--gold);




    }









    .pkg-unl-mo {




      font-size: 10px;




      color: var(--sub);




    }









    .pkg-referral-row {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 11px;




      padding: 13px;




      display: flex;




      align-items: center;




      gap: 10px;




      margin-bottom: 10px;




    }









    .pkg-ref-info {




      flex: 1;




    }









    .pkg-ref-title {




      font-size: 13px;




      font-weight: 500;




    }









    .pkg-ref-sub {




      font-size: 10px;




      color: var(--sub);




    }









    .pkg-ref-share {




      background: var(--blue-d);




      color: var(--blue);




      border: 1px solid rgba(59, 127, 245, .2);




      padding: 6px 12px;




      border-radius: 7px;




      font-size: 12px;




      font-weight: 600;




    }









    .credits-footer {




      font-size: 10px;




      color: var(--sub);




      text-align: center;




      padding-top: 8px;




    }









    /* 




   TOAST




 */




    #toast {




      position: fixed;




      bottom: 80px;




      left: 50%;




      transform: translateX(-50%) translateY(20px);




      background: var(--s3);




      border: 1px solid var(--b2);




      border-radius: 99px;




      padding: 10px 18px;




      font-size: 12px;




      font-weight: 500;




      color: var(--text);




      white-space: nowrap;




      z-index: 600;




      opacity: 0;




      transition: opacity .25s, transform .25s;




      pointer-events: none;




    }









    #toast.show {




      opacity: 1;




      transform: translateX(-50%) translateY(0);




    }









    /* 




   LEGACY HIDDEN LAYER (existing JS writes here)




 */




    #legacyLayer {




      display: none !important;




      position: fixed;




      top: -9999px;




    }









    /* 




   ANALYTICS PAGE (preserved as-is)




 */




    :root {




      --an-bg: #060d18;




      --an-sidebar-bg: #070e1a;




      --an-topbar: #08101e;




      --an-card: #0c1828;




      --an-card2: #0e1c2e;




      --an-border: #152030;




      --an-border2: #1e3048;




      --an-teal: #00d4a8;




      --an-teal2: #00e5ff;




      --an-green: #22c55e;




      --an-red: #f6465d;




      --an-amber: #f0b90b;




      --an-purple: #8b5cf6;




      --an-text: #d8e4f4;




      --an-muted: #3a5472;




      --an-muted2: #5e7d9a;




      --an-teal-dim: rgba(0, 212, 168, .08);




      --an-teal2-dim: rgba(0, 229, 255, .06);




    }









    #analyticsPage {




      display: none;




      position: fixed;




      inset: 0;




      z-index: 2000;




      background: var(--an-bg);




      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;




    }









    #analyticsPage * {




      box-sizing: border-box;




    }









    .an-shell {




      display: flex;




      height: 100vh;




      width: 100%;




      overflow: hidden;




    }









    .an-sidebar {




      width: 230px;




      flex-shrink: 0;




      background: var(--an-sidebar-bg);




      border-right: 1px solid var(--an-border);




      display: flex;




      flex-direction: column;




      overflow-y: auto;




      overflow-x: hidden;




      position: relative;




    }









    .an-sidebar::after {




      content: '';




      position: absolute;




      top: 0;




      right: 0;




      bottom: 0;




      width: 1px;




      background: linear-gradient(to bottom, transparent, rgba(0, 212, 168, .15) 30%, rgba(0, 212, 168, .15) 70%, transparent);




    }









    .an-sidebar::-webkit-scrollbar {




      width: 0;




    }









    .an-sidebar-head {




      padding: 20px 18px 16px;




      border-bottom: 1px solid var(--an-border);




      display: flex;




      align-items: center;




      gap: 10px;




    }









    .an-logo-mark {




      width: 34px;




      height: 34px;




      border-radius: 9px;




      flex-shrink: 0;




      background: linear-gradient(135deg, #00d4a8, #00e5ff);




      display: flex;




      align-items: center;




      justify-content: center;




      font-weight: 900;




      font-size: 13px;




      color: #060d18;




      letter-spacing: -.5px;




    }









    .an-logo-text {




      font-weight: 800;




      font-size: 13px;




      color: var(--an-text);




      letter-spacing: -.3px;




    }









    .an-logo-sub {




      font-size: 9px;




      color: var(--an-muted2);




      margin-top: 1px;




      font-weight: 500;




    }









    .an-nav-group {




      padding: 14px 10px 4px;




    }









    .an-nav-group-label {




      font-size: 9px;




      font-weight: 700;




      color: var(--an-muted);




      letter-spacing: 1.8px;




      text-transform: uppercase;




      padding: 0 8px;




      margin-bottom: 6px;




    }









    .an-nav-item {




      display: flex;




      align-items: center;




      gap: 10px;




      padding: 9px 10px;




      border-radius: 8px;




      cursor: pointer;




      transition: all .12s;




      font-size: 12px;




      color: var(--an-muted2);




      font-weight: 500;




      margin-bottom: 1px;




      position: relative;




    }









    .an-nav-item:hover {




      background: rgba(255, 255, 255, .04);




      color: var(--an-text);




    }









    .an-nav-item.active {




      background: rgba(0, 212, 168, .1);




      color: var(--an-teal);




      font-weight: 600;




    }









    .an-nav-item.active::before {




      content: '';




      position: absolute;




      left: 0;




      top: 4px;




      bottom: 4px;




      width: 2px;




      background: var(--an-teal);




      border-radius: 2px;




    }









    .an-nav-icon {




      width: 18px;




      text-align: center;




      font-size: 13px;




      flex-shrink: 0;




    }









    .an-nav-count {




      margin-left: auto;




      min-width: 20px;




      height: 18px;




      background: var(--an-teal-dim);




      color: var(--an-teal);




      border-radius: 5px;




      font-size: 9px;




      font-weight: 700;




      display: flex;




      align-items: center;




      justify-content: center;




      padding: 0 5px;




    }









    .an-sidebar-bottom {




      margin-top: auto;




      padding: 14px 12px;




      border-top: 1px solid var(--an-border);




    }









    .an-user-chip {




      display: flex;




      align-items: center;




      gap: 10px;




      padding: 10px;




      border-radius: 10px;




      background: rgba(255, 255, 255, .03);




      border: 1px solid var(--an-border);




    }









    .an-user-av {




      width: 32px;




      height: 32px;




      border-radius: 8px;




      flex-shrink: 0;




      background: linear-gradient(135deg, var(--an-teal), var(--an-teal2));




      display: flex;




      align-items: center;




      justify-content: center;




      font-weight: 800;




      font-size: 13px;




      color: #060d18;




    }









    .an-user-name {




      font-size: 11px;




      font-weight: 700;




      color: var(--an-text);




    }









    .an-user-tag {




      display: inline-flex;




      margin-top: 2px;




      font-size: 8px;




      font-weight: 700;




      letter-spacing: .5px;




      color: var(--an-teal);




      background: var(--an-teal-dim);




      border-radius: 4px;




      padding: 1px 5px;




    }









    .an-main {




      flex: 1;




      display: flex;




      flex-direction: column;




      min-width: 0;




      overflow: hidden;




    }









    .an-topbar {




      height: 58px;




      flex-shrink: 0;




      background: var(--an-topbar);




      border-bottom: 1px solid var(--an-border);




      display: flex;




      align-items: center;




      justify-content: space-between;




      padding: 0 26px;




      gap: 12px;




    }









    .an-breadcrumb {




      display: flex;




      align-items: center;




      gap: 6px;




      font-size: 11px;




      color: var(--an-muted2);




    }









    .an-breadcrumb-sep {




      color: var(--an-muted);




      font-size: 10px;




    }









    .an-bc-current {




      color: var(--an-text);




      font-weight: 600;




    }









    .an-topbar-right {




      display: flex;




      align-items: center;




      gap: 8px;




    }









    .an-seg {




      display: flex;




      gap: 1px;




      background: var(--an-card2);




      border: 1px solid var(--an-border);




      border-radius: 8px;




      padding: 3px;




    }









    .an-seg-btn {




      padding: 5px 14px;




      border-radius: 5px;




      border: none;




      font-size: 11px;




      font-weight: 600;




      letter-spacing: .2px;




      cursor: pointer;




      background: transparent;




      color: var(--an-muted2);




      transition: all .12s;




    }









    .an-seg-btn.active {




      background: var(--an-teal);




      color: #060d18;




      font-weight: 700;




    }









    .an-seg-btn:hover:not(.active) {




      color: var(--an-text);




    }









    .an-topbar-sel {




      background: var(--an-card2);




      border: 1px solid var(--an-border);




      color: var(--an-text);




      font-size: 11px;




      font-weight: 500;




      padding: 6px 12px;




      border-radius: 7px;




      outline: none;




      cursor: pointer;




    }









    .an-x-btn {




      width: 32px;




      height: 32px;




      border-radius: 7px;




      background: rgba(246, 70, 93, .1);




      border: 1px solid rgba(246, 70, 93, .2);




      color: #f6465d;




      font-size: 14px;




      cursor: pointer;




      display: flex;




      align-items: center;




      justify-content: center;




      transition: all .12s;




    }









    .an-x-btn:hover {




      background: rgba(246, 70, 93, .2);




    }









    .an-scroll {




      flex: 1;




      overflow-y: auto;




      padding: 22px 26px 60px;




    }









    .an-scroll::-webkit-scrollbar {




      width: 4px;




    }









    .an-scroll::-webkit-scrollbar-track {




      background: transparent;




    }









    .an-scroll::-webkit-scrollbar-thumb {




      background: var(--an-border2);




      border-radius: 4px;




    }









    .an-loading-wrap {




      display: flex;




      flex-direction: column;




      align-items: center;




      justify-content: center;




      height: 60vh;




    }









    .an-spinner {




      width: 38px;




      height: 38px;




      border-radius: 50%;




      border: 2px solid rgba(0, 212, 168, .1);




      border-top-color: var(--an-teal);




      animation: anSpin .7s linear infinite;




      margin-bottom: 16px;




    }









    @keyframes anSpin {




      to {




        transform: rotate(360deg);




      }




    }









    .an-loading-txt {




      font-size: 11px;




      font-weight: 600;




      color: var(--an-muted);




      letter-spacing: 2px;




      text-transform: uppercase;




    }









    .an-cards-grid {




      display: grid;




      grid-template-columns: repeat(4, 1fr);




      gap: 12px;




      margin-bottom: 16px;




    }









    .an-stat-card {




      background: var(--an-card);




      border: 1px solid var(--an-border);




      border-radius: 12px;




      padding: 18px 18px 16px;




      position: relative;




      overflow: hidden;




      transition: border-color .15s, transform .15s;




      cursor: default;




    }









    .an-stat-card:hover {




      border-color: var(--an-border2);




      transform: translateY(-1px);




    }









    .an-stat-top {




      display: flex;




      align-items: flex-start;




      justify-content: space-between;




      margin-bottom: 16px;




    }









    .an-stat-icon {




      width: 34px;




      height: 34px;




      border-radius: 9px;




      display: flex;




      align-items: center;




      justify-content: center;




      font-size: 15px;




      background: var(--an-icon-bg, var(--an-teal-dim));




      border: 1px solid var(--an-icon-bd, rgba(0, 212, 168, .15));




    }









    .an-stat-badge {




      font-size: 10px;




      font-weight: 700;




      letter-spacing: .3px;




      padding: 3px 8px;




      border-radius: 6px;




      color: var(--an-bd-col, var(--an-teal));




      background: var(--an-bd-bg, var(--an-teal-dim));




    }









    .an-stat-lbl {




      font-size: 11px;




      font-weight: 500;




      color: var(--an-muted2);




      margin-bottom: 6px;




    }









    .an-stat-val {




      font-family: 'Cabinet Grotesk', 'Inter', sans-serif;




      font-size: 30px;




      font-weight: 900;




      color: var(--an-text);




      line-height: 1;




      letter-spacing: -.5px;




      margin-bottom: 8px;




    }









    .an-stat-sub {




      font-size: 10px;




      color: var(--an-muted);




      display: flex;




      align-items: center;




      gap: 5px;




    }









    .an-stat-card::after {




      content: '';




      position: absolute;




      bottom: -30px;




      right: -30px;




      width: 90px;




      height: 90px;




      border-radius: 50%;




      background: radial-gradient(circle, var(--an-glow, rgba(0, 212, 168, .05)) 0%, transparent 70%);




      pointer-events: none;




    }









    .an-main-grid {




      display: grid;




      grid-template-columns: 1fr 300px;




      gap: 12px;




      margin-bottom: 12px;




      align-items: start;




    }









    .an-right-col {




      display: flex;




      flex-direction: column;




      gap: 12px;




    }









    .an-card {




      background: var(--an-card);




      border: 1px solid var(--an-border);




      border-radius: 12px;




      overflow: hidden;




    }









    .an-card-hdr {




      display: flex;




      align-items: center;




      justify-content: space-between;




      padding: 14px 18px;




      border-bottom: 1px solid var(--an-border);




      background: rgba(0, 0, 0, .1);




    }









    .an-card-title {




      display: flex;




      align-items: center;




      gap: 8px;




      font-size: 12px;




      font-weight: 700;




      color: var(--an-text);




    }









    .an-card-dot {




      width: 7px;




      height: 7px;




      border-radius: 50%;




      background: var(--an-dot, var(--an-teal));




      box-shadow: 0 0 6px var(--an-dot, var(--an-teal));




    }









    .an-card-meta {




      font-size: 10px;




      color: var(--an-muted2);




    }









    .an-card-body {




      padding: 16px 18px;




    }









    .an-chart-row {




      display: flex;




      justify-content: space-between;




      align-items: center;




      padding: 0 18px 8px;




    }









    .an-chart-label {




      font-size: 9px;




      color: var(--an-muted);




      font-family: monospace;




    }









    .an-bar-row {




      margin-bottom: 13px;




    }









    .an-bar-row:last-child {




      margin-bottom: 0;




    }









    .an-bar-header {




      display: flex;




      justify-content: space-between;




      align-items: center;




      margin-bottom: 6px;




    }









    .an-bar-name {




      font-size: 11px;




      font-weight: 600;




      color: var(--an-text);




    }









    .an-bar-stat {




      font-size: 10px;




      color: var(--an-muted2);




      font-family: monospace;




    }









    .an-bar-track {




      height: 5px;




      background: rgba(255, 255, 255, .05);




      border-radius: 3px;




      overflow: hidden;




    }









    .an-bar-fill {




      height: 100%;




      border-radius: 3px;




      transition: width .9s cubic-bezier(.16, 1, .3, 1);




    }









    .an-divider {




      display: flex;




      align-items: center;




      gap: 12px;




      margin: 20px 0 12px;




    }









    .an-divider-line {




      flex: 1;




      height: 1px;




      background: var(--an-border);




    }









    .an-divider-label {




      font-size: 9px;




      font-weight: 700;




      letter-spacing: 2px;




      text-transform: uppercase;




      color: var(--an-muted2);




      white-space: nowrap;




    }









    .an-insights-grid {




      display: grid;




      grid-template-columns: repeat(3, 1fr);




      gap: 10px;




      margin-bottom: 12px;




    }









    .an-insight {




      background: var(--an-card);




      border: 1px solid var(--an-border);




      border-radius: 10px;




      padding: 16px;




      position: relative;




      overflow: hidden;




      transition: border-color .12s, transform .12s;




    }









    .an-insight:hover {




      border-color: var(--an-border2);




      transform: translateY(-1px);




    }









    .an-insight-stripe {




      position: absolute;




      top: 0;




      left: 0;




      right: 0;




      height: 2px;




      background: var(--an-ins-col, var(--an-amber));




    }









    .an-insight-icon {




      font-size: 20px;




      margin-bottom: 10px;




      display: block;




    }









    .an-insight-text {




      font-size: 11px;




      color: var(--an-muted2);




      line-height: 1.65;




    }









    .an-tbl-wrap {




      overflow-x: auto;




    }









    .an-tbl-search {




      background: var(--an-card2);




      border: 1px solid var(--an-border);




      color: var(--an-text);




      font-size: 11px;




      font-weight: 500;




      padding: 7px 14px;




      border-radius: 8px;




      outline: none;




      width: 240px;




      transition: border-color .15s;




    }









    .an-tbl-search::placeholder {




      color: var(--an-muted);




    }









    .an-tbl-search:focus {




      border-color: rgba(0, 212, 168, .4);




    }









    #anTable {




      width: 100%;




      border-collapse: collapse;




    }









    #anTable thead tr {




      background: rgba(0, 0, 0, .2);




    }









    #anTable thead th {




      padding: 11px 18px;




      font-size: 10px;




      font-weight: 700;




      color: var(--an-muted2);




      letter-spacing: .8px;




      text-transform: uppercase;




      border-bottom: 1px solid var(--an-border);




      text-align: left;




      white-space: nowrap;




    }









    #anTable thead th:nth-last-child(1),




    #anTable thead th:nth-last-child(2) {




      text-align: right;




    }









    #anTable tbody td {




      padding: 11px 18px;




      font-size: 11px;




      font-weight: 500;




      color: var(--an-muted2);




      border-bottom: 1px solid rgba(21, 32, 48, .9);




      vertical-align: middle;




      white-space: nowrap;




    }









    #anTable tbody tr:last-child td {




      border-bottom: none;




    }









    #anTable tbody tr {




      transition: background .08s;




    }









    #anTable tbody tr:hover td {




      background: rgba(0, 212, 168, .04);




      color: var(--an-text);




    }









    #anTable tbody tr:hover td:first-child {




      padding-left: 16px;




      border-left: 2px solid var(--an-teal);




    }









    #anTable tbody td:first-child {




      border-left: 2px solid transparent;




      padding-left: 16px;




    }









    .an-empty {




      text-align: center;




      padding: 28px;




      font-size: 11px;




      color: var(--an-muted);




      line-height: 1.8;




    }









    @media(max-width:1080px) {




      .an-sidebar {




        width: 56px;




      }









      .an-logo-text,




      .an-logo-sub,




      .an-nav-group-label,




      .an-nav-item span,




      .an-nav-count,




      .an-user-name,




      .an-user-tag {




        display: none;




      }









      .an-nav-item {




        justify-content: center;




        padding: 10px;




      }









      .an-main-grid {




        grid-template-columns: 1fr !important;




      }









      .an-insights-grid {




        grid-template-columns: 1fr 1fr !important;




      }




    }









    @media(max-width:760px) {




      .an-sidebar {




        display: none;




      }









      .an-cards-grid {




        grid-template-columns: repeat(2, 1fr) !important;




      }









      .an-insights-grid {




        grid-template-columns: 1fr !important;




      }









      .an-scroll {




        padding: 14px 14px 60px;




      }




    }









    /* ADMIN PANEL (preserved) */




    .admin-wrap {




      min-height: 100vh;




      padding: 24px;




      max-width: 1100px;




      margin: 0 auto;




    }









    .admin-topbar {




      display: flex;




      align-items: center;




      justify-content: space-between;




      margin-bottom: 28px;




      padding-bottom: 16px;




      border-bottom: 1px solid var(--b1);




    }









    .admin-logo {




      font-family: 'Inter', sans-serif;




      font-size: 18px;




      font-weight: 800;




      color: #ff3d71;




    }









    .admin-logo span {




      color: var(--sub);




      font-size: 11px;




      font-weight: 400;




      margin-left: 8px;




      letter-spacing: 2px;




    }









    .admin-stat-row {




      display: grid;




      grid-template-columns: repeat(4, 1fr);




      gap: 2px;




      background: var(--b1);




      margin-bottom: 24px;




      border-radius: 4px;




      overflow: hidden;




    }









    .admin-stat {




      background: var(--s2);




      padding: 18px 20px;




    }









    .as-lbl {




      font-size: 9px;




      color: var(--sub);




      letter-spacing: 2px;




      text-transform: uppercase;




      margin-bottom: 6px;




      font-family: 'Inter', sans-serif;




    }









    .as-val {




      font-family: 'Inter', sans-serif;




      font-size: 28px;




      font-weight: 900;




    }









    .admin-table-wrap {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 8px;




      overflow: hidden;




    }









    .admin-table-hdr {




      padding: 14px 20px;




      border-bottom: 1px solid var(--b1);




      display: flex;




      align-items: center;




      justify-content: space-between;




    }









    .admin-table-title {




      font-size: 12px;




      font-weight: 700;




      color: var(--text);




    }









    .admin-search {




      background: var(--bg);




      border: 1px solid var(--b1);




      color: var(--text);




      font-family: 'Inter', sans-serif;




      font-size: 11px;




      padding: 6px 10px;




      border-radius: 4px;




      outline: none;




      width: 200px;




    }









    .admin-search:focus {




      border-color: var(--blue);




    }









    .admin-table {




      width: 100%;




      border-collapse: collapse;




    }









    .admin-table th {




      padding: 10px 16px;




      text-align: left;




      font-size: 9px;




      color: var(--sub);




      letter-spacing: 1.5px;




      text-transform: uppercase;




      border-bottom: 1px solid var(--b1);




    }









    .admin-table td {




      padding: 12px 16px;




      font-size: 11px;




      border-bottom: 1px solid rgba(30, 34, 53, .5);




      vertical-align: middle;




    }









    .admin-table tr:last-child td {




      border-bottom: none;




    }









    .admin-table tr:hover td {




      background: rgba(59, 127, 245, .02);




    }









    .admin-badge {




      display: inline-flex;




      align-items: center;




      gap: 5px;




      padding: 3px 8px;




      border-radius: 3px;




      font-size: 9px;




      font-weight: 700;




      letter-spacing: 1px;




    }









    .admin-badge.pro {




      background: rgba(31, 200, 106, .12);




      color: var(--green);




      border: 1px solid rgba(31, 200, 106, .25);




    }









    .admin-badge.free {




      background: rgba(92, 96, 128, .1);




      color: var(--sub);




      border: 1px solid var(--b1);




    }









    .admin-badge.real {




      background: rgba(240, 64, 64, .1);




      color: var(--red);




      border: 1px solid rgba(240, 64, 64, .2);




    }









    .admin-badge.demo {




      background: rgba(59, 127, 245, .08);




      color: var(--blue);




      border: 1px solid rgba(59, 127, 245, .2);




    }









    .admin-empty {




      text-align: center;




      padding: 40px;




      color: var(--sub);




      font-size: 12px;




    }









    .admin-filters {




      display: flex;




      gap: 6px;




      flex-wrap: wrap;




    }









    .admin-filter {




      padding: 5px 12px;




      border: 1px solid var(--b1);




      background: transparent;




      color: var(--sub);




      font-size: 10px;




      font-weight: 700;




      letter-spacing: 1px;




      cursor: pointer;




      border-radius: 3px;




      text-transform: uppercase;




      transition: all .2s;




    }









    .admin-filter.active {




      border-color: var(--blue);




      color: var(--blue);




      background: var(--blue-d);




    }









    .admin-refresh {




      padding: 6px 14px;




      background: var(--blue);




      color: #fff;




      border: none;




      font-size: 10px;




      font-weight: 800;




      letter-spacing: 1px;




      cursor: pointer;




      border-radius: 3px;




      text-transform: uppercase;




    }









    .admin-login {




      min-height: 100vh;




      display: flex;




      align-items: center;




      justify-content: center;




    }









    .admin-login-box {




      background: var(--s2);




      border: 1px solid var(--b1);




      border-radius: 10px;




      padding: 36px;




      width: 360px;




      text-align: center;




    }









    .admin-login-box::before {




      content: '';




      font-size: 36px;




      display: block;




      margin-bottom: 12px;




    }









    .alb-title {




      font-size: 22px;




      font-weight: 900;




      color: #ff3d71;




      margin-bottom: 6px;




    }









    .alb-sub {




      font-size: 11px;




      color: var(--sub);




      margin-bottom: 24px;




    }









    .admin-pin-row {




      display: flex;




      gap: 8px;




      justify-content: center;




      margin-bottom: 16px;




    }









    .admin-pin-dot {




      width: 14px;




      height: 14px;




      border-radius: 50%;




      background: var(--b1);




      transition: background .2s;




    }









    .admin-pin-dot.filled {




      background: #ff3d71;




    }









    .admin-numpad {




      display: grid;




      grid-template-columns: repeat(3, 1fr);




      gap: 6px;




    }









    .admin-key {




      padding: 14px;




      background: var(--bg);




      border: 1px solid var(--b1);




      color: var(--text);




      font-size: 16px;




      font-weight: 700;




      cursor: pointer;




      border-radius: 5px;




      transition: all .15s;




    }









    .admin-key:hover {




      background: var(--s2);




      border-color: var(--blue);




    }









    .admin-key.del {




      font-size: 12px;




      color: var(--sub);




    }









    .admin-key.enter {




      background: #ff3d71;




      color: #fff;




      border-color: #ff3d71;




    }









    .admin-pin-err {




      font-size: 11px;




      color: var(--red);




      margin-top: 8px;




      min-height: 16px;




    }









    /* LEGAL MODAL */




    .legal-tab {




      background: none;




      border: none;




      border-bottom: 2px solid transparent;




      color: var(--sub);




      padding: 12px 20px;




      font-size: 10px;




      font-weight: 700;




      letter-spacing: 1px;




      cursor: pointer;




      white-space: nowrap;




      transition: all .2s;




    }









    .legal-tab.active,




    .legal-tab:hover {




      color: var(--blue);




      border-bottom-color: var(--blue);




    }









    .legal-section h2 {




      font-size: 16px;




      font-weight: 800;




      color: #fff;




      margin: 0 0 16px;




    }









    .legal-section h3 {




      font-size: 12px;




      font-weight: 700;




      color: var(--blue);




      letter-spacing: 1px;




      margin: 20px 0 8px;




    }









    .legal-section p,




    .legal-section li {




      color: #aaa;




      font-size: 12px;




      line-height: 1.8;




      margin: 0 0 10px;




    }









    .legal-section ul {




      padding-left: 20px;




    }









    .legal-section .highlight {




      background: #0a1628;




      border-left: 3px solid var(--blue);




      padding: 12px 16px;




      border-radius: 6px;




      margin: 12px 0;




    }









    /* SPIN UTILITY */




    .spin {




      display: inline-block;




      width: 13px;




      height: 13px;




      border: 2px solid var(--b1);




      border-top-color: var(--blue);




      border-radius: 50%;




      animation: sp .8s linear infinite;




      vertical-align: middle;




      margin-right: 5px;




    }









    @keyframes sp {




      to {




        transform: rotate(360deg);




      }




    }









    /* SCROLLBAR */




    ::-webkit-scrollbar {




      width: 3px;




    }









    ::-webkit-scrollbar-track {




      background: var(--bg);




    }









    ::-webkit-scrollbar-thumb {




      background: var(--b2);




      border-radius: 2px;




    }




  








    /*  Palette: Glass Mono  */




    :root {




      --bg: #0a0a0d;




      --s1: rgba(255, 255, 255, 0.04);




      --s2: rgba(255, 255, 255, 0.07);




      --s3: rgba(255, 255, 255, 0.10);




      --b1: rgba(255, 255, 255, 0.08);




      --b2: rgba(255, 255, 255, 0.14);




      --text: #ffffff;




      --sub: #9ca0aa;




      --dim: #52555f;




      /* monochrome accent — replaces blue */




      --blue: #ffffff;




      --blue-d: rgba(255, 255, 255, 0.10);




      --accent: #ffffff;




      /* keep semantic colors (used in win/loss/credits) but soften slightly */




      --green: #7ed957;




      --green-d: rgba(126, 217, 87, 0.12);




      --red: #ff6b6b;




      --red-d: rgba(255, 107, 107, 0.12);




      --gold: #d8d8dc;




      --gold-d: rgba(255, 255, 255, 0.07);




      --accent3: #7ed957;




      --accent4: #d8d8dc;




      --panel: rgba(255, 255, 255, 0.04);




      --surface: rgba(255, 255, 255, 0.04);




      --border: rgba(255, 255, 255, 0.08);




      --muted: #9ca0aa;




      --rise: #7ed957;




      --fall: #ff6b6b;




      --even: #7ed957;




      --odd: #d8d8dc;




    }









    /*  Solid dark base  */




    html, body {




      background: #0a0a0d;




      color: var(--text);




    }









    /* Solid card backstop layer (glass alphas need a dark base) */




    #scDash, #scHistory, #scStats, #scAccount,




    .asset-bar {




      background-color: #0a0a0d;




    }









    /*  Frosted glass surfaces  */




    .asset-bar,




    .ctrl-cell,




    .controls-row,




    .round-progress,




    .stat-card,




    .stats-card,




    .acct-card,




    .acct-section,




    .pkg-card,




    .acct-menu-item,




    .round-card,




    .se-card,




    .credits-card {




      background: var(--s1) !important;




      backdrop-filter: blur(14px);




      -webkit-backdrop-filter: blur(14px);




      border: 1px solid var(--b1);




      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);




    }









    /* Bottom-sheets & overlays */




    .bottom-sheet, .se-sheet, [class*="-sheet"] {




      background: rgba(20, 20, 26, 0.85) !important;




      backdrop-filter: blur(20px);




      -webkit-backdrop-filter: blur(20px);




      border: 1px solid var(--b2);




    }









    /*  Top bar  */




    .dash-topbar, .sc-topbar {




      background: rgba(10, 10, 13, 0.7) !important;




      backdrop-filter: blur(16px);




      -webkit-backdrop-filter: blur(16px);




      border-bottom: 1px solid var(--b1);




    }









    /*  DEMO / REAL pill (was blue/green)  */




    .tb-pill {




      background: var(--s2) !important;




      color: var(--text) !important;




      border: 1px solid var(--b2) !important;




      backdrop-filter: blur(8px);




      font-weight: 800;




      letter-spacing: .6px;




    }




    .tb-pill.real {




      background: rgba(126, 217, 87, 0.15) !important;




      color: var(--green) !important;




      border-color: rgba(126, 217, 87, 0.30) !important;




    }









    /*  Credits pill (glass with subtle white inset)  */




    .tb-credits-badge,




    .sc-topbar-credits {




      background: rgba(255, 255, 255, 0.08) !important;




      backdrop-filter: blur(12px);




      -webkit-backdrop-filter: blur(12px);




      border: 1px solid var(--b2) !important;




      border-radius: 14px !important;




      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.10);




    }




    .tb-credits-badge svg,




    .tb-credits-val,




    .sc-topbar-credits span.val,




    .sc-topbar-credits svg {




      color: #fff !important;




      fill: #fff !important;




    }




    .tb-credits-label, .sc-topbar-credits span.label {




      color: var(--sub) !important;




    }









    /*  Asset bar (glass surface)  */




    .asset-bar {




      backdrop-filter: blur(12px);




      -webkit-backdrop-filter: blur(12px);




      border-radius: 14px;




      margin: 12px 12px 0;




    }




    .asset-bar:hover { background: var(--s2) !important; }




    .ab-flag { background: var(--s3); border-color: transparent; }




    .ab-payout {




      background: rgba(126, 217, 87, 0.12) !important;




      color: var(--green) !important;




      border: 1px solid rgba(126, 217, 87, 0.25) !important;




    }









    /* Run Bot —  white gradient with glow (idle state)  */




    #runBtn {




      background: linear-gradient(135deg, #ffffff, #d8d8dc) !important;




      color: #0a0a0d !important;




      font-weight: 800;




      letter-spacing: .2px;




      border-radius: 50px !important;




      box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);




      border: none !important;




    }




    /* Running state — solid red, white text. Higher specificity than :hover. */




    #runBtn[data-state="running"],




    #runBtn[data-state="running"]:hover {




      background: linear-gradient(135deg, var(--red), #d54848) !important;




      color: #ffffff !important;




      box-shadow: 0 12px 32px rgba(255, 107, 107, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;




    }




    /* Frozen state — disabled appearance */




    #runBtn[data-state="frozen"],




    #runBtn[data-state="frozen"]:hover {




      background: rgba(255, 255, 255, 0.05) !important;




      color: var(--dim) !important;




      border: 1px solid var(--b1) !important;




      box-shadow: none !important;




    }









    /*  Bottom nav (translucent blur) — 5 tabs  */




    .bottom-nav {




      background: rgba(10, 10, 13, 0.7) !important;




      backdrop-filter: blur(20px);




      -webkit-backdrop-filter: blur(20px);




      border-top: 1px solid var(--b1);




      grid-template-columns: repeat(5, 1fr) !important;




    }




    .nav-btn { color: var(--sub); padding: 4px 2px; }




    .nav-btn.active { color: #fff; }




    /* Highlight the Buy tab subtly so it stands out */




    #navBuy svg { color: rgba(255,255,255,0.85); }




    @media (max-width: 380px) {




      .nav-btn { font-size: 8px; }




      .nav-btn svg { width: 18px !important; height: 18px !important; }




    }









    /*  Round progress pips  */




    .ss-pip, .streak-pip, [id^="ss"] { background: var(--s2) !important; }




    .ss-pip.win, .streak-pip.win { background: #fff !important; box-shadow: 0 0 8px rgba(255,255,255,0.4); }




    .ss-pip.loss, .streak-pip.loss { background: var(--red) !important; }









    /*  Stats / inputs  */




    input, select, textarea {




      background: var(--s1) !important;




      backdrop-filter: blur(8px);




      border: 1px solid var(--b1) !important;




      color: var(--text) !important;




      font-variant-numeric: tabular-nums;




    }




    input:focus, select:focus, textarea:focus {




      border-color: rgba(255, 255, 255, 0.30) !important;




      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;




      outline: none !important;




    }









    /*  Tabular numerals on every numeric value  */




    .tb-balance, .tb-credits-val, .sc-topbar-credits span.val,




    .ctrl-val, .ab-payout, .round-amount, .round-profit,




    .stat-val, .credits-val, [id*="Bal"], [id*="Credits"], [id*="Stake"],




    [id*="profit"], [id*="Profit"] {




      font-variant-numeric: tabular-nums !important;




      font-feature-settings: 'tnum' !important;




    }









    /*  Account profile / credits balance card  */




    .acct-pf, .acct-profile-card, .se-acct-pf {




      background: var(--s1) !important;




      backdrop-filter: blur(14px);




      border: 1px solid var(--b1) !important;




      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);




    }









    /* Credits Balance card on Account page (gold-themed in original)  soften to glass+white */




    [class*="credit-balance"], [class*="creditsBalance"], [class*="credits-card"],




    .acct-credits, .acct-credits-card {




      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) !important;




      backdrop-filter: blur(14px);




      border: 1px solid var(--b2) !important;




      box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.10);




    }









    /* Plan badge (FREE TRADER) in green, but with glass softness */




    .plan-badge, [class*="freeTrader"], [class*="free-trader"] {




      background: rgba(126, 217, 87, 0.15) !important;




      color: var(--green) !important;




      border: 1px solid rgba(126, 217, 87, 0.30) !important;




      backdrop-filter: blur(8px);




    }









    /*  Buttons (secondary / Buy More)  */




    .land-btn-primary,




    .buy-more-btn, [class*="buyMore"], [class*="buy-more"] {




      background: rgba(255, 255, 255, 0.95) !important;




      color: #0a0a0d !important;




      border: none !important;




      font-weight: 800;




      letter-spacing: .2px;




    }









    /*  Round cards (History)  */




    .round-card {




      background: var(--s1) !important;




      backdrop-filter: blur(12px);




      border: 1px solid var(--b1) !important;




    }




    .round-badge.won { background: rgba(126,217,87,.18); color: var(--green); border-color: rgba(126,217,87,.4); }




    .round-badge.bust { background: rgba(255,107,107,.16); color: var(--red); border-color: rgba(255,107,107,.4); }




    .round-amount.win, .round-profit.win { color: var(--green) !important; }




    .round-amount.loss, .round-profit.loss { color: var(--red) !important; }









    /*  Chart line (engine draws inline) — softened color hints  */




    /* Engine sets stroke programmatically; we tint via CSS where possible */




    [id*="chart"] svg path[stroke="#3b7ff5"],




    [id*="Chart"] svg path[stroke="#3b7ff5"] {




      stroke: #ffffff !important;




    }









    /*  Binary 0/1 background pattern behind the live chart 




       Pocket-Option style faded matrix backdrop. The canvas is transparent




       except for the chart line + gradient, so this shows through behind. */




    .chart-section::before {




      content: '';




      position: absolute;




      inset: 0;




      pointer-events: none;




      z-index: 0;




      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='280' viewBox='0 0 160 280'><g font-family='Courier New, monospace' font-size='13' font-weight='700' fill='white'><text x='6' y='18' opacity='.22'>1</text><text x='32' y='14' opacity='.14'>0</text><text x='58' y='22' opacity='.20'>1</text><text x='84' y='16' opacity='.10'>1</text><text x='110' y='24' opacity='.24'>0</text><text x='138' y='20' opacity='.16'>1</text><text x='14' y='46' opacity='.12'>0</text><text x='40' y='52' opacity='.24'>1</text><text x='66' y='44' opacity='.18'>0</text><text x='92' y='50' opacity='.20'>1</text><text x='118' y='48' opacity='.14'>1</text><text x='144' y='56' opacity='.10'>0</text><text x='8' y='84' opacity='.22'>1</text><text x='36' y='78' opacity='.14'>0</text><text x='62' y='86' opacity='.24'>0</text><text x='88' y='80' opacity='.18'>1</text><text x='114' y='92' opacity='.12'>0</text><text x='140' y='84' opacity='.20'>1</text><text x='20' y='116' opacity='.20'>1</text><text x='46' y='112' opacity='.14'>1</text><text x='72' y='118' opacity='.24'>0</text><text x='98' y='114' opacity='.10'>1</text><text x='124' y='120' opacity='.18'>0</text><text x='150' y='116' opacity='.22'>1</text><text x='6' y='148' opacity='.14'>0</text><text x='32' y='154' opacity='.22'>0</text><text x='58' y='146' opacity='.20'>1</text><text x='84' y='152' opacity='.14'>1</text><text x='110' y='150' opacity='.10'>0</text><text x='136' y='156' opacity='.24'>1</text><text x='14' y='184' opacity='.18'>1</text><text x='40' y='180' opacity='.22'>1</text><text x='66' y='186' opacity='.10'>0</text><text x='92' y='182' opacity='.14'>0</text><text x='118' y='188' opacity='.24'>1</text><text x='144' y='184' opacity='.14'>0</text><text x='8' y='216' opacity='.22'>0</text><text x='36' y='212' opacity='.18'>1</text><text x='62' y='220' opacity='.10'>1</text><text x='88' y='214' opacity='.20'>0</text><text x='114' y='222' opacity='.24'>1</text><text x='140' y='218' opacity='.14'>1</text><text x='20' y='248' opacity='.20'>1</text><text x='46' y='244' opacity='.10'>0</text><text x='72' y='252' opacity='.22'>0</text><text x='98' y='246' opacity='.18'>1</text><text x='124' y='254' opacity='.14'>1</text><text x='150' y='248' opacity='.24'>0</text></g></svg>");




      background-repeat: repeat;




      opacity: .35;




    }




    /* Canvas above binary backdrop — keep z-index, DON'T touch position */




    #mainChart { position: relative; z-index: 1; }




    /* Price tag + time label keep their absolute positioning, just lift z-index */




    .chart-price-tag, .chart-time-label { z-index: 2; }









    /* Chart price tag — was blue/white, now white pill with dark text */




    .chart-price-tag {




      background: #ffffff !important;




      color: #0a0a0d !important;




      font-weight: 700 !important;




      box-shadow: 0 4px 14px rgba(255, 255, 255, 0.20);




      border-radius: 50px !important;




    }




    /* Chart time label — readable white with shadow over binary bg */




    .chart-time-label {




      color: rgba(220, 228, 242, 0.75) !important;




      font-weight: 600;




      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);




    }









    /* "1 credit deducted per round  0 on bust" hint — bump contrast */




    #runInfoText, .run-info-text {




      color: rgba(220, 228, 242, 0.75) !important;




    }









    /* Y-axis labels and any chart text — already handled in JS, but extra contrast for HTML overlays */




    .chart-section .chart-y-label, .chart-section .chart-x-label {




      color: rgba(220, 228, 242, 0.85) !important;




      font-weight: 600;




      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);




    }









    /* General tightening: any remaining "muted" text  boost so it's not lost on dark */




    .se-sub, .ctrl-lbl, .pip-label, .stat-lbl {




      color: rgba(180, 190, 210, 0.75) !important;




    }









    /*  Compact topbar with circular avatar  */




    .tb-user-compact {




      display: flex;




      align-items: center;




      gap: 10px;




      cursor: pointer;




      padding: 4px 8px 4px 4px;




      border-radius: 50px;




      transition: background .15s;




    }




    .tb-user-compact:active { background: rgba(255,255,255,0.06); }




    .tb-avatar {




      width: 38px; height: 38px;




      border-radius: 50%;




      background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));




      backdrop-filter: blur(8px);




      border: 1px solid rgba(255,255,255,0.20);




      display: flex; align-items: center; justify-content: center;




      font-weight: 800; font-size: 13px;




      color: #fff;




      letter-spacing: .5px;




      flex-shrink: 0;




      box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.20);




    }




    .tb-user-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }




    .tb-name-sm {




      font-size: 11px;




      color: rgba(220, 228, 242, 0.55);




      font-weight: 500;




      max-width: 140px;




      overflow: hidden;




      text-overflow: ellipsis;




      white-space: nowrap;




    }




    /* Hide the original .tb-name (we now show name below the meta line, smaller) */




    .tb-user > .tb-name { display: none; }




    /* Keep the meta row tight */




    .tb-user-info .tb-meta { margin-top: 0; gap: 6px; }









    /*  Extra stats sections (Glass Mono cards)  */




    .se-stat-extra {




      margin: 12px 12px 0;




      padding: 16px;




      background: rgba(255, 255, 255, 0.04);




      backdrop-filter: blur(14px);




      -webkit-backdrop-filter: blur(14px);




      border: 1px solid rgba(255, 255, 255, 0.08);




      border-radius: 16px;




      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);




    }




    .se-stat-h {




      display: flex; align-items: baseline; justify-content: space-between;




      margin-bottom: 12px;




    }




    .se-stat-t { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.1px; }




    .se-stat-sub { font-size: 11px; color: rgba(220, 228, 242, 0.55); font-weight: 500; }




    .se-stat-empty { font-size: 12px; color: rgba(220, 228, 242, 0.55); text-align: center; padding: 14px 0; font-weight: 500; }




    .se-asset-list { display: flex; flex-direction: column; gap: 8px; }




    .se-asset-row {




      display: grid; grid-template-columns: 1fr auto auto; align-items: center;




      gap: 12px; padding: 10px 12px;




      background: rgba(255, 255, 255, 0.03);




      border: 1px solid rgba(255, 255, 255, 0.06);




      border-radius: 10px;




    }




    .se-asset-name { font-size: 13px; font-weight: 700; color: #fff; }




    .se-asset-meta { font-size: 11px; color: rgba(220, 228, 242, 0.6); margin-top: 2px; font-weight: 500; }




    .se-asset-pl {




      font-size: 14px; font-weight: 800;




      font-variant-numeric: tabular-nums; letter-spacing: -.2px;




    }




    .se-asset-pl.win { color: #7ed957; }




    .se-asset-pl.loss { color: #ff6b6b; }




    .se-asset-wr {




      font-size: 11px; font-weight: 700;




      padding: 4px 8px; border-radius: 50px;




      background: rgba(255, 255, 255, 0.06);




      color: rgba(220, 228, 242, 0.85);




      font-variant-numeric: tabular-nums;




    }




    .se-asset-wr.high { background: rgba(126, 217, 87, 0.16); color: #7ed957; }




    .se-asset-wr.low  { background: rgba(255, 107, 107, 0.14); color: #ff6b6b; }




    /* Suggestion card */




    .se-stat-suggest {




      display: flex; align-items: center; gap: 14px;




      background: linear-gradient(135deg, rgba(126, 217, 87, 0.08), rgba(255, 255, 255, 0.04)) !important;




      border-color: rgba(126, 217, 87, 0.30) !important;




    }




    .se-suggest-ic {




      width: 38px; height: 38px; border-radius: 12px;




      background: rgba(126, 217, 87, 0.18);




      color: #7ed957;




      display: flex; align-items: center; justify-content: center;




      font-size: 18px; font-weight: 800; flex-shrink: 0;




      box-shadow: 0 0 14px rgba(126, 217, 87, 0.30);




    }




    .se-suggest-info { flex: 1; }




    .se-suggest-t {




      font-size: 11px; font-weight: 800; color: #7ed957;




      text-transform: uppercase; letter-spacing: .8px;




    }




    .se-suggest-msg { font-size: 13px; color: #fff; margin-top: 3px; line-height: 1.45; font-weight: 500; }




    /* Hour bar — 24 slim bars showing win rate per hour */




    .se-hour-bar {




      display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px;




      height: 60px; align-items: end;




    }




    .se-hour-cell {




      background: rgba(255, 255, 255, 0.06);




      border-radius: 3px;




      min-height: 4px;




      position: relative;




      transition: background .15s;




    }




    .se-hour-cell.has-data { background: rgba(255, 255, 255, 0.20); }




    .se-hour-cell.high { background: #7ed957; box-shadow: 0 0 6px rgba(126, 217, 87, 0.35); }




    .se-hour-cell.med  { background: rgba(220, 228, 242, 0.55); }




    .se-hour-cell.low  { background: rgba(255, 107, 107, 0.55); }









    /*  Analytics page — Glass Mono override  */




    #analyticsPage {




      --an-bg: #0a0a0d;




      --an-sidebar-bg: rgba(255, 255, 255, 0.03);




      --an-topbar: rgba(10, 10, 13, 0.85);




      --an-card: rgba(255, 255, 255, 0.04);




      --an-card2: rgba(255, 255, 255, 0.06);




      --an-border: rgba(255, 255, 255, 0.08);




      --an-border2: rgba(255, 255, 255, 0.14);




      --an-teal: #ffffff;




      --an-teal2: #d8d8dc;




      --an-green: #7ed957;




      --an-red: #ff6b6b;




      --an-amber: #d8d8dc;




      --an-purple: #d8d8dc;




      --an-text: #ffffff;




      --an-muted: #52555f;




      --an-muted2: #9ca0aa;




      --an-teal-dim: rgba(255, 255, 255, 0.08);




      --an-teal2-dim: rgba(255, 255, 255, 0.06);




    }




    /* Frosted-glass cards inside Analytics */




    #analyticsPage .an-stat-card,




    #analyticsPage [class*="an-card"],




    #analyticsPage .an-section,




    #analyticsPage .an-row {




      backdrop-filter: blur(12px);




      -webkit-backdrop-filter: blur(12px);




    }




    /* Larger, more reachable close button */




    #analyticsPage .an-x-btn {




      width: 44px !important;




      height: 44px !important;




      min-width: 44px !important;




      border-radius: 50% !important;




      background: rgba(255, 255, 255, 0.10) !important;




      backdrop-filter: blur(12px);




      border: 1px solid rgba(255, 255, 255, 0.18) !important;




      color: #fff !important;




      font-size: 18px !important;




      font-weight: 700 !important;




      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);




      cursor: pointer;




    }




    #analyticsPage .an-x-btn:hover { background: rgba(255, 255, 255, 0.18) !important; }









    /* 




       LANDING PAGE — Glass Mono redesign




        */




    #pgLanding {




      background: #050507;




      overflow: hidden;




    }




    #pgLanding .lp-scroll {




      width: 100%; height: 100%;




      overflow-y: auto; overflow-x: hidden;




      scroll-behavior: smooth;




      position: relative;




    }




    #pgLanding .lp-scroll::-webkit-scrollbar { width: 8px; }




    #pgLanding .lp-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 8px; }









    /* Ambient glows for landing only */




    #pgLanding .lp-scroll::before,




    #pgLanding .lp-scroll::after {




      content: '';




      position: absolute;




      width: 500px; height: 500px;




      border-radius: 50%;




      filter: blur(140px);




      pointer-events: none;




      z-index: 0;




    }




    #pgLanding .lp-scroll::before { background: rgba(160,170,200,0.12); top: -150px; left: -100px; }




    #pgLanding .lp-scroll::after  { background: rgba(80,90,120,0.16); top: 600px; right: -150px; }




    #pgLanding section, #pgLanding nav, #pgLanding footer { position: relative; z-index: 1; }









    /*  Nav  */




    .lp-nav {




      position: sticky; top: 0; z-index: 50;




      padding: 14px 16px;




      background: rgba(10,10,13,0.7);




      backdrop-filter: blur(16px);




      -webkit-backdrop-filter: blur(16px);




      border-bottom: 1px solid rgba(255,255,255,0.06);




    }




    .lp-nav-inner {




      max-width: 1100px; margin: 0 auto;




      display: flex; align-items: center; justify-content: space-between;




      gap: 16px;




    }




    .lp-logo { display: flex; align-items: center; gap: 9px; }




    .lp-logo-icon {




      width: 30px; height: 30px;




      border-radius: 9px;




      background: linear-gradient(135deg, #fff, #d8d8dc);




      display: flex; align-items: center; justify-content: center;




      box-shadow: 0 4px 14px rgba(255,255,255,0.18);




    }




    .lp-logo-text { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.4px; }




    .lp-logo-text em { font-style: normal; opacity: .65; font-weight: 600; }




    .lp-nav-links { display: flex; gap: 20px; }




    .lp-nav-links a {




      color: rgba(220,228,242,0.7);




      text-decoration: none;




      font-size: 13px;




      font-weight: 500;




      transition: color .15s;




    }




    .lp-nav-links a:hover { color: #fff; }




    .lp-nav-cta {




      padding: 9px 16px;




      background: rgba(255,255,255,0.95);




      color: #0a0a0d;




      border: none; border-radius: 50px;




      font-weight: 700; font-size: 13px;




      cursor: pointer;




      letter-spacing: .2px;




      transition: opacity .15s;




    }




    .lp-nav-cta:hover { opacity: .85; }




    @media (max-width: 720px) { .lp-nav-links { display: none; } }









    /*  Hero  */




    .lp-hero {




      max-width: 1100px;




      margin: 0 auto;




      padding: 60px 20px 40px;




      display: grid;




      grid-template-columns: 1.15fr 1fr;




      gap: 40px;




      align-items: center;




      position: relative;




    }




    .lp-bg-text {




      position: absolute;




      top: 70px; left: 50%; transform: translateX(-50%);




      font-size: clamp(120px, 22vw, 260px);




      font-weight: 900;




      letter-spacing: -8px;




      color: rgba(255,255,255,0.04);




      pointer-events: none;




      user-select: none;




      line-height: 1;




      z-index: 0;




      font-family: Inter, sans-serif;




    }




    .lp-hero-content { position: relative; z-index: 2; }




    .lp-pill {




      display: inline-flex; align-items: center; gap: 8px;




      padding: 7px 14px;




      background: rgba(255,255,255,0.06);




      backdrop-filter: blur(12px);




      border: 1px solid rgba(255,255,255,0.12);




      border-radius: 50px;




      font-size: 12px; font-weight: 600;




      color: rgba(220,228,242,0.85);




      margin-bottom: 22px;




    }




    .lp-pill .lp-dot {




      width: 7px; height: 7px; border-radius: 50%;




      background: #7ed957;




      box-shadow: 0 0 8px rgba(126,217,87,0.7);




      animation: lp-pulse 1.6s ease-in-out infinite;




    }




    @keyframes lp-pulse {




      0%, 100% { opacity: 1; }




      50% { opacity: .35; }




    }




    .lp-h1 {




      font-size: clamp(36px, 5.6vw, 64px);




      font-weight: 800;




      letter-spacing: -2px;




      line-height: 1.05;




      color: #fff;




      margin-bottom: 22px;




    }




    .lp-h1 em {




      font-style: italic;




      font-weight: 700;




      background: linear-gradient(135deg, #fff, #9ca0aa);




      -webkit-background-clip: text;




      background-clip: text;




      -webkit-text-fill-color: transparent;




      letter-spacing: -2.5px;




    }




    .lp-lead {




      font-size: 15px; line-height: 1.65;




      color: rgba(220,228,242,0.75);




      max-width: 480px;




      margin-bottom: 28px;




      font-weight: 500;




    }




    .lp-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }




    .lp-cta-primary {




      padding: 14px 22px;




      background: linear-gradient(135deg, #fff, #d8d8dc);




      color: #0a0a0d;




      border: none; border-radius: 50px;




      font-weight: 800; font-size: 14px;




      cursor: pointer;




      display: inline-flex; align-items: center; gap: 8px;




      box-shadow: 0 12px 32px rgba(255,255,255,0.18), inset 0 1px 0 rgba(255,255,255,0.5);




      letter-spacing: .2px;




      transition: transform .15s, box-shadow .15s;




    }




    .lp-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(255,255,255,0.25), inset 0 1px 0 rgba(255,255,255,0.6); }




    .lp-cta-primary.big { padding: 16px 28px; font-size: 15px; }




    .lp-cta-secondary {




      padding: 14px 22px;




      background: transparent;




      color: rgba(220,228,242,0.85);




      border: 1px solid rgba(255,255,255,0.18);




      border-radius: 50px;




      text-decoration: none;




      font-weight: 600; font-size: 14px;




      transition: all .15s;




    }




    .lp-cta-secondary:hover { background: rgba(255,255,255,0.06); color: #fff; }




    .lp-hero-meta {




      display: flex; gap: 18px; flex-wrap: wrap;




    }




    .lp-meta-item {




      display: inline-flex; align-items: center; gap: 6px;




      font-size: 12px; font-weight: 500;




      color: rgba(220,228,242,0.55);




    }




    .lp-meta-item svg { color: #7ed957; }









    /* Hero mock card */




    .lp-hero-mock { position: relative; z-index: 2; display: flex; justify-content: center; }




    .lp-mock-card {




      width: 320px;




      padding: 16px;




      background: rgba(255,255,255,0.04);




      backdrop-filter: blur(20px);




      -webkit-backdrop-filter: blur(20px);




      border: 1px solid rgba(255,255,255,0.10);




      border-radius: 24px;




      box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.10);




      transform: rotate(-2deg);




    }




    .lp-mock-tb { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }




    .lp-mock-av {




      width: 32px; height: 32px; border-radius: 50%;




      background: linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.05));




      border: 1px solid rgba(255,255,255,0.20);




      display: flex; align-items: center; justify-content: center;




      font-size: 11px; font-weight: 800; color: #fff;




    }




    .lp-mock-name { flex: 1; font-size: 11px; font-weight: 600; color: rgba(220,228,242,0.75); }




    .lp-mock-credits {




      padding: 5px 9px;




      background: rgba(255,255,255,0.10);




      border: 1px solid rgba(255,255,255,0.18);




      border-radius: 8px;




      font-size: 11px; font-weight: 800;




    }




    .lp-mock-asset {




      display: flex; align-items: center; gap: 8px;




      padding: 9px 0; margin-top: 4px;




      font-size: 12px; font-weight: 700; color: #fff;




    }




    .lp-mock-ic {




      width: 28px; height: 28px; border-radius: 50%;




      background: rgba(255,255,255,0.08);




      border: 1px solid rgba(255,255,255,0.14);




      display: inline-flex; align-items: center; justify-content: center;




      font-size: 9px; font-weight: 800;




      flex-direction: column; line-height: 1.05;




    }




    .lp-mock-ic small { font-size: 7px; opacity: .7; }




    .lp-mock-pay {




      margin-left: auto;




      padding: 3px 9px;




      background: rgba(126,217,87,0.15);




      color: #7ed957;




      border-radius: 6px;




      font-size: 10px; font-weight: 800;




    }




    .lp-mock-chart {




      width: 100%; height: 90px;




      margin: 6px 0;




    }




    .lp-mock-ctrls {




      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;




    }




    .lp-mock-ctrls > div {




      padding: 8px 10px;




      background: rgba(255,255,255,0.04);




      border: 1px solid rgba(255,255,255,0.08);




      border-radius: 10px;




    }




    .lp-mock-ctrls .l { font-size: 9px; color: rgba(220,228,242,0.5); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }




    .lp-mock-ctrls .v { font-size: 14px; font-weight: 800; margin-top: 2px; }




    .lp-mock-run {




      padding: 11px;




      background: linear-gradient(135deg, #fff, #d8d8dc);




      color: #0a0a0d;




      border-radius: 50px;




      font-size: 12px; font-weight: 800;




      text-align: center;




      box-shadow: 0 6px 20px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.4);




    }




    @media (max-width: 800px) {




      .lp-hero { grid-template-columns: 1fr; padding: 40px 16px 30px; }




      .lp-hero-mock { display: none; }




      .lp-bg-text { font-size: 30vw; top: 30px; }




    }









    /*  Trust strip  */




    .lp-trust {




      max-width: 900px; margin: 0 auto;




      padding: 30px 20px;




      display: flex; align-items: center; justify-content: space-around;




      gap: 16px;




      border-top: 1px solid rgba(255,255,255,0.06);




      border-bottom: 1px solid rgba(255,255,255,0.06);




    }




    .lp-trust-item { text-align: center; flex: 1; }




    .lp-trust-v {




      font-size: 28px; font-weight: 900; letter-spacing: -.8px;




      color: #fff;




      font-variant-numeric: tabular-nums;




    }




    .lp-trust-l {




      font-size: 11px; font-weight: 600;




      color: rgba(220,228,242,0.5);




      text-transform: uppercase; letter-spacing: 1px;




      margin-top: 4px;




    }




    .lp-trust-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.10); }




    @media (max-width: 600px) {




      .lp-trust-v { font-size: 22px; }




      .lp-trust-sep { display: none; }




    }









    /*  Generic section header  */




    .lp-section-h { text-align: center; margin-bottom: 40px; }




    .lp-eyebrow {




      display: inline-block;




      padding: 5px 12px;




      background: rgba(255,255,255,0.06);




      border: 1px solid rgba(255,255,255,0.12);




      border-radius: 50px;




      font-size: 11px; font-weight: 700;




      color: rgba(220,228,242,0.85);




      text-transform: uppercase; letter-spacing: 1.2px;




      margin-bottom: 14px;




    }




    .lp-h2 {




      font-size: clamp(26px, 4vw, 42px);




      font-weight: 800;




      letter-spacing: -1.2px;




      line-height: 1.1;




      color: #fff;




    }




    .lp-h2 em {




      font-style: italic;




      background: linear-gradient(135deg, #fff, #9ca0aa);




      -webkit-background-clip: text; background-clip: text;




      -webkit-text-fill-color: transparent;




      font-weight: 700;




    }




    .lp-section-sub {




      font-size: 14px; line-height: 1.6;




      color: rgba(220,228,242,0.65);




      max-width: 540px;




      margin: 14px auto 0;




      font-weight: 500;




    }









    /*  Features  */




    .lp-features { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }




    .lp-feat-grid {




      display: grid;




      grid-template-columns: repeat(3, 1fr);




      gap: 14px;




    }




    @media (max-width: 800px) { .lp-feat-grid { grid-template-columns: 1fr 1fr; } }




    @media (max-width: 520px) { .lp-feat-grid { grid-template-columns: 1fr; } }




    .lp-feat-card {




      padding: 22px;




      background: rgba(255,255,255,0.03);




      backdrop-filter: blur(12px);




      border: 1px solid rgba(255,255,255,0.08);




      border-radius: 18px;




      transition: all .2s;




    }




    .lp-feat-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); transform: translateY(-2px); }




    .lp-feat-ic {




      width: 42px; height: 42px;




      border-radius: 12px;




      background: rgba(255,255,255,0.08);




      border: 1px solid rgba(255,255,255,0.12);




      display: flex; align-items: center; justify-content: center;




      color: #fff;




      margin-bottom: 14px;




    }




    .lp-feat-ic svg { width: 20px; height: 20px; }




    .lp-feat-card h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -.3px; }




    .lp-feat-card p { font-size: 13px; line-height: 1.55; color: rgba(220,228,242,0.65); font-weight: 500; }









    /*  How it works  */




    .lp-how { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }




    .lp-step-grid {




      display: grid;




      grid-template-columns: repeat(3, 1fr);




      gap: 14px;




    }




    @media (max-width: 720px) { .lp-step-grid { grid-template-columns: 1fr; } }




    .lp-step {




      padding: 24px;




      background: rgba(255,255,255,0.04);




      backdrop-filter: blur(12px);




      border: 1px solid rgba(255,255,255,0.08);




      border-radius: 20px;




      position: relative;




    }




    .lp-step-n {




      font-size: 32px; font-weight: 900;




      letter-spacing: -1.5px;




      background: linear-gradient(135deg, #fff, #52555f);




      -webkit-background-clip: text; background-clip: text;




      -webkit-text-fill-color: transparent;




      margin-bottom: 12px;




      font-variant-numeric: tabular-nums;




    }




    .lp-step h3 { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -.3px; }




    .lp-step p { font-size: 13px; line-height: 1.55; color: rgba(220,228,242,0.65); font-weight: 500; }




    .lp-step code {




      background: rgba(255,255,255,0.08);




      padding: 1px 6px; border-radius: 5px;




      font-size: 11px;




      color: #fff;




      font-family: 'SF Mono', Consolas, monospace;




    }









    /*  Pricing  */




    .lp-pricing { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }




    .lp-plan-grid {




      display: grid;




      grid-template-columns: repeat(3, 1fr);




      gap: 14px;




      max-width: 920px;




      margin: 0 auto;




    }




    @media (max-width: 800px) { .lp-plan-grid { grid-template-columns: 1fr; } }




    .lp-plan {




      padding: 28px 22px;




      background: rgba(255,255,255,0.03);




      backdrop-filter: blur(12px);




      border: 1px solid rgba(255,255,255,0.08);




      border-radius: 20px;




      position: relative;




      display: flex; flex-direction: column;




    }




    .lp-plan.popular {




      background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));




      border-color: rgba(255,255,255,0.25);




      box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.14);




      transform: translateY(-8px);




    }




    .lp-plan-tag {




      position: absolute; top: -12px; left: 50%; transform: translateX(-50%);




      padding: 5px 14px;




      background: linear-gradient(135deg, #fff, #d8d8dc);




      color: #0a0a0d;




      border-radius: 50px;




      font-size: 11px; font-weight: 800;




      letter-spacing: .6px;




      text-transform: uppercase;




      box-shadow: 0 6px 18px rgba(255,255,255,0.25);




    }




    .lp-plan-name {




      font-size: 14px; font-weight: 700;




      color: rgba(220,228,242,0.85);




      letter-spacing: .4px;




      text-transform: uppercase;




      margin-bottom: 10px;




    }




    .lp-plan-price {




      font-size: 42px; font-weight: 900;




      letter-spacing: -2px;




      color: #fff;




      line-height: 1;




      font-variant-numeric: tabular-nums;




    }




    .lp-plan-price .cur {




      font-size: 22px; font-weight: 700;




      color: rgba(220,228,242,0.55);




      vertical-align: top;




      margin-right: 2px;




    }




    .lp-plan-credits {




      font-size: 13px; font-weight: 600;




      color: rgba(220,228,242,0.55);




      margin: 8px 0 18px;




    }




    .lp-plan-feat {




      list-style: none; padding: 0; margin: 0 0 24px;




      flex: 1;




    }




    .lp-plan-feat li {




      padding: 7px 0;




      font-size: 13px; font-weight: 500;




      color: rgba(220,228,242,0.85);




      display: flex; align-items: center; gap: 8px;




    }




    .lp-plan-feat li::before {




      content: '';




      width: 14px; height: 14px;




      flex-shrink: 0;




      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;




      opacity: .85;




    }




    .lp-plan-cta {




      padding: 13px;




      background: rgba(255,255,255,0.06);




      color: #fff;




      border: 1px solid rgba(255,255,255,0.18);




      border-radius: 50px;




      font-weight: 700; font-size: 13px;




      cursor: pointer;




      letter-spacing: .2px;




      transition: all .15s;




    }




    .lp-plan-cta:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.30); }




    .lp-plan-cta.primary {




      background: linear-gradient(135deg, #fff, #d8d8dc);




      color: #0a0a0d;




      border: none;




      box-shadow: 0 8px 24px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.4);




      font-weight: 800;




    }




    .lp-plan-cta.primary:hover { box-shadow: 0 10px 28px rgba(255,255,255,0.22), inset 0 1px 0 rgba(255,255,255,0.5); }




    .lp-pricing-note {




      text-align: center;




      font-size: 12px; font-weight: 500;




      color: rgba(220,228,242,0.45);




      margin-top: 28px;




    }









    /*  Final CTA  */




    .lp-final-cta { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }




    .lp-final-card {




      padding: 60px 32px;




      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));




      backdrop-filter: blur(20px);




      border: 1px solid rgba(255,255,255,0.12);




      border-radius: 28px;




      text-align: center;




      box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.10);




      position: relative;




      overflow: hidden;




    }




    .lp-final-card::before {




      content: '';




      position: absolute;




      top: -100px; left: 50%; transform: translateX(-50%);




      width: 400px; height: 400px;




      border-radius: 50%;




      background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);




      pointer-events: none;




    }




    .lp-final-card .lp-cta-primary { margin-top: 24px; }









    /*  Footer  */




    .lp-footer {




      margin-top: 40px;




      padding: 40px 20px 30px;




      border-top: 1px solid rgba(255,255,255,0.06);




      background: rgba(255,255,255,0.02);




    }




    .lp-footer-inner {




      max-width: 1100px; margin: 0 auto;




      display: flex; flex-direction: column; align-items: center; gap: 18px;




    }




    .lp-footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }




    .lp-footer-links a {




      color: rgba(220,228,242,0.6);




      text-decoration: none;




      font-size: 12px; font-weight: 500;




      transition: color .15s;




      cursor: pointer;




    }




    .lp-footer-links a:hover { color: #fff; }




    .lp-footer-fine {




      max-width: 640px;




      text-align: center;




      font-size: 11px; line-height: 1.6;




      color: rgba(220,228,242,0.45);




    }









    /*  Mobile responsive for Analytics page  */




    @media (max-width: 720px) {




      #analyticsPage .an-sidebar,




      #analyticsPage [class*="sidebar"] { display: none !important; }




      #analyticsPage .an-main,




      #analyticsPage [class*="an-main"] { margin-left: 0 !important; width: 100% !important; }




      #analyticsPage .an-topbar {




        padding: 10px 12px !important;




        position: sticky !important;




        top: 0 !important;




        z-index: 100 !important;




        background: rgba(10, 10, 13, 0.92) !important;




        backdrop-filter: blur(16px);




      }




      #analyticsPage .an-x-btn {




        position: fixed !important;




        top: 12px !important;




        right: 12px !important;




        z-index: 200 !important;




      }




      /* Stack any 2-column rows on mobile */




      #analyticsPage [style*="grid-template-columns"] {




        grid-template-columns: 1fr !important;




      }




      /* Allow horizontal scroll on wide tables */




      #analyticsPage .an-table-wrap, #analyticsPage [class*="table"] {




        overflow-x: auto;




      }




      #analyticsPage .an-scroll, #analyticsPage [class*="scroll"] {




        padding: 12px !important;




      }




      /* Tighter card padding on mobile */




      #analyticsPage [class*="an-card"], #analyticsPage .an-stat-card {




        padding: 14px !important;




      }




    }




  








      .nim-lp * { box-sizing: border-box; }




      .nim-lp { width: 100%; min-height: 100vh; }




      




      /* Navigation */




      .nim-nav { 




        position: fixed; top: 0; left: 0; right: 0; 




        display: flex; justify-content: space-between; align-items: center; 




        padding: 10px 5%; z-index: 100;




        background: rgba(9, 12, 18, 0.8); backdrop-filter: blur(16px);




        border-bottom: 1px solid rgba(255,255,255,0.05);




      }




      .nim-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }




      .nim-logo img { 




        height: 80px; 




        border-radius: 20px; 




        -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%); 




        mask-image: radial-gradient(circle at center, black 50%, transparent 100%); 




      }




      .nim-logo-text { font-size: 13px; font-weight: 700; letter-spacing: 5px; color: #a1a1aa; }




      .nim-nav-links { display: flex; gap: 40px; }




      .nim-nav-links a { color: #a1a1aa; text-decoration: none; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }




      .nim-nav-links a:hover { color: #fff; }




      .nim-nav-cta { background: #fff; color: #000; padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: transform 0.2s; }




      .nim-nav-cta:hover { transform: scale(1.05); }









      /* Hero */




      .nim-hero {




        padding: 160px 5% 100px;




        display: flex; align-items: center; justify-content: space-between; gap: 60px;




        max-width: 1400px; margin: 0 auto;




      }




      .nim-hero-text { flex: 1; max-width: 600px; }









      /* Hero entrance animation */




      @keyframes heroFadeUp {




        from { opacity: 0; transform: translateY(30px); filter: blur(8px); }




        to { opacity: 1; transform: translateY(0); filter: blur(0); }




      }




      .nim-pill { 




        display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.05); 




        border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; 




        font-size: 13px; color: #a1a1aa; margin-bottom: 24px; font-weight: 500; letter-spacing: 1px;




        animation: heroFadeUp 0.8s ease-out 0.1s both;




      }




      .nim-h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 700; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px;




        animation: heroFadeUp 0.9s ease-out 0.3s both;




      }




      .nim-h1 span { color: #7B7878; }




      .nim-lead { font-size: 18px; color: #a1a1aa; line-height: 1.6; margin-bottom: 40px; font-weight: 300;




        animation: heroFadeUp 0.9s ease-out 0.55s both;




      }




      .nim-hero-ctas { display: flex; gap: 16px; align-items: center;




        animation: heroFadeUp 0.9s ease-out 0.75s both;




      }




      .nim-btn-primary { background: linear-gradient(135deg, #ffffff, #a1a1aa); color: #000; padding: 16px 32px; border-radius: 50px; font-weight: 600; font-size: 16px; border: none; cursor: pointer; transition: transform 0.2s; }




      .nim-btn-primary:hover { transform: translateY(-3px); }




      .nim-btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 16px 32px; border-radius: 50px; font-weight: 600; font-size: 16px; cursor: pointer; transition: background 0.2s; }




      .nim-btn-secondary:hover { background: rgba(255,255,255,0.05); }




      




      .nim-hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }




      .nim-hero-visual img { 




        width: 100%; max-width: 650px; 




        border-radius: 40px;




        -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);




        mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);




        position: relative; z-index: 2; 




      }




      .nim-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%); z-index: 1; pointer-events: none; }




      .nim-hero-text { position: relative; z-index: 5; }




      .nim-hero-ctas button { position: relative; z-index: 6; }









      /* Section Common */




      .nim-section { padding: 120px 5%; max-width: 1400px; margin: 0 auto; }




      .nim-section-header { text-align: center; margin-bottom: 80px; }




      .nim-sh-tag { font-size: 14px; font-weight: 600; color: #7b7878; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }




      .nim-sh-title { font-size: 48px; font-weight: 700; line-height: 1.2; }




      




      /* Features Grid */




      .nim-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }




      .nim-feature-card { 




        background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); 




        padding: 40px; border-radius: 24px; transition: transform 0.3s, background 0.3s;




      }




      .nim-feature-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.04); }




      .nim-feat-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }




      .nim-feat-icon svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; }




      .nim-feature-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }




      .nim-feature-card p { font-size: 15px; color: #a1a1aa; line-height: 1.6; }









      /* How it Works */




      .nim-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }




      .nim-step { position: relative; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }




      .nim-step-num { position: absolute; top: -20px; left: 0; font-size: 40px; font-weight: 800; color: rgba(255,255,255,0.05); line-height: 1; }




      .nim-step h3 { font-size: 22px; margin-bottom: 16px; font-weight: 600; }




      .nim-step p { color: #a1a1aa; line-height: 1.6; font-size: 15px; }









      /* Stats/Trust Bar */




      .nim-trust { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; padding: 60px 5%; background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }




      .nim-trust-item { text-align: center; }




      .nim-trust-val { font-size: 48px; font-weight: 700; margin-bottom: 8px; background: linear-gradient(135deg, #fff, #7b7878); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }




      .nim-trust-lbl { font-size: 14px; color: #a1a1aa; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }









      /* Pricing */




      .nim-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }




      .nim-price-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 40px; border-radius: 24px; text-align: center; display: flex; flex-direction: column; }




      .nim-price-card.popular { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); position: relative; transform: scale(1.02); }




      .nim-pop-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #fff; color: #000; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 50px; text-transform: uppercase; }




      .nim-p-name { font-size: 20px; font-weight: 600; color: #a1a1aa; margin-bottom: 16px; }




      .nim-p-price { font-size: 48px; font-weight: 700; margin-bottom: 8px; }




      .nim-p-price span { font-size: 24px; vertical-align: top; margin-right: 4px; }




      .nim-p-cred { font-size: 16px; color: #fff; margin-bottom: 32px; font-weight: 500; }




      .nim-p-features { list-style: none; padding: 0; margin: 0 0 40px; text-align: left; }




      .nim-p-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #a1a1aa; font-size: 15px; }




      .nim-p-features li svg { stroke: #fff; width: 18px; height: 18px; flex-shrink: 0; }




      .nim-price-card button { margin-top: auto; width: 100%; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }




      .nim-price-card button.outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; }




      .nim-price-card button.outline:hover { background: rgba(255,255,255,0.05); }




      .nim-price-card button.solid { background: #fff; border: none; color: #000; }




      .nim-price-card button.solid:hover { opacity: 0.9; }









      /* Footer */




      .nim-footer { padding: 60px 5%; border-top: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }




      .nim-footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }




      .nim-footer-links a { color: #a1a1aa; text-decoration: none; font-size: 14px; transition: color 0.2s; }




      .nim-footer-links a:hover { color: #fff; }




      .nim-footer-copy { color: #555; font-size: 13px; max-width: 600px; line-height: 1.6; }









      @media (max-width: 900px) {




        .nim-hero { flex-direction: column; text-align: center; padding-top: 120px; }




        .nim-hero-text { max-width: 100%; }




        .nim-hero-ctas { justify-content: center; }




        .nim-nav-links { display: none; }




        .nim-price-card.popular { transform: none; }




        .nim-nav {
          padding: 8px 4%;
        }
        .nim-logo {
          gap: 8px;
        }
        .nim-logo img {
          height: 36px;
          border-radius: 10px;
        }
        .nim-logo-text {
          font-size: 9px;
          letter-spacing: 3px;
        }
        .nim-logo > div[style*="width:1px"],
        .nim-logo + div[style*="width:1px"] {
          height: 28px;
        }
        .nim-logo [style*="flex-direction:column"][style*="padding:6px 14px"],
        .nim-logo div:last-child {
          padding: 4px 8px;
          border-radius: 7px;
        }
        .nim-nav-cta {
          padding: 7px 14px;
          font-size: 12px;
        }




      }




    








    /* Forfeit button + estimator (placed inside Bot Settings card) */




    .se-stake-meta {




      margin-top: 10px;




      padding: 12px 14px;




      background: rgba(255, 255, 255, 0.04);




      backdrop-filter: blur(8px);




      border: 1px solid rgba(255, 255, 255, 0.08);




      border-radius: 12px;




      display: flex; flex-direction: column; gap: 8px;




      font-size: 12px; line-height: 1.5;




      color: rgba(220, 228, 242, 0.85);




    }




    .se-stake-meta.locked { border-color: rgba(255, 255, 255, 0.16); }




    .se-stake-meta .row { display: flex; align-items: center; gap: 8px; }




    .se-stake-meta .ic {




      width: 24px; height: 24px; border-radius: 7px;




      background: rgba(255, 255, 255, 0.10);




      display: inline-flex; align-items: center; justify-content: center;




      flex-shrink: 0; color: #fff;




    }




    .se-stake-meta .ic svg { width: 13px; height: 13px; }




    .se-stake-meta .lbl { font-weight: 600; color: rgba(220, 228, 242, 0.85); }




    .se-stake-meta .val { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }




    .se-stake-meta .hint { color: rgba(220, 228, 242, 0.55); font-weight: 500; font-size: 11px; }




    .se-forfeit-btn {




      margin-top: 4px;




      padding: 9px 14px;




      background: rgba(255, 107, 107, 0.10);




      color: #ff6b6b;




      border: 1px solid rgba(255, 107, 107, 0.30);




      border-radius: 10px;




      font-weight: 700; font-size: 12px;




      cursor: pointer;




      letter-spacing: .2px;




    }




    .se-forfeit-btn:hover { background: rgba(255, 107, 107, 0.18); }









    /* Stake input disabled state */




    input#settingsStake:disabled, input#botStake:disabled {




      opacity: .55;




      cursor: not-allowed;




    }









    /*  CHECKOUT / PURCHASE SCREEN  */




    #scCheckout {




      background: #0a0a0d;




      display: none;




      flex-direction: column;




      overflow: hidden;




    }




    #scCheckout.show { display: flex; }




    .ck-topbar {




      padding: 14px 16px;




      display: flex; align-items: center; gap: 12px;




      background: rgba(10, 10, 13, 0.85);




      backdrop-filter: blur(16px);




      border-bottom: 1px solid rgba(255, 255, 255, 0.08);




      flex-shrink: 0;




    }




    .ck-back {




      width: 36px; height: 36px;




      border-radius: 50%;




      background: rgba(255, 255, 255, 0.06);




      border: 1px solid rgba(255, 255, 255, 0.10);




      display: flex; align-items: center; justify-content: center;




      cursor: pointer; color: #fff;




      flex-shrink: 0;




    }




    .ck-back svg { width: 16px !important; height: 16px !important; }




    .ck-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }




    /* Mobile: single column. Desktop: full-width with content max'd to 720px so it




       feels like a real page, not a phone overlay. */




    .ck-scroll {




      flex: 1;




      overflow-y: auto;




      padding: 16px;




      width: 100%;




      max-width: 720px;




      margin: 0 auto;




      box-sizing: border-box;




    }




    .ck-topbar { width: 100%; max-width: 720px; margin: 0 auto; }




    /* Two-column layout on desktop: input + plan picker on left, summary on right */




    @media (min-width: 760px) {




      .ck-scroll { max-width: 1000px; }




      .ck-grid {




        display: grid;




        grid-template-columns: 1.1fr 1fr;




        gap: 14px;




        align-items: start;




      }




    }




    /* Constrain ALL svgs inside the checkout — prevents the giant-arrow bug */




    #scCheckout svg { max-width: 24px; max-height: 24px; }




    .ck-card {




      padding: 22px;




      background: rgba(255, 255, 255, 0.04);




      backdrop-filter: blur(14px);




      border: 1px solid rgba(255, 255, 255, 0.10);




      border-radius: 18px;




      margin-bottom: 12px;




      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);




    }




    .ck-card.hero {




      background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));




      text-align: center;




    }




    .ck-plan-name {




      font-size: 13px; font-weight: 700;




      color: rgba(220, 228, 242, 0.85);




      text-transform: uppercase; letter-spacing: 1px;




      margin-bottom: 8px;




    }




    .ck-price {




      font-size: 56px; font-weight: 900;




      letter-spacing: -2.5px;




      color: #fff;




      line-height: 1;




      font-variant-numeric: tabular-nums;




    }




    .ck-price .cur { font-size: 26px; font-weight: 700; color: rgba(220,228,242,0.55); vertical-align: top; margin-right: 2px; }




    .ck-credits {




      margin-top: 12px;




      font-size: 16px; font-weight: 700;




      color: #fff;




    }




    .ck-credits-sub {




      font-size: 12px;




      color: rgba(220, 228, 242, 0.55);




      margin-top: 4px;




    }




    .ck-row {




      display: flex; justify-content: space-between; align-items: center;




      padding: 12px 0;




      border-bottom: 1px solid rgba(255, 255, 255, 0.06);




      font-size: 13px;




    }




    .ck-row:last-child { border-bottom: none; }




    .ck-row .l { color: rgba(220, 228, 242, 0.65); font-weight: 500; }




    .ck-row .v { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }




    .ck-section-h { font-size: 11px; font-weight: 800; color: rgba(220,228,242,0.55); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; }




    .ck-feat { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; color: rgba(220, 228, 242, 0.85); font-weight: 500; }




    .ck-feat svg { color: #7ed957; flex-shrink: 0; margin-top: 2px; width: 14px; height: 14px; }




    .ck-pay-btn {




      width: 100%;




      padding: 16px;




      background: linear-gradient(135deg, #fff, #d8d8dc);




      color: #0a0a0d;




      border: none; border-radius: 50px;




      font-weight: 800; font-size: 15px;




      cursor: pointer;




      box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);




      letter-spacing: .2px;




      display: flex; align-items: center; justify-content: center; gap: 8px;




      margin-top: 12px;




    }




    .ck-pay-btn:hover { box-shadow: 0 14px 38px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6); }




    .ck-pay-btn svg { width: 16px !important; height: 16px !important; }




    .ck-secure {




      display: flex; align-items: center; justify-content: center; gap: 8px;




      margin-top: 10px;




      font-size: 11px; color: rgba(220, 228, 242, 0.45); font-weight: 500;




    }




    .ck-secure svg { color: #7ed957; width: 14px; height: 14px; }




    .ck-feat svg { width: 14px !important; height: 14px !important; }









    /* Risking-stake input panel */




    .ck-risk-input {




      display: flex; align-items: center; gap: 10px;




      padding: 14px 16px;




      background: rgba(255,255,255,0.06);




      border: 1px solid rgba(255,255,255,0.14);




      border-radius: 14px;




      margin-bottom: 8px;




    }




    .ck-risk-input .cur { font-size: 22px; font-weight: 700; color: rgba(220,228,242,0.6); }




    .ck-risk-input input {




      flex: 1;




      background: transparent !important;




      border: none !important;




      color: #fff !important;




      font-size: 28px; font-weight: 800;




      letter-spacing: -.5px;




      font-variant-numeric: tabular-nums;




      outline: none;




      padding: 0;




      box-shadow: none !important;




    }




    .ck-risk-helper {




      display: grid; grid-template-columns: 1fr 1fr; gap: 10px;




      margin: 12px 0 4px;




    }




    .ck-risk-helper > div {




      padding: 10px 12px;




      background: rgba(255,255,255,0.03);




      border: 1px solid rgba(255,255,255,0.08);




      border-radius: 12px;




    }




    .ck-risk-helper .l { font-size: 10px; font-weight: 700; color: rgba(220,228,242,0.55); text-transform: uppercase; letter-spacing: .8px; }




    .ck-risk-helper .v { font-size: 18px; font-weight: 800; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; }




    .ck-plan-picker {




      display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;




      margin-top: 12px;




    }




    .ck-plan-pick {




      padding: 14px 8px;




      background: rgba(255,255,255,0.04);




      border: 1px solid rgba(255,255,255,0.10);




      border-radius: 14px;




      text-align: center;




      cursor: pointer;




      transition: all .15s;




    }




    .ck-plan-pick.active {




      background: rgba(255,255,255,0.12);




      border-color: rgba(255,255,255,0.40);




      box-shadow: 0 8px 24px rgba(255,255,255,0.10), inset 0 1px 0 rgba(255,255,255,0.18);




    }




    .ck-plan-pick .pn { font-size: 11px; font-weight: 700; color: rgba(220,228,242,0.85); text-transform: uppercase; letter-spacing: .8px; }




    .ck-plan-pick .pp { font-size: 18px; font-weight: 900; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; }




    .ck-plan-pick .pc { font-size: 10px; color: rgba(220,228,242,0.55); margin-top: 2px; font-weight: 600; }




  








    .se-rrpop {




      position: fixed;




      top: 70px;




      left: 50%;




      transform: translateX(-50%) translateY(-30px);




      width: calc(100% - 32px);




      max-width: 380px;




      background: rgba(20, 20, 26, 0.92);




      backdrop-filter: blur(24px);




      -webkit-backdrop-filter: blur(24px);




      border: 1px solid rgba(255, 255, 255, 0.14);




      border-radius: 18px;




      padding: 16px 18px;




      display: none;




      align-items: center;




      gap: 14px;




      cursor: pointer;




      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);




      z-index: 9999;




      opacity: 0;




      transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);




      font-family: Inter, -apple-system, sans-serif;




      color: #fff;




    }




    .se-rrpop.show { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); }




    .se-rrpop::before {




      content: '';




      position: absolute;




      inset: -2px;




      border-radius: 18px;




      filter: blur(22px);




      opacity: 0;




      transition: opacity .3s ease;




      z-index: -1;




      pointer-events: none;




    }




    .se-rrpop.win::before  { background: rgba(126, 217, 87, 0.55); opacity: 1; }




    .se-rrpop.bust::before { background: rgba(255, 107, 107, 0.55); opacity: 1; }




    .se-rrpop.win { border-color: rgba(126, 217, 87, 0.40); }




    .se-rrpop.bust { border-color: rgba(255, 107, 107, 0.40); }




    .se-rrpop .ic {




      width: 44px; height: 44px;




      border-radius: 14px;




      display: flex; align-items: center; justify-content: center;




      flex-shrink: 0;




      font-weight: 800; font-size: 20px;




    }




    .se-rrpop.win  .ic { background: rgba(126, 217, 87, 0.18); color: #7ed957; box-shadow: 0 0 16px rgba(126, 217, 87, 0.35); }




    .se-rrpop.bust .ic { background: rgba(255, 107, 107, 0.18); color: #ff6b6b; box-shadow: 0 0 16px rgba(255, 107, 107, 0.35); }




    .se-rrpop .info { flex: 1; min-width: 0; }




    .se-rrpop .info .t {




      font-size: 13px;




      font-weight: 800;




      letter-spacing: .3px;




      text-transform: uppercase;




    }




    .se-rrpop.win  .info .t { color: #7ed957; }




    .se-rrpop.bust .info .t { color: #ff6b6b; }




    .se-rrpop .info .v {




      font-size: 22px;




      font-weight: 800;




      letter-spacing: -.4px;




      margin-top: 2px;




      font-variant-numeric: tabular-nums;




      color: #fff;




    }




    .se-rrpop .info .s {




      font-size: 11px;




      color: rgba(220, 228, 242, 0.65);




      margin-top: 3px;




      font-weight: 500;




    }




    .se-rrpop .x {




      position: absolute;




      top: 8px; right: 10px;




      width: 22px; height: 22px;




      border-radius: 50%;




      display: flex; align-items: center; justify-content: center;




      color: rgba(255, 255, 255, 0.5);




      font-size: 14px;




      font-weight: 700;




      cursor: pointer;




      background: transparent;




      border: none;




    }




    .se-rrpop .x:hover { color: #fff; background: rgba(255,255,255,0.06); }
    .se-rrpop .x::before { content: '\00D7'; font-size: 16px; line-height: 1; }




    .se-rrpop .arrow { color: rgba(220, 228, 242, 0.55); flex-shrink: 0; }




  








    /* 
       PRIVACY & REFERRAL HUB ADDITIONS 
    */
    .tb-eye-toggle {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--sub);
      border-radius: 50%;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      margin-left: 4px;
    }
    .tb-eye-toggle:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
      transform: scale(1.1);
    }
    .tb-balance.is-hidden {
      filter: blur(5px);
      opacity: 0.6;
      user-select: none;
      pointer-events: none;
    }

    #scReferral {
      background: var(--bg);
    }
    .ref-scroll {
      padding: 16px;
      flex: 1;
      overflow-y: auto;
    }
    .ref-hero-card {
      background: linear-gradient(135deg, rgba(59, 127, 245, 0.1), rgba(31, 200, 106, 0.05));
      border: 1px solid var(--b1);
      border-radius: 16px;
      padding: 24px;
      text-align: center;
      margin-bottom: 20px;
      position: relative;
      overflow: hidden;
    }
    .ref-hero-card::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
      pointer-events: none;
    }
    .ref-hero-card h3 {
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 8px;
      color: #fff;
    }
    .ref-hero-card p {
      font-size: 13px;
      color: var(--sub);
      line-height: 1.5;
    }

    .ref-stat-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 24px;
    }
    .ref-stat-box {
      background: var(--s1);
      border: 1px solid var(--b1);
      border-radius: 12px;
      padding: 16px;
      text-align: center;
    }
    .ref-stat-val {
      font-size: 24px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 4px;
      font-family: 'Space Grotesk', sans-serif;
    }
    .ref-stat-lbl {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--sub);
      font-weight: 700;
    }

    .ref-link-section {
      margin-bottom: 32px;
    }
    .ref-link-box {
      display: flex;
      background: var(--s2);
      border: 1px solid var(--b1);
      border-radius: 12px;
      padding: 4px;
      gap: 4px;
      margin-top: 8px;
    }
    .ref-link-box input {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text);
      font-size: 13px;
      padding: 8px 12px;
      font-family: monospace;
      outline: none;
    }
    .ref-link-box button {
      background: var(--blue);
      color: #fff;
      padding: 0 16px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      transition: opacity 0.2s;
    }
    .ref-link-box button:active {
      opacity: 0.7;
    }

    .ref-guide-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--sub);
      font-weight: 800;
      margin-bottom: 16px;
    }
    .ref-step {
      display: flex;
      gap: 16px;
      margin-bottom: 20px;
    }
    .ref-step-n {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: var(--s3);
      border: 1px solid var(--b1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 800;
      color: var(--blue);
      flex-shrink: 0;
    }
    .ref-step-c h5 {
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }
    .ref-step-c p {
      font-size: 12px;
      color: var(--sub);
      line-height: 1.5;
    }
    
    .sc-topbar-close {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--s2);
      border: 1px solid var(--b1);
      border-radius: 8px;
      color: var(--sub);
      cursor: pointer;
    }

    @media (max-width: 480px) {
      .ref-hero-card { padding: 20px 16px; }
      .ref-stat-val { font-size: 20px; }
    }

    /* Premium Referral Hub Refinement */
    #scReferral .sc-topbar {
      background: rgba(15, 20, 30, 0.7);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 4px 20px rgba(255, 255, 255, 0.03);
      position: relative;
    }
    #scReferral .sc-topbar::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 10%;
      right: 10%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }
    .ref-hero-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      padding: 40px 24px;
    }
    .ref-hero-card h3 {
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: 22px;
    }
    .ref-link-box button {
      background: #ffffff !important;
      color: #000000 !important;
      text-transform: uppercase;
      font-weight: 800;
      letter-spacing: 1px;
    }
    .ref-link-box button:hover {
      background: #e0e0e0 !important;
    }

/* ── Auto-Trade Panel ──────────────────────────────────────────────────────── */
    #scAutoTrade { background: var(--bg); }
    .at-scroll {
      padding: 16px;
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .at-low-banner {
      background: rgba(255, 61, 113, 0.1);
      border: 1px solid var(--fall);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 12px;
      color: var(--fall);
      font-weight: 600;
      text-align: center;
      line-height: 1.6;
    }
    .at-card {
      background: var(--s1);
      border: 1px solid var(--b1);
      border-radius: 12px;
      padding: 16px;
    }
    .at-section-title {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--sub);
      margin-bottom: 14px;
    }
    .at-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .at-row + .at-row { margin-top: 12px; }
    .at-label-group { flex: 1; margin-right: 12px; }
    .at-label { font-size: 13px; font-weight: 600; color: var(--text); }
    .at-sub { font-size: 11px; color: var(--sub); margin-top: 2px; }
    .at-toggle {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
      flex-shrink: 0;
    }
    .at-toggle input { opacity: 0; width: 0; height: 0; }
    .at-slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background: var(--s2);
      border: 1px solid var(--b1);
      border-radius: 24px;
      transition: background .2s;
    }
    .at-slider::before {
      content: '';
      position: absolute;
      width: 18px;
      height: 18px;
      left: 2px;
      top: 2px;
      background: var(--sub);
      border-radius: 50%;
      transition: transform .2s, background .2s;
    }
    .at-toggle input:checked + .at-slider {
      background: rgba(31, 200, 106, 0.2);
      border-color: var(--rise);
    }
    .at-toggle input:checked + .at-slider::before {
      transform: translateX(20px);
      background: var(--rise);
    }
    .at-time {
      background: var(--s2);
      border: 1px solid var(--b1);
      border-radius: 8px;
      color: var(--text);
      font-size: 13px;
      font-family: 'Space Grotesk', sans-serif;
      padding: 6px 10px;
      width: 110px;
      text-align: center;
    }
    .at-tz-note {
      font-size: 10px;
      color: var(--muted);
      margin-top: 10px;
      text-align: center;
      letter-spacing: 0.5px;
    }
    .at-stake-wrap {
      display: flex;
      align-items: center;
      gap: 4px;
      background: var(--s2);
      border: 1px solid var(--b1);
      border-radius: 8px;
      padding: 4px 10px;
    }
    .at-stake-wrap > span { color: var(--sub); font-size: 13px; }
    .at-stake {
      background: transparent;
      border: none;
      color: var(--text);
      font-size: 13px;
      font-family: 'Space Grotesk', sans-serif;
      width: 68px;
      outline: none;
    }
    .at-credit-cost {
      font-size: 11px;
      color: var(--accent);
      font-weight: 600;
      margin-top: 10px;
      text-align: right;
    }
    .at-next-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 7px 0;
      border-bottom: 1px solid var(--b1);
    }
    .at-next-row:last-child { border-bottom: none; }
    .at-run-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--sub);
      font-weight: 700;
    }
    .at-run-time {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      font-family: 'Space Grotesk', sans-serif;
    }
    .at-times-container { display: flex; flex-direction: column; }
    .at-add-slot-btn {
      width: 100%; padding: 10px; background: transparent;
      border: 1px dashed var(--sub); color: var(--sub);
      border-radius: 5px; font-size: 11px; font-weight: 700;
      text-transform: uppercase; cursor: pointer; transition: all .2s;
      margin-bottom: 12px; font-family: 'Syne', sans-serif; letter-spacing: 1px;
    }
    .at-add-slot-btn:hover { border-color: var(--accent); color: var(--accent); }
    .at-save-btn {
      width: 100%;
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: 12px;
      padding: 14px;
      font-size: 14px;
      font-weight: 800;
      font-family: 'Syne', sans-serif;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: opacity .15s;
    }
    .at-save-btn:active { opacity: 0.8; }
    .at-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .at-runs-log { display: flex; flex-direction: column; }
    .at-runs-empty {
      font-size: 12px;
      color: var(--muted);
      text-align: center;
      padding: 14px 0;
    }
    .at-run-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 0;
      border-bottom: 1px solid var(--b1);
    }
    .at-run-item:last-child { border-bottom: none; }
    .at-run-info { flex: 1; }
    .at-run-date { font-size: 10px; color: var(--sub); letter-spacing: 0.5px; }
    .at-run-detail { font-size: 12px; color: var(--text); font-weight: 600; margin-top: 2px; }
    .at-badge {
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-left: 8px;
      flex-shrink: 0;
    }
    .at-badge.won     { background: rgba(31,200,106,.15); color: var(--rise); }
    .at-badge.blown   { background: rgba(255,61,113,.12); color: var(--fall); }
    .at-badge.skipped { background: var(--s2); color: var(--muted); }
    .at-badge.running { background: rgba(59,127,245,.12); color: #3b7ff5; }
    .at-badge.error   { background: rgba(255,165,0,.1);  color: #f5a623; }
    .at-select {
      background: var(--s2);
      border: 1px solid var(--b1);
      border-radius: 8px;
      color: var(--text);
      font-size: 13px;
      font-family: 'Space Grotesk', sans-serif;
      padding: 6px 10px;
      width: 160px;
      outline: none;
      cursor: pointer;
    }


    /* === History Table Layout === */

    /* Scroll area padding reset */
    .hist-scroll { padding: 0 !important; }

    /* Sticky column header */
    .htbl-head {
      display: grid;
      grid-template-columns: 1.5fr 1.5fr 1fr 1.5fr 1.5fr 28px;
      align-items: center;
      gap: 0 8px;
      padding: 10px 16px 10px 20px;
      background: var(--bg);
      border-bottom: 1px solid rgba(255,255,255,0.07);
      position: sticky;
      top: 0;
      z-index: 2;
    }

    .htbl-head span {
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.9px;
      color: var(--sub);
      white-space: nowrap;
    }

    .htbl-head span::after {
      content: " ⇅";
      opacity: 0.45;
      font-size: 8px;
    }

    .htbl-head span:last-child::after { content: ""; }

    /* Each data row — clean, no card border */
    .htbl-row {
      position: relative;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      background: transparent;
      transition: background 0.15s;
    }

    .htbl-row:hover { background: rgba(255,255,255,0.03); }
    .htbl-row--open { background: rgba(255,255,255,0.025); }

    /* Thin colored left accent with glow */
    .htbl-accent {
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 3px;
    }

    /* Cells row — same grid as header */
    .htbl-cells {
      display: grid;
      grid-template-columns: 1.5fr 1.5fr 1fr 1.5fr 1.5fr 28px;
      align-items: center;
      gap: 0 8px;
      padding: 12px 16px 12px 20px;
      cursor: pointer;
      user-select: none;
    }

    .htbl-mode-col {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }

    .htbl-ref {
      font-size: 11px;
      color: var(--sub);
      font-family: monospace;
    }

    .htbl-mkt {
      font-size: 11px;
      color: var(--text);
      font-family: monospace;
    }

    .htbl-time {
      font-size: 11px;
      color: var(--sub);
      font-family: monospace;
    }

    .htbl-wl {
      font-size: 11px;
      color: var(--sub);
      font-family: monospace;
    }

    .htbl-outcome { font-size: 11px; font-weight: 600; }
    .htbl-win  { color: #22c55e; }
    .htbl-loss { color: #ef4444; }

    .htbl-pnl { font-size: 13px; font-weight: 800; font-family: monospace; text-align: right; }
    .htbl-pos { color: #22c55e; }
    .htbl-neg { color: #ef4444; }

    .htbl-chev {
      color: var(--dim);
      transition: transform 0.2s;
      justify-self: center;
    }

    /* Expanded detail panel */
    .htbl-detail {
      border-top: 1px solid rgba(255,255,255,0.04);
      padding: 8px 20px 10px 20px;
      background: rgba(0,0,0,0.12);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .htbl-detail-row {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 3px 0;
    }

    .htbl-dl { font-size: 10px; font-weight: 700; color: var(--sub); font-family: monospace; min-width: 22px; }
    .htbl-ds { font-size: 10px; color: var(--sub); font-family: monospace; }
    .htbl-da { font-size: 11px; font-weight: 700; font-family: monospace; }

    /* suppress old nhist/round-card rules */
    .nhist-card, .nhist-body, .nhist-row, .nhist-contract,
    .nhist-mode-badge, .nhist-pnl, .nhist-chips, .nhist-chip,
    .nhist-steps, .nhist-step, .round-card { display: none !important; }

    /* hide all old nhist rules that may still be present */
    .nhist-card, .nhist-body, .nhist-row,
    .nhist-contract, .nhist-mode-badge, .nhist-time,
    .nhist-pnl, .nhist-chips, .nhist-chip,
    .nhist-steps, .nhist-step { display: none !important; }

    /* ── Fix: heatmap gap between chart and bottom bar ──────────── */
    /* Make chart-section a flex column so children can stretch     */
    .chart-section {
      display: flex !important;
      flex-direction: column !important;
    }
    /* Let the heatmap fill all remaining height in the section     */
    #nimbusDigitHeatmap {
      flex: 1 !important;
      height: auto !important;
      min-height: 200px !important;
      box-sizing: border-box !important;
    }
    /* Let the heatmap grid fill the full height of the container   */
    #nimbusDigitHeatmap .heatmap-grid {
      height: 100% !important;
      align-content: stretch !important;
    }


. m a n u a l - t r a d e - b t n : h o v e r   {   f i l t e r :   b r i g h t n e s s ( 0 . 9 ) ;   } 
 . m a n u a l - t r a d e - b t n : a c t i v e   {   f i l t e r :   b r i g h t n e s s ( 0 . 8 ) ;   } 
 
 
 