/* ============================================================
   IndiaPlay Hub — Common Stylesheet  ·  v5 "Royal Gold VIP"
   Rich espresso black · metallic gold · luxury casino lounge
   ============================================================ */
:root {
  --bg: #100c07;
  --bg-2: #181208;
  --card: #1e160b;
  --card-hover: #271d10;
  --border: #3a2d17;
  --text: #f7efdd;
  --text-dim: #c2b294;
  --gold: #d4af37;
  --gold-2: #f5d76e;
  --gold-deep: #a67c00;
  --bronze: #b08040;
  --green: #4ade80;
  --red: #f87171;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gld: linear-gradient(135deg, #f5d76e 0%, #d4af37 45%, #a67c00 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

.gold-text {
  background: linear-gradient(120deg, #f9e7a8 0%, var(--gold) 50%, #c39a2a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,12,7,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--gld); opacity: .8;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .logo-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gld);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold-deep), 0 6px 16px rgba(212,175,55,.35);
}
.logo span em { background: var(--gld); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.main-nav ul { display: flex; gap: 3px; list-style: none; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-dim); font-size: .9rem; font-weight: 600;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-2); background: rgba(212,175,55,.12); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--gold-2); font-size: 1.3rem; padding: 4px 12px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 380px at 50% -12%, rgba(212,175,55,.16) 0%, transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-inner { padding: 72px 0 64px; max-width: 880px; margin: 0 auto; }
.hero .crown { font-size: 2.2rem; margin-bottom: 14px; filter: drop-shadow(0 4px 10px rgba(212,175,55,.5)); }
.hero h1 { font-family: var(--serif); font-size: 2.7rem; line-height: 1.18; margin-bottom: 18px; letter-spacing: 0; font-weight: 700; }
.hero p.lead { color: var(--text-dim); font-size: 1.07rem; margin: 0 auto 30px; max-width: 650px; }
.hero-img { max-width: 940px; margin: 40px auto 0; padding: 0 18px; position: relative; }
.hero-img img {
  border-radius: 16px; border: 1px solid var(--gold-deep);
  box-shadow: 0 0 0 1px rgba(212,175,55,.25), 0 26px 60px rgba(0,0,0,.65);
}
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.hero-badges span {
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  font-size: .8rem; padding: 6px 15px; border-radius: 999px;
}
.hero-badges b { color: var(--gold-2); margin-right: 3px; }

/* ornamental divider */
.ornament { display: flex; align-items: center; gap: 14px; max-width: 420px; margin: 0 auto 20px; }
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.ornament span { color: var(--gold); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gld);
  color: #241a05; font-weight: 800; font-size: 1rem;
  padding: 14px 32px; border-radius: 10px; border: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(212,175,55,.35), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .15s ease, box-shadow .15s ease;
  text-transform: uppercase; letter-spacing: .03em; font-size: .92rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,175,55,.5); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { background: transparent; color: var(--gold-2); border: 1.5px solid var(--gold); box-shadow: none; }
.btn-ghost:hover { background: rgba(212,175,55,.1); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); max-width: 660px; margin: 0 auto; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 19px; position: relative;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cat-card::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(212,175,55,.22);
  border-radius: 10px; pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-4px); text-decoration: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 26px rgba(212,175,55,.16), 0 16px 34px rgba(0,0,0,.5);
}
.cat-card .cat-emoji { font-size: 2rem; margin-bottom: 12px; filter: drop-shadow(0 3px 8px rgba(212,175,55,.45)); }
.cat-card h3 { color: var(--text); font-size: 1.04rem; margin-bottom: 6px; }
.cat-card p { color: var(--text-dim); font-size: .83rem; }
.cat-card .cat-count { display: inline-block; margin-top: 12px; font-size: .77rem; color: var(--gold-2); font-weight: 700; }

/* ---------- App grid / cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; display: flex; flex-direction: column; position: relative;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.app-card::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(212,175,55,.18);
  border-radius: 10px; pointer-events: none;
}
.app-card:hover {
  transform: translateY(-4px); border-color: var(--gold-deep);
  box-shadow: 0 0 26px rgba(212,175,55,.16), 0 16px 34px rgba(0,0,0,.5);
}
.app-card img.app-icon {
  width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 13px;
  border: 2px solid var(--gold-deep);
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
}
.app-card h3 { font-size: 1rem; margin-bottom: 3px; }
.app-card h3 a { color: var(--text); }
.app-card .app-cat { font-size: .72rem; color: var(--gold-2); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.app-card .app-tag { font-size: .81rem; color: var(--text-dim); margin: 8px 0 15px; flex: 1; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 17px 0 0; font-size: .83rem; color: var(--text-dim); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "❖"; margin-right: 6px; color: var(--gold-deep); font-size: .7rem; }
.breadcrumb a { color: var(--text-dim); }

/* ---------- Page hero ---------- */
.page-hero { padding: 34px 0 36px; }
.page-hero h1 { font-family: var(--serif); font-size: 2.1rem; line-height: 1.25; margin-bottom: 14px; max-width: 860px; }
.page-hero .lead { color: var(--text-dim); max-width: 790px; font-size: 1.01rem; }

/* ---------- App detail ---------- */
.app-detail { display: grid; grid-template-columns: 305px 1fr; gap: 36px; padding: 32px 0 12px; }
.app-detail-card {
  background: var(--card); border: 1px solid var(--gold-deep); border-radius: var(--radius);
  padding: 26px; text-align: center; align-self: start; position: sticky; top: 86px;
  box-shadow: 0 0 30px rgba(212,175,55,.12), 0 18px 40px rgba(0,0,0,.5);
}
.app-detail-card img {
  width: 126px; height: 126px; border-radius: 28px; margin: 0 auto 15px;
  border: 2px solid var(--gold-deep); box-shadow: 0 8px 22px rgba(0,0,0,.55);
}
.app-detail-card h2 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 4px; }
.app-detail-card .app-cat { color: var(--gold-2); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.app-meta { margin: 17px 0; text-align: left; font-size: .86rem; }
.app-meta div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.app-meta div span:first-child { color: var(--text-dim); }
.app-detail-body h3 { font-family: var(--serif); font-size: 1.32rem; margin: 24px 0 10px; }
.app-detail-body p { color: var(--text-dim); margin-bottom: 12px; }
.feature-list { list-style: none; margin: 10px 0 18px; }
.feature-list li { padding: 8px 0 8px 31px; position: relative; color: var(--text-dim); }
.feature-list li::before {
  content: "◆"; position: absolute; left: 2px; top: 8px;
  color: var(--gold); font-size: .9rem;
  text-shadow: 0 0 8px rgba(212,175,55,.6);
}
.steps { counter-reset: step; list-style: none; margin: 10px 0 18px; }
.steps li { counter-increment: step; padding: 10px 0 10px 46px; position: relative; color: var(--text-dim); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gld); color: #241a05; font-weight: 800; font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(212,175,55,.4);
}

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-size: .97rem; font-weight: 700; padding: 16px 19px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font);
}
.faq-q::after { content: "◆"; color: var(--gold); font-size: .8rem; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 19px 16px; color: var(--text-dim); font-size: .91rem; }

/* ---------- Keyword chips ---------- */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.kw-cloud span {
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  font-size: .79rem; padding: 5px 13px; border-radius: 999px;
}

/* ---------- Notice ---------- */
.notice {
  background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.4);
  border-radius: 12px; padding: 15px 19px; font-size: .85rem; color: var(--text-dim); margin-top: 28px;
}
.notice strong { color: var(--gold-2); }

/* ---------- Footer ---------- */
.site-footer { background: #0a0805; border-top: 1px solid var(--border); padding: 46px 0 28px; margin-top: 44px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--gld); opacity: .8;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: var(--gold-2); font-size: .94rem; margin-bottom: 12px; font-family: var(--serif); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-dim); font-size: .87rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer p { color: var(--text-dim); font-size: .84rem; }
.footer-brand { max-width: 330px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #8a7c5e; font-size: .8rem;
}
.badge-18 {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: .78rem;
  align-items: center; justify-content: center; margin-right: 8px; vertical-align: middle;
}

/* ---------- Sticky mobile download bar ---------- */
.sticky-dl {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(16,12,7,.96); border-top: 1px solid var(--gold-deep);
  padding: 10px 16px; backdrop-filter: blur(10px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cat-grid, .app-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(24,18,8,.98); border-bottom: 1px solid var(--gold-deep);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
  .hero-inner { padding: 48px 0 44px; }
  .hero h1 { font-size: 1.9rem; }
  .app-detail { grid-template-columns: 1fr; }
  .app-detail-card { position: static; }
  .sticky-dl.on { display: block; }
}
@media (max-width: 560px) {
  .cat-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head h2 { font-size: 1.55rem; }
  .page-hero h1 { font-size: 1.55rem; }
}
