/* Auction pages follow the light database theme; existing pages are untouched. */
body.auction-page { background: #e4e8f0; color: #212529; }
.auction-page .navbar { background-color: #0c213a; }
.auction-page #navbar-server { margin-top: 0; }
.auction-page footer { color: #212529; }
.auction-page footer a { color: #3c65a5; }
.auction-market {
    --auction-bg: #fff; --auction-border: #d3dae4; --auction-muted: #637083;
    --auction-sell: #3565ad; --auction-buy: #23815d;
    color: #212529; padding-top: 24px; padding-bottom: 24px; font-size: 16px;
}
.auction-heading, .auction-toolbar, .auction-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auction-heading h1 { font-size: 26px; font-weight: 500; color: #25364b; margin: 12px 0 18px; }
.auction-breadcrumb { display: flex; gap: 10px; font-size: 13px; color: var(--auction-muted); }
.auction-breadcrumb a { color: #4a6793; }
.auction-servers, .auction-tabs, .auction-periods { display: flex; gap: 4px; }
.auction-servers a, .auction-periods button { border: 1px solid var(--auction-border); border-radius: 4px; background: #f6f8fb; color: #4b5c72; padding: 7px 13px; text-decoration: none; font-size: 14px; cursor: pointer; }
.auction-servers .is-active, .auction-periods .is-active { background: #315d96; color: #fff; border-color: #315d96; }
.auction-tabs a { font-size: 16px; padding: 11px 15px; color: #52647e; border-bottom: 2px solid transparent; text-decoration: none; }
.auction-tabs .is-active { color: #244e86; border-bottom-color: #315d96; background: #f2f5fa; }
.auction-toolbar { border-bottom: 1px solid #c5ceda; margin-bottom: 20px; }
.auction-updated { font-size: 13px; color: var(--auction-muted); padding: 8px 0; }
.auction-refresh { background: transparent; color: #315d96; border: 0; margin-left: 10px; cursor: pointer; }
.auction-market a:hover, .auction-refresh:hover { color: #18395f; }
.auction-market .auction-servers .is-active:hover { color: #fff; }
.auction-market :focus-visible { outline: 2px solid #315d96; outline-offset: 3px; }
.auction-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; background: #fff; border: 1px solid var(--auction-border); border-radius: 5px; }
.auction-metric { padding: 17px 20px; border-right: 1px solid #e1e6ed; }
.auction-metric:last-child { border-right: 0; }
.auction-metric > span { display: block; color: #536175; font-size: 14px; }
.auction-metric strong { display: block; font-size: 27px; font-weight: 600; margin: 8px 0; font-variant-numeric: tabular-nums; color: #263d57; }
.auction-metric small { color: var(--auction-muted); font-size: 12px; }
.auction-sell { color: var(--auction-sell) !important; }
.auction-buy { color: var(--auction-buy) !important; }
.auction-muted { color: var(--auction-muted); font-size: 13px; }
.auction-panel { background: var(--auction-bg); border: 1px solid var(--auction-border); border-radius: 5px; overflow: hidden; margin-bottom: 20px; }
.auction-panel-heading { padding: 17px 20px; }
.auction-panel-heading h2 { color: #273c56; font-size: 19px; font-weight: 500; margin: 0; }
.auction-panel-heading p { font-size: 13px; color: var(--auction-muted); margin: 6px 0 0; }
.auction-book { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.auction-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.auction-table th { color: #5a687b; font-size: 13px; font-weight: 500; background: #f0f3f8; padding: 12px 20px; white-space: nowrap; }
.auction-table td { padding: 12px 20px; border-top: 1px solid #e7ebf0; white-space: nowrap; }
.auction-table small { display: block; font-size: 12px; color: var(--auction-muted); margin-top: 4px; }
.auction-number { text-align: right; }
.auction-depth {
    --depth-color: rgba(53,101,173,.075);
    background: linear-gradient(to left,
        var(--depth-color) 0,
        var(--depth-color) max(0px, calc(var(--depth) - 32px)),
        transparent var(--depth));
    background-repeat: no-repeat;
}
.auction-depth-buy { --depth-color: rgba(35,129,93,.075); }
.auction-depth-table td { padding-top: 10px; padding-bottom: 10px; }
.auction-empty { text-align: center; color: var(--auction-muted); height: 110px; white-space: normal !important; }
.auction-notice { border: 1px solid #e0cb93; background: #fff8e9; color: #7a5e22; padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.auction-item { display: flex; align-items: center; gap: 12px; }
.auction-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 3px; background: #edf0f5; }
.auction-item a, .auction-item-links a { color: #315d96; }
.auction-search { display: flex; align-items: flex-end; gap: 14px; padding: 20px; flex-wrap: wrap; }
.auction-search > div:first-of-type { flex: 1; min-width: 220px; }
.auction-search label { font-size: 13px; color: #536175; display: block; margin-bottom: 7px; }
.auction-search input, .auction-search select { width: 100%; height: 40px; background: #f8fafc; border: 1px solid #ccd5e0; color: #25364b; border-radius: 4px; padding: 0 12px; }
.auction-search button { height: 40px; border: 1px solid #315d96; border-radius: 4px; background: #315d96; color: #fff; padding: 0 22px; cursor: pointer; }
.auction-list-info { font-size: 13px; padding: 0 20px 16px; color: #344a66; }
.auction-list-info span { color: var(--auction-muted); margin-left: 15px; }
.auction-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 18px; }
.auction-pagination a { color: #315d96; }
.auction-item-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; }
.auction-item-links span, .auction-footnote { color: var(--auction-muted); }
.auction-footnote { font-size: 13px; margin-top: 12px; }
.auction-legend { display: flex; gap: 24px; padding: 0 20px; font-size: 13px; }
.auction-legend span:before { content: ''; display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: currentColor; vertical-align: middle; margin-right: 8px; }
.auction-chart-surface { position: relative; padding: 12px 12px 0; }
.auction-chart { display: block; width: 100%; min-height: 230px; touch-action: pan-y; }
.auction-chart text { font-family: inherit; font-size: 12px; fill: #637083; }
.auction-chart-status { font-size: 13px; color: var(--auction-muted); margin: 14px 20px 0; }
.auction-chart-tooltip { position: absolute; background: #fff; color: #25364b; border: 1px solid #c9d3e1; padding: 12px 14px; border-radius: 4px; pointer-events: none; z-index: 2; box-shadow: 0 4px 16px #16315018; font-size: 13px; white-space: pre-line; top: 15px; left: 90px; max-width: calc(100% - 110px); }
.auction-chart-caption { font-size: 12px; color: var(--auction-muted); padding: 0 20px; margin: 10px 0 18px; }
@media (max-width: 767px) {
    .auction-metrics { grid-template-columns: 1fr 1fr; }
    .auction-metric { padding: 15px; }
    .auction-metric:nth-child(2) { border-right: 0; }
    .auction-metric:nth-child(-n+2) { border-bottom: 1px solid #e1e6ed; }
    .auction-metric strong { font-size: 23px; }
    .auction-book { grid-template-columns: 1fr; gap: 0; }
    .auction-market { padding-top: 20px; }
    .auction-panel-heading { padding: 16px; }
    .auction-chart-surface { padding: 0; }
    .auction-chart-tooltip { left: 20px; max-width: calc(100% - 40px); }
    .auction-search { padding: 16px; }
    .auction-search > div, .auction-search button { width: 100%; }
    .auction-table td, .auction-table th { padding: 11px 14px; }
    .auction-heading { gap: 0; }
    .auction-heading h1 { margin-bottom: 14px; font-size: 24px; }
    .auction-servers { margin-bottom: 12px; }
    .auction-updated { padding: 0 0 12px; }
    .auction-toolbar { gap: 10px; }
    .auction-tabs a { padding: 10px; font-size: 15px; }
    .auction-panel-heading h2 { font-size: 18px; }
    .auction-list-info span { display: block; margin: 8px 0 0; }
}
