/* AuctionHub — giao diện tiếng Việt, sáng, rõ ràng và thân thiện với thiết bị di động. */
:root {
    color-scheme: light;
    --bg: #f7f5f1;
    --panel: #ffffff;
    --panel-soft: #fbf9f6;
    --line: #e9e3dc;
    --line-strong: #d8cfc5;
    --text: #282c32;
    --muted: #70747c;
    --brand: #87352e;
    --brand-strong: #712820;
    --brand-soft: #f7ece9;
    --gold: #d8a653;
    --gold-soft: #fbf3e5;
    --green: #19764a;
    --green-soft: #e9f6ee;
    --amber: #956215;
    --amber-soft: #fff4d8;
    --red: #b63838;
    --red-soft: #fff0ef;
    --radius: 16px;
    --shadow-sm: 0 4px 16px rgba(42, 31, 22, .045);
    --shadow-md: 0 16px 40px rgba(42, 31, 22, .085);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid rgba(216, 166, 83, .7);
    outline-offset: 2px;
}
::selection { background: #eed4b0; color: #3d2720; }

/* Thanh thông tin trên cùng */
.topbar { min-height: 34px; background: var(--brand-strong); color: #fff5ed; font-size: 12px; }
.topbar-inner {
    max-width: 1440px; min-height: 34px; margin: auto; padding: 0 5.5%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-inner > span { display: flex; align-items: center; gap: 8px; }
.topbar-inner a { color: #fff; text-decoration: none; opacity: .92; }
.topbar-inner a:hover { text-decoration: underline; }
.topbar-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #e7bf77; }

/* Header */
.nav {
    position: sticky; top: 0; z-index: 20;
    min-height: 84px; padding: 13px 5.5%;
    display: flex; align-items: center; gap: 28px;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 5px 20px rgba(35, 27, 20, .035);
    backdrop-filter: blur(18px);
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
    width: 43px; height: 43px; display: grid; place-items: center;
    border-radius: 13px 13px 13px 4px; background: var(--brand); color: #fff;
    font-size: 25px; font-weight: 900; font-family: Georgia, serif;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.brand-name { display: block; font-size: 21px; line-height: 1.05; letter-spacing: -.6px; font-weight: 850; }
.brand-name > span { color: var(--brand); }
.brand-name small { display: block; margin-top: 5px; color: #8b8076; font-size: 8px; letter-spacing: 1.1px; font-weight: 800; }
.search {
    display: flex; flex: 1; align-items: center; min-width: 160px; max-width: 620px; margin: 0 auto;
    min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px;
    background: #faf9f7; transition: border-color .18s, box-shadow .18s, background .18s;
}
.search:focus-within { background: #fff; border-color: #b88173; box-shadow: 0 0 0 4px rgba(135, 53, 46, .08); }
.search-icon { position: relative; width: 17px; height: 17px; flex: 0 0 17px; margin: 0 13px 0 15px; }
.search-icon::before { content: ""; position: absolute; width: 9px; height: 9px; left: 0; top: 0; border: 2px solid var(--brand); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; left: 10px; top: 11px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); transform-origin: left center; }
.search input { flex: 1; min-width: 0; padding: 12px 10px; background: transparent; border: 0; color: var(--text); outline: 0; }
.search input::placeholder { color: #97918b; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search select { align-self: stretch; max-width: 155px; padding: 0 11px; border: 0; border-left: 1px solid var(--line); border-radius: 0 11px 11px 0; background: #f3f0eb; color: #57504a; font-size: 12px; font-weight: 650; outline: 0; }
.nav nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 0 0 auto; }
.nav-link { padding: 10px 9px; color: #5f5d5a; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-link.current { color: var(--brand); }
.btn, .ghost, .icon, .chip {
    min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px;
    font-weight: 750; font-size: 13px; transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--brand); color: #fff; text-decoration: none; box-shadow: 0 4px 9px rgba(135, 53, 46, .12); }
.btn:hover { background: var(--brand-strong); box-shadow: 0 7px 18px rgba(135, 53, 46, .17); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.ghost, .icon { border-color: var(--line); background: #fff; color: #514d49; }
.ghost:hover, .icon:hover { border-color: #d0b5ab; background: var(--brand-soft); color: var(--brand); }
.btn.small { min-height: 39px; padding: 0 14px; white-space: nowrap; }
.nav-sell { min-height: 42px; padding: 0 14px; white-space: nowrap; }
.icon { position: relative; width: 41px; min-width: 41px; padding: 0; font-size: 22px; }
.icon b { position: absolute; top: -6px; right: -5px; min-width: 18px; padding: 3px 5px; border-radius: 20px; background: var(--red); color: white; font-size: 10px; line-height: 1; }
.auth-nav { display: flex; align-items: center; gap: 8px; }
.whoami { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #514d49; font-size: 13px; font-weight: 700; }
.nav nav form { margin: 0; }

/* Hero */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    max-width: 1440px; min-height: 420px; margin: 0 auto; padding: 66px 6.5% 62px;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 68px;
}
.hero::before { content: ""; position: absolute; z-index: -1; width: 410px; height: 410px; top: -250px; left: 31%; border-radius: 50%; background: #e7d8c8; opacity: .25; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 310px; height: 310px; right: -170px; bottom: -150px; border: 1px solid #e0c9b4; border-radius: 50%; box-shadow: 0 0 0 35px rgba(224, 201, 180, .1), 0 0 0 70px rgba(224, 201, 180, .08); }
.hero-copy { max-width: 720px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.eyebrow-line { width: 25px; height: 2px; display: inline-block; background: var(--gold); }
.hero h1 { margin: 20px 0 17px; color: #2b2927; font-size: clamp(39px, 4.25vw, 62px); line-height: 1.12; letter-spacing: -2px; font-weight: 850; }
.hero h1 strong { color: var(--brand); font-weight: 850; }
.hero-copy > p { max-width: 610px; margin: 0; color: #6c6965; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 27px 0 25px; }
.btn-large, .ghost.big { min-height: 49px; padding: 0 19px; }
.ghost.big { background: rgba(255, 255, 255, .58); }
.trust-points { display: flex; flex-wrap: wrap; gap: 18px; color: #67615b; font-size: 12px; }
.trust-points span { display: inline-flex; align-items: center; gap: 6px; }
.trust-points i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #e3f1e6; color: var(--green); font-style: normal; font-size: 10px; font-weight: 900; }
.hero-card {
    position: relative; min-width: 0; overflow: hidden; padding: 26px 28px 20px;
    border: 1px solid #e8d6c6; border-radius: 22px; background: linear-gradient(145deg, #fff 0%, #fffaf1 58%, #f7e8d2 100%);
    box-shadow: 0 22px 60px rgba(85, 53, 29, .11);
}
.hero-card::before { content: ""; position: absolute; width: 250px; height: 250px; right: -105px; top: -135px; border-radius: 50%; background: rgba(216, 166, 83, .16); }
.hero-card-top, .hero-card-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; font-size: 25px; font-weight: 800; }
.live-label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 30px; background: #e8f5ec; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .07em; }
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: #27905c; box-shadow: 0 0 0 3px #27905c1c; }
.hero-card-kicker { position: relative; margin: 28px 0 8px; color: #74685e; font-size: 13px; font-weight: 650; }
.hero-price { position: relative; overflow-wrap: anywhere; color: #292723; font-size: clamp(30px, 3.5vw, 43px); line-height: 1.2; letter-spacing: -1.3px; font-weight: 900; }
.hero-card-note { position: relative; margin: 10px 0 0; color: #82786f; font-size: 11px; line-height: 1.55; }
.mini-chart { position: relative; height: 100px; margin-top: 20px; overflow: hidden; border-bottom: 1px solid #ead9c3; }
.chart-grid { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 24px, #cfb99e35 25px, transparent 26px); }
.mini-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-card-bottom { padding-top: 14px; color: #82766b; font-size: 11px; }
.hero-card-bottom span:last-child { color: var(--green); font-weight: 800; }

/* Danh sách phiên */
.section { max-width: 1440px; margin: auto; padding: 60px 6.5%; }
.auction-section { border-top: 1px solid #eee8e0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 12px 0 24px; }
.section h2 { margin: 8px 0 0; color: #2c2b29; font-size: clamp(27px, 3vw, 36px); line-height: 1.2; letter-spacing: -.8px; }
.section-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.result-note { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e7e0d7; border-radius: 10px; background: rgba(255, 255, 255, .58); color: #6d6862; font-size: 11px; }
.result-dot { width: 7px; height: 7px; border-radius: 50%; background: #248553; box-shadow: 0 0 0 3px #24855318; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin: 0 0 22px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); }
.filter-label { display: inline-flex; align-items: center; gap: 8px; padding-right: 15px; border-right: 1px solid var(--line); color: #5c5650; font-size: 12px; font-weight: 800; white-space: nowrap; }
.filter-label span { color: var(--brand); font-size: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 35px; padding: 0 14px; border-color: transparent; border-radius: 9px; background: transparent; color: #68625b; font-size: 12px; }
.chip:hover { background: #f8eeeb; color: var(--brand); }
.chip.active { border-color: #e4c8c2; background: var(--brand-soft); color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.auction { min-width: 0; overflow: hidden; border: 1px solid #e7e1da; border-radius: 17px; background: var(--panel); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.auction:hover { transform: translateY(-4px); border-color: #d7c4ba; box-shadow: var(--shadow-md); }
.pic { position: relative; height: 210px; overflow: hidden; background: #eee9e2; }
.pic::after { content: ""; position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(33, 27, 23, .2)); }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.auction:hover .pic img { transform: scale(1.035); }
.tag, .status { position: absolute; z-index: 1; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .68); border-radius: 7px; font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.tag { top: 12px; left: 12px; background: rgba(255, 255, 255, .94); color: #5b5049; }
.status { bottom: 12px; left: 12px; }
.status.live { border-color: #d3ebdc; background: #e8f6ed; color: #176a41; }
.status.scheduled { border-color: #f3e1b2; background: #fff5da; color: #885d14; }
.status.ended { border-color: #eed0ce; background: #fff0ef; color: #a43131; }
.body { padding: 18px 18px 17px; }
.type { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #8a5d38; font-size: 10px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.body h3 { display: -webkit-box; min-height: 48px; margin: 9px 0 6px; overflow: hidden; color: #292b2f; font-size: 17px; line-height: 1.4; letter-spacing: -.25px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.body p { display: -webkit-box; height: 42px; margin: 0 0 15px; overflow: hidden; color: #77736f; font-size: 12px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price { min-height: 56px; padding-top: 13px; display: flex; justify-content: space-between; gap: 9px; border-top: 1px solid #eee9e3; color: #87817a; font-size: 11px; }
.price > span { min-width: 0; }
.price > span:last-child { text-align: right; }
.price small, .dashstats small { display: block; margin-top: 5px; color: #2e302f; font-size: 14px; font-weight: 850; overflow-wrap: anywhere; }
.timer, .countdown { margin: 11px 0 14px; color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 850; font-size: 12px; }
.timer::before { content: "◷"; margin-right: 6px; color: #a27c4d; font-size: 14px; }
.full { width: 100%; }

/* Hướng dẫn */
.how { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 58px; border-top: 1px solid #e9e1d8; }
.how-intro h2 { max-width: 360px; margin-top: 13px; }
.how-intro p { max-width: 390px; margin: 14px 0 19px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.text-link { color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step-card { min-width: 0; padding: 22px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.step-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 24px; font-weight: 800; }
.step-number { color: #a17b51; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.steps h3 { margin: 9px 0 7px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* Footer */
.site-footer { border-top: 1px solid #e5ddd4; background: #fff; }
.footer-main { max-width: 1440px; margin: auto; padding: 32px 6.5%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.footer-brand .brand-mark { width: 38px; height: 38px; font-size: 22px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-main > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-main > a:last-child { color: var(--brand); text-decoration: none; font-size: 12px; font-weight: 800; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 6.5%; border-top: 1px solid #f0ece6; color: #8b857e; font-size: 11px; }

/* Modal, detail, dashboards and forms created by app.js */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 18px; display: grid; place-items: center; background: rgba(33, 29, 26, .52); backdrop-filter: blur(5px); }
.hidden { display: none !important; }
.modal { position: relative; width: min(1000px, 100%); max-height: 94vh; overflow: auto; border: 1px solid rgba(255, 255, 255, .8); border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(25, 20, 17, .24); }
.close { position: sticky; float: right; top: 12px; margin: 12px 12px -52px 0; z-index: 4; width: 38px; height: 38px; border: 1px solid #e8e0d9; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #5f5954; font-size: 26px; line-height: 1; box-shadow: 0 3px 12px #382c2010; }
.close:hover { background: var(--brand-soft); color: var(--brand); }
.detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail-img { min-height: 500px; overflow: hidden; background: #f3eee8; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 0; padding: 38px 32px 30px; }
.detail-info h2 { margin: 11px 0 10px; font-size: 28px; line-height: 1.25; letter-spacing: -.65px; }
.detail-info > p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.detail-price { margin: 22px 0 8px; color: var(--brand); font-size: clamp(28px, 3vw, 38px); font-weight: 900; overflow-wrap: anywhere; }
.reserve { color: var(--muted); font-size: 12px; line-height: 1.7; }
.countdown { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 8px; background: var(--gold-soft); }
.bidbox { margin: 22px 0; padding: 18px; border: 1px solid #e8ded2; border-radius: 14px; background: #fbf8f3; }
.bidbox label { display: block; margin-bottom: 9px; color: #403a35; font-size: 13px; font-weight: 800; }
.bidbox > div { display: flex; flex-wrap: wrap; gap: 8px; }
.bidbox input { flex: 1; min-width: 140px; min-height: 43px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); }
.bidbox small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.history, .list { margin-top: 14px; }
.history > div, .list > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #eee8e1; }
.history > div:last-child, .list > div:last-child { border-bottom: 0; }
.history span, .list span { min-width: 0; color: #4c4a46; font-size: 13px; overflow-wrap: anywhere; }
.history b, .list b { text-align: right; font-size: 13px; overflow-wrap: anywhere; }
.empty { grid-column: 1 / -1; padding: 46px 20px; text-align: center; border: 1px dashed #d7cbc0; border-radius: 15px; background: rgba(255, 255, 255, .62); color: var(--muted); }
.empty::before { content: "⌕"; display: block; margin-bottom: 5px; color: #b49a83; font-size: 30px; }
.empty.compact { padding: 20px; }

.dash, .formpage { padding: 34px; }
.dash h2, .formpage h2 { margin: 10px 0 8px; color: #2b2927; font-size: clamp(24px, 3vw, 31px); line-height: 1.25; letter-spacing: -.6px; }
.dash > p, .formpage > p { color: var(--muted); line-height: 1.65; }
.dashstats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.dashstats > b { flex: 1 1 145px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fbf9f6; font-size: 23px; color: var(--brand); }
.dashstats small { color: #77716a; font-size: 11px; font-weight: 650; }
.list > div > span { flex: 1; }
.list small { display: block; margin-top: 5px; color: #858079; font-size: 11px; }
.formpage form { display: grid; gap: 14px; margin-top: 20px; }
.formpage input, .formpage textarea, .formpage select { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.formpage input:focus, .formpage textarea:focus, .formpage select:focus { border-color: #bd877d; box-shadow: 0 0 0 3px rgba(135, 53, 46, .07); }
.formpage textarea { min-height: 104px; resize: vertical; }
.field-label { display: grid; gap: 7px; color: #5b554f; font-size: 12px; font-weight: 750; }
.image-upload-field input[type="file"] { padding: 8px; cursor: pointer; background: #fbf9f6; }
.file-help { color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.6; }
.image-preview { width: 190px; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; }
.two, .money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-with-suffix { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; }
.input-with-suffix:focus-within { border-color: #bd877d; box-shadow: 0 0 0 3px rgba(135, 53, 46, .07); }
.input-with-suffix input { min-width: 0; flex: 1; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.input-with-suffix span { display: flex; align-items: center; padding: 0 13px 0 5px; color: #8a5149; font-size: 13px; font-weight: 850; }
.optional-label { color: #91887f; font-weight: 450; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.55; }
.schedule-box { padding: 16px; border: 1px solid #e7ded3; border-radius: 13px; background: #fbf9f6; }
.schedule-title { margin-bottom: 11px; color: #443b35; font-size: 13px; font-weight: 850; }
.end-title { margin-top: 15px; }
.success-text { color: var(--green); font-size: 13px; line-height: 1.6; }
.error-text { color: var(--red); font-size: 13px; line-height: 1.6; }

/* Thông báo */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: min(380px, calc(100vw - 36px)); }
.toast { margin-top: 8px; padding: 14px 16px; border: 1px solid #cfe6d6; border-left: 4px solid var(--green); border-radius: 12px; background: #fff; color: #353c37; box-shadow: var(--shadow-md); font-size: 13px; line-height: 1.55; }
.toast.error { border-color: #f0d0cc; border-left-color: var(--red); }
.skeleton { height: 420px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(110deg, #eee9e2 8%, #f8f5f0 18%, #eee9e2 33%); background-size: 200% 100%; animation: skeleton-shimmer 1.4s linear infinite; }
@keyframes skeleton-shimmer { to { background-position-x: -200%; } }

/* Đăng nhập / đăng ký */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 15% 12%, rgba(216, 166, 83, .13), transparent 25%), radial-gradient(circle at 88% 85%, rgba(135, 53, 46, .1), transparent 28%), var(--bg); }
.auth-card { width: min(460px, 100%); padding: 38px; border: 1px solid #e9e1d8; border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: 0 25px 70px rgba(48, 34, 23, .1); }
.auth-card .brand { margin-bottom: 25px; }
.auth-card h1 { margin: 0 0 9px; color: #2c2926; font-size: 30px; letter-spacing: -.8px; }
.auth-card > p { color: var(--muted); line-height: 1.65; font-size: 13px; }
.auth-card form { display: grid; gap: 17px; margin: 25px 0 20px; }
.auth-card .field { display: grid; gap: 8px; }
.auth-card label { color: #504a44; font-size: 12px; font-weight: 800; }
.auth-card a:not(.brand) { color: var(--brand); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.auth-card :focus-visible { outline: 3px solid rgba(216, 166, 83, .7); outline-offset: 2px; }
.auth-card input { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-card input:focus { border-color: #bd877d; box-shadow: 0 0 0 3px rgba(135, 53, 46, .07); }
.auth-card input[aria-invalid="true"] { border-color: var(--red); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); min-width: 48px; min-height: 35px; padding: 5px 8px; border: 0; border-radius: 7px; background: #f4efea; color: #6e655d; font-size: 12px; font-weight: 750; }
.pw-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.hint { color: var(--muted); font-size: 11px; }
.alert { margin: 15px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.6; }
.alert.error { color: #98332e; background: var(--red-soft); border-color: #f0d0cc; }
.alert.ok { color: #176a41; background: var(--green-soft); border-color: #cfe7d6; }
.demo-box { padding: 12px 14px; border: 1px solid #eadbca; border-radius: 10px; background: #fbf6ee; color: #6e6255 !important; font-size: 12px; }

/* Responsive */
@media (max-width: 1200px) {
    .nav { gap: 16px; padding-inline: 4%; }
    .nav-link { display: none; }
    .hero, .section { padding-left: 5%; padding-right: 5%; }
    .hero { gap: 38px; }
    .footer-main { padding-inline: 5%; }
}
@media (max-width: 900px) {
    .topbar-inner { padding-inline: 5%; }
    .nav { min-height: auto; flex-wrap: wrap; gap: 12px 18px; padding: 13px 5%; }
    .brand { min-width: 180px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .nav nav { flex: 1 1 auto; justify-content: flex-end; }
    .nav nav .ghost { min-height: 38px; padding-inline: 10px; font-size: 12px; }
    .hero { grid-template-columns: 1fr .8fr; gap: 25px; padding-top: 50px; padding-bottom: 50px; }
    .hero h1 { font-size: clamp(36px, 5vw, 49px); letter-spacing: -1.3px; }
    .hero-card { padding: 23px; }
    .how { grid-template-columns: 1fr; gap: 28px; }
    .how-intro p { max-width: 650px; }
}
@media (max-width: 640px) {
    html { scroll-padding-top: 150px; }
    .topbar-inner { justify-content: center; padding: 8px 4%; font-size: 10px; text-align: center; }
    .topbar-inner a { display: none; }
    .nav { position: sticky; padding: 12px 4%; gap: 11px; }
    .brand { min-width: 0; gap: 8px; }
    .brand-mark { width: 37px; height: 37px; border-radius: 11px 11px 11px 4px; font-size: 21px; }
    .brand-name { font-size: 19px; }
    .brand-name small { font-size: 7px; letter-spacing: .85px; }
    .nav nav { flex: 1 0 100%; order: 4; width: 100%; justify-content: flex-start; gap: 6px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: thin; }
    .nav nav .ghost { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
    .nav-sell { min-height: 38px; padding-inline: 11px; font-size: 12px; }
    .nav nav .icon { flex: 0 0 38px; width: 38px; min-width: 38px; min-height: 38px; }
    .nav nav .auth-nav { flex: 0 0 auto; }
    .nav .search { order: 3; min-height: 42px; }
    .search-icon { margin-left: 11px; margin-right: 8px; }
    .search input { padding: 10px 7px; font-size: 13px; }
    .search select { max-width: 118px; padding: 0 6px; font-size: 10px; }
    .hero { grid-template-columns: 1fr; padding: 42px 5% 40px; gap: 30px; }
    .hero h1 { margin-top: 15px; font-size: clamp(35px, 9vw, 46px); line-height: 1.13; letter-spacing: -1.2px; }
    .hero-copy > p { font-size: 14px; line-height: 1.75; }
    .hero-actions { gap: 8px; margin: 22px 0; }
    .btn-large, .ghost.big { flex: 1 1 auto; min-height: 45px; padding: 0 12px; font-size: 12px; }
    .trust-points { gap: 10px 14px; font-size: 11px; }
    .hero-card { padding: 21px; border-radius: 17px; }
    .hero-card-kicker { margin-top: 20px; }
    .hero-price { font-size: 34px; }
    .mini-chart { height: 80px; }
    .section { padding: 40px 5%; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 19px; }
    .section h2 { font-size: 28px; }
    .section-subtitle { font-size: 13px; }
    .result-note { align-items: flex-start; font-size: 10px; line-height: 1.5; }
    .filter-bar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px; }
    .filter-label { padding: 0; border: 0; }
    .filters { width: 100%; gap: 6px; }
    .chip { min-height: 33px; padding-inline: 10px; font-size: 11px; }
    .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .auction { display: grid; grid-template-columns: minmax(105px, 36%) minmax(0, 1fr); align-items: stretch; }
    .pic { height: auto; min-height: 100%; }
    .pic img { position: absolute; inset: 0; }
    .tag, .status { left: 7px; max-width: calc(100% - 14px); padding: 5px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
    .tag { top: 7px; }
    .status { bottom: 7px; }
    .body { padding: 13px 12px; }
    .body h3 { min-height: unset; margin: 7px 0 5px; font-size: 14px; line-height: 1.35; }
    .body p { height: 33px; margin-bottom: 10px; font-size: 10px; line-height: 1.55; }
    .type { font-size: 8px; line-height: 1.4; }
    .price { min-height: 0; padding-top: 9px; font-size: 9px; }
    .price small { font-size: 11px; }
    .timer, .countdown { margin: 8px 0 10px; font-size: 10px; }
    .body .btn { min-height: 36px; padding-inline: 7px; font-size: 10px; }
    .how { gap: 22px; }
    .steps { grid-template-columns: 1fr; gap: 9px; }
    .step-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 13px; padding: 15px; }
    .step-icon { grid-row: 1 / span 3; margin: 0; }
    .step-number { align-self: end; }
    .steps h3 { margin: 4px 0; }
    .steps p { font-size: 11px; }
    .footer-main { grid-template-columns: 1fr; gap: 13px; padding: 25px 5%; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding: 14px 5%; font-size: 10px; }
    .modal-backdrop { padding: 8px; }
    .modal { max-height: 96vh; border-radius: 16px; }
    .detail { grid-template-columns: 1fr; }
    .detail-img { min-height: 0; height: 220px; max-height: 220px; }
    .detail-info { padding: 25px 18px 22px; }
    .detail-info h2 { font-size: 23px; }
    .detail-price { font-size: 30px; }
    .bidbox { padding: 13px; }
    .bidbox > div { flex-direction: column; }
    .bidbox .btn { min-height: 42px; }
    .dash, .formpage { padding: 25px 18px; }
    .dashstats > b { padding: 13px; font-size: 20px; }
    .two, .money-grid { grid-template-columns: 1fr; }
    .schedule-box { padding: 12px; }
    .close { position: sticky; top: 8px; margin: 8px 8px -46px 0; width: 36px; height: 36px; }
    .auth-page { padding: 16px; }
    .auth-card { padding: 27px 22px; border-radius: 17px; }
    .auth-card h1 { font-size: 27px; }
    .skeleton { height: 250px; }
}
/* ========================================================
   GIAO DIỆN NÂNG CẤP: BỘ LỌC, XEM TỔNG THỂ, CÁ NHÂN HÓA
   ======================================================== */

/* Bộ lọc & điều khiển nâng cao */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-subgroup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.status-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.chip-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: all .2s ease;
}
.chip-status:hover {
    border-color: var(--line-strong);
    color: var(--text);
    background: #faf8f5;
}
.chip-status.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}
.view-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chip-watchlist {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: #4a443f;
    font-size: 13px;
    font-weight: 650;
    transition: all .2s;
}
.chip-watchlist:hover {
    background: #fff0f0;
    border-color: #f0c0c0;
    color: #b63838;
}
.chip-watchlist.active {
    background: #ffe8e8;
    border-color: #b63838;
    color: #b63838;
}
.view-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.toggle-btn {
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    transition: all .15s;
}
.toggle-btn.active {
    background: var(--brand);
    color: #fff;
}

/* Nút yêu thích trên thẻ sản phẩm */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(4px);
    color: #8c827a;
    font-size: 17px;
    display: grid;
    place-items: center;
    line-height: 1;
    transition: all .2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}
.fav-btn:hover {
    transform: scale(1.12);
    background: #fff;
    color: #d13030;
}
.fav-btn.active {
    color: #d13030;
    background: #fff;
    border-color: #f7b2b2;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: currentColor;
    margin-right: 4px;
    animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
    0% { transform: scale(.9); opacity: .7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(.9); opacity: .7; }
}

/* Thẻ sản phẩm cải tiến */
.auction {
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.auction:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(45, 32, 22, .1);
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.type-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--amber);
    background: var(--amber-soft);
    padding: 3px 8px;
    border-radius: 6px;
}
.reserve-pill {
    font-size: 11px;
    font-weight: 600;
    color: #636b75;
    background: #eceff2;
    padding: 3px 8px;
    border-radius: 6px;
}
.price-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 11px;
    border-radius: 10px;
    background: #fbf9f5;
    border: 1px solid #f0e9df;
    margin: 12px 0 10px;
}
.price-item .label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 3px;
}
.price-item .val {
    display: block;
    font-weight: 850;
    font-size: 15px;
    color: var(--text);
}
.price-item.current .val {
    color: var(--brand);
    font-size: 16px;
}
.timer-wrap {
    margin-bottom: 12px;
}
.progress-bar-bg {
    width: 100%;
    height: 5px;
    background: #eee8e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.progress-bar-bg.large {
    height: 8px;
    border-radius: 4px;
}
.progress-bar-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 3px;
    transition: width .4s ease;
}
.progress-bar-fill.live { background: #19764a; }
.progress-bar-fill.scheduled { background: #d8a653; }
.progress-bar-fill.ended { background: #888d95; }
.btn-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 750;
}

/* Chế độ xem danh sách (List View) */
.grid.list-view {
    grid-template-columns: 1fr !important;
}
.grid.list-view .auction {
    display: grid;
    grid-template-columns: 240px 1fr;
}
.grid.list-view .pic {
    height: 100%;
    min-height: 200px;
}

/* Mục sản phẩm xem gần đây */
.recently-viewed {
    padding-top: 30px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.recent-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
}
.recent-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--brand);
}
.recent-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background: #f0eae1;
}
.recent-body {
    padding: 10px;
}
.recent-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand);
}
.recent-card h4 {
    margin: 4px 0 6px;
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-price {
    font-weight: 800;
    color: var(--brand);
    font-size: 13px;
}

/* ========================================================
   MODAL XEM TỔNG THỂ (OVERVIEW MODAL)
   ======================================================== */
.detail-overview {
    padding: 30px;
}
.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}
.overview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tag-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: #f4eee7;
    color: #554d45;
    font-size: 12px;
    font-weight: 750;
}
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
}
.status-badge.live { background: var(--green-soft); color: var(--green); }
.status-badge.scheduled { background: var(--amber-soft); color: var(--amber); }
.status-badge.ended { background: #ebeeed; color: #737880; }
.type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: #fdf5ea;
    color: #925c15;
    font-size: 12px;
    font-weight: 700;
}
.id-badge {
    color: var(--muted);
    font-size: 12px;
}
.overview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #554f49;
    font-size: 12px;
    font-weight: 650;
    transition: all .2s;
}
.btn-icon-text:hover {
    background: #fbf9f6;
    border-color: var(--line-strong);
}
.btn-icon-text.active {
    color: #c92a2a;
    background: #fff0f0;
    border-color: #f3c2c2;
}

/* Grid tổng quan: 2 cột */
.overview-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 32px;
}
.overview-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f2ede6;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
}
.overview-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.overview-main-img:hover {
    transform: scale(1.04);
}
.watermark-live {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
}
.watermark-live.live { background: rgba(25, 118, 74, .9); }

/* Thẻ người bán uy tín */
.seller-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #faf8f5;
    border: 1px solid var(--line);
    margin-top: 18px;
}
.seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 850;
    display: grid;
    place-items: center;
    font-size: 16px;
}
.seller-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.verified-tick {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #2b7ae4;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    display: grid;
    place-items: center;
}
.seller-ratings {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.seller-ratings .score {
    font-weight: 750;
    color: #333;
}

/* Thông số phiên */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.spec-cell {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}
.spec-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 2px;
}
.spec-val {
    font-size: 13px;
    color: var(--text);
}

/* Cam kết an toàn */
.guarantee-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: #fbfbfb;
    border: 1px dashed var(--line);
    display: grid;
    gap: 8px;
}
.g-item {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.g-item b {
    color: var(--text);
}

/* Cột phải: Tiêu đề & Đấu giá */
.overview-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -.5px;
}
.overview-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 20px;
}
.live-price-card {
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffcf9, #fff4f1);
    border: 1px solid #f1ded9;
    box-shadow: 0 6px 20px rgba(135, 53, 46, .05);
    margin-bottom: 16px;
}
.live-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 750;
    color: var(--brand);
    letter-spacing: .5px;
}
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 11px;
}
.ping-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 1.5s infinite;
}
.live-price-value {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 900;
    color: var(--brand);
    line-height: 1.1;
    margin: 8px 0;
    letter-spacing: -1px;
    transition: color .3s ease;
}
.live-price-sub {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6d6660;
    padding-top: 8px;
    border-top: 1px solid #eedad5;
}
.countdown-card {
    padding: 14px 18px;
    border-radius: 12px;
    background: #fbf9f6;
    border: 1px solid var(--line);
    margin-bottom: 18px;
}
.countdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.countdown-label {
    font-size: 13px;
    font-weight: 700;
    color: #443e38;
}
.countdown-timer {
    font-weight: 850;
    font-size: 16px;
    color: #925c15;
    padding: 4px 10px;
    background: #fef5e7;
    border-radius: 6px;
}

/* Khu vực Quick Bid thông minh */
.smart-bid-section {
    padding: 18px;
    border-radius: 14px;
    background: #fcfbfa;
    border: 1px solid var(--line);
    margin-bottom: 20px;
}
.smart-bid-title {
    font-size: 12px;
    font-weight: 750;
    color: #554d45;
    margin-bottom: 10px;
}
.quick-bid-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.bid-chip {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #3b3530;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: all .15s ease;
}
.bid-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-1px);
}
.bid-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 750;
    color: #403a35;
    margin-bottom: 8px;
}
.bid-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.bid-input-wrapper {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
}
.bid-input-wrapper input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 16px;
    font-weight: 750;
    color: var(--brand);
    padding: 10px 0;
}
.currency-tag {
    font-weight: 800;
    color: var(--brand);
    padding-left: 6px;
}
.btn-bid {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 800;
    background: var(--brand);
    color: #fff;
    border: 0;
    font-size: 14px;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(135, 53, 46, .25);
}
.btn-bid:hover {
    background: var(--brand-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(135, 53, 46, .35);
}
.bid-help {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}
.highlight-pulse {
    animation: field-pulse .35s ease;
}
@keyframes field-pulse {
    0% { background: #ffe4e0; }
    100% { background: #fff; }
}

/* Biểu đồ giá trực quan SVG */
.trend-chart-box {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
}
.trend-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 750;
    color: #554d45;
    margin-bottom: 10px;
}
.trend-svg {
    width: 100%;
    height: 90px;
    display: block;
}

/* Lịch sử đặt giá mới */
.history-section {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.history-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}
.history-count {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f2eee8;
    color: #635d56;
    font-weight: 700;
}
.history-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}
.bid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fbf9f6;
    border: 1px solid #eee8e0;
    transition: background .15s;
}
.bid-row.leader {
    background: #fcf5ea;
    border-color: #eed6b2;
}
.bid-user {
    display: flex;
    align-items: center;
    gap: 9px;
}
.bid-avatar {
    font-size: 14px;
}
.bid-name {
    display: block;
    font-size: 12px;
    color: var(--text);
}
.lead-badge {
    font-size: 10px;
    font-weight: 750;
    color: #925c15;
    background: #fbeacf;
    padding: 1px 6px;
    border-radius: 4px;
}
.bid-meta {
    text-align: right;
}
.bid-val {
    display: block;
    font-size: 13px;
    color: var(--brand);
}
.bid-time {
    font-size: 10px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .overview-gallery {
        max-height: 280px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* === AuctionHub: category navigation and dedicated product/account pages === */
.nav { gap: 18px; padding-left: 4.2%; padding-right: 4.2%; }
.nav .search { max-width: 430px; }
.nav nav { gap: 3px; }
.nav-link { font-size: 12px; }
.nav-dropdown { position: relative; flex: 0 0 auto; }
.nav-dropdown > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown[open] > summary { color: var(--brand); }
.nav-dropdown-menu {
    position: absolute; z-index: 45; top: calc(100% + 15px); left: 50%;
    width: min(510px, calc(100vw - 28px)); padding: 12px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px;
    border: 1px solid var(--line); border-radius: 15px; background: #fff;
    box-shadow: 0 22px 55px rgba(37, 29, 23, .16); transform: translateX(-35%);
}
.nav-dropdown-menu::before { content: ""; position: absolute; top: -7px; left: 37%; width: 13px; height: 13px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.nav-dropdown-menu a { position: relative; min-height: 62px; padding: 10px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; border-radius: 9px; text-decoration: none; }
.nav-dropdown-menu a:hover { background: var(--brand-soft); }
.nav-dropdown-menu a > span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f5eee8; color: var(--brand); font-size: 16px; }
.nav-dropdown-menu a b { color: var(--text); font-size: 12px; }
.nav-dropdown-menu a small { color: var(--muted); font-size: 10px; }
.account-link { min-width: 0; max-width: 168px; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.account-link > span:last-child { min-width: 0; display: grid; gap: 2px; }
.account-link small { color: #91877e; font-size: 9px; line-height: 1; }
.account-link b { max-width: 105px; overflow: hidden; color: #514d49; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { width: 34px; height: 34px; flex: 0 0 34px; object-fit: cover; border-radius: 50%; border: 1px solid #eadbd1; }
.account-avatar-fallback { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 850; }
.auth-nav form { margin: 0; }
.auth-nav .ghost.small { min-height: 34px; padding: 0 10px; font-size: 11px; }

.page-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 76px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 25px; color: #968b80; font-size: 12px; }
.breadcrumb a { color: #74685e; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb b { color: var(--brand); font-weight: 750; }
.page-loading { min-height: 280px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.loading-spinner { width: 22px; height: 22px; border: 3px solid #eadbd1; border-top-color: var(--brand); border-radius: 50%; animation: auctionhub-spin .8s linear infinite; }
@keyframes auctionhub-spin { to { transform: rotate(360deg); } }
.notice-error { padding: 22px; border: 1px solid #efc9c6; border-radius: 14px; background: #fff2f1; color: #9c302c; }

/* Each nested grid has a zero-minimum track: a high-resolution image must never
   enlarge the photo column or paint underneath the bidding panel. */
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: start; gap: 26px; }
.product-detail-main, .product-detail-side { min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.product-detail-main > *, .product-detail-side > * { min-width: 0; max-width: 100%; }
.product-detail-image { width: 100%; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 18px; background: #f0ece6; }
.product-detail-image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; object-fit: contain; }
.detail-description-card, .detail-heading, .bid-panel { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.detail-description-card h2 { margin: 10px 0 9px; font-size: 19px; }
.detail-description-card > p { margin: 0; color: #625e59; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-badge, .status-badge { padding: 6px 10px; border-radius: 7px; font-size: 10px; font-weight: 800; }
.tag-badge { background: #f3eee8; color: #65554a; }
.status-badge.live { background: var(--green-soft); color: var(--green); }
.status-badge.scheduled { background: var(--amber-soft); color: var(--amber); }
.status-badge.ended { background: var(--red-soft); color: var(--red); }
.detail-heading h1 { margin: 15px 0 9px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -.7px; }
.detail-seller-line { margin: 0; color: var(--muted); font-size: 12px; }
.detail-seller-line b { color: #504640; }
.detail-live-price { margin: 0; }
.detail-live-price > strong { display: block; margin: 13px 0; color: var(--brand); font-size: clamp(30px, 3vw, 40px); font-weight: 900; overflow-wrap: anywhere; }
.detail-countdown-line { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #eee6df; color: var(--muted); font-size: 12px; }
.detail-countdown-line b { color: var(--brand); font-variant-numeric: tabular-nums; }
.bid-panel h2 { margin: 0 0 7px; font-size: 18px; }
.bid-panel > p:not(.form-message) { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.bid-panel label { display: block; margin-bottom: 7px; color: #514a44; font-size: 12px; font-weight: 800; }
.bid-panel input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); font-size: 16px; font-weight: 750; }
.bid-panel input:focus { border-color: #bd8b80; outline: 3px solid #87352e15; }
#bidMinimum { display: block; margin: 7px 0 14px; color: var(--muted); font-size: 11px; }
.bid-safety-note { margin-top: 13px; padding: 11px 12px; border-radius: 9px; background: #f8f5f0; color: #71685f; font-size: 10px; line-height: 1.65; }
.form-message { min-height: 18px; margin: 10px 0; font-size: 12px; line-height: 1.5; }
.success-text { color: var(--green); }
.error-text { color: var(--red); }
.detail-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-specs > div { min-width: 0; padding: 11px; border-radius: 9px; background: #faf8f5; }
.detail-specs small { display: block; margin-bottom: 5px; color: #90867d; font-size: 10px; }
.detail-specs b { display: block; color: #403832; font-size: 12px; overflow-wrap: anywhere; }
.history-card { min-width: 0; }
.history-card .history-list { max-height: 310px; }
.detail-side-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 0 4px; }
.detail-side-links a { color: var(--brand); font-size: 11px; font-weight: 750; text-decoration: none; }
.detail-side-links a:hover { text-decoration: underline; }

.sell-intro { margin: 8px 0 25px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #ead8cb; border-radius: 19px; background: linear-gradient(120deg, #fff 0%, #fbf2e8 100%); }
.sell-intro h1, .guide-hero h1 { margin: 13px 0 10px; color: #2b2927; font-size: clamp(30px, 4vw, 45px); line-height: 1.15; letter-spacing: -1.2px; }
.sell-intro h1 strong, .guide-hero h1 strong { color: var(--brand); }
.sell-intro p, .guide-hero > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.sell-intro-note { max-width: 280px; flex: 0 0 280px; padding: 17px; border: 1px solid #ead9c8; border-radius: 13px; background: #fffaf4; }
.sell-intro-note b, .sell-intro-note span { display: block; }
.sell-intro-note b { margin-bottom: 7px; color: var(--brand); font-size: 13px; }
.sell-intro-note span { color: #756c63; font-size: 11px; line-height: 1.7; }
.sell-form { max-width: 920px; margin: 0 auto; display: grid; gap: 17px; }
.form-section-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.form-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; padding-bottom: 16px; border-bottom: 1px solid #f0ebe5; }
.form-section-number { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.form-section-heading h2 { margin: 0 0 4px; font-size: 17px; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.form-section-card .field-label { display: block; margin: 14px 0; color: #514b45; font-size: 12px; font-weight: 750; }
.form-section-card input:not([type=file]), .form-section-card textarea, .form-section-card select, .profile-card input, .profile-card textarea { width: 100%; min-height: 43px; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); outline: 0; }
.form-section-card textarea, .profile-card textarea { resize: vertical; }
.form-section-card input:focus, .form-section-card textarea:focus, .form-section-card select:focus, .profile-card input:focus, .profile-card textarea:focus { border-color: #bd8b80; box-shadow: 0 0 0 3px #87352e12; }
.form-section-card .input-with-suffix { margin-top: 7px; }
.form-section-card .input-with-suffix input { margin: 0; }
.form-section-card .field-help { display: block; margin-top: 7px; color: #8b8279; font-size: 10px; font-weight: 450; line-height: 1.6; }
.form-section-card .file-help { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 450; }
.form-section-card .image-preview { display: block; max-width: 260px; max-height: 190px; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
.sell-submit-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 4px; }
.sell-submit-row .form-message { flex: 1; }

.profile-hero { margin: 8px 0 25px; padding: 23px 27px; display: flex; align-items: center; gap: 17px; border: 1px solid #ead8cb; border-radius: 17px; background: linear-gradient(120deg, #fff, #fbf1e8); }
.profile-hero > div:nth-child(2) { flex: 1; }
.profile-hero h1 { margin: 6px 0; font-size: 25px; }
.profile-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-avatar-large { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--brand); color: #fff; font-size: 27px; font-weight: 900; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 20px; }
.profile-menu { position: sticky; top: 110px; padding: 9px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.profile-menu a { padding: 12px; border-radius: 8px; color: #625b54; font-size: 12px; font-weight: 700; text-decoration: none; }
.profile-menu a:hover, .profile-menu a.active { background: var(--brand-soft); color: var(--brand); }
.profile-content { min-width: 0; display: grid; gap: 16px; }
.profile-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 110px; }
.profile-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.profile-card-heading h2 { margin: 0 0 5px; font-size: 17px; }
.profile-card-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.profile-state { padding: 6px 9px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.profile-card .field-label { display: block; margin: 12px 0; color: #514b45; font-size: 12px; font-weight: 750; }
.profile-card input, .profile-card textarea { display: block; font-size: 13px; font-weight: 450; }
.avatar-editor { margin-bottom: 20px; padding: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border: 1px dashed #d9c9bc; border-radius: 11px; background: #fdfbf9; }
.avatar-editor > img, .avatar-editor > span:first-child { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 800; }
.avatar-editor > label { margin: 0; }
.avatar-editor > small { color: var(--muted); font-size: 10px; }
.profile-list { display: grid; gap: 8px; }
.profile-list-item { min-width: 0; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #eee8e1; border-radius: 10px; background: #fdfcfa; text-decoration: none; }
.profile-list-item > span { min-width: 0; display: grid; gap: 5px; }
.profile-list-item b { color: #39332e; font-size: 12px; overflow-wrap: anywhere; }
.profile-list-item small { color: #8a8178; font-size: 10px; }
.profile-list-item strong { color: var(--brand); font-size: 12px; white-space: nowrap; }
.profile-list-item:hover { border-color: #d9b8ae; background: #fffaf8; }
.notification-list-item { text-decoration: none; }

.guide-hero { padding: 42px; border: 1px solid #ead8cb; border-radius: 20px; background: radial-gradient(circle at 88% 10%, #f4dfc8 0, transparent 34%), linear-gradient(120deg, #fff 0%, #fbf2e8 100%); }
.guide-hero h1 { font-size: clamp(34px, 4vw, 48px); }
.guide-hero > p { max-width: 650px; margin-bottom: 22px; }
.guide-grid { margin: 22px 0 35px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.guide-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.guide-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 900; }
.guide-card h2 { margin: 0 0 8px; font-size: 15px; }
.guide-card p, .rule-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.guide-rules { display: grid; grid-template-columns: .7fr 1.3fr; gap: 35px; padding: 30px 0; border-top: 1px solid var(--line); }
.guide-rules h2 { margin: 10px 0; font-size: 23px; }
.rule-list { display: grid; gap: 10px; }
.rule-list article { padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rule-list b { display: block; margin-bottom: 5px; color: #4a413a; font-size: 12px; }
.guide-disclaimer { padding: 18px 20px; border: 1px solid #eddfc7; border-radius: 12px; background: #fffaf0; }
.guide-disclaimer b { color: #77521e; font-size: 12px; }
.guide-disclaimer p { margin: 7px 0 0; color: #71675b; font-size: 11px; line-height: 1.7; }

@media (max-width: 1250px) {
    .nav { flex-wrap: wrap; gap: 10px 16px; }
    .nav .search { order: 3; flex: 1 1 270px; max-width: none; margin: 0; }
    .nav nav { flex: 1 1 auto; }
}
@media (max-width: 900px) {
    .product-detail-layout { grid-template-columns: minmax(0, 1fr); }
    .product-detail-image { max-height: 450px; }
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-rules { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 700px) {
    .page-shell { width: min(100% - 28px, 1240px); padding-top: 18px; }
    .nav { position: relative; padding: 12px 14px; }
    .nav .brand { margin-right: auto; }
    .nav nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .nav nav .nav-link { padding: 8px 5px; }
    .nav .search { order: 4; flex-basis: 100%; }
    .nav-dropdown-menu { left: 0; transform: none; }
    .nav-dropdown-menu::before { left: 26px; }
    .account-link { max-width: 130px; }
    .sell-intro { align-items: flex-start; flex-direction: column; padding: 24px; }
    .sell-intro-note { max-width: none; flex-basis: auto; width: 100%; }
    .form-section-card, .profile-card { padding: 18px; }
    .sell-submit-row { align-items: stretch; flex-direction: column; }
    .sell-submit-row .btn { width: 100%; }
    .profile-hero { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
    .profile-hero > .btn { width: 100%; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-menu { position: static; display: flex; overflow-x: auto; }
    .profile-menu a { flex: 0 0 auto; white-space: nowrap; }
    .detail-specs { grid-template-columns: 1fr 1fr; }
    .guide-hero { padding: 27px 22px; }
    .guide-grid { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }

/* Keep the category dropdown available at tablet widths where legacy nav links collapse. */
@media (max-width: 1200px) {
    .nav-dropdown > summary.nav-link { display: inline-flex; }
}


/* AuctionHub dedicated auction directory, notification center and result pages */
.search-submit { min-height: 34px; margin: 0 6px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.notification-nav { position: relative; min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ead4cf; border-radius: 10px; background: #fff8f6; color: var(--brand); text-decoration: none; font-size: 12px; font-weight: 800; white-space: nowrap; }
.notification-nav-icon { font-size: 20px; line-height: 1; }
.notification-nav b { min-width: 18px; padding: 3px 5px; border-radius: 20px; background: var(--red); color: #fff; font-size: 10px; text-align: center; }
.notification-nav:hover { border-color: #cfa69e; background: var(--brand-soft); }
.my-auctions-nav { border-left: 1px solid var(--line); }
.center-action { margin-top: 28px; text-align: center; }
.category-shortcuts h2 { margin: 12px 0 22px; font-size: 30px; }
.category-shortcut-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.category-shortcut-grid a { min-height: 90px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--brand); font-size: 21px; text-decoration: none; }
.category-shortcut-grid b { color: var(--text); font-size: 12px; }
.page-shell.listing-page, .page-shell.notification-page { max-width: 1440px; margin: 0 auto; padding: 28px 6.5% 70px; }
.breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin: 0 0 25px; color:var(--muted); font-size:11px; }
.breadcrumb a { color:var(--muted); text-decoration:none; }
.breadcrumb b { color:var(--brand); }
.listing-hero { padding: 34px 38px; border:1px solid #ead8cb; border-radius:18px; background:radial-gradient(circle at 88% 8%, #f4dfc8 0, transparent 32%),linear-gradient(120deg,#fff 0%,#fbf2e8 100%); }
.listing-hero h1 { margin:12px 0 9px; color:#2b2927; font-size:clamp(30px,4vw,44px); letter-spacing:-1px; }
.listing-hero p { max-width:720px; margin:0; color:var(--muted); font-size:13px; line-height:1.8; }
.listing-hero .btn { margin-top:19px; }
.listing-content { padding: 25px 0 0; }
.listing-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 190px 180px; gap:10px; margin: 0 0 14px; }
.listing-search { display:flex; gap:8px; }
.listing-search input, .listing-toolbar select { min-width:0; width:100%; min-height:43px; padding:0 13px; border:1px solid var(--line-strong); border-radius:10px; background:#fff; color:var(--text); }
.listing-status-filter { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.listing-status-filter .chip { border:1px solid var(--line); background:#fff; }
.listing-status-filter .chip.active { border-color:#e4c8c2; background:var(--brand-soft); color:var(--brand); }
.listing-result-line { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:18px 0 14px; color:var(--muted); font-size:11px; }
.listing-result-line b { color:var(--text); font-size:14px; }
.listing-pic-link { display:block; text-decoration:none; }
.auction .body h3 a { color:inherit; text-decoration:none; }
.auction .body h3 a:hover { color:var(--brand); }
.follow-chip { min-height:31px; padding:0 10px; border:1px solid #ead7d2; border-radius:8px; background:#fff; color:#79625c; font-size:10px; font-weight:800; cursor:pointer; }
.follow-chip.active { border-color:#e5c5c0; background:#fff0ee; color:var(--brand); }
.status-text { display:inline-block; margin-bottom:8px; color:var(--brand); font-size:10px; font-weight:850; }
.notification-panel { margin-top:22px; padding:22px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:var(--shadow-sm); }
.notification-panel-head { display:flex; justify-content:space-between; align-items:center; gap:15px; padding-bottom:17px; border-bottom:1px solid var(--line); }
.notification-panel-head h2 { margin:0 0 6px; font-size:18px; }
.notification-panel-head p { margin:0; color:var(--muted); font-size:11px; }
.notification-tabs { display:flex; gap:7px; padding:14px 0; }
.notification-tabs button { padding:8px 13px; border:1px solid transparent; border-radius:8px; background:#f7f4f0; color:#655d56; font-size:11px; font-weight:800; cursor:pointer; }
.notification-tabs button.active { border-color:#e4c8c2; background:var(--brand-soft); color:var(--brand); }
.notification-list { display:grid; gap:9px; }
.notification-item { min-width:0; padding:14px; display:flex; align-items:flex-start; gap:12px; border:1px solid #eee8e1; border-radius:12px; background:#fff; text-decoration:none; transition:border-color .15s,background .15s; }
.notification-item:hover { border-color:#d7b6ad; background:#fffaf8; }
.notification-item.unread { border-left:4px solid var(--brand); background:#fffaf8; }
.notification-item-icon { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:11px; background:var(--brand-soft); color:var(--brand); font-size:17px; }
.notification-item-body { min-width:0; flex:1; display:grid; gap:5px; }
.notification-item-body small { color:var(--muted); font-size:10px; }
.notification-item-body b { color:var(--text); font-size:12px; line-height:1.65; font-weight:700; }
.notification-item-body em { color:var(--brand); font-size:10px; font-style:normal; font-weight:750; }
.notification-read-mark,.notification-new { align-self:center; color:var(--muted); font-size:10px; white-space:nowrap; }
.notification-new { padding:5px 8px; border-radius:20px; background:#f9e8e5; color:var(--brand); font-weight:850; }
.success-result { margin:12px 0; padding:12px; display:grid; grid-template-columns:1fr auto; gap:6px 10px; border:1px solid #dcecdf; border-radius:10px; background:#f7fcf8; }
.success-result small { color:var(--muted); font-size:10px; }
.success-result b { color:var(--text); font-size:11px; }
.success-result strong { color:#187344; font-size:13px; }
.empty-state { grid-column:1/-1; padding:35px 20px; border:1px dashed var(--line-strong); border-radius:13px; background:#fff; color:var(--muted); font-size:13px; text-align:center; }
.empty-state a { color:var(--brand); font-weight:800; }
@media (max-width: 1120px) { .category-shortcut-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .nav nav { gap:3px; } .nav-link { padding:8px 5px; font-size:11px; } .notification-nav { padding:0 7px; } }
@media (max-width: 850px) { .listing-toolbar { grid-template-columns:1fr 1fr; } .listing-search { grid-column:1/-1; } .notification-nav>span:not(.notification-nav-icon) { display:none; } .my-auctions-nav { display:none; } }
@media (max-width: 600px) { .page-shell.listing-page,.page-shell.notification-page { padding:20px 5% 50px; } .listing-hero { padding:24px 20px; } .listing-toolbar { grid-template-columns:1fr; } .listing-search { grid-column:auto; } .listing-result-line,.notification-panel-head { align-items:flex-start; flex-direction:column; } .notification-item { padding:11px; } .notification-read-mark { display:none; } .category-shortcut-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .notification-panel { padding:14px; } }

/* PBL4: accessible separation between manual and automatic bidding */
.bid-divider {border: 0; border-top: 1px solid #ddd; margin: 1rem 0;}

.auction-pagination {display:flex;gap:1rem;align-items:center;justify-content:center;padding:1.5rem;}
.auction-pagination button {padding:.65rem 1rem;cursor:pointer;border-radius:.5rem;border:1px solid #aaa;background:#fff;}
.auction-pagination button:disabled {opacity:.45;cursor:not-allowed;}

/* Seller management screens intentionally differ from the public buyer pages. */
.seller-list-grid {display:grid;gap:13px}
.seller-list-row {display:grid;grid-template-columns:120px minmax(0,1fr) 185px;align-items:center;gap:20px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px}
.seller-list-row>img {width:120px;height:110px;object-fit:cover;border-radius:10px}
.seller-list-info h3 {margin:5px 0;font-size:17px}
.seller-list-info p {margin:4px 0;font-size:12px;color:var(--muted)}
.seller-list-info strong {display:block;margin-top:8px}
.seller-list-actions {display:grid;gap:8px}
.seller-list-actions a {display:block;text-align:center;padding:11px 6px;text-decoration:none;border-radius:9px}
.seller-rule-note {padding:13px 15px;border-left:4px solid var(--brand);background:var(--brand-soft);font-size:13px;line-height:1.65}
.gallery-preview,.buyer-gallery {display:flex;gap:9px;margin:11px 0}
.gallery-preview {flex-wrap:wrap}
/* The thumbnail strip scrolls within its column instead of pushing the column wider. */
.buyer-gallery {min-width:0;width:100%;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:1px 1px 10px;scrollbar-width:thin}
.gallery-preview img,.buyer-gallery-item img {width:84px;height:84px;object-fit:cover;border-radius:9px}
.buyer-gallery-item {flex:0 0 auto;padding:4px;background:#fff;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.buyer-gallery-item:focus-visible {outline:3px solid #b56a4a}
.seller-editor-shell {max-width:1130px;margin:30px auto 65px;padding:0 5%;}
.seller-dashboard-top {border:1px solid #ddc9bb;border-radius:16px;padding:27px;background:#f9f4ec}
.seller-dashboard-top h1 {font-size:28px;margin:8px 0}
.seller-dashboard-top p {font-size:13px;line-height:1.8}
.seller-dashboard-meta {display:flex;gap:18px;flex-wrap:wrap;margin:15px 0;font-size:13px}
.seller-editor {display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;margin-top:20px}
.seller-editor-form,.seller-editor-side {padding:24px;border:1px solid var(--line);background:#fff;border-radius:15px}
.seller-editor-form label {display:block;margin:14px 0;font-weight:700;font-size:13px}
.seller-editor-form input,.seller-editor-form select,.seller-editor-form textarea {display:block;width:100%;min-height:43px;margin-top:7px;padding:10px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;font:inherit}
.seller-editor-form textarea {min-height:110px}
.seller-editor-form .two {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seller-editor-actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}
.seller-editor-side img.cover {width:100%;max-height:210px;object-fit:cover;border-radius:12px}
.seller-editor-side .gallery-preview img {width:65px;height:65px}
.seller-gallery-item {display:inline-flex;flex-direction:column;gap:4px;align-items:center}
.seller-gallery-item button {background:#fff;border:1px solid #aa5a52;color:#8b342c;border-radius:8px;padding:5px 8px;cursor:pointer}
.seller-editor input:disabled,.seller-editor textarea:disabled,.seller-editor select:disabled {background:#f5f3f0;opacity:.75}
@media(max-width:760px){.seller-list-row {grid-template-columns:80px 1fr}.seller-list-row>img {width:80px;height:90px}.seller-list-actions {grid-column:1/-1;grid-template-columns:1fr 1fr}.seller-editor {grid-template-columns:1fr}}
@media(max-width:500px){.seller-editor-form .two {grid-template-columns:1fr}}

/* Gallery images are always constrained by the description card width. */
.description-photos {display:grid;width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.description-photos img {display:block;width:100%;min-width:0;max-width:100%;height:auto;max-height:360px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff}
@media (max-width: 600px) {
    .product-detail-image {aspect-ratio:4 / 3}
    .description-photos {grid-template-columns:minmax(0,1fr)}
    .detail-heading,.bid-panel,.detail-description-card {padding:18px}
}

/* Seller upload gallery: each thumbnail can be removed individually. */
.gallery-select-item {position:relative;display:flex;flex-direction:column;gap:5px;max-width:112px;padding:7px;border:1px solid var(--line);border-radius:11px;background:#fff}
.gallery-select-item img {width:96px;height:88px;max-width:100%;object-fit:cover;border-radius:7px}
.gallery-select-item button {border:1px solid #b86c61;border-radius:7px;padding:5px;background:#fff8f5;color:#8d332d;font-size:11px;font-weight:700;cursor:pointer}
.gallery-select-item small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px;font-size:10px;color:var(--muted)}
.image-preview[hidden],#removeCoverBtn[hidden] {display:none!important}
.seller-status-tabs {margin-bottom:17px;flex-wrap:wrap}
.seller-status-tabs .chip span {opacity:.7;font-size:11px;margin-left:4px}

/* Warning modal: accessible dialog, shared by all error-handling paths. */
.auction-warning-dialog {box-sizing:border-box;width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:30px 27px 26px;border:1px solid #ecd4b8;border-radius:18px;background:#fffaf5;color:#392824;box-shadow:0 24px 75px rgba(33,20,18,.29);text-align:center;overscroll-behavior:contain}
.auction-warning-dialog::backdrop {background:rgba(22,18,16,.58);backdrop-filter:blur(3px)}
.auction-warning-icon {display:grid;place-items:center;margin:0 auto 13px;width:54px;height:54px;border-radius:50%;border:3px solid #cb8a30;background:#fff1d7;color:#9b5209;font-size:31px;line-height:1;font-weight:800}
.auction-warning-dialog h2 {font-size:21px;line-height:1.35;margin:0 0 10px;color:#82352d}
.auction-warning-dialog p {font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 23px}
.auction-warning-dismiss {min-width:145px;min-height:43px;cursor:pointer}
.auction-warning-dismiss:focus-visible {outline:3px solid #d69749;outline-offset:3px}
@media(max-width:480px){.auction-warning-dialog{padding:23px 18px}.auction-warning-dialog h2{font-size:19px}}
