/* ==========================================================================
   PG333SLOT.VIP — SLEEK, COMPACT & BALANCED 2026 DESIGN SYSTEM
   ========================================================================== */
:root {
  --bg-main: #0a0a12;
  --bg-card: #121224;
  --bg-card-hover: #16162c;
  --bg-glass: rgba(18, 18, 36, 0.94);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(249, 115, 22, 0.4);
  --primary: #f97316;
  --primary-glow: #fb923c;
  --secondary: #ec4899;
  --gold: #fbbf24;
  --gold-glow: #fde047;
  --green: #22c55e;
  --cyan: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-base: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.3);
  --transition: all 0.2s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(249, 115, 22, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #07070c 0%, #0d0d1a 100%);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Container (Compact 1060px) */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 0;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.48rem 1.15rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: #fff;
  box-shadow: 0 3px 12px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(249, 115, 22, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(251, 191, 36, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
}

/* Badges */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--primary-glow);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Bento Section & Layout */
.bento-section {
  padding: 1.25rem 0;
  width: 100%;
}

/* HERO ROW: Balanced 60% : 40% Desktop */
.hero-row {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
  align-items: stretch;
}

.bento-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
}

.bento-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Box (Left) */
.box-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(24, 24, 48, 0.96), rgba(18, 18, 36, 0.96)), url('photo/bg_theme.webp') center/cover;
}

.hero-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.28;
  margin: 0.5rem 0;
  letter-spacing: -0.5px;
}

.hero-title .glow-text {
  background: linear-gradient(135deg, #fff, var(--gold-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.6rem;
  text-align: center;
}

.stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   AI Slot Signal Radar Box (Right Box)
   ========================================================================== */
.box-scanner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.1) 0%, rgba(6, 182, 212, 0.06) 50%, var(--bg-card) 90%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
  padding: 1.15rem;
}

.box-scanner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(249, 115, 22, 0) 0deg, rgba(249, 115, 22, 0.1) 60deg, rgba(249, 115, 22, 0) 120deg);
  animation: radarSweep 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scanner-top {
  width: 100%;
  text-align: center;
  z-index: 2;
}

.scanner-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.scanner-radar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.radar-circle-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px dashed rgba(249, 115, 22, 0.5);
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-circle-inner {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.radar-game-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
  z-index: 3;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.radar-game-thumb.scanning {
  filter: brightness(1.4) blur(1px);
  transform: scale(0.9);
}

.scanner-live-info {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  width: 100%;
  margin-bottom: 0.65rem;
  z-index: 2;
  text-align: left;
}

.scanner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 0.22rem;
  color: var(--text-muted);
  gap: 0.4rem;
}

.scanner-row:last-child {
  margin-bottom: 0;
}

.scanner-row span.val-highlight {
  color: var(--gold);
  font-weight: 700;
  text-align: right;
}

.scanner-row span.val-green {
  color: var(--green);
  font-weight: 700;
  text-align: right;
}

.scanner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  z-index: 2;
}

.scanner-actions .btn {
  width: 100%;
  padding: 0.42rem 0.4rem;
  font-size: 0.78rem;
}

/* Full Width Live RTP Section */
.box-rtp {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 1.15rem;
}

.rtp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rtp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.rtp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.rtp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: var(--transition);
}

.rtp-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 115, 22, 0.3);
}

.rtp-card img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.rtp-info {
  flex: 1;
  min-width: 0;
}

.rtp-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rtp-val-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.rtp-val-row span.rtp-percent {
  color: var(--green);
  font-weight: 700;
}

.rtp-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rtp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--green));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Content & Article Styles */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  margin-bottom: 1.5rem;
  line-height: 1.75;
  width: 100%;
}

.content-card h1, .content-card h2, .content-card h3 {
  color: #fff;
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.content-card h1 { font-size: 1.6rem; margin-top: 0; }
.content-card h2 { font-size: 1.25rem; border-left: 3.5px solid var(--primary); padding-left: 0.65rem; }
.content-card h3 { font-size: 1.05rem; color: var(--gold); }

.content-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.content-card ul, .content-card ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.content-card li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.content-card a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-card a:hover {
  color: var(--primary-glow);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
}

table.bento-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(18, 18, 36, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.88rem;
}

table.bento-table th {
  background: rgba(249, 115, 22, 0.2);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

table.bento-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

table.bento-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* FAQ Accordion */
.faq-wrap {
  margin-top: 1.5rem;
  width: 100%;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
}

.faq-question {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.15rem;
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1rem 1rem 1rem;
}

/* Live Win Toast */
.live-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background: rgba(18, 18, 36, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transform: translateY(150%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-toast.show {
  transform: translateY(0);
}

.live-toast-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.live-toast-text {
  font-size: 0.75rem;
  color: #fff;
  line-height: 1.25;
}

.live-toast-text strong {
  color: var(--gold);
}

/* Footer */
.footer {
  background: #06060c;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.25rem;
  margin-top: 3rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-menu { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .content-card { padding: 1.15rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .bento-box { padding: 1rem; }
  .scanner-actions { grid-template-columns: 1fr; }
}
