:root {
    --bg: #08090d;
    --card: #11141b;
    --card2: #161a23;
    --text: #f4f6fa;
    --muted: #9299a7;
    --line: #292d38;
    --purple: #7c3aed;
    --cyan: #22d3ee;
    --green: #25d366;
    --red: #ef4444
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: radial-gradient(circle at 80% 0%, #19112d 0, transparent 30%), var(--bg);
    color: var(--text);
    font-family: Cairo, Arial, sans-serif
}

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

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

.container {
    width: min(1120px, 92%);
    margin: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #090b10df;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    margin-left: auto
}

.brand b {
    color: var(--cyan)
}

.brand-mark,
.admin-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    font-weight: 800
}

.nav nav {
    display: flex;
    gap: 22px;
    color: #c6cad3
}

.nav nav a:hover {
    color: #fff
}

.cart-btn,
.secondary,
.admin-topbar button {
    border: 1px solid #353a47;
    background: #171a22;
    color: #fff;
    padding: 9px 13px;
    border-radius: 9px
}

.cart-btn span {
    background: var(--purple);
    padding: 2px 7px;
    border-radius: 30px
}

.hero {
    padding: 92px 0 76px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 55px;
    align-items: center
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--cyan);
    font-weight: 800
}

.hero h1 {
    font-size: clamp(43px, 6vw, 74px);
    line-height: 1.1;
    margin: 12px 0 18px
}

.hero h1 span {
    background: linear-gradient(90deg, #a78bfa, var(--cyan));
    -webkit-background-clip: text;
    color: transparent
}

.hero p {
    font-size: 17px;
    color: var(--muted);
    line-height: 2;
    max-width: 620px
}

.primary {
    display: inline-block;
    border: 0;
    background: linear-gradient(135deg, var(--purple), #5b21b6);
    color: #fff;
    padding: 12px 20px;
    border-radius: 9px;
    font-weight: 700
}

.primary:disabled {
    opacity: .6;
    cursor: not-allowed
}

.hero-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;

    position: relative;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
}


.controller {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.controller img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.orb {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #7c3aed55;
    filter: blur(60px)
}

.controller {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.controller img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section {
    padding: 72px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 28px
}

.section-head h2 {
    font-size: 34px;
    margin: 4px 0
}

.tools {
    display: flex;
    gap: 8px
}

.tools input,
.tools select,
.drawer input,
.login-card input,
.panel input,
.panel select,
.panel textarea {
    background: #12151c;
    border: 1px solid #333845;
    color: #fff;
    padding: 11px 12px;
    border-radius: 9px;
    outline: 0
}

.tools input:focus,
.tools select:focus,
.drawer input:focus,
.login-card input:focus,
.panel input:focus,
.panel select:focus,
.panel textarea:focus {
    border-color: var(--purple)
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.product-card {
    background: linear-gradient(180deg, #141720, #0f1117);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: .2s
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #51406f
}

.product-cover {
    height: 220px;
    position: relative;
    background: #141720
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.fallback-cover {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 72px;
    background: radial-gradient(circle, #372263, #12141b 70%)
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #090b10dc;
    border: 1px solid #343946;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px
}

.product-body {
    padding: 15px
}

.product-body h3 {
    font-size: 16px;
    margin: 0 0 6px
}

.product-body p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    min-height: 40px;
    margin: 0 0 13px
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.price-row button {
    border: 0;
    background: #fff;
    color: #111;
    padding: 8px 11px;
    border-radius: 8px;
    font-weight: 700
}

.price-row button:hover {
    background: var(--cyan)
}

.how {
    background: #0b0d12;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.centered {
    justify-content: center;
    text-align: center
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.step,
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 24px
}

.step b {
    color: var(--cyan);
    font-size: 12px
}

.step h3 {
    margin: 9px 0 3px
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

footer {
    padding: 24px 0;
    color: #777f8d;
    font-size: 12px
}

.footer-inner {
    display: flex;
    justify-content: space-between
}

.overlay {
    position: fixed;
    inset: 0;
    background: #000a;
    z-index: 50
}

.drawer {
    height: 100%;
    width: min(450px, 100%);
    background: #0d1016;
    border-left: 1px solid var(--line);
    padding: 26px;
    overflow: auto
}

.close {
    float: left;
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 30px
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line)
}

.cart-item img,
.cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #171a22;
    display: grid;
    place-items: center
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.cart-info small {
    color: var(--muted)
}

.qty {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 5px
}

.qty button {
    border: 1px solid #353a47;
    background: #171a22;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 6px
}

.remove-btn {
    border: 0;
    background: transparent;
    color: #f87171
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    padding: 20px 0
}

.drawer>input {
    width: 100%;
    margin: 7px 0 12px
}

.whatsapp {
    width: 100%;
    border: 0;
    background: var(--green);
    color: #07130a;
    padding: 13px;
    border-radius: 9px;
    font-weight: 800
}

.privacy {
    display: block;
    text-align: center;
    color: #737b89;
    margin-top: 8px
}

.notice {
    grid-column: 1/-1;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    background: #11141b;
    border: 1px dashed #313644;
    border-radius: 12px
}

.notice.error {
    color: #fca5a5
}

.hidden {
    display: none !important
}

.admin-body {
    background: #090b10
}

.admin-shell {
    width: min(1150px, 94%);
    margin: 38px auto
}

.login-card {
    width: min(440px, 100%);
    margin: 70px auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 30px;
    text-align: center
}

.login-card .admin-logo {
    margin: 0 auto 15px
}

.login-card h1 {
    margin: 5px 0
}

.login-card p {
    color: var(--muted)
}

.login-card input {
    width: 100%;
    display: block;
    margin: 9px 0
}

.full {
    width: 100%;
    margin-top: 5px
}

.back-link {
    display: inline-block;
    margin-top: 18px;
    color: #9aa2b1;
    font-size: 13px
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 15px 18px;
    border-radius: 13px;
    margin-bottom: 18px
}

.admin-topbar span {
    color: var(--muted)
}

.top-actions {
    display: flex;
    gap: 10px;
    align-items: center
}

.top-actions a {
    color: var(--cyan);
    font-size: 13px
}

.admin-grid {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 18px;
    align-items: start
}

.panel h2 {
    margin-top: 0
}

.panel label {
    display: block;
    font-size: 13px;
    margin-top: 12px
}

.panel input,
.panel select,
.panel textarea {
    width: 100%;
    margin-top: 5px;
    resize: vertical
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 8px
}

.check-row input {
    width: auto
}

.form-actions {
    display: flex;
    gap: 9px;
    margin-top: 15px
}

.image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px
}

.message {
    font-size: 13px;
    margin-top: 11px;
    min-height: 18px
}

.message.error {
    color: #f87171
}

.message.success {
    color: #4ade80
}

.list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.list-head h2 {
    margin: 0
}

.list-head small {
    color: var(--muted)
}

.admin-game {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.admin-thumb {
    width: 64px;
    height: 64px;
    border-radius: 9px;
    background: #171a22;
    display: grid;
    place-items: center;
    font-size: 28px;
    overflow: hidden
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.admin-game-info {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.admin-game-info small {
    color: var(--muted)
}

.admin-row-actions {
    display: flex;
    gap: 7px
}

.danger {
    border: 1px solid #5b2626;
    background: #301515;
    color: #fca5a5;
    padding: 8px 10px;
    border-radius: 8px
}

@media(max-width:900px) {
    .products {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-art {
        height: 280px
    }

    .admin-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {

    .products,
    .steps {
        grid-template-columns: 1fr
    }

    .section-head {
        align-items: stretch;
        flex-direction: column
    }

    .tools {
        flex-direction: column
    }

    .nav nav {
        display: none
    }

    .hero {
        padding-top: 55px
    }

    .controller {
        font-size: 110px
    }

    .two-cols {
        grid-template-columns: 1fr
    }

    .admin-game {
        grid-template-columns: 55px 1fr
    }

    .admin-row-actions {
        grid-column: 2
    }

    .admin-topbar {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column
    }
}