.rolethumb {
    max-width: 30px !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.gameimg {
    width: 75px;
    height: 75px;
}

.gameplayer{
    background: linear-gradient(180deg, #00000073, #1a093b73) padding-box, linear-gradient(to bottom, var(--surface-color), var(--accent-hover)) border-box;
}

#gamelist {
    overflow-y: auto;
    height: calc(100vh - 214px);
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: -2px;
}
.userthumb {
    width: 30px !important;
}
body {
    background-color: var(--bg-color);
}
.navbar {
    background-color: var(--surface-color)!important;
}
.sidebar {
    background-color: var(--surface-color)!important;
}
#rightbar {
    border-right: var(--border-color) 2px solid;
}
#leftbar {
    border-left: var(--border-color) 2px solid;
}

.gamecard {
    color: var(--text-color) !important;
    background-color: var(--surface-color);
    box-shadow: inset 0 0 10px 5px rgba(75, 0, 130, 0.5);
    position: relative;
}

.sidebar-link {
    width: 75px;
    height: 75px;
    border-radius: 25%;
    border: 1px solid;
    border-image-source: linear-gradient(var(--accent-color));
    border-image-slice: 1;
}

.sidebar-link a {
    border-radius: 25%;
}

.sidebar-link a img {
    border-radius: 25%;
}



/* === Base for all buttons === */
.btn-cancel,
.btn-primary,
.btn-secondary {
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 0.55rem 1.4rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

/* --- Cancel (red) --- */
.btn-cancel {
    color: #fff;
    background: linear-gradient(145deg, #ff5a5a, #b80000);
    box-shadow: 0 4px 12px rgba(255, 60, 60, 0.35);
}
.btn-cancel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(60deg, rgba(255,255,255,0.25), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-cancel:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 18px rgba(255, 60, 60, 0.55);
}
.btn-cancel:hover::after { opacity: 1; }

/* --- Join (primary) --- */
.btn-primary {
    color: #fff;
    background: linear-gradient(145deg, var(--accent-color), var(--accent-hover));
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.35);
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(60deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 18px rgba(123, 31, 162, 0.55);
}
.btn-primary:hover::after { opacity: 1; }

/* --- View (secondary) --- */
.btn-secondary {
    color: var(--text-color);
    background: linear-gradient(var(--surface-color), var(--surface-color)) padding-box,
                linear-gradient(135deg, var(--accent-color), var(--accent-hover)) border-box;
    border: 2px solid transparent;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(75, 0, 130, 0.3);
    transition: all 0.3s ease;
}
.btn-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-secondary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 18px rgba(75, 0, 130, 0.5);
}
.btn-secondary:hover::after { opacity: 1; }
.btn-secondary:disabled {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-color);
    box-shadow: none;
    opacity: 0.5;
    cursor: not-allowed;
}


/* === MODAL: Create Coinflip/inventory/tip === */
#itemselector {
    background: linear-gradient(160deg, rgba(30, 0, 70, 0.96), rgba(15, 0, 40, 0.98));
    border: 2px solid rgba(150, 100, 255, 0.35);
    border-radius: 18px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.65),
        inset 0 1px 4px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    color: #fff;
}
#itemselector .modal-header {
    border: none;
    text-align: center;
    flex-direction: column;
    padding: 1.2rem 1.5rem 0.5rem;
    background: none;
}
#itemselector .modal-header h4 {
    font-size: 1.6rem;
    font-weight: 700;
}
#itemselector .modal-header h5 {
    font-size: 1.2rem;
    opacity: 1;
}
#itemselector .d-flex.justify-content-center {
    padding: 0 1.5rem;
}
#searchitem {
    flex: 1;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
#searchitem::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
#itemselector .dropdown .btn {
    border-radius: 12px;
}
#itemselector .modal-body {
    padding: 1rem 1.5rem;
}
.items-wrapper {
    background: rgba(20, 0, 40, 0.55);
    border-radius: 12px;
    padding: 10px;
    max-height: 320px;
}
.items-wrapper::-webkit-scrollbar {
    width: 6px;
}
.items-wrapper::-webkit-scrollbar-thumb {
    background: rgba(150, 100, 255, 0.35);
    border-radius: 3px;
}
#inventory-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 0.5rem;
}
.selectable-card {
    background: linear-gradient(145deg, rgba(60, 0, 120, 0.55), rgba(25, 0, 60, 0.75));
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.selectable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(120, 60, 255, 0.4);
}
.selectable-card.selected {
    border: 2px solid var(--accent-hover);
    box-shadow: 0 0 8px 2px rgba(150, 100, 255, 0.55);
    transform: translateY(-2px) scale(1.02);
}
.selectable-card img {
    height: 75px;
    width: 75px;
    object-fit: cover;
    margin-bottom: 0.8rem;
}
.selectable-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.selectable-title {
    font-size: 1rem;
    font-weight: 700;
}
.selectable-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4cff4c;
}
#itemselector .modal-footer {
    border: none;
    background: none;
}
#valdiv {
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.side-img {
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.side-img:hover {
    opacity: 1;
    transform: scale(1.1);
}
.spinpurple {
    color: var(--accent-color);
    display: block;
    margin: 120px auto;
}


/* === Leaderboard Modal === */
#leaderboardmodal {
    background: linear-gradient(165deg, #220044 0%, #0a0017 100%);
    border: 2px solid rgba(150, 100, 255, 0.35);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}
#leaderboardmodal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
    opacity: 0.08;
    pointer-events: none;
}
.top-3 {
    text-align: center;
}
.top-3 .col-md-4 {
    display: flex;
    justify-content: center;
}
.top-3 .card {
    width: 235px;
    background: linear-gradient(145deg, rgba(150, 100, 255, 0.3), rgba(20, 0, 60, 0.85));
    border: none;
    border-radius: 20px;
    padding: 1rem 0 0.5rem;
    position: relative;
    display: flex;
    align-items: stretch;
    opacity: 0;
    animation: bounceIn 0.6s ease forwards;
    animation-fill-mode: forwards;
    transition: box-shadow 0.3s;
}
.top-3 .col-md-4:nth-child(1) .card {
    animation-delay: 0.1s;
}
.top-3 .col-md-4:nth-child(2) .card {
    animation-delay: 0.25s;
}
.top-3 .col-md-4:nth-child(3) .card {
    animation-delay: 0.4s;
}
.top-3 .card:hover {
    box-shadow: 0 10px 28px rgba(160, 120, 255, 0.65);
}
.lift {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: inherit;
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.top-3 .card:hover .lift {
    transform: translateY(-6px) scale(1.05);
}
.top-3 img {
    width: 90px;
    height: 90px;
    border: 4px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 14px currentColor;
    animation: pulseGlow 3s infinite;
}
.top-3 i {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}
.rank-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff0080, #7928ca);
    padding: 3px 12px;
    font-weight: 700;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(255, 0, 200, 0.7);
    z-index: 3;
    pointer-events: none;
}
.gold {
    color: #ffd700;
}
.silver {
    color: #d8d8d8;
}
.bronze {
    color: #ff8a3d;
}
.pill-row {
    margin: 0.5rem 0;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    animation-fill-mode: forwards;
}
.pill-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.25s;
}
.pill-row:nth-child(odd) .pill-inner {
    background: linear-gradient(90deg, rgba(255, 150, 255, 0.15), rgba(150, 100, 255, 0.05));
}
.pill-row:nth-child(even) .pill-inner {
    background: linear-gradient(90deg, rgba(100, 200, 255, 0.15), rgba(150, 100, 255, 0.05));
}
.pill-row:hover .pill-inner {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 18px rgba(160, 120, 255, 0.4);
}
.pill-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.pill-user {
    flex: 1;
    font-weight: 600;
    position: relative;
}
.pill-user::before {
    content: attr(data-rank);
    margin-right: 0.4rem;
    font-weight: 700;
    color: #aaa;
}
.pill-wager {
    color: #b98aff;
    font-size: 0.95rem;
}
.pill-profit {
    font-size: 0.95rem;
    font-weight: 700;
}
.text-success {
    color: #4cff7f !important;
}
.text-danger {
    color: #ff5a5a !important;
}
@media (max-width: 576px) {
  .pill-row {
    margin: 0.5rem -23px;
  }
}
@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 15px currentColor, 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px currentColor, 0 0 50px rgba(255, 255, 255, 0.35);
    }
}
@keyframes bounceIn {
    0% {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}
@keyframes slideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}


/* === Player Modal === */
.player-modal {
  background: linear-gradient(165deg, #200040 0%, #0c001a 100%);
  border: 2px solid rgba(150, 100, 255, 0.35);
  border-radius: 20px;
  padding-bottom: 1.5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
  color: #fff;
}
.player-modal .modal-header {
  padding: .5rem 1rem;
}
.player-modal .dropdown-toggle {
  font-size: 1.3rem;
  color: #aaa;
  cursor: pointer;
}

/* Avatar container */
.profile-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, #a86dff, #6c4dcf);
  box-shadow: 0 0 20px rgba(150,100,255,0.5);
  animation: pulseGlow 2.2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(170,120,255,0.7);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1b0a33;
  transition: transform 0.35s ease;
}
.profile-avatar:hover img {
  transform: scale(1.08);
}

/* Pulse animation */
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 16px rgba(150,100,255,0.5); }
  50%  { box-shadow: 0 0 28px rgba(150,100,255,0.8); }
  100% { box-shadow: 0 0 16px rgba(150,100,255,0.5); }
}

/* Stat pills */
.stat-pill {
  background: linear-gradient(145deg, rgba(150,100,255,0.18), rgba(50,0,120,0.5));
  border-radius: 18px;
  padding: .75rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
  transition: transform .25s, box-shadow .25s;
}
.stat-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 14px rgba(160,120,255,0.45);
}
.stat-pill i {
  font-size: 1.4rem;
  display: block;
  margin-bottom: .25rem;
  color: #9f76ff;
}
.stat-pill .value {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0;
  color: #4cff7f;
}
.stat-pill small {
  font-size: .75rem;
  opacity: .85;
}

/* Close button tweak */
.player-modal .btn-close {
  filter: brightness(0) invert(1);
}

/* Player rank text */
#playerModalRank {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff; /* lighter purple for visibility */
  letter-spacing: 0.6px;
  margin-top: .25rem;
}
/* === affiliates === */
#affiliatemodal {
  background: linear-gradient(165deg, #220044 0%, #0a0017 100%);
  border: 2px solid rgba(150,100,255,0.35);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0,0,0,0.75);
  overflow: hidden;
  position: relative;
}

/* Stats */
.affiliate-statbox {
  background: linear-gradient(145deg, rgba(150,100,255,0.18), rgba(50,0,120,0.45));
  border: 2px solid rgba(150,100,255,0.35);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}
.affiliate-statbox:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 22px rgba(150,100,255,0.5);
}
.affiliate-statbox i {
  font-size: 1.8rem;
  color: #9f76ff;
  margin-bottom: .4rem;
}
.affiliate-statbox h5 {
  color: #4cff7f;
  font-weight: 800;
  margin: 0;
}
.affiliate-statbox small {
  color: #b98aff;
  font-weight: 600;
}

/* User pills (use leaderboard style) */
.affiliate-user-list {
  background: rgba(20,0,40,0.55);
  border: 2px solid rgba(150,100,255,0.35);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150,100,255,0.3) transparent;
}
.affiliate-user-list::-webkit-scrollbar-thumb {
  background: rgba(150,100,255,0.3);
  border-radius: 3px;
}

/* Pills */
.aff-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(150,100,255,0.15), rgba(80,0,160,0.25));
  border-radius: 40px;
  padding: .6rem 1rem;
  margin-bottom: .5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.aff-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 14px rgba(150,100,255,0.5);
}
.aff-pill img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(150,100,255,0.35);
  box-shadow: 0 0 6px rgba(150,100,255,0.4);
}
.aff-pill-info {
  flex: 1;
  margin-left: .75rem;
}
.aff-pill-info p {
  margin: 0;
  font-weight: 600;
}
.aff-pill-info small {
  font-size: .8rem;
  color: #b98aff;
}
.aff-pill-earn {
  text-align: right;
  font-weight: 700;
  color: #4cff7f;
}

/* Pagination Tabs */
.affiliate-tabs .tab-btn {
  background: linear-gradient(145deg, rgba(80,0,170,0.85), rgba(40,0,90,0.95));
  border: 2px solid rgba(150,100,255,0.4);
  color: #fff;
  border-radius: 50px;
  padding: .45rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}
.affiliate-tabs .tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(150,100,255,0.55);
}
.affiliate-tabs .tab-btn.active {
  background: linear-gradient(145deg, rgba(120,40,230,0.95), rgba(60,0,120,0.95));
  box-shadow: 0 0 15px rgba(150,100,255,0.6);
}



/* === Top Stats Boxes === */
.statbox {
    background: linear-gradient(165deg, rgba(40,0,90,0.9), rgba(20,0,40,0.95));
    border: 2px solid rgba(150, 100, 255, 0.35);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.45), inset 0 1px 3px rgba(255,255,255,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    position: relative;
    min-height: 100px;
}
.statbox:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(150,100,255,0.4);
}

/* glowing shine overlay */
.statbox::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 60%);
    transform: rotate(25deg);
    opacity: 0.3;
    pointer-events: none;
}

/* content inside */
.statboxbody {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
}

/* icons */
.card-icon {
    background: linear-gradient(145deg, rgba(120,60,255,0.25), rgba(40,0,120,0.45));
    border: 2px solid rgba(150,100,255,0.5);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9f76ff;
    box-shadow: 0 0 10px rgba(150,100,255,0.35);
    transition: all 0.3s ease;
}
.statbox:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 18px rgba(150,100,255,0.7);
}

/* numbers */
.statbox h5 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 6px rgba(150,100,255,0.55);
}

/* labels */
.statbox span {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    font-weight: 600;
    color: #b98aff;
}


/* === Chat Status === */
.chat-status-row {
  padding: .35rem .75rem;
  background: linear-gradient(145deg, rgba(40,0,90,0.85), rgba(20,0,40,0.95));
  border: 2px solid rgba(150,100,255,0.35);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(120,60,255,0.35),
              inset 0 1px 3px rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 8px;
}
.chat-status-row:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(150,100,255,0.55);
}

/* Dot */
.circle-chat {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: .4rem;
  flex-shrink: 0;
  transition: all .3s ease;
}
.circle-chat.red {
  background-color: #ff3b3b;
  box-shadow: 0 0 10px #ff3b3b;
}
.circle-chat.green {
  background-color: #00ff7f;
  box-shadow: 0 0 10px #00ff7f;
}

/* Text */
.chat-status-text p {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 6px rgba(150,100,255,0.45);
  letter-spacing: .3px;
}




#tosModalContent {
    background-color: var(--surface-color);
    border: var(--border-color) 2px solid;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.glowing-input {
  background: rgba(20,0,40,0.55);
  border: 2px solid rgba(150,100,255,0.35);
  color: #fff;
  border-radius: 12px;
  transition: all 0.25s;
}
.glowing-input:focus {
  border-color: #9f76ff;
  box-shadow: 0 0 12px #9f76ff;
}
#fairnessResult.success {
  background: rgba(0,255,120,0.15);
  border: 2px solid #4cff7f;
  color: #4cff7f;
}
#fairnessResult.error {
  background: rgba(255,80,80,0.15);
  border: 2px solid #ff5a5a;
  color: #ff5a5a;
}

#tosSection, #faqSection {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.winner {
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px 5px rgba(128, 0, 128, 0.5);
}

.custom-card {
    max-width: 540px;
    background: transparent;
    border: none !important;
}

.custom-card-header {
    background: transparent;
    border: none;
}
.custom-card-header img {
    box-shadow: 0 0 2px 2px var(--accent-color);
    transition: box-shadow 0.3s ease-in-out;
}

.custom-card-header img:hover {
    box-shadow: 0 0 10px 5px var(--accent-color);
}

.custom-badge {
    white-space: nowrap;
    background-color: var(--surface-color);
    width: fit-content;
    border-radius: 50px;
}

.custom-img {
    width: 30px;
    height: 30px;
}

.custom-name {
    font-size: 1.2em;
    color: var(--accent-hover);
}
.countdown {
    font-size: 17px;
}

.dropdown-menu {
    z-index: 5;
    background-color: var(--surface-color);
    border: var(--border-color) 2px solid;
}
.dropdown-item {
    color: var(--text-color);
}
.dropdown-item:hover, .dropdown-item:active {
    color: var(--text-color);
    background-color: var(--accent-hover);
}

.custom-body {
    font-size: 1.1em;
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 50px;
}

#chatholder {
    margin-left: -10px;
}

#chatcontainer {
    padding-left: 13px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.selectable-title {
    font-size: 1rem;
    font-weight: bold;
}
.selectable-value {
    color: #00FF00;
    font-weight: bold;
    font-size: 1.25rem;
}

div[id^="item"] {
    padding-bottom: 1em;
}

.carousel-item {
    height: 95px !important;
}

#giveawaycontainer {
    position: absolute;
    width: -webkit-fill-available;
    z-index: 666;
    margin-top: -25px;
}

#termsmodal,#viewgamemodal, #fairnessmodal, #trigger-emoji-picker, #login-Modal, #depositmodal, .itemviewcard {
    background-color: var(--surface-color);
    border: var(--border-color) 2px solid;
}

#customconfirm {
    background-color: var(--surface-color);
    border: var(--border-color) 2px solid;
    color: var(--text-color);
}

/* === HEADER BUTTONS === */
.customLi {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 12px;
    border-radius: 18px;
    border: 2px solid rgba(150, 100, 255, 0.35);
    background: linear-gradient(180deg, rgba(40,0,90,0.55) 0%, rgba(20,0,40,0.8) 100%);
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,0.1),
        0 3px 12px rgba(120, 60, 255, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease;
    overflow: hidden;
}
.customLi::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

.customLi:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow:
        inset 0 2px 8px rgba(255,255,255,0.1),
        0 6px 20px rgba(140, 80, 255, 0.55);
    background: linear-gradient(180deg, rgba(90,40,200,0.7), rgba(40,0,90,0.9));
}

/* === ICON INSIDE === */
.sidebar-link-item {
    width: 100%;
    height: 100%;
    background: none;
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-link-img {
    width: 36px;
    height: 36px;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.customLi:hover .sidebar-link-img {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 0 8px rgba(150, 100, 255, 0.75));
}


/* === Inventory Button === */
.inventory-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0.85rem 1rem;
    min-width: 120px;
    text-decoration: none; /* <-- remove underline */

    background: linear-gradient(145deg, rgba(80,0,170,0.85), rgba(40,0,90,0.95));
    border: 2px solid rgba(150,100,255,0.4);
    border-radius: 28px;
    box-shadow: 0 3px 8px rgba(120,60,255,0.35),
                inset 0 1px 3px rgba(255,255,255,0.15);

    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;         /* keeps text nicely centered */
    cursor: pointer;
    transition: all 0.3s ease;
}

.inventory-btn i {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.inventory-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 14px rgba(150,100,255,0.5);
    background: linear-gradient(145deg, rgba(120,40,230,0.95), rgba(60,0,120,0.95));
}

.inventory-btn:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.inventory-value {
    text-decoration: none; /* kill underline on span */
    font-weight: 700;
    white-space: nowrap;
}


#chatmsg, #serverSeedInput, #clientSeedInput, #gameIdInput, #tip-pin, #old-tip-pin, #new-tip-pin, #searchitem, #customInput, #depositinput{
    background-color: var(--surface-color);
    color: var(--text-color);
    border: var(--border-color) 2px solid;
}

.item-list-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.viewvalue {
    color: white !important;
    font-weight: bold;
}
.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-bottom: 0.5rem;
}
.vs-section {
    text-align: center;
    flex: 0 0 auto;
}
.coin {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}
.match-hash {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: 0.25rem;
}


::placeholder {
    color: var(--text-color) !important;
}
.profileplayercard{
    height: 90%;
}

.card-icon {
    background: var(--surface-color);
    font-size: 32px;
    line-height: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 2px solid var(--accent-color);
    flex-grow: 0;
}

.devider {
    background-color: var(--accent-color);
    height: 3px;
    width: 96%;
    border: 0;
    border-radius: 25px;
    box-shadow: 0 0 10px 5px rgba(93, 20, 201, 0.5);
}

#inventorystarter, #playerinventory {
    margin-bottom: 10px;
    height: 350px;
    overflow-y: auto;
    background-color: var(--surface-color);
    border: var(--border-color) 2px solid;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.historytable td, .historytable th {
    padding: 0.75rem;
    background-color: var(--surface-color);
    color: var(--text-color);
}

.page-link, .page-item disabled {
    border: 2px var(--border-color) solid;
    border-radius: 10px;
    background-color: var(--surface-color);
    color: var(--text-color);
}

.historytable tr {
    border: 2px var(--border-color) solid;
    border-radius: 10px;
}

.historytable td, .historytable th {
    padding: 0.75rem;
    background-color: var(--surface-color);
    color: var(--text-color);
}

.tinystarterright {
    max-width: 25px;
    max-height: 25px;
    bottom: -30px;
    position: relative;
    left: -20px;
}
.tinystarterleft {
    max-width: 25px;
    max-height: 25px;
    bottom: -30px;
    position: relative;
    right: -20px;
}

.login-modal-header {
    height: 230px;
    position: relative;
}
.login-modal-header .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.login-modal-body{
    margin-top: -180px;
    z-index: 2;
    text-align: center;
}

.login-modal-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
}

.login-modal-icon img {
    margin-top: 13px;
    width: 140px;
    height: 140px;
}

#usernameInput, #loginwords {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: var(--border-color) 2px solid;
    width: 130px;
    height: 52px;
    font-size: 16px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

@media (max-width: 1528px) and (min-width: 768px) {
    .playervsplayergame {
        padding-left: 40px;
    }
    .itemsinthegame {
        padding-left: 80px;
    }
}

.bottom-bar {
    position: sticky;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: var(--surface-color);
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.btn-custom {
    background-color: transparent;
    border: none;
    color: var(--text-color);
}
.btn-custom:hover {
    color: var(--text-color);
}
.dropdown-toggle::after {
    display: none;
}
.bottombardropdown .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
}

#chatwindow {
    height: calc(100vh - 77px);
    flex-direction: column;
}

@media (min-width: 450px) {
    #chatwindow {
        display: flex;
    }
}

@media (max-width: 599px) {
    .card-button {
        --bs-btn-padding-y: 0.25rem;
        --bs-btn-padding-x: 0.5rem;
        --bs-btn-font-size: 0.875rem;
        --bs-btn-border-radius: var(--bs-border-radius-sm);
    }
}

@media (max-width: 1199px) {
    #chatwindow {
        width: 100%;
        z-index: 5;
        display: none;
        background-color: var(--surface-color) !important;
        position: fixed;
        left: 0px;
        bottom: 68px;
        transition: all 0.5s ease-in-out 0s;
    }

    #hamburger-menu {
        display: none;
    }

    #sm-sitenav {
        justify-content: center;    
    }
}

.card-button {
    min-width: 100px;
}

.statsboxcolomn{
    margin-bottom: 8px !important;
}
@media (max-width: 567px) { .statsboxcolomn { margin-bottom: -11px!important; } }

.custompadding{
    padding-right: .1rem !important;
    padding-left: .1rem !important;
}
.vs-section{
    margin-right: -10px;
    margin-left: -10px;
}
.rainbow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(255, 0, 51), orange, rgb(255, 230, 0), rgb(0, 255, 0), rgb(0, 128, 255), rgb(104, 0, 104));
    z-index: 0;
    mask-size: cover;
    opacity: 30%;
}
.shiny {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, white, transparent);
  z-index: 0;
  opacity: 50%;
  animation: shine 2s ease-in-out infinite; 
  background-size: 100% 300%;
}
@keyframes shine {
  0%, 100% {
    background-position: 0 0;
  }
  50% {
    background-position: 0 100%;
  }
}
.itemdepo{
    color: var(--text-color)!important;
    background-color: var(--surface-color);

}
.depoimage{
    background-color: var(--surface-color);
}

.joinbot{
    background-color: var(--surface-color) !important;
    border: var(--border-color) 2px solid !important;
    color: var(--text-color) !important;
}


#viewdicegamemodal {
  background: linear-gradient(165deg,#220044,#0a0017);
  border: 2px solid rgba(150,100,255,.35);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.8);
  padding: 2rem;
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* ❌ no flex-wrap */
}

.match-player {
  text-align: center;
  flex: 1 1 auto;
}

.match-player img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #9f76ff;
  box-shadow: 0 0 14px rgba(150,100,255,.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.match-player img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(170, 120, 255, 0.85);
}

.player-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: .5rem;
}

.player-rank {
  font-size: .85rem;
  opacity: .8;
}

.center-block {
  text-align: center;
  margin-top: -10px;
  flex: 0 0 auto;
}

.vs-text {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-shadow: 0 0 10px #a86dff,0 0 20px #6c4dcf;
}

.total-row {
  display: flex;
  justify-content: center;
  gap: 6rem; /* less gap */
  margin-top: 1rem;
}

.total {
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 0 15px #fff;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .5s ease, transform .5s ease;
}
.total.show {
  opacity: 1;
  transform: scale(1);
}

.dice-row {
  display: flex;
  gap: .8rem;
  justify-content: center;
  margin-top: .5rem;
}
.dice-box {
    position: relative;
    width: 55px;
    height: 55px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(150, 100, 255, 0.15);
    border: 2px solid rgba(150, 100, 255, 0.35);
    box-shadow: 0 0 8px rgba(160, 120, 255, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}
.dice-box:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 16px #b57dff;
}
/* Inventory columns */
#inv1, #inv2 {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#inv1::-webkit-scrollbar,
#inv2::-webkit-scrollbar {
  display: none;
}

.item-list-row {
  background: rgba(150,100,255,.12);
  border: 1px solid rgba(150,100,255,.35);
  border-radius: 14px;
  padding: .6rem;
  margin: .4rem 0;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.item-list-row:hover {
    background-color: rgba(124, 77, 255, 0.2);
}


.item-list-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin-right: .6rem;
}
.viewvalue {
  color: #4cff7f;
  font-weight: 700;
}

/* Tablet & below */
@media (max-width: 991px) {
  .total-row {
    gap: 4rem;
  }
}

/* Mobile only (overrides tablet) */
@media (max-width: 576px) {
  .match-player img {
    width: 70px;
    height: 70px;
  }
  .vs-text {
    font-size: 1.6rem;
  }
  .total {
    font-size: 1.6rem;
  }
  .total-row {
    gap: 2rem; /* this will now win on ≤576px */
  }
  .dice-box {
    width: 35px;
    height: 35px;
  }
}

#modalChoice .modal-dialog { max-width: 520px; }

#customconfirm {
  background: linear-gradient(165deg, #220044 0%, #0a0017 100%);
  border: 2px solid rgba(150,100,255,.35);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(0,0,0,.75);
  overflow: hidden;
  color: var(--text-color);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  animation: confirm-pop .28s ease-out forwards;
}

#customconfirm .modal-body {
  padding-top: 1.25rem !important;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(180,120,255,.16), transparent 65%),
    transparent;
}

#customconfirm h5 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  text-shadow: 0 0 6px rgba(150,100,255,.45);
  margin-bottom: .35rem !important;
}

#customconfirm p {
  opacity: .95;
  margin-top: .25rem;
}

#customconfirm .form-control,
#customInput, #customDropdown {
  background-color: var(--surface-color);
  color: var(--text-color);
  border: var(--border-color) 2px solid;
  border-radius: 12px;
}

#customconfirm .modal-footer {
  border: none;
  padding: 0;
  background: linear-gradient(180deg, rgba(40,0,90,.35), rgba(20,0,40,.6));
}

#customconfirm .modal-footer .btn {
  border-radius: 0;
  padding: .95rem 1rem;
  font-weight: 700;
  letter-spacing: .3px;
}
#customconfirm .modal-footer .btn:first-child { border-right: 1px solid rgba(150,100,255,.2); }

.modal-backdrop.show { opacity: .6; }
.modal-backdrop {
  background: radial-gradient(ellipse at center, rgba(30,0,60,.65), rgba(0,0,0,.8));
}

@keyframes confirm-pop {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.dice-box-mini {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(150, 100, 255, 0.12);
  border: 2px solid rgba(150, 100, 255, 0.35);
  box-shadow: 0 0 6px rgba(160, 120, 255, 0.25);
  margin: 0 3px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  line-height: 40px;
}

.dice-strip{
  position:absolute;top:0;left:0;width:100%;
  will-change:transform;
  animation:scrollUp .6s ease-out forwards;
  --h: 40px;
  --end: 0px;
  --offset: 2px;
}
.dice-strip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  line-height: var(--h);
}
@keyframes scrollUp{
  from{transform:translateY(0)}
  to  {transform:translateY(calc(var(--end) + var(--offset)))}
}

.final-digit{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1;
  font-size: 1.1rem;
}

.dice-box-mini.shake,
#matchDiceModal .dice-box.shake {
  animation: shake .6s infinite;
}
.dice-box-mini.glow,
#matchDiceModal .dice-box.glow {
  animation: glow 1s ease-out;
  border-radius: 8px;
}

@keyframes shake{
  0%{transform:translate(0,0)}25%{transform:translate(2px,-2px)}
  50%{transform:translate(-2px,2px)}75%{transform:translate(2px,2px)}
  100%{transform:translate(0,0)}
}
@keyframes glow{
  0%{box-shadow:0 0 6px rgba(160,120,255,.35)}
  50%{box-shadow:0 0 18px rgba(200,150,255,.9)}
  100%{box-shadow:0 0 8px rgba(160,120,255,.35)}
}

.countdown-box{
  font-size:1.2rem;font-weight:700;color:#fff;width:40px;height:40px;border-radius:50%;
  background:rgba(150,100,255,.15);display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 6px rgba(150,100,255,.35)
}

.total.dicewinner{
  color:#b57dff;
  text-shadow:0 0 20px #b57dff,0 0 35px #9f76ff;
  animation:winnerPulse 1.5s infinite;
}
#matchDiceModal img.dicewinner {
  box-shadow: 0 0 20px 6px rgba(170, 120, 255, 0.9);
  border: 2px solid #b57dff;
  border-radius: 50%;
  animation: purplePulse 2s ease-in-out infinite;
}
@keyframes purplePulse {
  0% {
    box-shadow: 0 0 12px 3px rgba(170, 120, 255, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px 8px rgba(200, 160, 255, 1);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 12px 3px rgba(170, 120, 255, 0.7);
    transform: scale(1);
  }
}
@keyframes winnerPulse{
  0%,100%{text-shadow:0 0 20px #b57dff,0 0 35px #9f76ff;}
  50%{text-shadow:0 0 25px #fff,0 0 40px #c08fff;}
}

@media (max-width: 1080px){
  .gc-players{
    display:grid;
    justify-content: center !important;
  }
  .gc-players .starter{ grid-area:starter; }
  .gc-players .player { grid-area:player; }
  .gc-players .vs     { grid-area:vs; }
  .gc-players .starter-dice{ grid-area:starter-dice; }
  .gc-players .player-dice { grid-area:player-dice; }
  .gc-players .gameimg{ width:48px;height:48px; }
  .gc-players .dice-box-mini{
    width:32px;height:32px;line-height:32px;font-size:.9rem;
  }
  .gc-items{ margin-top:.5rem; }
  .gc-value{ text-align:center; margin-top:.25rem; }
  .gc-actions .vstack{
    display:flex; justify-content:center; gap:.5rem; flex-wrap:wrap;
  }
  .gc-actions .btn{ flex:0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .dice-box-mini.shake,
  #matchDiceModal .dice-box.shake,
  .dice-box-mini.glow,
  #matchDiceModal .dice-box.glow {
    animation: none !important;
  }
}

#matchDiceModal .dice-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}