:root {
    --body: #201934;
    --secondBG: #231D34;
    --thirdBG: #232936;
    --accent: #E599F4;
    --accentHover: #E599F4;
    --accentTwo: #78D7E7;
    --accentThree: #D3A86B;
    --mainText: #fff;
    --text: #979797;
    --grey: #999ea9;
    --btnShadow: 3px 3px 20px var(--accent);
    --boxShadow: 0 4px 6px -1px rgba(0, 0, 0, 10%), 0 2px 4px -1px rgba(0, 0, 0, 6%);
    --boxShadow2: 0px 10px 50px hsla(0, 0%, 93%, .2);
}

.store-container, .store-products, .cart-sidebar {
    font-family: 'Outfit', sans-serif;
}

.store-container {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 40px;
}

.store-intro {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 40px;
}

.mini-cart {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: var(--secondBG);
    border-radius: 0 0 20px 20px;
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.25);
    gap: 16px;
    border-top: 8px solid var(--accent)
}

.store-products {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
}

.terms-conditions {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: var(--secondBG);
    border-radius: 0 0 20px 20px;
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.25);
    gap: 16px;
    border-top: 8px solid var(--accentTwo);
    padding: 24px;
    color: #c2c2c2;
}

.terms-conditions h4{
    color: #fff;
}

.terms-conditions h2 {
    color: var(--accentTwo)
}

.terms-text a{
    text-decoration: underline;
    color: #fff;
}

.product-card {
    background: var(--secondBG);
    border-radius: 0 0 20px 20px;
    padding: 3rem 2rem 2rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.25);
    border-top: 8px solid var(--accentThree)
}

.product-loading {
    width: 128px;
    height: 128px;
    border-top: 3px solid var(--accentThree);
    border-right: 3px solid transparent;
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.product-image {
    border-radius: 10px;
}

.product-bonus {
    position: absolute;
    top: 20px;
    left: 10px;
    rotate: -10deg;
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 500;
    animation: pulseScale 3s ease-in-out infinite;
}

.product-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.product-name {
    font-size: 2.6rem;
    color: #fff;
}

.product-gems {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 600;
}

body.basket-loading {
    cursor: progress;
}

.mc-input-wrapper {
    position: relative;
    background: #38304A;
    width: 80%;
    color: #C2C2C2;
    box-shadow: inset -2px -2px 8px rgba(0, 0, 0, 0.25),inset 2px 2px 8px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 12px auto 0 auto;
}

#mc-username {
    width: 100%;
    background: transparent;
    border: none;
    font-weight: 600;
    padding: 8px 12px;
}

#mc-skin-preview {
    position: absolute;
    display: none;
    border-radius: 6px;
    border: 2px solid var(--accentThree);
    height: 100%;
    right: 0;
    pointer-events: none;
}

#view-cart-btn {
    background: #38304A;
    padding: 12px 30px;
    border-bottom-right-radius: 20px;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    height: 100%;
}


#view-cart-btn svg {
    width: 36px;
    height: auto;
    transition-duration: 0.2s;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--accentThree);
    color: var(--secondBG);
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.sign_in-btn {
    width: 50%;
    border-radius: 8px;
    color: #000;
    background: linear-gradient(101.22deg, #F5C98B 0%, #C6A45D 50.52%, #F7CE8C 100%);
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    padding: 12px 24px;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.login-field {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--secondBG);
    box-shadow: inset -4px -4px 15px rgba(19, 15, 30, 0.2),inset 4px 4px 15px rgba(19, 15, 30, 0.2);
    border-radius: 8px;
    border: 2px solid #130f1e;
}

.login-field:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    border: 2px solid #e599f424;
    pointer-events: none;
}

#user-info {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--secondBG);
    border-radius: 0 0 20px 20px;
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.25);
    gap: 8px;
    width: 100%;
    height: 100%;
    border-top: 8px solid var(--accent);
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#cart-title {
    font-size: 18px;
    font-weight: 600;
    color: #D4D8EC;
    transition-duration: 0.2s;
}

#cart-total {
    font-size: 14px;
    color: #D4D8EC;
    transition-duration: 0.2s;
}

.cart-summary {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: center;
    height: 100%;
    width: 100%;
}

.summary-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin: 8px 0 8px 16px;
    cursor: pointer;
    transition-duration: 0.2s;
}

.summary-left:hover #user-name, .summary-left:hover #logout-text {
    color: #fff;
}

#user-name {
    font-size: 22px;
    color: #D4D8EC;
    font-weight: 600;
    transition-duration: 0.2s;
}

#logout-text {
    display: none;
    font-size: 13px;
    color: #D4D8EC;
    transition-duration: 0.2s;
}

.view-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition-duration: 0.2s;
}

.view-cart:hover #view-cart-btn {
    filter: brightness(1.1);
}

.view-cart:hover svg {
    transform: scale(1.1);
}

.view-cart:hover #cart-title, .view-cart:hover #cart-total {
    color: #fff;
}

#cart-avatar {
    width: 64px;
    height: auto;
}

.avatar-dropdown {
    position: relative;
    display: inline-block;
}

.avatar-dropdown-menu {
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.avatar-dropdown-menu button {
  width: 100%;
  background: var(--thirdBG);
  border: none;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  border-radius: 6px;
  color: #D4D8EC;
  font-weight: 600;
}

.avatar-dropdown-menu button:hover {
  background: #22262fbd;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 999;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--secondBG);
    padding: 16px 20px;
    overflow: hidden;
    transition: right 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    font-size: 2.4rem;
    color: #c2c2c2;
}

.cart-header-top {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.close-cross {
    width: 24px;
    height: 24px;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #D4D8EC;
    transition: 0.2s ease;
}

.close-btn:hover {
    color: #fff;
}

.close-btn:hover path {
    stroke: #fff;
}

#basket-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
    cursor: pointer;
    user-select: none;
}

#basket-avatar {
    width: 36px;
    height: auto;
    border-radius: 6px;
}

#basket-logout svg {
    width: 16px;
    height: auto;
    transform: rotate(180deg);
}

.cart-title {
    width: 100%;
    text-align: left;
    margin-top: 24px;
    color: #D4D8EC;
}

.increase, .decrease {
    width: 56px;
    height: 56px;
    background: #130f1e;
    border-radius: 6px;
    color: #fff;
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 500;
}

.buy-btn {
    width: calc(100% - 120px);
    height: 56px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #38304A;
    opacity: 0.8;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
    gap: 12px;
    transition: 0.2s ease;
}

.buy-btn:hover {
    filter: brightness(1.25);
}

.buy-btn svg {
    width: 24px;
    height: auto;
}

.product-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.basket-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.controls-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
}

.basket-controls .qty {
    display: flex;
    align-items: center;
    padding-left: 12px;
    height: 36px;
    width: 100%;
    box-shadow: none;
    border: 1px solid #414141;
    border-radius: 6px 0 0 6px;
}

.basket-controls .increase {
    border-radius: 0 6px 6px 0;
    border: 1px solid #414141;
    height: 36px;
    width: 36px;
    background: transparent;
}

.basket-controls .decrease {
    border-radius: 0;
    border: 1px solid #414141;
    height: 36px;
    width: 36px;
    background: transparent;
}

.remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #414141;
    border-radius: 6px;
    background: transparent;
}

.remove svg {
    width: 24px;
    height: 24px;
}

.cart-items {
    height: 100%;
    overflow-y: auto;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basket-item {
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset -3px -3px 9px rgba(0, 0, 0, 0.25),inset 3px 3px 9px rgba(0, 0, 0, 0.25);
}

.basket-item-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.basket-image {
    width: 64px;
    height: 64px;
    margin-right: 8px;
    border-radius: 6px;
    border: 1px solid #414141;
}

.basket-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

.basket-name {
    font-weight: 700;
    font-size: 16px;
}

.item-price {
    font-size: 14px;
    color: #C2C2C2;
    opacity: 0.8;
    font-weight: 600;
}

.basket-item-bottom {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.basket-item-bottom p {
    color: #C2C2C2;
    font-weight: bold;
    font-size: 14px;
}

#basketBottom {
    display: block;
}

.basket-results {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #c2c2c2
}

#basket-item-amount {
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

.basket-total {
    font-size: 18px;
    color: #fff;
}

.basket-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.popup {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #38304a;
  color: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  max-width: 300px;
  width: 90%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
  font-family: 'Outfit', sans-serif;;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.qty {
    color: #fff;
    font-weight: 500;
    font-size: 18px;
}

#popup-title {
  margin-bottom: 8px;
  font-size: 18px;
  color: #C2C2C2;
  font-weight: 600;
}

#popup-message {
    font-size: 14px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-card img {
    width: 240px;
}

.product-card.highlight {
  border: 2px solid var(--accentThree);
  transition: border 0.3s ease;
}
.featured-card:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}

.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Outfit', sans-serif;
}

.login-modal.show {
  display: flex;
}

.login-modal-content {
  background: var(--secondBG);
  padding: 24px;
  border-radius: 8px;
  width: 50%;
  text-align: center;
  position: relative;
}

.login-modal h3 {
  margin-bottom: 6px;
}

.login-modal strong {
    color: #fff;
    text-decoration: underline;
}

.login-modal p {
  margin-bottom: 16px;
  color: #c2c2c2;
}

.login-actions {
  margin-top: 16px;
}

.login-information {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    text-align: center;
}

.cancel-btn {
    color: #fff;
    background: var(--thirdBG);
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px;
    border-radius: 6px;
}

.basket-codes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: 32px;
}

.input-wrapper input {
  width: 100%;
  padding-right: 70px;
  box-sizing: border-box;
  height: 100%;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  background: #38304A;
  padding-left: 12px;
  color: #D4D8EC;
  font-weight: 500;
}

.input-wrapper button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border: none;
  background-color: #4f4565;
  color: #D4D8EC;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
  font-weight: 500;
}

.input-wrapper button:hover {
  filter: brightness(1.2);
}

#tebex-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

tebex-checkout {
    max-width: 1000px !important;
    width: 100% !important;
    height: auto !important;
    overflow: auto !important;
}

.tebex-hidden {
  display: none !important;
}

#discount-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    border-radius: 0 0 20px 20px;
    border-top: 8px solid var(--accentThree);
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.25);
    background: var(--secondBG);
    position: relative;
}

.store-discount-box {
    font-size: 2.4rem;
    color: #D4D8EC;
    animation: pulse 2.5s infinite linear;
}

.store-discount-box span {
    color: var(--accentThree);
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05)
    }
}

@media only screen and (max-width: 1350px) {
    .store-container {
        width: 90% !important;
        margin: 0 auto;
    }
    .store-products {
        width: 100%;
        margin: 2em auto !important;
    }
}

@media only screen and (max-width: 1040px) {
    .store-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-modal-content {
        width: 80%;
    }
}

@media only screen and (max-width: 840px) {
    .product-name {
        font-size: 2.2rem;
        margin-top: 12px;
    }
    .product-image {
        width: 240px;
    }
    .product-gems {
        font-size: 2rem;
    }

    .increase, .decrease {
        height: 36px;
        width: 36px;
        font-size: 24px;
    }

    .buy-btn {
        height: 36px;
    }
}

@media only screen and (max-width: 768px) {
    .store-container {
        width: calc(100% - 25px) !important;
    }
}

@media only screen and (max-width: 576px) {
    .store-products {
        grid-template-columns: repeat(1, 1fr);
    }

    #cart-avatar {
        display: none;
    }

    .login-modal-content {
        width: 90%;
    }

    #view-cart-btn {
        padding: 12px 18px;
    }

    #cart-title {
        font-size: 16px;
    }

    .cart-info {
        gap: 6px;
    }
}

@media only screen and (max-width: 400px) {
    .cart-sidebar {
        width: 100%;
    }
    .store-discount-box {
        font-size: 2rem;
    }
}