/* Same black & gold theme as premiumpedigree.com (static/style.css, @media screen block). */
:root {
    --app-black: #060606;
    --app-panel: #17140f;
    --app-gold: #d4a84f;
    --app-gold-light: #f4d27a;
    --app-gold-deep: #8f641e;
    --app-border: rgba(212, 168, 79, 0.44);
    --app-border-soft: rgba(212, 168, 79, 0.22);
    --app-text: #f7f0df;
    --app-muted: #c8bd9f;
    --app-link: #eadfbd;
    --app-danger: #f87171;
    --gold-gradient: linear-gradient(180deg, #f1d17a 0%, #d4a84f 46%, #9a6d23 100%);
    --panel-bg:
        linear-gradient(135deg, rgba(91, 65, 21, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(26, 23, 17, 0.98), rgba(13, 13, 12, 0.98));
    --panel-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 14% 0%, rgba(244, 210, 122, 0.16), transparent 30rem),
        radial-gradient(circle at 86% 18%, rgba(143, 100, 30, 0.14), transparent 28rem),
        linear-gradient(135deg, var(--app-black) 0%, #11100d 44%, #080807 100%);
    background-attachment: fixed;
    color: var(--app-text);
}

a { color: var(--app-link); }
a:hover { color: var(--app-gold-light); }
img { max-width: 100%; }

h1, h2, h3 { color: var(--app-gold-light); }
h1 { font-size: 2.2rem; line-height: 1.15; margin: 8px 0 18px; }
h2 { font-size: 1.6rem; margin: 40px 0 18px; }
h3 { font-size: 1.15rem; }

/* Header - identical structure to the pedigree site */
.site-header {
    background: linear-gradient(90deg, #050505 0%, #17110a 55%, #080807 100%);
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--app-gold-light);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 18px rgba(244, 210, 122, 0.22);
}

.brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 168, 79, 0.25));
}

.brand small {
    display: block;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: none;
    margin-top: 4px;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a, .main-nav button.link {
    color: var(--app-link);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.main-nav a:hover, .main-nav button.link:hover, .main-nav .active { color: var(--app-gold-light); }
.main-nav form { margin: 0; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--app-border); }

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    overflow: hidden;
}

.lang-switch a { padding: 5px 10px; font-size: 0.85rem; font-weight: 700; color: var(--app-muted); text-decoration: none; }
.lang-switch a.on { background: rgba(212, 168, 79, 0.18); color: var(--app-gold-light); }

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.eyebrow {
    color: var(--app-gold-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.lead { color: var(--app-muted); font-size: 1.08rem; line-height: 1.65; max-width: 720px; margin: 0; }
.note { color: var(--app-muted); font-size: 0.9rem; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.success { background: rgba(212, 168, 79, 0.18); color: var(--app-gold-light); border: 1px solid var(--app-border); }
.flash.pending { background: rgba(212, 168, 79, 0.12); color: var(--app-gold-light); border: 1px dashed var(--app-border); }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--app-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid var(--app-border-soft); }
.phone-login { text-align: left; }
.phone-login summary { cursor: pointer; text-align: center; color: var(--app-link); padding: 6px 0; list-style: none; }
.phone-login summary::-webkit-details-marker { display: none; }
.phone-login summary:hover { color: var(--app-gold-light); }
.phone-login[open] summary { margin-bottom: 12px; color: var(--app-gold-light); }
.phone-login input[type=tel] { font: inherit; padding: 10px 12px; background: #0b0b0a; border: 1px solid var(--app-border); border-radius: 8px; color: var(--app-text); }
.flash.error { background: rgba(153, 27, 27, 0.28); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.42); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 44px 0 18px; }
.section-head h2 { margin: 0; }

/* Auction cards (home) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.auction-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #080807 0%, #20180b 46%, #5b4115 100%);
    border: 1px solid var(--app-border);
    color: var(--app-text);
    text-decoration: none;
    box-shadow: var(--panel-shadow);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.auction-card:hover {
    transform: translateY(-2px);
    border-color: var(--app-gold);
    box-shadow: 0 0 0 2px rgba(212, 168, 79, 0.2), 0 16px 42px rgba(0, 0, 0, 0.45);
}

.auction-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.auction-card .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0) 30%, rgba(6, 6, 6, 0.92) 100%);
}

.auction-card .caption { position: absolute; left: 16px; right: 14px; bottom: 14px; display: grid; gap: 5px; }

.auction-card .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--app-gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auction-card .title > span:last-child { overflow: hidden; text-overflow: ellipsis; }

.flag {
    flex: 0 0 auto;
    border: 1px solid var(--app-border);
    background: rgba(6, 6, 6, 0.6);
    color: var(--app-gold-light);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.auction-card .when { font-size: 0.88rem; color: var(--app-muted); }
.auction-card.finished img { filter: grayscale(0.7) brightness(0.7); }

.clock { display: inline-flex; align-items: center; gap: 6px; }
.clock::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) 50% 30% / 1.5px 35% no-repeat,
        linear-gradient(currentColor, currentColor) 62% 50% / 30% 1.5px no-repeat;
    opacity: 0.85;
}

.empty {
    padding: 34px;
    background: var(--panel-bg);
    border: 1px dashed var(--app-border);
    border-radius: 10px;
    color: var(--app-muted);
    text-align: center;
}

/* Auction banner (home) */
.auction-banner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    margin-top: 30px;
    background: var(--panel-bg);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--panel-shadow);
    color: var(--app-text);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auction-banner:hover { border-color: var(--app-gold); box-shadow: 0 0 0 2px rgba(212, 168, 79, 0.2), 0 16px 42px rgba(0, 0, 0, 0.45); color: var(--app-text); }
.banner-img { background: linear-gradient(135deg, #080807 0%, #20180b 46%, #5b4115 100%); min-height: 240px; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-body { padding: 26px 28px; display: flex; flex-direction: column; }
.banner-body h2 { margin: 0 0 10px; font-size: 1.7rem; }
.banner-text { color: var(--app-muted); line-height: 1.6; margin: 0; }
.banner-cta { align-self: flex-start; margin-top: 18px; }

.day-heading {
    grid-column: 1 / -1;
    margin: 14px 0 -4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--app-border-soft);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.day-heading:first-child { margin-top: 0; }
.leader-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: var(--app-text); font-size: 0.92rem; }
.lot-cta { margin-top: 12px; width: 100%; }
.lot-card .ended-cta { display: none; }
.lot-card.is-ended .ended-cta { display: inline-flex; cursor: default; }
.lot-card.is-ended .active-cta { display: none; }
.lot-card.is-ended .img img { filter: grayscale(0.35) brightness(0.8); }
.lot-card.is-ended .countdown { display: none; }
.lot-card.is-ended .price-row > div:last-child .label { display: none; }
.lot-card .badge.lead { justify-self: start; margin-top: 8px; }
.section-head .count {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    font-size: 0.85rem;
    color: var(--app-gold-light);
    vertical-align: middle;
}

.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Latest bids */
.bid-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.bid-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--panel-bg);
    border: 1px solid var(--app-border-soft);
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: var(--app-text);
    transition: border-color 0.15s;
}

.bid-item:hover { border-color: var(--app-gold); color: var(--app-text); }
.bid-item img, .bid-item .ph { width: 62px; height: 62px; object-fit: cover; border-radius: 6px; background: #0b0b0a; flex: 0 0 auto; border: 1px solid var(--app-border-soft); }
.bid-item strong { display: block; color: var(--app-text); }
.bid-item .amount { color: var(--app-gold-light); font-weight: 800; }
.bid-item .meta { color: var(--app-muted); font-size: 0.85rem; }

/* Panels */
.panel, .auction-hero, .bid-panel, .lot-card, .login-box {
    background: var(--panel-bg);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: var(--panel-shadow);
    color: var(--app-text);
}

.panel { padding: 22px; margin-top: 22px; }
.panel h2, .panel h3 { margin-top: 0; }

/* Auction page */
.auction-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 30px;
    align-items: start;
    padding: 24px;
}

.auction-hero img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--app-border-soft); }
.auction-hero h1 { margin-top: 0; }
.description { white-space: pre-line; line-height: 1.65; color: var(--app-muted); }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--app-border-soft); color: var(--app-muted); font-size: 0.92rem; }
.meta-row strong { color: var(--app-gold-light); font-weight: 700; }

.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.lot-card {
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lot-card:hover { border-color: var(--app-gold); box-shadow: 0 0 0 2px rgba(212, 168, 79, 0.2), 0 16px 42px rgba(0, 0, 0, 0.45); color: var(--app-text); }
.lot-card .img { aspect-ratio: 4 / 3; background: #0b0b0a; border-bottom: 1px solid var(--app-border-soft); }
.lot-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-card .body { padding: 16px; display: grid; gap: 4px; }
.lot-card h3 { margin: 0; font-size: 1.12rem; color: var(--app-gold-light); }
.ring { color: var(--app-muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }

.price-row { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--app-border-soft); }
.label { color: var(--app-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--app-gold-light); }

.flash-change { animation: price-flash 1.2s ease-out; }
@keyframes price-flash { from { text-shadow: 0 0 18px rgba(244, 210, 122, 0.95); } to { text-shadow: none; } }

.countdown { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--app-text); }
.countdown.soon { color: var(--app-danger); }
.countdown.done { color: var(--app-muted); }

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: 1px solid var(--app-border);
    color: var(--app-gold-light);
    background: rgba(212, 168, 79, 0.12);
    vertical-align: middle;
}

.badge.lead { background: rgba(34, 197, 94, 0.14); border-color: rgba(134, 239, 172, 0.45); color: #bbf7d0; }
.badge.ended { color: var(--app-muted); border-color: var(--app-border-soft); background: transparent; }
.badge.draft { background: rgba(212, 168, 79, 0.2); }

/* Lot page */
.lot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
    grid-template-areas: "gallery panel" "info panel";
    gap: 0 28px;
    align-items: start;
}

.lot-gallery { grid-area: gallery; }
.lot-info { grid-area: info; }
.lot-layout .bid-panel { grid-area: panel; }

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #0b0b0a;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    display: block;
}

.gallery-stage { position: relative; }
.gallery-video:not([hidden]) ~ .gallery-count { top: 12px; bottom: auto; }
.gallery-video:not([hidden]) ~ .gallery-nav { top: 42%; }
.gallery-video { width: 100%; aspect-ratio: 4 / 3; background: #000; border: 1px solid var(--app-border); border-radius: 10px; display: block; }
.thumb-video { position: relative; display: inline-block; width: 84px; height: 64px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 1px solid var(--app-border-soft); opacity: 0.75; background: #000; }
.thumb-video.on, .thumb-video:hover { border-color: var(--app-gold-light); opacity: 1; }
.thumb-video img, .thumb-video video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; opacity: 1; pointer-events: none; }
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; color: var(--app-gold-light); font-size: 1.3rem; text-shadow: 0 0 8px #000; pointer-events: none; }
.thumb-edit video { width: 130px; height: 98px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 6px; border: 1px solid var(--app-border-soft); background: #000; }
.processing-box { width: 130px; height: 98px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--app-border); border-radius: 6px; color: var(--app-muted); font-size: 0.82rem; margin-bottom: 6px; }
.gallery-main { cursor: zoom-in; }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--app-border);
    background: rgba(6, 6, 6, 0.65);
    color: var(--app-gold-light);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0 0 4px;
}

.gallery-nav:hover { background: rgba(32, 24, 11, 0.9); border-color: var(--app-gold); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(6, 6, 6, 0.7);
    border: 1px solid var(--app-border-soft);
    color: var(--app-gold-light);
    font-size: 0.85rem;
    font-weight: 700;
}

.gallery-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--app-border-soft);
    background: rgba(6, 6, 6, 0.7);
    color: var(--app-gold-light);
    cursor: pointer;
    font-size: 1.1rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 70px;
}

.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--app-border-soft); border-radius: 6px; }
.lightbox .gallery-nav.prev { left: 18px; }
.lightbox .gallery-nav.next { right: 18px; }
.lightbox .gallery-count { left: 50%; transform: translateX(-50%); bottom: 16px; }

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--app-border);
    background: rgba(6, 6, 6, 0.65);
    color: var(--app-gold-light);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.lot-card .img { position: relative; }
.photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(6, 6, 6, 0.75);
    border: 1px solid var(--app-border-soft);
    color: var(--app-gold-light);
    font-size: 0.78rem;
    font-weight: 700;
}

.dropzone {
    position: relative;
    display: grid !important;
    gap: 6px;
    place-items: center;
    text-align: center;
    padding: 26px 18px;
    border: 1.5px dashed var(--app-border);
    border-radius: 10px;
    background: rgba(212, 168, 79, 0.05);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.dropzone:hover, .dropzone.over { background: rgba(212, 168, 79, 0.12); border-color: var(--app-gold-light); }
.dropzone strong { color: var(--app-gold-light); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.previews { margin-top: 12px; }
.previews:empty { display: none; }

.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.gallery-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--app-border-soft); opacity: 0.7; }
.gallery-thumbs img.on, .gallery-thumbs img:hover { border-color: var(--app-gold-light); opacity: 1; }

.bid-panel { padding: 22px; position: sticky; top: 20px; }
.bid-panel .big-price { font-size: 2.4rem; line-height: 1.1; margin: 4px 0 8px; text-shadow: 0 0 18px rgba(244, 210, 122, 0.2); }
.bid-panel .big-countdown { font-size: 1.5rem; }
.stats { margin-top: 16px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--app-border-soft); color: var(--app-muted); }
.stat-row > :last-child { color: var(--app-text); }
.stat-row:last-child { border-bottom: 0; }

.bid-form { display: flex; gap: 8px; margin-top: 16px; }

input[type=text], input[type=number], input[type=password], input[type=datetime-local], input[type=file], textarea, select {
    font: inherit;
    padding: 10px 12px;
    background: #0b0b0a;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: var(--app-text);
}

input::placeholder, textarea::placeholder { color: rgba(200, 189, 159, 0.72); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--app-gold-light); box-shadow: 0 0 0 3px rgba(212, 168, 79, 0.18); }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(1) saturate(3); }

.bid-form input { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 700; }

.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold-gradient);
    border: 1px solid #f4d27a;
    color: #0a0907;
    border-radius: 8px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(212, 168, 79, 0.24);
}

.button:hover { filter: brightness(1.08); color: #0a0907; }
.button:disabled { opacity: 0.6; cursor: wait; }

.button.secondary { background: linear-gradient(180deg, #20180b, #0d0d0c); color: var(--app-gold-light); border: 1px solid var(--app-border); box-shadow: none; }
.button.secondary:hover { color: var(--app-gold-light); border-color: var(--app-gold); }
.button.danger { background: linear-gradient(180deg, #b91c1c, #7f1d1d); border-color: rgba(248, 113, 113, 0.55); color: #fff1f2; box-shadow: none; }
.button.small { padding: 6px 12px; font-size: 0.88rem; }

.button.facebook {
    width: 100%;
    font-size: 1.05rem;
    padding: 13px 18px;
    background: #1877f2;
    border-color: #4b93f5;
    color: #fff;
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.22);
}

.button.facebook:hover { color: #fff; }
.button.facebook svg { width: 22px; height: 22px; fill: #fff; }

.quick-bids { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.quick-bids button {
    background: transparent;
    border: 1px solid var(--app-border);
    color: var(--app-gold-light);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.quick-bids button:hover { background: rgba(212, 168, 79, 0.14); }

.bid-message { margin-top: 10px; min-height: 1.2em; font-weight: 700; }
.bid-message.error { color: var(--app-danger); }
.bid-message.ok { color: var(--app-gold-light); }
.rule-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--app-border-soft); color: var(--app-muted); font-size: 0.86rem; line-height: 1.5; }

.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--app-border-soft); }
.history li:last-child { border-bottom: 0; }
.history li strong { color: var(--app-text); }
.history li:first-child strong { color: var(--app-gold-light); }
.history .time { color: var(--app-muted); font-size: 0.82rem; }

.breadcrumb { font-size: 0.9rem; margin-bottom: 10px; color: var(--app-muted); }
.breadcrumb a { text-decoration: none; color: var(--app-muted); }
.breadcrumb a:hover { color: var(--app-gold-light); }

/* Login */
.login-box { max-width: 440px; margin: 30px auto; padding: 32px; text-align: center; }
.login-box img { filter: drop-shadow(0 0 10px rgba(212, 168, 79, 0.25)); }
.login-box h1 { font-size: 1.6rem; }
.dev-login { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--app-border); text-align: left; }
.dev-login h3 { margin: 0 0 6px; font-size: 1rem; }
.dev-login .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dev-login .row form { margin: 0; }
.dev-login input[type=text] { flex: 1; min-width: 0; }

/* Forms / admin */
.form-grid { display: grid; gap: 16px; max-width: 780px; }
.form-grid.panel { max-width: 780px; }
.form-grid label { display: grid; gap: 6px; font-weight: 700; color: var(--app-muted); }
.form-grid textarea { min-height: 150px; resize: vertical; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .check { display: flex; align-items: center; gap: 10px; color: var(--app-text); }
.form-grid .check input { width: 18px; height: 18px; accent-color: var(--app-gold); }
.help { color: var(--app-muted); font-weight: 400; font-size: 0.86rem; opacity: 0.85; }
code { background: #0b0b0a; border: 1px solid var(--app-border-soft); border-radius: 6px; padding: 3px 8px; color: var(--app-gold-light); word-break: break-all; }

.admin-bar { background: linear-gradient(90deg, #20180b, #0d0d0c); border-bottom: 1px solid var(--app-border); font-size: 0.9rem; }
.admin-bar .inner { max-width: 1120px; margin: 0 auto; padding: 7px 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.admin-bar strong { color: var(--app-gold-light); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.admin-bar a { color: var(--app-link); text-decoration: none; }
.admin-bar a:hover { color: var(--app-gold-light); }
.admin-bar form { margin: 0 0 0 auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel-bg);
    border: 1px solid var(--app-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--panel-shadow);
}

table.data th, table.data td { padding: 11px 13px; border-bottom: 1px solid var(--app-border-soft); text-align: left; vertical-align: middle; }
table.data th { color: var(--app-gold-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(212, 168, 79, 0.06); }
table.data tr:hover td { background: rgba(212, 168, 79, 0.05); }
table.data tr.cancelled td { text-decoration: line-through; color: var(--app-muted); opacity: 0.7; }
table.data img { width: 64px; height: 46px; object-fit: cover; border-radius: 5px; border: 1px solid var(--app-border-soft); display: block; }
table.data a { text-decoration: none; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.thumb-edit { display: flex; gap: 14px; flex-wrap: wrap; }
.thumb-edit figure { margin: 0; text-align: center; }
.thumb-edit img { width: 130px; height: 98px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 6px; border: 1px solid var(--app-border-soft); }

.site-footer { text-align: center; color: var(--app-muted); font-size: 0.88rem; padding: 26px 20px 34px; }
.site-footer a { color: var(--app-muted); }

@media (max-width: 820px) {
    .header-inner { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
    .brand { font-size: 1.2rem; }
    .brand img { width: 60px; height: 60px; }
    .main-nav { margin-left: 0; gap: 14px; justify-content: flex-start; width: 100%; }
    main { padding: 20px 16px 50px; }
    h1 { font-size: 1.65rem; }
    .auction-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .auction-banner { grid-template-columns: minmax(0, 1fr); }
    .banner-img { min-height: 0; aspect-ratio: 16 / 9; }
    .banner-body { padding: 18px; }
    .lot-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "panel" "info"; gap: 18px; }
    .lot-info { margin-top: 0; }
    .lightbox { padding: 50px 10px; }
    .lightbox .gallery-nav { top: auto; bottom: 10px; transform: none; }
    .bid-panel { position: static; }
    .form-grid .two { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
    table.data { display: block; overflow-x: auto; }
}
