:root {
    --store-bg: #08080b;
    --store-panel: rgba(20, 20, 25, 0.78);
    --store-line: rgba(255, 255, 255, 0.085);
    --store-text: #f7f7f8;
    --store-muted: #9898a3;
    --store-primary: #ff6b57;
    --store-green: #50d890;
    --store-violet: #8869ff;
    --store-cyan: #35c8e8;
    --store-gold: #f5c451;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--store-text);
    background:
        radial-gradient(circle at 10% 5%, rgba(255, 107, 87, 0.09), transparent 28rem),
        radial-gradient(circle at 95% 25%, rgba(94, 75, 200, 0.08), transparent 30rem),
        linear-gradient(180deg, #09090c, #070709 65%);
    font-family: Inter, system-ui, sans-serif;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(255, 107, 87, 0.8);
    outline-offset: 3px;
}

.store-status {
    color: #fff;
    background: rgba(255, 107, 87, 0.12);
    border: 1px solid rgba(255, 107, 87, 0.25);
}

.store-shell {
    width: min(1500px, calc(100% - 44px));
    margin: 0 auto;
    padding: 138px 0 90px;
}

.store-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    min-height: 440px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    background:
        linear-gradient(
            110deg,
            rgba(20, 20, 25, 0.96) 0%,
            rgba(20, 17, 25, 0.9) 54%,
            rgba(62, 30, 38, 0.82) 100%
        ),
        #15151a;
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.42),
        inset 0 1px rgba(255, 255, 255, 0.04);
}

.store-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: '';
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, #000, transparent 90%);
}

.store-hero::after {
    position: absolute;
    right: -110px;
    bottom: -230px;
    z-index: -1;
    width: 590px;
    height: 590px;
    content: '';
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 107, 87, 0.34),
        rgba(255, 107, 87, 0.04) 48%,
        transparent 70%
    );
    filter: blur(6px);
}

.store-hero-copy {
    align-self: center;
    padding: clamp(42px, 6vw, 78px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff9c8e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.store-hero h1 {
    max-width: 780px;
    margin: 20px 0 18px;
    font-family: Orbitron, Inter, sans-serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.store-hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #ff836f, #ffb36b 72%);
    -webkit-background-clip: text;
    background-clip: text;
}

.store-hero-copy > p {
    max-width: 670px;
    margin: 0;
    color: #aaaab4;
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s,
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
}

.store-btn:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.store-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #ff6b57, #e94935);
    border-color: rgba(255, 157, 142, 0.25);
    box-shadow:
        0 12px 35px rgba(255, 82, 59, 0.22),
        inset 0 1px rgba(255, 255, 255, 0.2);
}

.store-btn.primary:hover {
    box-shadow: 0 16px 42px rgba(255, 82, 59, 0.32);
}

.store-btn.ghost,
.store-btn.profile {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.store-btn.ghost:hover,
.store-btn.profile:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
}

.store-btn.profile i {
    color: #a797ff;
}

.store-btn.full {
    width: 100%;
}

.hero-rates {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
    color: #858590;
    font-size: 12px;
}

.hero-rates span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.15);
}

.hero-rates strong {
    color: #fff;
}

.hero-rates > i {
    color: var(--store-primary);
    font-size: 10px;
}

.hero-emblem {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 400px;
}

.emblem-core {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(190px, 21vw, 285px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 176, 158, 0.28);
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, rgba(255, 178, 150, 0.24), transparent 33%),
        linear-gradient(145deg, rgba(255, 107, 87, 0.25), rgba(28, 19, 27, 0.86));
    box-shadow:
        0 0 0 20px rgba(255, 107, 87, 0.035),
        0 0 0 42px rgba(255, 107, 87, 0.018),
        0 34px 90px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.18);
    animation: emblem-float 5s ease-in-out infinite;
}

.emblem-core::before,
.emblem-core::after {
    position: absolute;
    inset: -31px;
    content: '';
    border: 1px dashed rgba(255, 160, 142, 0.22);
    border-radius: 50%;
    animation: emblem-spin 24s linear infinite;
}

.emblem-core::after {
    inset: -58px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.055);
    animation-direction: reverse;
    animation-duration: 34s;
}

.emblem-core i {
    color: #ff8f7d;
    font-size: clamp(76px, 9vw, 130px);
    filter: drop-shadow(0 20px 36px rgba(255, 82, 59, 0.45));
}

.emblem-chip {
    position: absolute;
    z-index: 2;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    background: rgba(15, 15, 19, 0.75);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    font:
        800 10px Orbitron,
        sans-serif;
    letter-spacing: 0.08em;
}

.chip-top {
    top: 24%;
    right: 7%;
}

.chip-bottom {
    bottom: 22%;
    left: 5%;
    color: #ffd0c8;
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.orbit-one {
    top: -260px;
    right: -80px;
    width: 650px;
    height: 650px;
}

.orbit-two {
    right: 160px;
    bottom: -310px;
    width: 520px;
    height: 520px;
}

@keyframes emblem-float {
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

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

.store-layout {
    display: grid;
    grid-template-columns: 294px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 26px;
}

.store-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 16px;
}

.side-panel,
.account-card,
.bonus-card,
.exchange-card,
.recent-wins-card,
.tab-hero {
    border: 1px solid var(--store-line);
    border-radius: 22px;
    background: var(--store-panel);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.2),
        inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(20px);
}

.side-panel {
    padding: 16px;
}

.side-heading {
    display: flex;
    justify-content: space-between;
    padding: 7px 8px 15px;
    color: #777781;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.side-tab {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    width: 100%;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--store-muted);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: 0.22s ease;
}

.side-tab + .side-tab {
    margin-top: 5px;
}

.side-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
}

.side-tab.active {
    color: #fff;
    border-color: rgba(255, 107, 87, 0.18);
    background: linear-gradient(90deg, rgba(255, 107, 87, 0.13), rgba(255, 107, 87, 0.025));
}

.side-tab.active::before {
    position: absolute;
    left: -17px;
    width: 3px;
    height: 28px;
    content: '';
    border-radius: 0 5px 5px 0;
    background: var(--store-primary);
    box-shadow: 0 0 16px rgba(255, 107, 87, 0.7);
}

.side-tab-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

.side-tab-icon.coral {
    background: linear-gradient(135deg, #ff755f, #ce3f2d);
}

.side-tab-icon.violet {
    background: linear-gradient(135deg, #9778ff, #5f43c5);
}

.side-tab-icon.cyan {
    background: linear-gradient(135deg, #3bd2ed, #13748d);
}

.side-tab strong,
.side-tab small {
    display: block;
}

.side-tab strong {
    color: inherit;
    font-size: 13px;
}

.side-tab small {
    margin-top: 3px;
    color: #6f6f79;
    font-size: 10px;
}

.side-arrow {
    color: #5f5f68;
    font-size: 10px;
}

.new-pill {
    padding: 4px 6px;
    border-radius: 6px;
    color: #78e4f4;
    background: rgba(53, 200, 232, 0.1);
    font-size: 8px;
    font-weight: 900;
}

.calculator-card {
    padding: 19px;
}

.calculator-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: start;
    margin-bottom: 16px;
}

.calculator-title span {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.calculator-title span i {
    margin-right: 6px;
    color: var(--store-primary);
}

.calculator-title small {
    max-width: 85px;
    color: #e8a89e;
    font-size: 9px;
    line-height: 1.4;
    text-align: right;
}

.calculator-input {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.calculator-input span {
    color: #777781;
    font-size: 10px;
}

.calculator-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: none;
    font:
        800 18px Orbitron,
        sans-serif;
    text-align: right;
}

.calculator-input input::-webkit-inner-spin-button {
    appearance: none;
}

.calculator-input b {
    color: #ff9b8c;
}

.calculator-result {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #85858f;
    font-size: 10px;
}

.calculator-result strong {
    color: #fff;
    font:
        700 11px Orbitron,
        sans-serif;
}

.calculator-result.bonus strong {
    color: #ff9b8d;
}

.calculator-result.dollars {
    margin-bottom: 17px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--store-line);
}

.calculator-result.dollars strong {
    color: var(--store-green);
}

.calculator-note {
    margin: 11px 3px 0;
    color: #65656f;
    font-size: 9px;
    line-height: 1.55;
    text-align: center;
}

.store-content {
    min-width: 0;
}

.tab-content {
    display: none;
    animation: tab-in 0.32s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tab-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
}

.overview-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 16px;
}

.account-card {
    display: grid;
    grid-template-columns: 74px minmax(160px, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    min-height: 124px;
    padding: 22px;
    overflow: hidden;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, #714338, #2a2022) center/cover;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.15),
        0 14px 35px rgba(0, 0, 0, 0.26);
    font:
        800 26px Orbitron,
        sans-serif;
}

.account-label {
    color: #75757f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-copy h2 {
    margin: 5px 0 7px;
    font:
        800 20px Orbitron,
        sans-serif;
}

.account-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777781;
    font-size: 10px;
}

.account-state i {
    color: #6f6f77;
    font-size: 6px;
}

.account-state.online {
    color: #7edcac;
}

.account-state.online i {
    color: var(--store-green);
    box-shadow: 0 0 10px var(--store-green);
}

.wallet-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(126px, 1fr));
    gap: 8px;
}

.wallet-value {
    padding: 12px 14px;
    border: 1px solid var(--store-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.028);
}

.wallet-value span {
    display: block;
    margin-bottom: 5px;
    color: #6f6f78;
    font-size: 9px;
}

.wallet-value strong {
    font:
        800 14px Orbitron,
        sans-serif;
}

.wallet-value.sc strong {
    color: #ffb07f;
}

.wallet-value.cash strong {
    color: #70dfa6;
}

.account-actions {
    display: grid;
    gap: 8px;
}

.account-actions .store-btn {
    min-width: 145px;
    padding: 10px 13px;
    font-size: 11px;
}

.bonus-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 22px;
    background: linear-gradient(135deg, rgba(70, 37, 33, 0.88), rgba(34, 22, 28, 0.84));
}

.bonus-card::after {
    position: absolute;
    right: -35px;
    width: 115px;
    height: 115px;
    content: '';
    border-radius: 50%;
    background: rgba(255, 107, 87, 0.16);
    filter: blur(8px);
}

.bonus-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 163, 145, 0.25);
    border-radius: 15px;
    color: #ff8c79;
    background: rgba(255, 107, 87, 0.13);
    font-size: 22px;
}

.bonus-card span,
.bonus-card small {
    display: block;
    color: #a98f8d;
    font-size: 9px;
}

.bonus-card strong {
    display: block;
    margin: 3px 0;
    color: #fff;
    font:
        800 24px Orbitron,
        sans-serif;
}

.section-heading,
.card-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading {
    margin: 32px 2px 16px;
}

.section-heading h2,
.card-heading h2 {
    margin: 5px 0 0;
    font-size: 22px;
    line-height: 1.15;
}

.text-action {
    padding: 9px;
    border: 0;
    color: #8f8f99;
    background: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.text-action:hover {
    color: #fff;
}

.text-action i {
    margin-left: 6px;
    color: var(--store-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.94fr 0.94fr;
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 265px;
    overflow: hidden;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    color: #fff;
    background: #17171d;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;
}

.feature-card::before {
    position: absolute;
    inset: 0;
    content: '';
    background-image: radial-gradient(circle at 85% 20%, var(--feature-glow), transparent 39%);
    pointer-events: none;
}

.feature-card::after {
    position: absolute;
    right: -45px;
    bottom: -65px;
    width: 175px;
    height: 175px;
    content: '';
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 50%;
    box-shadow:
        0 0 0 25px rgba(255, 255, 255, 0.022),
        0 0 0 55px rgba(255, 255, 255, 0.012);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

.mines-feature {
    --feature-glow: rgba(255, 91, 78, 0.28);
    background: linear-gradient(145deg, #281917, #15151b 70%);
}

.cases-feature {
    --feature-glow: rgba(136, 105, 255, 0.27);
    background: linear-gradient(145deg, #1c1831, #15151b 70%);
}

.roulette-feature {
    --feature-glow: rgba(245, 196, 81, 0.24);
    background: linear-gradient(145deg, #282318, #15151b 70%);
}

.feature-tag {
    position: relative;
    z-index: 1;
    color: #a4a4ae;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.feature-icon {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.2);
    font-size: 46px;
}

.feature-card h3 {
    position: relative;
    z-index: 1;
    margin: 70px 0 10px;
    font:
        800 23px Orbitron,
        sans-serif;
}

.feature-card p {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: 0;
    color: #9b9ba5;
    font-size: 12px;
    line-height: 1.6;
}

.feature-link {
    position: absolute;
    bottom: 23px;
    left: 25px;
    z-index: 2;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.feature-link i {
    margin-left: 5px;
    color: var(--store-primary);
}

.overview-bottom-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 16px;
    margin-top: 16px;
}

.exchange-card,
.recent-wins-card {
    min-height: 320px;
    padding: 25px;
}

.exchange-card > p {
    max-width: 660px;
    margin: 15px 0 20px;
    color: #85858f;
    font-size: 12px;
    line-height: 1.6;
}

.rate-chip,
.live-dot {
    padding: 7px 9px;
    border-radius: 8px;
    font:
        800 9px Orbitron,
        sans-serif;
}

.rate-chip {
    color: #75dda8;
    background: rgba(80, 216, 144, 0.09);
    border: 1px solid rgba(80, 216, 144, 0.17);
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff9c8e;
    background: rgba(255, 107, 87, 0.08);
}

.live-dot i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--store-primary);
    box-shadow: 0 0 10px var(--store-primary);
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    50% {
        opacity: 0.35;
    }
}

.exchange-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.exchange-packages button {
    position: relative;
    min-height: 98px;
    padding: 15px;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.028);
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.exchange-packages button:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 87, 0.4);
    background: rgba(255, 107, 87, 0.07);
}

.exchange-packages button.featured {
    border-color: rgba(255, 107, 87, 0.26);
    background: rgba(255, 107, 87, 0.055);
}

.exchange-packages span,
.exchange-packages strong {
    display: block;
}

.exchange-packages span {
    color: #9a9aa4;
    font-size: 10px;
}

.exchange-packages strong {
    margin-top: 8px;
    color: #68dda1;
    font:
        800 14px Orbitron,
        sans-serif;
}

.exchange-packages small {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 5px;
    border-radius: 5px;
    color: #ff9c8d;
    background: rgba(255, 107, 87, 0.1);
    font-size: 7px;
    font-weight: 900;
}

.form-message {
    min-height: 18px;
    margin: 12px 0 0 !important;
    color: #8e8e98;
    font-size: 10px !important;
}

.form-message.success {
    color: var(--store-green);
}

.form-message.error {
    color: #ff7b68;
}

.wins-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.wins-loading,
.wins-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #6e6e78;
    font-size: 11px;
    text-align: center;
}

.win-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.win-row-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #ff9d8e;
    background: rgba(255, 107, 87, 0.1);
}

.win-row-copy {
    min-width: 0;
}

.win-row-copy strong,
.win-row-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win-row-copy strong {
    color: #e5e5e8;
    font-size: 11px;
}

.win-row-copy small {
    margin-top: 3px;
    color: #6d6d76;
    font-size: 9px;
}

.win-row time {
    color: #64646d;
    font-size: 8px;
}

.tab-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 200px;
    overflow: hidden;
    padding: 36px;
}

.tab-hero::after {
    position: absolute;
    right: -65px;
    width: 260px;
    height: 260px;
    content: '';
    border-radius: 50%;
    background: var(--tab-glow);
    filter: blur(4px);
}

.tab-hero > * {
    position: relative;
    z-index: 1;
}

.tab-hero h2 {
    max-width: 720px;
    margin: 10px 0;
    font:
        800 clamp(26px, 4vw, 42px) Orbitron,
        sans-serif;
    letter-spacing: -0.04em;
}

.tab-hero p {
    max-width: 740px;
    margin: 0;
    color: #9999a3;
    font-size: 13px;
    line-height: 1.65;
}

.tab-hero > i {
    margin-right: 50px;
    color: rgba(255, 255, 255, 0.16);
    font-size: 86px;
}

.cases-tab-hero {
    --tab-glow: rgba(136, 105, 255, 0.22);
    background: linear-gradient(130deg, rgba(30, 24, 55, 0.9), rgba(20, 20, 25, 0.82));
}

.games-tab-hero {
    --tab-glow: rgba(53, 200, 232, 0.18);
    background: linear-gradient(130deg, rgba(19, 40, 48, 0.9), rgba(20, 20, 25, 0.82));
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.case-card {
    --case-color: #ff6b57;
    position: relative;
    min-height: 265px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--store-line);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--case-color) 12%, #17171d),
        #111115 75%
    );
    cursor: pointer;
    text-align: left;
    transition: 0.25s;
}

.case-card::before {
    position: absolute;
    top: -50px;
    right: -55px;
    width: 190px;
    height: 190px;
    content: '';
    border-radius: 50%;
    background: color-mix(in srgb, var(--case-color) 28%, transparent);
    filter: blur(15px);
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--case-color) 48%, transparent);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.27);
}

.case-number {
    color: #64646e;
    font:
        800 9px Orbitron,
        sans-serif;
    letter-spacing: 0.11em;
}

.case-card-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 24px auto 17px;
    border: 1px solid color-mix(in srgb, var(--case-color) 34%, transparent);
    border-radius: 25px;
    color: var(--case-color);
    background: color-mix(in srgb, var(--case-color) 10%, transparent);
    font-size: 34px;
    transform: rotate(-5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.case-card h3 {
    margin: 0;
    text-align: center;
    font:
        800 16px Orbitron,
        sans-serif;
}

.case-card p {
    margin: 8px 0 18px;
    color: #81818b;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.case-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #777781;
    font-size: 9px;
}

.case-price {
    color: #fff;
    font:
        800 12px Orbitron,
        sans-serif;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.game-card {
    --game-accent: #ff6b57;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 126px;
    overflow: hidden;
    padding: 19px;
    border: 1px solid var(--store-line);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--game-accent) 9%, #16161b),
        #121216 72%
    );
    text-decoration: none;
    transition: 0.23s;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--game-accent) 35%, transparent);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.game-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid color-mix(in srgb, var(--game-accent) 28%, transparent);
    border-radius: 18px;
    color: var(--game-accent);
    background: color-mix(in srgb, var(--game-accent) 9%, transparent);
    font-size: 26px;
}

.game-kicker {
    color: var(--game-accent);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.game-card h3 {
    margin: 5px 0 4px;
    font:
        800 15px Orbitron,
        sans-serif;
}

.game-card p {
    margin: 0;
    color: #777781;
    font-size: 10px;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #888892;
    font-size: 10px;
}

.game-mines {
    --game-accent: #ff6b57;
}

.game-roulette {
    --game-accent: #f5c451;
}

.game-crash {
    --game-accent: #4fd8ef;
}

.game-blackjack {
    --game-accent: #54d493;
}

.game-poker {
    --game-accent: #da5c72;
}

.game-fruit {
    --game-accent: #ef6c5c;
}

.game-egypt {
    --game-accent: #e6b95b;
}

.game-cyber {
    --game-accent: #6ae7ff;
}

.game-mafia {
    --game-accent: #d6b58d;
}

.game-astral {
    --game-accent: #a98aff;
}

.store-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    place-items: center;
    padding: 22px;
}

.store-modal.open {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 5, 0.82);
    backdrop-filter: blur(15px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(28, 28, 34, 0.98), rgba(15, 15, 19, 0.98));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
}

.modal-card h2 {
    margin: 9px 0 10px;
    font:
        800 26px Orbitron,
        sans-serif;
}

.modal-card > p {
    color: #90909a;
    font-size: 12px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--store-line);
    border-radius: 11px;
    color: #aaaab2;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.case-modal-visual {
    --case-color: #ff6b57;
    position: relative;
    display: grid;
    place-items: center;
    height: 175px;
    margin: -32px -32px 28px;
    overflow: hidden;
    color: var(--case-color);
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--case-color) 22%, transparent),
        transparent 64%
    );
    font-size: 70px;
}

.case-modal-visual i {
    filter: drop-shadow(0 16px 36px color-mix(in srgb, var(--case-color) 35%, transparent));
    transition: 0.4s;
}

.case-modal-visual.opening i {
    animation: case-shake 0.6s ease infinite;
}

.case-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--case-color), transparent);
    box-shadow: 0 0 18px var(--case-color);
    animation: case-scan 2.8s linear infinite;
}

@keyframes case-shake {
    25% {
        transform: rotate(-8deg) scale(1.04);
    }

    75% {
        transform: rotate(8deg) scale(1.08);
    }
}

@keyframes case-scan {
    from {
        top: 20%;
    }

    to {
        top: 80%;
    }
}

.case-loot-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0;
}

.loot-chip {
    padding: 7px 9px;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    color: #9b9ba5;
    background: rgba(255, 255, 255, 0.026);
    font-size: 9px;
}

.case-result {
    display: none;
    margin: 18px 0;
    padding: 17px;
    border: 1px solid rgba(80, 216, 144, 0.2);
    border-radius: 14px;
    color: #dffbed;
    background: rgba(80, 216, 144, 0.07);
    text-align: center;
}

.case-result.show {
    display: block;
    animation: result-pop 0.35s ease;
}

.case-result strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font:
        800 16px Orbitron,
        sans-serif;
}

@keyframes result-pop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
}

.case-open-button {
    margin-top: 8px;
}

.modal-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 87, 0.2);
    border-radius: 17px;
    color: #ff8d7a;
    background: rgba(255, 107, 87, 0.1);
    font-size: 22px;
}

.topup-modal-card form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.topup-modal-card label > span {
    display: block;
    margin-bottom: 7px;
    color: #8c8c96;
    font-size: 10px;
    font-weight: 700;
}

.topup-modal-card input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--store-line);
    border-radius: 12px;
    outline: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
}

.topup-modal-card input:focus {
    border-color: rgba(255, 107, 87, 0.4);
}

.amount-input {
    position: relative;
}

.amount-input input {
    padding-right: 44px;
    font:
        800 17px Orbitron,
        sans-serif;
}

.amount-input b {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #ff9a8b;
    transform: translateY(-50%);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.quick-amounts button {
    padding: 9px 5px;
    border: 1px solid var(--store-line);
    border-radius: 9px;
    color: #9a9aa4;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-size: 9px;
}

.quick-amounts button:hover {
    color: #fff;
    border-color: rgba(255, 107, 87, 0.3);
}

.topup-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 107, 87, 0.16);
    border-radius: 12px;
    background: rgba(255, 107, 87, 0.055);
}

.topup-summary span {
    color: #9b8582;
    font-size: 9px;
}

.topup-summary strong {
    color: #ff9d8e;
    font:
        800 14px Orbitron,
        sans-serif;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1280px) {
    .store-shell {
        width: min(1180px, calc(100% - 32px));
    }

    .account-card {
        grid-template-columns: 64px minmax(130px, 1fr) auto;
    }

    .account-avatar {
        width: 64px;
        height: 64px;
    }

    .account-actions {
        grid-column: 2 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-topline {
        grid-template-columns: 1fr 220px;
    }
}

@media (max-width: 1050px) {
    .store-hero {
        grid-template-columns: 1fr 300px;
    }

    .store-layout {
        grid-template-columns: 245px minmax(0, 1fr);
    }

    .overview-topline,
    .overview-bottom-grid {
        grid-template-columns: 1fr;
    }

    .bonus-card {
        min-height: 115px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mines-feature {
        grid-column: 1 / -1;
    }

    .cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .store-shell {
        width: min(100% - 24px, 720px);
        padding-top: 104px;
    }

    .store-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .store-hero-copy {
        padding: 38px 28px 0;
    }

    .hero-emblem {
        min-height: 300px;
    }

    .store-layout {
        grid-template-columns: 1fr;
    }

    .store-sidebar {
        position: static;
    }

    .side-navigation {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .side-heading {
        grid-column: 1 / -1;
    }

    .side-tab {
        grid-template-columns: 40px 1fr;
    }

    .side-tab .side-arrow,
    .side-tab small,
    .new-pill {
        display: none;
    }

    .side-tab.active::before {
        display: none;
    }

    .calculator-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
    }

    .calculator-title,
    .calculator-input,
    .calculator-note {
        grid-column: 1 / -1;
    }

    .calculator-result {
        margin: 0;
    }

    .calculator-result.dollars {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .calculator-card .store-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .store-shell {
        width: min(100% - 20px, 600px);
    }

    .store-hero {
        border-radius: 24px;
    }

    .store-hero h1 {
        font-size: clamp(35px, 11vw, 52px);
    }

    .hero-rates {
        align-items: stretch;
    }

    .hero-rates > i {
        align-self: center;
    }

    .side-navigation {
        grid-template-columns: 1fr;
    }

    .side-heading {
        grid-column: 1;
    }

    .side-tab {
        grid-template-columns: 42px 1fr auto;
    }

    .side-tab small,
    .new-pill {
        display: block;
    }

    .feature-grid,
    .game-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .mines-feature {
        grid-column: auto;
    }

    .account-card {
        grid-template-columns: 62px 1fr;
    }

    .account-copy {
        min-width: 0;
    }

    .account-copy h2 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wallet-stack,
    .account-actions {
        grid-column: 1 / -1;
    }

    .wallet-stack,
    .account-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-hero {
        padding: 28px 24px;
    }

    .tab-hero > i {
        display: none;
    }

    .exchange-packages {
        grid-template-columns: 1fr;
    }

    .exchange-packages button {
        min-height: 78px;
    }
}

@media (max-width: 430px) {
    .store-hero-copy {
        padding: 32px 20px 0;
    }

    .hero-actions {
        display: grid;
    }

    .hero-rates {
        flex-wrap: wrap;
    }

    .hero-emblem {
        min-height: 255px;
    }

    .calculator-card {
        display: block;
    }

    .calculator-result {
        margin-top: 10px;
    }

    .calculator-result.dollars {
        margin: 10px 0 16px;
    }

    .account-actions,
    .wallet-stack {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
    }

    .section-heading h2,
    .card-heading h2 {
        font-size: 19px;
    }

    .feature-card {
        min-height: 280px;
    }

    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-card {
        padding: 25px 20px;
        border-radius: 22px;
    }

    .case-modal-visual {
        margin: -25px -20px 24px;
    }
}

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