/*
Theme Name: Kings Panel
Theme URI: https://kingspanel.com
Author: Kings Panel
Author URI: https://kingspanel.com
Description: Exact replica WordPress theme for Kings Panel Provider - Betting Panel & White Label Solutions. Fully managed games list (B2B/B2C), slider, marquee, filters, mobile menu, WhatsApp integration.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: kings-panel
Tags: dark, gaming, betting, panel, custom-post-type
*/

/* ===== CSS Variables ===== */
:root {
  --bg-dark: #05050a;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --bg-header: #0a0a12;
  --bg-nav: #0c0c14;
  --primary: #f5a623;
  --primary-hover: #e69500;
  --accent: #7c5cfc;
  --accent-hover: #6a4de0;
  --green: #22c55e;
  --green-btn: #16a34a;
  --text: #ffffff;
  --text-muted: #a0a0b0;
  --text-dim: #6b6b7b;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 800px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body, button, input, select, textarea, .btn-get-panel, .btn-visit, .btn-get, .btn-know-more, .btn-create, .btn-join {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  padding-bottom: 70px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select { font-family: inherit; border: none; outline: none; background: none; }

.site-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-dark);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}
@media (min-width: 520px) {
  body { background: #020206; }
  .site-wrap {
    border-left: 1px solid rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.04);
  }
}

.container { width: 100%; padding: 0 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}
.site-logo img {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}
.site-logo .logo-text { color: var(--text); font-size: 1.05rem; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-get-panel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #111;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-get-panel:hover { background: var(--primary-hover); }
.btn-menu-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 8px;
}
.btn-menu-toggle:hover { background: rgba(255,255,255,0.08); }

.tagline-bar {
  background: linear-gradient(90deg, #1a1a2e, #16213e);
  text-align: center;
  padding: 7px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}

/* ===== Marquee ===== */
.marquee-wrap {
  background: linear-gradient(90deg, rgba(245,166,35,0.12), rgba(245,166,35,0.05));
  border-bottom: 1px solid rgba(245,166,35,0.18);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
  gap: 32px;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  padding: 0px 0 8px;
  overflow: hidden;
}
.slider-container {
  position: relative;
  margin: 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slider-track {
  display: flex;
  transition: transform 0.45s ease;
}
.slide {
  min-width: 100%;
  position: relative;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.slide-fallback {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px 16px;
  text-align: center;
  border-radius: var(--radius);
}
.slide-fallback h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #f5a623, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.slide-fallback p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.slider-btn:hover { background: rgba(0,0,0,0.8); }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.slider-dot.active { background: var(--primary); }

/* ===== Bank Logos ===== */
.bank-logos, .payment-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 14px 12px;
  opacity: 0.95;
}
.payment-logos .pay-logo,
.payment-marquee-track .pay-logo {
  height: 28px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
/* Payment logos continuous slide */
.payment-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  background: transparent;
}
.payment-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: paymentMarquee 20s linear infinite;
}
.payment-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes paymentMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Section: B2B / B2C ===== */
.section-panels {
  padding: 18px 12px 20px;
}
.section-title {
  text-align: center;
  margin-bottom: 4px;
}
.section-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 18px;
  line-height: 1.45;
}
.b2b-b2c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 auto 24px;
}
.panel-card {
  background: linear-gradient(145deg, #1a1a2e, #12121f);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.panel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,166,35,0.3);
}
.panel-card h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  font-weight: 700;
}
.panel-card .type {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 12px;
}
.btn-know-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 7px 14px;
  border-radius: 18px;
  transition: background 0.2s;
}
.btn-know-more:hover { background: var(--accent-hover); }

/* ===== Search & Filter ===== */
.search-filter-bar {
  margin: 0 auto 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  gap: 8px;
}
.search-box input {
  flex: 1;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
}
.search-box input::placeholder { color: var(--text-dim); }
.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 0.88rem;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-select option { background: var(--bg-card); color: var(--text); }
.results-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 12px;
}

/* ===== Games Grid ===== */
.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 16px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,166,35,0.25);
  background: var(--bg-card-hover);
}
.game-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.game-name {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 1px;
  line-height: 1.3;
}
.game-type {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 400;
}
.game-domain {
  color: var(--text-dim);
  font-size: 0.7rem;
  margin: 3px 0;
}
.game-sharing {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 500;
  margin: 6px 0 10px;
  line-height: 1.3;
}
.game-actions {
  display: flex;
  gap: 6px;
}
.btn-visit {
  flex: 1;
  background: var(--green-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 8px 4px;
  border-radius: 7px;
  text-align: center;
  transition: background 0.2s;
}
.btn-visit:hover { background: #15803d; }
.btn-get {
  flex: 1;
  background: var(--primary);
  color: #111;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 8px 4px;
  border-radius: 7px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.2s;
}
.btn-get:hover { background: var(--primary-hover); }

/* ===== Bottom Nav (sticky on ALL devices - desktop + mobile) ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 3px 6px;
  transition: color 0.2s;
  font-weight: 500;
}
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--primary); }
.bottom-nav .nav-icon { font-size: 1.15rem; }

/* ===== Side Menu ===== */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.side-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-header);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}
.side-menu.open { transform: translateX(0); }
.side-menu:not(.open) { transform: translateX(-100%); pointer-events: none; }
.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.side-menu-header h3 { font-size: 1rem; }
.side-menu-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  border-radius: 8px;
}
.side-menu-close:hover { background: rgba(255,255,255,0.08); }
.side-menu nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.side-menu nav a:hover,
.side-menu nav a.active {
  background: var(--primary);
  color: #111;
}

/* ===== Welcome Popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 16px;
}
.popup-overlay.open {
  opacity: 1;
  visibility: visible;
}
.popup-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  border-radius: 50%;
  color: var(--text-muted);
}
.popup-close:hover { background: rgba(255,255,255,0.1); }
.popup-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
.popup-logo img { width: 100%; height: 100%; object-fit: contain; }
.popup-box h2 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.popup-box p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 5px;
  line-height: 1.4;
}
.popup-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.popup-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}
.popup-social a:hover { background: var(--primary); color: #111; }

/* ===== Page Templates Common ===== */
.page-hero {
  text-align: center;
  padding: 28px 14px 18px;
}
.page-hero h1 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 100%;
  margin: 0 auto 14px;
  line-height: 1.45;
}
.page-content {
  padding: 0 14px 24px;
}

/* Rental Site Cards */
.rental-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rental-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
}
.rental-card:hover { border-color: rgba(245,166,35,0.3); }
.rental-badge {
  background: var(--primary);
  color: #111;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.rental-info { flex: 1; min-width: 0; }
.rental-info h4 { font-size: 0.85rem; margin-bottom: 1px; font-weight: 600; }
.rental-info .domain { color: var(--text-dim); font-size: 0.72rem; }
.rental-info .price { color: var(--primary); font-size: 0.75rem; font-weight: 500; margin-top: 1px; }
.btn-create {
  background: var(--primary);
  color: #111;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 7px 12px;
  border-radius: 16px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-create:hover { background: var(--primary-hover); }

/* Services */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
}
.feature-box .icon { font-size: 1.35rem; margin-bottom: 6px; color: var(--primary); }
.feature-box span { font-size: 0.78rem; font-weight: 500; }
.why-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.why-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.why-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}
.cta-banner {
  background: linear-gradient(135deg, #f5a623, #e69500);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  margin: 24px 0;
  color: #111;
}
.cta-banner h3 { font-size: 1.1rem; margin-bottom: 4px; font-weight: 700; }
.cta-banner p { margin-bottom: 12px; opacity: 0.9; font-size: 0.85rem; }
.btn-join {
  display: inline-block;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 24px;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.btn-join:hover { opacity: 0.9; }
.faq-list { margin-top: 18px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.faq-item h4 { font-size: 0.88rem; margin-bottom: 3px; font-weight: 600; }
.faq-item p { color: var(--text-muted); font-size: 0.78rem; }

/* Book Buy / Get Panel page */
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}
.criteria-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.criteria-card h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.criteria-card ul { padding-left: 14px; }
.criteria-card li {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  list-style: disc;
}
.warning-box {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.28);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 16px;
  line-height: 1.4;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }

@media (min-width: 768px) {
  :root { --max-w: 800px; }
  body { font-size: 15px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .game-logo { width: 56px; height: 56px; }
  .criteria-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: single game card per row */
@media (max-width: 640px) {
  .games-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

/* Logo LEFT fix + auto fit */
.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.site-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  margin-right: auto !important;
  flex: 0 0 auto !important;
  gap: 0 !important;
}

.logo-text {
  display: none !important;
}

.custom-logo-link {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.custom-logo-link img,
.custom-logo,
.site-logo img {
  height: 40px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
}

.header-actions {
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

.slide {
    max-height: 420px;
}

.slide img{
    
}