/* --- CORE DESIGN SYSTEM --- */
:root {
    --bg-color: #0b0c0e;
    --card-bg: rgba(20, 22, 28, 0.6);
    --card-border: rgba(255, 255, 255, 0.04);
    --card-border-hover: rgba(205, 82, 65, 0.3);
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #cd5241; /* Rust Red */
    --accent-glow: rgba(205, 82, 65, 0.5);
    --success-color: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --info-color: #3b82f6;
    --danger-color: #ef4444;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- SITE BACKGROUND & GLOWS --- */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: background-image 0.5s ease;
}

.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(11, 12, 14, 0.95) 0%, rgba(15, 17, 22, 0.85) 100%);
    z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(11, 12, 14, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* --- GLASSMORPHISM COMPONENT --- */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* --- APPLICATION LAYOUT --- */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 48px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- MAIN HEADER --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    animation: pulse 2s infinite alternate;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.logo-text p {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
}

/* Server Status Widget */
.server-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    max-width: 420px;
    height: 50px;
    box-sizing: border-box;
}

.widget-icon {
    font-size: 20px;
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

.widget-info {
    display: flex;
    flex-direction: column;
}

.server-status-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.server-ip-container {
    font-family: var(--font-condensed);
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-ip-container:hover .server-ip {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

.copy-hint {
    font-size: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-primary);
    font-weight: bold;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    flex-shrink: 0;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
    animation: blink-dot 1.5s infinite;
}

/* User Auth Section */
.auth-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.steam-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #2b303d 0%, #171a21 100%);
    border: 1px solid #3d4450;
    color: #fff;
    padding: 0 18px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    height: 50px;
    box-sizing: border-box;
}

.steam-login-btn:hover {
    background: linear-gradient(180deg, #373e4f 0%, #1d212a 100%);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 12px;
    border-radius: 8px;
    height: 50px;
    box-sizing: border-box;
}

.user-avatar-wrapper {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #222;
}

.admin-badge-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: var(--accent-color);
    border: 2px solid #14161c;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-glow);
}

.user-text-info {
    display: flex;
    flex-direction: column;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-label-tag {
    font-size: 8px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.user-balance-row {
    font-family: var(--font-condensed);
    font-size: 12px;
    color: var(--text-muted);
}

.user-balance-value {
    color: #fff;
    font-weight: bold;
}

.user-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-icon.topup-btn {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-icon.topup-btn:hover {
    background: var(--success-color);
    color: #fff;
    box-shadow: 0 0 8px var(--success-glow);
}

.btn-icon.admin-btn {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-icon.admin-btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* --- MAIN LAYOUT --- */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* --- SIDEBAR --- */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    padding: 18px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 14px;
    text-transform: uppercase;
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
}

/* Categories List */
.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.categories-list li {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
}

.categories-list li:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.categories-list li.active-category {
    color: #fff;
    background: rgba(205, 82, 65, 0.1);
    border-color: var(--card-border-hover);
    font-weight: 600;
}

/* Collapsible Categories Container */
.categories-list li.extra-categories-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    padding: 0;
    cursor: default;
}

.categories-list li.extra-categories-container:hover {
    background: transparent;
    border-color: transparent;
}

.extra-categories-container ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.categories-list.show-all .extra-categories-container {
    max-height: 600px;
    opacity: 1;
    margin-top: 6px;
}

.toggle-categories-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.toggle-categories-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
}

.toggle-categories-btn .arrow-icon {
    font-size: 8px;
    transition: transform 0.3s ease;
}

/* Live Purchase Feed */
.live-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 290px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    animation: slide-in 0.3s ease-out;
}

.feed-item img.feed-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.feed-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.feed-user {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-item-bought {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-item-bought span {
    color: var(--accent-color);
    font-weight: 600;
}

.feed-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px;
}

/* Social Buttons */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-details {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-size: 12px;
    font-weight: 600;
}

.social-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.discord-btn {
    background: rgba(88, 101, 242, 0.06);
}
.discord-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865f2;
}

.vk-btn {
    background: rgba(0, 119, 255, 0.06);
}
.vk-btn:hover {
    background: rgba(0, 119, 255, 0.15);
    border-color: #0077ff;
}

.tg-btn {
    background: rgba(36, 161, 222, 0.06);
}
.tg-btn:hover {
    background: rgba(36, 161, 222, 0.15);
    border-color: #24a1de;
}

/* --- STORE CONTAINER --- */
.store-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Banner Slider */
.promo-banner {
    position: relative;
    padding: 36px 40px;
    overflow: hidden;
}

.banner-glow {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
}

.banner-badge {
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: bold;
    background: var(--accent-color);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.promo-banner h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.promo-banner p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.text-glow {
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 8px var(--accent-glow);
}

.banner-footer {
    margin-top: 10px;
}

.wipe-timer-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wipe-timer-block span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.timer-counter {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

/* Products Section */
.products-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.products-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.search-bar input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 16px;
    color: #fff;
    font-size: 13px;
    width: 240px;
    font-family: var(--font-primary);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.product-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(205, 82, 65, 0.05);
    transform: translateY(-2px);
}

.discount-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 1;
}

.product-image-container {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.product-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    height: 46px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-family: var(--font-condensed);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.price-old {
    font-family: var(--font-condensed);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-line-through;
    text-decoration: line-through;
}

.qty-buy-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    width: 80px;
    justify-content: space-between;
}

.qty-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    width: 24px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.qty-input {
    width: 32px;
    border: none;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-family: var(--font-condensed);
    font-weight: bold;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-primary {
    flex: 1;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: #dd5b4a;
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-primary:disabled {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* --- MODAL DIALOGS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 8, 10, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.modal-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Forms styling inside modals */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.form-group select option {
    background-color: #14161c;
    color: #fff;
}

.input-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* Steam Accounts Selection Grid */
.steam-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.steam-account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.steam-account-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.steam-account-card.admin-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.steam-account-card img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.account-details {
    flex: 1;
}

.account-details h4 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.account-details p {
    font-size: 10px;
    color: var(--text-muted);
}

.badge {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.admin-badge {
    background: var(--accent-color);
}

.custom-auth-divider {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 0.1em;
    margin: 20px 0;
}

.custom-auth-divider span {
    background: #191b21;
    padding: 0 10px;
    font-size: 9px;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Payment Modal specific */
.payment-method-group {
    margin-top: 16px;
    margin-bottom: 16px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.payment-method-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.payment-method-card.active {
    border-color: var(--accent-color);
    background: rgba(205, 82, 65, 0.08);
    box-shadow: 0 0 10px var(--accent-glow);
}

.payment-icon {
    font-size: 20px;
}

.payment-info h4 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.payment-info p {
    font-size: 10px;
    color: var(--text-muted);
}

/* YooMoney Webhook Simulation Panel */
.webhook-simulator-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.simulation-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 6px;
}

.webhook-simulator-box p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.simulation-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-condensed);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.btn-neon {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.btn-neon:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- ADMIN PANEL MODAL --- */
.admin-modal-content {
    max-width: 760px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    overflow-x: auto;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.admin-tab-btn.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.tab-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tab-header-actions h3 {
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.btn-small {
    padding: 6px 12px;
    font-size: 9px;
}

/* Item form editor */
.item-form-editor {
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.form-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.form-close-btn:hover {
    color: #fff;
}

.item-form-editor h4 {
    font-size: 12px;
    font-family: var(--font-heading);
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* Admin Item List Table */
.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
}

.admin-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.admin-item-row img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
    object-fit: contain;
}

.admin-item-info {
    flex: 1;
    min-width: 0;
}

.admin-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-price {
    font-size: 10px;
    color: var(--text-muted);
}

.admin-item-price span.disc {
    color: var(--accent-color);
    font-weight: bold;
}

.admin-item-actions {
    display: flex;
    gap: 6px;
}

.admin-btn-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.admin-btn-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-btn-action.delete-btn {
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.admin-btn-action.delete-btn:hover {
    background: var(--danger-color);
    color: #fff;
}

/* Style tab components */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-wrapper input[type="color"] {
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

#colorHexText {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: bold;
}

/* Integration tab components */
.integration-info-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-row span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.info-row code {
    font-family: monospace;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    word-break: break-all;
}

.key-container {
    display: flex;
    gap: 8px;
}

.key-container input {
    flex: 1;
    font-family: monospace;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.key-container button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 10px;
    padding: 0 10px;
    border-radius: 4px;
    cursor: pointer;
}

.instructions-box {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
}

.instructions-box h4 {
    font-size: 12px;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.instructions-box ol {
    margin-left: 16px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    min-width: 250px;
    max-width: 350px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: toast-slide-in 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.success {
    background: rgba(16, 185, 129, 0.95);
    border-left: 4px solid #10b981;
}

.toast.error {
    background: rgba(239, 68, 68, 0.95);
    border-left: 4px solid #ef4444;
}

.toast.info {
    background: rgba(59, 130, 246, 0.95);
    border-left: 4px solid #3b82f6;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--accent-glow);
    }
    100% {
        transform: scale(1.05);
        text-shadow: 0 0 20px var(--accent-glow), 0 0 30px var(--accent-color);
    }
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slide-in {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .sidebar-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .server-widget {
        max-width: 100%;
    }
    .sidebar-container {
        grid-template-columns: 1fr;
    }
    .promo-banner {
        padding: 24px;
    }
    .promo-banner h2 {
        font-size: 20px;
    }
}

/* --- USER PROFILE MODAL --- */
.profile-modal-content {
    max-width: 650px;
    width: 90%;
}

.profile-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    background-color: #222;
}

.profile-meta h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}

.profile-meta p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.profile-meta strong {
    font-size: 16px;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.transactions-container {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.transactions-table th, 
.transactions-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.transactions-table th {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    background: #0f1116;
    z-index: 1;
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.transactions-table td {
    color: var(--text-color);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.completed {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.amount-positive {
    color: var(--success-color);
    font-weight: bold;
}

.amount-negative {
    color: var(--danger-color);
    font-weight: bold;
}

/* --- PROFILE MODAL TABS --- */
.profile-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.profile-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tab-btn.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* --- USER INVENTORY GRID --- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 270px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px;
}

.inventory-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    min-height: 140px;
}

.inventory-card:hover {
    border-color: rgba(205, 82, 65, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.inventory-card-image {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.inventory-card-title {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-status-badge {
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-top: auto;
}

.inventory-status-badge.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: pulse-badge-glow 1.5s infinite alternate;
}

.inventory-status-badge.completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.inventory-card-date {
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 4px;
}

@keyframes pulse-badge-glow {
    0% {
        box-shadow: 0 0 2px rgba(245, 158, 11, 0.1);
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
        opacity: 1;
    }
}

/* --- ADMIN USERS LIST --- */
.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

.admin-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.admin-user-row img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #222;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-steamid {
    font-size: 10px;
    color: var(--text-muted);
}

.admin-user-balance-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-user-balance-edit input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-condensed);
    font-weight: bold;
    width: 90px;
}

.admin-user-balance-edit input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- ADMIN STATS DASHBOARD --- */
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    margin-top: 10px;
}

.stats-card {
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.stats-card h4 {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.stats-card p {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.1);
}

.stats-card#statsTotalRevenue p {
    color: var(--success-color);
    text-shadow: 0 0 8px var(--success-glow);
}

.stats-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stats-sub-panel {
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.03);
}

.stats-sub-panel h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 14px;
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
}

.stats-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 12px;
}

.stats-list-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #222;
}

.stats-list-item .name {
    flex: 1;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-list-item .value {
    font-family: var(--font-condensed);
    font-weight: bold;
    color: var(--accent-color);
}

/* --- CUSTOM FLOATING TOOLTIP --- */
.custom-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    padding: 12px 16px;
    background: rgba(11, 12, 14, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.02);
    max-width: 250px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-tooltip.active {
    opacity: 1;
    transform: scale(1);
}

.tooltip-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- PRODUCT CARD VISUAL ENHANCEMENTS --- */
.product-card {
    /* Enable 3D tilt perspective */
    transform-style: preserve-3d;
    transition: border-color 0.25s, box-shadow 0.25s; /* remove transform from CSS transition so JS tilt handles it smoothly */
}

/* Hover shine glow moving with mouse */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 45%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* 3D Parallax lift for item image */
.product-card .product-image-container {
    transform: translateZ(15px);
    transition: transform 0.25s ease;
}

.product-card:hover .product-image-container {
    transform: translateZ(25px);
}

.product-card .product-image-container img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

/* Title and description 3D depth */
.product-card .product-title {
    transform: translateZ(10px);
}

.product-card .product-desc {
    transform: translateZ(5px);
}

.product-card .qty-buy-row {
    transform: translateZ(12px);
}

/* buying button scaling on hover */
.product-card .qty-buy-row .btn-primary {
    transition: transform 0.2s, background-color 0.25s, box-shadow 0.25s;
}

.product-card .qty-buy-row .btn-primary:hover:not(:disabled) {
    transform: scale(1.04);
}

/* --- PRODUCT CARD DESCRIPTION BUTTON --- */
.btn-card-desc {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    transform: translateZ(8px);
}

.btn-card-desc:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
    color: #fff;
    transform: translateZ(8px) scale(1.02);
}

/* --- PRODUCT DETAILS MODAL --- */
.product-details-modal-content {
    max-width: 780px !important;
    padding: 28px;
}

.detail-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
    .product-details-modal-content {
        max-width: 90% !important;
        padding: 20px;
    }
}

.detail-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-image-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.detail-image-box::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
}

.detail-image-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
}

.detail-price-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: center;
}

.detail-price-current {
    font-family: var(--font-condensed);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.detail-price-old {
    font-family: var(--font-condensed);
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-buy-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.detail-buy-box .quantity-selector {
    width: 90px;
}

.detail-buy-box .btn-primary {
    padding: 10px 16px;
    font-size: 12px;
}

/* Right Column (Info / Description) */
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-section-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.detail-description-content {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Feature grid items styling */
.detail-features-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-feature-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.01);
    border-left-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 0 10px rgba(255,255,255,0.02);
}

.feature-icon {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
    font-size: 14px;
    line-height: 1.3;
}

.feature-text {
    flex: 1;
    line-height: 1.4;
    color: #e2e8f0;
}

.feature-val {
    color: #fff;
    font-weight: 600;
}

/* Embedded image styling inside description flow */
.detail-description-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.2);
    margin: 12px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.detail-description-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- RULES BUTTON & MODAL --- */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rules-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    padding: 0 18px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 50px;
    box-sizing: border-box;
}

.rules-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-glow);
}

.rules-modal-content {
    max-width: 620px !important;
}

.rules-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rules-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.rules-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.rules-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.rules-section {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rules-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rules-section h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-section p {
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 6px;
}

.rules-section p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .rules-modal-content {
        max-width: 90% !important;
    }
    .rules-btn span {
        display: none;
    }
    .rules-btn {
        padding: 10px 12px;
    }
}

/* --- ADMIN MONITORING STYLES --- */
.monitoring-section-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 24px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.stats-sub-text {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.period-breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

/* Admin Inventory Scrollbar Customization */
#adminInventoryList::-webkit-scrollbar {
    width: 6px;
}
#adminInventoryList::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
#adminInventoryList::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Sidebar Legal Links */
.legal-links-card {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 10px;
}

.legal-links-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-link-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    font-family: var(--font-primary);
}

.legal-link-btn:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
}

.legal-copyright {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 8px;
}

.legal-copyright a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-copyright a:hover {
    color: var(--accent-color);
}

/* Refund Button in Inventory */
.btn-refund {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refund:hover {
    background: var(--danger-color);
    color: #fff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* --- TOPUP BONUSES STYLE --- */
.topup-bonuses-box {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bonus-box-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.bonus-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 10px;
    transition: all 0.2s ease;
}

.bonus-tier.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--success-color);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.05);
}

.bonus-tier.active .tier-val {
    color: var(--success-color);
    text-shadow: 0 0 5px var(--success-glow);
}

.tier-range {
    color: var(--text-muted);
    font-weight: 500;
}

.tier-val {
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    margin-top: 2px;
}

.topup-calculation-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.topup-calculation-desc span {
    font-weight: bold;
    color: #fff;
}

/* --- NEWS & COMMENTS MODAL --- */
.news-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.news-modal-content {
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.news-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.vk-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vk-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vk-post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.vk-post-meta {
    display: flex;
    flex-direction: column;
}

.vk-post-author {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.vk-post-date {
    font-size: 11px;
    color: var(--text-muted);
}

.vk-post-text {
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.vk-post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}

.vk-comments-section {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.vk-comments-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.vk-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.vk-comment img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.vk-comment-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    flex: 1;
}

.vk-comment-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--info-color);
    margin-bottom: 4px;
}

.vk-comment-text {
    font-size: 13px;
    color: #fff;
}

.vk-comment-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.vk-comment-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vk-comment-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 13px;
    resize: none;
    height: 40px;
}

.vk-comment-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.vk-comment-btn {
    background: var(--info-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vk-comment-btn:hover {
    background: #2563eb;
}

.vk-comment-login-msg {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 10px;
}

/* --- CONTENT COPY PROTECTION & DEVTOOLS WARNING --- */
body:not(.admin-mode) {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body:not(.admin-mode) input,
body:not(.admin-mode) textarea,
body:not(.admin-mode) [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body:not(.admin-mode) img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.devtools-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 12, 14, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.devtools-warning-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.devtools-warning-content {
    max-width: 480px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.devtools-warning-overlay.active .devtools-warning-content {
    transform: translateY(0);
}

.warning-icon {
    font-size: 48px;
    display: inline-block;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-glow)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px var(--accent-glow)); }
}

.devtools-warning-content h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.devtools-warning-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

