:root {
    /* Theme tokens: replace these first when moving to an Envato theme. */
    --bg: #040404;
    --surface: rgba(13, 13, 15, 0.88);
    --surface-strong: rgba(18, 18, 21, 0.96);
    --border-soft: rgba(255, 45, 45, 0.32);
    --border-accent: rgba(255, 66, 66, 0.72);
    --accent: #ff2525;
    --accent-dark: #8d0000;
    --copy: #f6f2f2;
    --copy-muted: #b9abab;
    --success: #72ff99;
    --warning: #ff7373;

    /* Backward-compatible aliases used by the current Ra33dSMP skin. */
    --panel: rgba(13, 13, 15, 0.88);
    --panel-strong: rgba(18, 18, 21, 0.96);
    --line: rgba(255, 45, 45, 0.32);
    --line-bright: rgba(255, 66, 66, 0.72);
    --red: #ff2525;
    --red-dark: #8d0000;
    --text: #f6f2f2;
    --muted: #b9abab;
    --green: #72ff99;
    --danger: #ff7373;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  background: #050505;
  color: white;
  font-family: Arial, sans-serif;
}
a { color: #ff3333; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 0, 0, 0.22), transparent 30rem),
        radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.06), transparent 18rem),
        linear-gradient(135deg, #050505 0%, #110101 44%, #050505 100%);
    font-family: Arial, "Tahoma", sans-serif;
    letter-spacing: 0;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

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

button,
input {
    font: inherit;
}

.storm-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bolt {
    position: absolute;
    width: 3px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, #ff2d2d 18%, #fff 22%, #ff2d2d 26%, transparent);
    filter: drop-shadow(0 0 16px rgba(255, 0, 0, 0.95));
    opacity: 0.34;
    transform: rotate(22deg);
}

.bolt::before,
.bolt::after {
    position: absolute;
    width: 3px;
    content: "";
    background: inherit;
}

.bolt::before {
    top: 92px;
    left: -34px;
    height: 96px;
    transform: rotate(-45deg);
}

.bolt::after {
    top: 166px;
    left: 26px;
    height: 118px;
    transform: rotate(43deg);
}

.bolt-one {
    top: -40px;
    left: 14%;
}

.bolt-two {
    top: 120px;
    right: 15%;
    height: 250px;
    opacity: 0.28;
    transform: rotate(-18deg);
}

.bolt-three {
    bottom: 8%;
    left: 50%;
    height: 210px;
    opacity: 0.18;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 8px;
    color: white;
    background: linear-gradient(145deg, #ee1d1d, #470000);
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.32);
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 18px;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.language-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.42);
}

.language-switch a {
    min-width: 50px;
    padding: 10px 14px;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.language-switch a.active {
    color: white;
    background: linear-gradient(135deg, #8d0000, #ff2a2a);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: stretch;
    min-height: 540px;
    padding: 58px 0 34px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
}

.eyebrow,
.section-heading p,
.product-type {
    color: #ff8f8f;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}

.hero h1 {
    max-width: 760px;
    margin: 12px 0 18px;
    font-size: clamp(44px, 8vw, 96px);
    line-height: 0.95;
    text-shadow: 0 0 18px rgba(255, 0, 0, 0.58), 0 0 42px rgba(255, 0, 0, 0.25);
}

.hero-text {
    max-width: 620px;
    margin: 0;
    color: #dfd3d3;
    font-size: 20px;
    line-height: 1.7;
}

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

.primary-link,
.server-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 900;
}

.primary-link {
    background: linear-gradient(135deg, #b70000, #ff2f2f);
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.28);
}

.server-pill {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.055);
}

.player-panel {
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background:
        linear-gradient(160deg, rgba(255, 0, 0, 0.13), transparent 48%),
        var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.player-panel label {
    display: block;
    margin-bottom: 10px;
    color: #ffb1b1;
    font-weight: 900;
}

.input-row {
    position: relative;
}

.input-row::after {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.85);
    content: "";
    transform: translateY(-50%);
}

[dir="rtl"] .input-row::after {
    right: auto;
    left: 16px;
}

input {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    padding: 0 42px 0 15px;
    color: white;
    background: #090909;
    outline: none;
}

[dir="rtl"] input {
    padding: 0 15px 0 42px;
}

input:focus {
    border-color: var(--line-bright);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.12);
}

.player-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.result {
    display: block;
    min-height: 48px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.46);
    overflow-wrap: anywhere;
}

.result.success {
    border-color: rgba(114, 255, 153, 0.42);
    color: var(--green);
}

.result.error {
    border-color: rgba(255, 115, 115, 0.46);
    color: var(--danger);
}

.store-section {
    display: grid;
    gap: 34px;
}

.category-band {
    padding-top: 10px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.section-heading p,
.section-heading h2 {
    margin: 0;
}

.section-heading h2 {
    font-size: clamp(24px, 4vw, 38px);
}

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background:
        linear-gradient(150deg, rgba(255, 0, 0, 0.13), transparent 42%),
        var(--panel-strong);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.4);
}

.product-card::before {
    position: absolute;
    inset: 0;
    border-top: 2px solid rgba(255, 70, 70, 0.72);
    content: "";
    pointer-events: none;
}

.product-card:hover {
    border-color: var(--line-bright);
    transform: translateY(-2px);
    transition: transform 160ms ease, border-color 160ms ease;
}

.card-topline,
.buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.spark {
    width: 34px;
    height: 12px;
    clip-path: polygon(0 42%, 43% 42%, 33% 0, 100% 57%, 54% 57%, 64% 100%);
    background: #ff2d2d;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.95);
}

.product-card h3 {
    margin: 18px 0 10px;
    color: white;
    font-size: 27px;
}

.product-card p {
    min-height: 58px;
    margin: 0;
    color: #d7cccc;
    line-height: 1.6;
}

.product-card ul {
    display: grid;
    gap: 9px;
    min-height: 90px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.product-card li {
    position: relative;
    padding-inline-start: 18px;
    color: var(--muted);
    line-height: 1.45;
}

.product-card li::before {
    position: absolute;
    inset-inline-start: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    background: var(--red);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.buy-row {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.empty-category {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 28px;
    color: var(--muted);
    background:
        linear-gradient(135deg, rgba(255, 0, 0, 0.08), transparent 48%),
        rgba(255, 255, 255, 0.035);
}

.empty-category strong {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 20px;
}

.empty-category p {
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
}

.buy-row strong {
    color: white;
    font-size: 26px;
}

.buy-row button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    color: white;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.2);
}

.buy-row button:hover,
.primary-link:hover {
    filter: brightness(1.14);
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 34px;
    }

    .hero-copy {
        min-height: 340px;
    }

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

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 14px;
    }

    .topbar,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-text {
        font-size: 17px;
    }

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

    .product-card {
        min-height: auto;
    }

    .buy-row {
        align-items: stretch;
        flex-direction: column;
    }
}
