/* JACKPOT Premium — Shared Components */

/* Header: remove gold bullet dots beside nav links */
.header .main-menu__list > li > a::before,
.header .main-menu__nav .main-menu__list > li > a::before,
.stricky-header .main-menu__list > li > a::before {
  content: none !important;
  display: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
.header .main-menu__list,
.header .main-menu__list ul {
  list-style: none !important;
  padding-left: 0;
  margin-left: 0;
}
.header .main-menu__list li::marker {
  content: none;
}

/* Soften / hide noisy hero particles in light theme */
[data-theme="light"] .jp-hero-canvas {
  opacity: 0.08 !important;
  filter: grayscale(0.35) brightness(1.15);
}
[data-theme="light"] .jp-hero {
  background: linear-gradient(180deg, #f7f8fa 0%, #eef0f4 100%) !important;
}

/* Theme toggle */
.jp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--jp-border);
  background: var(--jp-surface);
  color: var(--jp-text);
  cursor: pointer;
  transition: 0.2s ease;
}
.jp-icon-btn:hover {
  border-color: var(--jp-primary);
  color: var(--jp-primary);
  background: var(--jp-card-hover);
}

.jp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--jp-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Bottom Navigation */
.jp-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--jp-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--jp-glass);
  border-top: 1px solid var(--jp-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}
.jp-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--jp-text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  position: relative;
}
.jp-bottom-nav a i { font-size: 18px; }
.jp-bottom-nav a.active,
.jp-bottom-nav a:hover { color: var(--jp-primary); }
.jp-bottom-nav .jp-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
}
@media (min-width: 992px) {
  .jp-bottom-nav { display: none; }
}

/* Toast */
.jp-toast-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.jp-toast {
  pointer-events: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--jp-radius);
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  box-shadow: var(--jp-shadow);
  color: var(--jp-text);
  animation: jpToastIn 0.28s ease;
}
.jp-toast.success { border-color: rgba(22, 255, 0, 0.35); }
.jp-toast.error { border-color: rgba(255, 65, 54, 0.45); }
.jp-toast.info { border-color: rgba(0, 223, 162, 0.35); }
@keyframes jpToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Age gate + cookie */
.jp-overlay-panel {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--jp-overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
@media (min-width: 576px) {
  .jp-overlay-panel { align-items: center; }
}
.jp-panel {
  width: min(440px, 100%);
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-lg);
  padding: 24px;
  box-shadow: var(--jp-shadow);
  color: var(--jp-text);
}
.jp-panel h3 { color: var(--jp-text); margin-bottom: 8px; }
.jp-panel p { color: var(--jp-text-muted); margin-bottom: 16px; }
.jp-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--jp-bottom-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 1500;
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 14px 16px;
  box-shadow: var(--jp-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 992px) {
  .jp-cookie { bottom: 16px; left: 16px; right: auto; max-width: 480px; }
}

/* Filter chips / catalog */
.jp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--jp-border);
  background: var(--jp-surface);
  color: var(--jp-text-muted);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.jp-chip.active,
.jp-chip:hover {
  border-color: var(--jp-primary);
  color: var(--jp-primary);
  background: var(--jp-card-hover);
}

.jp-game-card {
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  overflow: hidden;
  transition: 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.jp-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: var(--jp-shadow);
}
.jp-game-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--jp-surface-2);
}
.jp-game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jp-game-card .body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.jp-game-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--jp-text-muted); }
.jp-game-card .actions { display: flex; gap: 8px; margin-top: auto; }
.jp-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--jp-primary);
  color: var(--jp-primary-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Bottom sheet */
.jp-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: var(--jp-overlay);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}
.jp-sheet-backdrop.open { opacity: 1; visibility: visible; }
.jp-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1610;
  max-height: 85vh;
  overflow: auto;
  background: var(--jp-surface);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--jp-border);
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: 0.3s ease;
}
.jp-sheet.open { transform: none; }
.jp-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--jp-border);
  margin: 0 auto 14px;
}

/* Forms / checkout */
.jp-input,
.jp-select,
.jp-textarea {
  width: 100%;
  min-height: 48px;
  border-radius: var(--jp-radius-sm);
  border: 1px solid var(--jp-border);
  background: var(--jp-input-bg);
  color: var(--jp-text);
  padding: 12px 14px;
  outline: none;
}
.jp-textarea { min-height: 120px; resize: vertical; }
.jp-input:focus,
.jp-select:focus,
.jp-textarea:focus {
  border-color: var(--jp-primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}
.jp-label {
  display: block;
  margin-bottom: 6px;
  color: var(--jp-text);
  font-weight: 600;
  font-size: 14px;
}
.jp-field { margin-bottom: 14px; }

.jp-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.jp-step {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--jp-radius-sm);
  border: 1px solid var(--jp-border);
  color: var(--jp-text-muted);
  font-size: 13px;
  font-weight: 600;
}
.jp-step.active {
  border-color: var(--jp-primary);
  color: var(--jp-primary);
  background: var(--jp-card-hover);
}
.jp-step.done {
  border-color: var(--jp-success);
  color: var(--jp-success);
}

/* Dashboard */
.jp-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .jp-stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.jp-stat {
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 16px;
}
.jp-stat .val {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--jp-text);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.jp-stat .lbl { color: var(--jp-text-muted); font-size: 13px; margin-top: 4px; }

.jp-account-layout {
  display: grid;
  gap: 16px;
}
@media (min-width: 992px) {
  .jp-account-layout {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
}
.jp-side-nav {
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 12px;
}
.jp-side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--jp-radius-sm);
  color: var(--jp-text-muted);
  text-decoration: none;
  font-weight: 600;
}
.jp-side-nav a.active,
.jp-side-nav a:hover {
  background: var(--jp-card-hover);
  color: var(--jp-primary);
}

.jp-empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--jp-border);
  border-radius: var(--jp-radius);
  background: var(--jp-surface);
  color: var(--jp-text-muted);
}
.jp-skeleton {
  background: linear-gradient(90deg, var(--jp-surface) 25%, var(--jp-surface-2) 50%, var(--jp-surface) 75%);
  background-size: 200% 100%;
  animation: jpSk 1.2s infinite linear;
  border-radius: 8px;
}
@keyframes jpSk {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.jp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.jp-page-pad {
  padding-top: 24px;
  padding-bottom: 40px;
}
.jp-surface-card {
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 16px;
}
.jp-table {
  width: 100%;
  border-collapse: collapse;
}
.jp-table th,
.jp-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--jp-border);
  text-align: left;
  color: var(--jp-text-body);
  font-size: 14px;
}
.jp-table th { color: var(--jp-text-muted); font-weight: 600; }
.jp-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.jp-pagination button {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--jp-radius-sm);
  border: 1px solid var(--jp-border);
  background: var(--jp-surface);
  color: var(--jp-text);
  cursor: pointer;
}
.jp-pagination button.active {
  background: var(--jp-primary);
  color: var(--jp-primary-ink);
  border-color: var(--jp-primary);
}

/* Header extras */
.jp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jp-header-actions .cus-btn { margin-left: 4px; }

/* Auth pages */
.jp-auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}
.jp-auth-card {
  width: min(440px, 100%);
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-lg);
  padding: 28px 22px;
  box-shadow: var(--jp-shadow);
}

/* Support FAB */
.jp-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--jp-bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--jp-primary);
  color: var(--jp-primary-ink);
  box-shadow: var(--jp-shadow);
  cursor: pointer;
  font-size: 22px;
}
@media (min-width: 992px) {
  .jp-fab { bottom: 24px; }
}

/* Light theme overrides for legacy gold buttons */
[data-theme="light"] body.jp-app .cus-btn {
  background: var(--jp-primary);
  color: var(--jp-primary-ink);
}
[data-theme="light"] body.jp-app .header {
  border-bottom: 1px solid var(--jp-border);
}
[data-theme="light"] body.jp-app .gradient-1,
[data-theme="light"] body.jp-app .gradient-2,
[data-theme="light"] body.jp-app .gradient-3 {
  background: var(--jp-gradient-hero) !important;
}
