/* Base */
:root {
  --bg: #0b1120;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --warning: #fbbf24;
  --border: rgba(255, 255, 255, 0.12);
  --card-radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.14), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 28%),
              radial-gradient(circle at 60% 70%, rgba(124, 58, 237, 0.08), transparent 25%),
              var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1400px, 100%);
  padding-left: clamp(12px, 2vw, 24px);
  padding-right: clamp(12px, 2vw, 24px);
  margin: 0 auto;
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
    cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.3);
}
.btn.secondary {
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, 0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #020617;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name { font-weight: 800; font-size: 18px; }
.brand-tagline { display: block; font-size: 12px; color: var(--muted); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #e8eefb;
  margin: 4px 0;
  border-radius: 2px;
}
.head-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.head-link {
  color: #d7e0ef;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.head-link:hover {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.24);
  transform: translateY(-1px);
}
.head-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(34, 211, 238, 0.32));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lang-btn {
  border: none;
  background: transparent;
  color: #d7e0ef;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.active {
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #031020;
}
#cta-scroll.btn.primary {
  border-radius: 11px;
  padding: 11px 16px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Hero */
.hero {
  padding: 80px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}
.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 46px);
}
.hero-subtitle {
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
}
.glass-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.glass-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.glass-header .dot {
  width: 10px; height: 10px; border-radius: 999px;
  display: inline-block;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #22c55e; }
.glass-title { color: var(--muted); font-weight: 700; font-size: 13px; margin-left: 4px; }
.glass-body { padding: 16px; }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.preview-item {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(34,211,238,0.24));
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
}
.preview-item strong { font-size: 15px; }
.preview-item small { color: var(--muted); }
.preview-item .pill {
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid var(--border);
}
.preview-item.pulse { animation: pulseCard 1.8s ease-in-out infinite; }
@keyframes pulseCard {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 30px rgba(34,211,238,0.2); }
  50% { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(124,58,237,0.35); }
}
.preview-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Portal */
.portal {
  padding: 40px 0 80px;
}
.section-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.section-header h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
}
.section-subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}

.controls { display: flex; gap: 10px; align-items: center; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 240px;
}
.search-field input {
    width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
}
.search-field svg {
  width: 18px; height: 18px;
  fill: var(--muted);
}

.categories-filter {
  margin: 24px 0 12px;
}
.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.categories-scroll::-webkit-scrollbar { height: 8px; }
.categories-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.category-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.18s ease;
}
.category-btn:hover { border-color: var(--accent); }
.category-btn.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(34,211,238,0.2));
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.26);
}

.summary {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 18px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
    overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.5);
}
.game-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  background: #111827;
}
.game-thumb img {
    width: 100%;
  height: 100%;
  object-fit: cover;
    display: block;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.badge.premium { color: #fcd34d; border-color: rgba(252, 211, 77, 0.5); }

.game-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-title { margin: 0; font-size: 17px; }
.game-meta { color: var(--muted); font-size: 13px; }
.game-actions { margin-top: auto; display: flex; gap: 10px; }
.game-actions .btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  transition: all 0.18s ease;
}
.game-actions .btn:hover { border-color: var(--accent); }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
}

.load-more {
  margin-top: 20px;
    display: flex;
    align-items: center;
  gap: 14px;
  justify-content: center;
}
.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}
.loading-indicator[hidden] {
  display: none !important;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-indicator[hidden] {
  display: none !important;
}

/* Login modal */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}
.login-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, 90vw);
  background: #020617;
  border-radius: 18px;
  padding: 22px 20px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
}
.login-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.login-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-form label {
  font-size: 13px;
  color: var(--muted);
}
.login-form input {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}
.login-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.login-error {
  min-height: 18px;
  font-size: 12px;
  color: #f97373;
}
.login-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 17, 32, 0.8);
  padding: 26px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.5);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-footer { font-weight: 800; font-size: 18px; }
.footer-text { margin: 6px 0 0; color: var(--muted); }
.footer-columns {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-block h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 600;
}
.footer-links a:hover { color: var(--text); }
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact-info a,
.footer-contact-info p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.phone-rtl-align {
  text-align: right;
  width: 100%;
}

.static-page {
  padding: 60px 0 80px;
}
.static-page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}
.static-page p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}
.static-page h2 {
  margin: 26px 0 10px;
  font-size: clamp(20px, 2.6vw, 28px);
}
.static-page ul {
  max-width: 760px;
  margin: 0 0 12px 20px;
  color: var(--muted);
  line-height: 1.7;
}
.policy-doc {
  margin-top: 12px;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.policy-meta {
  margin: 0 0 10px;
  color: #e2e8f0;
}
.policy-doc h2 {
  margin: 18px 0 8px;
  font-size: clamp(18px, 2.2vw, 24px);
}
.policy-doc p,
.policy-doc ul {
  max-width: 100%;
}
[data-lang-content] {
  display: none;
}
[data-lang-content].is-active {
  display: block;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.home-image-showcase {
  display: grid;
  gap: 16px;
}
.home-futuristic {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.home-futuristic-image {
  width: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}
.home-futuristic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(11, 17, 32, 0.55) 0%,
    rgba(11, 17, 32, 0.35) 28%,
    rgba(11, 17, 32, 0.12) 50%,
    rgba(11, 17, 32, 0) 68%
  );
}
.home-section-title {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 32px);
}
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px;
}
.home-category-tile {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.home-category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.45);
}
.home-category-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-marquee {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 0;
}
.home-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-left 36s linear infinite;
}
.home-marquee.reverse .home-track {
  animation: scroll-right 42s linear infinite;
}
.home-game-tile {
  width: clamp(150px, 20vw, 220px);
  height: clamp(92px, 12vw, 130px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  flex: 0 0 auto;
}
.home-game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-samples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-sample-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.home-sample-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.45);
}
.home-sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
.home-sample-card span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}
.home-brand-about {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.2), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.16), transparent 35%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.home-brand-kicker {
  margin: 0 0 6px;
  color: #a5b4fc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.home-brand-lead {
  margin: 0 0 14px;
  max-width: 980px;
  color: #e2e8f0;
  font-size: 17px;
  line-height: 1.75;
}
.home-brand-about p {
  margin: 0 0 10px;
  max-width: 100%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.home-brand-about p:last-child {
  margin-bottom: 0;
}
.home-brand-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.home-brand-point {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.45);
}
.home-brand-point h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.home-brand-point p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.subscription-showcase {
  margin-bottom: 20px;
}
.subscription-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.subscription-game-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.subscription-game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}
.subscription-game-card span {
  color: var(--muted);
  font-size: 14px;
}
.subscription-panel-wrap {
  display: flex;
  justify-content: center;
}
.subscription-panel {
  width: min(760px, 100%);
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 12px;
}
body.rtl .subscription-panel {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .subscription-panel {
  direction: rtl;
  text-align: right;
}
.subscription-label {
  display: block;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}
.subscription-phone-input {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.subscription-country-code {
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-weight: 700;
}
.subscription-phone-input input {
  flex: 1;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
}
.subscription-submit {
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}
.subscription-feedback {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 14px;
}
.subscription-otp-box {
  display: grid;
  gap: 8px;
}
.subscription-otp-box[hidden] {
  display: none !important;
}
.subscription-otp-box input {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  letter-spacing: 0.3em;
}
.subscription-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}
.subscription-disclaimer p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.subscription-disclaimer p:last-child {
  margin-bottom: 0;
}
.subscription-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.subscription-legal a {
  color: #c7d2fe;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.rtl .subscription-legal {
  direction: rtl;
}
html[dir="rtl"] .subscription-legal {
  direction: rtl;
}
html[dir="rtl"] .subscription-phone-input {
  flex-direction: row-reverse;
}
html[dir="rtl"] #subscription-phone {
  text-align: right;
}
html[dir="rtl"] .subscription-country-code {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.home-hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}
.home-hero-content p {
  margin: 0 0 18px;
}
.home-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-hero-visual {
  position: relative;
  min-height: 260px;
}
.floating-card {
  position: absolute;
  min-width: 140px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(124, 58, 237, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  animation: floaty 3s ease-in-out infinite;
}
.card-one { top: 20px; left: 20px; animation-delay: 0s; }
.card-two { top: 100px; right: 20px; animation-delay: 0.35s; background: rgba(34, 211, 238, 0.18); }
.card-three { bottom: 20px; left: 80px; animation-delay: 0.7s; background: rgba(251, 191, 36, 0.16); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.home-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}
.stat-box strong {
  display: block;
  font-size: 28px;
  color: #ffffff;
}
.stat-box span { color: var(--muted); }
.home-features {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.55);
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
}
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.contact-map,
.contact-info-box,
.faq-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.contact-map {
  overflow: hidden;
  min-height: 280px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}
.contact-info-box {
  padding: 22px;
}
.contact-info-box h2,
.faq-box h2 {
  margin: 0 0 16px;
}
.contact-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-item:last-child {
  border-bottom: 0;
}
.contact-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--muted);
}
html[dir="rtl"] .contact-info-box,
html[dir="rtl"] .footer-contact-info {
  text-align: right;
}
.faq-box {
  padding: 22px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.faq-item p {
  margin: 0;
}

/* Loader overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.14), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 28%),
              #0b1120;
  display: grid;
  place-items: center;
  gap: 10px;
  z-index: 100;
}
.loader-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  animation: pulse 1s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* Responsive */
@media (max-width: 1200px) {
  .header-inner { padding: 14px 0; }
  .nav-actions {
    margin-left: auto;
    padding: 4px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(92vw, 360px);
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    padding: 10px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-actions.open .nav-menu,
  .nav-menu.open {
    display: flex;
  }
  .head-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    padding: 0;
  }
  .head-link {
    padding: 10px 12px;
    font-size: 14px;
  }
  .lang-switch {
    align-self: flex-start;
  }
  #cta-scroll.btn.primary {
    width: 100%;
    justify-content: center;
  }
  .controls { width: 100%; }
  .search-field { width: 100%; }
  .hero { padding-top: 56px; }
  .footer-columns {
    width: 100%;
    justify-content: space-between;
  }
  .contact-panel,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .home-hero,
  .home-stats,
  .home-features {
    grid-template-columns: 1fr;
  }
  .home-game-tile {
    width: 170px;
    height: 102px;
  }
  .home-hero-visual {
    min-height: 220px;
  }
}
@media (max-width: 640px) {
  .brand-name { font-size: 16px; }
  .brand-tagline { font-size: 11px; }
  .footer-inner { gap: 20px; }
  .footer-columns { gap: 18px; }
  .home-categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-section-title { font-size: clamp(20px, 6vw, 28px); }
  .home-marquee { padding: 8px 0; }
  .home-brand-points {
    grid-template-columns: 1fr;
  }
  .subscription-panel {
    padding: 16px;
  }
}
/* Reset and Base Styles */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0e131d 0%, #1a1f2e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
main {
    width: 100%;
    flex: 1 0 auto;
}
.rtl body,
body.rtl {
    direction: rtl;
}
.rtl .header-inner,
body.rtl .header-inner {
  flex-direction: row-reverse;
}
.rtl .section-header,
body.rtl .section-header {
  flex-direction: row-reverse;
}

.translated-rtl {
    direction: rtl;
}

/* Navbar */
.navbar {
    background: rgba(14, 19, 29, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fce261 !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #fce261 !important;
}

.navbar-brand img {
    margin-right: 1rem;
    filter: drop-shadow(0 2px 4px rgba(252, 226, 97, 0.3));
}

/* Loader */
#loader {
    position: fixed;
    display: flex;
    background: linear-gradient(135deg, #0e131d 0%, #1a1f2e 100%);
    width: 100%;
    height: 100vh;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top: 0;
    left: 0;
}

#loader img {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fce261;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes lds-ellipsis3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes lds-ellipsis2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Hero Section */
#hero {
    width: 100%;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(14, 19, 29, 0.7), rgba(14, 19, 29, 0.95));
}

.hero-elements {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-elements .slogan {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.2;
}

/* Content Section */
#content {
    padding: 4rem 0;
    min-height: 60vh;
}

.content-header {
    text-align: center;
    margin-bottom: 4rem;
}

.content-header h1 {
    font-size: clamp(3rem, 4vw, 4.5rem);
    font-weight: 900;
    color: #fce261;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(252, 226, 97, 0.3);
}

.content-header .subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Categories Filter */
.categories-filter {
    margin-bottom: 4rem;
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #fce261 rgba(255, 255, 255, 0.1);
}

.categories-filter::-webkit-scrollbar {
    height: 6px;
}

.categories-filter::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.categories-filter::-webkit-scrollbar-thumb {
    background: #fce261;
    border-radius: 10px;
}

.categories-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem;
    min-width: min-content;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.category-btn:hover {
    background: rgba(252, 226, 97, 0.2);
    border-color: #fce261;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 226, 97, 0.3);
}

.category-btn.active {
    background: #fce261;
color: #0e131d;
    border-color: #fce261;
    box-shadow: 0 4px 20px rgba(252, 226, 97, 0.5);
}

/* Games Grid */
.games-section {
    width: 100%;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Game Card */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(252, 226, 97, 0.5);
}

.game-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.game-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 19, 29, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fce261, #ffd700);
    color: #0e131d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(252, 226, 97, 0.5);
}

.play-btn {
    background: #fce261;
    color: #0e131d;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 226, 97, 0.4);
}

.play-btn:hover {
    background: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(252, 226, 97, 0.6);
}

.play-btn svg {
    width: 20px;
    height: 20px;
}

.game-card-content {
    padding: 2rem;
}

.game-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.game-card-category {
    font-size: 1.4rem;
    color: #fce261;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-card-description {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Load More Section */
.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    background: linear-gradient(135deg, #fce261, #ffd700);
    color: #0e131d;
    border: none;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(252, 226, 97, 0.4);
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(252, 226, 97, 0.6);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fce261;
    font-size: 1.6rem;
    margin-top: 2rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(252, 226, 97, 0.3);
    border-top-color: #fce261;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-content {
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fce261;
}

.btn-close {
    filter: invert(1);
}

.form-label {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.6rem;
        padding: 1rem;
    border-radius: 0.5rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fce261;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(252, 226, 97, 0.25);
}

.btn-primary {
    background: #fce261;
    color: #0e131d;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 226, 97, 0.4);
}

#error-login {
    color: #ff6b6b;
    font-size: 1.4rem;
    margin-top: 1rem;
}

.reset {
    display: block;
    font-size: 1.6rem;
    margin-top: 1rem;
    cursor: pointer;
    color: #fce261;
    text-decoration: underline;
}

.reset:hover {
    color: #ffd700;
}

.reset-response {
    display: block;
    font-size: 1.6rem;
    width: 100%;
    color: #fce261;
}

/* GTranslate */
.gtranslate_wrapper {
    position: fixed;
    bottom: 3%;
    right: 3%;
    z-index: 1000;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .hero-elements .slogan {
        font-size: 3rem;
        padding: 0 2rem;
    }
    
    .content-header h1 {
        font-size: 2.8rem;
    }
    
    .content-header .subtitle {
        font-size: 1.6rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 2rem;
    }
    
    .category-btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
    
    .game-card-content {
        padding: 1.5rem;
    }
    
    .game-card-title {
        font-size: 1.8rem;
    }
    
    .load-more-btn {
        padding: 1.2rem 3rem;
        font-size: 1.6rem;
    }
}

@media only screen and (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-scroll {
        gap: 1rem;
    }
    
    .category-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1.3rem;
    }
}

/* Hide Cards category if needed */
#pills-Cards-tab, #pills-Cards {
    display: none;
}
