:root {
  color-scheme: dark;
  --bg: #070a13;
  --bg-soft: #0c1020;
  --panel: rgba(17, 22, 42, 0.82);
  --panel-strong: rgba(18, 24, 47, 0.96);
  --panel-muted: rgba(12, 17, 34, 0.72);
  --line: rgba(205, 214, 255, 0.13);
  --line-strong: rgba(244, 198, 93, 0.34);
  --text: #f6f7ff;
  --muted: #a9b2d4;
  --subtle: #7781a7;
  --gold: #f4c65d;
  --gold-soft: #ffe59b;
  --gold-deep: #a7651b;
  --violet: #8b5cf6;
  --violet-soft: #bba4ff;
  --blue: #42b7ff;
  --green: #4dd4a4;
  --red: #ff6b76;
  --orange: #ff9b55;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.26);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-height: 78px;
  --content-width: 1240px;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
html[lang="ar"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(103, 74, 198, 0.22), transparent 42%),
    linear-gradient(180deg, #080b17 0%, #070a13 46%, #060810 100%);
  overflow-x: hidden;
  direction: ltr;
}
body[data-locale="ar"] .localized-copy,
body[data-locale="ar"] .form-copy,
body[data-locale="ar"] .textual-card,
body[data-locale="ar"] .page-copy,
body[data-locale="ar"] .toast {
  direction: rtl;
  text-align: right;
}
a { color: inherit; text-decoration: none; }
a.hero-card, a.game-art { display: block; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(244, 198, 93, 0.28); color: #fff; }

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.26;
  z-index: -3;
}
.ambient-one { width: 520px; height: 520px; background: #5f3ec5; top: -210px; right: -130px; }
.ambient-two { width: 440px; height: 440px; background: #b56a23; left: -180px; bottom: -160px; opacity: 0.16; }
.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 10, 19, 0.92), rgba(7, 10, 19, 0.72));
  backdrop-filter: blur(22px) saturate(140%);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.header-inner {
  width: min(calc(100% - 40px), var(--content-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand img { width: 210px; height: auto; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: 8px; }
.nav-link {
  position: relative;
  padding: 11px 15px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.055); }
.nav-link.active::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 18px;
  right: 18px;
  bottom: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  box-shadow: 0 0 14px rgba(244,198,93,.45);
}
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.language-select {
  min-width: 118px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 17, 34, .78);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  cursor: pointer;
}
.language-select:focus { border-color: rgba(244,198,93,.5); box-shadow: 0 0 0 3px rgba(244,198,93,.08); }
.mobile-menu-button { display: none; }

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 13px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-primary {
  color: #1a1204;
  background: linear-gradient(135deg, #ffe79b, #f4c65d 48%, #c17b22);
  box-shadow: 0 12px 30px rgba(197,126,35,.22), inset 0 1px rgba(255,255,255,.5);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 16px 38px rgba(197,126,35,.32), inset 0 1px rgba(255,255,255,.55); }
.btn-secondary { background: rgba(255,255,255,.055); border-color: var(--line); color: var(--text); }
.btn-secondary:hover:not(:disabled) { border-color: rgba(244,198,93,.38); background: rgba(255,255,255,.085); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.05); color: var(--text); }
.btn-danger { background: rgba(255,107,118,.12); color: #ffadb3; border-color: rgba(255,107,118,.2); }
.btn-small { min-height: 38px; padding: 0 13px; font-size: 13px; }
.icon { width: 18px; height: 18px; display: inline-grid; place-items: center; }

main { flex: 1; }
.content-wrap { width: min(calc(100% - 40px), var(--content-width)); margin: 0 auto; }
.page { padding: 56px 0 84px; min-height: calc(100vh - var(--header-height)); }
.page-header { margin-bottom: 32px; max-width: 820px; }
.page-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 13px;
}
.page-title { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -.04em; }
.page-subtitle { margin: 17px 0 0; max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.75; }

.announcement {
  margin-top: 18px;
  border: 1px solid rgba(244,198,93,.24);
  background: linear-gradient(90deg, rgba(133,82,19,.16), rgba(77,54,137,.12));
  border-radius: 15px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #f7ddb0;
  font-size: 14px;
  font-weight: 700;
}
.announcement-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }

.hero { position: relative; padding: 76px 0 56px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: 52px;
  align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139,92,246,.3);
  background: rgba(139,92,246,.08);
  color: #c7b5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-soft); box-shadow: 0 0 18px var(--violet); }
.hero-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(110deg, #fff 3%, #ffe7a0 38%, #bda7ff 72%, #65c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { margin: 25px 0 0; max-width: 650px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero-live { display: flex; align-items: center; gap: 10px; margin-top: 23px; color: var(--subtle); font-size: 13px; font-weight: 700; }
.live-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(77,212,164,.55); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77,212,164,.5); } 70% { box-shadow: 0 0 0 11px rgba(77,212,164,0); } 100% { box-shadow: 0 0 0 0 rgba(77,212,164,0); } }

.hero-visual { position: relative; perspective: 1200px; }
.hero-card {
  position: relative;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.16);
  background: #0c1020;
  overflow: hidden;
  box-shadow: 0 45px 110px rgba(0,0,0,.55), 0 0 80px rgba(96,65,188,.12);
  transform: rotateY(-4deg) rotateX(1.5deg);
  transition: transform .4s ease;
}
.hero-card:hover { transform: rotateY(-1deg) translateY(-4px); }
.hero-card img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.hero-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,6,12,.86) 100%); }
.hero-card-footer { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-game-name { font-size: 18px; font-weight: 900; }
.platform-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.platform-pill { padding: 6px 9px; border: 1px solid rgba(255,255,255,.13); background: rgba(5,8,16,.58); border-radius: 999px; font-size: 11px; color: #e9ebff; font-weight: 800; backdrop-filter: blur(10px); }
.orbit-card {
  position: absolute;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(13,18,35,.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  z-index: 3;
}
.orbit-card strong { display: block; color: var(--gold-soft); font-size: 19px; }
.orbit-card span { color: var(--muted); font-size: 11px; }
.orbit-one { left: -30px; top: 13%; }
.orbit-two { right: -25px; bottom: 13%; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12,17,34,.55);
  overflow: hidden;
}
.stat-item { padding: 24px 28px; display: flex; align-items: center; gap: 16px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); }
.stat-number { font-size: 28px; font-weight: 950; color: var(--gold-soft); }
.stat-label { color: var(--muted); font-weight: 700; font-size: 13px; }

.section { padding: 78px 0; }
.section-tight { padding-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-title { margin: 0; font-size: clamp(29px, 4vw, 44px); letter-spacing: -.035em; }
.section-text { color: var(--muted); max-width: 690px; line-height: 1.75; margin: 10px 0 0; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.feature-card {
  min-height: 236px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(22,28,53,.76), rgba(9,13,27,.72));
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(244,198,93,.25); background: linear-gradient(150deg, rgba(27,34,65,.88), rgba(10,14,29,.8)); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(244,198,93,.19), rgba(139,92,246,.16));
  border: 1px solid rgba(244,198,93,.18);
  font-size: 22px;
  margin-bottom: 21px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease;
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(244,198,93,.32); }
.game-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover .game-art img { transform: scale(1.025); }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,8,16,.88)); }
.game-badges { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.badge { padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(6,8,16,.68); backdrop-filter: blur(12px); font-size: 11px; font-weight: 900; color: #eff1ff; }
.badge-live { color: #baf6df; border-color: rgba(77,212,164,.22); background: rgba(19,89,66,.36); }
.game-body { padding: 22px; }
.game-title-row { display: flex; align-items: center; gap: 13px; }
.game-logo { width: 44px; height: 44px; border-radius: 12px; }
.game-title { margin: 0; font-size: 22px; }
.game-studio { color: var(--subtle); font-size: 12px; margin-top: 3px; }
.game-description { color: var(--muted); line-height: 1.72; margin: 16px 0 19px; font-size: 14px; }
.game-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.game-platforms { display: flex; gap: 8px; color: var(--subtle); font-size: 12px; }

.coming-card {
  border: 1px dashed rgba(185,195,235,.2);
  border-radius: 26px;
  min-height: 390px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
  background: rgba(12,17,34,.35);
}
.coming-symbol { font-size: 52px; margin-bottom: 18px; filter: grayscale(.2); }
.coming-card h3 { margin: 0; font-size: 24px; }
.coming-card p { color: var(--muted); max-width: 410px; line-height: 1.75; }

.game-detail-hero {
  position: relative;
  min-height: 530px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: end;
}
.game-detail-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-detail-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,12,.92) 0%, rgba(4,6,12,.55) 52%, rgba(4,6,12,.18) 100%), linear-gradient(180deg, transparent 40%, rgba(4,6,12,.92)); }
.game-detail-content { position: relative; z-index: 2; max-width: 720px; padding: 52px; }
.game-detail-logo { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.game-detail-title { font-size: clamp(37px, 5vw, 62px); margin: 18px 0 14px; letter-spacing: -.04em; }
.game-detail-description { color: #c4cbe7; font-size: 16px; line-height: 1.8; }
.game-detail-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(21,27,51,.83), rgba(9,13,27,.8));
  box-shadow: var(--shadow-soft);
}
.panel-header { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-title { margin: 0; font-size: 18px; }
.panel-body { padding: 24px; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(410px, .75fr); gap: 36px; align-items: stretch; }
.auth-showcase {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #0b1020;
}
.auth-showcase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-showcase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,16,.08), rgba(7,9,16,.9)); }
.auth-showcase-copy { position: absolute; z-index: 2; left: 36px; right: 36px; bottom: 36px; }
.auth-showcase-copy h2 { margin: 0; font-size: 34px; }
.auth-showcase-copy p { color: #c0c8e4; line-height: 1.7; max-width: 570px; }
.auth-card { padding: 34px; display: flex; flex-direction: column; justify-content: center; min-height: 650px; }
.auth-mark { width: 58px; height: 58px; margin-bottom: 20px; }
.auth-title { margin: 0; font-size: 31px; letter-spacing: -.03em; }
.auth-subtitle { margin: 10px 0 26px; color: var(--muted); line-height: 1.65; }
.form-grid { display: grid; gap: 15px; }
.form-group { display: grid; gap: 8px; }
.form-label { color: #dce1f8; font-size: 13px; font-weight: 800; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(5,8,17,.58);
  color: var(--text);
  outline: none;
  padding: 0 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-textarea { min-height: 120px; padding: 13px 14px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: rgba(244,198,93,.5); box-shadow: 0 0 0 4px rgba(244,198,93,.075); background: rgba(9,13,26,.78); }
.form-hint { color: var(--subtle); font-size: 12px; line-height: 1.55; }
.form-error { color: #ffadb3; font-size: 12px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 3px; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--gold-soft); font-weight: 800; }
.auth-link { color: #bba8ff; font-size: 13px; font-weight: 700; }
.auth-link:hover { color: #d1c4ff; }
.terms-copy { color: var(--subtle); font-size: 11px; line-height: 1.6; margin-top: 15px; }
.terms-copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.dashboard-main { display: grid; gap: 22px; }
.dashboard-side { display: grid; gap: 22px; align-content: start; }
.welcome-panel { position: relative; overflow: hidden; padding: 32px; min-height: 230px; }
.welcome-panel::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -90px; top: -110px; background: radial-gradient(circle, rgba(139,92,246,.32), transparent 68%); }
.welcome-title { position: relative; margin: 0; font-size: 31px; }
.welcome-copy { position: relative; color: var(--muted); max-width: 630px; line-height: 1.75; }
.account-chip { position: relative; margin-top: 25px; display: inline-flex; align-items: center; gap: 11px; border: 1px solid var(--line); padding: 10px 13px; border-radius: 14px; background: rgba(5,8,16,.38); }
.avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; color: #211400; background: linear-gradient(145deg, var(--gold-soft), var(--gold-deep)); }
.account-chip strong { display: block; font-size: 14px; }
.account-chip small { display: block; color: var(--subtle); margin-top: 2px; }
.library-list { display: grid; gap: 13px; }
.library-row { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 16px; padding: 13px; border-radius: 15px; border: 1px solid var(--line); background: rgba(6,9,19,.45); }
.library-row img { width: 82px; height: 52px; object-fit: cover; border-radius: 11px; }
.library-row h3 { margin: 0; font-size: 16px; }
.library-row p { margin: 4px 0 0; color: var(--subtle); font-size: 12px; }

.balance-card { padding: 26px; position: relative; overflow: hidden; }
.balance-card::after { content: "$"; position: absolute; right: 15px; bottom: -29px; font-size: 150px; line-height: 1; font-weight: 900; color: rgba(244,198,93,.055); }
.balance-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.balance-value { font-size: 44px; font-weight: 950; margin: 9px 0 5px; letter-spacing: -.04em; color: var(--gold-soft); }
.balance-meta { color: var(--subtle); font-size: 12px; }
.balance-actions { position: relative; z-index: 2; display: flex; gap: 9px; margin-top: 22px; }

.detail-list { display: grid; gap: 13px; }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-label { color: var(--subtle); font-size: 12px; }
.detail-value { font-weight: 800; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.wallet-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 34px; margin-bottom: 22px; overflow: hidden; position: relative; }
.wallet-hero::before { content: ""; position: absolute; inset: auto -110px -190px auto; width: 430px; height: 430px; background: radial-gradient(circle, rgba(244,198,93,.18), transparent 68%); }
.wallet-balance { font-size: clamp(48px, 7vw, 78px); font-weight: 950; letter-spacing: -.055em; color: var(--gold-soft); }
.wallet-balance small { font-size: 18px; letter-spacing: 0; color: var(--muted); }
.wallet-pending { color: var(--muted); margin-top: 9px; }
.wallet-shield { width: 116px; height: 116px; border-radius: 30px; display: grid; place-items: center; border: 1px solid rgba(244,198,93,.25); background: linear-gradient(145deg, rgba(244,198,93,.14), rgba(139,92,246,.12)); font-size: 52px; box-shadow: inset 0 0 40px rgba(255,255,255,.03); }
.wallet-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 22px; }
.package-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.package-card { border: 1px solid var(--line); border-radius: 15px; background: rgba(7,10,20,.5); padding: 18px; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.package-card:hover:not(:disabled) { transform: translateY(-3px); border-color: rgba(244,198,93,.35); background: rgba(18,23,44,.7); }
.package-card.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,198,93,.08); }
.package-amount { font-size: 26px; font-weight: 950; color: var(--gold-soft); }
.package-bonus { color: var(--green); font-size: 12px; margin-top: 4px; }
.migration-note { border: 1px solid rgba(139,92,246,.24); background: rgba(112,71,192,.09); border-radius: 16px; padding: 18px; color: #d3c8ff; line-height: 1.7; margin-bottom: 17px; }
.migration-note strong { display: block; margin-bottom: 6px; color: #e4ddff; }
.transaction-list { display: grid; }
.transaction-row { display: grid; grid-template-columns: 43px 1fr auto; gap: 13px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.transaction-row:last-child { border-bottom: 0; }
.transaction-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.055); }
.transaction-title { font-weight: 800; font-size: 14px; }
.transaction-date { color: var(--subtle); font-size: 11px; margin-top: 4px; }
.transaction-amount { font-weight: 900; }
.transaction-amount.positive { color: var(--green); }
.transaction-amount.negative { color: #ffadb3; }
.empty-state { min-height: 210px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.empty-state-icon { font-size: 38px; opacity: .7; margin-bottom: 12px; }

.admin-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 22px; }
.integration-list { display: grid; gap: 12px; }
.integration-item { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,10,20,.44); }
.integration-item span { display: block; color: var(--subtle); font-size: 11px; margin-bottom: 6px; }
.integration-item strong { font-size: 13px; overflow-wrap: anywhere; }
.admin-editor { display: grid; gap: 14px; }
.admin-game-block { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(7,10,20,.42); }
.admin-game-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.admin-game-head img { width: 42px; height: 42px; border-radius: 11px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(5,7,14,.65); }
.footer-inner { width: min(calc(100% - 40px), var(--content-width)); margin: 0 auto; padding: 34px 0; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-title { font-weight: 900; }
.footer-copy { color: var(--subtle); font-size: 12px; margin-top: 5px; }
.footer-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--gold-soft); }
.copyright { grid-column: 1 / -1; color: #606b92; font-size: 11px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); }

.toast-root { position: fixed; z-index: 100; top: 92px; right: 18px; width: min(390px, calc(100vw - 36px)); display: grid; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; border: 1px solid var(--line); border-radius: 15px; background: rgba(15,20,39,.96); box-shadow: var(--shadow); padding: 15px 17px; display: grid; grid-template-columns: 30px 1fr auto; gap: 11px; align-items: start; animation: toast-in .25s ease both; }
.toast.success { border-color: rgba(77,212,164,.26); }
.toast.error { border-color: rgba(255,107,118,.28); }
.toast-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.055); }
.toast-title { font-weight: 900; font-size: 13px; }
.toast-message { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 3px; }
.toast-close { border: 0; background: transparent; color: var(--subtle); cursor: pointer; font-size: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) translateX(12px); } to { opacity: 1; transform: none; } }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.boot-mark { width: 84px; height: 84px; animation: float 2.6s ease-in-out infinite; }
.boot-title { font-weight: 900; letter-spacing: .08em; color: #e8eaff; }
.boot-loader { width: 180px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.boot-loader span { display: block; width: 45%; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft), var(--violet)); animation: loading 1.3s ease-in-out infinite; }
@keyframes loading { from { transform: translateX(-120%); } to { transform: translateX(340%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.055); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.mobile-drawer { display: none; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .site-nav { display: none; }
  .mobile-menu-button { display: inline-flex; width: 42px; padding: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 830px; }
  .hero-visual { max-width: 760px; }
  .orbit-one { left: 14px; }
  .orbit-two { right: 14px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .wallet-grid, .admin-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-showcase { min-height: 410px; }
  .auth-card { min-height: auto; }
  .mobile-drawer {
    display: grid;
    position: fixed;
    z-index: 80;
    inset: var(--header-height) 14px auto 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11,15,29,.98);
    box-shadow: var(--shadow);
    padding: 12px;
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .mobile-drawer.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-drawer .nav-link { padding: 13px; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .header-inner, .content-wrap, .footer-inner { width: min(calc(100% - 24px), var(--content-width)); }
  .brand { min-width: 0; }
  .brand img { width: 146px; }
  .language-select { width: 47px; min-width: 47px; padding: 0 6px; }
  .header-actions .signin-label { display: none; }
  .hero { padding-top: 48px; }
  .hero-title { font-size: clamp(44px, 14vw, 68px); }
  .hero-grid { gap: 38px; }
  .hero-card { transform: none; border-radius: 22px; }
  .orbit-card { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--line); }
  .feature-grid, .game-grid, .package-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .game-detail-hero { min-height: 590px; }
  .game-detail-content { padding: 28px; }
  .auth-card { padding: 25px; }
  .auth-showcase-copy { left: 24px; right: 24px; bottom: 24px; }
  .library-row { grid-template-columns: 70px 1fr; }
  .library-row .btn { grid-column: 1 / -1; }
  .wallet-hero { grid-template-columns: 1fr; }
  .wallet-shield { display: none; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .toast-root { top: 78px; right: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
