/* Joker Game Landing – Matka A23 style (matkaa23.com) */
:root {
  --maroon: #a94f4c;
  --maroon-dark: #b84e49;
  --hero-bg: #ac6b6b;
  --btn-download: #e96a62;
  --telegram: #1da0e2;
  --whatsapp: #25D366;
  --cta-yellow: #fbde18;
  --cta-yellow-text: #1a1a1a;
  --light-bg: #f5f3f0;
  --light-bg-2: #e8e6e3;
  --starline-bg: linear-gradient(135deg, #e0e8f5 0%, #e8e0f0 100%);
  --jackpot-bg: #f8f6f0;
  --dark-bg: #1a1a2e;
  --dark-purple: #2d2440;
  --white: #ffffff;
  --text-dark: #2a2a2a;
  --text-muted: #555;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --container: min(100% - 2rem, 960px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--hero-bg);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  max-height: 56px;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 0;
  overflow: hidden;
}

.logo-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}

.logo-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.nav-desktop {
  display: none;
}

.nav-desktop a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--cta-yellow);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--dark-bg);
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.nav-mobile a:hover {
  color: var(--cta-yellow);
}

/* Hero – Matka A23: reddish-brown bg, logo left + content right, then yellow CTA */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-logo-box {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-logo-img {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  object-fit: contain;
  object-position: center;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero-title-line1,
.hero-title-line2 {
  color: var(--white);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-download {
  background: var(--btn-download);
  color: var(--white);
}

.btn-download:hover {
  opacity: 0.95;
}

.btn-telegram {
  background: var(--telegram);
  color: var(--white);
}

.btn-telegram:hover {
  opacity: 0.9;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  opacity: 0.9;
}

/* Big yellow CTA – Matka A23 style */
.btn-cta-large {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--cta-yellow);
  color: var(--cta-yellow-text);
  text-align: center;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* Section pill – maroon badge like Matka A23 */
.section-pill {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  margin: 0 auto 0.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.rates .section-pill,
.faq .section-pill,
.how-to-play .section-pill,
.cta-dark .section-pill {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-pill-light {
  background: var(--maroon);
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.section-subtitle.dark {
  color: var(--text-dark);
}

.rate-min-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Rates – light section, white cards */
.rates {
  padding: 3rem 0;
}

.rates-matka {
  background: linear-gradient(180deg, #f0eeeb 0%, #e8e4e0 100%);
  color: var(--text-dark);
}

.rates-matka .section-pill,
.rates-starline .section-pill,
.rates-jackpot .section-pill {
  display: block;
}

.rates-matka .btn-cta-large,
.rates-jackpot .btn-cta-large {
  margin-top: 1.5rem;
}

.rate-cards-white {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.rate-card-white {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rate-card-white:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6b5b95;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.rate-card-white h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.rate-line {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.rate-card-featured {
  border: 2px solid var(--maroon);
  background: linear-gradient(135deg, #fff8f0, var(--white));
}

.rate-card-star::after {
  content: '★';
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  color: var(--cta-yellow);
  font-size: 0.9rem;
}

/* Starline section */
.rates-starline {
  background: var(--starline-bg);
  color: var(--text-dark);
}

/* Jackpot section */
.rates-jackpot {
  background: var(--jackpot-bg);
  color: var(--text-dark);
}

.jackpot-card {
  max-width: 280px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffd89b 0%, #fef9e8 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.jackpot-icon {
  display: block;
  font-size: 2rem;
  color: #e6a800;
  margin-bottom: 0.5rem;
}

.jackpot-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.jackpot-card .rate-line {
  margin: 0;
}

/* CTA dark – Joker Game / Download Now */
.cta-dark {
  padding: 3rem 0;
  background: var(--dark-bg);
  text-align: center;
}

.cta-dark-subtitle {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-dark .btn-cta-large {
  margin: 0 auto;
}

/* How to Play – dark purple gradient */
.how-to-play {
  padding: 3rem 0;
  background: linear-gradient(180deg, #2d2440 0%, #1e1830 50%, #1a1a2e 100%);
  text-align: center;
}

.how-to-play .section-subtitle {
  color: rgba(255,255,255,0.85);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.step-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  padding-top: 2.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(251, 222, 24, 0.3);
  transform: translateY(-2px);
}

.step-num {
  position: absolute;
  left: 50%;
  top: -0.75rem;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--maroon);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.step-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.step-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* FAQ – light section */
.faq {
  padding: 3rem 0;
  background: var(--light-bg);
  color: var(--text-dark);
}

.faq .section-pill {
  display: block;
  margin-bottom: 0.5rem;
}

.faq-list {
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--cta-yellow);
  color: var(--cta-yellow-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.faq-item summary::after {
  content: '⌄';
  margin-left: auto;
  font-size: 1rem;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: '⌃';
}

.faq-item p {
  padding: 0 1.25rem 1.25rem 3.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.faq-contact {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.faq-contact.dark {
  color: var(--text-dark);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-contact {
  min-width: 120px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-contact:hover {
  border-color: var(--maroon);
  box-shadow: var(--shadow-lg);
}

.btn-contact.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border: none;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}

.footer-copy a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--cta-yellow);
}

.footer .btn-cta-large {
  margin: 0 auto;
}

/* Tablet – hero side by side */
@media (min-width: 600px) {
  .hero-block {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 2rem;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .rate-cards-white {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-mobile {
    display: none !important;
  }

  .logo-text {
    max-width: none;
  }

  .rate-cards-white {
    grid-template-columns: repeat(3, 1fr);
  }

  .rates-matka .rate-cards-white {
    grid-template-columns: repeat(4, 1fr);
  }

  .rates-starline .rate-cards-white {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  :root {
    --container: 960px;
  }
}
