/* ==========================================================================
   SHBET.POKER High-Performance Responsive Theme (Flatsome-Style Optimization)
   Engineered for Core Web Vitals: LCP < 0.6s, CLS = 0, FID/INP < 30ms
   ========================================================================== */
:root {
  --primary-color: #1973c2;
  --primary-hover: #125693;
  --accent-gold: #ffb800;
  --accent-gold-dark: #d97706;
  --accent-red: #d31212;
  --bg-dark: #0a0e17;
  --bg-header: rgba(10, 14, 23, 0.98);
  --bg-card: #121824;
  --bg-card-hover: #182234;
  --border-color: #212c40;
  --border-light: rgba(255, 255, 255, 0.1);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-color); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent-gold); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 16px; }

/* HEADER (Flatsome Style Header Main) */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}
.header-logo {
  height: 60px;
  width: auto;
  max-width: 229px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.main-nav li { position: relative; }
.main-nav a {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 8px 4px;
  display: block;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

/* HEADER CTA BUTTONS */
.header-cta { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.btn-outline {
  border-color: var(--primary-color);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}
.btn-primary {
  background: linear-gradient(135deg, #1973c2 0%, #0d4b82 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(25,115,194,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(25,115,194,0.5);
}
.btn-gold {
  background: linear-gradient(135deg, #ffb800 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255,184,0,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,184,0,0.5);
}
.btn-red {
  background: linear-gradient(135deg, #d31212 0%, #990000 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(211,18,18,0.35);
}
.btn-red:hover {
  transform: translateY(-2px);
}

/* HERO SECTION (Flatsome Banner & Action Hub) */
.hero-gateway {
  background: radial-gradient(circle at top center, #1b2842 0%, var(--bg-dark) 75%);
  padding: 45px 0 35px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}
.hero-title span { color: var(--accent-gold); }
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto 22px;
}
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.server-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255,184,0,0.2);
}
.server-name { font-weight: 700; color: #fff; font-size: 15px; text-align: left; }
.server-status {
  font-size: 12px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.server-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
}

/* BREADCRUMB */
.breadcrumb-bar {
  background: #0d121c;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-list { display: flex; gap: 8px; list-style: none; align-items: center; }
.breadcrumb-list li+li::before { content: "›"; margin-right: 8px; color: var(--text-muted); }
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--accent-gold); text-decoration: none; }
.breadcrumb-list .active { color: #fff; font-weight: 600; }

/* CONTENT SECTION */
.content-wrapper { padding: 45px 0; }
.content-main { max-width: 920px; margin: 0 auto; }
.content-main h1 { font-size: 32px; color: #fff; margin-bottom: 22px; line-height: 1.3; font-weight: 800; }
.content-main h2 {
  font-size: 24px;
  color: var(--accent-gold);
  margin: 36px 0 18px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  font-weight: 700;
}
.content-main h3 { font-size: 19px; color: #fff; margin: 24px 0 12px; font-weight: 700; }
.content-main p { margin-bottom: 18px; color: #cbd5e1; font-size: 16px; line-height: 1.7; }
.content-main ul, .content-main ol { margin-left: 26px; margin-bottom: 20px; color: #cbd5e1; }
.content-main li { margin-bottom: 10px; line-height: 1.6; }

/* INFO BOX & TABLE */
.info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 26px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.info-box h4 { color: #fff; margin-bottom: 8px; font-size: 17px; }

.table-responsive { overflow-x: auto; margin: 26px 0; border-radius: 8px; border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 14px 18px; border: 1px solid var(--border-color); }
th { background: #162032; color: var(--accent-gold); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; }
tr:nth-child(even) { background: rgba(255,255,255,0.02); }
tr:hover { background: rgba(255,255,255,0.04); }

/* PRODUCT HUB GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.product-card h3 { font-size: 19px; color: #fff; margin-bottom: 12px; }
.product-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

/* FAQ ACCORDION */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 18px 22px;
}
.faq-question { font-weight: 700; color: #fff; font-size: 16px; margin-bottom: 10px; }
.faq-answer { font-size: 14px; color: #94a3b8; line-height: 1.65; }

/* AUTHOR BIO */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-gold) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.author-info h4 { font-size: 18px; color: #fff; margin-bottom: 4px; }
.author-info .author-role { font-size: 13px; color: var(--accent-gold); margin-bottom: 8px; font-weight: 600; }
.author-info p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* 404 SPECIFIC STYLES */
.error-hero {
  padding: 65px 0 45px;
  text-align: center;
  background: radial-gradient(circle at center, #1b2842 0%, #0a0e17 75%);
  border-bottom: 1px solid var(--border-color);
}
.error-code {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ff4d4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  letter-spacing: -2px;
}
.error-badge {
  display: inline-block;
  background: rgba(211, 18, 18, 0.2);
  color: #ff6b6b;
  border: 1px solid #d31212;
  padding: 4px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.action-hub-404 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px auto 0;
  max-width: 780px;
}
.quick-nav-title {
  text-align: center;
  font-size: 22px;
  color: #fff;
  margin: 42px 0 22px;
  font-weight: 700;
}

/* FOOTER (Flatsome Multi-column Footprint) */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-color);
  padding: 55px 0 26px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.6px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 4px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--text-muted); font-size: 13px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero-title { font-size: 25px; }
  .content-main h1 { font-size: 26px; }
  .content-main h2 { font-size: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
