.shops-page,
.shop-view-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.shop-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.shop-message.error {
    background: #ffe3e3;
    border: 1px solid #f1b7b7;
    color: #9a2f2f;
}

.shop-message.success {
    background: #e7faea;
    border: 1px solid #b8e3c0;
    color: #256d35;
}

.shop-back-row {
    margin-bottom: 16px;
}

.shop-back-btn {
    display: inline-block;
    background: #f3ecff;
    color: #6b4aa6;
    border: 1px solid #d8c8ff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.15s ease;
}

.shop-back-btn:hover {
    background: #ede1ff;
}

.neo-shop-wrap {
    background: #f7f2ff;
    border: 1px solid #d8c8ff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.neo-shop-header {
    text-align: center;
    padding: 18px 20px 14px;
    background: #f7f2ff;
}

.neo-shop-header h1 {
    margin: 0 0 10px;
    color: #5f3e99;
    font-size: 38px;
    line-height: 1.1;
}

.neo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.neo-banner img {
    width: 500px;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.neo-shop-description {
    font-size: 17px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
}

.neo-kc {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 16px;
    background: #efe3ff;
    border: 1px solid #d1b3ff;
    border-radius: 999px;
    color: #6b4aa6;
    font-weight: 700;
    font-size: 15px;
}

.neo-shop-inventory {
    background: #ffffff;
    padding-bottom: 24px;
}

.neo-shop-inventory h2 {
    margin: 0;
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.neo-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
    padding: 22px 20px 10;
    justify-content: center;
    text-align: center;
}

.neo-item {
    padding: 6px 4px 10px;
}

.neo-item-image-wrap {
    width: 100%;
    min-height: 92px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 8px;
}

.neo-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.neo-item-name {
    font-weight: 700;
    font-size: 16px;
    color: #111;
    line-height: 1.2;
    margin-bottom: 4px;
}

.neo-item-stock,
.neo-item-price {
    font-size: 14px;
    color: #222;
    line-height: 1.3;
}

.neo-item-stock {
    margin-bottom: 2px;
}

.neo-item-price {
    margin-bottom: 8px;
}

.neo-buy-form {
    margin: 0;
}

.neo-buy-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border: none;
    background: linear-gradient(90deg, #d492fd 0%, #91caff 100%);
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.15s ease;
}

.neo-buy-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.neo-soldout {
    font-size: 12px;
    color: #888;
    font-weight: 700;
}

.shop-empty-card {
    background: #fff;
    border: 1px solid #e4d7ff;
    border-radius: 12px;
    padding: 16px;
    margin: 20px;
    text-align: center;
}

.shops-hero-card {
    background: linear-gradient(180deg, #f8f3ff 0%, #eef6ff 100%);
    border: 1px solid #d8c8ff;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.shops-hero-text {
    padding: 20px;
}

.shops-hero-text h1 {
    margin: 0 0 8px;
    color: #6b4aa6;
    font-size: 28px;
}

.shops-hero-text p {
    margin: 0;
    color: #4e4e62;
    line-height: 1.5;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ddd6ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    padding-bottom: 6px;
}

.shop-card-banner {
    background: #f4ecff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.shop-card-banner img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.shop-card-body {
    padding: 14px;
}

.shop-card-body h2 {
    margin: 0 0 8px;
    color: #5f3e99;
    font-size: 18px;
    margin-bottom: 6px;
}

.shopkeeper-line {
    margin: 0 0 8px;
    font-size: 14px;
    color: #5d6175;
}

.shop-description {
    margin: 0 0 14px;
    color: #55586b;
    line-height: 1.5;
    font-size: 14px;
}

.shop-enter-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: 0.15s ease;
    box-sizing: border-box;
    background: linear-gradient(90deg, #d492fd 0%, #91caff 100%);
    color: #ffffff;
    cursor: pointer;
    margin-top: 8px;

}

.shop-enter-btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}



.shop-cooldown-notice {
    margin: 14px auto 0;
    display: inline-block;
    padding: 8px 14px;
    background: #fff3cd;
    border: 1px solid #f0d98c;
    border-radius: 999px;
    color: #7a5a00;
    font-weight: 700;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.buy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.buy-modal-content {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #d8c8ff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    padding: 22px;
    text-align: center;
}

.buy-modal-content h3 {
    margin: 0 0 10px;
    color: #5f3e99;
    font-size: 24px;
}

.buy-modal-content p {
    margin: 0 0 18px;
    color: #444;
    line-height: 1.5;
}

.buy-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.buy-cancel-btn {
    border: 1px solid #d8c8ff;
    background: #f4ecff;
    color: #6b4aa6;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

.buy-cancel-btn:hover {
    background: #ece0ff;
}

.cooldown-disabled,
.cooldown-disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ===============================
   SHOP DIRECTORY HEADER
   Matches Explore page
=============================== */

.shops-hero-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    margin: 0 0 20px !important;
}

.shops-hero-text {
    padding: 0 !important;
    text-align: center !important;
}

.shops-hero-text h1 {
    margin: 0 0 6px !important;
    text-align: center !important;
    font-size: 32px !important;
    color: #5a2d82 !important;
}

.shops-hero-text p {
    margin: 0 0 20px !important;
    text-align: center !important;
    color: #5d6470 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* ===============================
   SHOP PAGE ALIGNMENT
   Match Explore page placement
=============================== */

.shops-page {
    max-width: 1050px !important;
    margin: 0 auto !important;
    padding: 40px 16px 40px !important;
}

.shops-hero-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
}

.shops-hero-text {
    padding: 0 !important;
    text-align: center !important;
}

.shops-hero-text h1 {
    margin: 0 0 6px !important;
    text-align: center !important;
    font-size: 32px !important;
    color: #5a2d82 !important;
    line-height: 1.1 !important;
}

.shops-hero-text p {
    margin: 0 0 20px !important;
    text-align: center !important;
    color: #5d6470 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.shops-grid {
    max-width: 820px !important;
    margin: 0 auto !important;
    grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    gap: 18px !important;
}

/* ===============================
   MY SHOP
=============================== */

.my-shop-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 16px;
}

.my-shop-heading {
    text-align: center;
    margin-bottom: 22px;
}

.my-shop-heading h1 {
    margin: 0 0 6px;
    font-size: 32px;
    color: #5a2d82;
    line-height: 1.1;
}

.my-shop-heading p {
    margin: 0;
    color: #5d6470;
    font-size: 15px;
}

.my-shop-open-card,
.my-shop-main-card,
.my-shop-upgrade-card,
.top-user-shops-panel {
    background: #ffffff;
    border: 1px solid #ddd6ff;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    padding: 18px;
}

.my-shop-open-card {
    max-width: 620px;
    margin: 0 auto 22px;
    text-align: center;
}

.my-shop-open-card h2,
.my-shop-main-card h2,
.my-shop-upgrade-card h3,
.top-user-shops-panel h2 {
    margin: 0 0 8px;
    color: #5f3e99;
}

.my-shop-open-card p,
.my-shop-main-card p,
.my-shop-upgrade-card p,
.top-user-shops-panel p {
    color: #55586b;
    line-height: 1.5;
}

.my-shop-cost-box {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin: 12px 0 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f4ecff;
    border: 1px solid #d8c8ff;
    color: #5f3e99;
}

.my-shop-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 320px;
    gap: 18px;
    margin-bottom: 22px;
}

.my-shop-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.my-shop-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.my-shop-stat {
    background: #f8f4ff;
    border: 1px solid #eadcff;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.my-shop-stat span {
    display: block;
    color: #6f6489;
    font-size: 12px;
    margin-bottom: 4px;
}

.my-shop-stat strong {
    color: #5f3e99;
    font-size: 18px;
}

.my-shop-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.my-shop-primary-btn,
.my-shop-secondary-btn,
.my-shop-disabled-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: none;
}

.my-shop-primary-btn {
    background: linear-gradient(90deg, #d492fd 0%, #91caff 100%);
    color: #ffffff;
}

.my-shop-secondary-btn {
    background: #f4ecff;
    border: 1px solid #d8c8ff;
    color: #6b4aa6;
}

.my-shop-disabled-btn {
    width: 100%;
    margin-top: 12px;
    background: #eeeeee;
    color: #999999;
    cursor: not-allowed;
}

.my-shop-upgrade-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee3ff;
    color: #55586b;
}

.top-user-shops-panel {
    max-width: 920px;
    margin: 0 auto;
}

.top-user-shops-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.top-user-shop-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8f4ff;
    border: 1px solid #eadcff;
    color: inherit;
    text-decoration: none;
}

.top-shop-rank {
    font-weight: 800;
    color: #5f3e99;
}

.top-shop-info strong {
    display: block;
    color: #5f3e99;
}

.top-shop-info small {
    color: #6f6489;
}

.top-shop-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-shop-meta span {
    background: #ffffff;
    border: 1px solid #ddd6ff;
    color: #6b4aa6;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .my-shop-dashboard {
        grid-template-columns: 1fr;
    }

    .my-shop-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-user-shop-row {
        grid-template-columns: 1fr;
    }

    .top-shop-meta {
        justify-content: flex-start;
    }
}

/* ===============================
   SHOP EDIT
=============================== */

.shop-edit-card {
    text-align: left;
}

.shop-edit-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-edit-field label,
.shop-edit-checkbox {
    color: #1f2240;
    font-size: 13px;
    font-weight: 700;
}

.shop-edit-field input,
.shop-edit-field textarea {
    width: 100%;
    border: 1px solid #d8ccea;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: #1f2240;
    font: inherit;
    box-sizing: border-box;
}

.shop-edit-field input:focus,
.shop-edit-field textarea:focus {
    outline: none;
    border-color: #c39bff;
    box-shadow: 0 0 0 3px rgba(211, 146, 253, 0.16);
}

.shop-edit-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-edit-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #c38cff;
}

/* ===============================
   PUBLIC USER SHOP
=============================== */

.user-shop-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 16px;
}

.user-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.user-shop-owner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-shop-owner img {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    object-fit: cover;
    background: #f4ecff;
    border: 1px solid #d8c8ff;
}

.user-shop-owner h1 {
    margin: 0 0 4px;
    font-size: 32px;
    color: #5a2d82;
    line-height: 1.1;
}

.user-shop-owner p {
    margin: 0;
    color: #5d6470;
    font-size: 14px;
}

.user-shop-description {
    max-width: 760px;
    margin: 0 0 18px;
    color: #5d6470;
    line-height: 1.5;
}

.user-shop-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.user-shop-stats div {
    background: #ffffff;
    border: 1px solid #ddd6ff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    padding: 12px;
    text-align: center;
}

.user-shop-stats span {
    display: block;
    color: #6f6489;
    font-size: 12px;
    margin-bottom: 4px;
}

.user-shop-stats strong {
    color: #5f3e99;
    font-size: 18px;
}

.user-shop-inventory {
    background: #ffffff;
    border: 1px solid #ddd6ff;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    padding: 18px;
}

.user-shop-inventory h2 {
    margin: 0 0 16px;
    color: #5f3e99;
    text-align: center;
}

.user-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 16px;
}

.user-shop-item {
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    background: #f8f4ff;
    border: 1px solid #eadcff;
}

.user-shop-item-image {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-shop-item-image img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.user-shop-item h3 {
    margin: 8px 0 4px;
    color: #5f3e99;
    font-size: 15px;
}

.user-shop-item-desc {
    min-height: 34px;
    margin: 0 0 8px;
    color: #5d6470;
    font-size: 12px;
    line-height: 1.35;
}

.user-shop-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #5d6470;
    font-size: 12px;
}

.user-shop-item-meta strong {
    color: #5f3e99;
}

@media (max-width: 900px) {
    .user-shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-shop-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .user-shop-stats {
        grid-template-columns: 1fr;
    }
}

.my-shop-primary-btn.disabled,
.my-shop-primary-btn:disabled {
    opacity: 1;
    cursor: not-allowed;

    background: linear-gradient(135deg, #ff6b6b, #d64545) !important;
    color: #fff !important;

    border: 1px solid #b83232;
    box-shadow: none;
}

/* optional subtle hover lock */
.my-shop-primary-btn:disabled:hover {
    transform: none;
    opacity: 1;
}

.my-shop-note {
    margin: 10px 0 0;
    color: #d64545 !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.my-shop-hover-wrap {
    position: relative;
    display: inline-block;
}

/* hidden tooltip */
.my-shop-hover-note {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);

    background: #2a1b3d;
    color: #ff9b9b;
    font-size: 12px;
    font-weight: 700;

    padding: 6px 10px;
    border-radius: 8px;

    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    white-space: nowrap;
}

/* show on hover */
.my-shop-hover-wrap:hover .my-shop-hover-note {
    opacity: 1;
}

.inventory-shop-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #d492fd 0%, #91caff 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

/* ===============================
   MY SHOP INVENTORY
=============================== */

.my-shop-inventory-panel {
    background: #ffffff;
    border: 1px solid #ddd6ff;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    padding: 18px;
    margin: 22px auto;
    max-width: 920px;
}

.my-shop-inventory-panel h2 {
    margin: 0 0 6px;
    color: #5f3e99;
    text-align: center;
}

.my-shop-inventory-panel > p {
    margin: 0 0 16px;
    text-align: center;
    color: #5d6470;
    font-size: 14px;
}

.my-shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 16px;
}

.my-shop-item-card {
    background: #f8f4ff;
    border: 1px solid #eadcff;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.my-shop-item-image {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-shop-item-image img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.my-shop-item-card h3 {
    margin: 8px 0 4px;
    color: #5f3e99;
    font-size: 15px;
}

.my-shop-item-desc {
    min-height: 34px;
    margin: 0 0 8px;
    color: #5d6470;
    font-size: 12px;
    line-height: 1.35;
}

.my-shop-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: #5d6470;
    font-size: 12px;
}

.my-shop-item-meta strong {
    color: #5f3e99;
}

.my-shop-item-meta .unpriced {
    color: #d64545;
}

.my-shop-price-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.my-shop-price-form input {
    width: 100%;
    border: 1px solid #d8ccea;
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
    color: #1f2240;
    font: inherit;
    box-sizing: border-box;
}

.my-shop-item-card .my-shop-primary-btn,
.my-shop-item-card .my-shop-secondary-btn {
    width: 100%;
    box-sizing: border-box;
}

.kino-buy-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 14, 30, 0.55);
    z-index: 999999;
}

.kino-buy-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kino-buy-popup {
    width: 340px;
    max-width: 92vw;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.kino-buy-popup h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #2f3441;
}

.kino-buy-popup p {
    margin: 0 0 20px;
    color: #6d7485;
    line-height: 1.4;
}

.kino-buy-actions {
    display: flex;
    gap: 10px;
}

.kino-buy-actions button {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
}

.kino-buy-actions button:first-child {
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
}

.kino-buy-actions button:last-child {
    background: #eef1f7;
    color: #555;
}

/* =========================
   SHOP TABS
========================= */

.shop-tabs {
    display: flex;
    gap: 12px;
    margin: 22px 0 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.shop-tabs a {
    padding: 12px 18px;

    border-radius: 999px;

    background: rgba(255,255,255,0.9);

    border: 1px solid rgba(212,146,253,0.22);

    color: #62697c;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;

    box-shadow: 0 4px 12px rgba(80,50,120,0.05);
}

.shop-tabs a:hover {
    transform: translateY(-1px);

    background: rgba(212,146,253,0.12);

    border-color: rgba(212,146,253,0.45);

    color: #8b52c7;
}

.shop-tabs a.active {
    background: linear-gradient(135deg, #d492fd, #91caff);

    border-color: transparent;

    color: white;

    box-shadow: 0 10px 22px rgba(145,202,255,0.22);
}

/* =========================
   USER SHOPS SECTION
========================= */

.shops-section {
    margin-top: 40px;
}

.shops-section-header {
    margin-bottom: 20px;
}

.shops-section-header h2 {
    margin: 0 0 6px;
    font-size: 30px;
    color: #2f3441;
}

.shops-section-header p {
    margin: 0;
    color: #7b8194;
}

/* =========================
   USER SHOPS GRID
========================= */

.user-shops-grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 20px;
}

.user-shop-card {
    display: flex;
    flex-direction: column;
    gap: 16px;

    padding: 20px;

    background: rgba(255,255,255,0.92);

    border: 1px solid rgba(212,146,253,0.18);

    border-radius: 24px;

    text-decoration: none;

    transition: 0.22s ease;

    box-shadow: 0 10px 24px rgba(90,60,140,0.06);
}

.user-shop-card:hover {
    transform: translateY(-4px);

    border-color: rgba(212,146,253,0.45);

    box-shadow: 0 16px 34px rgba(90,60,140,0.12);
}

.user-shop-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-shop-card-top img {
    width: 50px;
    height: 50px;
    border: none;
    object-fit: cover;
border-radius: 0;
    box-shadow: none;
    background: transparent;
    
}

.user-shop-card-top h3 {
    margin: 0 0 4px;

    color: #2f3441;

    font-size: 20px;
}

.user-shop-card-top span {
    color: #8a91a5;
    font-size: 13px;
}

.user-shop-card p {
    margin: 0;

    color: #666d7f;

    line-height: 1.55;

    font-size: 14px;
}

.user-shop-card-stats {
    display: flex;
    justify-content: space-between;

    margin-top: auto;

    padding-top: 10px;

    border-top: 1px solid rgba(212,146,253,0.12);
}

.user-shop-card-stats div {
    text-align: center;
    flex: 1;
}

.user-shop-card-stats strong {
    display: block;

    font-size: 18px;

    color: #8654c7;
}

.user-shop-card-stats span {
    font-size: 12px;

    color: #9197a9;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .shop-tabs {
        gap: 10px;
    }

    .shop-tabs a {
        width: 100%;
        text-align: center;
    }

    .user-shops-grid {
        grid-template-columns: 1fr;
    }

}

.user-shop-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;

    width: 100%;
    margin: 0 auto;
}

.user-shop-card {
    width: 320px;
    max-width: 100%;
}

.user-shops-wrapper {
    display: flex;
    justify-content: center;
}

.shops-section-header {
    text-align: center;
    margin-bottom: 28px;
}

/* =========================
   PLAYER DECOR SHOP
========================= */

.decor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
    max-width: 950px;
    margin: 30px auto;
}

.decor-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(212,146,253,0.18);
    border-radius: 22px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(90,60,140,0.06);
}

.decor-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(212,146,253,0.18);
}

.decor-card h3 {
    margin: 12px 0 6px;
    color: #2f3441;
    font-size: 17px;
}

.decor-rarity {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #7b8194;
}

.decor-card button {
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.decor-card button:disabled {
    background: #d8dce8;
    cursor: default;
}

.decor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.decor-actions form {
    margin: 0;
}

.decor-actions button {
    width: 100%;
}

.decor-card {
    min-height: 250px;
    padding-bottom: 18px;
    overflow: visible;
}

.decor-grid {
    align-items: stretch;
    padding-bottom: 60px;
}

.decor-stock {
    margin: 0 0 6px;
    font-size: 14px;
    color: #1f2240;
}

.decor-price {
    margin: 8px 0 0;
}

.decor-card button {
    margin-top: 4px;
}