/* ===========================================================
   Z7 Casino — ورلڈ کپ بیٹنگ / کیسینو گیم ڈائریکٹری
   Dark casino theme · RTL Urdu · mobile-first
   =========================================================== */

:root {
  --bg:        #121212;
  --surface:   #1a1a1a;
  --surface-2: #222222;
  --border:    #2e2e2e;
  --gold:      #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --red:       #e0273a;
  --green:     #1eae54;
  --green-2:   #169446;
  --text:      #f2efe6;
  --muted:     #b7b2a6;
  --star:      #f5c518;
  --radius:    14px;
  --wrap:      1140px;
  --head-h:    66px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Naskh Arabic", serif;
  line-height: 1.9;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 85% -10%, rgba(212,175,55,0.08), transparent 40%),
    radial-gradient(circle at 0% 110%, rgba(224,39,58,0.06), transparent 45%);
  background-attachment: fixed;
}

h1, h2, h3, .logo-text {
  font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  font-weight: 700;
  line-height: 2.2;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

/* skip link */
.skip-link {
  position: absolute;
  right: -999px;
  top: 8px;
  background: var(--gold);
  color: #111;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { right: 12px; }

/* =================== HEADER =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--head-h);
}
/* logo on the RIGHT (start of RTL flow) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 0;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold), #b8902a);
  color: #14110a;
  font-family: "Noto Nastaliq Urdu", serif;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 14px var(--gold-soft);
}
.logo-text {
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: .3px;
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.02rem;
  color: var(--text);
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(212,175,55,0.1);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.social-row a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .2s;
}
.social-row a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--gold-soft);
}
.social-row svg { width: 16px; height: 16px; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* =================== HERO =================== */
.hero {
  position: relative;
  margin-block: 22px;
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  aspect-ratio: 16 / 9;
  max-height: 420px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,18,18,0.92) 10%, rgba(18,18,18,0.55) 55%, rgba(18,18,18,0.25));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 64px);
}
.hero h1 {
  color: var(--gold);
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 6px;
}
.hero p {
  max-width: 620px;
  color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}
.hero .hero-cta {
  margin-top: 18px;
  align-self: flex-start;
}

/* =================== SECTIONS =================== */
.section { margin-block: 40px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}
.section-head h2 {
  position: relative;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  color: var(--gold);
  padding-right: 16px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 70%;
  border-radius: 4px;
  background: linear-gradient(var(--gold), var(--red));
}
.view-more {
  font-family: "Noto Naskh Arabic", serif;
  font-size: .95rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all .2s;
  white-space: nowrap;
}
.view-more:hover { color: var(--gold); border-color: var(--gold); }

/* page title (category / legal pages) */
.page-title {
  margin: 28px 0 4px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.page-title h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  color: var(--gold);
}
.page-title p { color: var(--muted); }

/* =================== CARD GRID =================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.app-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(0,0,0,0.6), 0 0 18px var(--gold-soft);
}
.app-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}
.app-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.app-card:hover .app-thumb img { transform: scale(1.07); }
.badge {
  position: absolute;
  top: 8px; right: 8px;
  font-family: "Noto Naskh Arabic", serif;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.badge.new      { background: var(--red); }
.badge.updated  { background: var(--green-2); }

/* index AI game thumbnails: 4:3 source + bottom game-name caption */
.ai-grid .app-thumb { aspect-ratio: 4 / 3; }
.thumb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  direction: ltr;
  text-align: center;
  font-family: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .4px;
  color: var(--gold);
  padding: 8px 10px 7px;
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.5) 70%, rgba(0,0,0,0));
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
  z-index: 2;
  pointer-events: none;
}

.app-body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.app-name {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 2;
}
.app-claim {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  min-height: 2.4em;
}
.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.ver-badge {
  direction: ltr;
  font-family: "Noto Naskh Arabic", serif;
  font-size: .74rem;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  padding: 2px 7px;
  background: rgba(212,175,55,0.07);
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  direction: ltr;
}
.stars .ico { width: 14px; height: 14px; color: var(--star); }
.stars .num { font-size: .76rem; color: var(--muted); margin-left: 3px; }

.btn-download {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(145deg, var(--green), var(--green-2));
  color: #fff;
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.btn-download:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(30,174,84,0.35);
}
.btn-download:active { transform: scale(.97); }
.btn-download svg { width: 16px; height: 16px; }

/* generic gold button (hero / forms) */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, var(--gold), #b8902a);
  color: #14110a;
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
}
.btn-gold:hover { box-shadow: 0 0 18px var(--gold-soft); transform: translateY(-2px); }

/* =================== PAGINATION =================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  direction: ltr;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: "Noto Naskh Arabic", serif;
  font-size: .95rem;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current {
  background: linear-gradient(145deg, var(--gold), #b8902a);
  color: #14110a;
  border-color: var(--gold);
  font-weight: 700;
}
.pagination .dots { border: none; background: none; }

/* =================== LEGAL / FORM CONTENT =================== */
.content-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  margin: 24px 0 40px;
}
.content-card h2 {
  color: var(--gold);
  font-size: 1.35rem;
  margin: 26px 0 10px;
}
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { color: var(--text); margin-bottom: 12px; }
.content-card ul { padding-right: 22px; }
.content-card a { color: var(--gold); text-decoration: underline; }

/* contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: "Noto Naskh Arabic", serif;
  font-size: .92rem;
  color: var(--gold);
}
.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1rem;
  direction: rtl;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* =================== ENGLISH (LTR) NAMES INSIDE RTL =================== */
.eng {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
}
.app-name a { color: inherit; transition: color .2s; }
.app-name a:hover { color: var(--gold); }

/* =================== APP DETAIL PAGE =================== */
.app-hero {
  display: flex;
  gap: clamp(16px, 4vw, 32px);
  align-items: center;
  flex-wrap: wrap;
}
.app-hero-icon {
  width: clamp(96px, 26vw, 132px);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--gold-soft);
  box-shadow: 0 0 22px var(--gold-soft);
  flex-shrink: 0;
}
.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero-info {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-detail-name {
  color: var(--gold);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.app-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-hero-meta .badge {
  position: static;
  font-family: "Noto Naskh Arabic", serif;
}
.btn-download.lg { font-size: 1.05rem; padding: 12px 26px; align-self: flex-start; }

.app-showcase {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
  margin-top: 6px;
}
.screenshot-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background: var(--surface-2);
  box-shadow: 0 8px 26px rgba(0,0,0,0.55);
}
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; }
.app-desc h2 { color: var(--gold); font-size: 1.3rem; margin: 0 0 10px; }
.app-desc p { margin-bottom: 14px; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: .98rem;
}
.info-table th {
  color: var(--gold);
  background: var(--surface-2);
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 700;
  width: 45%;
  white-space: nowrap;
}
.info-table td { color: var(--text); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

@media (max-width: 620px) {
  .app-showcase { grid-template-columns: 1fr; }
  .screenshot-frame { max-width: 250px; margin-inline: auto; }
}

/* =================== WORLD CUP =================== */
.wc-intro { margin-top: 6px; }
.wc-intro .lead { color: var(--text); font-size: 1.05rem; }
.wc-caption {
  font-family: "Noto Naskh Arabic", serif;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  min-height: 2.4em;
}
.wc-card .app-name { font-size: 1.1rem; color: var(--gold); }

/* external "related apps" primary CTA */
.wc-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.wc-ext-cta {
  font-size: 1.08rem;
  padding: 13px 32px;
  box-shadow: 0 0 18px var(--gold-soft);
}
.wc-ext-cta svg { width: 18px; height: 18px; }

/* background & highlights layout */
.wc-highlights {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}
.wc-highlights-text .lead { color: var(--text); font-size: 1.08rem; }
.wc-highlights-text strong { color: var(--gold); font-weight: 700; }
.wc-highlights-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wc-fig {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.wc-fig img { width: 100%; height: 100%; object-fit: cover; }
.wc-fig-lead {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}
.wc-fig:not(.wc-fig-lead) { aspect-ratio: 1 / 1; }

.wc-note {
  margin-top: 16px;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
}
.wc-note strong { color: var(--gold); }

@media (max-width: 820px) {
  .wc-highlights { grid-template-columns: 1fr; }
  .wc-highlights-imgs { order: -1; }
}

.wc-table-wrap { overflow-x: auto; }
.wc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 460px;
}
.wc-table caption {
  caption-side: top;
  text-align: right;
  color: var(--gold);
  font-family: "Noto Nastaliq Urdu", serif;
  font-weight: 700;
  padding: 0 4px 12px;
  font-size: 1.15rem;
}
.wc-table th, .wc-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: .96rem;
}
.wc-table thead th {
  color: #14110a;
  background: linear-gradient(145deg, var(--gold), #b8902a);
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 700;
}
.wc-table tbody td { color: var(--text); }
.wc-table .team { color: var(--gold); font-weight: 700; }
.wc-table .vs { color: var(--red); font-weight: 700; direction: ltr; }
.wc-table tbody tr:nth-child(even) { background: var(--surface-2); }
.wc-table tbody tr:last-child td { border-bottom: none; }

/* =================== WORLD CUP — OFFERS / BONUS =================== */
.wc-offers .content-card { padding: 0; overflow: hidden; }
.wc-offers-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.wc-offers-banner img { width: 100%; height: 100%; object-fit: cover; }
.wc-offers-banner .wc-offers-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,18,18,0.95) 10%, rgba(18,18,18,0.55) 55%, rgba(224,39,58,0.25));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: clamp(18px, 5vw, 44px);
}
.wc-offers-banner h3 {
  color: var(--gold);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}
.wc-offers-banner p {
  max-width: 560px;
  color: var(--text);
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
}
.wc-offers-body { padding: clamp(18px, 4vw, 32px); }
.wc-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.wc-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wc-offer-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(0,0,0,0.6), 0 0 18px var(--gold-soft);
}
.wc-offer-tag {
  align-self: flex-start;
  font-family: "Noto Naskh Arabic", serif;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.wc-offer-card h4 {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 1.15rem;
  line-height: 2;
  color: var(--gold);
}
.wc-offer-card .wc-offer-desc {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.8;
  flex: 1;
}
.wc-offer-card .wc-offer-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
}
.wc-offer-card .wc-offer-urgency svg { width: 14px; height: 14px; flex-shrink: 0; }
.wc-offer-card .btn-download { margin-top: 2px; }
.wc-play-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.8;
}
.wc-play-note strong { color: var(--gold); }

/* =================== FOOTER =================== */
.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  background: #0d0d0d;
  padding: 34px 0 26px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  color: var(--muted);
  font-size: .95rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  transition: all .2s;
}
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom {
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.footer-bottom .brand { color: var(--gold); }
.footer-bottom .credits { display: block; margin-top: 8px; font-size: .8rem; }
.footer-bottom .credits a { color: var(--muted); text-decoration: underline; }

/* =================== RESPONSIVE =================== */
@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute;
    top: var(--head-h);
    right: 0; left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px;
    gap: 2px;
  }
  .main-nav a { padding: 12px 10px; }
  .social-row { display: none; }
  .header-inner { gap: 8px; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-overlay { background: linear-gradient(0deg, rgba(18,18,18,0.95) 8%, rgba(18,18,18,0.4)); }
  .logo-text { font-size: 1.15rem; }
  .app-name { font-size: .98rem; }
}

@media (max-width: 360px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* =================== INDEX FEATURE + PROMO BANDS (Z7 Casino) =================== */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
}
.feature-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text .lead { color: var(--text); font-size: 1.08rem; }
.feature-text .feature-list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-text .feature-list li {
  position: relative;
  padding-right: 26px;
  color: var(--text);
}
.feature-text .feature-list li::before {
  content: "";
  position: absolute;
  right: 0; top: .6em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #b8902a);
  box-shadow: 0 0 8px var(--gold-soft);
}

.promo-band { padding: 0; overflow: hidden; }
.promo-media {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  overflow: hidden;
}
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,18,18,0.94) 12%, rgba(18,18,18,0.5) 55%, rgba(212,175,55,0.18));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 5vw, 48px);
}
.promo-overlay h3 {
  color: var(--gold);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}
.promo-overlay p { max-width: 560px; color: var(--text); }

/* =================== INDEX GAME CATEGORIES BAND (Z7 Casino) =================== */
.cat-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
}
.cat-media {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
  background: rgba(212,175,55,0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: border-color .2s, background .2s, transform .2s;
}
.cat-link:hover, .cat-link:focus {
  border-color: var(--gold);
  background: rgba(212,175,55,0.14);
  transform: translateY(-2px);
}
.cat-link::before {
  content: "";
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #b8902a);
  box-shadow: 0 0 8px var(--gold-soft);
}

@media (max-width: 820px) {
  .feature-band { grid-template-columns: 1fr; }
  .feature-media { order: -1; }
  .cat-band { grid-template-columns: 1fr; }
  .cat-media { order: -1; }
}
@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
}
