.bginputlogin {
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    padding: 10px 5px;
    padding-top: 10px;
    box-shadow: none;
    background: black;
    background-image: var(--themeColor);
    border-radius: 5px;
    border: 1px solid #f5bd70;
    color: #ffebcd;
    box-shadow: 0 0 5px #000;
  }

  .inmain-card {
    background-image: var(--profileHeader);
    background-size: cover;
    border-radius: 5px;
  }


  .golden-btn {
    border: 1px solid #ffe18c;
    box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(110 80 20 / 40%), inset 0 -1px 2px 1px #8b4208, inset 0 -1px 1px 2px #fae385;
    /* สีปุ่มเติมเงิน: ตั้งจากหลังบ้าน (--depositBtnBg/Text); ไม่ตั้ง = ค่าโลหะเดิม */
    background-image: var(--depositBtnBg, linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07));
    border: 1px solid #a55d07;
    color: var(--depositBtnText, #783205);
  }

  .silver-btn {
    display: inline-block;
    outline: none;
    box-sizing: border-box;
    border-radius: 0.2em;
    height: auto;
    line-height: 1.9em;
    text-transform: uppercase;
    padding: 3px 0;
    box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(110 80 20 / 40%), inset 0 -1px 2px 1px #494949, inset 0 -1px 1px 2px #bebebe;
    /* สีปุ่มถอนเงิน: ตั้งจากหลังบ้าน (--withdrawBtnBg/Text); ไม่ตั้ง = ค่าโลหะเดิม */
    background-image: var(--withdrawBtnBg, linear-gradient(160deg, #525252, #8d8a83, #d8d8d6, #6b6b6b, #383838));
    border: 1px solid #69645d;
    color: var(--withdrawBtnText, #303030);
    text-shadow: 0 2px 2px #bebebe;
    cursor: pointer;
    transition: all .2sease-in-out;
    background-size: 100% 100%;
    background-position: 50%;
  }

  /* ตัวเลขเครดิตใน toplogin — สี + เส้นขอบ (stroke) ตั้งจากหลังบ้าน กันตัวหนังสือกลืน BG */
  .toplogin .creditbalance {
    color: var(--creditColor, rgb(238, 207, 122));
    -webkit-text-stroke: 4px var(--creditStroke, rgba(0, 0, 0, .85));
    paint-order: stroke fill;
  }


  .column {
    padding: 0px;
  }


  .route-view.has-top {
    margin-top: 67px;
  }

  .route-view {
    padding: 0px;
  }

  .box-wallet {
    border-radius: 0px;
  }

  .topbox {
    background: #222;
    margin-top: 10px;
    border-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .ctslide {
    background-color: #111;
    border: 1px solid #555;
    padding: 5px 10px;
    margin-bottom: 0;
    width: 100%;
    border-radius: 5px;
    overflow-x: hidden;
    color: white;
  }


  .ctslide span {
    -webkit-animation: marquee 10s linear infinite;
    white-space: nowrap;
    display: inline-block;
  }

  /* Animation marquee */
  @-webkit-keyframes marquee {
    0% {
      transform: translateX(100%);
    }

    100% {
      transform: translateX(-100%);
    }
  }

  @keyframes marquee {
    0% {
      transform: translateX(100%);
    }

    100% {
      transform: translateX(-100%);
    }
  }


  .coming-soon-container {
    /* display: flex; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    height: 100%;
  }

  .coming-soon-container img {
    width: 100px;
    position: relative;
    text-transform: uppercase;
    text-align: center;
    top: -15px;
  }

  /* แถวแรงค์ + ชื่อผู้ใช้ (บนสุดของการ์ด) — ทำเป็น pill ขาวแบบ .profile ของ UI 1
     (อ้างอิง app.0b4d013a.css: .profile { background:#fff; border-radius:30px; height:30px }
      + .profile .icon { width/height:45px; border-radius:50%; position:absolute })

     display:flex + width:fit-content แทน inline-flex โดยตั้งใจ:
     col แม่เป็น text-center จนถึง lg (text-lg-left) ถ้าเป็น inline-flex จะโดนจัดกลาง
     บนมือถือ; flex เป็น block-level เลยไม่โดน text-align → ชิดซ้ายทุกจอ
     ส่วนตัวเลขเครดิตด้านล่างยังกลางเหมือนเดิม (ไม่แตะ)

     พื้นขาวทำให้ text-light/text-warning เดิมอ่านไม่ออก → บังคับเป็นสีเข้มเฉพาะใน pill
     ⚠️ ต้องใช้ !important เพราะ .text-light/.text-warning ของ Bootstrap เป็น !important
        ถ้าไม่ใส่ ":" จะเป็นขาวบนขาว (หายไปเลย) และชื่อจะเป็นเหลืองทองบนขาว (อ่านยาก) */
  .inmain-card > .w-100 > .text-light {
    position: relative;
    display: flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    height: 30px;
    /* padding ซ้าย 48px = เว้นที่ให้รูปแรงค์ที่ absolute ทับอยู่ */
    padding: 0 20px 0 48px;
    border-radius: 30px;
    background: #fff;
    color: #000 !important;
    text-shadow: none;
    /* ชื่อยาวต้องไม่ตัดบรรทัด ไม่งั้นข้อความสูงเกิน 30px แล้วล้นออกนอก pill
       ⚠️ ห้ามใส่ overflow:hidden ตรงนี้ — จะไปตัดหัว/ท้ายรูปแรงค์ที่ตั้งใจให้ล้นขอบ pill
       การตัดข้อความยาวทำที่ .username แทน */
    white-space: nowrap;
  }

  .inmain-card > .w-100 > .text-light .username {
    color: #000 !important;
    /* min-width:0 จำเป็นสำหรับ flex item ไม่งั้น ellipsis ไม่ทำงาน (default คือ min-width:auto) */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* กรอบรูปแรงค์ — ล้นขอบซ้ายของ pill เหมือน .profile .icon ของ UI 1
     ทำ <a> เป็นตัว absolute แทนตัว <img> เพื่อใช้เป็นที่วาง "แสงเรืองหลังรูป"
     (radial-gradient อยู่ข้างหลัง ส่วนตัวรูปลอยอยู่ข้างหน้า) */
  .inmain-card > .w-100 > .text-light > a {
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle,
      rgba(255, 208, 96, 0.55) 0%,
      rgba(255, 170, 40, 0.22) 55%,
      rgba(255, 170, 40, 0) 72%);
  }

  /* object-fit:contain = ย่อให้เห็นรูปเต็มใบเสมอ ไม่ครอป ไม่ว่าสัดส่วนรูปที่แอดมินอัปจะเป็นแบบไหน */
  .inmain-card > .w-100 > .text-light .rankingImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rankBadgeGlow 2.4s ease-in-out infinite;
  }

  /* เรืองแสงทอง เต้นช้า ๆ — drop-shadow เกาะตามรูปทรงจริงของรูป (ไม่ใช่กรอบสี่เหลี่ยม) */
  @keyframes rankBadgeGlow {
    0%, 100% {
      filter: drop-shadow(0 0 3px rgba(255, 205, 90, 0.75)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
    }
    50% {
      filter: drop-shadow(0 0 9px rgba(255, 220, 130, 1)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
    }
  }

  /* เคารพการตั้งค่าเครื่องที่ขอลดการเคลื่อนไหว — คงแสงไว้แต่ไม่เต้น */
  @media (prefers-reduced-motion: reduce) {
    .inmain-card > .w-100 > .text-light .rankingImage {
      /* animation: none; */
      filter: drop-shadow(0 0 5px rgba(255, 205, 90, 0.85)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
    }
  }