/* OnlineCasinoHK 2026 Master Stylesheet — Victoria Harbour Jade & Imperial Gold */
:root {
  --bg-deep: #070b13;
  --bg-surface: #0f1726;
  --bg-card: #152033;
  --bg-elevated: #1c2b42;
  --gold: #f5c451;
  --gold-bright: #ffd978;
  --jade: #10b981;
  --jade-dark: #065f46;
  --crimson: #f43f5e;
  --sky: #38bdf8;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(245, 196, 81, 0.18);
  --border-card: rgba(255, 255, 255, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-main: 0 12px 32px rgba(0, 0, 0, 0.55);
  --font-sans: 'PingFang HK', 'Microsoft JhengHei', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text-main);
  background: radial-gradient(circle at 50% 0%, #132238 0%, #070b13 65%);
  min-height: 100vh;
  padding-bottom: 84px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sticky Top Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 11, 19, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.hdr-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.top-nav {
  display: none;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.top-nav a {
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.top-nav a:hover, .top-nav a.active {
  color: var(--gold);
  background: rgba(245, 196, 81, 0.1);
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hdr-login, .btn-hdr-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-hdr-login {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.btn-hdr-reg {
  background: linear-gradient(135deg, var(--gold), #e09f1f);
  color: #070b13;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.35);
}

@media (min-width: 980px) {
  .top-nav { display: flex; }
}

/* Breadcrumbs & Jump Bar */
.breadcrumb-bar {
  background: rgba(15, 23, 38, 0.75);
  border-bottom: 1px solid var(--border-card);
  padding: 8px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--gold);
}

.jump-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.jump-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
}

.jump-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hero Section */
.hero-box {
  background: linear-gradient(145deg, var(--bg-surface) 0%, #0a111d 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-main);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-box {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 32px;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-box h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 800;
}

.hero-sub {
  color: var(--text-sub);
  font-size: 1rem;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-cta-primary, .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none !important;
  transition: transform 0.15s ease;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--gold), #d99116);
  color: #070b13;
  box-shadow: 0 6px 20px rgba(245, 196, 81, 0.35);
}

.btn-cta-secondary {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.btn-cta-primary:hover, .btn-cta-secondary:hover {
  transform: translateY(-2px);
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-trust-pills span {
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #05080f;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 430 / 240;
  object-fit: cover;
}

/* 3 Interior Structural Variants */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 980px) {
  .layout-grid.variant-sidebar {
    grid-template-columns: 1fr 330px;
    align-items: start;
  }
}

.sticky-side {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 82px;
}

.sticky-side h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 8px;
}

.side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.side-list a {
  display: block;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 0.88rem;
}

.side-list a:hover {
  background: rgba(245, 196, 81, 0.12);
  color: var(--gold);
}

/* Expert Callout & TL;DR */
.expert-callout {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 38, 0.95));
  border-left: 4px solid var(--jade);
  border-top: 1px solid rgba(16, 185, 129, 0.25);
  border-right: 1px solid rgba(16, 185, 129, 0.25);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.expert-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.expert-badge {
  background: var(--jade);
  color: #042f2e;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 999px;
}

.expert-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.expert-callout p {
  margin-bottom: 6px;
  color: var(--text-sub);
}

.tldr-box {
  background: rgba(245, 196, 81, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.tldr-title {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

/* Article Content Sections */
.content-sec, .intro-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
}

.content-sec h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-card);
}

.content-sec p, .intro-block p {
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 1rem;
}

.answer-capsule {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--sky);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.step-list, .bullet-list {
  padding-left: 22px;
  margin-bottom: 16px;
  color: var(--text-sub);
}

.step-list li, .bullet-list li {
  margin-bottom: 10px;
}

.callout-warn, .callout-pro {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-size: 0.93rem;
}

.callout-warn {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.callout-pro {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* Scrollable Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #0a101d;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold);
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.num-col {
  font-family: var(--font-mono);
  color: #34d399 !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.table-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* Visual Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.visual-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 400 / 240;
  object-fit: cover;
}

.visual-card-body {
  padding: 14px;
}

.visual-card-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
}

.visual-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1b283d 0%, #0f1b2d 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 760px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner-text strong {
  display: block;
  color: var(--gold);
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.cta-banner-text span {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.cta-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FAQ Accordions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.faq-q {
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.faq-q::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  font-size: 0.94rem;
}

/* Full-Mesh Silo Directory Grids */
.mesh-sec {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 24px 0;
}

.mesh-sec h2 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.mesh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.mesh-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mesh-card:hover {
  border-color: var(--gold);
  background: var(--bg-elevated);
}

.mesh-card strong {
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.mesh-card span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Compliance Trust Bar */
.compliance-trust-bar {
  margin: 24px 0 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.compliance-trust-bar a {
  color: var(--text-sub);
  text-decoration: underline;
  margin: 0 6px;
}

/* Footer */
.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 30px;
  margin-top: 32px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  color: var(--text-sub);
  font-size: 0.85rem;
}

/* Mobile Sticky Bottom Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 19, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px;
  height: 68px;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none !important;
  min-width: 56px;
  min-height: 48px;
  padding: 4px 6px;
  border-radius: 8px;
}

.bnav-item.bnav-cta {
  background: linear-gradient(135deg, var(--gold), #e09f1f);
  color: #070b13;
  font-weight: 800;
  padding: 6px 14px;
}

.bnav-icon {
  font-size: 1.1rem;
  line-height: 1.1;
  margin-bottom: 2px;
}

/* Partner Brand Ranking Cards (1-12 Directory) */
.partner-rank-sec {
  margin: 18px 0 26px;
}

.partner-rank-hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.partner-rank-hdr h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--gold);
  font-weight: 800;
}

.partner-rank-hdr span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.partner-rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-row {
  background: linear-gradient(145deg, #21152b 0%, #170f21 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.partner-row:hover {
  border-color: rgba(242, 208, 128, 0.45);
  transform: translateY(-2px);
}

@media (min-width: 820px) {
  .partner-row {
    grid-template-columns: 280px 1fr 270px;
    padding: 20px 26px;
  }
}

.partner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-badge {
  width: 40px;
  height: 44px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rank-badge.top-rank {
  background: linear-gradient(135deg, #f3d078, #dfb14b);
  color: #16101e;
  box-shadow: 0 4px 12px rgba(243, 208, 120, 0.3);
}

.rank-badge.sub-rank {
  background: #2f223b;
  color: #e2d8ed;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.partner-brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.partner-logo-wide {
  width: 190px;
  height: 65px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 6px;
}

.partner-logo-sq {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 6px;
}

.partner-brand-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
}

.partner-brand-cat {
  color: #a395b4;
  font-size: 0.78rem;
  margin-top: 2px;
}

.partner-mid {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

@media (min-width: 820px) {
  .partner-mid {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    padding-left: 24px;
  }
}

.partner-kicker {
  color: #b5a6c7;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.partner-offer-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
}

.partner-offer-sub {
  color: #b5a6c7;
  font-size: 0.84rem;
  line-height: 1.45;
}

.partner-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-partner-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 245px;
  min-height: 50px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5d77f 0%, #e4b953 100%);
  color: #17101e !important;
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(245, 215, 127, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-partner-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.partner-aff-caption {
  color: #9c8dae;
  font-size: 0.76rem;
  margin-top: 7px;
  text-align: center;
}

.partner-more-wrap {
  margin-top: 12px;
}

.partner-more-wrap > summary {
  list-style: none;
  cursor: pointer;
  background: rgba(33, 21, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 16px;
  text-align: center;
  color: #e2d8ed;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}

.partner-more-wrap > summary::-webkit-details-marker {
  display: none;
}

.partner-more-wrap > summary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.partner-more-wrap[open] > summary .more-open-txt {
  display: none;
}

.partner-more-wrap:not([open]) > summary .more-close-txt {
  display: none;
}

.partner-more-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.partner-disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #9c8dae;
  line-height: 1.5;
}
