/* ============================================================
   BLACK RIFT DYNAMICS — Black & Metallic Gold Design System
   Luxury/Refined aesthetic — Vertu, Rolls-Royce, High-End
   ============================================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Source+Sans+3:wght@300;400;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

@font-face {
    font-family: 'FranciaQatar2022';
    src: url('/fonts/FranciaQatar2022.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === DESIGN TOKENS (CSS Custom Properties) === */
:root {
    /* Backgrounds */
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-tertiary: #1A1A1A;
    --bg-elevated: #222222;

    /* Gold tones */
    --gold-primary: #C9A84C;
    --gold-light: #E2CC7E;
    --gold-dark: #8B7332;
    --gold-muted: rgba(201, 168, 76, 0.15);

    /* Text */
    --text-primary: #F5F0E8;
    --text-secondary: #A09882;
    --text-muted: #6B6356;

    /* Borders */
    --border-subtle: rgba(201, 168, 76, 0.12);
    --border-default: rgba(201, 168, 76, 0.25);
    --border-strong: #C9A84C;

    /* Semantic */
    --success: #4A7C59;
    --error: #9B3D3D;
    --warning: #C9A84C;
    --info: #4A6B8A;

    /* Typography */
    --font-headline: 'Cormorant Garamond', 'FranciaQatar2022', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Metallic gold gradient */
    --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #E2CC7E 45%, #C9A84C 55%, #8B7332 100%);
    --gold-gradient-hover: linear-gradient(135deg, #8B7332 0%, #C9A84C 30%, #E2CC7E 50%, #C9A84C 70%, #8B7332 100%);
}

/* === BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-headline);
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

h1, .h1 { font-weight: 300; }
h2, .h2 { font-weight: 300; }
h3, .h3 { font-weight: 400; }
h4, .h4, h5, .h5, h6, .h6 { font-weight: 600; }

.display-5 {
    font-family: var(--font-headline);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.lead {
    color: var(--text-secondary);
    font-weight: 300;
}

small, .small, .text-muted {
    color: var(--text-muted) !important;
}

code {
    font-family: var(--font-mono);
    color: var(--gold-primary);
    background: var(--gold-muted);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 200ms ease-out;
}

a:hover {
    color: var(--gold-light);
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--text-primary);
}

/* === BRAND TITLE === */
.brand-title {
    font-family: 'FranciaQatar2022', var(--font-headline);
    letter-spacing: 0.04em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === NAVBAR === */
.navbar {
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    transition: background 300ms ease-in-out;
}

.navbar-brand {
    color: var(--text-primary) !important;
}

.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 200ms ease-out;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 300ms ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--gold-primary) !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: calc(100% - 2rem);
}

.navbar-toggler {
    border-color: var(--border-default) !important;
}

.navbar-toggler-icon {
    filter: brightness(0.7) sepia(1) hue-rotate(10deg) saturate(3);
}

/* Dropdown menu */
.dropdown-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    transition: background 200ms ease-out, color 200ms ease-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--gold-muted);
    color: var(--gold-primary);
}

.dropdown-divider {
    border-color: var(--border-subtle);
}

/* === HERO SECTION === */
.hero {
    min-height: 70vh;
    background: radial-gradient(ellipse 1200px 600px at 20% -10%, rgba(201, 168, 76, 0.08), transparent 60%),
                radial-gradient(ellipse 900px 500px at 80% -10%, rgba(139, 115, 50, 0.06), transparent 60%);
    display: flex;
    align-items: center;
}

/* === CARDS === */
.card-dark,
.card.card-dark {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    transition: border-color 300ms ease-in-out, background 300ms ease-in-out;
}

.card-dark:hover {
    border-color: var(--border-default);
}

.card-dark .card-title {
    font-family: var(--font-headline);
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.card-dark h5,
.card-dark h4,
.card-dark h3 {
    color: var(--gold-primary);
}

/* Bootstrap bg-secondary override for cards */
.card.bg-secondary {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary) !important;
    transition: border-color 300ms ease-in-out;
}

.card.bg-secondary:hover {
    border-color: var(--border-default);
}

.card.bg-secondary .card-title {
    font-family: var(--font-headline);
    color: var(--gold-primary);
}

.card.bg-secondary .card-text {
    color: var(--text-secondary);
}

/* === TABLES === */
.table {
    --bs-table-bg: var(--bg-secondary);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-subtle);
    --bs-table-striped-bg: rgba(201, 168, 76, 0.03);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-hover-bg: rgba(201, 168, 76, 0.06);
    --bs-table-hover-color: var(--text-primary);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
    padding: 0.75rem 1rem;
}

.table thead th {
    color: var(--gold-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-default);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.06), rgba(201, 168, 76, 0.02));
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(201, 168, 76, 0.03);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(201, 168, 76, 0.06);
}

/* Bootstrap table-dark override */
.table-dark,
.table.table-dark {
    --bs-table-bg: var(--bg-secondary);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-subtle);
    --bs-table-striped-bg: rgba(201, 168, 76, 0.03);
    --bs-table-hover-bg: rgba(201, 168, 76, 0.06);
}

.table-dark > :not(caption) > * > * {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.table-dark thead th,
.table.table-dark thead th {
    color: var(--gold-primary);
    border-bottom: 2px solid var(--border-default);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.06), rgba(201, 168, 76, 0.02));
}

/* Price tags */
.price-tag {
    color: var(--gold-light);
    font-weight: 600;
}

/* === BADGES === */
.badge.bg-success {
    background-color: var(--success) !important;
    color: var(--text-primary);
}

.badge.bg-danger {
    background-color: var(--error) !important;
    color: var(--text-primary);
}

.badge.bg-info {
    background: var(--gold-muted) !important;
    color: var(--gold-primary) !important;
}

.badge.bg-primary {
    background: var(--gold-muted) !important;
    color: var(--gold-primary) !important;
    border: 1px solid var(--border-default);
}

.badge.bg-secondary {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle);
}

.badge.bg-warning {
    background: rgba(201, 168, 76, 0.2) !important;
    color: var(--gold-primary) !important;
}

/* === BUTTONS === */

/* Primary CTA — Metallic Gold */
.btn-neon,
.btn-primary {
    background: var(--gold-gradient);
    border: 1px solid var(--gold-dark);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.2);
    transition: transform 200ms ease-out, box-shadow 200ms ease-out, filter 200ms ease-out;
}

.btn-neon:hover,
.btn-neon:focus,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--gold-gradient-hover);
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
    color: var(--bg-primary);
    border-color: var(--gold-primary);
}

.btn-neon:active,
.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Secondary — transparent with gold border */
.btn-outline-neon,
.btn-outline-light {
    color: var(--gold-primary);
    border: 1px solid var(--border-default);
    background: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: all 200ms ease-out;
}

.btn-outline-neon:hover,
.btn-outline-neon:focus,
.btn-outline-light:hover,
.btn-outline-light:focus {
    background: var(--gold-muted);
    color: var(--gold-light);
    border-color: var(--gold-primary);
    transform: translateY(-1px);
}

/* Active/checked state */
.btn-outline-neon.active,
.btn-outline-neon:active,
.btn-outline-neon[aria-pressed="true"],
.btn-check:checked + .btn-outline-neon {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    border-color: var(--gold-dark);
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.2);
}

.btn-outline-neon.active:hover,
.btn-outline-neon.active:focus,
.btn-outline-neon:active:hover,
.btn-outline-neon:active:focus,
.btn-check:checked + .btn-outline-neon:hover,
.btn-check:checked + .btn-outline-neon:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Ghost — just gold text */
.btn-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 200ms ease-out;
}

.btn-link:hover {
    color: var(--gold-light);
}

/* Danger button */
.btn-danger,
.btn-outline-danger {
    color: #D4605A;
    border-color: rgba(155, 61, 61, 0.5);
    background: transparent;
    font-weight: 600;
    transition: all 200ms ease-out;
}

.btn-danger:hover,
.btn-outline-danger:hover {
    background: rgba(155, 61, 61, 0.15);
    color: #E07A75;
    border-color: var(--error);
}

/* Warning button */
.btn-warning {
    background: var(--gold-gradient);
    border-color: var(--gold-dark);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-warning:hover {
    filter: brightness(1.08);
    color: var(--bg-primary);
}

/* Secondary button override */
.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 200ms ease-out;
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--gold-dark);
}

/* Outline-primary override */
.btn-outline-primary {
    color: var(--gold-primary);
    border-color: var(--border-default);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gold-muted);
    color: var(--gold-light);
    border-color: var(--gold-primary);
}

/* Small button adjustments */
.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* === FORM CONTROLS === */
.form-control,
.form-select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    font-family: var(--font-body);
    transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--border-strong);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    border-color: var(--border-subtle);
    opacity: 0.7;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.form-select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-check-input {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
}

.form-check-input:checked {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    border-color: var(--gold-primary);
}

.form-check-label {
    color: var(--text-secondary);
}

/* === ALERTS === */
.alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-info {
    background: rgba(74, 107, 138, 0.15);
    border: 1px solid rgba(74, 107, 138, 0.3);
    color: #8AB4D6;
}

.alert-success {
    background: rgba(74, 124, 89, 0.15);
    border: 1px solid rgba(74, 124, 89, 0.3);
    color: #7ABF8E;
}

.alert-danger {
    background: rgba(155, 61, 61, 0.15);
    border: 1px solid rgba(155, 61, 61, 0.3);
    color: #D4605A;
}

.alert-warning {
    background: var(--gold-muted);
    border: 1px solid var(--border-default);
    color: var(--gold-light);
}

/* === MODALS === */
.modal-content {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
}

.modal-header {
    border-color: var(--border-subtle);
    background: transparent;
}

.modal-footer {
    border-color: var(--border-subtle);
    background: transparent;
}

.modal-title {
    font-family: var(--font-headline);
    color: var(--gold-primary);
    letter-spacing: 0.03em;
}

.modal-body h6 {
    color: var(--gold-primary);
    font-family: var(--font-headline);
}

.modal .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.6;
    transition: opacity 200ms ease-out;
}

.modal .btn-close:hover {
    opacity: 1;
}

.modal-backdrop.show {
    opacity: 0.8;
}

/* === LIST GROUP === */
.list-group-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
}

.list-group-item:hover,
.list-group-item-action:hover {
    transform: translateY(-1px);
    background-color: var(--bg-tertiary);
    border-color: var(--border-default);
    color: var(--text-primary);
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    background: var(--bg-primary);
}

.footer a {
    color: var(--text-muted);
    transition: color 200ms ease-out;
}

.footer a:hover {
    color: var(--gold-primary);
}

/* === UTILITY CLASSES === */
.logo-img {
    max-width: 180px;
    height: auto;
}

.link-light {
    color: var(--text-primary) !important;
    transition: color 200ms ease-out;
}

.link-light:hover {
    color: var(--gold-primary) !important;
}

.text-light {
    color: var(--text-secondary) !important;
}

.bg-dark {
    background-color: var(--bg-primary) !important;
}

/* Horizontal rule */
hr {
    border-color: var(--border-subtle);
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* === TREE NODE (Crafting) === */
.tree-node {
    border-color: var(--border-default) !important;
}

.tree-node .border-start {
    border-color: var(--border-default) !important;
}

/* === PAGE-SPECIFIC STYLES === */

/* Marketprices */
.stock-info { font-size: 0.9em; }
.item-image { max-height: 100px; object-fit: contain; border-radius: 6px; }
.market-table { margin-top: 30px; }
.market-header {
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}
.market-header h3 {
    color: var(--gold-primary);
}
.description-text { max-height: 100px; overflow-y: auto; font-size: 0.9em; }
.uex-badge { height: 40px; }

/* Back to top button */
#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0.7;
    transition: opacity 200ms ease-out;
    font-size: 20px;
    line-height: 0;
    padding: 0;
    border-radius: 50%;
}
#backToTopBtn:hover {
    opacity: 1;
}

/* === ANIMATIONS === */

/* Staggered fade-in on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.hero .display-5,
.hero .lead,
.hero .btn {
    animation: fadeInUp 600ms ease-out both;
}

.hero .display-5 { animation-delay: 100ms; }
.hero .lead { animation-delay: 200ms; }
.hero .btn { animation-delay: 300ms; }
.hero .logo-img { animation: fadeInUp 600ms ease-out 400ms both; }

/* Card entrance */
.card-dark,
.card.bg-secondary {
    animation: fadeInUp 500ms ease-out both;
}

.col-md-4:nth-child(1) .card-dark,
.col-md-4:nth-child(1) .card.bg-secondary,
.col-md-6:nth-child(1) .card.bg-secondary,
.col-lg-4:nth-child(1) .card-dark,
.col-lg-4:nth-child(1) .card.bg-secondary { animation-delay: 100ms; }

.col-md-4:nth-child(2) .card-dark,
.col-md-4:nth-child(2) .card.bg-secondary,
.col-md-6:nth-child(2) .card.bg-secondary,
.col-lg-4:nth-child(2) .card-dark,
.col-lg-4:nth-child(2) .card.bg-secondary { animation-delay: 200ms; }

.col-md-4:nth-child(3) .card-dark,
.col-md-4:nth-child(3) .card.bg-secondary,
.col-lg-4:nth-child(3) .card-dark,
.col-lg-4:nth-child(3) .card.bg-secondary { animation-delay: 300ms; }

/* Gold shimmer on button hover */
@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.btn-neon:hover,
.btn-primary:hover {
    background-size: 200% auto;
    animation: goldShimmer 1.5s ease-in-out;
}

/* Link underline grow effect */
.nav-link::after,
a.gold-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: width 300ms ease-in-out;
}

a.gold-underline {
    position: relative;
}

a.gold-underline:hover::after {
    width: 100%;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    h1, .h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Quality Sliders */
.quality-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
}
.quality-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 6px rgba(201, 168, 76, 0.4);
}
.quality-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 6px rgba(201, 168, 76, 0.4);
}
.quality-value {
    font-family: var(--font-mono);
    color: var(--gold-light);
    font-weight: 600;
}

/* Tour-Auswahl-Checkbox: größeres Touch-Target (WCAG 2.5.8) */
.js-tour-check {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

/* Rarity Color Badges */
.bg-rarity-common { background-color: #6B6B6B !important; color: #F5F0E8; }
.bg-rarity-uncommon { background-color: #4A7C59 !important; color: #F5F0E8; }
.bg-rarity-rare { background-color: #4A6B8A !important; color: #F5F0E8; }
.bg-rarity-epic { background-color: #7B4A8A !important; color: #F5F0E8; }
.bg-rarity-legendary { background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary)) !important; color: #0A0A0A; font-weight: 600; }
