/* ==========================================================================
   KK333 Casino - kk333game.online
   Design system follows the brand site kk333.life 1:1:
   Bootstrap 5.3.3 base, light slate/blue palette, system-UI type stack,
   gradient hero + promo bands, stat/figure bands, card grids, the 820px
   article measure, and the centred-link footer.
   ========================================================================== */

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #111827;
  --heading: #0b1220;
  --muted: #475569;
  --primary: #64748b;
  --on-primary: #ffffff;
  --accent: #3b82f6;
  --border: rgba(2, 6, 23, 0.12);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 { color: var(--heading); }

a { color: var(--primary); }
a:hover { color: var(--accent); }

.skip-link {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 2000;
  background: var(--accent);
  color: var(--on-primary);
  padding: .6rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transform: translateY(-130%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; color: var(--on-primary); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--border);
}

.navbar-brand img { height: 44px; width: auto; }

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: .5rem .9rem !important;
  border-radius: 6px;
  transition: background .2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg);
  color: var(--accent) !important;
}

/* Keep the bar on a single line between the lg breakpoint and full width. */
@media (min-width: 992px) and (max-width: 1399px) {
  .nav-link { padding: .5rem .55rem !important; font-size: .93rem; }
  .navbar-nav { gap: 0 !important; }
  .btn-primary-custom, .btn-accent { padding: .55rem 1.1rem; font-size: .85rem; }
  .navbar-brand img { height: 38px; }
}

@media (min-width: 1400px) {
  .nav-link { padding: .5rem .7rem !important; }
}

.navbar-toggler { border-color: var(--border); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */

.marquee-wrap {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: .45rem 0;
}

.marquee-inner { display: inline-block; animation: marquee 28s linear infinite; }
.marquee-inner > span { margin-right: 3rem; font-size: .85rem; color: var(--muted); }
.marquee-inner .hi { color: var(--accent); font-weight: 700; margin-right: 0; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--on-primary);
  padding: 5rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--on-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.hero-section p {
  font-size: 1.15rem;
  opacity: .93;
  max-width: 640px;
  margin: 1rem auto 2rem;
}

.hero-media {
  max-width: 680px;
  margin: 2.4rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}

.hero-media img { width: 100%; height: auto; display: block; }

.page-meta {
  font-size: .82rem;
  margin: -1rem auto 1.6rem;
  max-width: 640px;
  color: var(--muted);
}

.hero-section .page-meta { color: var(--on-primary); opacity: .85; }

/* --- buttons --- */
.btn-hero {
  background: var(--on-primary);
  color: var(--primary);
  font-weight: 700;
  border: none;
  padding: .75rem 2.2rem;
  border-radius: 50px;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); color: var(--accent); }

.btn-accent {
  background: var(--accent);
  color: var(--on-primary);
  font-weight: 700;
  border: none;
  padding: .65rem 1.8rem;
  border-radius: 50px;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(59, 130, 246, .4); color: var(--on-primary); }

.btn-primary-custom {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border: none;
  padding: .6rem 1.6rem;
  border-radius: 8px;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary-custom:hover { background: var(--accent); transform: translateY(-1px); color: var(--on-primary); }

@media (prefers-reduced-motion: reduce) {
  .btn-hero:hover, .btn-accent:hover, .btn-primary-custom:hover { transform: none; }
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */

.promo-banner {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--on-primary);
  padding: 1.4rem 1rem;
  text-align: center;
}

.promo-banner h2,
.promo-banner h3 { font-size: 1.5rem; font-weight: 800; color: var(--on-primary); margin-bottom: .3rem; }
.promo-banner p { margin: 0 0 1rem; opacity: .95; }

/* ==========================================================================
   STATS
   ========================================================================== */

.stats-section {
  background: var(--surface);
  padding: 3rem 1rem;
  border-bottom: 1px solid var(--border);
}

.stat-card { text-align: center; padding: 1.2rem .8rem; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 16px rgba(100, 116, 139, .35);
  line-height: 1.1;
}

.stat-label { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.stat-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: .4rem; }

/* ==========================================================================
   HEADLINE FIGURE BAND
   ========================================================================== */

.jackpot-section { background: var(--heading); padding: 3.5rem 1rem; text-align: center; }

.jackpot-label {
  color: var(--on-primary);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .5rem;
}

.jackpot-amount {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--on-primary);
  animation: pulse-glow 2s ease-in-out infinite;
  letter-spacing: .02em;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px var(--primary), 0 0 40px var(--accent), 0 0 60px var(--accent); }
  50%      { text-shadow: 0 0 30px var(--primary), 0 0 60px var(--accent), 0 0 90px var(--primary); }
}

@media (prefers-reduced-motion: reduce) {
  .jackpot-amount { animation: none; text-shadow: 0 0 24px var(--accent); }
}

.jackpot-sub { color: var(--on-primary); opacity: .7; margin-top: .5rem; font-size: .95rem; }

/* ==========================================================================
   SPIN WHEEL
   ========================================================================== */

.spin-section { background: var(--bg); padding: 3rem 1rem; }

.wheel-container { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

.wheel {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid var(--primary);
  box-shadow: 0 0 0 3px var(--accent), 0 0 32px rgba(59, 130, 246, .3);
  position: relative;
  animation: spin-slow 18s linear infinite;
  overflow: hidden;
}

.wheel svg { width: 100%; height: 100%; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .wheel { animation: none; }
}

.wheel-pin {
  width: 16px;
  height: 28px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  margin-bottom: -4px;
  box-shadow: 0 0 10px var(--accent);
}

.daily-badge {
  background: var(--accent);
  color: var(--on-primary);
  font-weight: 700;
  font-size: .8rem;
  padding: .25rem .8rem;
  border-radius: 50px;
  letter-spacing: .05em;
  box-shadow: 0 0 12px rgba(59, 130, 246, .5);
}

/* ==========================================================================
   GAME RAIL
   ========================================================================== */

.games-section {
  background: var(--surface);
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
}

.game-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}

.game-card:hover { box-shadow: 0 6px 24px var(--border); transform: translateY(-3px); }
.game-card h3 { color: var(--heading); font-weight: 700; font-size: 1.05rem; }
.game-card p { color: var(--muted); font-size: .88rem; }

.game-badge {
  position: absolute;
  top: .7rem;
  inset-inline-end: .7rem;
  background: var(--accent);
  color: var(--on-primary);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 50px;
}

.odds-pill {
  background: var(--primary);
  color: var(--on-primary);
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  display: inline-block;
  margin-top: .5rem;
  text-decoration: none;
}
a.odds-pill:hover { background: var(--accent); color: var(--on-primary); }

@media (prefers-reduced-motion: reduce) {
  .game-card:hover, .adv-card:hover { transform: none; }
}

/* ==========================================================================
   IMAGES
   ========================================================================== */

.content-img {
  width: 100%;
  max-width: 680px;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 4px 18px var(--border);
}

figure.content-figure { margin: 2rem auto; max-width: 680px; }
figure.content-figure figcaption {
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  margin-top: .6rem;
}

/* ==========================================================================
   ADVANTAGES
   ========================================================================== */

.advantages-section { background: var(--bg); padding: 3rem 1rem; }

.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}

.adv-card:hover { box-shadow: 0 6px 24px var(--border); transform: translateY(-3px); }
.adv-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: .7rem; }
.adv-title { font-weight: 700; color: var(--heading); margin-bottom: .3rem; font-size: 1.02rem; }
.adv-text { color: var(--muted); font-size: .9rem; margin: 0; }

.adv-card--flush { text-align: start; }
.adv-card--flush .adv-text { margin-bottom: .8rem; }
.adv-card--flush .adv-text:last-child { margin-bottom: 0; }
.adv-card--flush ul { color: var(--muted); font-size: .9rem; padding-inline-start: 1.2rem; margin-bottom: 0; }
.adv-card--flush li { margin-bottom: .4rem; }

/* ==========================================================================
   PAYMENTS
   ========================================================================== */

.payments-section {
  background: var(--surface);
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
}

.payment-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem .7rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, color .2s;
  cursor: default;
  height: 100%;
}

.payment-badge:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(100, 116, 139, .2); color: var(--primary); }
.payment-badge:hover .pay-icon { color: var(--primary); }

.pay-icon { font-size: 1.8rem; color: var(--muted); display: block; margin-bottom: .4rem; transition: color .2s; }
.pay-name { font-size: .8rem; font-weight: 700; color: var(--heading); }
.pay-tag { font-size: .68rem; color: var(--accent); display: block; margin-top: .2rem; }

/* ==========================================================================
   APP MOCKUP
   ========================================================================== */

.app-section { background: var(--bg); padding: 3rem 1rem; }

.phone-mockup {
  width: 180px;
  height: 340px;
  border: 4px solid var(--primary);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 32px rgba(100, 116, 139, .25);
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: .5rem;
}

.phone-notch { width: 60px; height: 10px; background: var(--primary); border-radius: 5px; margin: 0 auto .4rem; }

.phone-screen-block {
  flex: 1;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .5rem;
  overflow: hidden;
}

.phone-row { height: 22px; background: var(--border); border-radius: 6px; }
.phone-row.accent { background: rgba(59, 130, 246, .18); }
.phone-row.tall { height: 60px; }
.phone-home-btn { width: 36px; height: 6px; background: var(--border); border-radius: 3px; margin: .4rem auto 0; }

.app-feature-list { list-style: none; padding: 0; margin: 0; }
.app-feature-list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.app-feature-list li i { color: var(--accent); font-size: 1.1rem; flex: none; }

/* ==========================================================================
   TRUST BADGES
   ========================================================================== */

.trust-section {
  background: var(--surface);
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-badge { text-align: center; padding: .7rem .4rem; }

.trust-badge i {
  font-size: 2rem;
  color: var(--primary);
  display: block;
  margin-bottom: .35rem;
  animation: fade-in-up .6s ease both;
}

.trust-badge span { font-size: .78rem; color: var(--muted); font-weight: 600; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-badge i { animation: none; }
}

.trust-badge:nth-child(1) i { animation-delay: .1s; }
.trust-badge:nth-child(2) i { animation-delay: .2s; }
.trust-badge:nth-child(3) i { animation-delay: .3s; }
.trust-badge:nth-child(4) i { animation-delay: .4s; }
.trust-badge:nth-child(5) i { animation-delay: .5s; }
.trust-badge:nth-child(6) i { animation-delay: .6s; }

/* ==========================================================================
   RESPONSIBLE-PLAY NOTICE
   ========================================================================== */

.privacy-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 2rem auto;
  max-width: 820px;
}

.privacy-notice i { color: var(--accent); }
.privacy-notice p { margin: 0; color: var(--text); font-size: .93rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section { background: var(--bg); padding: 3rem 1rem; }

.accordion-button { background: var(--surface); color: var(--heading); font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--surface); color: var(--accent); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px !important;
  margin-bottom: .6rem;
  overflow: hidden;
}

.accordion-body { color: var(--text); background: var(--surface); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 2.5rem 1rem 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .1rem;
  justify-content: center;
}

.footer-links li a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  padding: .3rem .7rem;
  border-radius: 6px;
  transition: color .2s;
}

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

.footer-copy {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.footer-copy p { margin: 0 0 .5rem; }
.footer-copy p:last-child { margin-bottom: 0; }

.footer-pay {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.footer-pay li {
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .25rem .8rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */

.section-title { font-weight: 800; color: var(--heading); margin-bottom: .4rem; }
.section-sub { color: var(--muted); margin-bottom: 2rem; font-size: .95rem; }

/* ==========================================================================
   CONTENT ARTICLE - the reference's 820px measure
   ========================================================================== */

.content-section {
  background: var(--surface);
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
}

.content-section--alt { background: var(--bg); }

.content-section p {
  color: var(--text);
  line-height: 1.8;
  font-size: .97rem;
  max-width: 820px;
  margin: 0 auto 1rem;
}

.content-section h2 { color: var(--heading); font-weight: 700; margin: 2rem auto .8rem; max-width: 820px; }
.content-section h3 { color: var(--heading); font-weight: 600; max-width: 820px; margin: 1.5rem auto .5rem; font-size: 1.15rem; }
.content-section h4 { color: var(--heading); font-weight: 600; max-width: 820px; margin: 1.2rem auto .5rem; font-size: 1rem; }

.content-section .container > h2:first-child,
.content-section .container > h3:first-child { margin-top: 0; }

.content-section ul,
.content-section ol {
  max-width: 820px;
  margin: 0 auto 1.2rem;
  padding-inline-start: 1.3rem;
  color: var(--text);
  line-height: 1.8;
  font-size: .97rem;
}

.content-section li { margin-bottom: .45rem; }

.check-list { list-style: none; padding-inline-start: 0 !important; }
.check-list li { position: relative; padding-inline-start: 1.9rem; }
.check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  inset-inline-start: 0;
  top: .15rem;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-wrap {
  max-width: 820px;
  margin: 0 auto 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.data-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: .88rem; }

.data-table th,
.data-table td {
  padding: .75rem .9rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg);
  color: var(--heading);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.data-table tbody td { color: var(--muted); }
.data-table tbody th { color: var(--heading); font-weight: 700; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td,
.data-table tbody tr:hover th { background: rgba(59, 130, 246, .04); }

/* ==========================================================================
   404
   ========================================================================== */

.error-code {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: var(--on-primary);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
  margin: 0 0 .5rem;
}

/* ==========================================================================
   RTL MIRROR (Urdu)
   ========================================================================== */

[dir="rtl"] .marquee-inner > span { margin-right: 0; margin-left: 3rem; }
[dir="rtl"] .marquee-inner { animation-name: marquee-rtl; }

@keyframes marquee-rtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

[dir="rtl"] .navbar-nav { padding-inline-start: 0; }
[dir="rtl"] .app-feature-list { padding-inline-start: 0; }
