.auth-bg {
    background: #0e0e0e;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.center-box {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    width: 400px;
}

.center-box h2 {
    margin-bottom: 20px;
}

.center-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border: none;
    border-radius: 6px;
}

.btn-purple {
    background: #7c3aed;
    border: none;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-purple:hover {
    background: #9b59b6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0e0e0e;
    color: #ffffff;
    line-height: 1.6;
}
a {
    color: #7c3aed;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
main.main-content {
    margin-left: 240px;
    padding: 30px;
}
.main-content {
  margin-left: 250px; /* match your sidebar width */
  padding: 20px;
  color: white;
}

/* Wallet Cards */
.wallet-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}
.card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #aaa;
}
.card .balance,
.card .amount {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}
.card.green {
    border-left: 5px solid #00c853;
}
.card.yellow {
    border-left: 5px solid #ffeb3b;
}
.card.purple {
    border-left: 5px solid #7c3aed;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
}
.btn-gold {
  background-color: #fbc02d;
  color: #222;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none !important;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
  width: 100%;
  max-width: 240px;
}

.btn-gold:hover {
  background-color: #fff176;
  transform: translateY(-2px);
  color: #000;
}

.btn-block {
  display: block;
  margin: 0 auto;
}
.button-stack {
  display: flex;
  flex-direction: column;
  gap: 8px; /* perfect clean gap */
}

.btn-dark {
    background-color: #333;
    color: #fff;
}
.btn {
    background: #2a2a2a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 5px 5px 5px 0;
}

/* Filters */
.filters {
    margin: 20px 0;
}

/* Table */
.tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.tx-table th,
.tx-table td {
    padding: 12px;
    text-align: left;
}
.tx-table thead {
    background-color: #2a2a2a;
}
.tx-table tr:nth-child(even) {
    background-color: #181818;
}

/* Payment Methods */
.payment-methods {
    margin-top: 50px;
}
.methods-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.method-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
    text-align: center;
}
.method-card img {
    width: 50px;
    margin-bottom: 10px;
}
.method-card h4 {
    margin-bottom: 5px;
}
.method-card p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}

.sidebar {
  width: 250px;
  height: 100vh;
  background-color: #111;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  z-index: 1000;
}

.sidebar-logo img {
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar-nav ul li {
  margin: 15px 0;
}

.sidebar-nav ul li a {
  display: block;
  padding: 10px 25px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.sidebar-nav ul li a:hover {
  background-color: #333;
  color: gold;
}


.top-header {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 64px;
    background: #18181c;
    color: #fff;
    display: flex;
    align-items: center; /* ✅ this centers vertically */
    justify-content: space-between;
    padding: 0 40px;
    z-index: 101;
}

.header-left {
    display: flex;
    align-items: center; /* ✅ ensures logo & text align vertically */
    gap: 12px;
}

.logo-icon {
    height: 36px;
    width: auto;
    display: block;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.welcome-msg {
    font-size: 15px;
    color: #fff;
}
.wallet-badge {
    background: #7c3aed;
    color: #fff;
    border-radius: 22px;
    padding: 8px 18px;
    font-weight: bold;
    font-size: 16px;
    margin-left: 8px;
    margin-right: 8px;
    letter-spacing: 1px;
    box-shadow: none;
}
.btn-logout {
    background: #fbc02d;
    color: #222;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 8px;
    transition: background 0.15s;
}
.btn-logout:hover {
    background: #fff;
    color: #7c3aed;
}
body {
    padding-top: 64px;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-content, .dashboard-flex-wrapper {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
  background: #1a1a1a;
  color: #aaa;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #333;
}
.site-footer p {
    margin-bottom: 6px;
}

.wheel-container {
    position: relative;
    text-align: center;
    margin-top: 50px;
}
.wheel-pointer {
    position: relative;
    height: 20px;
    margin-bottom: -20px;
    z-index: 10;
    text-align: center;
}
.arrow-img {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#wheelCanvas {
    background: #1a1a1a; /* lighter than pure black */
    border: 4px solid #fbc02d;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    display: block;
    margin: 30px auto;
}

.wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.prize-box {
    background: #1a1a1a;
    padding: 30px 20px;
    border-radius: 16px;
    border: 2px solid #fbc02d;
    box-shadow: 0 0 20px rgba(251, 192, 45, 0.1);
    color: white;
    width: 250px;
    text-align: left;
}

.prize-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #facc15;
}

.prize-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prize-list li {
    padding: 6px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.coin {
    font-size: 100px;
    text-align: center;
    transition: transform 1s ease-in-out;
    margin: 0 auto;
}
.coin.flip {
    transform: rotateY(720deg);
}
.radio-group input {
    margin-right: 5px;
}
.form-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
}

.coin-history {
    max-height: 400px;
    overflow-y: auto;
}
.tx-table.small {
    font-size: 13px;
}
.tx-table.small th,
.tx-table.small td {
    padding: 6px;
}

.cards {
    font-size: 40px;
    margin-top: 10px;
    min-height: 60px;
}
.cards span {
    margin: 0 4px;
}
.result-msg {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

.cards {
    font-size: 48px; /* Increased from 40px */
    margin-top: 10px;
    min-height: 60px;
}
.cards span {
    margin: 0 5px;
}

.cards span {
    margin: 0 5px;
    display: inline-block;
    transform-style: preserve-3d;
    animation: flipCard 0.6s ease forwards;
    transform: rotateY(90deg);
    opacity: 0;
}

.cards span:nth-child(2) { animation-delay: 0.1s; }
.cards span:nth-child(3) { animation-delay: 0.2s; }
.cards span:nth-child(4) { animation-delay: 0.3s; }
.cards span:nth-child(5) { animation-delay: 0.4s; }

@keyframes flipCard {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    50% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.roulette-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.row {
    display: flex;
    gap: 4px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-auto-rows: 50px;
    gap: 4px;
}

.cell {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2c2c2c;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #555;
}

.cell:hover {
    background-color: #444;
}

.cell.red { background-color: #b91c1c; }
.cell.black { background-color: #000; }
.cell.green { background-color: #065f46; }

.cell.selected {
    outline: 3px solid #facc15;
}

.roulette-spinner {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid gold;
    background: conic-gradient(
        red 0deg 60deg,
        black 60deg 120deg,
        red 120deg 180deg,
        black 180deg 240deg,
        red 240deg 300deg,
        black 300deg 360deg
    );
    transition: transform 3s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-number {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}

.spinner-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
}

.slots-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}

.slot-machine {
    position: relative;
}

.slot-frame {
    display: flex;
    gap: 10px;
    border: 4px solid gold;
    padding: 20px;
    border-radius: 12px;
    background: #111;
    font-size: 48px;
    width: 220px;
    justify-content: center;
    align-items: center;
}

.reel {
    width: 50px;
    height: 50px;
    text-align: center;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
}

.lever {
    position: absolute;
    right: -60px;
    top: 20px;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lever.pull {
    transform: rotate(30deg);
}

.slot-controls {
    max-width: 300px;
}

@keyframes spin {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.tx-table th, .tx-table td {
    padding: 10px;
    text-align: left;
}
.tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.tx-table th {
    background-color: #222;
    color: gold;
}
.tx-table tr:nth-child(even) {
    background-color: #111;
}

.poker-table {
    background: #111;
    padding: 20px;
    border: 3px solid #fbc02d;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
}

.card-row {
    font-size: 32px;
    margin: 10px 0 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.scratch-box {
    padding: 20px;
    background: #111;
    border: 3px dashed #fbc02d;
    border-radius: 10px;
    font-size: 28px;
}

.emoji-row {
    font-size: 48px;
    letter-spacing: 15px;
    transition: all 0.5s ease;
}
.scratch-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.scratch-icon {
    width: 64px;
    height: 64px;
    transition: transform 0.4s ease;
}

.lottery-box {
    margin-top: 20px;
    padding: 15px;
    border: 2px dashed gold;
    border-radius: 10px;
    background: #1a1a1a;
}

.table thead th {
  background-color: #222;
  color: gold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.gold-winner-badge {
  background: linear-gradient(45deg, #ffd700, #ffcc00);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
  font-size: 0.9rem;
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  0% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 1);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
}

.lottery-card {
  min-width: 340px;
  max-width: 400px;
  width: 100%;
}

.lottery-card img,
.card-img-top {
    max-width: 100%;
    max-height: 300px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Profile Ticket Table Alignment Fix */
.table {
  table-layout: fixed;
  width: 100%;
}

.table th, .table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  text-align: center;
  padding: 10px 6px;
}

.table th {
  font-size: 1rem;
  font-weight: bold;
  background: #222;
  color: gold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.table td {
  font-size: 0.98rem;
}

.card .table {
  margin-bottom: 0;
  border-radius: 0 0 10px 10px;
  background: transparent;
}

/* Profile Ticket Table Column Widths */

.profile-tickets-table {
  width: 100%;
  /* Remove table-layout: fixed; to allow natural sizing */
}

.profile-tickets-table th,
.profile-tickets-table td {
  /* Remove nowrap, overflow, and ellipsis for these tables */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  vertical-align: middle;
  text-align: center;
  padding: 10px 6px;
}

.profile-tickets-table th {
  font-size: 1rem;
  font-weight: bold;
  background: #222;
  color: gold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.profile-tickets-table td {
  font-size: 0.98rem;
}

.card .profile-tickets-table {
  margin-bottom: 0;
  border-radius: 0 0 10px 10px;
  background: transparent;
}

.ticket-card {
  width: 420px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Remove number input spinners (Chrome, Safari, Edge) */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Remove number input spinners (Firefox) */
input[type=number] {
  -moz-appearance: textfield;
}

/* Force all table and DataTables elements to use dark theme */
.table, .table-bordered, .table th, .table td, .dataTable, .dataTables_wrapper, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate, .table-responsive, .table thead, .table thead th, .table thead tr, .table tr, .table td, .table th {
  background-color: #181818 !important;
  color: #fff !important;
  border-color: #333 !important;
}
.table thead th, .dataTable thead th, .table thead, .table thead tr, .table thead th {
  background-color: #222 !important;
  color: gold !important;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  border-bottom: 2px solid #444 !important;
}
.table-bordered th, .table-bordered td {
  border: 1px solid #333 !important;
}
/* DataTables dropdown and search box */
.dataTables_length select, .dataTables_filter input, input[type="search"] {
  background: #222 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  border-radius: 6px;
  padding: 6px 10px;
}
.dataTables_length label, .dataTables_filter label {
  color: #fff !important;
}
/* DataTables pagination */
.dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #232323 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  border-radius: 6px;
  margin: 0 2px;
  box-shadow: none !important;
  transition: border 0.2s, background 0.2s;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current.active {
  background: #444 !important;
  color: #fff !important;
  border: 1.5px solid #888 !important;
}
.dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: #888 !important;
  background: #232323 !important;
  border: 1px solid #333 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}
.dataTables_info {
  color: #fff !important;
}
/* Remove white background from table-responsive */
.table-responsive {
  background: transparent !important;
}

/* DataTables pagination: override active/current page button for dark/gold theme */
.dataTables_paginate .pagination .active > a,
.dataTables_paginate .pagination .active > span,
.dataTables_paginate .pagination .current,
.dataTables_paginate .pagination .active,
.dataTables_paginate .pagination .active > a:focus,
.dataTables_paginate .pagination .active > a:hover,
.dataTables_paginate .pagination .active > span:focus,
.dataTables_paginate .pagination .active > span:hover {
    background-color: #444 !important;   /* Dark grey for active/current */
    color: #fff !important;              /* White text */
    border-color: #FFD700 !important;    /* Gold border */
    box-shadow: none !important;         /* Remove any shadow */
    outline: none !important;
}

/* Remove the blue border/focus ring if present */
.dataTables_paginate .pagination .active:focus,
.dataTables_paginate .pagination .active:active {
    outline: none !important;
    box-shadow: none !important;
}

/* --- FORCE OVERRIDE: DataTables/Bootstrap pagination active/current button --- */
.dataTables_wrapper .dataTables_paginate .pagination > .active > a,
.dataTables_wrapper .dataTables_paginate .pagination > .active > span,
.dataTables_wrapper .dataTables_paginate .pagination > .active,
.dataTables_wrapper .dataTables_paginate .pagination > .active > a:focus,
.dataTables_wrapper .dataTables_paginate .pagination > .active > a:hover,
.dataTables_wrapper .dataTables_paginate .pagination > .active > span:focus,
.dataTables_wrapper .dataTables_paginate .pagination > .active > span:hover,
.dataTables_wrapper .dataTables_paginate .pagination > .current,
.dataTables_wrapper .dataTables_paginate .pagination > .current:focus,
.dataTables_wrapper .dataTables_paginate .pagination > .current:hover {
    background-color: #444 !important;   /* Dark grey */
    color: #fff !important;              /* White text */
    border-color: #FFD700 !important;    /* Gold border */
    box-shadow: none !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_paginate .pagination > .active:focus,
.dataTables_wrapper .dataTables_paginate .pagination > .active:active {
    outline: none !important;
    box-shadow: none !important;
}

/* DataTables pagination buttons: dark theme to match site */
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .pagination .page-link {
  background: #232323 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  border-radius: 6px !important;
  margin: 0 2px;
  box-shadow: none !important;
  transition: border 0.2s, background 0.2s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .pagination .page-link:hover {
  background: #333 !important;
  color: #FFD700 !important;
  border-color: #FFD700 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.active,
.dataTables_wrapper .pagination .page-item.active .page-link {
  background: #444 !important;
  color: #FFD700 !important;
  border: 2px solid #FFD700 !important;
  font-weight: bold;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .pagination .page-item.disabled .page-link {
  color: #888 !important;
  background: #232323 !important;
  border: 1px solid #333 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* --- DataTables Bootstrap 5 Pagination Dark Mode Fix --- */
.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
  background: #232323 !important;
  color: #fff !important;
  border: 1px solid #FFD700 !important;
  border-radius: 6px !important;
  margin: 0 2px;
  box-shadow: none !important;
  transition: border 0.2s, background 0.2s;
}
.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link:focus,
.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link:active {
  background: #444 !important;
  color: #FFD700 !important;
  border: 2px solid #FFD700 !important;
  font-weight: bold;
  outline: none !important;
  box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .pagination .page-item.disabled .page-link {
  color: #888 !important;
  background: #232323 !important;
  border: 1px solid #333 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.countdown {
  display: inline-block;
  min-width: 120px;
  white-space: nowrap;
  text-align: left;
}

/* --- Ensure gold button is always visible, even in modals --- */
.btn-gold {
  background-color: #FFD700 !important;
  color: #222 !important;
  border: 2px solid #FFD700 !important;
  font-weight: bold;
  box-shadow: 0 2px 8px #FFD70033;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-gold:hover, .btn-gold:focus {
  background-color: #fff176 !important;
  color: #000 !important;
  border-color: #FFD700 !important;
}
.modal-footer .btn-gold {
  background-color: #FFD700 !important;
  color: #222 !important;
  border: 2px solid #FFD700 !important;
}

.card-transparent {
  background: transparent !important;
  box-shadow: none !important;
}

.card, .card-body {
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card-title, .card h2, .card h3, .card h4, .card h5, .card h6, .card p {
  text-align: center !important;
  width: 100%;
}
