﻿* {
    box-sizing: border-box;
}

.shop {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #ffedd6;
    font-size: 14px;
}

.shop__wrapper {
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.shop__top-bar {
    display: flex;
    height: 52px;
    width: 100%;
    background: linear-gradient(to right, rgba(20, 20, 20, 0.95), rgba(30, 25, 25, 0.95));
    border-bottom: 1px solid rgba(255, 175, 70, 0.2);
    line-height: 52px;
}

.shop__scroll-info {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding: 0 10px;
}

.shop__scroll-info::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 40px;
    left: 0;
    top: 0;
    background: linear-gradient(to right, rgba(20, 20, 20, 0.95), rgba(255, 255, 255, 0));
    z-index: 1;
}

.shop__scroll-info::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 60px;
    right: 0;
    top: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(30, 25, 25, 0.95));
    z-index: 1;
    pointer-events: none;
}

.shop__scroll-text {
    position: absolute;
    white-space: nowrap;
    height: 100%;
    left: 100%;
    animation: scrollText 30s linear infinite;
    line-height: 12px;
    color: #ffedd6;
    font-size: 13px;
    font-weight: 500;
}

@keyframes scrollText {
    0% { left: 100%; }
    100% { left: -100%; }
}

.shop__user-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    min-width: 280px;
    background: linear-gradient(to right, rgba(154, 61, 56, 0.15), rgba(154, 61, 56, 0.25));
    border-left: 1px solid rgba(255, 175, 70, 0.2);
    font-size: 13px;
}

.shop__user-balance > span {
    color: #ffaf46;
    font-weight: 500;
}

.shop__balance-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
}

.shop__balance-label {
    color: #ffaf46;
}

.shop__balance-value {
    color: #ffd375;
    font-weight: 700;
}

.shop__balance-currency {
    color: #ffaf46;
}



.shop__container {
    width: 100%;
    min-height: 600px;
    display: flex;
    overflow: hidden;
}



.shop__sidebar {
    flex: 0 0 160px;
    max-width: 160px;
    background-color: rgba(20, 20, 20, 0.95);
    overflow: hidden;
    border-right: 1px solid rgba(255, 175, 70, 0.2);
}

.shop__menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.shop__menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-left: 4px solid transparent;
    margin: 0;
    position: relative;
    transition: all 0.2s;
    font-size: 13px;
    text-align: center;
    background: transparent;
    cursor: pointer;
    color: #ffedd6;
    line-height: 1.3;
}

.shop__menu-item:hover {
    background: rgba(154, 61, 56, 0.25);
    border-left-color: rgba(255, 175, 70, 0.6);
    color: #ffd375;
}

.shop__menu-item--active {
    border-left-color: #ffaf46;
    background: rgba(154, 61, 56, 0.4);
    color: #ffd375;
    font-weight: 600;
}

.shop__menu-item--active:hover {
    background: rgba(154, 61, 56, 0.5);
}

.shop__menu-item span {
    width: 100%;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}



.shop__content {
    flex: 1;
    background-color: rgba(25, 25, 25, 0.95);
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}


.shop__search-bar {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.shop__search-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 175, 70, 0.3);
    border-radius: 8px;
    color: #ffedd6;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.shop__search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(154, 61, 56, 0.6), rgba(122, 45, 40, 0.6));
    border: 1px solid rgba(255, 175, 70, 0.4);
    border-radius: 8px;
    color: #ffaf46;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop__search-btn:hover {
    background: linear-gradient(135deg, rgba(176, 77, 72, 0.8), rgba(138, 61, 56, 0.8));
    border-color: #ffaf46;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 175, 70, 0.3);
}

.shop__search-btn:active {
    transform: translateY(0);
}

.shop__search-input::placeholder {
    color: rgba(255, 237, 214, 0.5);
}

.shop__search-input:hover {
    border-color: rgba(255, 175, 70, 0.5);
}

.shop__search-input:focus {
    border-color: #ffaf46;
    background: rgba(0, 0, 0, 0.6);
}


.shop__category-header {
    padding: 12px 16px;
    background: linear-gradient(to right, rgba(255, 175, 70, 0.2), rgba(255, 175, 70, 0.05), transparent);
    border-left: 4px solid #ffaf46;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 18px;
    font-weight: 600;
    color: #ffaf46;
}
.shop__category-description {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 237, 214, 0.7);
  font-style: italic;
}

.shop__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    font-size: 14px;
    align-items: stretch;
}

.shop__product {
    border: 2px solid rgba(211, 211, 211, 0.12);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(22, 22, 26, 0.98), rgba(18, 18, 22, 0.98));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.shop__product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #d3d3d3, rgba(211, 211, 211, 0.4));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.shop__product:hover {
    border-color: rgba(255, 175, 70, 0.6);
    background: linear-gradient(145deg, rgba(28, 26, 24, 0.98), rgba(24, 22, 20, 0.98));
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 175, 70, 0.3);
}

.shop__product:hover::before {
    width: 6px;
    background: linear-gradient(180deg, #ffaf46, #ff8c00);
    box-shadow: 0 0 16px rgba(255, 175, 70, 0.7);
}

.shop__product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    padding-bottom: 1rem;
    gap: 0.875rem;
    position: relative;
    z-index: 2;
}


.shop__product-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.shop__product-image-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.shop__product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(45, 45, 50, 0.9), rgba(25, 25, 30, 0.95));
    border: 2px solid rgba(255, 175, 70, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop__product-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop__product:hover .shop__product-icon {
    border-color: rgba(255, 175, 70, 0.7);
    box-shadow: 0 0 24px rgba(255, 175, 70, 0.4), inset 0 0 12px rgba(255, 175, 70, 0.15);
}

.shop__product:hover .shop__product-icon::after {
    opacity: 1;
}

.shop__product:hover .shop__product-icon img {
    transform: scale(1.08);
}

.shop__product-icon img {
    width: 90%;
    height: 90%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.shop__product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.shop__product-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    padding-right: 80px;
    color: #ffedd6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    word-break: break-word;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    min-height: 42px;
}

.shop__product:hover .shop__product-name {
    color: #ffd375;
}

.shop__product-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.shop__product-price-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.shop__product-price {
    color: #ffd375;
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

.shop__product-old-price {
    color: #555;
    text-decoration: line-through;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0.8;
    font-weight: 500;
}

.shop__product-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 237, 214, 0.6);
}

.shop__product-stock i {
    font-size: 11px;
    color: #ffaf46;
}

.shop__product-stock strong {
    color: #ffd375;
    font-weight: 600;
    font-size: 12.5px;
}


.shop__product-buy {
    display: flex;
    align-items: center;
    justify-content: stretch;
    padding: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 175, 70, 0.08);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    gap: 0.75rem; /* расстояние между кнопками */
}


.shop__buy-btn {
    padding: 11px 184px;
    /* width: 100%;  ← не ставим, иначе кнопка будет на всю строку */
    border: 2px solid rgba(255, 175, 70, 0.5);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(154, 61, 56, 0.8), rgba(122, 45, 40, 0.8));
    color: #ffaf46;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}


.shop__buy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 175, 70, 0.25), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop__buy-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.shop__buy-btn > * {
    position: relative;
    z-index: 1;
}

.shop__buy-btn:hover {
    background: linear-gradient(135deg, rgba(176, 77, 72, 0.95), rgba(138, 61, 56, 0.95));
    border-color: #ffaf46;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 175, 70, 0.5);
}

.shop__buy-btn:hover::before {
    opacity: 1;
}

.shop__buy-btn:hover::after {
    width: 100%;
    height: 200%;
}

.shop__buy-btn:active {
    transform: translateY(0);
}

.shop__buy-btn--disabled {
    background: linear-gradient(135deg, rgba(45, 45, 50, 0.7), rgba(35, 35, 40, 0.7));
    border-color: rgba(90, 90, 95, 0.5);
    color: #777;
    cursor: not-allowed;
    text-shadow: none;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.shop__buy-btn--disabled:hover {
    transform: none;
    box-shadow: none;
}

.shop__buy-btn--disabled::before,
.shop__buy-btn--disabled::after {
    display: none;
}


.shop__badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
}

.shop__badge {
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    min-width: 45px;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.shop__badge--hot {
    background: linear-gradient(135deg, #ff4444 0%, #dd0000 100%);
    animation: pulse-hot 2.5s ease-in-out infinite;
}

.shop__badge--new {
    background: linear-gradient(135deg, #11dd00 0%, #0a9900 100%);
    animation: pulse-new 2.5s ease-in-out infinite;
}

.shop__badge--discount {
    background: linear-gradient(135deg, #237f52 0%, #237f52 100%);
    animation: pulse-discount 2.5s ease-in-out infinite;
}

@keyframes pulse-hot {
    0%, 100% { 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 68, 68, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 12px 3px rgba(255, 68, 68, 0.6);
        transform: scale(1.05);
    }
}

@keyframes pulse-new {
    0%, 100% { 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(17, 221, 0, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 12px 3px rgba(17, 221, 0, 0.6);
        transform: scale(1.05);
    }
}

@keyframes pulse-discount {
    0%, 100% { 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(0, 181, 26, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 12px 3px rgba(0, 181, 26, 0.6);
        transform: scale(1.05);
    }
}


.shop__product.rarity-uncommon::before {
    background: linear-gradient(180deg, #67a041, rgba(103, 160, 65, 0.5));
}

.shop__product.rarity-uncommon:hover {
    border-color: rgba(103, 160, 65, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(103, 160, 65, 0.4);
}

.shop__product.rarity-uncommon:hover::before {
    background: linear-gradient(180deg, #7cbd4d, #67a041);
    box-shadow: 0 0 12px rgba(103, 160, 65, 0.6);
}

.shop__product.rarity-rare::before {
    background: linear-gradient(180deg, #4175a0, rgba(65, 117, 160, 0.5));
}

.shop__product.rarity-rare:hover {
    border-color: rgba(65, 117, 160, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(65, 117, 160, 0.4);
}

.shop__product.rarity-rare:hover::before {
    background: linear-gradient(180deg, #5a92c4, #4175a0);
    box-shadow: 0 0 12px rgba(65, 117, 160, 0.6);
}

.shop__product.rarity-epic::before {
    background: linear-gradient(180deg, #8a41a0, rgba(139, 0, 139, 0.5));
}

.shop__product.rarity-epic:hover {
    border-color: rgba(139, 0, 139, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 0, 139, 0.4);
}

.shop__product.rarity-epic:hover::before {
    background: linear-gradient(180deg, #8a41a0, #8a41a0);
    box-shadow: 0 0 12px rgba(139, 0, 139, 0.6);
}

.shop__product.rarity-legendary::before {
    background: linear-gradient(180deg, #a17711, rgba(255, 215, 0, 0.5));
}

.shop__product.rarity-legendary:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.4);
}

.shop__product.rarity-legendary:hover::before {
    background: linear-gradient(180deg, #a17711, #a17711);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.shop__product.rarity-mythic::before {
    background: linear-gradient(180deg, #ff1529, rgba(220, 20, 60, 0.5));
}

.shop__product.rarity-mythic {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(220, 20, 60, 0.3);
}

.shop__product.rarity-mythic:hover {
    border-color: rgba(220, 20, 60, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 20, 60, 0.5);
}

.shop__product.rarity-mythic:hover::before {
    background: linear-gradient(180deg, #b057d4, #ff1529);
    box-shadow: 0 0 16px rgba(220, 20, 60, 0.8);
}


.shop__empty {
    grid-column: 1 / -1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(154, 61, 56, 0.05), rgba(20, 20, 20, 0.3));
    border-radius: 12px;
    border: 2px dashed rgba(255, 175, 70, 0.2);
}

.shop__empty-icon {
    position: relative;
    margin-bottom: 2rem;
    animation: floatEmpty 3s ease-in-out infinite;
}

@keyframes floatEmpty {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.shop__empty-icon i {
    font-size: 80px;
    color: #ffaf46;
    opacity: 0.4;
    text-shadow: 0 0 30px rgba(255, 175, 70, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.shop__empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffaf46;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 8px rgba(255, 175, 70, 0.3);
}

.shop__empty-text {
    font-size: 15px;
    color: rgba(255, 237, 214, 0.6);
    margin: 0;
    font-weight: 500;
}


.shop__pagination {
  display: flex;
  justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 175, 70, 0.2);
}

.shop__page-numbers {
  display: flex;
    align-items: center;
  gap: 0.5rem;
}

.shop__page-btn {
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 175, 70, 0.3);
    border-radius: 4px;
    color: #ffedd6;
  cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    outline: none;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.shop__page-btn:hover {
    background: rgba(154, 61, 56, 0.4);
    border-color: rgba(255, 175, 70, 0.5);
}

.shop__page-btn--active {
    background: linear-gradient(135deg, rgba(154, 61, 56, 0.6), rgba(122, 45, 40, 0.6));
    border-color: #ffaf46;
    color: #ffaf46;
    font-weight: 700;
    cursor: default;
}

.shop__page-btn--active:hover {
    background: linear-gradient(135deg, rgba(154, 61, 56, 0.6), rgba(122, 45, 40, 0.6));
    border-color: #ffaf46;
}

.shop__page-dots {
    color: #888;
    padding: 0 4px;
}



.purchase-modal {
  position: fixed;
    left: 0;
  top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
  display: flex;
    z-index: 9999;
}

.purchase-modal__backdrop {
  position: absolute;
    width: 100%;
    height: 100%;
}

.purchase-modal__dialog {
    max-width: 600px;
    width: 90%;
    align-self: center;
    margin: auto;
    border-top: 2px solid #5f5f5f;
    border-bottom: 2px solid #5f5f5f;
    padding: 25px 40px;
    text-align: center;
    background-color: rgba(33, 41, 49, 0.95);
    transition: all 0.3s;
    position: relative;
    color: #ffffff;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 8px;
}

/* ЕДИНСТВЕННЫЙ СКРОЛЛ - Purchase modal dialog scrollbar */
.purchase-modal__dialog::-webkit-scrollbar {
    width: 10px;
}

.purchase-modal__dialog::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.6);
    border-radius: 5px;
    border: 1px solid rgba(255, 175, 70, 0.15);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.purchase-modal__dialog::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(255, 165, 0, 0.9) 0%, 
        rgba(255, 140, 0, 0.9) 50%,
        rgba(255, 120, 0, 0.9) 100%
    );
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 2px 4px rgba(255, 165, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.purchase-modal__dialog::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(255, 185, 30, 1) 0%, 
        rgba(255, 160, 20, 1) 50%,
        rgba(255, 140, 10, 1) 100%
    );
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 2px 8px rgba(255, 165, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.purchase-modal__dialog::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        rgba(255, 200, 50, 1) 0%, 
        rgba(255, 180, 40, 1) 50%,
        rgba(255, 160, 30, 1) 100%
    );
}

/* Firefox scrollbar */
.purchase-modal__dialog {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 165, 0, 0.9) rgba(20, 20, 20, 0.6);
}

.purchase-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 175, 70, 0.3);
    border-radius: 6px;
    background: rgba(40, 40, 40, 0.8);
    color: rgba(255, 237, 214, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.purchase-modal__close:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(239, 68, 68, 0.8);
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.purchase-modal__close:active {
    transform: rotate(90deg) scale(0.95);
}

.purchase-modal__title {
    font-size: 24px;
    font-weight: 600;
    color: #ffdcae;
    text-shadow: 0 0 15px rgba(199, 73, 0, 0.6);
    margin-bottom: 20px;
}

.purchase-modal__premium-warning {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
    border: 3px solid rgba(239, 68, 68, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    animation: warningPulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 25px rgba(220, 38, 38, 0.6), 
        inset 0 0 20px rgba(0, 0, 0, 0.4);
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(220, 38, 38, 0.6), 
            inset 0 0 20px rgba(0, 0, 0, 0.4);
        border-color: rgba(239, 68, 68, 0.8);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(220, 38, 38, 0.9), 
            inset 0 0 20px rgba(0, 0, 0, 0.4);
        border-color: rgba(239, 68, 68, 1);
    }
}

.purchase-modal__warning-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: warningShake 0.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes warningShake {
    0% {
        transform: rotate(-5deg) scale(1);
    }
    100% {
        transform: rotate(5deg) scale(1.1);
    }
}

.purchase-modal__warning-content {
    flex: 1;
    text-align: left;
}

.purchase-modal__warning-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(255, 255, 255, 0.3);
}

.purchase-modal__warning-message {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.purchase-modal__warning-disclaimer {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.purchase-modal__body {
    margin-bottom: 20px;
}

.purchase-modal__product {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    text-align: left;
    background: rgba(255, 175, 70, 0.08);
    padding: 12px;
    border-radius: 6px;
}

.purchase-modal__image {
    flex: 0 0 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 175, 70, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purchase-modal__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.purchase-modal__details {
  flex: 1;
}

.purchase-modal__product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.purchase-modal__rarity {
    font-size: 13px;
    color: #ffaf46;
    margin-bottom: 4px;
}

.purchase-modal__description {
    font-size: 12px;
    color: #ccc;
    margin-top: 4px;
}

.purchase-modal__calculation {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 6px;
}

.purchase-modal__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.purchase-modal__row--total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    font-weight: 700;
    color: #ffd375;
    margin-top: 6px;
    padding-top: 10px;
}

.purchase-modal__quantity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.purchase-modal__qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 175, 70, 0.4);
    background: rgba(154, 61, 56, 0.4);
    color: #ffaf46;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    border-radius: 3px;
    font-weight: 600;
}

.purchase-modal__qty-btn:hover {
    background: rgba(154, 61, 56, 0.6);
    border-color: #ffaf46;
}

.purchase-modal__qty-input {
    width: 50px;
    padding: 4px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 175, 70, 0.3);
    border-radius: 3px;
    color: #ffedd6;
    font-weight: 600;
    font-size: 13px;
}

.purchase-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.purchase-modal__btn {
    padding: 10px 25px;
    border: 1px solid rgba(255, 175, 70, 0.4);
    border-radius: 4px;
    background: rgba(60, 60, 60, 0.6);
    color: #ffffff;
    transition: all 0.3s;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.purchase-modal__btn:hover {
    background: rgba(80, 80, 80, 0.8);
    border-color: rgba(255, 175, 70, 0.6);
}

.purchase-modal__btn--confirm {
    background: linear-gradient(135deg, rgba(154, 61, 56, 0.8), rgba(122, 45, 40, 0.8));
    border-color: #ffaf46;
    color: #ffaf46;
    font-weight: 600;
}

.purchase-modal__btn--confirm:hover {
    background: linear-gradient(135deg, rgba(176, 77, 72, 0.9), rgba(138, 61, 56, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 175, 70, 0.3);
}

.purchase-modal__btn--confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.purchase-modal__btn--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9)) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
    cursor: default !important;
    pointer-events: none !important;
    font-weight: 600;
}

.purchase-modal__btn--success:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9)) !important;
    transform: none !important;
}











.character-select-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.character-select-modal--show {
    opacity: 1;
}

.character-select-modal__content {
    background-color: rgba(33, 41, 49, 0.95);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    border-top: 2px solid #5f5f5f;
    border-bottom: 2px solid #5f5f5f;
    animation: modalSlideUp 0.3s ease;
    position: relative;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.character-select-modal__header {
    padding: 20px 30px;
    background: linear-gradient(to right, rgba(154, 61, 56, 0.3), rgba(122, 45, 40, 0.3));
    border-bottom: 1px solid rgba(255, 175, 70, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-select-modal__header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffdcae;
    text-shadow: 0 0 15px rgba(199, 73, 0, 0.6);
}

.character-select-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 175, 70, 0.3);
    border-radius: 6px;
    background: rgba(40, 40, 40, 0.8);
    color: rgba(255, 237, 214, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.character-select-modal__close:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(239, 68, 68, 0.8);
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.character-select-modal__close:active {
    transform: rotate(90deg) scale(0.95);
}

.character-select-modal__body {
    padding: 25px 30px 30px 30px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.character-select-modal__description {
    color: rgba(255, 237, 214, 0.8);
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.character-select-modal__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.character-select-modal__item {
    background: linear-gradient(135deg, rgba(255, 175, 70, 0.08), rgba(154, 61, 56, 0.06));
    border: 2px solid rgba(255, 175, 70, 0.25);
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
}

.character-select-modal__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 175, 70, 0.15), transparent);
    transition: left 0.5s ease;
}

.character-select-modal__item:hover {
    background: linear-gradient(135deg, rgba(255, 175, 70, 0.2), rgba(154, 61, 56, 0.15));
    border-color: rgba(255, 175, 70, 0.6);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 175, 70, 0.35);
}

.character-select-modal__item:hover::before {
    left: 100%;
}

.character-select-modal__item:active {
    transform: translateX(4px) scale(0.98);
}

.character-select-modal__item-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 175, 70, 0.4), rgba(154, 61, 56, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 175, 70, 0.5);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.character-select-modal__item:hover .character-select-modal__item-avatar {
    border-color: rgba(255, 175, 70, 0.8);
    box-shadow: 0 6px 18px rgba(255, 175, 70, 0.4), 
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.character-select-modal__item-info {
    flex: 1;
    min-width: 0;
}

.character-select-modal__item-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffaf46;
    text-shadow: 0 2px 8px rgba(199, 73, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-select-modal__item-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: rgba(255, 175, 70, 0.5);
    transition: all 0.3s ease;
}

.character-select-modal__item:hover .character-select-modal__item-arrow {
    color: rgba(255, 175, 70, 1);
    transform: translateX(4px);
}






.shop__product-image-wrap.has-rewards {
    position: relative;
    cursor: help;
}


.rewards-tooltip {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    transform: scale(0.96);
    will-change: opacity, transform;
    display: none;
}

.rewards-tooltip.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    display: block;
}


.rewards-tooltip__content {
    position: relative;
    background: linear-gradient(135deg, rgba(25, 20, 15, 0.98), rgba(35, 30, 25, 0.98));
    border: 2px solid rgba(255, 175, 70, 0.6);
    border-radius: 10px;
    padding: 18px;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 175, 70, 0.3),
        inset 0 1px 0 rgba(255, 175, 70, 0.15);
    will-change: transform;
}

@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.rewards-tooltip__section {
    margin-bottom: 16px;
}

.rewards-tooltip__section:last-child {
    margin-bottom: 0;
}


.rewards-tooltip__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffaf46;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 10px 0;
    padding: 6px 10px;
    background: linear-gradient(90deg, rgba(154, 61, 56, 0.3), rgba(154, 61, 56, 0.1));
    border-left: 3px solid #ffaf46;
    border-radius: 4px;
}

.rewards-tooltip__title i {
    font-size: 13px;
    color: #ffd375;
}


.rewards-tooltip__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}


.rewards-tooltip__items::-webkit-scrollbar {
    width: 5px;
}

.rewards-tooltip__items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.rewards-tooltip__items::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 175, 70, 0.5), rgba(154, 61, 56, 0.5));
    border-radius: 3px;
}

.rewards-tooltip__items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 175, 70, 0.7), rgba(154, 61, 56, 0.7));
}


.rewards-tooltip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid rgba(211, 211, 211, 0.4);
    transition: all 0.2s ease;
}

.rewards-tooltip__item:hover {
    background: rgba(154, 61, 56, 0.25);
    border-left-color: rgba(255, 175, 70, 0.8);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.rewards-tooltip__item.rarity-common { 
    border-left-color: #d3d3d3;
}

.rewards-tooltip__item.rarity-uncommon { 
    border-left-color: #67a041;
    background: rgba(103, 160, 65, 0.08);
}

.rewards-tooltip__item.rarity-rare { 
    border-left-color: #4175a0;
    background: rgba(65, 117, 160, 0.08);
}

.rewards-tooltip__item.rarity-epic { 
    border-left-color: #8a41a0;
    background: rgba(139, 0, 139, 0.08);
}

.rewards-tooltip__item.rarity-legendary { 
    border-left-color: #a17711;
    background: rgba(139, 0, 139, 0.08);
}

.rewards-tooltip__item.rarity-mythic { 
    border-left-color: #ff1529;
    background: rgba(220, 20, 60, 0.08);
}


.rewards-tooltip__item-name {
    flex: 1;
    color: #ffedd6;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}


.rewards-tooltip__item-details {
    color: rgba(255, 237, 214, 0.6);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}


.rewards-tooltip__enchant {
    color: #7fff7f;
    font-weight: 700;
    padding: 2px 5px;
    background: rgba(127, 255, 127, 0.15);
    border-radius: 3px;
}


.rewards-tooltip__grade {
    color: #ffd375;
    font-weight: 700;
    padding: 2px 5px;
    background: rgba(255, 211, 117, 0.15);
    border-radius: 3px;
}


.rewards-tooltip__currency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(154, 61, 56, 0.25), rgba(154, 61, 56, 0.1));
    border-radius: 6px;
    border-left: 3px solid rgba(255, 175, 70, 0.6);
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.rewards-tooltip__currency:last-child {
    margin-bottom: 0;
}

.rewards-tooltip__currency:hover {
    background: linear-gradient(90deg, rgba(154, 61, 56, 0.4), rgba(154, 61, 56, 0.2));
    border-left-color: #ffaf46;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(255, 175, 70, 0.2);
}


.rewards-tooltip__currency-name {
    color: #ffedd6;
    font-size: 13px;
    font-weight: 600;
}


.rewards-tooltip__currency-amount {
    color: #ffd375;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 211, 117, 0.4);
}


/* Responsive improvements */
@media (max-width: 1200px) {
    .shop__products {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .shop__products {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.125rem;
    }
}

@media (max-width: 768px) {
    .shop__products {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .shop__product-content {
        padding: 1rem;
        padding-bottom: 0.875rem;
        gap: 0.75rem;
    }

    .shop__product-icon,
    .shop__product-image-wrap {
        width: 70px;
        height: 70px;
    }

    .shop__product-name {
        font-size: 14px;
        min-height: 40px;
    }

    .shop__product-price {
        font-size: 16px;
    }

    .shop__buy-btn {
        font-size: 12.5px;
        padding: 10px 20px;
        letter-spacing: 0.6px;
    }

    .shop__product-buy {
        padding: 1rem;
        padding-top: 0.875rem;
    }

    .shop__badges {
        top: 0.875rem;
        right: 0.875rem;
        gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .shop__products {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .shop__product-header {
        gap: 0.875rem;
    }

    .shop__badges {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.375rem;
    }

    .shop__badge {
        padding: 5px 9px;
        font-size: 9px;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .shop__products {
        gap: 0.75rem;
    }

    .shop__product-content {
        padding: 0.875rem;
    }

    .shop__product-icon,
    .shop__product-image-wrap {
        width: 64px;
        height: 64px;
    }

    .shop__product-name {
        font-size: 13.5px;
    }

    .shop__buy-btn {
        font-size: 12px;
        padding: 9px 18px;
    }
}

/* Premium Description Styles */
.premium-desc {
    padding: 0 4px 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #ffedd6;
}

.premium-desc h4 {
    margin: 0 0 12px 0;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.premium-desc ul {
    margin: 0;
    padding: 0;
}

.premium-desc ul li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    font-size: 13.5px;
    color: #e0d0c0;
}

.premium-desc ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
    font-size: 14px;
}

.premium-desc strong {
    color: #ffd700;
    font-weight: 600;
}

