/* Overrides for the React port: the original template initialised
   slick sliders and WOW animations from jQuery. Without them, keep
   slider containers usable as horizontal scrollers and make sure
   animated elements stay visible. */

.sponsor-slider-react {
  overflow: hidden;
}
.sponsor-slider-react .sponsor-track {
  display: flex;
  align-items: center;
  will-change: transform;
}
.sponsor-slider-react .sponsor-slide {
  padding: 0 15px;
  box-sizing: border-box;
}

.draw-ticket-slider-react {
  position: relative;
}
.draw-ticket-slider-react .ticket-viewport {
  overflow: hidden;
}
.draw-ticket-slider-react .ticket-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}
.draw-ticket-slider-react .ticket-slide {
  padding-right: 20px;
  box-sizing: border-box;
}
.draw-ticket-slider-react .ticket-slide .draw-single-ticket {
  height: 100%;
}

/* WOW.js normally reveals these; without it keep them visible */
.wow {
  visibility: visible !important;
}

/* Event card Claim Now: same row as Price/Points, far right.
   Template sizes the row 75% + 25%; rebalance to fit the button. */
.winner-card__content .content-bottom .number-list-wrapper {
  width: 45%;
}
.winner-card__content .content-bottom .right {
  width: 27%;
}
.event-claim-cell {
  width: 28%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.event-claim-cell button.cmn-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
@media (max-width: 767px) {
  .winner-card__content .content-bottom .number-list-wrapper,
  .winner-card__content .content-bottom .right,
  .event-claim-cell {
    width: 100%;
  }
  .event-claim-cell {
    justify-content: center;
    margin-top: 14px;
  }
}

/* Infinite scroll: loading spinner + end-of-list message */
.infinite-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  min-height: 44px;
}
.infinite-status--end {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
}
.infinite-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ff7200;
  border-radius: 50%;
  animation: infinite-spin 0.7s linear infinite;
}
@keyframes infinite-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Avatar fallback: name's first letter when no profile photo exists */
.avatar-initial {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7200, #b33f00);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}
.avatar-initial--lg {
  font-size: 52px;
}

/* Signed-in header profile button: member photo or name initial */
.user__btn--member {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user__btn--member img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.user__btn-initial {
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Activity history table: the template relied on DataTables' wrapper for
   light text; without it Bootstrap's dark .table color shows through. */
.all-transaction .table {
  --bs-table-color: rgba(255, 255, 255, 0.88);
  --bs-table-bg: transparent;
  --bs-table-hover-color: #ffffff;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}
.all-transaction .table td {
  color: rgba(255, 255, 255, 0.88);
}
.all-transaction .table th {
  color: #b0bbde;
}
.all-transaction .table tbody tr:hover td {
  color: #ffffff;
}

/* Simple table controls for the activity history (DataTables replacement) */
.activity-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.activity-table-controls input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #fff;
  padding: 8px 14px;
  width: 220px;
  margin-left: auto;
}
.th-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.th-sortable i {
  font-size: 13px;
  opacity: 0.6;
}
.th-sortable i.la-sort-up,
.th-sortable i.la-sort-down {
  opacity: 1;
  color: #ff7200;
}
.activity-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.activity-table-info {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}
.activity-pagination {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.activity-pagination button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
}
.activity-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.activity-pagination button.active {
  background: #ff7200;
  border-color: #ff7200;
}

/* Admin panel — the member theme paints dark backgrounds per section,
   so the admin shell brings its own (theme navy palette). */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--navyblue3, #0c2340) 0%, var(--navyblue1, #0d2747) 55%, var(--navyblue2, #022a73) 100%);
}
/* dark-version.css paints p/li/span/a dark gray (#333745cc) for the light
   member sections — re-light them inside the admin shell. Keep span out of
   this list so badge/stat colors below still win. */
.admin-wrapper p,
.admin-wrapper li {
  color: rgba(255, 255, 255, 0.8);
}
.admin-wrapper a {
  color: #ff9147;
}
.admin-wrapper--center {
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px 35px;
  text-align: center;
}
.admin-login-card h3 {
  color: #fff;
  margin-bottom: 12px;
}
.admin-login-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.admin-login-logo {
  max-width: 150px;
  margin-bottom: 18px;
}
.admin-login-icon {
  font-size: 56px;
  color: #ff7200;
  margin-bottom: 8px;
}
.admin-login-error {
  color: #ff6b67;
  font-size: 14px;
  margin-bottom: 14px;
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
}
.admin-sidebar .admin-logo {
  padding: 0 25px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.admin-sidebar .admin-logo img {
  max-width: 170px;
}
.admin-sidebar .admin-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-sidebar .admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 25px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}
.admin-sidebar .admin-nav a:hover,
.admin-sidebar .admin-nav a.active {
  background: rgba(255, 114, 0, 0.15);
  color: #ff7200;
  border-right: 3px solid #ff7200;
}
.admin-main {
  flex-grow: 1;
  padding: 40px;
  min-width: 0;
}
.admin-page-title {
  color: #fff;
  margin-bottom: 8px;
}
.admin-page-sub {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
}
.admin-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
}
.admin-card h4 {
  color: #fff;
  margin-bottom: 20px;
}
.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-stat .value {
  font-size: 32px;
  font-weight: 700;
  color: #ff7200;
}
.admin-stat .label {
  color: rgba(255, 255, 255, 0.65);
}
.admin-table {
  width: 100%;
  color: rgba(255, 255, 255, 0.85);
}
.admin-table th {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  white-space: nowrap;
}
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 12px;
  vertical-align: middle;
}
.admin-input,
.admin-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: #fff;
  padding: 8px 12px;
  width: 100%;
}
.admin-input:focus,
.admin-select:focus {
  outline: none;
  border-color: #ff7200;
}
.admin-select option {
  color: #111;
}
.admin-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}
.admin-btn {
  background: #ff7200;
  border: none;
  color: #fff;
  border-radius: 5px;
  padding: 9px 22px;
  cursor: pointer;
  font-weight: 600;
}
.admin-btn:hover {
  background: #e56600;
}
.admin-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.admin-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.admin-btn--danger {
  background: #d9534f;
}
.admin-btn--sm {
  padding: 5px 12px;
  font-size: 13px;
}
.admin-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
}
.admin-badge--active { background: rgba(40, 167, 69, 0.2); color: #4cd964; }
.admin-badge--inactive { background: rgba(255, 255, 255, 0.12); color: #ccc; }
.admin-badge--soldout { background: rgba(217, 83, 79, 0.2); color: #ff6b67; }
.admin-badge--pending { background: rgba(255, 193, 7, 0.18); color: #ffc107; }
.admin-badge--delivered { background: rgba(40, 167, 69, 0.2); color: #4cd964; }
.admin-badge--cancelled { background: rgba(217, 83, 79, 0.2); color: #ff6b67; }
.admin-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}
.admin-toggle.on {
  background: #ff7200;
}
.admin-toggle.on::after {
  left: 27px;
}
@media (max-width: 991px) {
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-main { padding: 25px 15px; }
}
