* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #070707;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}


/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 72px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(5, 5, 5, .94);

    border-bottom: 1px solid #242424;

    backdrop-filter: blur(15px);

    z-index: 1000;
}

.logo {
    color: white;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: #ff3030;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #999;
    transition: .2s;
}

nav a:hover {
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-button,
.login-button,
.profile-button {
    padding: 10px 15px;

    border-radius: 7px;

    background: transparent;

    color: white;

    border: 1px solid #303030;

    transition: .2s;
}

.cart-button:hover,
.login-button:hover,
.profile-button:hover {
    border-color: #ff3030;
}

#cartCount {
    background: #ff3030;

    border-radius: 20px;

    padding: 2px 7px;

    margin-left: 5px;

    font-size: 11px;
}


/* HERO */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(170, 0, 0, .22),
            transparent 45%
        ),
        #070707;
}

.hero-content {
    margin-top: 70px;
}

.badge {
    color: #ff3838;

    font-size: 13px;

    letter-spacing: 5px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(65px, 12vw, 160px);

    letter-spacing: 12px;

    font-weight: 1000;
}

.hero h1 span {
    color: #ff3030;
}

.hero p {
    color: #aaa;
    font-size: 19px;
    margin-top: 15px;
}

.hero-small {
    color: #666 !important;
    font-size: 14px !important;
}

.hero-button {
    margin-top: 30px;

    padding: 15px 32px;

    border: none;

    border-radius: 7px;

    background: #e52d2d;

    color: white;

    font-weight: bold;

    font-size: 15px;

    transition: .2s;
}

.hero-button:hover {
    transform: translateY(-3px);
    background: #ff3d3d;
}


/* SECTIONS */

.shop-section {
    padding: 110px 6%;
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title span,
.page-title span {
    color: #ff3636;

    font-size: 11px;

    letter-spacing: 4px;
}

.section-title h2,
.page-title h2 {
    font-size: 42px;
    margin: 10px 0;
}

.section-title p {
    color: #777;
}


/* PRODUCTS */

.products {
    max-width: 1450px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.card {
    position: relative;

    background: #101010;

    border: 1px solid #242424;

    padding: 30px;

    border-radius: 12px;

    text-align: center;

    transition: .25s;
}

.card:hover {
    transform: translateY(-7px);

    border-color: #ff3030;

    box-shadow: 0 15px 40px rgba(0,0,0,.5);
}

.rank-icon {
    font-size: 45px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 17px;
    letter-spacing: 1px;
}

.card p {
    color: #777;

    font-size: 13px;

    min-height: 35px;

    margin: 12px 0 18px;
}

.price {
    font-size: 24px;

    font-weight: bold;

    margin-bottom: 18px;
}

.card button,
.skull-card button,
.key-card button {
    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 6px;

    background: #e62f2f;

    color: white;

    font-weight: bold;

    transition: .2s;
}

.card button:hover,
.skull-card button:hover,
.key-card button:hover {
    background: #ff4242;
}

.popular {
    position: absolute;

    top: 12px;
    right: 12px;

    color: #ff4040;

    font-size: 9px;

    letter-spacing: 2px;
}


/* SKULLS */

.skull-section {
    background: #0b0b0b;
}

.skulls {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.skull-card {
    background: #101010;

    border: 1px solid #242424;

    padding: 30px;

    text-align: center;

    border-radius: 10px;

    transition: .2s;
}

.skull-card:hover {
    border-color: #ff3030;
    transform: translateY(-5px);
}

.skull-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.skull-card h3 {
    margin-bottom: 18px;
}


/* INFO */

.info {
    padding: 110px 7%;
    text-align: center;
}

.steps {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}

.step span {
    color: #ff3434;

    font-size: 30px;

    font-weight: bold;
}

.step h3 {
    margin: 15px 0 10px;
}

.step p {
    color: #777;

    font-size: 13px;

    line-height: 1.5;
}


/* PAGES */

.page {
    min-height: 100vh;

    padding: 120px 7% 80px;

    background: #070707;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.hidden {
    display: none !important;
}

.back-button {
    padding: 10px 16px;

    border: 1px solid #292929;

    background: #101010;

    color: #aaa;

    border-radius: 7px;
}

.back-button:hover {
    color: white;
    border-color: #ff3030;
}


/* PRODUCT */

.product-details {
    max-width: 1100px;

    margin: 40px auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.product-visual {
    min-height: 400px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #252525;

    border-radius: 15px;

    background:
        radial-gradient(
            circle,
            rgba(255, 30, 30, .14),
            transparent 60%
        ),
        #101010;
}

.product-image {
    width: 75%;
    max-width: 350px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 35px rgba(255,30,30,.25));
}

.big-icon {
    font-size: 130px;
}

.product-info h1 {
    font-size: 45px;
    margin: 10px 0;
}

.product-description {
    color: #888;

    line-height: 1.7;

    margin: 20px 0;
}

.product-price {
    font-size: 35px;

    font-weight: bold;

    margin: 25px 0;
}

.product-features {
    list-style: none;
    margin: 25px 0;
}

.product-features li {
    padding: 9px 0;

    color: #bbb;

    border-bottom: 1px solid #191919;
}

.add-button {
    width: 100%;

    padding: 15px;

    background: #e62f2f;

    color: white;

    border: none;

    border-radius: 7px;

    font-weight: bold;

    font-size: 15px;
}

.add-button:hover {
    background: #ff4141;
}


/* CART */

.cart-layout {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 350px;

    gap: 30px;
}

.cart-items {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.empty-cart {
    padding: 60px;

    text-align: center;

    color: #666;

    background: #101010;

    border: 1px solid #222;

    border-radius: 12px;
}

.empty-cart h2 {
    color: white;
    margin-bottom: 10px;
}

.empty-cart p {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px;

    background: #101010;

    border: 1px solid #242424;

    border-radius: 10px;
}

.cart-item-icon {
    font-size: 40px;

    width: 60px;

    text-align: center;
}

.cart-item-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 5px;
}

.cart-item-info p {
    color: #777;

    font-size: 13px;
}

.quantity {
    display: flex;

    align-items: center;

    gap: 10px;
}

.quantity button {
    width: 28px;
    height: 28px;

    border: 1px solid #333;

    background: #171717;

    color: white;

    border-radius: 5px;
}

.quantity button:hover {
    border-color: #ff3030;
}

.remove-button {
    border: none;

    background: transparent;

    color: #777;

    font-size: 18px;
}

.remove-button:hover {
    color: #ff3030;
}

.cart-summary {
    height: fit-content;

    padding: 25px;

    background: #101010;

    border: 1px solid #242424;

    border-radius: 12px;
}

.summary-row,
.summary-total {
    display: flex;

    justify-content: space-between;

    margin: 15px 0;

    color: #888;
}

.summary-total {
    padding-top: 20px;

    border-top: 1px solid #292929;

    color: white;

    font-size: 20px;

    font-weight: bold;
}


/* PROMO */

.promo-box {
    margin-top: 25px;
}

.promo-box label {
    display: block;

    color: #aaa;

    margin-bottom: 8px;
}

.promo-row {
    display: flex;

    gap: 8px;
}

.promo-row input {
    flex: 1;

    min-width: 0;

    padding: 12px;

    background: #080808;

    border: 1px solid #292929;

    color: white;

    border-radius: 6px;

    outline: none;
}

.promo-row input:focus {
    border-color: #ff3030;
}

.promo-row button {
    padding: 0 16px;

    border: none;

    border-radius: 6px;

    background: #292929;

    color: white;
}

.promo-row button:hover {
    background: #ff3030;
}

#promoMessage {
    display: block;

    margin-top: 8px;

    color: #777;
}


/* CHECKOUT */

.checkout-button {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 7px;

    background: #e62f2f;

    color: white;

    font-weight: bold;

    margin-top: 15px;
}

.checkout-button:hover {
    background: #ff4141;
}


/* AUTH */

.modal {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(0,0,0,.78);

    z-index: 2000;
}

.modal-box {
    position: relative;

    width: 400px;

    padding: 35px;

    background: #111;

    border: 1px solid #292929;

    border-radius: 12px;

    text-align: center;
}

.modal-box h2 {
    margin-bottom: 10px;
}

.modal-box p {
    color: #777;

    margin-bottom: 25px;
}

.modal-box input {
    width: 100%;

    padding: 13px;

    margin-bottom: 12px;

    background: #080808;

    border: 1px solid #292929;

    color: white;

    border-radius: 6px;

    outline: none;
}

.modal-box input:focus {
    border-color: #ff3030;
}

.auth-submit {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 6px;

    background: #e62f2f;

    color: white;

    font-weight: bold;
}

.switch-auth {
    margin-top: 15px;

    background: transparent;

    border: none;

    color: #888;
}

.switch-auth:hover {
    color: white;
}

.modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    border: none;

    background: transparent;

    color: #777;

    font-size: 25px;
}


/* PROFILE */

.profile-page {
    max-width: 1000px;

    margin: auto;
}

.profile-card {
    background: #101010;

    border: 1px solid #242424;

    border-radius: 15px;

    padding: 35px;
}

.profile-top {
    display: flex;

    align-items: center;

    gap: 25px;

    padding-bottom: 30px;

    border-bottom: 1px solid #242424;
}

.avatar {
    width: 100px;
    height: 100px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #ff3030;

    background: #181818;
}

.profile-name {
    font-size: 28px;

    font-weight: bold;
}

.profile-email {
    color: #777;

    margin-top: 8px;
}

.profile-stats {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-top: 30px;
}

.stat {
    padding: 25px;

    background: #080808;

    border: 1px solid #222;

    border-radius: 10px;
}

.stat span {
    color: #777;

    font-size: 13px;
}

.stat strong {
    display: block;

    margin-top: 8px;

    font-size: 25px;
}

.purchase-history {
    margin-top: 30px;
}

.purchase-history h2 {
    margin-bottom: 15px;
}

.purchase {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px;

    background: #080808;

    border: 1px solid #222;

    border-radius: 8px;

    margin-bottom: 10px;
}

.purchase small {
    color: #666;
}

.logout-button {
    margin-top: 25px;

    padding: 12px 20px;

    background: transparent;

    border: 1px solid #333;

    color: #aaa;

    border-radius: 7px;
}

.logout-button:hover {
    border-color: #ff3030;

    color: white;
}


/* KEY */

.key-card {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 40, 40, 0.16),
            transparent 55%
        ),
        #101010;

    border: 1px solid #292929;

    border-radius: 14px;

    padding: 30px;

    text-align: center;

    transition: .3s;

    max-width: 400px;

    margin: auto;
}

.key-card:hover {
    transform: translateY(-8px);

    border-color: #ff3030;

    box-shadow:
        0 0 25px rgba(255, 30, 30, .18),
        0 15px 45px rgba(0, 0, 0, .7);
}

.key-image-box {
    position: relative;

    width: 180px;
    height: 180px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.key-image-box::before {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    background: rgba(255, 40, 40, .18);

    filter: blur(35px);

    border-radius: 50%;
}

.key-image {
    position: relative;

    width: 150px;
    height: 150px;

    object-fit: contain;

    z-index: 2;

    filter:
        drop-shadow(0 0 8px rgba(255, 40, 40, .35))
        drop-shadow(0 0 25px rgba(255, 40, 40, .15));

    transition: .35s;
}

.key-card:hover .key-image {
    transform: scale(1.08) rotate(-3deg);
}

.key-star {
    position: absolute;

    color: #ff4444;

    font-size: 12px;

    opacity: .8;

    animation: keyStarFloat 2.5s infinite ease-in-out;

    z-index: 3;
}

.key-star:nth-child(1) {
    top: 15px;
    left: 25px;
}

.key-star:nth-child(2) {
    top: 40px;
    right: 15px;

    font-size: 8px;

    animation-delay: .5s;
}

.key-star:nth-child(3) {
    bottom: 20px;
    left: 15px;

    font-size: 9px;

    animation-delay: 1s;
}

.key-star:nth-child(4) {
    bottom: 35px;
    right: 25px;

    font-size: 13px;

    animation-delay: 1.5s;
}

@keyframes keyStarFloat {

    0%,
    100% {
        transform: translateY(0);

        opacity: .4;
    }

    50% {
        transform: translateY(-7px);

        opacity: 1;
    }
}

.key-card h3 {
    font-size: 19px;

    letter-spacing: 1px;

    margin-bottom: 10px;
}

.key-card p {
    color: #777;

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 18px;
}

.key-price {
    font-size: 25px;

    font-weight: bold;

    margin-bottom: 18px;
}


/* FOOTER */

footer {
    padding: 40px 7%;

    border-top: 1px solid #222;

    display: flex;

    justify-content: space-between;

    color: #666;
}

footer div {
    color: white;

    font-weight: bold;
}


/* MOBILE */

@media (max-width: 1050px) {

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .skulls {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 750px) {

    .header {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    .login-button,
    .profile-button {
        display: none;
    }

    .products,
    .skulls,
    .steps {
        grid-template-columns: 1fr;
    }

    .product-details,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: 5px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    footer {
        flex-direction: column;

        gap: 15px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {

    .hero h1 {
        font-size: 55px;
    }

    .modal-box {
        width: 90%;
    }
}