/* ========================================
   SHARED PAGE STYLES
   ======================================== */
.page-breadcrumb {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--color-text-dim);
}
.page-breadcrumb a {
  color: var(--color-text-muted);
}
.page-breadcrumb a:hover {
  color: var(--color-primary);
}
.bc-sep {
  margin: 0 6px;
  color: var(--color-text-dim);
}

/* ========================================
   REGISTER PAGE — katakjitu-inspired horizontal layout
   Two sections (Account + Bank) with label-left, input-right
   ======================================== */
.register-page {
  padding: 24px 20px 60px;
  max-width: 720px;
  margin: 0 auto;
}
.register-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: var(--color-text-white);
}

/* General error alert at top of form */
.reg-alert-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 8px;
  color: #ef4444;
  font-size: 13px;
}
.reg-alert-error svg { flex-shrink: 0; }

/* Form container */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section block — groups fields with a header divider */
.reg-section {
  margin-bottom: 8px;
}
.reg-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--pc-primary-a30);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}
.reg-section-header svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Horizontal field row: label left, input right — like katakjitu */
.reg-field {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.reg-label {
  width: 170px;
  min-width: 170px;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-light);
  text-align: right;
  line-height: 1.3;
}
.req {
  color: #ef4444;
  font-weight: 700;
}
.reg-input-wrap {
  flex: 1;
  min-width: 0;
}

/* Shared form input styles */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--color-bg-darkest);
  border: 1px solid var(--color-bg-lighter);
  border-radius: 6px;
  color: var(--color-text-white);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--pc-primary-a15);
}
.form-input::placeholder {
  color: var(--color-text-dim);
}
.form-input.input-error {
  border-color: #ef4444;
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8E8F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Phone +62 prepend badge — orange accent like katakjitu */
.input-with-prepend {
  display: flex;
  align-items: stretch;
}
.input-prepend {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px 0 0 6px;
  white-space: nowrap;
  border: 1px solid var(--color-primary);
  border-right: none;
}
.input-prepended {
  border-radius: 0 6px 6px 0;
}

/* Field validation error text */
.field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #ef4444;
}

/* Password eye toggle — positioned inside the input */
.input-pw-wrap {
  position: relative;
}
.input-pw-wrap .form-input {
  padding-right: 40px;
}
.pw-eye-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dim);
  padding: 2px;
  display: flex;
  align-items: center;
}
.pw-eye-toggle:hover {
  color: var(--color-text-light);
}

/* Real-time validation indicator (green check / red X) */
.reg-check-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  min-height: 18px;
}

/* Submit button — full width, prominent */
.reg-submit-wrap {
  margin-top: 24px;
  padding-left: 186px; /* align with input column (label 170px + 16px gap) */
}
.btn-register {
  width: 100%;
  height: 44px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Footer link: already have account? */
.reg-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pc-primary-a15);
  font-size: 13px;
  color: var(--color-text-muted);
}
.reg-login-link {
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 6px;
  text-decoration: none;
}
.reg-login-link:hover {
  text-decoration: underline;
}

/* Misc shared */
.form-hint {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-top: 4px;
  display: block;
}
.btn-lg {
  padding: 12px 48px;
  font-size: 15px;
}
.btn-full {
  width: 100%;
}

/* ========================================
   GAMES PAGE
   ======================================== */
.games-category-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 100%);
}
.games-category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--pc-primary-shade-mid) 0%, var(--pc-primary-shade-dark) 100%);
  border: 2px solid var(--pc-primary-a30);
  color: var(--color-text-white);
  transition: all 0.2s;
}
.cat-tab:hover, .cat-tab.active {
  background: linear-gradient(180deg, var(--pc-primary-shade-light) 0%, var(--pc-primary-shade-mid) 100%);
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px var(--pc-primary-a20);
  color: var(--color-text-white);
}
.cat-tab-emoji { font-size: 18px; }
.cat-tab-icon { width: 20px; height: 20px; display: block; filter: brightness(1.2); }

/* Category bar above the games section — full width */
.games-cat-bar {
  margin-bottom: 0;
}
.games-page {
  padding: 0 16px 40px;
}
.games-layout {
  display: flex;
  gap: 20px;
}
.games-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.sidebar-search {
  margin-bottom: 16px;
}
.sidebar-search-input {
  height: 40px;
  font-size: 13px;
  background: var(--color-bg-darkest);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--color-text-light);
  padding: 0 12px;
  width: 100%;
}
.sidebar-search-input::placeholder {
  color: var(--color-text-dim);
}
.sidebar-search-input:focus {
  border-color: var(--color-primary);
  outline: none;
}
.sidebar-providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.sidebar-provider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
/* Square provider icon box — larger, with dark bg like katakjitu */
.provider-icon-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
  padding: 4px;
}
.provider-icon-box:hover {
  border-color: var(--color-primary);
}
.provider-box-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
/* HOT badge on provider */
.provider-hot-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e74c3c;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.3;
}
.provider-name {
  font-size: 10px;
  color: var(--color-text-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.sidebar-section {
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
}
.games-main {
  flex: 1;
  min-width: 0;
}
.games-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.game-card-grid {
  cursor: pointer;
}
.game-card-img-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 6px rgba(212, 253, 7, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.game-card-grid:hover .game-card-img-grid {
  border-color: var(--color-primary);
  box-shadow: 0 0 14px rgba(212, 253, 7, 0.35);
}
/* Game card image fill */
.game-card-img-grid img.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Game card info below the image */
.game-card-grid .game-card-info {
  padding: 6px 4px 2px;
  text-align: center;
}
.game-card-grid .game-card-name {
  font-size: 11px;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
/* Active provider highlight in sidebar */
.sidebar-provider-item.is-active .provider-icon-box {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--pc-primary-a20);
}
/* New badge on game card */
.game-badge-new {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--color-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
/* Game card overlay — play button on hover */
.game-card-img-grid .game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}
.game-card-grid:hover .game-card-overlay {
  opacity: 1;
}

/* Tag filter bar above game grid */
.games-tag-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.games-tag-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--color-bg-lighter);
  color: var(--color-text-light);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.games-tag-btn:hover, .games-tag-btn.active {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  border-color: var(--color-primary);
}

/* Pagination bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.pagination-info {
  font-size: 12px;
  color: var(--color-text-dim);
}
.pagination-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-bg-lighter);
  color: var(--color-text-light);
  background: transparent;
  transition: all 0.2s;
}
.page-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-btn.active {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  border-color: var(--color-primary);
  font-weight: 700;
}
.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.page-dots {
  font-size: 13px;
  color: var(--color-text-dim);
  padding: 0 4px;
}

/* ========================================
   PROMOTION PAGE
   ======================================== */
.promo-page {
  padding: 20px 24px 60px;
}
.promo-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
}
.promo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.promo-tab {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-bg-lighter);
  color: var(--color-text-light);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.promo-tab.active, .promo-tab:hover {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  border-color: var(--color-primary);
}
.promo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Promo card: full-width banner with click-to-reveal detail --- */
.promo-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-card, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s;
}
.promo-card:hover {
  border-color: rgba(255,255,255,0.12);
}

/* Full-width clickable banner image */
.promo-banner-img {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  line-height: 0; /* remove gap below img */
}
.promo-banner-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.promo-banner-img:hover img {
  transform: scale(1.02);
}
/* Overlay with "View Detail" button on hover */
.promo-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.promo-banner-img:hover .promo-banner-overlay {
  opacity: 1;
}
.promo-view-detail-btn {
  padding: 8px 24px;
  border-radius: 20px;
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Text-only promo header (no image) — clickable row */
.promo-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.promo-text-header:hover {
  background: rgba(255,255,255,0.04);
}
.promo-text-header .promo-title {
  margin: 0;
  font-size: 16px;
}
.promo-toggle-icon {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}
/* Rotate arrow when open */
.promo-card.is-open .promo-toggle-icon {
  transform: rotate(180deg);
}

/* Detail body — revealed on click */
.promo-detail {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: promoSlideDown 0.25s ease;
}
.promo-detail .promo-title {
  margin-bottom: 10px;
}
.promo-detail .promo-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
}
@keyframes promoSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Infinite scroll loader spinner */
.promo-loader {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.promo-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: promoSpin 0.7s linear infinite;
}
@keyframes promoSpin {
  to { transform: rotate(360deg); }
}

/* End-of-list marker */
.promo-end {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  color: var(--color-text-muted);
  font-size: 13px;
  opacity: 0.6;
}

/* ========================================
   CONTACT US PAGE
   ======================================== */
.contact-page-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-bg-card, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text-white);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.contact-card:hover {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-card-name {
  font-size: 15px;
  font-weight: 600;
}
.contact-card-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card-arrow {
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.contact-card:hover .contact-card-arrow {
  opacity: 0.8;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.promo-card-banner {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 32px 40px;
  min-height: 200px;
  position: relative;
}
.promo-banner-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.promo-decor-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.promo-decor-circle.c1 {
  width: 300px; height: 300px;
  background: var(--color-primary);
  top: -100px; right: -50px;
}
.promo-decor-circle.c2 {
  width: 200px; height: 200px;
  background: var(--color-accent-gold);
  bottom: -80px; left: 20%;
}
.promo-decor-circle.c3 {
  width: 150px; height: 150px;
  background: #fff;
  top: 20%; left: 40%;
}
.promo-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.promo-mascot-wrap {
  width: 120px;
  height: 140px;
  flex-shrink: 0;
}
.promo-mascot-figure {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.promo-mascot-head {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}
.promo-mascot-body {
  width: 70px;
  height: 70px;
  border-radius: 14px 14px 0 0;
  margin-top: -8px;
}
.promo-percent {
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(180deg, #fff 30%, var(--color-accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.promo-banner-right {
  margin-left: auto;
  text-align: right;
  position: relative;
  z-index: 2;
}
.promo-banner-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-text-white);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  display: block;
  margin-bottom: 8px;
  line-height: 1.2;
}
.promo-brand-tag {
  display: inline-block;
}

/* ========================================
   CONTACT US PAGE
   ======================================== */
.contact-page {
  padding: 20px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-livechat-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 32px;
}
.livechat-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pc-primary-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-article {
  padding-top: 16px;
}
.contact-article h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-article h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
}
.contact-article h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.contact-article p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ========================================
   RTP PAGE
   ======================================== */
.rtp-hero {
  position: relative;
}
.rtp-hero-bg {
  height: 320px;
  background: linear-gradient(135deg, var(--pc-primary-bg-tint-subtle) 0%, var(--pc-primary-bg-tint) 50%, var(--pc-primary-bg-tint-subtle) 100%);
  position: relative;
  overflow: hidden;
}
.rtp-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, var(--pc-primary-a05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--pc-gold-a10) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0px, transparent 60px, rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 61px);
}
.rtp-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.rtp-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}
.rtp-hero-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-white);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.rtp-hero-title {
  font-size: 64px;
  font-weight: 900;
  color: var(--color-text-white);
  line-height: 1;
  margin: 8px 0;
  font-style: italic;
  text-shadow: 4px 4px 16px rgba(0,0,0,0.5);
}
.rtp-hero-subtitle2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 6px;
}
.rtp-hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.rtp-hero-buttons .btn {
  min-width: 100px;
}

.rtp-info-bar {
  background: linear-gradient(90deg, var(--color-bg-medium), var(--color-bg-light));
  padding: 16px 24px;
}
.rtp-info-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rtp-info-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.rtp-info-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  flex: 1;
}
.rtp-slot-machine {
  display: flex;
  gap: 4px;
}
.rtp-slot-reel {
  width: 36px;
  height: 36px;
  background: var(--color-bg-darkest);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--color-accent-gold);
}

.rtp-page {
  padding: 24px 24px 60px;
}
.rtp-section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}
.rtp-provider-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rtp-provider-tabs::-webkit-scrollbar { display: none; }
.rtp-provider-tab {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-bg-lighter);
  color: var(--color-text-light);
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s;
}
.rtp-provider-tab.active, .rtp-provider-tab:hover {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  border-color: var(--color-primary);
  font-weight: 700;
}

.rtp-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.rtp-game-card {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s;
}
.rtp-game-card:hover {
  border-color: var(--color-primary);
}
.rtp-game-img {
  aspect-ratio: 1;
  overflow: hidden;
}
.rtp-game-img .game-img-visual {
  border-radius: 0;
}
.rtp-game-info {
  padding: 8px 10px;
  background: var(--color-bg-dark);
}
.rtp-game-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-light);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.rtp-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rtp-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.rtp-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s;
}
.rtp-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ========================================
   INFO CENTER PAGE
   ======================================== */
.info-center-page {
  padding: 20px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}
.info-center-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.info-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.info-tab {
  padding: 6px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-red);
  color: var(--color-text-white);
}
.info-article h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.info-article h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
}
.info-article h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.info-article p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ========================================
   ACCOUNT PAGES (Deposit, Withdraw, Profile)
   ======================================== */
.account-page {
  padding: 20px 24px 60px;
  max-width: 700px;
  margin: 0 auto;
}
.account-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.account-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
}
.account-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-white);
}

/* Deposit */
.deposit-method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.deposit-method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.02);
}
.deposit-method-item.active, .deposit-method-item:hover {
  border-color: var(--color-primary);
  background: var(--pc-primary-a05);
}
.method-icon { font-size: 24px; }
.method-icon-img { width: 28px; height: 28px; display: block; }
.method-name { font-size: 11px; color: var(--color-text-light); font-weight: 500; }

.deposit-bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.deposit-bank-item {
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
}
.deposit-bank-item.active, .deposit-bank-item:hover {
  border-color: var(--color-primary);
}

.quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.quick-amount-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--color-bg-lighter);
  color: var(--color-text-light);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-amount-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Withdraw */
.withdraw-balance-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--pc-primary-a05), color-mix(in srgb, var(--color-secondary) 5%, transparent));
  border-radius: 12px;
  border: 1px solid var(--pc-primary-a15);
}
.wd-balance-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.wd-balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
}
.wd-bank-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.wd-bank-detail {
  display: flex;
  flex-direction: column;
}
.wd-bank-name { font-size: 14px; font-weight: 600; }
.wd-bank-acc { font-size: 12px; color: var(--color-text-muted); }
.wd-bank-holder { font-size: 12px; color: var(--color-text-dim); }

/* Profile */
.profile-layout {
  display: flex;
  gap: 24px;
}
.profile-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pc-primary-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.profile-username {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-member-since {
  font-size: 11px;
  color: var(--color-text-dim);
}
.profile-nav {
  display: flex;
  flex-direction: column;
}
.profile-nav-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.profile-nav-item:hover, .profile-nav-item.active {
  color: var(--color-primary);
  background: rgba(255,255,255,0.03);
}
.profile-nav-logout {
  color: var(--color-red);
}
.profile-content {
  flex: 1;
}
.profile-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.profile-info-label {
  font-size: 13px;
  color: var(--color-text-muted);
}
.profile-info-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-white);
}
.balance-highlight {
  color: var(--color-primary);
  font-weight: 700;
}
.status-badge {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.status-active {
  background: color-mix(in srgb, var(--color-green) 15%, transparent);
  color: var(--color-green);
}

/* ========================================
   MOBILE RESPONSIVE - PAGES
   ======================================== */
@media (max-width: 768px) {
  /* Register page — stack to vertical on mobile */
  .reg-field {
    flex-direction: column;
    gap: 4px;
  }
  .reg-label {
    width: 100%;
    min-width: 100%;
    text-align: left;
    padding-top: 0;
    margin-bottom: 2px;
  }
  .reg-submit-wrap {
    padding-left: 0;
  }
  .register-page {
    padding: 16px 12px 40px;
    max-width: 100% !important;
  }
  .reg-input-wrap {
    width: 100%;
  }
  .form-input, .form-select, .input-pw-wrap {
    width: 100%;
  }
  /* Hide floating buttons on auth pages to avoid overlap with form */
  .page-auth .mobile-float-shortcuts,
  .page-auth .contact-fab-wrap {
    display: none !important;
  }
  .games-layout {
    flex-direction: column;
  }
  .games-sidebar {
    width: 100%;
  }
  .sidebar-providers {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .sidebar-providers::-webkit-scrollbar { display: none; }
  .sidebar-provider-item {
    min-width: 70px;
    max-width: 70px;
  }
  .provider-icon-box {
    padding: 6px;
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  .games-tag-bar {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .games-tag-bar::-webkit-scrollbar { display: none; }
  .pagination-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .promo-card-banner {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
    min-height: 160px;
  }
  .promo-banner-left {
    flex-direction: column;
  }
  .promo-mascot-wrap {
    width: 80px;
    height: 100px;
  }
  .promo-percent {
    font-size: 48px;
  }
  .promo-banner-right {
    margin-left: 0;
    text-align: center;
  }
  .promo-banner-title {
    font-size: 18px;
  }
  .rtp-hero-bg { height: 220px; }
  .rtp-hero-title { font-size: 36px; }
  .rtp-hero-subtitle { font-size: 14px; }
  .rtp-hero-subtitle2 { font-size: 16px; letter-spacing: 3px; }
  .rtp-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .profile-layout {
    flex-direction: column;
  }
  .profile-sidebar {
    width: 100%;
  }
  .deposit-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deposit-bank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-tab {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* ========================================
   RTP EXPLANATION SECTION
   ======================================== */
.rtp-explanation {
  margin-top: 40px;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.rtp-explanation-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 16px;
}
.rtp-explanation h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 20px 0 10px;
}
.rtp-explanation p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ========================================
   INFO CENTER TABS
   ======================================== */
.info-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.info-tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.info-tab:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-text-white);
}
.info-tab.active {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  border-color: var(--color-primary);
}
.info-tab-content {
  display: none;
}
.info-tab-content.active {
  display: block;
}
.info-tab-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 20px 0 10px;
}
.info-tab-content p, .info-tab-content li {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}
.info-tab-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.faq-item {
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.faq-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 8px;
}
.faq-answer {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   PROFILE BUTTON STYLES
   ======================================== */
.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger-outline:hover {
  background: color-mix(in srgb, var(--color-red) 10%, transparent);
  color: var(--color-red);
}
/* Functional CSS extracted from default_template styles.css for lottery, deposit, withdraw, profile views */

/* ===========================
   SECTION 1: section-title (lines 267-277)
   =========================== */

/* Sections */
.section-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.section-title span {
    color: var(--accent-soft);
}

/* ===========================
   SECTION 2: page-section (lines 380-382)
   =========================== */

.page-section {
    padding: 1.5rem 0 1.5rem;
}

/* ===========================
   SECTION 3: results-card, results-tabs, results-table,
   results-period-link, result-pill (lines 1090-1195)
   =========================== */

/* Outer card */
.results-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

/* ===========================
   TABS
   =========================== */
.results-tabs {
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-soft);
}

.results-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
}

.results-tabs .nav-link:hover {
    color: var(--text-main);
}

/* ACTIVE TAB styling – now fully dark theme compatible */
.results-tabs .nav-link.active {
    color: var(--accent);
    background: rgba(250, 204, 21, 0.08);
    /* faint accent glow */
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
}

/* ===========================
   TAB CONTENT AREA
   =========================== */
.results-tab-content {
    background: var(--secondary-bg);
}

/* ===========================
   TABLE STYLING
   =========================== */
.results-table {
    color: var(--text-main);
    font-size: 0.8rem;
    background: var(--secondary-bg);
}

.results-table thead th {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Rows */
.results-table tbody tr {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-soft);
}

.results-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.90);
}

.results-table tbody tr:hover {
    background: rgba(31, 41, 55, 0.95);
}

/* Periode clickable link */
.results-period-link {
    color: var(--accent-soft);
    font-weight: 600;
}

.results-period-link:hover {
    color: var(--accent);
}

/* Result badge */
.result-pill {
    display: inline-block;
    min-width: 52px;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.78rem;

    background: rgba(34, 197, 94, 0.12);
    /* success tone */
    color: var(--accent-success);
    border: 1px solid rgba(34, 197, 94, 0.45);
}

/* ===========================
   SECTION 4: results-table override (lines 1500-1503)
   =========================== */

.results-table>:not(caption)>*>* {
    background-color: var(--primary-bg) !important;
    color: var(--text-main) !important;
}

/* ===========================
   SECTION 5: alert-custom, field-error, password-toggle (lines 1721-1776)
   =========================== */

.alert-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* SUCCESS */
.alert-success-custom {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: var(--accent-success);
}

/* ERROR */
.alert-error-custom {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

/* ICONS */
.alert-custom i {
    font-size: 1rem;
}

/* FIELD ERROR */
.field-error {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
}

.password-toggle-btn:hover {
    color: var(--text-main);
}

/* ===========================
   SECTION 6: pagination (lines 1782-1837)
   =========================== */

.pagination-container {
    padding: 1rem 1.2rem;
    background: var(--secondary-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
}

.pagination-inner {
    gap: 1.5rem;
    /* a bit more space between text and buttons */
}

.pagination {
    gap: 0.45rem;
}

/* base pill */
.pagination .page-item .page-link {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    transition: 0.2s;
    font-weight: 600;
    font-size: 0.8rem;
}

.pagination .page-item .page-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-main);
}

/* active (current) page */
.pagination .page-item.active .page-link {
    background: var(--accent) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35);
}

/* disabled arrows / dots */
.pagination .page-item.disabled .page-link {
    opacity: 0.3;
    pointer-events: none;
}

/* make the ellipsis look a bit softer */
.pagination .page-item.disabled .page-link {
    background: transparent;
}

/* ===========================
   SECTION 7: market-info-row through responsive (lines 1845-1967)
   =========================== */

.market-info-row {
    background: var(--card-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

/* Left side: name + URL */
.market-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.market-name {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-main);
}

.market-url {
    font-size: 0.8rem;
    color: var(--accent-soft);
    text-decoration: none;
    word-break: break-all;
}

.market-url:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Right side: days + times */
.market-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

/* Day badges */
.market-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
}

.market-day {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--secondary-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}

.market-day.active {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: var(--primary-bg);
}

/* Close / Draw chips */
.market-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.market-chip {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--border-soft);
    background: var(--primary-bg);
    color: var(--text-main);
}

.market-chip.chip-type {
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.market-chip.chip-close {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
}

.market-chip.chip-draw {
    border-color: var(--accent-info);
    color: var(--accent-info);
}

/* Responsive: stack on small screens */
@media (max-width: 576.98px) {
    .market-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-meta {
        align-items: flex-start;
    }

    .market-days,
    .market-times {
        justify-content: flex-start;
    }
}

/* ===========================
   SECTION 8: deposit + withdraw + results-table-compact (lines 2177-2524)
   =========================== */

/* ============================
   DEPOSIT – SHARED
   ============================ */

.deposit-tabs .nav-link {
    background: transparent;
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
}

.deposit-tabs .nav-link.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.deposit-tabs .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-soft);
}

/* eWallet method tabs */
.deposit-method-tabs .nav-link {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
}

.deposit-method-tabs .nav-link.active {
    background: rgba(37, 99, 235, 0.22);
    color: var(--accent);
    font-weight: 600;
}

/* Online/offline dot indicator inside method tab buttons */
.method-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Green pulsing dot for online */
.method-status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.6);
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.6); }
    50% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.9); }
}

/* Red static dot for offline */
.method-status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

/* Dim the entire tab button when method is offline */
.deposit-method-tabs .nav-link.method-offline {
    opacity: 0.5;
    position: relative;
}

.deposit-method-tabs .nav-link.method-offline:hover {
    opacity: 0.7;
}

/* Offline detail card gets a subtle dimmed overlay */
.deposit-detail-card.card-offline {
    opacity: 0.6;
    position: relative;
}

.deposit-detail-card.card-offline::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Amount row */
.deposit-amount-row .text-accent {
    color: var(--accent);
    font-weight: 600;
}

.deposit-amount-input .input-group-text {
    background: var(--secondary-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}

.deposit-amount-input .form-control {
    background: var(--secondary-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

.deposit-amount-input .form-control::placeholder {
    color: var(--text-muted);
}

.btn-outline-accent {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
    font-weight: 600;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #000;
}

/* Bank / eWallet info card */
.deposit-detail-card {
    background: var(--card-bg);
    border-radius: 0.9rem;
    border: 1px solid var(--border-soft);
    padding: 1rem 1rem 1rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.deposit-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.deposit-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Status pill */
.status-pill {
    font-size: 0.65rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-online {
    background: rgba(34, 197, 94, 0.14);
    color: var(--accent-success);
    border: 1px solid rgba(34, 197, 94, 0.45);
}

/* Summary box (right side of bank) */
.deposit-summary-box {
    background: var(--secondary-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    padding: 0.9rem 1rem;
}

.deposit-summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.deposit-summary-amount {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.15rem;
    color: var(--accent-success);
}

/* Small soft button (copy) */
.btn-xs {
    padding: 0.1rem 0.55rem;
    font-size: 0.68rem;
}

.btn-soft {
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-soft:hover {
    background: rgba(148, 163, 184, 0.3);
}

/* eWallet section title */
.deposit-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Placeholder blocks */
.deposit-placeholder {
    padding: 1rem 0;
    font-size: 0.85rem;
}

/* Make small text size available */
.text-xs {
    font-size: 0.75rem;
}

/* ============================
   WITHDRAW – SHARED
   ============================ */

.withdraw-tabs .nav-link {
    background: transparent;
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
}

.withdraw-tabs .nav-link.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.withdraw-tabs .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-soft);
}

/* eWallet method tabs */
.withdraw-method-tabs .nav-link {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
}

.withdraw-method-tabs .nav-link.active {
    background: rgba(37, 99, 235, 0.22);
    color: var(--accent);
    font-weight: 600;
}

/* Amount row */
.withdraw-amount-row .text-accent {
    color: var(--accent);
    font-weight: 600;
}

.withdraw-amount-input .input-group-text {
    background: var(--secondary-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}

.withdraw-amount-input .form-control {
    background: var(--secondary-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

.withdraw-amount-input .form-control::placeholder {
    color: var(--text-muted);
}


/* Bank / eWallet info card */
.withdraw-detail-card {
    background: var(--card-bg);
    border-radius: 0.9rem;
    border: 1px solid var(--border-soft);
    padding: 1rem 1rem 1rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.withdraw-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.withdraw-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Summary box (right side of bank) */
.withdraw-summary-box {
    background: var(--secondary-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    padding: 0.9rem 1rem;
}

.withdraw-summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.withdraw-summary-amount {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.15rem;
    color: var(--accent-success);
}

/* eWallet section title */
.withdraw-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Placeholder blocks */
.withdraw-placeholder {
    padding: 1rem 0;
    font-size: 0.85rem;
}


/* Base badge */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    line-height: 1;
}

/* ONLINE (Green) */
.status-badge.online {
    background: rgba(34, 197, 94, 0.15);
    /* Soft green */
    color: #22c55e;
    /* Accent green */
    border-color: rgba(34, 197, 94, 0.35);
    /* Outline */
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.25);
}

/* OFFLINE (Red) */
.status-badge.offline {
    background: rgba(239, 68, 68, 0.18);
    /* Soft red */
    color: #ef4444;
    /* Accent red */
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.25);
}



/* COMPACT TABLE FOR TRANSACTIONS */
.results-table-compact tbody tr {
    background: rgba(15, 23, 42, 0.96);
}

.results-table-compact td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* ===========================
   SECTION 9: results-modal (lines 2798-2845)
   =========================== */

.border-color: var(--accent);


/* Modal look & feel */
.results-modal .modal-content.results-modal-content {
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

.results-modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%);
}

/* Search bar */
.results-search-bar .input-group {
    max-width: 320px;
}

.results-search-addon {
    background: var(--secondary-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}

.results-search-input {
    background: #ffffff;
    color: #111827;
    border: 1px solid var(--border-soft);
}

.results-search-input::placeholder {
    color: #6b7280;
}

/* Keep your existing table + tab styles working as before */
.results-modal .results-card {
    background: var(--secondary-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    padding: 0.75rem 0.75rem 0.5rem;
}

/* ===========================
   SECTION 10: account/profile styles (lines 2920-3350)
   =========================== */

/* ===========================
   ACCOUNT PAGE (TABS + CARDS)
   =========================== */

.account-wrapper {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.account-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-on-surface-secondary);
}

/* Tabs */

.account-tabs {
    display: inline-flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-full);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-level-1);
    flex-wrap: wrap;
}

.account-tab-button {
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-medium);
    color: var(--color-on-surface-secondary);
    background: transparent;
    border-radius: var(--border-radius-full);
    transition: all var(--animation-duration-fast) var(--animation-curve-primary);
    white-space: nowrap;
}

.account-tab-button:hover {
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.account-tab-button--active {
    color: var(--accessible-primary-foreground);
    background: linear-gradient(135deg,
            var(--color-primary),
            var(--color-primary-90));
    box-shadow: 0 0 16px rgba(5, 199, 184, 0.35);
}

/* Tab content */

.account-tabs-content {
    margin-top: var(--spacing-lg);
}

.account-tab-pane {
    display: none;
}

.account-tab-pane--active {
    display: block;
}

/* Layout */

.account-layout {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 992px) {
    .account-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

/* Cards (reuse .results-card look) */

.account-card {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.account-card-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
    font-size: var(--font-size-sm);
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.account-card-body {
    padding: var(--spacing-lg);
}

/* Row items */

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--font-size-sm);
    gap: var(--spacing-sm);
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-on-surface);
}

.account-value {
    color: var(--color-on-surface-secondary);
    text-align: right;
    flex-shrink: 0;
}

.account-ref-link a {
    color: var(--color-accent);
}

.account-ref-link a:hover {
    text-decoration: underline;
}

/* Summary cards (referral) */

.account-summary-card {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    box-shadow: var(--shadow-level-1);
}

.account-summary-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-on-surface-secondary);
    margin-bottom: var(--spacing-xs);
}

.account-summary-value {
    font-size: var(--font-size-xl);
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
}

/* Helper text */

.account-helper-text {
    font-size: var(--font-size-xs);
    color: var(--color-on-surface-secondary);
}

/* Password form tweaks */

.account-password-form .account-form-label {
    font-size: var(--font-size-xs);
    color: var(--color-on-surface-secondary);
}

/* ===========================
   ACCOUNT PAGE LAYOUT
   =========================== */

.account-container {
    max-width: 78rem;
    margin: 0 auto;
}

.account-header {
    margin-bottom: 1.5rem;
}

.account-title {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-subtitle {
    margin-top: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--color-on-surface-secondary);
}

/* Tabs */

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--color-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    margin-bottom: 1.75rem;
}

.account-tab-btn {
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    font-size: var(--font-size-sm);
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-medium);
    border-radius: 999px;
    background: transparent;
    color: var(--color-on-surface-secondary);
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.25, 1, 0.3, 1);
}

.account-tab-btn i {
    font-size: 0.9em;
}

.account-tab-btn:hover {
    color: var(--dl-color-theme-accent1);
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

.account-tab-btn.is-active {
    color: var(--dl-color-theme-accent1);
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    box-shadow: var(--theme-glow);
}

/* Panels */

.account-tabs-panels {
    margin-top: 0.5rem;
}

.account-tab-panel {
    display: none;
}

.account-tab-panel.is-active {
    display: block;
}

/* Grid layout for profile column vs rekening column */

.account-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .account-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

/* Cards */

.account-card {
    background: var(--color-surface-elevated);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.account-card-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.16);
    font-size: var(--font-size-sm);
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.account-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

/* Info rows */

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--font-size-sm);
    gap: 0.75rem;
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-on-surface);
}

.account-value {
    color: var(--color-on-surface-secondary);
    text-align: right;
}

/* Referral summary */

.account-summary-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .account-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.account-summary-card {
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at top left,
            rgba(20, 184, 166, 0.22),
            transparent 55%),
        var(--color-surface-elevated);
}

.account-summary-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-on-surface-secondary);
    margin-bottom: 0.25rem;
}

.account-summary-value {
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
}

/* Small helper text */

.account-helper-text {
    font-size: var(--font-size-xs);
    color: var(--color-on-surface-secondary);
}

/* Make ledger card pagination nicely separated */

.account-ledger-card .pagination-container {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* --- Account tabs: stronger active state --- */
.account-tab-btn.is-active {
    color: var(--dl-color-theme-accent1);
    background: linear-gradient(135deg,
            var(--theme-primary),
            var(--theme-secondary));
    box-shadow: var(--theme-glow);
    font-weight: var(--font-weight-semibold);
    position: relative;
}

/* small glowing underline so it's clearly active */
.account-tab-btn.is-active::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: -0.18rem;
    height: 2px;
    border-radius: 999px;
    background: var(--theme-primary);
    opacity: 0.85;
}

/* --- Account tabs: mobile layout fix --- */
@media (max-width: 767.98px) {
    .account-tabs {
        flex-direction: column;
        align-items: stretch;
        border-radius: 1rem;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .account-tab-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .account-tab-btn.is-active::after {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.25rem;
        /* move underline inside the pill on mobile */
    }
}

/* ========================================
   PORTAL CLASSIC — ACCOUNT PAGES (profile, deposit, withdraw, histories)
   Replaces Bootstrap-based default_template styling
   ======================================== */

/* Account page container */
.pc-account-page {
  padding: 20px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}
.pc-account-header {
  margin-bottom: 16px;
}
.pc-account-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-white);
  margin: 0;
}

/* Account tabs — horizontal scroll on mobile */
.pc-account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pc-account-tabs::-webkit-scrollbar { display: none; }
.pc-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.pc-tab:hover { color: var(--color-text-white); }
.pc-tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.pc-tab svg { flex-shrink: 0; }

/* Card */
.pc-card {
  background: var(--color-bg-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.pc-card-header {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-card-body {
  padding: 16px 20px;
}

/* Info rows (label: value) */
.pc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pc-info-row:last-child { border-bottom: none; }
.pc-info-label {
  font-size: 13px;
  color: var(--color-text-muted);
}
.pc-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-white);
}

/* Form fields */
.pc-field {
  margin-bottom: 14px;
}
.pc-field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* Buttons */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.pc-btn:active { opacity: 0.8; }
.pc-btn-primary {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
}
.pc-btn-secondary {
  background: transparent;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-white);
}

/* Collapse trigger */
.pc-collapse-trigger {
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}
.pc-chevron {
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* Transaction shortcuts bar (Deposit/Withdraw/Histories links) */
.pc-shortcuts {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.pc-shortcut-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.pc-shortcut-link:active { opacity: 0.8; }
.pc-shortcut-deposit {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
}
.pc-shortcut-withdraw {
  background: transparent;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-white);
}
.pc-shortcut-history {
  background: transparent;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-white);
}

/* Transaction table */
.pc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pc-table th {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.pc-table td {
  padding: 10px 12px;
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
.pc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.pc-badge-success { background: rgba(34,197,94,0.15); color: #22c55e; }
.pc-badge-danger { background: rgba(239,68,68,0.15); color: #ef4444; }
.pc-badge-warning { background: rgba(234,179,8,0.15); color: #eab308; }

/* Pagination */
.pc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.pc-pagination a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Bank pills (deposit page) */
.pc-bank-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pc-bank-pill {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text-light);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pc-bank-pill:hover, .pc-bank-pill.is-active {
  background: var(--color-primary);
  color: var(--color-bg-darkest);
  border-color: var(--color-primary);
}

/* ========================================
   MOBILE RESPONSIVE — ACCOUNT PAGES
   ======================================== */
@media (max-width: 768px) {
  .pc-account-page {
    padding: 12px 12px 80px;
  }
  .pc-account-title {
    font-size: 18px;
  }
  .pc-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
  .pc-card-body {
    padding: 12px 16px;
  }
  .pc-info-row {
    padding: 8px 0;
  }
  .pc-shortcuts {
    flex-wrap: wrap;
  }
}

/* ========================================
   DEPOSIT/WITHDRAW PAGES — portal classic overrides
   Keep Bootstrap structure but style with portal classic
   ======================================== */
@media (max-width: 768px) {
  /* Override Bootstrap container to full width on mobile */
  .page-section .container {
    max-width: 100%;
    padding: 0 12px;
  }
  /* Transaction shortcuts portal classic style */
  .tx-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tx-shortcut-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
  }
  /* Deposit tabs — scrollable pills on mobile */
  .deposit-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .deposit-tabs::-webkit-scrollbar { display: none; }
  .deposit-tabs .nav-link {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 12px;
  }
  /* Bank method pills — scrollable */
  .deposit-methods-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .deposit-methods-tabs::-webkit-scrollbar { display: none; }
  .deposit-methods-tabs .nav-link {
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 10px;
  }
  /* Form inputs full width */
  .page-section .form-control,
  .page-section .form-select {
    width: 100%;
  }
  /* Page card full width */
  .page-card {
    padding: 12px;
  }
  /* Deposit/withdraw form 2-column → stack on mobile */
  .deposit-card .row {
    flex-direction: column;
  }
  .deposit-card .col-md-6,
  .deposit-card .col-lg-6 {
    width: 100%;
  }
}

/* ========================================
   DEPOSIT METHOD SELECT — replaces pill buttons
   ======================================== */
.deposit-method-select-wrap {
  position: relative;
}
.deposit-method-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-white);
  background: var(--color-bg-dark);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.deposit-method-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--pc-primary-a15);
}
.deposit-method-select option {
  background: var(--color-bg-darkest);
  color: var(--color-text-white);
  padding: 8px;
}

/* ========================================
   LOTTERY GAME TABS — prevent overlapping
   ======================================== */
.lottery-game-tabs {
  flex-wrap: wrap;
  gap: 4px 0;
}
.lottery-game-tabs .nav-link {
  font-size: 13px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* Amount dropdown — ensure it shows above other elements */
.dropdown-menu {
  z-index: 1050 !important;
}

/* ========================================
   LOTTERY BET — amount dropdown fixes
   ======================================== */
/* Dropdown must float, not push content down */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute !important;
  z-index: 1050 !important;
}
/* Dropdown toggle button — match input height */
.dropdown-toggle {
  height: 100%;
}
/* Input group inside lottery — ensure dropdown button matches input size */
.input-group .dropdown-toggle {
  padding: 6px 12px;
  border: 1px solid var(--color-bg-lighter);
}

/* Lottery bet input group — dropdown button height match */
.input-group .dropdown .btn.dropdown-toggle {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 0 4px 4px 0;
}
