:root {
  --bg: #d8efe7;
  --bg-soft: #bfe4d8;
  --panel: #eaf7f2;
  --panel-light: #aedbcd;
  --text: #0b2930;
  --muted: #52746f;
  --line: rgba(8, 66, 58, .14);
  --green: #04a46a;
  --green-dark: #038657;
  --mint: #96d8c0;
  --accent-rgb: 4, 164, 106;
  --orange: #e5aa55;
  --danger: #ff6b68;
  --radius: 22px;
  --display: "Tajawal", sans-serif;
  --body: "IBM Plex Sans Arabic", sans-serif;
  --content-width: 1176px;
  --page-gutter: clamp(18px, 3vw, 32px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { width: 100%; max-width: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { width: 100%; min-width: 0; max-width: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.7; overflow-x: clip; }
main, header, footer, section { min-width: 0; max-width: 100%; }
img, svg { max-width: 100%; }
input, textarea, select, button { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; width: 100%; height: 108px; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: auto; padding-inline: var(--page-gutter); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 8px 13px rgba(4,164,106,.42)) drop-shadow(0 0 20px rgba(150,216,192,.18)); transform: scale(1.08); }
.site-header .brand { width: 170px; height: 92px; justify-content: center; border: 0; background: transparent; box-shadow: none; transition: transform .2s, filter .2s; }
.site-header .brand:hover { filter: brightness(1.14); transform: translateY(-2px); }
.site-header .brand img { display: block; width: 150px; height: 85px; object-fit: contain; filter: drop-shadow(0 7px 12px rgba(4,164,106,.28)); transform: none; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--mint); font: 900 25px/1 var(--display); letter-spacing: -.7px; text-shadow: 0 3px 16px rgba(4,164,106,.2); }
.brand-copy small { color: var(--muted); margin-top: 6px; font-size: 10px; letter-spacing: .3px; }
nav { display: flex; gap: 34px; color: #244f4b; font-weight: 600; font-size: 14px; }
nav a { position: relative; transition: color .2s; }
nav a::after { content: ""; position: absolute; right: 0; left: 100%; bottom: -8px; height: 2px; background: var(--green); transition: left .2s; }
nav a:hover { color: #05734f; }
nav a:hover::after { left: 0; }
.admin-button { min-width: 172px; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid rgba(var(--accent-rgb),.28); border-radius: 13px; background: linear-gradient(135deg, var(--green), #128e78); color: #fff; font-family: var(--body); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 8px 24px rgba(var(--accent-rgb),.2); cursor: pointer; transition: .2s; }
.admin-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.admin-button:hover { border-color: rgba(var(--accent-rgb),.55); filter: brightness(1.1); }

.hero { width: 100%; min-height: 780px; position: relative; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; max-width: 1240px; margin: auto; padding: 130px var(--page-gutter) 60px; }
.hero::before { content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; right: 50%; width: 100vw; background: radial-gradient(circle at 15% 45%, rgba(4,164,106,.2), transparent 30%), linear-gradient(115deg, rgba(255,255,255,.22), transparent 58%, rgba(4,164,106,.08)); }
.hero-glow { position: absolute; z-index: -1; width: 600px; height: 600px; left: -130px; top: 90px; background: radial-gradient(circle, rgba(4,164,106,.17), transparent 67%); filter: blur(25px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.eyebrow i { width: 22px; height: 2px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.hero h1 { margin: 18px 0 20px; font: 900 clamp(48px, 5.4vw, 78px)/1.15 var(--display); letter-spacing: -2.8px; }
.hero h1 em { color: #047a53; font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; right: 0; bottom: -7px; width: 72%; height: 8px; border-top: 3px solid var(--green); border-radius: 50%; opacity: .55; transform: rotate(-1deg); }
.hero-content { min-width: 0; }.hero-content > p { max-width: 590px; color: #426c67; font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 32px; }
.primary-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 0; border-radius: 13px; padding: 0 24px; background: linear-gradient(135deg, var(--green), #128e78); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 10px 32px rgba(var(--accent-rgb),.2); transition: transform .2s, filter .2s; }
.primary-button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.primary-button span { font-size: 21px; }
.text-button { display: inline-flex; align-items: center; gap: 9px; color: #174a45; font-size: 14px; font-weight: 600; }
.play-icon { width: 35px; height: 35px; display: grid; place-items: center; padding-right: 2px; border: 1px solid rgba(8,66,58,.2); border-radius: 50%; color: var(--green); font-size: 10px; }
.hero-visual { --logo-x: 0px; --logo-y: 0px; --tilt-x: 0deg; --tilt-y: 0deg; --card-x: 0px; --card-y: 0px; --card-back-x: 0px; --card-back-y: 0px; --light-x: 40%; --light-y: 35%; min-width: 0; position: relative; height: 570px; display: grid; place-items: center; perspective: 950px; transform-style: preserve-3d; }
.hero-visual::before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle at var(--light-x) var(--light-y), #ecfaf5 0%, #9ed8c7 34%, #4dad91 68%, #176f5b 100%); box-shadow: inset -24px -28px 55px rgba(4,71,61,.28), inset 18px 15px 34px rgba(255,255,255,.46), 0 0 0 1px rgba(4,164,106,.35), 0 18px 55px rgba(4,96,77,.28); transform: translateZ(-35px); transition: background .12s linear; }
.hero-logo { position: relative; z-index: 2; width: min(84%, 400px); max-width: none; height: auto; object-fit: contain; filter: drop-shadow(0 28px 38px rgba(0,0,0,.38)) drop-shadow(0 0 32px rgba(4,164,106,.24)); transform: translate(var(--logo-x), calc(-4px + var(--logo-y))) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(-2deg) translateZ(38px); transform-style: preserve-3d; will-change: transform; transition: transform .12s ease-out, filter .25s; }
.hero-visual:hover .hero-logo { filter: drop-shadow(0 34px 42px rgba(0,0,0,.44)) drop-shadow(0 0 38px rgba(4,164,106,.3)); }
.orbit { position: absolute; border: 1.5px solid rgba(12,216,145,.72); border-radius: 50%; box-shadow: 0 0 10px rgba(4,210,137,.65), inset 0 0 10px rgba(150,255,216,.3); filter: drop-shadow(0 0 7px rgba(4,210,137,.5)); transform: rotateX(67deg) rotateZ(-12deg); }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 620px; height: 620px; border-color: rgba(3,166,111,.6); border-style: dashed; box-shadow: 0 0 13px rgba(3,190,124,.45); opacity: .9; }
.controller { position: relative; z-index: 2; width: 350px; height: 190px; border: 1px solid rgba(150,216,192,.18); border-radius: 49% 49% 34% 34% / 40% 40% 60% 60%; background: linear-gradient(145deg, #16384a, #0c182b 72%); box-shadow: inset 0 2px 3px rgba(255,255,255,.07), 0 30px 60px #030812; transform: rotate(-7deg) rotateY(-8deg); }
.controller-grip { position: absolute; top: 83px; width: 104px; height: 155px; z-index: -1; background: linear-gradient(160deg, #112c40, #091423); border: 1px solid rgba(150,216,192,.1); }
.controller-grip.left { left: 9px; border-radius: 40% 25% 55% 55%; transform: rotate(18deg); }
.controller-grip.right { right: 9px; border-radius: 25% 40% 55% 55%; transform: rotate(-18deg); }
.controller-top { position: absolute; top: 18px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.controller-top span { width: 24px; height: 4px; border-radius: 3px; background: #3d5964; }
.controller b { position: absolute; inset: 57px 0 auto; text-align: center; font: 800 29px var(--display); color: var(--mint); text-shadow: 0 0 16px rgba(150,216,192,.45); }
.dpad { position: absolute; right: 52px; top: 76px; width: 62px; height: 62px; }
.dpad i { position: absolute; background: #07101d; border: 1px solid #365766; border-radius: 5px; }
.dpad i:first-child { width: 22px; height: 62px; right: 20px; }
.dpad i:last-child { width: 62px; height: 22px; top: 20px; }
.buttons { position: absolute; left: 43px; top: 66px; width: 78px; height: 78px; }
.buttons i { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid; background: #081320; box-shadow: 0 3px 5px #020711; }
.buttons i:nth-child(1) { top: 0; left: 28px; color: var(--green); }.buttons i:nth-child(2) { right: 0; top: 28px; color: #eac65c; }.buttons i:nth-child(3) { bottom: 0; left: 28px; color: #599aec; }.buttons i:nth-child(4) { left: 0; top: 28px; color: #ec655f; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; min-width: 175px; padding: 12px 15px; border: 1px solid rgba(150,216,192,.2); border-radius: 13px; background: rgba(12,39,48,.9); color: #f2fbf8; backdrop-filter: blur(13px); box-shadow: 0 14px 35px rgba(0,0,0,.2); }
.floating-card span:not(.arabic-letter) { display: grid; }
.floating-card small { color: #9ebbb5; font-size: 10px; }
.floating-card strong { font-size: 12px; }
.card-ready { top: 116px; right: 5px; transform: translate3d(var(--card-x), var(--card-y), 64px); will-change: transform; transition: transform .15s ease-out; }
.card-ready i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.card-font { bottom: 87px; left: 2px; transform: translate3d(var(--card-back-x), var(--card-back-y), 82px); will-change: transform; transition: transform .17s ease-out; }
.arabic-letter { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: rgba(var(--accent-rgb),.15); color: var(--mint); font: 800 20px var(--display); }

.games-section, .features-section { width: 100%; padding: 110px max(var(--page-gutter), calc((100vw - var(--content-width))/2)); }
.games-section { background: #edf8f4; color: #0c182b; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
.section-heading h2, .steps-copy h2 { margin: 10px 0 0; font: 800 clamp(33px, 4vw, 50px)/1.25 var(--display); letter-spacing: -1.2px; }
.games-section .eyebrow { color: var(--green); }.features-section .eyebrow { color: #047a53; }
.search-box { display: flex; align-items: center; width: 280px; height: 48px; padding: 0 15px; border: 1px solid #c9ddd7; border-radius: 12px; background: #fff; color: #617c78; }
.search-box svg { width: 19px; flex: 0 0 auto; }
.search-box input { min-width: 0; width: 100%; height: 100%; padding: 0 10px; border: 0; outline: 0; background: transparent; color: #0c182b; }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { overflow: hidden; border: 1px solid #d3e3de; border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(12,24,43,.07); transition: transform .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(12,24,43,.14); }
.game-image { position: relative; height: 220px; overflow: hidden; background: #102438; }
.game-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,24,43,.7), transparent 60%); }
.game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game-card:hover .game-image img { transform: scale(1.035); }
.game-body { padding: 22px; }
.game-body h3 { margin: 0; font: 800 23px var(--display); direction: ltr; text-align: right; }
.game-body h3 { margin-bottom: 18px; }
.download-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 47px; padding: 0 17px; border-radius: 11px; background: linear-gradient(135deg, #0c182b, #123c46); color: #fff; font-size: 13px; font-weight: 700; transition: .2s; }
.download-button:hover { background: linear-gradient(135deg, #102438, #075b48); }
.download-button span { display: flex; align-items: center; gap: 8px; }
.download-button svg { width: 17px; }
.download-button small { color: var(--mint); font-weight: 400; direction: ltr; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state span { display: grid; place-items: center; width: 58px; height: 58px; margin: auto; border-radius: 50%; background: #d9e9e4; color: #0c182b; font: 800 25px var(--display); }
.empty-state h3 { margin-bottom: 2px; }.empty-state p { margin: 0; color: #6f7e78; }

.ads-section { width: 100%; padding: 34px max(var(--page-gutter), calc((100vw - var(--content-width))/2)); }
.ads-dark { border-block: 1px solid var(--line); background: #a9d9ca; color: #0b2930; }
.ads-light { background: #cce9df; color: #0c182b; }
.ads-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ads-heading span { font: 700 13px var(--display); }
.ads-heading small { color: #416a65; font-size: 10px; }
.ads-light .ads-heading small { color: #6d7974; }
.ads-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ad-banner { position: relative; isolation: isolate; min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 20px; border-radius: 16px; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.1); transition: transform .2s, box-shadow .2s; }
.ad-banner::before, .ad-banner::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.ad-banner::before { width: 150px; height: 150px; left: -40px; top: -75px; background: rgba(255,255,255,.12); }
.ad-banner::after { width: 75px; height: 75px; left: 70px; top: -30px; border: 16px solid rgba(255,255,255,.06); }
.ad-banner:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,.18); }
.ad-banner div { display: grid; }.ad-banner small { color: rgba(255,255,255,.72); font-size: 10px; }.ad-banner strong { font: 700 16px var(--display); }
.ad-banner b { margin-top: 8px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 500; }
.ad-label { position: absolute; top: 10px; right: 11px; padding: 2px 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: rgba(255,255,255,.65); font-size: 8px; }
.ad-banner:not(.is-active) { cursor: pointer; }
.ad-banner.is-active { background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.ad-banner.is-active::before, .ad-banner.is-active::after { display: none; }
.ad-green { background: linear-gradient(125deg, #04734d, #0c2931); }.ad-orange { background: linear-gradient(125deg, #126f68, #0c2436); }.ad-blue { background: linear-gradient(125deg, #174b64, #0c182b); }
.ad-purple { background: linear-gradient(125deg, #356477, #13243a); }.ad-red { background: linear-gradient(125deg, #07805c, #102b38); }.ad-teal { background: linear-gradient(125deg, #04a46a, #123649); }

.features-section { background: var(--bg-soft); color: #0b2930; }
.section-heading.centered { display: block; text-align: center; }
.section-heading.centered p { max-width: 580px; margin: 12px auto 0; color: var(--muted); }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.features-grid article { position: relative; min-height: 255px; padding: 28px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); transition: border-color .2s, background .2s; }
.features-grid article:hover { background: rgba(var(--accent-rgb),.06); border-color: rgba(150,216,192,.3); }
.feature-number { position: absolute; top: 19px; left: 19px; color: rgba(8,66,58,.22); font: 800 13px var(--display); }
.feature-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 12px; background: rgba(var(--accent-rgb),.14); color: #047a53; font: 800 22px var(--display); }
.feature-icon svg { width: 23px; }
.features-grid h3 { margin: 20px 0 7px; font: 700 19px var(--display); }
.features-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.steps-section { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(45px, 7vw, 100px); align-items: center; padding: 105px max(var(--page-gutter), calc((100vw - var(--content-width))/2)); background: #aedbcd; color: #0b2930; }
.steps-copy > p { max-width: 480px; color: var(--muted); }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border: 0; }
.steps-list li > span { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(4,122,83,.32); border-radius: 50%; color: #047a53; font: 700 15px var(--display); }
.steps-list h3 { margin: 0; font: 700 17px var(--display); }.steps-list p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
footer { width: 100%; min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1240px; margin: auto; padding: 30px var(--page-gutter); color: #426c67; font-size: 11px; }
footer > p { max-width: 460px; text-align: center; }
.footer-brand { width: 150px; height: 82px; justify-content: center; border: 0; background: transparent; box-shadow: none; }
.footer-brand img { display: block; width: 130px; height: 73px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(4,164,106,.24)); transform: none; }

.admin-dialog { width: min(1080px, calc(100vw - 32px)); height: min(760px, calc(100vh - 32px)); height: min(760px, calc(100dvh - 32px)); max-height: none; padding: 0; border: 1px solid #27485a; border-radius: 22px; background: #0c182b; color: #f2fbf8; box-shadow: 0 30px 90px #020711; overflow: hidden; }
.admin-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.admin-dialog::backdrop { background: rgba(3,8,18,.84); backdrop-filter: blur(5px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 23px 28px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 4px 0 0; font: 800 26px var(--display); }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #fff; font-size: 27px; line-height: 1; cursor: pointer; }
.login-panel { width: min(390px, 100%); max-height: 100%; display: grid; align-self: center; margin: 0 auto; padding: 34px 30px 40px; overflow-y: auto; scrollbar-width: none; }
.login-panel::-webkit-scrollbar { display: none; }
.login-panel > h3 { margin: 17px 0 3px; text-align: center; font: 800 23px var(--display); }
.login-panel > p { margin: 0 0 23px; color: var(--muted); text-align: center; font-size: 12px; }
.login-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: auto; border-radius: 16px; background: rgba(var(--accent-rgb),.14); color: var(--mint); }
.login-icon svg { width: 27px; }
.login-panel label { display: grid; gap: 6px; margin-bottom: 13px; color: #b9c7c2; font-size: 12px; }
.login-panel input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #29495a; border-radius: 9px; outline: 0; background: #081321; color: #fff; direction: ltr; }
.login-panel input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.login-panel .login-error { margin: -1px 0 12px; color: var(--danger); text-align: right; }
.admin-layout { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.admin-layout::-webkit-scrollbar { display: none; }
.game-form { min-height: 0; padding: 24px 27px; border-left: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.game-form::-webkit-scrollbar, .admin-list-wrap::-webkit-scrollbar { display: none; }
.game-form h3, .admin-list-heading h3 { margin: 0 0 20px; font: 700 18px var(--display); }
.game-form label { display: grid; gap: 6px; margin-bottom: 14px; color: #b9c7c2; font-size: 12px; }
.game-form input, .game-form textarea { width: 100%; border: 1px solid #29495a; border-radius: 9px; outline: 0; padding: 10px 12px; background: #081321; color: #fff; resize: vertical; }
.game-form input:focus, .game-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.upload-field { position: relative; }
.native-file { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.file-picker { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px dashed #3b6170; border-radius: 10px; background: rgba(var(--accent-rgb),.035); cursor: pointer; transition: .2s; }
.file-picker:hover { border-color: var(--green); background: rgba(var(--accent-rgb),.08); }
.file-picker > svg { width: 23px; color: var(--green); }
.file-picker > span { display: grid; min-width: 0; }.file-picker strong { overflow: hidden; color: #e7efec; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.file-picker small { color: var(--muted); font-size: 9px; }
.upload-progress { position: relative; height: 17px; overflow: hidden; margin-top: -1px; border-radius: 5px; background: #07111f; }
.upload-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--green-dark), var(--green)); transition: width .2s; }
.upload-progress small { position: relative; z-index: 1; display: block; color: #fff; text-align: center; font: 700 9px/17px var(--body); }
.form-actions { position: sticky; z-index: 4; bottom: -24px; display: flex; gap: 9px; margin: 18px -2px -24px; padding: 13px 2px 24px; background: linear-gradient(0deg, #0c182b 78%, rgba(12,24,43,0)); }
.form-actions .primary-button { flex: 1; }
.secondary-button { min-height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: #d9e1de; cursor: pointer; }
.admin-list-wrap { min-height: 0; padding: 24px 27px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.admin-list-heading { display: flex; justify-content: space-between; align-items: center; }
.admin-list-heading > div { display: flex; align-items: center; gap: 8px; }
.admin-list-heading span { display: grid; place-items: center; min-width: 30px; height: 25px; border-radius: 20px; background: rgba(var(--accent-rgb),.14); color: var(--mint); font-size: 11px; }
.logout-button { height: 28px; padding: 0 9px; border: 1px solid rgba(255,107,104,.25); border-radius: 7px; background: transparent; color: #ec9694; font-size: 10px; cursor: pointer; }
.admin-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: rgba(255,255,255,.02); }
.admin-item img { width: 70px; height: 52px; border-radius: 7px; object-fit: cover; }
.admin-item h4 { margin: 0; direction: ltr; text-align: right; font-size: 13px; }.admin-item p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.item-actions { display: flex; gap: 5px; }
.item-actions button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: #b8c8c2; cursor: pointer; }
.item-actions button:hover { color: var(--mint); border-color: rgba(150,216,192,.3); }.item-actions .delete:hover { color: var(--danger); border-color: rgba(255,107,104,.3); }
.ad-requests-heading { margin-top: 32px; padding-top: 23px; border-top: 1px solid var(--line); }
.ad-request-item { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.ad-request-main { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px; }
.ad-request-main img { width: 92px; height: 76px; border-radius: 8px; object-fit: cover; }
.ad-request-copy { min-width: 0; }.ad-request-copy h4 { margin: 0; overflow: hidden; font: 700 14px var(--display); text-overflow: ellipsis; white-space: nowrap; }.ad-request-copy p { margin: 3px 0 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }.ad-request-copy a { display: block; overflow: hidden; color: #6edca4; font-size: 9px; direction: ltr; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.advertiser-data { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 11px 10px; }.advertiser-data span { padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.05); color: #b8c8c2; font-size: 9px; }.advertiser-data .active-status { background: rgba(var(--accent-rgb),.14); color: var(--mint); }
.ad-request-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 42px; gap: 7px; padding: 9px 11px; border-top: 1px solid var(--line); }
.ad-request-actions button, .ad-request-actions a { min-height: 38px; display: grid; place-items: center; border: 1px solid rgba(var(--accent-rgb),.3); border-radius: 8px; background: rgba(var(--accent-rgb),.1); color: var(--mint); font-family: var(--body); font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; }.ad-request-actions .stop-ad { border-color: rgba(246,169,75,.25); background: rgba(246,169,75,.07); color: var(--orange); }.ad-request-actions .edit-ad { border-color: rgba(150,216,192,.25); background: rgba(150,216,192,.07); color: #b9ead8; }.ad-request-actions .whatsapp-ad { border-color: rgba(37,211,102,.3); background: rgba(37,211,102,.09); color: #58e58c; }.ad-request-actions .delete { width: 42px; border-color: rgba(255,107,104,.22); background: transparent; color: var(--danger); }.ad-request-actions button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .35; }
.ad-request-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #27485a; border-radius: 22px; background: #0c182b; color: #f2fbf8; box-shadow: 0 30px 90px #020711; overflow: hidden; }
.ad-request-dialog::backdrop { background: rgba(3,8,18,.86); backdrop-filter: blur(5px); }
.ad-request-form { max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); padding: 24px 30px clamp(52px, 7vh, 76px); overflow-y: auto; scrollbar-width: none; }
.ad-request-form::-webkit-scrollbar { display: none; }
.ad-request-form label, .form-field { display: grid; gap: 7px; margin-bottom: 15px; color: #c2d3cf; font-family: var(--body); font-size: 12px; font-weight: 600; line-height: 1.45; }
.field-label { display: block; }
.ad-request-form input, .ad-request-form textarea, .ad-request-form select { font-family: var(--body); font-size: 13px; font-weight: 500; }
.ad-request-form input, .ad-request-form textarea { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #29495a; border-radius: 10px; outline: 0; background: #081321; color: #fff; line-height: 1.55; resize: vertical; }
.ad-request-form textarea { min-height: 94px; }
.ad-request-form input::placeholder, .ad-request-form textarea::placeholder { color: #718d91; font-family: var(--body); font-size: 12px; font-weight: 400; opacity: 1; }
.ad-request-form input:focus, .ad-request-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.request-intro { margin-bottom: 20px; padding: 14px 16px; border: 1px solid rgba(150,216,192,.18); border-radius: 11px; background: rgba(var(--accent-rgb),.07); }.request-intro span { color: var(--mint); font: 700 13px var(--body); }.request-intro p { margin: 3px 0 0; color: var(--muted); font-family: var(--body); font-size: 11px; line-height: 1.65; }
.request-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-input-group { display: grid; grid-template-columns: minmax(210px, 1.1fr) minmax(140px, .9fr); direction: rtl; }
.phone-input-group select, .phone-input-group input { min-width: 0; border-radius: 0; }
.phone-input-group select { min-height: 47px; padding: 10px 12px; border: 1px solid #29495a; border-left: 0; border-radius: 0 10px 10px 0; outline: 0; background: #081321; color: #fff; }
.phone-input-group input { border-radius: 9px 0 0 9px; }
.phone-input-group:focus-within { border-radius: 9px; box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.phone-input-group:focus-within select, .phone-input-group:focus-within input { border-color: var(--green); box-shadow: none; }
.request-submit { width: 100%; min-height: 52px; margin: 9px 0 4px; font-family: var(--body); font-size: 13px; font-weight: 800; }
.text-request { grid-template-columns: 1fr; }.request-actions { grid-template-columns: 1fr auto; }.request-actions .delete { width: auto; padding-inline: 18px; }
.toast { position: fixed; z-index: 100; right: 50%; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 11px 17px; border: 1px solid rgba(150,216,192,.3); border-radius: 10px; background: #102438; color: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.35); transform: translate(50%, 90px); opacity: 0; transition: .3s; }
.toast.show { transform: translate(50%, 0); opacity: 1; }.toast > span { color: var(--green); }.toast p { margin: 0; font-size: 12px; }

@media (max-width: 960px) {
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); padding-top: 145px; text-align: center; }
  .hero-content > p { margin-inline: auto; }.hero-actions { justify-content: center; }
  .hero-visual { height: 490px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-banner { min-height: 145px; padding: 16px; }.ad-banner strong { font-size: 14px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-section { gap: 50px; }
}

@media (max-width: 800px) {
  .admin-dialog { width: calc(100vw - 20px); height: calc(100vh - 20px); height: calc(100dvh - 20px); }
  .admin-layout { grid-template-columns: 1fr; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .admin-layout::-webkit-scrollbar { display: none; }
  .game-form { min-height: auto; overflow: visible; border-left: 0; border-bottom: 1px solid var(--line); }
  .admin-list-wrap { min-height: auto; overflow: visible; }
}

@media (max-width: 680px) {
  .site-header { height: 92px; padding: 0 18px; }.brand-copy small { display: none; }.brand-copy strong { font-size: 21px; }.site-header .brand { width: 118px; height: 70px; border-radius: 13px; }.site-header .brand img { width: 106px; height: auto; }
  .admin-button { min-width: 132px; width: auto; height: 44px; gap: 7px; padding: 0 11px; font-size: 11px; border-radius: 11px; }.admin-button svg { width: 17px; height: 17px; }
  .hero { padding: 125px 18px 48px; }.hero h1 { font-size: clamp(36px, 11.5vw, 45px); letter-spacing: -1.5px; }.hero-content > p { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 17px; }.hero-actions .primary-button { width: 100%; max-width: 330px; }
  .hero-visual { width: 100%; height: 410px; margin: 5px 0 -25px; overflow: clip; }.hero-visual::before { width: min(84vw, 350px); height: min(84vw, 350px); }.hero-logo { width: min(73vw, 320px); max-width: none; height: auto; transform: translate(0, -3px) rotate(-2deg); }.orbit-one { width: min(108vw, 430px); height: min(108vw, 430px); }.orbit-two { width: min(125vw, 490px); height: min(125vw, 490px); }.card-ready { top: 58px; right: 0; transform: none; }.card-font { bottom: 48px; left: 0; transform: none; }
  .games-section, .features-section, .steps-section { padding: 75px 18px; }
  .ads-section { padding: 28px 18px; }.ads-heading small { display: none; }.ads-grid { grid-template-columns: 1fr; }.ad-banner { min-height: 120px; }
  .section-heading { display: block; }.section-heading h2, .steps-copy h2 { font-size: 34px; }.search-box { width: 100%; margin-top: 25px; }
  .games-grid, .features-grid, .steps-section { grid-template-columns: 1fr; }.game-image { height: 205px; }
  .features-grid { gap: 10px; }.features-grid article { min-height: 220px; }
  .steps-section { gap: 35px; }
  footer { flex-direction: column; gap: 18px; padding: 35px 20px; text-align: center; }.footer-brand { width: 134px; height: 74px; }.footer-brand img { width: 120px; height: auto; }
  .admin-dialog { width: 100vw; height: 100vh; height: 100dvh; max-width: none; margin: 0; border: 0; border-radius: 0; }.dialog-header { min-height: 74px; padding: 13px 16px; }.dialog-header h2 { font-size: 22px; }.login-panel { padding: 24px 22px 32px; }.game-form { padding: 18px 16px; }.admin-list-wrap { padding: 20px 16px 28px; }.game-form label { margin-bottom: 11px; }.file-picker { min-height: 61px; }.form-actions { bottom: -18px; margin-bottom: -18px; padding-bottom: 18px; }.admin-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 9px; padding: 9px; }.admin-item img { width: 58px; height: 48px; }.admin-item p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ad-request-dialog { width: 100vw; max-width: none; max-height: 100vh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }.ad-request-form { max-height: calc(100vh - 74px); max-height: calc(100dvh - 74px); padding: 19px 16px max(54px, calc(34px + env(safe-area-inset-bottom))); }.request-fields { grid-template-columns: 1fr; gap: 0; }.phone-input-group { grid-template-columns: 1fr; gap: 8px; }.phone-input-group select, .phone-input-group input { border: 1px solid #29495a; border-radius: 10px; }.ad-request-main { grid-template-columns: 72px minmax(0, 1fr); }.ad-request-main img { width: 72px; height: 67px; }
  .ad-request-actions { grid-template-columns: 1fr 1fr; }.ad-request-actions .delete { width: auto; }
  .toast { width: max-content; max-width: calc(100vw - 28px); justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .site-header { padding-inline: 12px; }.site-header .brand { width: 108px; }.site-header .brand img { width: 96px; }
  .admin-button { min-width: 124px; padding-inline: 9px; font-size: 10.5px; }
  .hero { padding-inline: 14px; }.hero h1 { letter-spacing: -1px; }.hero-content > p { line-height: 1.8; }
  .floating-card { min-width: 154px; padding: 10px 11px; }.floating-card strong { font-size: 11px; }.floating-card small { font-size: 9px; }
  .games-section, .features-section, .steps-section { padding-inline: 14px; }.ads-section { padding-inline: 14px; }
  .game-body { padding: 18px; }.download-button { padding-inline: 13px; }.download-button small { font-size: 10px; }
  .dialog-header .eyebrow { font-size: 11px; }.dialog-header h2 { font-size: 20px; }
  .admin-list-heading h3 { font-size: 16px; }.admin-list-heading { gap: 10px; }
  .admin-item { grid-template-columns: 52px minmax(0, 1fr) auto; }.admin-item img { width: 52px; height: 44px; }
}

@media (max-width: 350px) {
  .site-header .brand { width: 98px; }.site-header .brand img { width: 88px; }
  .admin-button { min-width: 116px; height: 42px; padding-inline: 7px; }.admin-button svg { display: none; }
  .hero { padding-top: 115px; }.hero h1 { font-size: 34px; }.hero-actions .primary-button { max-width: 100%; }
  .floating-card { min-width: 145px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .admin-dialog, .ad-request-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .dialog-header { min-height: 62px; padding-block: 9px; }.dialog-header .eyebrow { display: none; }
  .ad-request-form { max-height: calc(100dvh - 62px); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; }.hero-logo { transform: translate(0, -4px) rotate(-2deg); }.card-ready, .card-font { transform: none; } }
