/**
 * AAA Auctions — Auction-specific styles
 *
 * Uses only CSS custom properties defined in the main theme stylesheet.
 * Retro-pixel aesthetic with neon accents.
 */

/* =========================================================================
   ARCHIVE PAGE — Hero & Tabs
   ========================================================================= */

.auction-archive-hero {
    background: var(--bg-secondary);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 2px 30px rgba(0, 217, 255, 0.15);
}

.auction-archive-hero .section-label {
    color: var(--neon-pink);
    letter-spacing: 4px;
    font-size: 11px;
}

.auction-archive-hero .section-title {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    margin-top: 12px;
}

.auction-archive-subtitle {
    color: var(--neon-yellow);
    font-family: var(--font-body);
    font-size: 18px;
    max-width: 600px;
    margin: 12px auto 0;
    opacity: 0.85;
}

/* --- Tab Navigation --- */
.auction-tabs-section {
    background: var(--bg-tertiary);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.auction-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.auction-tabs::-webkit-scrollbar {
    display: none;
}

.auction-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    color: #a0a0c0;
    font-family: var(--font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.auction-tab:hover {
    color: var(--neon-cyan);
    border-bottom-color: rgba(0, 217, 255, 0.4);
}

.auction-tab--active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* --- Grid Section --- */
.auction-grid-section {
    padding: 48px 0 80px;
    background: var(--bg-primary);
}

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

@media (max-width: 1200px) {
    .auction-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .auction-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Common Android phone widths (360-414px portrait) sit between the 900px
   and 560px steps and got an awkward two-column squeeze that crammed
   title + buttons. Bump the single-col breakpoint up so phones + small
   tablets in portrait both stack cleanly. */
@media (max-width: 700px) {
    .auction-grid { grid-template-columns: 1fr; }
}

/* --- Empty State --- */
.auction-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #a0a0c0;
}

.auction-empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.auction-empty-title {
    font-family: var(--font-arcade);
    font-size: 16px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    margin-bottom: 12px;
}

.auction-empty-text {
    font-family: var(--font-body);
    font-size: 20px;
    margin-bottom: 24px;
}

/* =========================================================================
   AUCTION CARD (archive grid item)
   ========================================================================= */

.auction-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auction-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.2);
}

.auction-card--active {
    border-color: rgba(255, 0, 110, 0.3);
}

.auction-card--active:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 8px 32px rgba(255, 0, 110, 0.25);
}

/* Live Indicator */
.live-indicator-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(10, 14, 39, 0.85);
    padding: 4px 10px;
    border-radius: 2px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pulse-active {
    background: var(--neon-lime);
    box-shadow: 0 0 8px var(--neon-lime);
    animation: aaa-pulse 1.5s ease-in-out infinite;
}

.pulse-ending {
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
    animation: aaa-pulse 0.8s ease-in-out infinite;
}

.pulse-upcoming {
    background: var(--neon-yellow);
    box-shadow: 0 0 6px var(--neon-yellow);
}

.pulse-inactive {
    background: #555;
}

@keyframes aaa-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.live-indicator-label {
    font-family: var(--font-arcade);
    font-size: 7px;
    color: var(--neon-yellow);
    letter-spacing: 1px;
}

/* Card Image */
.auction-card-image {
    position: relative;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.auction-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.auction-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.auction-card:hover .auction-card-image img {
    transform: scale(1.04);
}

.auction-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.1);
}

/* Badges on card image */
.auction-badge {
    position: absolute;
    font-family: var(--font-arcade);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 2px;
    line-height: 1.4;
}

.auction-grade-badge {
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    padding: 5px 9px 4px;
    min-width: 38px;
}
.auction-grade-badge__num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}
.auction-grade-badge__words {
    font-size: 7px;
    font-family: var(--font-ui, Arial, sans-serif);
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    white-space: nowrap;
}

.badge-grade-pristine {
    background: var(--neon-lime);
    color: #000;
    box-shadow: 0 0 10px var(--neon-lime);
}

.badge-grade-high {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.badge-grade-mid {
    background: var(--neon-yellow);
    color: #000;
}

.badge-grade-low {
    background: rgba(160, 160, 160, 0.8);
    color: #000;
}

.auction-cert-badge {
    top: 36px;
    left: 10px;
    background: rgba(10, 14, 39, 0.9);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    font-size: 7px;
}

/* Card Body */
.auction-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.auction-card-title {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.4;
}

.auction-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.auction-card-title a:hover {
    color: var(--neon-cyan);
}

.auction-card-subtitle {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: #a0a0c0;
    line-height: 1.3;
}

/* Current Bid on card */
.auction-card-bid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.auction-card-bid-label {
    font-family: var(--font-arcade);
    font-size: 7px;
    color: #a0a0c0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auction-card-bid .bid-amount-large {
    font-family: var(--font-arcade);
    font-size: 16px;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    letter-spacing: 1px;
}

/* Mini Timer on card */
.auction-timer-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--neon-cyan);
}

.auction-timer-upcoming {
    color: var(--neon-yellow);
}

.auction-timer-ended {
    color: #a0a0c0;
}

.auction-card-bid-count {
    font-family: var(--font-body);
    font-size: 15px;
    color: #a0a0c0;
}

.bid-count-num {
    color: #fff;
    font-weight: 700;
}

.auction-card-cta {
    margin-top: auto;
    text-align: center;
    width: 100%;
}

/* =========================================================================
   SINGLE AUCTION PAGE LAYOUT
   ========================================================================= */

.single-auction-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: #a0a0c0;
}

.breadcrumb a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* Two-column detail layout */
.auction-detail-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    padding-top: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .auction-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---- LEFT COLUMN: Image ---- */
.auction-image-col {
    position: sticky;
    top: 80px;
}

.auction-card-image-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.1);
    background: var(--bg-secondary);
}

.auction-card-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.auction-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 80px;
}

.auction-image-placeholder p {
    font-family: var(--font-body);
    font-size: 16px;
    margin-top: 16px;
}

.auction-status-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

/* Card Meta Below Image */
.auction-card-meta {
    margin-top: 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auction-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.auction-meta-row:last-of-type {
    border-bottom: none;
}

.meta-label {
    font-family: var(--font-arcade);
    font-size: 8px;
    color: #a0a0c0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.meta-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-yellow);
}

.auction-cert-link {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
}

/* ---- RIGHT COLUMN: Bid Panel ---- */
.auction-info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auction-detail-title {
    font-family: var(--font-arcade);
    font-size: 18px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .auction-detail-title { font-size: 14px; }
}

.auction-subtitle {
    font-family: var(--font-body);
    font-size: 22px;
    color: #c0c0d0;
    margin: 0;
}

/* ---- Current Bid Display ---- */
.bid-current-display {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 4px;
    padding: 24px;
    position: relative;
}

.bid-display-label {
    display: block;
    font-family: var(--font-arcade);
    font-size: 9px;
    color: #a0a0c0;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.bid-amount-large {
    font-family: var(--font-arcade);
    font-size: 32px;
    color: var(--neon-yellow);
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.6), var(--px-shadow-cyan);
    display: block;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .bid-amount-large { font-size: 22px; }
}

.bid-amount-large.bid-updated {
    animation: bidFlash 0.6s ease;
}

@keyframes bidFlash {
    0%   { color: var(--neon-lime); transform: scale(1.08); }
    100% { color: var(--neon-yellow); transform: scale(1); }
}

.bid-leader {
    font-family: var(--font-body);
    font-size: 18px;
    color: #a0a0c0;
    margin-top: 6px;
}

.bid-leader strong,
#aaa-bid-leader-name {
    color: var(--neon-cyan);
}

.bid-count-wrap {
    font-family: var(--font-body);
    font-size: 16px;
    color: #a0a0c0;
    margin-top: 8px;
}

/* Reserve Indicator */
.reserve-indicator {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-arcade);
    font-size: 9px;
    padding: 4px 10px;
    border-radius: 2px;
}

.reserve-met {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-lime);
    border: 1px solid var(--neon-lime);
}

.reserve-not-met {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.4);
}

/* ---- Countdown Timer ---- */
.auction-countdown-wrap {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px;
    padding: 20px;
}

.auction-countdown-label {
    display: block;
    font-family: var(--font-arcade);
    font-size: 9px;
    color: #a0a0c0;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.auction-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-family: var(--font-arcade);
    font-size: 28px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    display: block;
    line-height: 1;
    min-width: 2ch;
    text-align: center;
}

@media (max-width: 480px) {
    .countdown-number { font-size: 20px; }
    .countdown-segment { min-width: 44px; }
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 14px;
    color: #a0a0c0;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-sep {
    font-family: var(--font-arcade);
    font-size: 24px;
    color: var(--neon-cyan);
    align-self: flex-start;
    padding-top: 2px;
    opacity: 0.6;
}

/* --- Countdown ended state --- */
.auction-countdown.countdown-ended .countdown-number {
    color: #a0a0c0;
    text-shadow: none;
}

/* Auto-extend notice */
.auction-autoextend-notice {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--neon-yellow);
    text-align: center;
    margin: -8px 0 0;
    opacity: 0.8;
}

/* Scheduled / Ended notices */
.auction-scheduled-notice,
.auction-ended-notice {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.auction-scheduled-notice .section-label {
    display: block;
    margin-bottom: 8px;
}

.auction-start-time {
    font-family: var(--font-arcade);
    font-size: 13px;
    color: var(--neon-yellow);
    margin: 0;
}

.auction-ended-notice p {
    font-family: var(--font-body);
    font-size: 20px;
    color: #a0a0c0;
    margin: 0 0 8px;
}

.auction-winner-display {
    font-size: 22px !important;
    color: var(--neon-yellow) !important;
}

/* ---- Bid Form ---- */
.bid-form-wrap {
    background: var(--bg-secondary);
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.05);
}

.bid-form-wrap--locked {
    border-color: rgba(0, 217, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.08);
}

.bid-login-gate {
    text-align: center;
    padding: 8px 4px;
}
.bid-login-gate__lock {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 10px;
}
.bid-login-gate__title {
    font-family: var(--font-arcade);
    font-size: 13px;
    color: var(--neon-cyan, #00D9FF);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
    margin: 0 0 8px;
    letter-spacing: 2px;
}
.bid-login-gate__sub {
    font-size: 13px;
    color: var(--text-muted, #999);
    margin: 0 0 18px;
}
.bid-login-gate__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bid-login-gate__btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
}

/* ---- Live-Call Banner (Going Once / Going Twice / SOLD!) ---- */
.aaa-call-banner {
    position: relative;
    text-align: center;
    padding: 28px 20px 22px;
    margin: 12px 0 18px;
    border: 2px solid var(--neon-pink, #FF006E);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255,0,110,0.10) 0%, rgba(0,0,0,0.5) 100%);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.35), inset 0 0 30px rgba(255, 0, 110, 0.08);
    overflow: hidden;
}
.aaa-call-banner__pulse {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255,0,110,0.18), transparent 70%);
    animation: aaaCallPulse 1.1s ease-in-out infinite;
}
.aaa-call-banner__text {
    font-family: var(--font-arcade, 'Press Start 2P', monospace);
    font-size: 26px;
    color: var(--neon-pink, #FF006E);
    text-shadow: 0 0 14px rgba(255,0,110,0.7), 0 0 30px rgba(255,0,110,0.4);
    letter-spacing: 3px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.aaa-call-banner__sub {
    margin-top: 10px;
    font-size: 13px;
    color: var(--neon-cyan, #00D9FF);
    text-shadow: 0 0 6px rgba(0,217,255,0.5);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
/* Going Twice — more urgent (faster pulse, brighter) */
.aaa-call-banner--twice {
    border-color: #ff3b3b;
    box-shadow: 0 0 35px rgba(255,59,59,0.45), inset 0 0 30px rgba(255,59,59,0.12);
}
.aaa-call-banner--twice .aaa-call-banner__text {
    color: #ff3b3b;
    text-shadow: 0 0 14px rgba(255,59,59,0.8), 0 0 30px rgba(255,59,59,0.5);
}
.aaa-call-banner--twice .aaa-call-banner__pulse { animation-duration: 0.7s; }
/* SOLD — celebratory green */
.aaa-call-banner--sold {
    border-color: var(--neon-lime, #39FF14);
    box-shadow: 0 0 35px rgba(57,255,20,0.5), inset 0 0 30px rgba(57,255,20,0.12);
}
.aaa-call-banner--sold .aaa-call-banner__text {
    color: var(--neon-lime, #39FF14);
    text-shadow: 0 0 14px rgba(57,255,20,0.8), 0 0 30px rgba(57,255,20,0.5);
}
.aaa-call-banner--sold .aaa-call-banner__pulse { animation: none; opacity: 0.4; }
/* Reset flash when a new bid lands during the call */
.aaa-call-banner--reset {
    animation: aaaCallReset 0.5s ease-out;
}
@keyframes aaaCallPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1.0; transform: scale(1.08); }
}
@keyframes aaaCallReset {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.05); box-shadow: 0 0 50px rgba(0,217,255,0.8); }
    100% { transform: scale(1); }
}

.bid-form-title {
    font-family: var(--font-arcade);
    font-size: 12px;
    color: var(--neon-lime);
    text-shadow: 0 0 8px var(--neon-lime);
    margin: 0 0 20px;
    letter-spacing: 2px;
}

.bid-message {
    padding: 10px 14px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 17px;
    margin-bottom: 16px;
}

.bid-message.bid-success {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--neon-lime);
    color: var(--neon-lime);
}

.bid-message.bid-error {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
}

.bid-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.bid-field label {
    font-family: var(--font-arcade);
    font-size: 8px;
    color: #a0a0c0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bid-field input[type="text"],
.bid-field input[type="number"] {
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #fff;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 16px;
    border-radius: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.bid-field input[type="text"]:focus,
.bid-field input[type="number"]:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.2);
}

.bid-field input[type="number"]::-webkit-outer-spin-button,
.bid-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.bid-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.bid-field--amount {
    flex: 1;
    margin-bottom: 0;
}

.bid-min-hint {
    font-family: var(--font-body);
    font-size: 14px;
    color: #a0a0c0;
    margin-top: 4px;
}

.bid-submit-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    font-size: 12px;
    white-space: nowrap;
}

.bid-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Single-button bid mode (replaces input + submit row). Big primary CTA
   that's comfortable on mobile and reads as the only action the user
   needs to take. */
.bid-submit-btn--solo {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    letter-spacing: 1.5px;
    margin: 6px 0 10px;
    min-height: 56px;            /* touch target on mobile */
}
.bid-submit-btn--solo[aria-busy="true"] {
    cursor: wait;
}

/* ---------- Max bid (proxy/auto-bid) ---------------------------------- */

/* "Your max" status pill — populated post-cache by the poller so the
   cached HTML can't leak one user's max into another's view. */
.aaa-your-max {
    background: rgba(0, 200, 150, 0.08);
    border-left: 3px solid #00c896;
    padding: 10px 14px;
    margin: 0 0 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #d8e7df;
    line-height: 1.4;
}
.aaa-your-max-amount {
    color: #00ffba;
    font-weight: 700;
    margin-left: 4px;
}
.aaa-your-max-note {
    display: block;
    font-size: 12px;
    color: #a0a0c0;
    margin-top: 2px;
}

/* Optional max-bid input + "Set Max" button row. Tucks beneath the main
   Bid button so it never competes for attention with the primary CTA. */
.bid-field--max {
    margin-top: 14px;
}
.bid-field-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.bid-field-row input[type="number"] {
    flex: 1;
    min-width: 0;
}
.bid-setmax-btn {
    flex-shrink: 0;
    padding: 0 16px;
    font-size: 12px;
    white-space: nowrap;
}
.bid-setmax-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Buy Now */
.buy-now-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.buy-now-label {
    font-family: var(--font-body);
    font-size: 16px;
    color: #a0a0c0;
}

.buy-now-btn {
    font-size: 11px;
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
}

.buy-now-btn:hover {
    background: var(--neon-yellow);
    color: #000;
}

/* Telegram CTA */
.telegram-bid-cta {
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 4px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 17px;
    color: #a0a0c0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.telegram-bot-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
}

.telegram-bot-link:hover {
    text-decoration: underline;
    text-shadow: var(--glow-cyan);
}

.telegram-hint {
    color: #686880;
    font-size: 14px;
    font-family: var(--font-mono);
}

/* =========================================================================
   BID HISTORY TABLE
   ========================================================================= */

.bid-history-section {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bid-history-title {
    font-size: 16px;
    margin-bottom: 24px;
}

.bid-history-empty {
    font-family: var(--font-body);
    font-size: 20px;
    color: #a0a0c0;
    text-align: center;
    padding: 40px;
}

.bid-history-wrap {
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.bid-history-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 17px;
}

.bid-history-table thead tr {
    background: var(--bg-tertiary);
}

.bid-history-table th {
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-arcade);
    font-size: 8px;
    color: #a0a0c0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    white-space: nowrap;
}

.bid-history-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #c0c0d0;
    vertical-align: middle;
}

.bid-history-table tbody tr:hover td {
    background: rgba(0, 217, 255, 0.03);
}

.bid-history-table .bid-row:first-child td {
    background: rgba(57, 255, 20, 0.05);
}

.bid-row.bid-status-active td {
    color: #fff;
}

.bid-row.bid-status-outbid td {
    color: #686880;
}

.bid-row.bid-status-won td {
    background: rgba(57, 255, 20, 0.08) !important;
    color: var(--neon-lime);
}

.bid-bidder {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bid-type-icon {
    font-size: 14px;
}

.bid-amount strong {
    font-family: var(--font-arcade);
    font-size: 12px;
    color: var(--neon-yellow);
}

.bid-row.bid-status-outbid .bid-amount strong {
    color: #686880;
}

.bid-time {
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #a0a0c0;
}

/* Status badges in table */
.bid-status-badge {
    font-family: var(--font-arcade);
    font-size: 7px;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

/* =========================================================================
   STATUS BADGES (shared)
   ========================================================================= */

.auction-status-badge {
    font-family: var(--font-arcade);
    font-size: 8px;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.auction-status-active {
    background: rgba(255, 0, 110, 0.2);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    text-shadow: var(--glow-pink);
}

.auction-status-scheduled,
.auction-status-upcoming {
    background: rgba(255, 255, 0, 0.1);
    color: var(--neon-yellow);
    border: 1px solid rgba(255, 255, 0, 0.4);
}

.auction-status-ended {
    background: rgba(160, 160, 192, 0.15);
    color: #a0a0c0;
    border: 1px solid rgba(160, 160, 192, 0.3);
}

.auction-status-draft {
    background: rgba(100, 100, 120, 0.15);
    color: #686880;
    border: 1px solid rgba(100, 100, 120, 0.3);
}

/* Bid status badges in table */
.bid-status-active  { background: rgba(57, 255, 20, 0.1);  color: var(--neon-lime);  border: 1px solid var(--neon-lime); }
.bid-status-outbid  { background: rgba(100,100,120,0.15);   color: #686880;           border: 1px solid #686880; }
.bid-status-won     { background: rgba(255, 215, 0, 0.15);  color: var(--neon-yellow); border: 1px solid var(--neon-yellow); }
.bid-status-cancelled { background: rgba(255,0,110,0.1);    color: var(--neon-pink);  border: 1px solid var(--neon-pink); }

/* =========================================================================
   "NEW BID!" FLASH NOTIFICATION
   ========================================================================= */

.bid-new-flash {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--neon-lime);
    color: var(--neon-lime);
    font-family: var(--font-arcade);
    font-size: 10px;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    z-index: 9999;
    animation: slideInUp 0.3s ease;
    pointer-events: none;
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* =========================================================================
   RESPONSIVE TWEAKS
   ========================================================================= */

@media (max-width: 768px) {
    .bid-input-row {
        flex-direction: column;
    }
    .bid-submit-btn {
        width: 100%;
    }
    .auction-countdown {
        gap: 4px;
    }
    .countdown-number {
        font-size: 22px;
    }
    .bid-amount-large {
        font-size: 24px;
    }
    .bid-history-table th,
    .bid-history-table td {
        padding: 10px 10px;
        font-size: 14px;
    }
    .auction-image-col {
        position: static;
    }
}
