/* Vice Shop - Redesigned (matches newswire-redesign) */

/* New Avatar Card Styles */
.shop-avatar-card-new {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shop-avatar-card-new:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.shop-avatar-card-new:hover video {
    opacity: 1;
}

.avatar-animated-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.avatar-animated-badge .lucide-icon {
    width: 12px;
    height: 12px;
}

.avatar-preview-container {
    margin-bottom: 16px;
}

.avatar-circle-large {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(99, 102, 241, 0.3);
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.avatar-circle-large .avatar-circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-info {
    margin-bottom: 16px;
}

.avatar-title {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 1vw !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0;
    color: #1e293b !important;
    line-height: 1.1;
}

.avatar-series {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.avatar-purchase-btn {
    width: auto;
    min-width: clamp(82px, 5.8vw, 108px);
    min-height: clamp(30px, 1.85vw, 34px);
    padding: 0 clamp(12px, 0.75vw, 16px);
    margin-top: clamp(2px, 0.2vw, 4px);
    font-size: clamp(11px, 0.66vw, 12px);
    font-weight: 700;
    letter-spacing: 0.01em;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.26);
    border-radius: clamp(6px, 0.4vw, 8px);
    color: #4338ca;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: none;
}

.avatar-purchase-btn:hover {
    background: #e0e7ff;
    border-color: rgba(79, 70, 229, 0.42);
    color: #4338ca;
    transform: translateY(-1px);
}

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

/* Avatar Grid Styles */
.avatars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 1.5vw, 30px);
    padding: clamp(10px, 1vw, 20px);
}

/* Avatar Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-close .lucide-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.modal-content {
    padding: 24px;
}

.avatar-preview-large {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-circle-preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(99, 102, 241, 0.3);
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.avatar-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-details {
    text-align: center;
    margin-bottom: 32px;
}

.modal-avatar-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.modal-avatar-series {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.modal-price {
    font-size: 20px;
    font-weight: 600;
    color: #6366f1;
}

.price-amount {
    color: #6366f1;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.purchase-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.purchase-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: scale(1.02);
}

.cancel-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Simple Avatar Cards */
.shop-avatar-card-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.shop-avatar-card-simple:hover {
    transform: translateY(-2px);
}

.avatar-circle {
    width: clamp(80px, 6vw, 120px);
    height: clamp(80px, 6vw, 120px);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(99, 102, 241, 0.2);
    margin-bottom: clamp(12px, 1vw, 16px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
}

.avatar-circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-simple-title {
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 600;
    margin: 0 0 clamp(8px, 0.6vw, 12px) 0;
    color: #1e293b;
    line-height: 1.2;
}

.shop-avatar-card-simple .shop-item-purchase-btn {
    font-size: clamp(11px, 0.8vw, 12px);
    padding: clamp(6px, 0.5vw, 8px) clamp(12px, 1vw, 16px);
    border-radius: clamp(6px, 0.5vw, 8px);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.3vw, 6px);
}

.shop-avatar-card-simple .shop-item-purchase-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: scale(1.02);
}

.shop-avatar-card-simple .btn-price {
    font-weight: 600;
}

.shop-avatar-card-simple .lucide-icon {
    width: clamp(12px, 0.9vw, 14px);
    height: clamp(12px, 0.9vw, 14px);
}

.shop-avatar-card {
    position: relative;
    border-radius: clamp(14px, 0.85vw, 18px);
    border: 1px solid rgba(148, 163, 184, 0.32);
    background:
        radial-gradient(140% 120% at 50% -20%, rgba(99, 102, 241, 0.1), transparent 56%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(10px);
    padding: clamp(20px, 1.5vw, 30px);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-avatar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.75;
}

.shop-avatar-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1);
}

.avatar-badge-animated {
    position: absolute;
    top: clamp(8px, 0.5vw, 12px);
    right: clamp(8px, 0.5vw, 12px);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: clamp(4px, 0.3vw, 6px) clamp(8px, 0.6vw, 12px);
    border-radius: clamp(8px, 0.6vw, 10px);
    font-size: clamp(8px, 0.6vw, 10px);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: clamp(3px, 0.2vw, 4px);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
    }
}

.avatar-badge-animated .lucide-icon {
    width: clamp(10px, 0.7vw, 12px);
    height: clamp(10px, 0.7vw, 12px);
    animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.avatar-preview {
    margin-bottom: clamp(15px, 1vw, 20px);
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-image {
    width: clamp(100px, 10vw, 150px);
    height: clamp(100px, 10vw, 150px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shop-avatar-card:hover .avatar-image {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}

.avatar-purchase-btn {
    width: auto;
    min-width: clamp(82px, 5.8vw, 108px);
    min-height: clamp(30px, 1.85vw, 34px);
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: clamp(6px, 0.4vw, 8px);
    color: #475569;
    font-size: clamp(11px, 0.75vw, 13px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.3vw, 6px);
    padding: 0 clamp(12px, 0.8vw, 16px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: none;
    margin: 0 auto;
}

.avatar-purchase-btn:hover {
    background: #e0e7ff;
    border-color: rgba(79, 70, 229, 0.42);
    color: #4338ca;
    transform: translateY(-1px);
}

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

.avatar-purchase-btn .lucide-icon {
    width: clamp(12px, 0.8vw, 14px);
    height: clamp(12px, 0.8vw, 14px);
}

.btn-price {
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark theme for avatar cards */
html:not([data-vc-rail="light"]) .vice-shop-container .shop-avatar-card,
[data-theme="dark"] .vice-shop-container .shop-avatar-card {
    border-color: rgba(148, 163, 184, 0.28);
    background:
        radial-gradient(140% 120% at 50% -20%, rgba(99, 102, 241, 0.2), transparent 56%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

html:not([data-vc-rail="light"]) .vice-shop-container .shop-avatar-card:hover,
[data-theme="dark"] .vice-shop-container .shop-avatar-card:hover {
    border-color: rgba(129, 140, 248, 0.52);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

html:not([data-vc-rail="light"]) .vice-shop-container .avatar-title,
[data-theme="dark"] .vice-shop-container .avatar-title {
   
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 1vw !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0;
    color: #1e293b !important;
    line-height: 1.1;

}

html:not([data-vc-rail="light"]) .vice-shop-container .avatar-purchase-btn,
[data-theme="dark"] .vice-shop-container .avatar-purchase-btn {
    background: rgba(79, 70, 229, 0.18);
    border-color: rgba(129, 140, 248, 0.36);
    color: #c7d2fe;
}

html:not([data-vc-rail="light"]) .vice-shop-container .avatar-purchase-btn:hover,
[data-theme="dark"] .vice-shop-container .avatar-purchase-btn:hover {
    background: rgba(79, 70, 229, 0.3);
    border-color: rgba(129, 140, 248, 0.56);
    color: #e0e7ff;
}

html:not([data-vc-rail="light"]) .vice-shop-container .shop-avatar-card-new,
[data-theme="dark"] .vice-shop-container .shop-avatar-card-new {
    background: linear-gradient(135deg, rgba(31, 36, 49, 0.9), rgba(23, 27, 39, 0.7));
    border-color: rgba(148, 163, 184, 0.28);
}

html:not([data-vc-rail="light"]) .vice-shop-container .shop-avatar-card-new:hover,
[data-theme="dark"] .vice-shop-container .shop-avatar-card-new:hover {
    border-color: rgba(129, 140, 248, 0.52);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

html:not([data-vc-rail="light"]) .vice-shop-container .avatar-title,
[data-theme="dark"] .vice-shop-container .avatar-title {
    color: #ffffff !important;
}

html:not([data-vc-rail="light"]) .vice-shop-container .avatar-series,
[data-theme="dark"] .vice-shop-container .avatar-series {
    color: #94a3b8;
}

/* All Purchased State */
.shop-all-purchased {
    text-align: center;
    padding: 4vw 2vw;
    color: var(--card-text, #1a1a1a);
}

.shop-all-purchased-icon {
    width: 4vw;
    height: 4vw;
    margin: 0 auto 1.5vw;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.shop-all-purchased-icon .lucide-icon {
    width: 2vw;
    height: 2vw;
}

.shop-all-purchased h3 {
    font-size: 1.5vw;
    font-weight: 700;
    margin: 0 0 0.8vw 0;
    color: var(--card-text, #1a1a1a);
}

.shop-all-purchased p {
    font-size: 1vw;
    color: var(--text-secondary, rgba(0, 0, 0, 0.6));
    margin: 0;
}

/* Login required notice */
.login-required-notice {
    margin-top: 1vw;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    width: 100%;
    padding: 0.8vw;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    border-radius: 0.6vw;
    font-size: 0.8vw;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-0.1vw);
}

.login-btn .lucide-icon {
    width: 1vw;
    height: 1vw;
}

/* Avatar Preview Modal - matches site modal design */
#avatar-preview-modal.modal-backdrop {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0.138vw);
    z-index: 5000000; 
    align-items: center; 
    justify-content: center;
    animation: modalBackdropFade 0.2s ease-out;
}

#avatar-preview-modal.modal-backdrop.active {
    display: flex;
}

@keyframes modalBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

#avatar-preview-modal .modal {
    background: #ffffff; 
    border-radius: 0.829vw; 
    padding: 0; 
    width: 90%; 
    max-width: 34.53vw;
    box-shadow: 0 1.727vw 3.453vw -0.829vw rgba(0, 0, 0, 0.25);
    max-height: 80vh; 
    display: flex; 
    flex-direction: column;
    animation: modalSlideIn 0.2s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(0.691vw) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#avatar-preview-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(16px, 1.2vw, 24px) clamp(20px, 1.5vw, 30px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fafc;
}

#avatar-preview-modal .modal-header h3 {
    margin: 0;
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#avatar-preview-modal .modal-close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 600;
}

#avatar-preview-modal .modal-close:hover {
    background: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.5);
    color: #475569;
}

#avatar-preview-modal .modal-body {
    padding: clamp(20px, 1.5vw, 30px);
    flex: 1;
    overflow-y: auto;
}

.avatar-modal-preview {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2vw, 30px);
}

.avatar-modal-image-container {
    position: relative;
    flex-shrink: 0;
}

.avatar-modal-image {
    width: clamp(120px, 12vw, 180px);
    height: clamp(120px, 12vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.avatar-modal-video {
    width: clamp(120px, 12vw, 180px);
    height: clamp(120px, 12vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(148, 163, 184, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.avatar-play-btn {
    position: absolute;
    bottom: clamp(8px, 1vw, 12px);
    right: clamp(8px, 1vw, 12px);
    width: clamp(36px, 3vw, 48px);
    height: clamp(36px, 3vw, 48px);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.avatar-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.avatar-play-btn .lucide-icon {
    width: clamp(16px, 1.5vw, 20px);
    height: clamp(16px, 1.5vw, 20px);
}

.avatar-modal-info {
    flex: 1;
}

.avatar-modal-info h4 {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 clamp(12px, 1vw, 16px) 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.avatar-modal-price {
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 600;
    color: #6366f1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#avatar-preview-modal .modal-actions {
    display: flex;
    gap: clamp(12px, 1vw, 16px);
    padding: clamp(16px, 1.2vw, 24px) clamp(20px, 1.5vw, 30px);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fafc;
}

#avatar-preview-modal .modal-btn {
    padding: clamp(10px, 0.8vw, 14px) clamp(20px, 1.5vw, 30px);
    border-radius: clamp(6px, 0.4vw, 8px);
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.4vw, 8px);
}

#avatar-preview-modal .modal-btn:not(.primary) {
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
}

#avatar-preview-modal .modal-btn:not(.primary):hover {
    background: #f1f5f9;
    color: #475569;
}

#avatar-preview-modal .modal-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border-color: transparent;
}

#avatar-preview-modal .modal-btn.primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
}

#avatar-preview-modal .modal-btn .lucide-icon {
    width: clamp(14px, 1vw, 16px);
    height: clamp(14px, 1vw, 16px);
}

/* Dark theme for modal */
html:not([data-vc-rail="light"]) #avatar-preview-modal .modal,
[data-theme="dark"] #avatar-preview-modal .modal {
    background: #1e293b;
}

html:not([data-vc-rail="light"]) #avatar-preview-modal .modal-header,
[data-theme="dark"] #avatar-preview-modal .modal-header,
html:not([data-vc-rail="light"]) #avatar-preview-modal .modal-actions,
[data-theme="dark"] #avatar-preview-modal .modal-actions {
    background: #334155;
    border-color: rgba(148, 163, 184, 0.2);
}

html:not([data-vc-rail="light"]) #avatar-preview-modal .modal-header h3,
[data-theme="dark"] #avatar-preview-modal .modal-header h3,
html:not([data-vc-rail="light"]) #avatar-preview-modal .avatar-modal-info h4,
[data-theme="dark"] #avatar-preview-modal .avatar-modal-info h4 {
    color: #f1f5f9;
}

html:not([data-vc-rail="light"]) #avatar-preview-modal .modal-close,
[data-theme="dark"] #avatar-preview-modal .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

html:not([data-vc-rail="light"]) #avatar-preview-modal .modal-close:hover,
[data-theme="dark"] #avatar-preview-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

html:not([data-vc-rail="light"]) #avatar-preview-modal .modal-btn:not(.primary),
[data-theme="dark"] #avatar-preview-modal .modal-btn:not(.primary) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

html:not([data-vc-rail="light"]) #avatar-preview-modal .modal-btn:not(.primary):hover,
[data-theme="dark"] #avatar-preview-modal .modal-btn:not(.primary):hover {
    background: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

/* Purchase Animation */
@keyframes avatarPurchase {
0% {
transform: scale(1) rotate(0deg);
opacity: 1;
filter: brightness(1);
}
25% {
transform: scale(1.1) rotate(90deg);
opacity: 1;
filter: brightness(1.2);
}
50% {
transform: scale(1.2) rotate(180deg);
opacity: 0.8;
filter: brightness(1.5);
}
75% {
transform: scale(0.8) rotate(270deg);
opacity: 0.4;
filter: brightness(1.8);
}
100% {
transform: scale(0) rotate(360deg);
opacity: 0;
filter: brightness(2);
}
}

.shop-avatar-card.purchasing {
animation: avatarPurchase 0.8s ease-out forwards;
pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
.avatars-grid {
grid-template-columns: repeat(3, 1fr);
gap: 2vw;
padding: 2vw;
}

.avatar-image {
width: 12vw;
height: 12vw;
}

.avatar-purchase-btn {
font-size: 1.2vw;
padding: 1.2vw;
}

.avatar-modal-preview {
flex-direction: column;
gap: 2vw;
}

.avatar-modal-image,
.avatar-modal-video {
    width: 20vw;
    height: 20vw;
    }
}

@media (max-width: 768px) {
    .avatars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
        padding: 4vw;
    }
    
    .avatar-image {
        width: 20vw;
        height: 20vw;
    }
    
    .avatar-purchase-btn {
        font-size: 3vw;
        padding: 2.5vw 4vw;
        border-radius: 2vw;
    }
    
    /* Mobile styles for new avatar cards */
    .vice-shop-container .shop-avatar-card-new {
        padding: 4vw;
        border-radius: 3vw;
    }
    
    .vice-shop-container .avatar-title {
        font-size: 4vw !important;
        line-height: 1.2;
        margin-bottom: 1vw;
    }
    
    .vice-shop-container .avatar-series {
        font-size: 3vw;
        margin-bottom: 3vw;
    }
    
    .vice-shop-container .avatar-circle-large {
        width: 25vw !important;
        height: 25vw !important;
    }
    
    .vice-shop-container .avatar-animated-badge {
        width: 5vw !important;
        height: 5vw !important;
        top: 1vw !important;
        right: 1vw !important;
    }
    
    .vice-shop-container .avatar-animated-badge .lucide-icon {
        width: 3vw !important;
        height: 3vw !important;
    }
    
    .avatar-modal-image,
    .avatar-modal-video {
        width: 30vw;
        height: 30vw;
    }
}

/* Force share buttons exactly like newswire on Vice Shop */
.vice-shop-container .nw-share-row .share-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--hc-border);
    background: rgba(0, 0, 0, 0.22);
    color: var(--hc-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, color 0.15s ease;
}

html[data-vc-rail="light"] .vice-shop-container .nw-share-row .share-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
}

.vice-shop-container .nw-share-row .share-btn:hover {
    border-color: var(--hc-border-strong);
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

html[data-vc-rail="light"] .vice-shop-container .nw-share-row .share-btn:hover {
    background: #eef2ff;
    color: #312e81;
}

/* Vice Shop typography for shop body only (hub header/rail keep shared styles) */
.vice-shop-container .vice-shop-news-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg-primary: var(--card-bg, #fff);
    --text-primary: var(--card-text, #1e293b);
    --text-secondary: var(--gray, #64748b);
    --border-color: var(--card-border, #e2e8f0);
}

.vice-shop-container .vice-shop-news-page-body h1,
.vice-shop-container .vice-shop-news-page-body h2,
.vice-shop-container .vice-shop-news-page-body h3,
.vice-shop-container .vice-shop-news-page-body h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Keep hero description text as before (clean regular style) */
.vice-shop-container .stats-subtitle,
.vice-shop-container .vice-shop-stats-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Apply one simple font to shop UI + right rail text */
.vice-shop-container .stats-grid,
.vice-shop-container .stats-grid .stat-item,
.vice-shop-container .stats-grid .stat-number,
.vice-shop-container .stats-grid .stat-label,
.vice-shop-container .vice-shop-sidebar,
.vice-shop-container .vice-shop-sidebar .balance-label,
.vice-shop-container .vice-shop-sidebar .balance-amount,
.vice-shop-container .category-header,
.vice-shop-container .category-item,
.vice-shop-container .shop-section-title,
.vice-shop-container .shop-item-name,
.vice-shop-container .shop-item-purchase-btn,
.vice-shop-container .shop-item-price-display,
.vice-shop-container .shop-item-info,
.vice-shop-container .shop-item-coming-soon,
.vice-shop-container .xp-best-badge,
.vice-shop-container .news-page-rail .news-latest-heading,
.vice-shop-container .news-page-rail .news-latest-heading__text,
.vice-shop-container .news-page-rail .home-news-card__title,
.vice-shop-container .news-page-rail .home-news-card__meta,
.vice-shop-container .news-page-rail .news-latest-empty {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Hard lock only inside shop content, not nw hub header/rail */
.vice-shop-container .vice-shop-news-page-body h1,
.vice-shop-container .vice-shop-news-page-body h2,
.vice-shop-container .vice-shop-news-page-body h3,
.vice-shop-container .vice-shop-news-page-body h4,
.vice-shop-container .vice-shop-news-page-body h5,
.vice-shop-container .vice-shop-news-page-body h6,
.vice-shop-container .vice-shop-news-page-body p,
.vice-shop-container .vice-shop-news-page-body span,
.vice-shop-container .vice-shop-news-page-body a,
.vice-shop-container .vice-shop-news-page-body button,
.vice-shop-container .vice-shop-news-page-body li,
.vice-shop-container .vice-shop-news-page-body strong,
.vice-shop-container .vice-shop-news-page-body small,
.vice-shop-container .vice-shop-news-page-body label,
.vice-shop-container .vice-shop-news-page-body th,
.vice-shop-container .vice-shop-news-page-body td,
.vice-shop-container .vice-shop-news-page-body .category-name,
.vice-shop-container .vice-shop-news-page-body .shop-section-title,
.vice-shop-container .vice-shop-news-page-body .shop-item-name,
.vice-shop-container .vice-shop-news-page-body .shop-item-purchase-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Legacy container layout (kept only if page renders without nw hub shell) */
.vice-shop-container:not(.nw-hub-shell) {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 0 0 5rem;
    min-height: 100vh;
    background-color: #f5f6f8;
}

/* Оболочка как Community News / newswire: шапка + Latest News справа */
.vice-shop-container .news-container {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    background: transparent;
}

/* Как у остальных news-page-shell: без лишнего зазора под шапкой */
.news-page-shell.news-page-shell--vice-shop {
    row-gap: clamp(0.5rem, 0.9vw, 0.85rem);
}

.vice-shop-container .vice-shop-news-page-body {
    margin-top: 0;
    padding-top: 0;
}

/* Тот же вид что .stats-subtitle (stats-header.css), но без line-clamp для длинного текста */
.vice-shop-container .vice-shop-stats-subtitle {
    display: block;
    overflow: visible;
    line-clamp: unset;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    max-width: 36rem;
}

/* Avatar Filters Styles - matching newswire design */
.vice-shop-container .filters-section.nw-filters-inline {
    margin: 0;
    border: none;
    border-top: 1px solid var(--hc-border);
    background: transparent;
    padding: 0;
}

.vice-shop-container .avatar-search-input input {
    width: 100%;
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--vc-light, #f5f5f5);
    color: var(--vc-dark, #0f0f14);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.vice-shop-container .avatar-search-input input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.03);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.vice-shop-container .avatar-search-input input::placeholder {
    color: var(--vc-gray, #94a3b8);
}

/* Custom select styles matching newswire exactly */
.vice-shop-container .custom-select {
    position: relative;
    width: 100%;
    z-index: 1;
}

.vice-shop-container .custom-select:has(.select-items.active) {
    z-index: 40;
}

.vice-shop-container .select-selected {
    padding: 4px 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--vc-light, #f5f5f5);
    color: var(--vc-dark, #0f0f14);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
}

.vice-shop-container .select-selected:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.03);
}

.vice-shop-container .select-selected::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--vc-gray, #94a3b8);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.vice-shop-container .select-selected.active {
    border-color: var(--vc-primary, #8b5cf6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.vice-shop-container .select-selected.active::after {
    transform: rotate(180deg);
}

.vice-shop-container .select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    margin-top: 4px;
    max-height: 70vh;
    overflow-y: auto;
    animation: fadeInUp 0.2s ease;
}

.vice-shop-container .select-items.active {
    display: block;
}

.vice-shop-container .select-item {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--vc-dark, #0f0f14);
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    min-height: 30px;
}

.vice-shop-container .select-item:last-child {
    border-bottom: none;
}

.vice-shop-container .select-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--vc-primary, #8b5cf6);
}

.vice-shop-container .select-item.selected {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    color: var(--vc-primary, #8b5cf6);
    font-weight: 600;
}

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

/* Mobile filters for avatars */
@media (max-width: 1024px) {
    .vice-shop-container .filters-section.nw-filters-inline {
        background: transparent !important;
        border-radius: 0 !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: none !important;
        overflow: visible;
        margin: 0 3vw 2vw !important;
        padding: 0;
    }

    .vice-shop-container .newswire-filters-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        font: inherit;
        color: var(--vc-dark, #0f0f14);
    }

    .vice-shop-container .newswire-filters-trigger-inner {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .vice-shop-container .newswire-filters-trigger svg {
        width: 18px;
        height: 18px;
        color: var(--vc-primary, #8b5cf6);
        flex-shrink: 0;
    }

    .vice-shop-container .newswire-filters-trigger span {
        font-size: 14px;
        font-weight: 600;
    }

    .vice-shop-container .newswire-filters-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 9999px;
        background: var(--vc-primary, #8b5cf6);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
    }

    .vice-shop-container .newswire-filters-trigger-chevron {
        width: 16px;
        height: 16px;
        color: var(--vc-gray, #94a3b8);
        transition: transform 0.2s;
    }

    .vice-shop-container .filters-section.filters-open .newswire-filters-trigger-chevron {
        transform: rotate(180deg);
    }

    .vice-shop-container .filters-section .filters-form-content {
        display: none;
    }

    .vice-shop-container .filters-section.filters-open .filters-form-content {
        display: block;
        padding: 0 4vw 4vw;
        overflow: visible;
    }

    .vice-shop-container .filters-section {
        overflow: visible;
    }

    .vice-shop-container .filters-section.filters-open .filters-grid {
        display: flex;
        flex-direction: column;
        gap: 3vw;
        padding: 0 0 4vw;
    }

    /* Design: labels hidden on mobile/tablet */
    .vice-shop-container .filters-section .filter-label {
        display: none !important;
    }

    .vice-shop-container .filters-section .filter-group {
        gap: 0;
        flex: 1;
        min-width: 0;
    }

    .vice-shop-container .filters-section .custom-select .select-selected {
        min-height: 10vw !important;
        padding: 0 2.5vw !important;
        font-size: 3vw !important;
        border-radius: 1.5vw !important;
    }

    .vice-shop-container .filters-section .avatar-search-input input {
        min-height: 10vw !important;
        padding: 0 2.5vw !important;
        font-size: 3vw !important;
        border-radius: 1.5vw !important;
    }

    .vice-shop-container .filters-section .results-section {
        padding: 3vw 0 0;
        margin: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 2vw;
    }

    .results-count {
        font-size: 3.5vw !important;
        color: var(--vc-gray-dark, #64748b);
    }

    .results-count strong {
        color: var(--vc-primary, #8b5cf6);
    }

    .newswire-reset-filters {
        font-size: clamp(11px, 0.7vw, 13px);
        font-weight: 600;
        color: var(--vc-primary, #8b5cf6);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .newswire-reset-filters svg {
        flex-shrink: 0;
    }

    .newswire-reset-filters:hover {
        text-decoration: underline;
    }
}

/* Tablet: 3 аватара в ряд, улучшенные фильтры */
@media (min-width: 769px) and (max-width: 1024px) {
    .avatars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3vw;
        padding: 3vw;
    }
    
    .vice-shop-container .shop-avatar-card-new {
        padding: 2.5vw;
        border-radius: 2vw;
    }
    
    .vice-shop-container .avatar-title {
        font-size: 2.5vw !important;
        margin-bottom: 1vw;
    }
    
    .vice-shop-container .avatar-series {
        font-size: 2vw;
        margin-bottom: 2vw;
    }
    
    .vice-shop-container .avatar-circle-large {
        width: 18vw !important;
        height: 18vw !important;
    }
    
    .vice-shop-container .avatar-purchase-btn {
        font-size: 2.2vw;
        padding: 1.8vw 2.5vw;
        border-radius: 1.5vw;
    }
    
    .vice-shop-container .filters-section.filters-open .filters-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .vice-shop-container .filters-section .filter-group {
        flex: 1 1 0;
        min-width: 120px;
        max-width: 200px;
    }
}

/* Desktop filters */
@media (min-width: 1025px) {
    .vice-shop-container .newswire-filters-trigger {
        display: none;
    }

    .vice-shop-container .filters-section .filters-form-content {
        display: block;
        padding: clamp(8px, 0.6vw, 12px) clamp(16px, 1.5vw, 24px);
    }

    .vice-shop-container .filters-section .filters-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(10px, 0.8vw, 14px);
    }

    .vice-shop-container .filters-section .filter-group {
        gap: clamp(4px, 0.3vw, 6px);
    }

    .vice-shop-container .filters-section .filter-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: clamp(10px, 0.7vw, 12px);
        font-weight: 600;
        color: var(--vc-gray-dark, #64748b);
        margin-bottom: 4px;
    }

    .vice-shop-container .filters-section .filter-label .lucide-icon {
        width: 12px;
        height: 12px;
    }

    .vice-shop-container .filters-section .custom-select .select-selected {
        min-height: clamp(28px, 1.8vw, 32px);
        padding: 0 clamp(8px, 0.6vw, 12px);
        font-size: clamp(11px, 0.8vw, 13px);
        font-weight: 500;
        border-radius: clamp(6px, 0.4vw, 8px);
        border: 1px solid var(--hc-border);
        background: var(--hc-bg-elev);
        color: var(--hc-text);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .vice-shop-container .filters-section .avatar-search-input input {
        min-height: clamp(28px, 1.8vw, 32px);
        padding: 0 clamp(8px, 0.6vw, 12px);
        font-size: clamp(11px, 0.8vw, 13px);
        font-weight: 500;
        border-radius: clamp(6px, 0.4vw, 8px);
        border: 1px solid var(--hc-border);
        background: var(--hc-bg-elev);
        color: var(--hc-text);
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
    }

    .vice-shop-container .filters-section .avatar-search-input input:focus {
        outline: none;
        border-color: var(--vc-primary, #8b5cf6);
        background: rgba(99, 102, 241, 0.03);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    }

    .vice-shop-container .filters-section .avatar-search-input input::placeholder {
        color: var(--vc-gray, #94a3b8);
    }

    .vice-shop-container .filters-section .custom-select .select-selected.active {
        border-color: var(--vc-primary, #8b5cf6);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    }

    .vice-shop-container .filters-section .select-items {
        margin-top: 4px;
        border-radius: clamp(6px, 0.4vw, 8px);
        border: 1px solid var(--hc-border);
        background: var(--hc-bg-elev);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        max-height: 70vh;
        animation: fadeInUp 0.2s ease;
    }

    .vice-shop-container .filters-section .select-item {
        min-height: clamp(28px, 1.8vw, 32px);
        padding: 0 clamp(8px, 0.6vw, 12px);
        font-size: clamp(11px, 0.8vw, 13px);
        font-weight: 500;
        display: flex;
        align-items: center;
        transition: background 0.15s, color 0.15s;
        color: var(--hc-text);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .vice-shop-container .filters-section .select-item:last-child {
        border-bottom: none;
    }

    .vice-shop-container .filters-section .select-item:hover {
        background: rgba(99, 102, 241, 0.12);
        color: var(--vc-primary, #8b5cf6);
    }

    .vice-shop-container .filters-section .select-item.selected {
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
        color: var(--vc-primary, #8b5cf6);
        font-weight: 600;
    }

    .vice-shop-container .filters-section .results-section {
        padding: clamp(8px, 0.6vw, 12px) 0 0;
        margin: clamp(8px, 0.6vw, 12px) 0 0;
        border-top: 1px solid var(--hc-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .results-count {
        font-size: clamp(11px, 0.7vw, 13px);
        color: var(--vc-gray-dark, #64748b);
    }

    .results-count strong {
        color: var(--vc-primary, #8b5cf6);
    }

    .newswire-reset-filters {
        font-size: clamp(10px, 0.6vw, 12px);
        font-weight: 600;
        color: var(--vc-primary, #8b5cf6);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .newswire-reset-filters:hover {
        text-decoration: underline;
    }
}

/* Header / hero band — matches stats-header portal vibe */
.vice-shop-header-bar {
    margin: 0 0 1.75rem;
    padding: clamp(1.1rem, 2vw, 1.85rem) clamp(1rem, 3.5vw, 3rem);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 80% at 100% -20%, rgba(124, 58, 237, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 60% at 0% 110%, rgba(236, 72, 153, 0.1), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: none;
}

.vice-shop-header-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%236366f1' fill-opacity='0.04' d='M0 0h60v60H0zm60 60h60v60H60z'/%3E%3C/svg%3E");
    opacity: 0.85;
    pointer-events: none;
}

.vice-portal-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
}

.vice-portal-hero__main {
    min-width: 0;
}

.vice-portal-hero__kicker {
    margin: 0 0 0.45rem;
    font-size: clamp(10px, 0.62vw, 12px);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.vice-portal-hero__kicker::before {
    content: "";
    width: 3px;
    height: 1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #d946ef 0%, #7c3aed 100%);
}

.vice-portal-hero__title {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(24px, 2.2vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #0f172a;
    margin: 0;
}

.vice-portal-hero__accent {
    background: linear-gradient(to right, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vice-portal-hero__lead {
    margin: 0.55rem 0 0;
    max-width: 36rem;
    font-size: clamp(13px, 0.88vw, 15px);
    line-height: 1.55;
    color: #475569;
}

.vice-portal-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 9.5rem;
}

.vice-portal-hero__pill {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.vice-portal-hero__pill-n {
    font-size: clamp(16px, 1.1vw, 20px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.vice-portal-hero__pill--hot {
    border-color: rgba(236, 72, 153, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 231, 243, 0.5));
}

.vice-portal-hero__pill--muted {
    opacity: 0.85;
}

/* legacy page header classes — keep for any leftover references */
.vice-shop-page-header {
    display: none;
}

/* Mobile-only strip (shown in vice-shop-mobile.css) */
.vice-shop-mobile-top {
    display: none;
}

/* Main Layout - Ad column 16vw like newswire */
.vice-shop-main-layout {
    display: grid;
    grid-template-columns: 15vw minmax(0, 1fr);
    gap: 1.2vw;
    padding: 0;
}

/* Left Sidebar */
.vice-shop-sidebar {
    position: sticky;
    top: 8vw;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

/* Balance Card */
.vice-shop-balance-card {
    position: relative;
    border-radius: 0.6vw;
    border: 0.06vw solid var(--border-color, var(--card-border, #e2e8f0));
    background: var(--bg-primary);
    overflow: hidden;
    padding: 0.9vw;
}

.vice-shop-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.15vw;
    background: linear-gradient(90deg, #6366F1, #EC4899);
}

.vice-shop-balance-card .balance-info {
    display: flex;
    align-items: center;
    gap: 0.7vw;
}

.vice-shop-balance-card .balance-icon-wrapper {
    width: 2.4vw;
    height: 2.4vw;
    border-radius: 0.45vw;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vice-shop-balance-card .balance-icon-wrapper i {
    font-size: 1.1vw;
    color: #fff;
}

.vice-shop-balance-card .balance-icon-wrapper [data-lucide] {
    width: 1.2vw;
    height: 1.2vw;
    color: #fff;
}

.vice-shop-balance-card .balance-label {
    font-size: 0.6vw;
    color: var(--text-secondary, var(--gray, #64748b));
    font-weight: 500;
    margin: 0 0 0.05vw 0;
}

.vice-shop-balance-card .balance-amount {
    font-size: 1.15vw;
    font-weight: 800;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0;
    line-height: 1;
}

.vice-shop-balance-card .balance-amount .balance-unit {
    font-size: 0.7vw;
    font-weight: 600;
    color: var(--text-secondary, var(--gray, #64748b));
}

/* Categories Panel */
.vice-shop-categories {
    border-radius: 0.6vw;
    border: 0.06vw solid var(--border-color, var(--card-border, #e2e8f0));
    background: var(--bg-primary);
    padding: 0.8vw;
}

.category-header {
    font-size: 0.65vw;
    font-weight: 700;
    color: var(--text-secondary, var(--gray, #64748b));
    text-transform: uppercase;
    letter-spacing: 0.05vw;
    margin: 0 0 0.5vw 0.3vw;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.55vw 0.6vw;
    border-radius: 0.4vw;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.78vw;
    font-weight: 500;
    color: var(--text-primary, var(--card-text, #1e293b));
    border: none;
    background: transparent;
}

.category-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.category-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    font-weight: 600;
}

.category-item [data-lucide],
.category-item .category-icon {
    width: 0.85vw;
    height: 0.85vw;
    flex-shrink: 0;
}

.category-item .category-name {
    flex: 1;
    text-align: left;
}

.category-count {
    font-size: 0.6vw;
    font-weight: 700;
    padding: 0.08vw 0.35vw;
    border-radius: 0.2vw;
    background: rgba(0, 0, 0, 0.06);
}

.category-item.active .category-count {
    background: rgba(99, 102, 241, 0.2);
    color: #6366F1;
}

/* Main Content */
.vice-shop-content {
    border-radius: 0.6vw;
    border: 0.06vw solid var(--border-color, var(--card-border, #e2e8f0));
    background: var(--bg-primary);
    padding: 1.2vw;
    min-height: 60vh;
}

.shop-section {
    display: none;
}

.shop-section.active {
    display: block;
}

/* Section Header */
.shop-section-header {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    margin-bottom: 1vw;
}

.shop-section-header [data-lucide] {
    width: 1vw;
    height: 1vw;
    color: #6366F1;
}

.shop-section-title {
    font-size: 1.1vw;
    font-weight: 700;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0;
}

/* Item Grids */
.shop-items-grid {
    display: grid;
    gap: clamp(10px, 0.85vw, 16px);
}

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

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

/* Shop Item Card — redesigned v2 (centered, calm, clean) */
.shop-item-card {
    position: relative;
    border-radius: clamp(14px, 0.85vw, 18px);
    border: 1px solid rgba(148, 163, 184, 0.32);
    background:
        radial-gradient(140% 120% at 50% -20%, rgba(99, 102, 241, 0.09), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: clamp(14px, 1vw, 20px);
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: clamp(6px, 0.5vw, 10px);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-item-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.65), rgba(139, 92, 246, 0.65));
    opacity: 0.75;
}

.shop-item-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1);
}

/* Icon */
.shop-item-icon-new {
    width: clamp(42px, 2.4vw, 52px);
    height: clamp(42px, 2.4vw, 52px);
    border-radius: clamp(12px, 0.7vw, 14px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 clamp(2px, 0.25vw, 4px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 4px 10px rgba(15, 23, 42, 0.08);
}

.shop-item-icon-new i,
.shop-item-icon-new [data-lucide] {
    width: clamp(16px, 1.1vw, 22px);
    height: clamp(16px, 1.1vw, 22px);
}

.shop-item-name {
    font-size: clamp(13px, 0.8vw, 15px);
    font-weight: 700;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0;
    line-height: 1.2;
}

.shop-item-price {
    font-size: clamp(12px, 0.7vw, 13px);
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

/* Purchase button — compact, non-aggressive */
.shop-item-purchase-btn {
    width: auto;
    min-width: clamp(82px, 5.8vw, 108px);
    min-height: clamp(30px, 1.85vw, 34px);
    padding: 0 clamp(12px, 0.75vw, 16px);
    margin-top: clamp(2px, 0.2vw, 4px);
    font-size: clamp(11px, 0.66vw, 12px);
    font-weight: 700;
    letter-spacing: 0.01em;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.26);
    border-radius: 999px;
    color: #4f46e5;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    font-family: inherit;
    box-shadow: none;
}

.shop-item-purchase-btn:hover {
    background: #e0e7ff;
    border-color: rgba(79, 70, 229, 0.42);
    color: #4338ca;
    transform: translateY(-1px);
}

.shop-item-purchase-btn:active {
    transform: translateY(0);
}

.shop-item-info {
    font-size: clamp(11px, 0.6vw, 12px);
    color: var(--text-secondary, var(--gray, #64748b));
    margin: 0;
    text-align: center;
}

/* Coming Soon card */
.coming-soon-card {
    opacity: 0.9;
    border-style: dashed;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.coming-soon-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border-color: rgba(148, 163, 184, 0.4);
}

.shop-item-coming-soon {
    font-size: clamp(11px, 0.66vw, 13px);
    font-weight: 600;
    color: var(--text-secondary, var(--gray, #64748b));
    margin: 0;
    font-style: italic;
}

.shop-item-price-display {
    font-size: clamp(12px, 0.74vw, 14px);
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
}

/* XP cards */
.xp-grid .shop-item-name {
    font-size: clamp(14px, 0.88vw, 16px);
    font-weight: 800;
}

/* XP "Best" badge */
.xp-best-badge {
    position: absolute;
    top: clamp(9px, 0.6vw, 11px);
    right: clamp(8px, 0.55vw, 10px);
    display: inline-flex;
    align-items: center;
    gap: clamp(3px, 0.2vw, 5px);
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(217, 119, 6, 0.22);
    color: #92400e;
    font-size: clamp(10px, 0.56vw, 11px);
    font-weight: 700;
    padding: 2px clamp(6px, 0.38vw, 8px);
    border-radius: 999px;
}

.xp-best-badge [data-lucide] {
    width: clamp(10px, 0.58vw, 12px);
    height: clamp(10px, 0.58vw, 12px);
}

html:not([data-vc-rail="light"]) .vice-shop-container .xp-best-badge,
[data-theme="dark"] .vice-shop-container .xp-best-badge {
    background: rgba(251, 191, 36, 0.28);
    border-color: rgba(251, 191, 36, 0.56);
    color: #fef3c7;
    box-shadow: 0 0 0 1px rgba(146, 64, 14, 0.18);
}

/* Coming Soon Empty State */
.shop-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5vw 0;
    text-align: center;
}

.shop-empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    margin-bottom: 0.8vw;
}

.shop-empty-state-icon [data-lucide],
.shop-empty-state-icon i {
    width: 1.5vw;
    height: 1.5vw;
    color: var(--text-secondary, var(--gray, #64748b));
}

.shop-empty-state h3 {
    font-size: 1vw;
    font-weight: 700;
    color: var(--text-primary, var(--card-text, #1e293b));
    margin: 0 0 0.25vw 0;
}

.shop-empty-state p {
    font-size: 0.75vw;
    color: var(--text-secondary, var(--gray, #64748b));
    margin: 0;
}

/* Right Sidebar - Ad (16vw like newswire) */
.vice-shop-ad-sidebar {
    display: none;
}

.vice-shop-ad-sidebar .ad-slot {
    width: 100%;
    max-width: 16vw;
}

/* Responsive */
@media (max-width: 82.873vw) {
    .vice-shop-main-layout {
        grid-template-columns: 1fr;
        gap: 2vw;
    }
    .vice-shop-sidebar,
    .vice-shop-ad-sidebar {
        display: none;
    }
    .limits-grid,
    .xp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Dark theme for Vice Shop content cards/panels ---- */
html:not([data-vc-rail="light"]) .vice-shop-container .vice-shop-news-page-body,
[data-theme="dark"] .vice-shop-container .vice-shop-news-page-body {
    --bg-primary: #1f2431;
    --text-primary: rgba(248, 250, 252, 0.96);
    --text-secondary: rgba(203, 213, 225, 0.78);
    --border-color: rgba(148, 163, 184, 0.26);
}

html:not([data-vc-rail="light"]) .vice-shop-container .vice-shop-balance-card,
html:not([data-vc-rail="light"]) .vice-shop-container .vice-shop-categories,
html:not([data-vc-rail="light"]) .vice-shop-container .vice-shop-content,
[data-theme="dark"] .vice-shop-container .vice-shop-balance-card,
[data-theme="dark"] .vice-shop-container .vice-shop-categories,
[data-theme="dark"] .vice-shop-container .vice-shop-content {
    background: #1f2431;
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

html:not([data-vc-rail="light"]) .vice-shop-container .category-item:hover,
[data-theme="dark"] .vice-shop-container .category-item:hover {
    background: rgba(148, 163, 184, 0.12);
}

html:not([data-vc-rail="light"]) .vice-shop-container .category-count,
[data-theme="dark"] .vice-shop-container .category-count {
    background: rgba(148, 163, 184, 0.24);
    color: rgba(226, 232, 240, 0.95);
}

html:not([data-vc-rail="light"]) .vice-shop-container .shop-item-card,
[data-theme="dark"] .vice-shop-container .shop-item-card {
    border-color: rgba(148, 163, 184, 0.28);
    background:
        radial-gradient(140% 120% at 50% -20%, rgba(99, 102, 241, 0.2), transparent 56%),
        linear-gradient(180deg, #1f2431 0%, #171b27 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

html:not([data-vc-rail="light"]) .vice-shop-container .shop-item-card:hover,
[data-theme="dark"] .vice-shop-container .shop-item-card:hover {
    border-color: rgba(129, 140, 248, 0.52);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

html:not([data-vc-rail="light"]) .vice-shop-container .coming-soon-card,
[data-theme="dark"] .vice-shop-container .coming-soon-card {
    background: linear-gradient(180deg, #1b2130 0%, #151b28 100%);
    border-color: rgba(148, 163, 184, 0.34);
}

html:not([data-vc-rail="light"]) .vice-shop-container .shop-item-purchase-btn,
[data-theme="dark"] .vice-shop-container .shop-item-purchase-btn {
    background: rgba(79, 70, 229, 0.18);
    border-color: rgba(129, 140, 248, 0.36);
    color: #c7d2fe;
}

html:not([data-vc-rail="light"]) .vice-shop-container .shop-item-purchase-btn:hover,
[data-theme="dark"] .vice-shop-container .shop-item-purchase-btn:hover {
    background: rgba(79, 70, 229, 0.3);
    border-color: rgba(129, 140, 248, 0.56);
    color: #e0e7ff;
}
