nav {
    display: flex;
    border-radius: var(--radius);
    padding: 20px 0;
    margin: var(--spacing) 0;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: var(--text-lg);
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: calc(var(--spacing) * 6);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: var(--text-sm);
    line-height: var(--text-sm);
    font-weight: 400;
    font-family: var(--font-secondary);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: white;
}

.logo {
    width: 200px;
}

.bhbtn.primary {
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 12px 24px;
    border: 1px solid #424242;
    background-color: #262626;
    transition: background-color 0.2s ease;
    font-family: var(--font-secondary);
    line-height: 1em;
}

.bhbtn.primary:hover {
    background-color: #424242;
    transition: background-color 0.2s ease;
}

.bhbtn.secondary {
    color: white;
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid #424242;
    background-color: transparent;
    transition: background-color 0.2s ease;
    font-family: var(--font-secondary);
    line-height: 1em;
    cursor: pointer;
}

.bhbtn.secondary:hover {
    background-color: #424242;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-buttons .nav-user {
    color: white;
    font-size: var(--text-sm);
}

.nav-buttons .inline-form {
    margin: 0;
}

span.bh-discord-symbol-black {
    font-size: 22px;
    line-height: 20px;
    margin-top: -4px;
}

.bh-input {
    width: 100%;
    height: 50px;
    border: 1px solid #424242;
    background: #262626;
    color: var(--white);
    font-family: var(--font-secondary) !important;
    font-size: var(--text-sm);
    line-height: 1.5;
    font-weight: 400;
    padding: 12px 24px;
    display: block;
}

.bh-input::placeholder {
    color: var(--white);
    font-family: var(--font-secondary);
}

.bh-input:active, .bh-input:focus {
    background-color: #424242;
    transition: background-color 0.2s ease;
    outline: none;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.item-grid-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-secondary);
}

.item-grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    text-align: center;
    aspect-ratio: 1 / 1;
    justify-content: center;
    border: 1px solid #424242;
    background-color: #262626;
    transition: background-color 0.2s ease;
}

.item-grid-item:hover {
    background-color: #424242;
}

.item-grid-item-members {
    background-color: var(--background);
    color: var(--white);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 400;
}

.bhtag-members {
    font-size: 12px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 6px;
}

body > div > div > div > div.mt-3.pagination-wrapper > nav > div.d-none.flex-sm-fill.d-sm-flex.align-items-sm-center.justify-content-sm-between > div:nth-child(1) > p {
    display: none;
}

.page-link {
    background: #262626;
    border: 1px solid #424242;
    color: var(--white);
    transition: background-color 0.2s ease;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

li.page-item.active .page-link {
    background-color: #424242;
    border-color: #424242;
}

.page-link:hover {
    background-color: #424242;
    border-color: #424242;
    color: var(--white);
}

li.page-item.disabled .page-link {
    background-color: #262626;
    border-color: #424242;
    color: var(--white);
}

.page-item:last-child .page-link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.page-item:first-child .page-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.item-search-input-wrap {
    width: 85%;
}

.bhdropdown {
    height: 50px;
    width: 100%;
    border: 1px solid #424242;
    background: #262626;
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
    font-weight: 400;
    padding: 12px 24px;
    display: block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}
.bhdropdown:hover {
    background-color: #424242;
    transition: background-color 0.2s ease;
}
.bhdropdown:focus {
    outline: none;
}

.item-search-category-wrap.dropdown {
    width: 14.3%;
}

.bhdropdown-menu {
    border-radius: 0;
    border: none;
    background: #262626;
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
    font-weight: 400;
}

.bhdropdown-menu li {
    margin: 0;
    padding: 0;
}

.bhdropdown-menu li button {
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    border: none;
    background: none;
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
    font-weight: 400;
    padding: 12px 24px;
    display: block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.bhdropdown-menu li button:hover {
    color: var(--white);
    background-color: #424242;
    transition: background-color 0.2s ease;
}

.bhdropdown-menu li button:focus {
    outline: none;
}

.bhdropdown-menu li button:active {
    background-color: #424242;
}

.bhdropdown-menu li button.active {
    background-color: #424242;
}

.item-price-value {
    position: absolute;
    top: 10;
    left: 10;
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    background-color: #B19E33;
    padding: 4px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4em;
}

span.today-change-value {
    position: absolute;
    top: 10;
    right: 10;
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    background-color: #6C3EB8;
    padding: 4px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4em;
}

.item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    justify-content: space-between;
    margin-bottom: 2em;
}

.item-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

.item-price-value-large {
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    background-color: #B19E33;
    padding: 4px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4em;
}

.sixmonthoverview-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.box-left {
    width: 60%;
    border: 1px solid #424242;
    background-color: #262626;
    padding: 16px;
}

.box-right {
    width: 40%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    width: 30%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #424242;
    background-color: #262626;
    padding: 16px;
}

.stat-item h2 {
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
}

.stat-item p {
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
}

.hero-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.chart-wrapper {
    display: flex;
    width: 70%;
    border: 1px solid #424242;
    background-color: #262626;
    padding: 16px;
}

.price-history-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #424242;
    background-color: #262626;
    padding: 16px;
}

.price-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.price-history-list::-webkit-scrollbar {
    width: 8px;
}

.price-history-list::-webkit-scrollbar-thumb {
    background-color: #424242;
    border-radius: 4px;
}

.price-history-list::-webkit-scrollbar-track {
    background-color: #262626;
}

/* Cookie Consent – matches site dark theme */
.cookie-consent-wrapper [x-cloak] {
    display: none !important;
}

/* Discreet banner in bottom-left corner */
.cookie-consent-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 1050;
    max-width: 22rem;
}

.cookie-consent-banner-content {
    box-shadow: var(--shadow-xl);
}

/* Preferences button (after consent) */
.cookie-consent-preferences-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 1050;
    padding: 8px 14px;
    font-size: var(--text-xs);
    font-family: var(--font-secondary);
    color: rgba(240, 240, 240, 0.8);
    background-color: #262626;
    border: 1px solid #424242;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-consent-preferences-btn:hover {
    background-color: #424242;
    color: var(--white);
}

.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-modal {
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-modal-lg {
    max-width: 36rem;
}

.cookie-consent-content {
    background-color: #262626;
    border: 1px solid #424242;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #424242;
}

.cookie-consent-body {
    padding: 1.5rem;
}

.cookie-consent-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-primary);
}

.cookie-consent-description {
    font-size: var(--text-sm);
    color: rgba(240, 240, 240, 0.85);
    font-family: var(--font-secondary);
    margin-bottom: 0;
}

.cookie-consent-close {
    background: none;
    border: none;
    color: rgba(240, 240, 240, 0.7);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-consent-close:hover {
    color: var(--white);
}

.cookie-consent-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-card {
    border: 1px solid #424242;
    border-radius: var(--radius);
    background-color: #1f1f1f;
}

.cookie-consent-card-body {
    padding: 1rem;
}

.cookie-consent-card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.cookie-consent-card-text {
    font-size: var(--text-sm);
    color: rgba(240, 240, 240, 0.75);
    margin-bottom: 0;
    font-family: var(--font-secondary);
}

.cookie-consent-badge {
    background-color: #424242;
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 500;
}

.cookie-consent-wrapper .bhbtn {
    padding: 12px 24px;
    border: 1px solid #424242;
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    transition: background-color 0.2s ease;
}

.cookie-consent-wrapper .bhbtn-primary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.cookie-consent-wrapper .bhbtn-primary:hover {
    background-color: hsl(263, 50%, 55%);
    border-color: hsl(263, 50%, 55%);
    color: var(--white);
}

.cookie-consent-wrapper .bhbtn-secondary {
    background-color: transparent;
    color: var(--white);
}

.cookie-consent-wrapper .bhbtn-secondary:hover {
    background-color: #424242;
    color: var(--white);
}

.cookie-consent-switch .form-check-input {
    background-color: #424242;
    border-color: #424242;
}

.cookie-consent-switch .form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.cookie-consent-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(147, 112, 219, 0.25);
}