/* ═══════════════════════════════════════════════════════════════════
   AUTO DEALER AUCTIONS — Professional eBay-Style Interface
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body.auction-mode {
  --ap:    #E53238;
  --ab:    #0064D2;
  --ag:    #86B817;
  --ay:    #F5AF02;
  --abg:   #F5F5F5;
  --abg2:  #FAFAFA;
  --aw:    #FFFFFF;
  --abord: #E0E0E0;
  --abord2:#CACACA;
  --at1:   #111111;
  --at2:   #333333;
  --at3:   #555555;
  --at4:   #767676;
  --at5:   #999999;
  background: var(--abg) !important;
  color: var(--at1) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
/* Hide normal site elements in auction mode */
body.auction-mode .page:not(.apage) { display: none !important; }
body.auction-mode footer.foot { display: none !important; }
body.auction-mode #nav { display: none !important; }
body.auction-mode #loader {
  display:flex !important;
  background:linear-gradient(180deg,#ffffff 0%,#f7f7f7 100%) !important;
  color:var(--at1) !important;
}
body.auction-mode #loader.done{opacity:0;visibility:hidden;pointer-events:none;}
body.auction-mode #loader .exc-wrap,
body.auction-mode #loader .loader-brand,
body.auction-mode #loader .loader-sub { display:none !important; }
body.auction-mode #loader .loader-track{
  width:min(320px,78vw);
  height:6px;
  border-radius:999px;
  background:#dfe3e8;
  overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08);
}
body.auction-mode #loader .loader-fill{
  background:linear-gradient(90deg,#E53238 0%,#F5AF02 50%,#0064D2 100%) !important;
  box-shadow:0 0 14px rgba(0,100,210,.28);
}
body.auction-mode #loader .loader-pct{
  margin-top:14px;
  color:#5d6672;
  letter-spacing:2px;
  font-size:12px;
}
body.auction-mode #loader .auction-loader{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:22px;
}
body:not(.auction-mode) #loader .auction-loader{ display:none !important; }
body.auction-mode #loader .auction-loader-mark{
  position:relative;
  width:72px;
  height:72px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#0064D2,#0052b0);
  box-shadow:0 10px 30px rgba(0,100,210,.25);
}
body.auction-mode #loader .auction-loader-hammer{
  font-size:28px;
  filter:brightness(10);
  transform-origin:70% 30%;
  animation:auctionHammer 1.2s ease-in-out infinite;
}
body.auction-mode #loader .al-dot{ display:none; }
body.auction-mode #loader .auction-loader-brand{
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
  color:#111;
  text-align:center;
  max-width:260px;
  line-height:1.3;
}
body.auction-mode #loader .auction-loader-sub{
  color:#6b7280;
  font-size:12px;
  font-weight:500;
  text-align:center;
  max-width:300px;
}
@keyframes auctionHammer{
  0%,100%{ transform:rotate(0deg) translateY(0); }
  30%{ transform:rotate(-18deg) translateY(-2px); }
  55%{ transform:rotate(10deg) translateY(1px); }
  75%{ transform:rotate(-8deg) translateY(-1px); }
}
@media(max-width:640px){
  body.auction-mode #loader .auction-loader-brand{ font-size:16px; max-width:220px; }
  body.auction-mode #loader .auction-loader-sub{ font-size:11px; max-width:240px; }
  body.auction-mode #loader .auction-loader-mark{ width:60px; height:60px; border-radius:14px; }
  body.auction-mode #loader .auction-loader-hammer{ font-size:24px; }
}

/* ── AUCTION NAV ─────────────────────────────────────────────── */
#aNav {
  position: fixed; top:0; left:0; right:0; z-index:9000;
  background:#fff;
  box-shadow: 0 1px 0 var(--abord), 0 2px 8px rgba(0,0,0,.06);
}
/* Top bar: Hi Sign in | links | My Account */
.an-topbar {
  background:#fff; border-bottom:1px solid #eee;
}
.an-topbar-inner {
  max-width:1280px; margin:0 auto; padding:4px 16px;
  display:flex; align-items:center; gap:8px;
  font-size:12px; color:#555;
}
.an-topbar-left {
  display:flex; align-items:center; gap:4px; white-space:nowrap;
}
.an-topbar-links {
  display:flex; align-items:center; gap:6px; margin-left:4px; padding-left:8px; border-left:1px solid #ddd;
}
.an-topbar-links a {
  font-size:12px; color:#555; cursor:pointer; text-decoration:none;
  transition:color .15s;
}
.an-topbar-links a:hover { color:#0064D2; text-decoration:underline; }
.an-topbar-right {
  margin-left:auto;
  display:flex; align-items:center; gap:10px; white-space:nowrap;
}
/* Main row: Logo + Search */
.an-main {
  background:#fff; padding:6px 0 8px;
}
.an-main-inner {
  max-width:1280px; margin:0 auto; padding:0 16px;
  display:flex; align-items:center; gap:14px;
}
.an-logo {
  display:flex; align-items:center; gap:8px;
  cursor:pointer; flex-shrink:0;
}
.an-logo-icon {
  background:linear-gradient(135deg,#0064D2,#0052b0); color:#fff;
  font-weight:900; font-size:16px; width:38px; height:38px;
  border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.an-logo-name { font-size:16px; font-weight:800; color:#111; white-space:nowrap; line-height:1.2; }
.an-logo-sub { font-size:9px; color:#999; font-weight:600; letter-spacing:1px; line-height:1; }
.an-logo-img { display:block; max-height:38px; max-width:200px; object-fit:contain; }
.an-search {
  flex:1; display:flex; height:40px; min-width:0;
}
.an-search input {
  flex:1; padding:0 16px; font-size:15px; font-family:'Inter',sans-serif;
  border:2px solid #111; border-right:none;
  border-radius:20px 0 0 20px; outline:none;
  transition:border-color .15s;
  background:#fff; color:#111;
  min-width:0; box-sizing:border-box;
}
.an-search input:focus { border-color:#0064D2; }
.an-search input::placeholder { color:#999; }
.an-search button {
  padding:0 22px; background:#0064D2; color:#fff; border:none;
  border-radius:0 20px 20px 0; font-size:14px; font-weight:700;
  cursor:pointer; font-family:'Inter',sans-serif;
  transition:background .15s; white-space:nowrap;
}
.an-search button:hover { background:#0052B0; }
/* Responsive */
@media(max-width:900px){
  .an-topbar-links { display:none!important; }
}
@media(max-width:600px){
  .an-topbar-inner { padding:3px 10px; font-size:11px; }
  .an-main-inner { padding:0 10px; gap:8px; }
  .an-logo-icon { width:32px!important; height:32px!important; font-size:14px!important; }
  .an-logo-name { font-size:13px!important; max-width:120px; overflow:hidden; text-overflow:ellipsis; }
  .an-logo-sub { display:none; }
  .an-logo-img { max-height:30px!important; max-width:120px!important; }
  .an-logo-img ~ .an-logo-text { display:none; }
  .an-search { height:36px; }
  .an-search input { font-size:16px; padding:0 12px; border-width:1.5px; }
  .an-search button { padding:0 14px; font-size:13px; }
  .an-cats-inner { padding:0 8px; }
  .an-cat { padding:6px 10px; font-size:11px; }
}
@media(min-width:601px) and (max-width:1100px){
  .an-logo-img { max-height:34px!important; }
  .an-logo-img ~ .an-logo-text { display:none; }
}
.an-btn {
  padding:7px 14px; border-radius:4px; font-size:13px; font-weight:600;
  cursor:pointer; border:1px solid var(--abord2);
  background:#fff; color:var(--at1); font-family:'Inter',sans-serif;
  transition:all .15s; white-space:nowrap;
}
.an-btn:hover { border-color:var(--ab); color:var(--ab); }
.an-btn-primary {
  background:var(--ab); color:#fff; border-color:var(--ab);
}
.an-btn-primary:hover { background:#0052B0; color:#fff; }
.an-user {
  display:flex; align-items:center; gap:8px; cursor:pointer;
  padding:6px 10px; border-radius:4px;
  transition:background .15s; position:relative;
}
.an-user:hover { background:var(--abg); }
.an-avatar {
  width:30px; height:30px; border-radius:50%; background:var(--ab);
  color:#fff; font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.an-user-name { font-size:13px; font-weight:600; color:var(--at1); }
.an-notif-dot {
  position:absolute; top:5px; right:8px;
  width:8px; height:8px; background:var(--ap); border-radius:50%;
  border:2px solid #fff;
}
/* Category bar */
.an-cats {
  background:#fff; border-top:1px solid var(--abord);
  border-bottom:1px solid var(--abord);
}
.an-cats-inner {
  max-width:1280px; margin:0 auto; padding:0 16px;
  display:flex; overflow-x:auto; scrollbar-width:none;
}
.an-cats-inner::-webkit-scrollbar { display:none; }
.an-cat {
  padding:7px 12px; font-size:12px; font-weight:500; color:var(--at3);
  cursor:pointer; border-bottom:2px solid transparent;
  transition:all .15s; white-space:nowrap;
  background:none; border-top:none; border-left:none; border-right:none;
  font-family:'Inter',sans-serif;
}
.an-cat:hover { color:var(--at1); }
.an-cat.active { color:var(--ab); border-bottom-color:var(--ab); font-weight:600; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.apage { margin-top:116px; min-height:calc(100vh - 116px); }
@media(max-width:900px){
  .apage { margin-top:110px; min-height:calc(100vh - 110px); }
}
@media(max-width:600px){
  .apage { margin-top:104px!important; min-height:calc(100vh - 104px); }
}
.acon { max-width:1280px; margin:0 auto; padding:20px 16px; }

/* ── LISTING GRID ────────────────────────────────────────────── */
.aheader {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px; gap:12px; flex-wrap:wrap;
}
.aheader-title { font-size:20px; font-weight:700; color:var(--at1); margin:0; }
.aheader-sub { font-size:14px; color:var(--at4); margin-top:2px; }
.asort select {
  padding:8px 12px; border:1px solid var(--abord2); border-radius:4px;
  font-size:13px; font-family:'Inter',sans-serif; color:var(--at2);
  cursor:pointer; outline:none; background:#fff;
}
.agrid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:16px;
}
/* Card */
.acard {
  background:#fff; border:1px solid var(--abord); border-radius:8px;
  overflow:hidden; cursor:pointer; display:block;
  transition:box-shadow .2s, transform .15s;
  text-decoration:none; color:inherit;
}
.acard:hover { box-shadow:0 4px 20px rgba(0,0,0,.12); transform:translateY(-2px); }
.acard-img-wrap { position:relative; height:192px; background:#f5f5f5; overflow:hidden; }
.acard-img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.acard:hover .acard-img { transform:scale(1.04); }
.acard-badge {
  position:absolute; top:10px; left:10px;
  padding:3px 8px; border-radius:3px; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.4px;
}
.badge-hot { background:var(--ap); color:#fff; }
.badge-new { background:var(--ay); color:#111; }
.badge-live {
  background:var(--ag); color:#fff;
  display:flex; align-items:center; gap:4px;
}
.badge-live::before { content:''; width:6px; height:6px; background:#fff; border-radius:50%; animation:ablive 1.2s infinite; }
@keyframes ablive{0%,100%{opacity:1}50%{opacity:.3}}
.badge-ended { background:#999; color:#fff; }
.acard-wire {
  position:absolute; bottom:0; left:0; right:0;
  padding:5px 10px; background:rgba(0,0,0,.65);
  font-size:11px; color:#fff; text-align:center; font-weight:500;
}
.acard-body { padding:12px 14px 14px; }
.acard-cat { font-size:11px; font-weight:600; color:var(--ab); text-transform:uppercase; letter-spacing:.5px; margin-bottom:5px; }
.acard-title {
  font-size:14px; font-weight:600; color:var(--at1); line-height:1.35;
  margin-bottom:10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.acard-price-row { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:6px; }
.acard-price-label { font-size:11px; color:var(--at4); }
.acard-price { font-size:22px; font-weight:800; color:var(--at1); line-height:1; }
.acard-bids { font-size:13px; color:var(--ab); font-weight:500; }
.acard-timer {
  display:flex; align-items:center; gap:5px;
  font-size:12px; color:var(--at3); font-weight:500; margin-top:6px;
}
.acard-timer svg { width:13px; height:13px; flex-shrink:0; }
.timer-urgent { color:var(--ap); animation:tpulse 1s infinite; }
@keyframes tpulse{0%,100%{opacity:1}50%{opacity:.55}}
.acard-stats {
  display:flex; gap:12px; margin-top:8px; padding-top:8px;
  border-top:1px solid #f0f0f0;
}
.acard-stat { font-size:12px; color:var(--at2); display:flex; align-items:baseline; gap:4px; }
.acard-stat-label { font-size:10px; color:var(--at4); font-weight:500; text-transform:uppercase; letter-spacing:.3px; }
.acard-stat strong { color:var(--at1); font-weight:700; font-size:12px; }

/* ── DETAIL PAGE ─────────────────────────────────────────────── */
.adetail { display:grid; grid-template-columns:1fr 380px; gap:24px; align-items:start; }
/* Breadcrumb */
.acrumb { font-size:13px; color:var(--at4); margin-bottom:16px; }
.acrumb a { color:var(--ab); cursor:pointer; text-decoration:none; }
.acrumb a:hover { text-decoration:underline; }
.acrumb span { margin:0 6px; }
/* Image gallery */
.agallery {}
.amain-img {
  width:100%; aspect-ratio:4/3; object-fit:cover;
  border:1px solid var(--abord); border-radius:6px;
  background:#f5f5f5; display:block; cursor:zoom-in;
}
.athumbs { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.athumb {
  width:68px; height:52px; object-fit:cover;
  border:2px solid var(--abord); border-radius:4px;
  cursor:pointer; transition:border-color .15s; background:#f0f0f0;
  flex-shrink:0;
}
.athumb:hover { border-color:var(--at3); }
.athumb.on { border-color:var(--ab); }
/* Condition + title */
.acond {
  display:inline-block; padding:3px 10px; border-radius:3px;
  font-size:12px; font-weight:600; margin-bottom:10px;
}
.acond-used { background:#e8f4e8; color:#2a7a2a; }
.acond-new  { background:#e8f0fe; color:#1565c0; }
.adetail-title { font-size:22px; font-weight:700; color:var(--at1); line-height:1.3; margin-bottom:14px; }
/* Wire transfer notice */
.awire-notice {
  display:flex; align-items:center; gap:10px;
  background:#e8f0fe; border:1px solid #90b8f8;
  border-radius:6px; padding:10px 14px; margin-bottom:14px;
  font-size:13px; color:#1565c0; font-weight:500;
}
.awire-notice svg { width:16px; height:16px; flex-shrink:0; }
/* Specs table */
.aspecs { width:100%; border-collapse:collapse; margin-bottom:16px; }
.aspecs tr { border-bottom:1px solid #f0f0f0; }
.aspecs td { padding:7px 0; font-size:14px; }
.aspecs td:first-child { color:var(--at4); width:45%; }
.aspecs td:last-child { font-weight:600; color:var(--at1); }
/* Description */
.adesc-wrap {}
.adesc-title { font-size:16px; font-weight:700; color:var(--at1); margin:16px 0 8px; }
.adesc { font-size:14px; color:var(--at2); line-height:1.8; white-space:pre-wrap; }

/* ── BID BOX ─────────────────────────────────────────────────── */
.abidbox {
  background:#fff; border:1px solid var(--abord);
  border-radius:8px; overflow:hidden;
  position:sticky; top:100px;
}
.abidbox-head {
  padding:14px 18px; border-bottom:1px solid var(--abord);
  display:flex; align-items:center; gap:8px;
}
.abidbox-body { padding:18px; }
.abid-price-label { font-size:12px; color:var(--at4); margin-bottom:2px; text-transform:uppercase; letter-spacing:.5px; font-weight:600; }
.abid-price { font-size:34px; font-weight:800; color:var(--at1); line-height:1; margin-bottom:4px; }
.abid-count { font-size:14px; color:var(--ab); cursor:pointer; font-weight:500; margin-bottom:14px; }
.abid-count:hover { text-decoration:underline; }
/* Timer box */
.atimer-box {
  background:#fff8e1; border:1px solid #ffe082; border-radius:6px;
  padding:12px 14px; margin-bottom:14px;
}
.atimer-box-label { font-size:11px; color:#8a6000; font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.atimer-val { font-size:20px; font-weight:800; color:var(--ap); font-variant-numeric:tabular-nums; }
.atimer-ended { font-size:16px; color:var(--at4); font-weight:600; }
/* Bid form */
.abid-form { margin-bottom:14px; }
.abid-input-row { display:flex; gap:8px; margin-bottom:8px; }
.abid-input {
  flex:1; padding:11px 14px; border:2px solid var(--abord2);
  border-radius:4px; font-size:18px; font-weight:700;
  font-family:'Inter',sans-serif; color:var(--at1); outline:none;
  transition:border-color .15s; background:#fff;
}
.abid-input:focus { border-color:var(--ab); }
.abid-btn {
  padding:11px 20px; background:var(--ap); color:#fff; border:none;
  border-radius:4px; font-size:15px; font-weight:700;
  cursor:pointer; font-family:'Inter',sans-serif;
  transition:background .15s; white-space:nowrap;
}
.abid-btn:hover { background:#c5202a; }
.abid-btn:disabled { background:#ccc; cursor:not-allowed; }
.abid-hint { font-size:12px; color:var(--at4); }
.abid-hint strong { color:var(--at2); }
/* Reserve met */
.areserve-met {
  display:flex; align-items:center; gap:6px;
  font-size:13px; color:#2a7a2a; font-weight:600; margin-bottom:10px;
}
.areserve-met svg { width:14px; height:14px; }
/* Winner box */
.awinner-box {
  background:#e8f4e8; border:1px solid #86B817;
  border-radius:6px; padding:14px; margin-bottom:14px;
}
.awinner-box h4 { font-size:14px; font-weight:700; color:#2a7a2a; margin:0 0 6px; }
.awinner-box p { font-size:13px; color:#3a6a3a; margin:0 0 10px; }
.abtn-checkout {
  display:block; width:100%; padding:12px;
  background:var(--ab); color:#fff; border:none; border-radius:4px;
  font-size:15px; font-weight:700; cursor:pointer;
  font-family:'Inter',sans-serif; transition:background .15s;
}
.abtn-checkout:hover { background:#0052B0; }

/* ── BID HISTORY ─────────────────────────────────────────────── */
.abid-history { border-top:1px solid var(--abord); margin-top:14px; padding-top:14px; }
.abid-history-title {
  font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:.5px; color:var(--at4); margin-bottom:10px;
}
.abid-row {
  display:flex; align-items:center; gap:8px; padding:7px 0;
  border-bottom:1px solid #f8f8f8; font-size:13px;
}
.abid-row:last-child { border-bottom:none; }
.abid-row-avatar {
  width:28px; height:28px; border-radius:50%; background:var(--ab);
  color:#fff; font-size:11px; font-weight:700; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.abid-row-avatar:hover { opacity:.8; }
.abid-row-user { flex:1; color:var(--ab); font-weight:600; cursor:pointer; }
.abid-row-user:hover { text-decoration:underline; }
.abid-row-amt { font-weight:700; color:var(--at1); }
.abid-row-time { font-size:11px; color:var(--at4); }
.abid-lead {
  background:#e8f4e8; color:#2a7a2a; font-size:10px; font-weight:700;
  padding:1px 7px; border-radius:10px; text-transform:uppercase; letter-spacing:.4px;
}

/* ── SELLER BOX ──────────────────────────────────────────────── */
.aseller-box {
  background:#fff; border:1px solid var(--abord); border-radius:8px;
  padding:16px 18px; margin-top:14px;
}
.aseller-box-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--at4); margin-bottom:12px; }
.aseller-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.aseller-avatar {
  width:44px; height:44px; border-radius:50%; background:var(--ab);
  color:#fff; font-size:18px; font-weight:800; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.aseller-name { font-size:15px; font-weight:700; color:var(--at1); margin-bottom:2px; }
.aseller-stars { color:var(--ay); font-size:13px; }
.aseller-meta { font-size:12px; color:var(--at4); margin-top:2px; }
.aseller-fb { font-size:13px; color:var(--at4); margin-bottom:12px; }
.aseller-fb strong { color:var(--ag); }
.abtn-contact {
  width:100%; padding:9px; background:#fff; color:var(--ab);
  border:2px solid var(--ab); border-radius:4px;
  font-size:13px; font-weight:700; cursor:pointer;
  font-family:'Inter',sans-serif; transition:all .15s;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.abtn-contact:hover { background:var(--ab); color:#fff; }

/* ── BUYER PROFILE MODAL ─────────────────────────────────────── */
.abuyer-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  z-index:20000; display:flex; align-items:center; justify-content:center; padding:20px;
}
.abuyer-box {
  background:#fff; border-radius:10px; width:100%; max-width:440px;
  overflow:hidden; box-shadow:0 10px 40px rgba(0,0,0,.2);
}
.abuyer-header {
  background:linear-gradient(135deg,#0064D2,#004BA0);
  padding:22px; display:flex; align-items:center; gap:14px;
}
.abuyer-av-lg {
  width:58px; height:58px; border-radius:50%;
  background:rgba(255,255,255,.2); color:#fff;
  font-size:24px; font-weight:800; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  border:2px solid rgba(255,255,255,.4);
}
.abuyer-uname { font-size:18px; font-weight:700; color:#fff; }
.abuyer-since { font-size:12px; color:rgba(255,255,255,.75); margin-top:2px; }
.abuyer-body { padding:20px 22px; }
.abuyer-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.abuyer-stat { background:#f9f9f9; border-radius:6px; padding:12px 8px; text-align:center; }
.abuyer-stat-val { font-size:20px; font-weight:800; color:var(--at1); }
.abuyer-stat-lbl { font-size:11px; color:var(--at4); text-transform:uppercase; letter-spacing:.4px; margin-top:2px; }
.abuyer-fbbar { display:flex; align-items:center; gap:8px; margin:10px 0; }
.abuyer-fbtrack { flex:1; height:7px; background:#e0e0e0; border-radius:4px; overflow:hidden; }
.abuyer-fbfill { height:100%; background:var(--ag); border-radius:4px; transition:width .5s; }
.abuyer-review {
  background:#f9f9f9; border-radius:6px; padding:10px 12px;
  font-size:13px; color:var(--at3); line-height:1.6; margin:10px 0;
}
.abuyer-review .stars { color:var(--ay); }
.abuyer-close {
  display:block; width:100%; padding:9px;
  background:#f0f0f0; border:none; border-radius:20px;
  font-size:13px; cursor:pointer; font-family:'Inter',sans-serif;
  color:var(--at2); margin-top:10px; transition:background .15s;
}
.abuyer-close:hover { background:#e0e0e0; }

/* ── AUTH MODAL ──────────────────────────────────────────────── */
.aauth-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.6);
  z-index:20000; display:flex; align-items:center; justify-content:center; padding:16px;
}
.aauth-box {
  background:#fff; border-radius:10px; width:100%; max-width:480px;
  max-height:92vh; overflow-y:auto;
  box-shadow:0 10px 50px rgba(0,0,0,.2);
}
.aauth-header {
  padding:20px 24px 0; display:flex; align-items:center; justify-content:space-between;
}
.aauth-header h2 { font-size:20px; font-weight:800; color:var(--at1); margin:0; }
.aauth-close { background:none; border:none; font-size:22px; cursor:pointer; color:var(--at4); line-height:1; }
.aauth-tabs {
  display:flex; border-bottom:1px solid var(--abord); margin:16px 24px 0; padding:0;
  gap:0;
}
.aauth-tab {
  flex:1; padding:10px; text-align:center; font-size:14px; font-weight:600;
  cursor:pointer; color:var(--at4); border-bottom:3px solid transparent;
  transition:all .15s; background:none; border-top:none; border-left:none; border-right:none;
  font-family:'Inter',sans-serif;
}
.aauth-tab.active { color:var(--ab); border-bottom-color:var(--ab); }
.aauth-body { padding:20px 24px 24px; }
.aauth-body form { display:flex; flex-direction:column; gap:14px; }
.afl { display:block; font-size:12px; font-weight:600; color:var(--at3); margin-bottom:5px; text-transform:uppercase; letter-spacing:.4px; }
.afi {
  width:100%; padding:10px 12px; border:1.5px solid var(--abord2);
  border-radius:4px; font-size:16px; font-family:'Inter',sans-serif;
  color:var(--at1); outline:none; transition:border-color .15s; box-sizing:border-box;
  background:#fff;
}
.afi:focus { border-color:var(--ab); }
.afi::placeholder { color:var(--at5); }
.aform-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.aform-row3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.aauth-submit {
  padding:12px; background:var(--ab); color:#fff; border:none;
  border-radius:4px; font-size:15px; font-weight:700;
  cursor:pointer; font-family:'Inter',sans-serif; transition:background .15s;
}
.aauth-submit:hover { background:#0052B0; }
.aauth-err { font-size:13px; color:var(--ap); font-weight:500; }
.aauth-ok  { font-size:13px; color:#2a7a2a; font-weight:500; }
.aauth-footer { font-size:13px; color:var(--at4); text-align:center; }
.aauth-footer a { color:var(--ab); cursor:pointer; font-weight:600; }
.aauth-divider {
  display:flex; align-items:center; gap:10px; color:var(--at4); font-size:12px;
}
.aauth-divider::before,.aauth-divider::after { content:''; flex:1; height:1px; background:var(--abord); }
.arole-select { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.arole-opt {
  padding:12px; border:2px solid var(--abord); border-radius:6px;
  cursor:pointer; text-align:center; transition:all .15s;
}
.arole-opt:hover { border-color:var(--ab); }
.arole-opt.selected { border-color:var(--ab); background:#e8f0fe; }
.arole-opt-icon { font-size:22px; margin-bottom:4px; }
.arole-opt-label { font-size:13px; font-weight:600; color:var(--at1); }
.arole-opt-desc { font-size:11px; color:var(--at4); margin-top:2px; }
.apending-badge {
  background:#fff8e1; border:1px solid #ffe082; border-radius:6px;
  padding:12px 14px; font-size:13px; color:#8a6000; text-align:center;
}

/* ── MESSAGES PANEL ──────────────────────────────────────────── */
.amsg-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  z-index:20000; display:flex; align-items:stretch; justify-content:flex-end;
}
.amsg-panel {
  width:400px; max-width:100vw; background:#fff;
  display:flex; flex-direction:column;
  box-shadow:-4px 0 24px rgba(0,0,0,.15);
  animation:slideInRight .25s ease;
}
@keyframes slideInRight{from{transform:translateX(100%)}to{transform:none}}
.amsg-head {
  padding:16px 18px; background:var(--ab); color:#fff;
  display:flex; align-items:center; gap:10px; flex-shrink:0;
}
.amsg-head h3 { font-size:15px; font-weight:700; margin:0; flex:1; }
.amsg-head button { background:none; border:none; color:#fff; font-size:20px; cursor:pointer; line-height:1; }
.amsg-listing {
  padding:8px 14px; background:#e8f0fe; border-bottom:1px solid var(--abord);
  font-size:12px; color:var(--ab); font-weight:600; flex-shrink:0;
}
.amsg-list { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.amsg-bubble { max-width:82%; }
.amsg-bubble.seller { align-self:flex-start; }
.amsg-bubble.buyer  { align-self:flex-end; }
.amsg-text {
  padding:10px 13px; border-radius:14px; font-size:14px; line-height:1.5;
  word-break:break-word;
}
.amsg-bubble.seller .amsg-text { background:var(--ab); color:#fff; border-bottom-left-radius:4px; }
.amsg-bubble.buyer  .amsg-text { background:#f0f0f0; color:var(--at1); border-bottom-right-radius:4px; }
.amsg-meta { font-size:11px; color:var(--at4); margin-top:3px; }
.amsg-bubble.buyer .amsg-meta { text-align:right; }
.amsg-input { padding:12px 14px; border-top:1px solid var(--abord); display:flex; gap:8px; flex-shrink:0; }
.amsg-input textarea {
  flex:1; padding:9px 12px; border:1.5px solid var(--abord2); border-radius:20px;
  resize:none; font-family:'Inter',sans-serif; font-size:14px; height:40px;
  outline:none; transition:border-color .15s; min-height:40px; max-height:100px;
}
.amsg-input textarea:focus { border-color:var(--ab); }
.amsg-send {
  width:40px; height:40px; flex-shrink:0; border-radius:50%;
  background:var(--ab); color:#fff; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s; font-size:16px;
}
.amsg-send:hover { background:#0052B0; }
.amsg-empty { text-align:center; color:var(--at4); font-size:14px; padding:30px 0; }

/* ── CHECKOUT ────────────────────────────────────────────────── */
.achk-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.6);
  z-index:20000; display:flex; align-items:center; justify-content:center; padding:16px;
}
.achk-box {
  background:#fff; border-radius:10px; width:100%; max-width:540px;
  max-height:92vh; overflow-y:auto;
  box-shadow:0 10px 50px rgba(0,0,0,.25);
}
.achk-head {
  padding:18px 22px; border-bottom:1px solid var(--abord);
  display:flex; align-items:center; justify-content:space-between;
  background:#f9f9f9; border-radius:10px 10px 0 0; flex-shrink:0;
  position:sticky; top:0; z-index:1;
}
.achk-head h2 { font-size:18px; font-weight:800; color:var(--at1); margin:0; }
.achk-head button { background:none; border:none; font-size:24px; cursor:pointer; color:var(--at4); }
.achk-body { padding:22px; }
.achk-won {
  background:#e8f4e8; border:1px solid var(--ag); border-radius:8px;
  padding:14px; margin-bottom:16px;
}
.achk-won h3 { font-size:15px; font-weight:700; color:#2a7a2a; margin:0 0 5px; }
.achk-won p { font-size:13px; color:#3a6a3a; margin:0; }
.achk-item { display:flex; gap:14px; margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--abord); }
.achk-item img { width:80px; height:60px; object-fit:cover; border-radius:4px; background:#f0f0f0; flex-shrink:0; }
.achk-item-info { flex:1; }
.achk-item-title { font-size:15px; font-weight:700; color:var(--at1); margin-bottom:3px; }
.achk-item-sub { font-size:13px; color:var(--at4); margin-bottom:6px; }
.achk-item-price { font-size:24px; font-weight:800; color:var(--at1); }
.achk-secure {
  display:flex; align-items:center; gap:8px; background:#e8f0fe;
  border-radius:6px; padding:10px 13px; margin-bottom:14px;
  font-size:13px; color:#1565c0; font-weight:500;
}
.achk-section-title { font-size:15px; font-weight:700; color:var(--at1); margin:16px 0 10px; }
.achk-wire {
  background:#f9f9f9; border:1px solid var(--abord); border-radius:8px; padding:16px;
  margin-bottom:12px;
}
.achk-wire-row { display:flex; justify-content:space-between; padding:5px 0; font-size:14px; }
.achk-wire-row:last-child { padding-top:10px; margin-top:6px; border-top:2px solid var(--abord); }
.achk-wire-label { color:var(--at4); }
.achk-wire-val { font-weight:700; color:var(--at1); }
.achk-wire-total { font-size:20px; color:var(--ap); }
.achk-memo {
  background:#fff8e1; border-radius:4px; padding:8px 12px;
  font-size:12px; color:#8a6000; font-weight:600; margin-top:8px;
}
.achk-note { font-size:12px; color:var(--at4); line-height:1.7; margin-bottom:14px; }
.achk-btn {
  display:block; width:100%; padding:13px; background:var(--ab); color:#fff;
  border:none; border-radius:4px; font-size:16px; font-weight:800;
  cursor:pointer; font-family:'Inter',sans-serif; transition:background .15s;
}
.achk-btn:hover { background:#0052B0; }
.achk-terms { font-size:12px; color:var(--at4); text-align:center; margin-top:10px; }

/* ── USER ACCOUNT PANEL ──────────────────────────────────────── */
.aacct-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  z-index:20000; display:flex; align-items:stretch; justify-content:flex-end;
}
.aacct-panel {
  width:420px; max-width:100vw; background:#f5f5f5;
  display:flex; flex-direction:column; overflow-y:auto;
  box-shadow:-4px 0 24px rgba(0,0,0,.15);
  animation:slideInRight .25s ease;
}
.aacct-head {
  background:var(--ab); padding:20px; color:#fff; flex-shrink:0;
}
.aacct-head-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.aacct-head button { background:none; border:none; color:#fff; font-size:20px; cursor:pointer; }
.aacct-user-row { display:flex; align-items:center; gap:12px; }
.aacct-av {
  width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.2);
  color:#fff; font-size:20px; font-weight:800; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  border:2px solid rgba(255,255,255,.4);
}
.aacct-name { font-size:17px; font-weight:700; }
.aacct-role {
  font-size:11px; background:rgba(255,255,255,.2);
  padding:2px 8px; border-radius:10px; display:inline-block; margin-top:3px;
}
.aacct-tabs-bar {
  display:flex; background:#fff; border-bottom:1px solid var(--abord);
  flex-shrink:0; overflow-x:auto;
}
.aacct-tab {
  padding:11px 14px; font-size:13px; font-weight:600; color:var(--at4);
  cursor:pointer; border-bottom:3px solid transparent;
  transition:all .15s; white-space:nowrap; background:none;
  border-top:none; border-left:none; border-right:none;
  font-family:'Inter',sans-serif;
}
.aacct-tab.active { color:var(--ab); border-bottom-color:var(--ab); }
.aacct-tab-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:16px; height:16px; border-radius:50%; background:var(--ap);
  color:#fff; font-size:10px; font-weight:700; margin-left:4px;
}
.aacct-body { flex:1; overflow-y:auto; padding:14px; }
/* Notification item */
.anotif-item {
  background:#fff; border-radius:8px; border:1px solid var(--abord);
  padding:14px; margin-bottom:10px; cursor:pointer;
  transition:box-shadow .15s;
}
.anotif-item:hover { box-shadow:0 2px 10px rgba(0,0,0,.08); }
.anotif-item.unread { border-left:3px solid var(--ab); }
.anotif-subject { font-size:14px; font-weight:700; color:var(--at1); margin-bottom:5px; }
.anotif-body { font-size:13px; color:var(--at3); line-height:1.5; }
.anotif-body * { max-width:100%; }
.anotif-time { font-size:11px; color:var(--at4); margin-top:6px; }
.anotif-unread-dot {
  width:8px; height:8px; border-radius:50%; background:var(--ab); flex-shrink:0;
}
/* Bid history item */
.abidh-item {
  background:#fff; border-radius:8px; border:1px solid var(--abord);
  padding:12px 14px; margin-bottom:8px; cursor:pointer;
  transition:box-shadow .15s;
}
.abidh-item:hover { box-shadow:0 2px 8px rgba(0,0,0,.06); }
.abidh-title { font-size:14px; font-weight:600; color:var(--at1); margin-bottom:4px; }
.abidh-meta { font-size:12px; color:var(--at4); display:flex; gap:10px; flex-wrap:wrap; }
.abidh-price { font-size:16px; font-weight:800; color:var(--ab); }
/* Empty state */
.aempty { text-align:center; padding:40px 20px; color:var(--at4); }
.aempty svg { width:48px; height:48px; opacity:.3; margin-bottom:12px; }
.aempty p { font-size:15px; font-weight:600; color:var(--at3); }
.aempty small { font-size:13px; }

/* ── AUCTION FOOTER ──────────────────────────────────────────── */
.afooter {
  background:#333; color:#bbb; padding:36px 16px 20px;
  margin-top:48px;
}
.afooter-inner {
  max-width:1280px; margin:0 auto;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:24px; margin-bottom:24px;
}
.afooter-col h4 { color:#fff; font-size:14px; margin-bottom:10px; }
.afooter-col a { display:block; color:#aaa; margin-bottom:6px; font-size:13px; text-decoration:none; cursor:pointer; }
.afooter-col a:hover { color:#fff; text-decoration:underline; }
.afooter-bottom {
  max-width:1280px; margin:0 auto; padding-top:16px;
  border-top:1px solid #555;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:8px;
}
.afooter-logo { font-size:20px; font-weight:900; }
.afooter-logo .l1{color:#E53238} .afooter-logo .l2{color:#F5AF02}
.afooter-logo .l3{color:#86B817} .afooter-logo .l4{color:#0064D2}

/* ── TOAST ───────────────────────────────────────────────────── */
.atoast {
  position:fixed; top:0; left:0; right:0;
  background:#0064D2; color:#fff; padding:12px 20px;
  font-size:13px; font-weight:600; z-index:50000;
  text-align:center; line-height:1.4;
  transform:translateY(-100%); opacity:0;
  transition:transform .3s ease, opacity .3s ease;
  box-shadow:0 2px 12px rgba(0,0,0,.15);
}
.atoast + .atoast { margin-top:0; }
.atoast:nth-child(n+2) { /* stacked toasts push down */ }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media(max-width:900px){
  .adetail { grid-template-columns:1fr; }
  .abidbox { position:static; }
  .agrid   { grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); }
}
@media(max-width:600px){
  .an-top { gap:8px; }
  .an-logo-tag { display:none; }
  .agrid { grid-template-columns:1fr 1fr; }
  .amsg-panel,.aacct-panel { width:100vw; }
  .aform-row,.aform-row3 { grid-template-columns:1fr; }
}

/* ── BID BUTTON (clean single button) ───────────────────────── */
.abid-btn-main {
  width:100%; padding:15px; margin-bottom:8px;
  background:#0064D2; color:#fff; border:none; border-radius:8px;
  font-size:16px; font-weight:700; cursor:pointer;
  transition:background .2s, transform .1s;
  letter-spacing:.3px;
}
.abid-btn-main:hover { background:#0053b3; transform:translateY(-1px); }
.abid-btn-main:active { transform:translateY(0); }

/* ── NO BIDS / WIRE TRANSFER / SECURE PURCHASE ──────────────── */
.ano-bids-msg {
  font-size:13px; color:var(--at4); padding:8px 0 10px;
}
.awire-tag {
  display:inline-flex; align-items:center; gap:6px;
  background:#f0f7f0; border:1px solid #c3e6c3; border-radius:6px;
  padding:7px 12px; font-size:13px; font-weight:600; color:#2a7a2a;
  margin-bottom:12px;
}
.asecure-banner {
  display:flex; align-items:flex-start; gap:10px;
  background:#f0f5ff; border:1px solid #c5d8f7; border-radius:8px;
  padding:12px 14px; margin-bottom:4px;
}
.asecure-icon { font-size:22px; flex-shrink:0; }
.asecure-text { font-size:12px; color:#444; line-height:1.5; }
.asecure-text strong { display:block; color:#111; font-size:13px; margin-bottom:2px; }

/* Footer is now inside aPagesWrap — no z-index fix needed */

/* ── SLIM TIMER ──────────────────────────────────────────────── */
.atimer-slim {
  display:flex; align-items:center; gap:6px;
  padding:7px 0; border-top:1px solid var(--abord);
  border-bottom:1px solid var(--abord); margin:10px 0;
  font-size:13px; color:var(--at3);
}
.atimer-slim svg { flex-shrink:0; color:var(--at4); }
.atimer-slim-label { color:var(--at4); font-size:12px; }
.atimer-slim-val { font-weight:700; color:var(--at1); font-variant-numeric:tabular-nums; }
.atimer-ended { color:var(--at4); font-size:13px; }
/* Hide old timer-box */
.atimer-box { display:none; }

/* ── ACCOUNT PANEL — 4 tabs ──────────────────────────────────── */
.aacct-tabs-bar { display:flex; gap:2px; padding:0 12px; background:#f5f5f5; border-bottom:1px solid var(--abord); overflow-x:auto; }
.aacct-tab { flex:1; min-width:fit-content; padding:10px 10px; background:none; border:none; border-bottom:2px solid transparent; font-size:13px; font-weight:600; color:var(--at3); cursor:pointer; white-space:nowrap; font-family:'Inter',sans-serif; transition:color .15s; }
.aacct-tab.active { color:var(--ab); border-bottom-color:var(--ab); }
.aacct-tab-badge { background:var(--ap); color:#fff; border-radius:10px; padding:1px 6px; font-size:11px; margin-left:4px; }

/* ── ADDRESS MODAL inputs ────────────────────────────────────── */
.afi {
  width:100%; box-sizing:border-box;
  padding:9px 12px; border:1.5px solid var(--abord2); border-radius:6px;
  font-size:14px; font-family:'Inter',sans-serif; color:var(--at1); outline:none;
  transition:border-color .15s;
}
.afi:focus { border-color:var(--ab); }

/* ── EBAY-STYLE LISTING SECTIONS ─────────────────────────────── */
.aabout-wrap {
  background:#fff; border:1px solid #e0e0e0; border-radius:10px;
  margin-top:16px; overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.aabout-tabs { display:flex; border-bottom:2px solid #eee; margin:0; background:#fafafa; }
.aabout-tab { padding:12px 20px; background:none; border:none; border-bottom:2px solid transparent; font-size:14px; font-weight:600; cursor:pointer; color:var(--at3); margin-bottom:-2px; font-family:'Inter',sans-serif; }
.aabout-tab.active { color:var(--ab); border-bottom-color:var(--ab); }
.aabout-body { padding:16px 20px; }
.aitem-section { margin-bottom:24px; }
.aitem-section-title { font-size:18px; font-weight:700; color:var(--at1); margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid #eee; }
.avhist-box { display:flex; gap:24px; background:#fafafa; border:1px solid #eee; border-radius:8px; padding:16px; flex-wrap:wrap; }
.aspecs-ebay { width:100%; border-collapse:collapse; font-size:13px; }
.aspecs-ebay tr { border-bottom:1px solid #f0f0f0; }
.aspecs-ebay td { padding:8px 4px; vertical-align:top; }
.aspecs-ebay td:first-child { color:var(--at4); width:45%; font-weight:500; }
.aspecs-ebay td:last-child { color:var(--at1); font-weight:600; }

/* ── WATCHERS ROW ─────────────────────────────────────────────── */
.awatchers-row {
  display:flex; align-items:center; gap:7px;
  background:#f5f5f5; border-radius:6px; padding:9px 12px;
  font-size:13px; color:var(--at2); margin-top:8px;
}
.awatchers-row svg { flex-shrink:0; color:var(--at3); }

/* ── SHOP WITH CONFIDENCE (eBay-style) ───────────────────────── */
.ashop-confidence {
  background:#fff; border:1px solid var(--abord); border-radius:8px;
  padding:14px; margin-top:10px;
}
.ashop-conf-title {
  font-size:13px; font-weight:700; color:var(--at1); margin-bottom:14px;
  display:flex; align-items:center; gap:8px;
}
.ashop-new-badge {
  background:#86B817; color:#fff; font-size:10px; font-weight:700;
  padding:2px 6px; border-radius:4px; letter-spacing:.5px;
}
.ashop-conf-icons {
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px; text-align:center;
}
.ashop-conf-icon { display:flex; flex-direction:column; align-items:center; gap:5px; }
.ashop-conf-icon span { font-size:11px; color:var(--at3); line-height:1.3; }
.ashop-conf-icon svg { color:var(--at3); }
.ashop-secure-row {
  background:#fff; border:1px solid var(--abord); border-radius:8px;
  padding:14px; margin-top:8px;
}
.ashop-secure-head { font-size:14px; font-weight:700; color:var(--at1); margin-bottom:10px; }
.ashop-secure-item { display:flex; align-items:flex-start; gap:10px; }

/* ── BID HISTORY MODAL ────────────────────────────────────────── */
.abid-row {
  display:flex; align-items:center; gap:10px;
  padding:10px 16px; border-bottom:1px solid #f0f0f0;
  font-size:13px;
}
.abid-row:last-child { border-bottom:none; }
.abid-row-avatar { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; flex-shrink:0; }
.abid-row-user { flex:1; font-weight:600; color:var(--at2); }
.abid-row-amt { font-weight:800; color:var(--at1); }
.abid-row-time { font-size:11px; color:var(--at5); }
.abid-lead { background:#86B817; color:#fff; font-size:10px; padding:2px 6px; border-radius:4px; font-weight:700; }

/* ── ACCOUNT PANEL WIDER ──────────────────────────────────────── */
.aacct-wide .aacct-panel { width:520px; max-width:100vw; }

/* ── MESSAGE THREADS IN ACCOUNT ───────────────────────────────── */
.amsg-thread { border:1px solid var(--abord); border-radius:8px; margin-bottom:10px; overflow:hidden; }
.amsg-thread-head { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; background:#fafafa; cursor:pointer; }
.amsg-thread-head:hover { background:#f0f0f0; }
.amsg-thread-msgs { max-height:200px; overflow-y:auto; background:#fff; }

/* ── MOBILE RESPONSIVE ────────────────────────────────────────── */
@media(max-width:768px) {
  .adetail { grid-template-columns:1fr !important; }
  .abidbox { position:static !important; }
  .apage { margin-top:110px !important; }
  .aacct-wide .aacct-panel { width:100vw; }
  .aacct-tabs-bar { overflow-x:auto; }
  .aacct-tab { font-size:12px; padding:8px 8px; }
  .agrid { grid-template-columns:1fr 1fr !important; }
  .abidbox { margin-bottom:16px; }
  .amain-img { max-height:280px; }
  .adetail > div:last-child { order:-1; } /* bid box on top on mobile */
  .aspecs-ebay td { font-size:12px; }
  .avhist-box { flex-direction:column; }
}
@media(max-width:480px) {
  .agrid { grid-template-columns:1fr !important; }
  .acard-stats { display:none; }
  .an-logo-tag { display:none; }
  .ashop-conf-icons { grid-template-columns:repeat(2,1fr); }
  .amsg-panel { width:100vw !important; }
  .aacct-panel { width:100vw !important; }
}

/* ── Own bid row highlight ───────────────────────────────────── */
.abid-row-mine {
  background: #e8f0fe;
  border-radius: 6px;
}
.abid-row-mine .abid-row-user strong {
  color: #0064D2;
}

/* ── DETAIL PAGE — DESKTOP/MOBILE LAYOUT ────────────────────── */
.adetail-left  { /* left col on desktop */ }
.adetail-right { /* right col on desktop */ }

/* Mobile-only blocks — hidden on desktop */
.adetail-mobile-top { display:none; }
.adetail-mobile-bid { display:none; }
.adetail-title-mob { display:none; }

/* ── WATCHLIST BUTTON ─────────────────────────────────────────── */
.awatchlist-btn {
  width:100%; padding:12px; margin-top:8px;
  background:#fff; border:1.5px solid var(--abord2); border-radius:8px;
  font-size:14px; font-weight:600; cursor:pointer; color:var(--at2);
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter',sans-serif; transition:background .15s;
}
.awatchlist-btn:hover { background:#f5f5f5; }
.awatchlist-btn svg { color:var(--ap); }

/* ── SHIPPING BOX ─────────────────────────────────────────────── */
.ashipping-box {
  background:#fff; border:1px solid var(--abord); border-radius:8px;
  padding:14px 16px; margin-top:10px;
}
.ashipping-title {
  font-size:14px; font-weight:700; color:var(--at1);
  margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid #f0f0f0;
}
.ashipping-row {
  display:flex; gap:12px; align-items:flex-start; padding:10px 0;
  border-bottom:1px solid #f7f7f7;
}
.ashipping-row:last-child { border-bottom:none; padding-bottom:0; }
.ashipping-row svg { flex-shrink:0; color:var(--at4); margin-top:2px; }
.ashipping-label { font-size:12px; font-weight:700; color:var(--at3); margin-bottom:2px; }
.ashipping-val   { font-size:13px; color:var(--at1); }
.ashipping-sub   { font-size:12px; color:var(--at4); margin-top:2px; }

/* ── MOBILE RESPONSIVE — listing detail ─────────────────────── */
@media(max-width:768px) {
  /* Desktop right col hidden on mobile */
  .adetail-right { display:none !important; }

  /* Show mobile-only blocks */
  .adetail-mobile-top { display:block; }
  .adetail-mobile-bid { display:block; }
  .adetail-title-mob {
    font-size:18px; font-weight:800; color:var(--at1);
    line-height:1.3; margin-top:12px; padding:0 2px;
  }

  /* Left col takes full width */
  .adetail-left { width:100%; }
  .adetail { grid-template-columns:1fr !important; }

  /* Images */
  .amain-img { max-height:260px; border-radius:8px; }
  .athumbs { gap:6px; }
  .athumb { width:56px; height:44px; }
}


/* Purchases compact card */
.purchase-doc-title{word-break:break-word}
.purchase-doc-thumb img{display:block}
@media (max-width: 640px){
  .purchase-doc-card{display:block !important;padding:12px !important}
  .purchase-doc-main{align-items:flex-start !important}
  .purchase-doc-copy{min-width:0 !important}
  .purchase-doc-title{font-size:14px !important;white-space:normal !important;overflow:visible !important;text-overflow:unset !important}
  .purchase-doc-actions{
    width:100% !important;
    min-width:0 !important;
    align-items:stretch !important;
    gap:10px !important;
    margin-top:12px !important;
    padding-top:10px !important;
    border-top:1px solid #eef2f7;
  }
  .purchase-doc-btn{
    width:100% !important;
    display:block !important;
    text-align:center !important;
    padding:12px 14px !important;
    font-size:14px !important;
    line-height:1.2 !important;
  }
}


/* ── MOBILE PANEL / MESSAGE FIXES ───────────────────────────── */
.amsg-overlay,
.aacct-overlay {
  overflow:hidden;
  overscroll-behavior:none;
}
.amsg-panel,
.aacct-panel {
  box-sizing:border-box;
  max-width:100%;
  width:min(100vw, 420px);
  height:100dvh;
  max-height:100dvh;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}
.aacct-wide .aacct-panel { width:min(100vw, 520px); max-width:100%; }
.amsg-head, .aacct-head, .amsg-listing, .amsg-input, .aacct-tabs-bar, .aacct-body { box-sizing:border-box; }
.amsg-list, .aacct-body { min-width:0; }
.amsg-input textarea { min-width:0; }
#addrModal > div { max-width:min(440px, calc(100vw - 32px)) !important; }

@media (max-width: 768px) {
  .amsg-panel,
  .aacct-panel,
  .aacct-wide .aacct-panel {
    width:100vw !important;
    max-width:100vw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    border-radius:0 !important;
    margin:0 !important;
  }
  .amsg-overlay,
  .aacct-overlay {
    inset:0;
    width:100vw;
    max-width:100vw;
    padding:0;
  }
  .amsg-head,
  .aacct-head {
    padding-left:16px;
    padding-right:16px;
  }
  .amsg-listing,
  .amsg-input,
  .aacct-body,
  .aacct-tabs-bar {
    width:100%;
    max-width:100%;
  }
  .addr-grid-compact {
    grid-template-columns:1fr !important;
  }
}

@supports (padding: max(0px)) {
  .amsg-head,
  .aacct-head {
    padding-top:max(16px, env(safe-area-inset-top));
  }
  .amsg-input {
    padding-bottom:max(12px, env(safe-area-inset-bottom));
  }
}


/* ── FINAL MOBILE WIDTH / HEIGHT SAFETY PATCH ───────────────── */
html, body {
  max-width:100%;
  overflow-x:hidden;
}
.aacct-overlay, .amsg-overlay {
  width:100%;
  max-width:100%;
}
.aacct-panel, .amsg-panel {
  width:min(100dvw, 100vw, 420px);
  max-width:100%;
  min-width:0;
  height:100dvh;
  max-height:100dvh;
}
.aacct-wide .aacct-panel { width:min(100dvw, 100vw, 520px); }
.amsg-head, .amsg-listing, .amsg-list, .amsg-input,
.aacct-head, .aacct-tabs-bar, .aacct-body {
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.amsg-input { align-items:center; }
.amsg-send { align-self:center; }

@media (max-width: 768px) {
  .aacct-overlay, .amsg-overlay {
    inset:0 !important;
    width:100dvw !important;
    max-width:100dvw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    padding:0 !important;
    overflow:hidden !important;
  }
  .aacct-panel, .amsg-panel, .aacct-wide .aacct-panel {
    position:relative;
    width:100dvw !important;
    max-width:100dvw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    min-height:100dvh !important;
    margin:0 !important;
    border-radius:0 !important;
    overflow:hidden !important;
  }
  .amsg-list, .aacct-body {
    flex:1 1 auto;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .amsg-input {
    padding:10px 12px calc(10px + env(safe-area-inset-bottom)) 12px !important;
    gap:8px;
  }
  .amsg-input textarea {
    min-width:0;
    width:auto;
  }
  #addrModal {
    padding:12px !important;
  }
  #addrModal > div {
    width:calc(100dvw - 24px) !important;
    max-width:calc(100dvw - 24px) !important;
  }
}

/* ═══ iOS Safari zoom prevention ═══ */
/* Safari zooms when input font < 16px — force 16px on all interactive elements */
@supports (-webkit-touch-callout: none) {
  input, textarea, select, .afi, .abid-input, .an-search input,
  .aacct-panel input, .aacct-panel textarea, .aacct-panel select,
  .aauth-body input, .aauth-body textarea, .aauth-body select,
  #addrModal input, #addrModal textarea, #addrModal select,
  .amsg-input input, .amsg-input textarea {
    font-size:16px !important;
  }
}
