:root {
    --coralauction-navy: #0f3759;
    --coralauction-teal: #0f9870;
    --coralauction-sand: #f3f6fb;
    --coralauction-ink: #12263a;
    --coralauction-muted: #5a6b7a;
    --coralauction-border: #d9e0ea;
    --coralauction-card-shadow: 0 10px 40px rgba(15, 55, 89, 0.08);
    --coralauction-radius: 14px;
    --coralauction-focus: #0f75c9;
    --coralauction-live: #bb1d42;
    --coralauction-success: #1e8057;
}

.coralauction-hidden {
    display: none;
}

.coralauction-auctions-list,
.coralauction-active-auction,
.coralauction-auction-page,
.coralauction-current-item {
    background: #fff;
    border: 1px solid var(--coralauction-border);
    border-radius: var(--coralauction-radius);
    box-shadow: var(--coralauction-card-shadow);
    padding: 24px;
    margin: 24px auto;
    max-width: 1100px;
    color: var(--coralauction-ink);
}

.coralauction-section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.coralauction-section-header h2,
.coralauction-auction-title {
    margin: 0;
    color: var(--coralauction-navy);
    font-size: 1.85rem;
    line-height: 1.25;
}

.coralauction-section-lead,
.coralauction-auction-start-time,
.coralauction-auction-meta,
.coralauction-empty {
    color: var(--coralauction-muted);
    margin: 0;
}

.coralauction-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.coralauction-card,
.coralauction-auction-item-card,
.coralauction-auction-product-card {
    background: #fff;
    border: 1px solid var(--coralauction-border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    padding: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

.coralauction-card:hover,
.coralauction-auction-item-card:hover,
.coralauction-auction-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.coralauction-card a,
.coralauction-card-link {
    color: inherit;
    text-decoration: none;
}

.coralauction-card:focus-within,
.coralauction-auction-item-card:focus-within,
.coralauction-auction-product-card:focus-within {
    outline: 3px solid var(--coralauction-focus);
    outline-offset: 2px;
}

.coralauction-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.coralauction-card-title {
    margin: 0;
    font-size: 1.1rem;
}

.coralauction-card-details {
    color: var(--coralauction-muted);
    font-size: 0.95rem;
    display: grid;
    gap: 4px;
}

.coralauction-label {
    display: block;
    font-weight: 600;
    color: var(--coralauction-ink);
    font-size: 0.95rem;
}

.coralauction-value {
    color: var(--coralauction-muted);
}

.coralauction-card-actions {
    margin-top: 14px;
}

.coralauction-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--coralauction-navy), #1f5b92);
    color: #fff !important;
    padding: 10px 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.coralauction-button:focus,
.coralauction-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15, 55, 89, 0.25);
    background: linear-gradient(135deg, #0d2f4d, #0f75c9);
    color: #fff;
}

.coralauction-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.coralauction-pill-active { background: var(--coralauction-teal); }
.coralauction-pill-upcoming { background: var(--coralauction-navy); }
.coralauction-pill-live { background: var(--coralauction-live); }
.coralauction-pill-complete { background: #555; }
.coralauction-pill-inactive { background: #6c757d; }

.coralauction-auction-header {
    text-align: center;
    margin-bottom: 20px;
}

.coralauction-auction-labels {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.coralauction-auction-meta {
    color: var(--coralauction-muted);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--coralauction-sand);
    padding: 8px 12px;
    border-radius: 999px;
}

.coralauction-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0 12px;
}

.coralauction-meta-block {
    background: var(--coralauction-sand);
    border: 1px solid var(--coralauction-border);
    border-radius: 10px;
    padding: 12px;
}

.coralauction-auction-countdown {
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f4c81, #1874c9);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.coralauction-countdown-heading {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.coralauction-countdown-time {
    font-size: 1.7rem;
    font-weight: 700;
}

.coralauction-countdown-final-anim {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.coralauction-final-minute .coralauction-countdown-time {
    animation: coralauction-pulse 1s infinite;
}

@keyframes coralauction-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.coralauction-auction-items-section,
.coralauction-auction-products-grid {
    margin-top: 28px;
}

.coralauction-auction-items-heading {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--coralauction-navy);
}

.coralauction-auction-items-grid,
.coralauction-auction-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.coralauction-auction-item-image img,
.coralauction-auction-product-image img,
.coralauction-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.coralauction-auction-item-body,
.coralauction-auction-product-info {
    margin-top: 12px;
}

.coralauction-auction-item-title,
.coralauction-auction-product-title {
    margin: 0 0 6px;
    font-size: 1.02rem;
    color: var(--coralauction-ink);
}

.coralauction-auction-item-scientific,
.coralauction-auction-product-scientific {
    margin: 0 0 8px;
    color: var(--coralauction-muted);
}

.coralauction-auction-item-pricing,
.coralauction-auction-product-pricing {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.coralauction-auction-item-pricing dt,
.coralauction-auction-product-pricing dt {
    font-weight: 700;
    color: var(--coralauction-ink);
}

.coralauction-auction-item-pricing dd,
.coralauction-auction-product-pricing dd {
    margin: 0;
    color: var(--coralauction-muted);
}

/* Current live item block */
.coralauction-current-item {
    display: grid;
    gap: 16px;
}

.coralauction-current-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.coralauction-current-body {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) 3fr;
    gap: 20px;
    align-items: start;
}

.coralauction-product-description {
    color: var(--coralauction-muted);
    line-height: 1.5;
}

.coralauction-bid-info {
    background: var(--coralauction-sand);
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
    color: var(--coralauction-ink);
}

.coralauction-current-bid {
    font-weight: 700;
    margin: 0 0 6px;
}

.coralauction-current-bidder {
    margin: 0;
    color: var(--coralauction-muted);
}

.coralauction-timer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f4c81;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.coralauction-timer-value {
    font-variant-numeric: tabular-nums;
}

.coralauction-timer-warning {
    animation: coralauction-blink 0.5s step-start infinite;
}

@keyframes coralauction-blink {
    50% { opacity: 0.15; }
}

.coralauction-bid-form {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.coralauction-bid-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--coralauction-border);
}

.coralauction-bid-feedback {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.coralauction-bid-feedback.success { background: #ebf7f0; color: var(--coralauction-success); }
.coralauction-bid-feedback.error { background: #ffecec; color: #b4231e; }

.coralauction-bidder-login-wrapper {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.coralauction-login-column {
    flex: 1 1 300px;
}

.coralauction-auction-no-items {
    color: var(--coralauction-muted);
}

@media (max-width: 1024px) {
    .coralauction-current-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .coralauction-auctions-list,
    .coralauction-active-auction,
    .coralauction-auction-page,
    .coralauction-current-item {
        padding: 18px;
        margin: 18px auto;
    }

    .coralauction-auction-countdown {
        padding: 20px 12px;
    }
}

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