@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    font-family: "Rubik", sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background: #0a0a0f;
        background: url(imgs/bghome.png);
    background-position: 50%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #e4e4e7;
    overflow-x: hidden;
}


.logo{
    width: 11em;
    max-width: 100%;
    transform: translateX(-20px);
}

.logo-small{
        width: 1em;
    max-width: 100%;
    transform: translateX(-20px);
}



.profile-container {
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background:transparent;
    user-select: none;
    gap: 12px;
    height: 50px;
    min-width: 170px;
    max-width: 200px;
    padding: 0 20px;
    box-sizing: border-box;
    /* Border glow effect with rounded corners */
    position: relative;
    border-radius: 12px;

}


        .profile-container .userthumb {
            width: 45px;
            height: 45px;
            flex-shrink: 0;
        }

        .profile-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: left;
            gap: 3px;
            flex: 1;
            height: 100%;
        }

        .profile-info h1 {
            margin: 0;
            font-size: 0.5em;
            font-weight: 600;
            line-height: 1.1;
        }

        .profile-info p {
            margin: 0;
            font-size: 0.7em;
            opacity: 0.8;
            font-weight: 400;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 4px;
        }

        .level-bar {
            width: 100%;
            height: 4px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 2px;
        }

        .level-progress {
            height: 100%;
            background-color: rgba(255, 255, 255, 0.6);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .profile-info p img {
            width: 12px;
            height: 12px;
            user-select: none;
            flex-shrink: 0;
        }

            .dropdown-container {
            position: relative;
        }

.dropdown-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px; /* spacing between icon and text */
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-btn svg {
  width: 16px;
  height: 16px;
  fill: white; /* override black fill */
  transition: transform 0.2s ease;
}


   .dropdown-menu {
  position: absolute;
  top: 100%;
  right: -1vw;
  padding: 10px;
  min-width: 120px;
  border-radius: 8px;
  z-index: 1000;

  /* Gradient border */
  border: 1px solid transparent;
  background:
    linear-gradient(#171720, #171720) padding-box,
    linear-gradient(30deg, transparent, #242431) border-box;

  /* Fade/slide animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown-menu a{
    text-decoration: none;
}


        .dropdown-menu svg{
            fill: white;
        }

        .dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(10px);
        }

        .dropdown.show .dropdown-btn svg {
    transform: rotate(180deg);
    fill: rgb(172, 172, 172);
}




 .dropdown-item {
    display: flex;
    flex-direction: row;
    align-items: center; /* vertically center */
    justify-content: center; /* horizontally center content */
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    font-size: 0.45em;
    font-weight: 500;
    transition: all 0.1s ease;
    gap: 8px; /* optional: spacing between icon and text */
}

.dropdown-item svg {
    width: 16px;
    height: 16px; /* make sure height matches width */
    flex-shrink: 0; /* prevents SVG from shrinking */
}

.dropdown-item img {
    width: 16px;
    height: 16px; /* make sure height matches width */
    flex-shrink: 0; /* prevents SVG from shrinking */
}


        .dropdown-item:hover {
            background-color: rgba(0, 0, 0, 0.082);
        }



          .wallet-container {
            display: flex;
            align-items: center;
            gap: 0;
            max-width: 250px;
        }

        .balance-section {
            display: flex;
            align-items: center;
          background-color: rgba(54, 54, 54, 0.144);
            padding: 10px 20px;
            border-radius: 6px;
            gap: 8px;
            color: white;
            font-size: .5em;
            height: 45px;
            box-sizing: border-box;
             border: none;
        }

       .coin-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .balance-amount {
            font-weight: 500 !important;
            color: rgb(172, 172, 172);
        }



.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 100px;
  height: 40px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;

  /* Gradient border + solid background */
  background:
    linear-gradient(#0099ff, #0099ff) padding-box,
    linear-gradient(180deg, transparent, #4ab7ff) border-box;
}

.button:disabled{
    filter: brightness(0.7);
    cursor: not-allowed;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1em;
}

.checkbox input[type="checkbox"] {
  /* Remove margin-top and let flexbox handle alignment */
  margin: 0;
  padding: 0;
  /* Reset appearance first */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Box sizing for consistent dimensions */
  box-sizing: border-box;
  /* Set dimensions */
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  /* Prevent shrinking */
  flex-shrink: 0;
  cursor: pointer;
  /* Remove background and border radius */
  background: transparent;
  border: 1px solid #0099ff;
  border-radius: 4px;
  transition: all 0.1s;
}


.checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #000;
  font-weight: bold;
}
.checkbox input[type="checkbox"]:checked {
  background: #0099ff;
}

.checkbox label {
  line-height: 1.4;
  font-weight: 500;
  font-size: .7em;
  cursor: pointer;
  /* Remove any default margins that might affect alignment */
  margin: 0;
}

.checkbox a{
      color:#0099ff;
  text-decoration: none;
}

.button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.button:hover {
   transform:  scale(0.95);
}

.wordsDiv {
    display: flex;
    flex-direction: row;
    gap: 3px;
    align-items: center; /* Fix vertical alignment */
}


.wordsDiv svg{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.grey{
border: none;
    background: #6a6a6b ;
    box-shadow: none;
}

.grey:hover{
    border: none;
    background: #575757 ;
    box-shadow: none;
}




.copyButton {
  background-repeat: no-repeat;
  background-size: 16px 16px;
  width: 25px !important;
  background-color: transparent;
  background-position: center;
  border: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}



.bg-pad{
    background-color: #0f0f16;
    border-radius: 8px;
    padding: 10px;
}

.clickable {
    cursor: pointer;
}


[data-tooltip] {
            position: relative;
        }

        [data-tooltip]:hover::before {
            content: attr(data-tooltip);
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 8px;
            padding: 8px 12px;
            background: rgba(29, 29, 29, 0.9);
            color: white;
            font-size: 14px;
            font-weight: 500;
            border-radius: 8px;
            white-space: nowrap;
           z-index: 99999;
            opacity: 0;
            animation: tooltipFadeIn 0.2s ease forwards;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        [data-tooltip]:hover::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: -1px;
            border: 6px solid transparent;
            z-index: 1001;
            opacity: 0;
            animation: tooltipFadeIn 0.2s ease forwards;
        }

        @keyframes tooltipFadeIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-5px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }


        .space-x-1 > * + * {
  margin-left: 0.25rem; /* 4px */
}

.space-x-2 > * + * {
  margin-left: 0.5rem; /* 8px */
}

.space-x-3 > * + * {
  margin-left: 0.75rem; /* 12px */
}

.space-x-4 > * + * {
  margin-left: 1rem; /* 16px */
}

.space-x-5 > * + * {
  margin-left: 1.25rem; /* 20px */
}

.space-x-6 > * + * {
  margin-left: 1.5rem; /* 24px */
}


/* Enhanced Header */
header {
    background: #0f0f16;
    color: #10b981;
    padding: 1.5rem 2rem;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}

header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 98px; /* Aligns with leftside width */
    height: 2px;
    width: calc(100% - 447px); /* Leaves out side panels (150 + 350) */
    background:#1a1a25;
    opacity: 0.4;
    z-index: -1; /* Keep it behind the actual content */
}


.jss495 {
    width: 10rem;
    display: flex;
    max-width: 2rem;
    align-items: flex-start;
    margin-left: 1rem;
    margin-right: 1rem;
    flex-direction: column;
    justify-content: center;
}

.jss495 h1 {
    color: #e4e4e4;
    margin: 0;
    font-size: 18px;
    font-family: Rubik;
    font-weight: 500;
    letter-spacing: .1em;
}

.flex-column{
    display: flex;
    flex-direction: column;
}

.jss497 {
    color: #e4e4e4;
    display: flex;
    position: relative;
    font-size: 12px;
    align-items: center;
    font-family: Rubik;
    font-weight: 500;
    letter-spacing: .1em;
}

.side-player{
    display: flex;
    flex-direction: row;
}

.jss496 {
    width: 100%;
    display: flex;
    padding: 10px 0px 10px 0px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-around;
}
.lost{
    filter: brightness(0.5);
}
.side-player img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}


.rain-div{
    display: flex;
    flex-direction: column;
    position: absolute;
    gap: 5px;
    width: 100%;
    height: 120px;
    align-items: center;
    text-align: center;
    justify-content: center;
    border-radius: 15px;
      border: 1px solid transparent;
  background:
    linear-gradient(#15151d, #15151d) padding-box,
    linear-gradient(0deg, transparent, #1a1a25) border-box;
    z-index: 10;
}

.rain-info {
  align-self: flex-start;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between; /* separates left and right sections */
  width: 100%;
  padding: 0 20px;
  text-align: left;
  box-sizing: border-box;
  gap: 10px;
}

.center-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1em;
  text-align: center;
}

.right-info {
  margin-left: auto; /* forces it to push to the right */
}

.rain-info h1 {
  font-size: 1em;
  margin: 0;                /* remove default h1 spacing */
  text-align: left;         /* optional, redundant now */
}


.rain-div .button{
border: none;
width: 90%;
background: linear-gradient(180deg, #ffc400, #ff9900) border-box;
color: #774700;
font-weight: bold;
}

.rain-div .bg-pad{
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    height: 30px;
    font-size: .85em;
    justify-content: center;
    background: #ffffff15;
    text-align: center;
    font-weight: 500;
}

.leftside {
        display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    backdrop-filter: blur(20px);
    background: #0f0f16;
    border-left: 1px solid #1a1a25;
    border-top: none;
    border-bottom: none;
    padding: 20px;
    width: 100%;
    max-width: 100px;
    height: calc(100vh - 80px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 80px;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.mobilebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    height: 68px; /* Adjust as needed */
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;

    background: #0f0f16;
    border-top: 1px solid #1a1a25;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}



.mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    gap: 6px;
    color: #8c8c8c;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.mobile-item svg {
  transition: all .3s ease;
  width: 25px;
  fill: #8c8c8c;
  transform-origin: center;
}


.widthcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
    width: 100%;
}

.heightcontainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 45px;
    width: 100%;
}

.leftside .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    gap: 6px;
    color: #8c8c8c;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
}

.item.active {
  position: relative; /* needed for ::before positioning */
}
.active-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 6px;
  background-color: #0099ff;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: top 0.1s ease;
  left: 0; /* or right: 0 if you want it on the right */
}

.item.active{
color: #0099ff;
}

.item:hover{
color: #0099ff;
}

.item.active svg {
  fill: #0099ff;
  filter: drop-shadow(0 0 20px #0099ff57);
  animation: bounce-up 0.3s ease-in-out 1;
  animation-fill-mode: forwards;
}

@keyframes bounce-up {
  0% {
    transform: translateY(0) rotate(-10deg) scale(1.1);
  }
  50% {
    transform: translateY(-5px) rotate(-10deg) scale(1.1);
  }
  100% {
    transform: translateY(0) rotate(-10deg) scale(1.1);
  }
}

.item:hover svg {
  fill: #0099ff;
  filter: drop-shadow(0 0 20px #0099ff57);
}

.item svg {
  transition: all .3s ease;
  width: 25px;
  fill: #8c8c8c;
  transform-origin: center;
}

.limbo-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  background: #0f0f16;
  border-radius: 16px;
    min-height: 725px; /* Or 600px+ for tall look */
  height: auto;
  align-items: stretch;
  overflow: hidden;
}

.limbo-left {
  flex: 0 0 300px;
  background: #0f0f16;
  border-right: 1px solid #1a1a25;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.limbo-left label {
  color: #ccc;
  font-size: 14px;
}

.limbo-left input {
  background: #1a1a25;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

.limbo-left input[readonly] {
  opacity: 0.6;
}

.limbo-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}



.limbo-right {
  flex: 1;
  background: #0f0f16;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps top and bottom sections apart */
  align-items: center;
  padding: 20px;
  position: relative;
  min-height: 500px;
}

.limbo-live-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#live-multiplier {
  font-size: 120px;  /* Make it BIG */
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.limbo-history-wrapper {
  width: 100%;
  text-align: center;
}

.limbo-history-wrapper h3 {
  margin: 0;
  color: #ccc;
  font-size: 18px;
}

.limbo-history {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  padding-bottom: 10px;
}

.limbo-history span {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  background: #1a1a25;
  color: white;
  opacity: 0.9;
}


.btn-play {
  flex: 1;
  background: #0099ff;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.btn-instant {
  background: #1a1a25;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.limbo-right {
  flex: 1;
  padding: 20px;
  color: white;
  background: #0f0f16;
}

.limbo-right h3 {
  margin-top: 0;
  color: #ccc;
}


.banner{
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.Info{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 5px;
}


/* ✅ The pseudo-element that acts like a vertical border/accent */
.leftside::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    height: 105%;
    width: 2px; /* Thin border strip */
    background: linear-gradient(to bottom, #1a1a25, #2a2a38);
    opacity: 0.4;
    border-radius: 8px;
    z-index: 0;
}


.chatside {
    border-radius: 0;
    backdrop-filter: blur(20px);
   background: #0f0f16;
    border-top: none;
    border-bottom: none;
    padding: 20px;
    width: 100%;
    max-width: 350px;
    height: calc(100vh - 80px); /* Use header height (80px) */
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 80px; /* Start below the fixed header */
    right: 0;
    bottom: 0;
}

/* ✅ The pseudo-element that acts like a vertical border/accent */
.chatside::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    height: 105%;
    width: 2px; /* Thin border strip */
    background: linear-gradient(to bottom, #1a1a25, #2a2a38);
    opacity: 0.4;
    border-radius: 8px;
    z-index: 0;
}



.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 16px;
}


#chat-count {
    background: #0099ff27;
    color: #e4e4e7;
    padding: 10px;
    height: 25px;
    border-radius: 100px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-gift {
    background: transparent;
    color: #e4e4e7;
padding: 5px 7px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.507));
    transition: all 0.2s ease;
}

.chat-gift:hover{
    transform: scale(.93);
}

.chat-gift svg {
    width: 18px;
    height: 18px;

}


#chat-count p{
    width:10px;
    background-color: #0099ff;
    border-radius: 50%;
    height: 10px;
}

.chat-wrapper {
    position: relative;
    height: calc(100vh - 120px); /* Adjust based on your layout */
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#chat {
    overflow-y: auto;
    padding: 10px;
    flex-grow: 1;
}



::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.075);
    border-radius: 3px;
}



.chatside form {
    position: relative;
    display: flex;
}

.chatside input::placeholder {
    color: rgba(228, 228, 231, 0.5);
}

.chatside input:focus {
    transform: scale(0.98);
}

.chatside form {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
}

.chatside input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background-color: #15151d;
    box-shadow: 0 1px 0 rgb(31, 31, 41);
    color: #e4e4e7;
    font-size: .8rem;
   outline: none;
    transition: all 0.2s ;
}

.sendBtn {
    padding: 10px;
    border-radius: 12px;
    border: none;
    background-color: #15151d;
    box-shadow: 0 1px 0 rgb(31, 31, 41);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
    width: 40px;
    height: 40px;
}

.sendBtn:hover{
    transform: scale(0.94);
    filter: brightness(0.9);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-message {
  display: flex;
  align-items: flex-start;
  padding: 6px 12px;
  margin-bottom: 10px;
  border-radius: 13px;
  gap: 12px;
  transform: scale(1.1);
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
background: transparent
;
}


.chat-message::after {
    content: "";
    display: block;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    animation-delay: 0.1s;
}

#username {
    max-width: 60px;
    display: inline-block; /* or block/flex depending on context */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.username-gift-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* or specific height like 100px */
    width: 100%;  /* optional */
}

.username-gift-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-info{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#PlayerName{
    font-size: 1em;
    color: white;
    font-weight: bold;
}

.player-stats {
  display: flex;
  height: 90px;
  width: 110%;
  gap: 8px;
  font-size: 14px;
  color: #ccc;
}

.player-stats > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 16px;
   background-color: rgba(54, 54, 54, 0.144);
   box-shadow: 0 1px 0  rgba(105, 105, 105, 0.144);
}

.player-stats > div h1{
    font-weight: bold;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.stat-value.profit {
  color: #0099ff;
}

        .user-img {
    position: relative;
    display: inline-block;
}


        @keyframes gift-shake {
            0%, 100% {
                transform: rotate(0deg) scale(1);
            }
            10%, 30%, 50%, 70%, 90% {
                transform: rotate(-3deg) scale(1.05);
            }
            20%, 40%, 60%, 80% {
                transform: rotate(3deg) scale(1.05);
            }
        }


.gap-3px{
gap: 3px;
}




.chat-message .userthumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #31313a;
    flex-shrink: 0;
}

.chat-message .content {
    flex: 1;
    min-width: 0;
}

.chat-message .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.chat-message .username {
    font-weight: bold;
    color: #ffffff !important;
    font-size: 0.85rem;
    vertical-align: middle;
}

.chat-message .user-rank {
    display: flex;
    background: #31313a;
    width: 17px;
    height: 17px;
    padding: 12px;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
}

.chat-message .user-rank img {
    align-items: center;
    justify-content: center;
 width: 17px;
}

.chat-message .timestamp {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.chat-message .message-text {
    color: rgba(255, 255, 255, 0.445);
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 200;
    line-height: 1.4;
}



.welcome{
    font-size: 1em;
    color: grey;
}

#welcoemUser{
    color: white;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.349));
}


/* Mobile responsive */
@media (max-width: 768px) {
    .dropdown {
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 12px;
    }
    
    .dropdown-content {
        min-width: 160px;
        border-radius: 12px;
    }
    
    .dropdown-content a {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
}
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
}


.userthumb {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #1a1a25;
    border: 1px solid #31313a;
    transition: all 0.2s ease;
}

.userthumb::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    
    border-radius: 20px;
    z-index: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    opacity: 1;
}


.userthumb:hover {
    border-color: #4a4a5a;
    background-color: #252530;

}


        .blur {
    width: 100%;
    height: 100%;
    filter: blur(5px);
    z-index: 2;
    transition: filter 0.3s ease;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 100;
}

/* Enhanced Popup */
.popup {
    backdrop-filter: blur(20px);
      border: 1px solid transparent;
  background:
    linear-gradient(#0b0b11, #0b0b11) padding-box,
    linear-gradient(180deg, transparent, #161620) border-box;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(400px, 90vw);
    padding: 2rem;
    border-radius: 12px;
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}


.popup-header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.popup-header h1{
      position: absolute;
    top:13px;
    left: 13px;
    height: 25px;
    font-size: 1.3em;
    margin: 0;
}

.methods{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.methods button{
    background-color: #1c1c1d5d;
    color: grey;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.methods button:hover{
    background-color: #1c1c1da9;
}

.methods button.active{
    background-color: #0099ff;
    color: white;
}

.method-content{
    display: none;
    margin-top: 20px;
}

.method-content.active{
    display: block;
}

#DepositMethod {
            max-width: 800px;
            margin: 0 auto;
            perspective: 1000px;
        }

        .Methods {
            display: flex;
            flex-direction: row;
            align-items: center;
            text-align: center;
            justify-content: center;
            gap: 30px;
            padding: 40px 0;
        }

        .Methods .method {
            width: 150px;
            height: 150px;
            background: rgba(255, 255, 255, 0.027);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-radius: 20px;
            cursor: pointer;
            transform-style: preserve-3d;
            transition: all 0.1s ease-out;
            position: relative;
            overflow: hidden;
        }
        /* Reset hover transform for mouse tracking */
        .Methods .method:hover {
            /* We'll handle this with JavaScript */
        }

        .Methods .method img,
        .Methods .method svg {
            width: 70px;
            height: auto;
            transform: translateZ(15px);
            transition: transform 0.3s ease;
            filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
        }

        .Methods .method p {
            font-size: 1em;
            font-weight: bold;
            margin: 0;
            transform: translateZ(10px);
            transition: transform 0.3s ease;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        /* Enhanced hover states for icons */
        .Methods .method:hover img,
        .Methods .method:hover svg {
            transform: translateZ(25px) scale(1.1);
        }

        .Methods .method:hover p {
            transform: translateZ(20px);
        }


        #botsList{
           display: flex;
           flex-direction: column;
           align-items: center;
           justify-content: center;
        }

        .status-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: #2ae452; /* green */
  filter: drop-shadow(0 0 5px #2ae45228);
}

.status-dot.offline {
  background-color: #f44336; /* red */
}

       .bot {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  width: 23em;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.014);
  backdrop-filter: blur(8px);
  margin: 0.5rem auto;
  transition: all 0.3s ease;
}

.provably-fair-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.provably-fair-section h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 16px;
}

.provably-fair-section > div {
    margin-bottom: 10px;
}

.provably-fair-section label {
    color: #ccc;
    margin-right: 10px;
}

.provably-fair-section #clientSeedDisplay {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    color: #fff;
    margin-right: 10px;
}

.provably-fair-section #generateSeedBtn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.provably-fair-section #generateSeedBtn:hover {
    background: #45a049;
}

.bot-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.bot-info img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.bot-info .status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1.2;
}

.bot-info .status span {
  font-size: 0.8rem;
  margin-top: 2px;
  color: #aaa;
}

.bot .button {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  padding: 0; /* Important */
  margin: 0;  /* Important */
}



.line{
    background-color: #3333336c;
    height: 1px;
    width: 115%;
    margin: 10px 0;

    display: block;
}

.line-y{
    background-color: #3333336c;
    height: 1em;
    width: 2px;
    border-radius: 50%;
    margin-left:  15px;
}

.line-small{
    background-color: #3333336c;
    height: 1px;
    width: 60%;
    margin: 10px 0;

    display: block;
}

    .gem-icon {
            width: 17px;
            height: 17px;
            filter: drop-shadow(0 0 5px rgba(9, 48, 75, 0.671));
            display: inline-block;
        }

.gem-transactions {
    background-color: #1c1c1d5d;
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    min-width: 90%;
    min-height: 100px;
    max-height: 200px; /* Set maximum height before scrolling kicks in */
}

.transaction{
     display: flex;
     flex-direction: row;
     margin-bottom: 5px;
     text-align: center;
     align-items: center;
     justify-content: space-between;
     max-height: 30px;
     padding: 15px;
     border-radius: 8px;
    font-size: .8em;
     background-color: #0000001c;
}

.amount.positive {
    color: #37e960;
}

.amount.negative {

    color: #dc3545;
}
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup input {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #16161f;
    color: #e4e4e7;
    font-size: 0.9rem;
    width: 100%;
    backdrop-filter: blur(10px);
}

.popup input:focus {

  outline: none;
  border-color: #0099ff;
    background: rgba(0, 0, 0, 0.4);
}

.popup input::placeholder {
    color: #71717a;
}

.popup button {
    margin-top: 1rem;
    width: 100%;
}

/* Enhanced Spacing */
.space-y {
    height: 12px;
}

.extraspace-y {
    height: 32px;
}

/* Enhanced Hidden Class */
.hidden {
    display: none !important;
    visibility: hidden;
}


.main {
    padding: 45px 2rem 2rem 2.75rem; /* Add top padding to account for fixed header */
    max-width: 1200px;
    min-height: 100vh;
}

.g-main {
    overflow-y: auto;
    position: fixed;
    display: flex;
    top: 120px;
    bottom: 30px;
    left: 200px;
    right: 320px;
    border-radius: 5px;
}

.row {
    position: relative;
    width: calc(100% - 3em);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: .6em;
    border-radius: 20px;

    background:
        linear-gradient(#0f0f16, #0f0f16) padding-box,
        linear-gradient(0deg, transparent, #1a1a25) border-box;
    border: 1px solid transparent;
}


.row > * {
    position: relative;
    z-index: 1;
}


.bet-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.coin-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.8;
}

.bet-input {
    padding: 12px 16px 12px 38px; /* extra left padding for icon */
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.219);
    color: #e4e4e7;
    font-size: 0.9rem;
    width: 100%;
}

.bet-submit {
    padding: 12px 16px;
    background-color: #0099ff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.bet-submit:hover {
    background-color: #007acc;
}

.coin-options {
    display: flex;
    gap: 10px;
}

.coin-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
    transition: all 0.1;
}

.coin-option:hover {
    filter: brightness(0.7);
}

/* Heads selected */
.coin-option.heads-selected {
    border: 1px solid #4c55c2;
    background:transparent;
}

/* Tails selected */
.coin-option.tails-selected {
    border: 1px solid #0099ff;
    background: transparent;
}




/* Flex row for the items */
.flex-row {
    display: flex;
}

  .cf-main {
            max-width: 1200px;
            margin: 0 auto;
        }

        .row {
            margin-bottom: 30px;
        }

        .flex-row {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }

        .gap-big {
            gap: 30px;
        }

        .cf-items {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 16px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 20px;
            position: relative;
            overflow: hidden;
        }

        .cf-items:hover::before {
            left: 100%;
        }

        .cf-items h1 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #4CAF50, #81C784);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .cf-items p {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }

.section {
    margin-bottom: 2.5rem;
}

.title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.title-container svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #0099ff;
    display: block;
    flex-shrink: 0;
}


    

.title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: white;
    margin: 0;
}

  .cards-container {
            display: flex;
            justify-content: flex-start;
            gap: 1rem;
            overflow-x: auto;
            padding: 0.75rem 0.25rem;
        }

        .card-group {
            position: relative;
            display: inline-block;
            text-decoration: none;
            color: inherit;
        }

        .card {
            position: relative;
            overflow: hidden;
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                        0 4px 6px -2px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
            cursor: pointer;
            transform: scale(1.02);
            aspect-ratio: 200 / 265;
            min-width: 120px;
            max-width: 200px;
        }

        .card img {
            position: relative;
            z-index: 1;
            width: 100%;
            height: 100%;
            display: block;
            pointer-events: none;
            user-select: none;
        }

        .card-group:hover .card {
            transform: scale(1.05);
        }
        
        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.644);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 17px;
            font-weight: bold;
            letter-spacing: 2px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.404);
            z-index: 2;
        }

.wins-container{
    display: flex;
    flex-direction: row;
    gap: 2px;
    width: 50%;
}

.live-win-card {
    position: relative;
    width: 11rem; /* w-44 */
    height: 4rem; /* h-16 */
    background-color: rgba(43, 43, 43, 0.212);
    border-radius: 1rem; /* rounded-2xl */
    display: flex;
    align-items: center;
    padding: 0 0.75rem; /* px-3 */
    overflow: hidden;
    flex-shrink: 0;
}


.live-win-img-wrapper {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
    z-index: 1;
}

.live-win-blur {
    position: absolute;
    bottom: -0.25rem;
    width: 2rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: rgba(101, 102, 102, 0.25);
    filter: blur(6px);
    z-index: 0;
}

.live-win-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.live-win-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1;
}

.live-win-name {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-win-amount {
    display: flex;
    align-items: center;
    gap: 3px;
}

.live-win-icon {
    width: 12px;
    height: 12px;
    margin-right: 0.25rem;
}

.live-win-number {
    color: #0099ff; /* Tailwind's green-500 */
    font-size: 0.75rem;
    font-weight: 600;
}

  .steps {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .step {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            max-width: 280px;
        }
        
        .step:hover {
            transform: translateY(-4px);
        }

        .step-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .step-number {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #0099ff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
            color: white;
            flex-shrink: 0;
        }
        
        .step-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0;
            color: #ffffff;
        }
        
        .step-description {
            font-size: 0.9rem;
            line-height: 1.5;
            color: #b8b8cc;
            margin: 0;
        }
        
        .step-icon {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 24px;
            height: 24px;
            opacity: 0.3;
            fill: #00d4ff;
        }
        
        @media (max-width: 768px) {
            .steps {
                grid-template-columns: 1fr;
            }
            
            .step {
                padding: 1.5rem;
                max-width: none;
            }
            
            .step-header {
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }
            
            .step-icon {
                display: none;
            }
        }

.font-size{
    font-size: medium;
}

.bold{
    font-weight: bold;
}

#welcomeText{
    font-weight: bold;
    color: white;
    display: flex;
    gap: 8px; /* Add some space between username and SVG */
}

#welcomeText svg {
    width: 20px; /* Make SVG smaller */
    flex-shrink: 0; /* Prevent SVG from shrinking */
}

 #toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            pointer-events: none;
        }

        .toast {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #111113;
            color: #9797979d;
            padding: 16px 20px;
            margin-bottom: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            min-width: 300px;
            max-width: 400px;
            transform: translateX(100%);
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: auto;
            cursor: pointer;
            border-left: 1px solid #1a1a1d;
        }

        .toast.show {
            transform: translateX(0);
            opacity: 1;
        }

        .toast.success {
            border-left-color: #10b981;
        }

        .toast.error {
            border-left-color: #ef4444;
        }

        .toast.loading {
            border-left-color: #3b82f6;
        }

        .toast-icon {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
        }

        .toast-text {
            flex: 1;
            font-size: 14px;
            line-height: 1.4;
        }

        /* SVG Animations */
        @keyframes checkmark {
            0% {
                stroke-dashoffset: 20;
            }
            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes circle-bounce {
            0% {
                transform: scale(0);
                opacity: 0;
            }
            50% {
                transform: scale(1.2);
                opacity: 1;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes draw-x-line1 {
            0% {
                stroke-dashoffset: 20;
            }
            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes draw-x-line2 {
            0% {
                stroke-dashoffset: 20;
            }
            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes draw-info-line {
            0% {
                stroke-dashoffset: 10;
            }
            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes draw-info-dot {
            0% {
                stroke-dashoffset: 5;
            }
            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes error-shake {
            0%, 100% {
                transform: translateX(0);
            }
            25% {
                transform: translateX(-2px);
            }
            75% {
                transform: translateX(2px);
            }
        }

        .checkmark-circle {
            animation: circle-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .checkmark-path {
            stroke-dasharray: 20;
            stroke-dashoffset: 20;
            animation: checkmark 0.4s ease-out 0.3s forwards;
        }

        .error-circle {
            animation: circle-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .error-line1 {
            stroke-dasharray: 20;
            stroke-dashoffset: 20;
            animation: draw-x-line1 0.3s ease-out 0.3s forwards;
        }

        .error-line2 {
            stroke-dasharray: 20;
            stroke-dashoffset: 20;
            animation: draw-x-line2 0.3s ease-out 0.5s forwards;
        }

        .info-circle {
            animation: circle-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .info-line {
            stroke-dasharray: 10;
            stroke-dashoffset: 10;
            animation: draw-info-line 0.3s ease-out 0.3s forwards;
        }

        .info-dot {
            stroke-dasharray: 5;
            stroke-dashoffset: 5;
            animation: draw-info-dot 0.2s ease-out 0.6s forwards;
        }

        .loading-spinner {
            animation: spin 1s linear infinite;
        }

        .error-icon {
            animation: error-shake 0.5s ease-in-out;
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

.close-btn{
    position: absolute;
    background-color: #1c1c1d5d;
    border: none;
    color:grey;
    top:-10px;
    right: 5px;
    height: 40px;
    border-radius: 9px;
    max-width: 40px;
    font-size: 1.7em;
    cursor: pointer;

    transition: all .1s ;

}

.close-btn:hover{
      background-color: #2422225d;
    color: rgb(216, 216, 216);
}

.loading-circle {
  width: 1.5em;
  height: 1.5em;
  border: 3px solid rgba(0, 0, 0, 0); /* light/transparent part */
  border-top-color: rgb(255, 255, 255); /* visible rotating part */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}



@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Additional Enhancements */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    pointer-events: none;
}



/* Loading animation utility */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .popup {
        width: 95vw;
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .button {
        min-width: 100px;
        height: 44px;
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        font-size: 1.5rem;
        height: 70px;
    }
    
    .main {
        padding: 90px 1rem 2rem 1rem; /* Adjust for mobile header height */
    }
    
    .chatside {
        height: calc(100vh - 70px);
        top: 70px;
        max-width: 100%;
        width: 100%;
    }
    
    .main-content {
        padding-right: 2rem;
        margin-top: 70px;
    }
}

.main-content {
    flex: 1;
    padding: 2rem;
    padding-right: 370px; /* Add right padding to account for fixed chatside */
    display: flex;
    align-items: left;
    justify-content: flex-end;
    color: #666;
    margin-top: 80px; /* Add top margin for fixed header */
}

footer {
    position: fixed;
    bottom: 0;
    left: 350px; /* Start after the sidebar width */
    right: 0;
    background: #0a0a0f;
    border-top: 3px solid #16161f;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    z-index: 1000;
}
        .footer-left {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .logo {
            font-size: 1.2rem;
            font-weight: bold;
            color: #ffffff;
        }

        .logo-highlight {
            color: #00bfff;
        }

        .copyright {
            color: #666;
            font-size: 0.8rem;
        }

        .footer-right {
            display: flex;
            gap: 1.5rem;
        }

        .footer-link {
            color: #aaa;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.1s ;
        }

        .footer-link:hover {
            color: white;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            footer {
                flex-direction: column;
                height: auto;
                padding: 1rem;
                gap: 0.5rem;
            }

            .footer-left {
                gap: 1rem;
            }

            .footer-right {
                gap: 1rem;
            }
        }


.coin {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    transition: transform 1s ease-in;
    transform-style: preserve-3d;
}

.coin div {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 50%;
}

.coin img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.coin .heads {
    z-index: 100;
}

.coin .tails {
    transform: rotateX(-180deg);
}

/* Flip to heads animation (stops at 0deg) */
.coin.flip-heads {
    animation: flipHeads 4s ease-out forwards;
}

.coin.flip-tails {
    animation: flipTails 4s ease-out forwards;
}


@keyframes flipHeads {
    0% { transform: rotateX(0); }
    100% { transform: rotateX(2880deg); } /* 8 full rotations, ends on heads */
}

@keyframes flipTails {
    0% { transform: rotateX(0); }
    100% { transform: rotateX(3060deg); } /* 8.5 full rotations, ends on tails */
}

.coinflip-info{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 60px; /* Adjust as needed */
  height: 60px;
  border-radius: 50%;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: 0.1s all;
  border: 3px solid #00000000;
}

.player-card .coin-icon {
  position: absolute;
  width: 40px; /* Adjust size */
  height: 40px;
top:0;
left: 25px;
}

.player-name {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0 1rem;
}

.history-item {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.history-item img {
  border: 2px solid #ccc;
  object-fit: cover;
}

.player-balance{
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 5px;
    font-size: .45em;
}

.avatar-img.selected-tails {
  border: 3px solid #0099ff;
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
}

.avatar-img.selected-heads {
  border: 3px solid #4c55c2;
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
}




.GameAmount{
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 5px;
}


        .publicmatch{
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    justify-content: space-between;
        }

.publicmatch::after {
    content: "";
    display: block;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    animation-delay: 0.1s;
}


@media only screen and (min-width: 1081px) {
  .mobile-only {
    display: none !important;
  }
}

@media only screen and (max-width: 1080px) {
  .rightsidebar {
    width: auto;

    left: 120px;
  }

  .section {
    width: calc(100% - 1em);
  }

  .desktop-only {
    display: none !important;
  }
  .g-main {
    width: calc(100% - 20px);

    padding: 10px;

    position: unset;

    flex-direction: column;
  }
}