/* Tesla-like skin for the catalog and account detail pages only. */

body.tesla-page {
    --color-bg: #000000;
    --color-bg-secondary: #000000;
    --color-bg-card: #171a20;
    --color-text: #ffffff;
    --color-text-secondary: #a2a3a5;
    --color-muted: #a2a3a5;
    --color-text-muted: #a2a3a5;
    --color-accent: #ffffff;
    --color-accent-strong: #ffffff;
    --color-accent-gradient: #ffffff;
    --color-accent-glow: transparent;
    --color-border: #393c41;
    --color-border-strong: #ffffff;
    --color-hover: #171a20;
    --color-input-bg: #000000;
    --navbar-bg: #000000;
    --radius-sm: 4px;
    --radius-md: 4px;
    background: #000000 !important;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0;
}

body.tesla-page h1,
body.tesla-page h2,
body.tesla-page h3,
body.tesla-page .hero h1,
body.tesla-page .hero-kicker,
body.tesla-page .filters-block-title,
body.tesla-page .category-picker-title,
body.tesla-page .results-header h2,
body.tesla-page .nav-logo,
body.tesla-page .account-headline,
body.tesla-page .section-title,
body.tesla-page .price-value,
body.tesla-page .price-label,
body.tesla-page .riot-rank-name,
body.tesla-page .riot-fact-value,
body.tesla-page .riot-wallet-header h3 {
    font-weight: 500;
    color: #ffffff;
}

body.tesla-page .hero h1,
body.tesla-page .account-headline,
body.tesla-page .price-value,
body.tesla-page .section-title {
    letter-spacing: -0.03em;
}

body.tesla-page .hero-kicker,
body.tesla-page .hero p,
body.tesla-page .category-picker-hint,
body.tesla-page .category-picker-selected,
body.tesla-page .price-label,
body.tesla-page .price-subtext,
body.tesla-page .filter-group label,
body.tesla-page .filter-subgroup label,
body.tesla-page .search-input-group label {
    color: #a2a3a5;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* Navigation and actions */

body.tesla-page .navbar {
    background: #000000 !important;
    border-bottom: 1px solid #393c41;
}

body.tesla-page .nav-logo {
    font-size: 18px;
    letter-spacing: -0.02em;
}

body.tesla-page .nav-links a,
body.tesla-page .user-menu,
body.tesla-page .user-menu-label,
body.tesla-page .user-name {
    color: #ffffff;
    font-weight: 500;
    border-radius: 4px !important;
}

body.tesla-page .nav-links a:hover,
body.tesla-page .user-menu:hover {
    background: transparent;
    color: #a2a3a5;
}

body.tesla-page .nav-links a.admin-link,
body.tesla-page .nav-links a.admin-link:hover {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 500 !important;
}

body.tesla-page .btn-login,
body.tesla-page .btn-primary,
body.tesla-page .buy-action-btn {
    min-height: 40px;
    padding: 8px 18px;
    border: none !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 14px;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

body.tesla-page .btn-login:hover,
body.tesla-page .btn-primary:hover,
body.tesla-page .buy-action-btn:hover {
    background: #e8e8e8 !important;
    color: #000000 !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

body.tesla-page .buy-action-btn::before,
body.tesla-page .btn-primary::before {
    display: none !important;
}

body.tesla-page .btn-secondary,
body.tesla-page .card-link,
body.tesla-page .valorant-tracker-link-btn,
body.tesla-page .steam-preview-tab {
    min-height: 40px;
    border-radius: 4px !important;
    border: 1px solid #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.tesla-page .btn-secondary:hover,
body.tesla-page .account-card:hover .card-link,
body.tesla-page .valorant-tracker-link-btn:hover,
body.tesla-page .steam-preview-tab:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

body.tesla-page .steam-preview-tab.active,
body.tesla-page .nav-item.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
}

/* Catalog */

body.tesla-page .hero {
    border-bottom-color: #393c41;
}

body.tesla-page .hero-tags span,
body.tesla-page .flash-sale-badge,
body.tesla-page .category-picker-item,
body.tesla-page .tag,
body.tesla-page .selected-skin-tag,
body.tesla-page .ann-card,
body.tesla-page .ann-icon,
body.tesla-page .ann-pin,
body.tesla-page .ann-close,
body.tesla-page .account-card-placeholder,
body.tesla-page .account-card .skin-thumb,
body.tesla-page .account-card .skin-more,
body.tesla-page .account-card-media-label,
body.tesla-page .riot-advanced-filters,
body.tesla-page .ea-filters-container,
body.tesla-page .checker-status-overview,
body.tesla-page .checkbox-group label {
    border-radius: 4px !important;
    border-color: #393c41;
    box-shadow: none !important;
}

body.tesla-page .flash-sale-badge {
    border-color: #393c41;
    background: transparent;
    color: #ffffff;
    font-weight: 500;
}

body.tesla-page .category-picker {
    border-bottom-color: #393c41;
}

body.tesla-page .category-picker-item {
    background: #171a20;
}

body.tesla-page .category-picker-item:hover,
body.tesla-page .category-picker-item.is-active {
    background: #171a20;
    border-color: #ffffff;
    box-shadow: none;
}

body.tesla-page .filter-group select,
body.tesla-page .filter-group input,
body.tesla-page .filter-subgroup select,
body.tesla-page .filter-subgroup input,
body.tesla-page .search-input-group input,
body.tesla-page .input-wrapper input,
body.tesla-page .search-form select,
body.tesla-page .search-form input,
body.tesla-page .steam-inv-select {
    border-radius: 4px !important;
    border-color: #393c41 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.tesla-page .filter-group select:focus,
body.tesla-page .filter-group input:focus,
body.tesla-page .filter-subgroup select:focus,
body.tesla-page .filter-subgroup input:focus,
body.tesla-page .search-input-group input:focus,
body.tesla-page .input-wrapper input:focus {
    border-color: #ffffff !important;
    box-shadow: none !important;
}

body.tesla-page .tag,
body.tesla-page .selected-skin-tag {
    background: #171a20;
    color: #ffffff;
}

body.tesla-page .tag:hover,
body.tesla-page .selected-skin-tag:hover {
    transform: none;
    background: #171a20;
    border-color: #ffffff;
}

body.tesla-page .tag-remove:hover,
body.tesla-page .remove-skin:hover {
    background: transparent;
    color: #ffffff;
}

body.tesla-page .account-card {
    border: 1px solid #393c41 !important;
    border-radius: 4px !important;
    background: #171a20 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.tesla-page .account-card:hover {
    border-color: #ffffff !important;
    background: #171a20 !important;
    transform: none !important;
}

body.tesla-page .account-card-media {
    background: #000000;
    border-bottom-color: #393c41;
}

body.tesla-page .account-card-media-label,
body.tesla-page .account-card .title,
body.tesla-page .account-card .price,
body.tesla-page .account-card .info-value,
body.tesla-page .account-card .fee-notice,
body.tesla-page .account-card .skin-more {
    font-weight: 500;
}

body.tesla-page .account-card .title,
body.tesla-page .account-card .price {
    letter-spacing: -0.02em;
}

body.tesla-page .account-card .price {
    color: #ffffff;
}

body.tesla-page .results-header,
body.tesla-page .footer,
body.tesla-page .filters-block + .filters-block {
    border-color: #393c41;
}

body.tesla-page .footer,
body.tesla-page .footer a {
    color: #a2a3a5;
    font-weight: 400;
}

body.tesla-page .footer a:hover {
    color: #ffffff;
}

/* Account detail */

body.tesla-page::before,
body.tesla-page::after,
body.tesla-page .hero-main-card::before,
body.tesla-page .purchase-card::after,
body.tesla-page .riot-wallet-card::after,
body.tesla-page .riot-stat-cell::before {
    display: none !important;
}

body.tesla-page .loading-screen {
    background: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.tesla-page .loading-screen p {
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    color: #a2a3a5 !important;
}

body.tesla-page .loader::before,
body.tesla-page .loader::after {
    border-top-color: #ffffff;
}

body.tesla-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #a2a3a5;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.tesla-page .back-link:hover {
    transform: none;
    background: transparent;
    border-color: transparent;
    color: #ffffff;
}

body.tesla-page .hero-main-card,
body.tesla-page .purchase-card,
body.tesla-page .content-nav,
body.tesla-page .item-card,
body.tesla-page .spec-item,
body.tesla-page .riot-wallet-card,
body.tesla-page .riot-rank-card,
body.tesla-page .riot-fact-card,
body.tesla-page .empty-state,
body.tesla-page .profile-link-card,
body.tesla-page .steam-preview-frame-wrap,
body.tesla-page .history-table-wrap {
    background: #171a20;
    border: 1px solid #393c41;
    border-radius: 4px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.tesla-page .account-headline {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #ffffff;
}

body.tesla-page .category-badge,
body.tesla-page .status-pill,
body.tesla-page .count-badge,
body.tesla-page .nav-item,
body.tesla-page .riot-wallet-icon,
body.tesla-page .discord-badge-chip {
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

body.tesla-page .category-badge,
body.tesla-page .status-pill,
body.tesla-page .count-badge {
    background: #000000;
    border: 1px solid #393c41;
    color: #a2a3a5;
}

body.tesla-page .status-pill.success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border-color: rgba(46, 213, 115, 0.35);
}

body.tesla-page .spec-item:hover,
body.tesla-page .riot-wallet-card:hover,
body.tesla-page .riot-stat-cell:hover,
body.tesla-page .profile-link-card:hover,
body.tesla-page .item-card:hover {
    transform: none;
    border-color: #ffffff;
    box-shadow: none;
}

body.tesla-page .item-card:hover img {
    transform: none;
}

body.tesla-page .item-info {
    background: #000000;
    border-top-color: #393c41;
}

body.tesla-page .item-name,
body.tesla-page .profile-link-card .link-title {
    color: #ffffff;
    font-weight: 500;
}

body.tesla-page .section-header,
body.tesla-page .valorant-tracker-links {
    border-color: #393c41;
}

body.tesla-page .content-nav {
    background: #000000;
}

body.tesla-page .nav-item {
    color: #ffffff;
}

body.tesla-page .nav-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.tesla-page .riot-wallet-card.vp .riot-wallet-amount { color: #00c853; }
body.tesla-page .riot-wallet-card.rp .riot-wallet-amount { color: #00b0ff; }
body.tesla-page .riot-wallet-card.kc .riot-wallet-amount { color: #ffc107; }

body.tesla-page .riot-wallet-amount,
body.tesla-page .riot-rank-label,
body.tesla-page .riot-fact-label,
body.tesla-page .riot-wallet-name,
body.tesla-page .riot-stat-label {
    font-weight: 500;
    letter-spacing: 0;
}
