*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.1);
  --border-md: rgba(0,0,0,0.2);
  --text: #1a1a18;
  --text-muted: #6b6b68;
  --text-faint: #a0a09e;
  --accent: #c0392b;
  --accent-light: #fdf0ef;
  --accent-dark: #922b21;
  --amber: #e67e22;
  --amber-light: #fef9f0;
  --green: #27ae60;
  --green-light: #edfaf4;
  --blue: #2980b9;
  --blue-light: #eef6fc;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}
body { font-family: 'Sarabun', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }

/* ─ Topbar ─ */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; gap: 16px; height: 58px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.logo { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.topbar-nav { display: flex; gap: 2px; }
.topbar-nav a { padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.topbar-nav a:hover, .topbar-nav a.active { background: var(--bg); color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.badge-live { background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 99px; display: flex; align-items: center; gap: 5px; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.2} }

/* ─ Buttons ─ */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; border: none; transition: all 0.15s; font-family: inherit; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-primary { background: #1a1a18; color: #f8f7f4; }
.btn-primary:hover { background: #333; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border-md); color: var(--text-muted); }
.btn-outline:hover { background: var(--bg); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(192,57,43,0.2); }
.btn-danger:hover { background: var(--accent); color: #fff; }
.btn-success { background: var(--green-light); color: var(--green); border: 1px solid rgba(39,174,96,0.2); }
.btn-full { width: 100%; justify-content: center; }

/* ─ Flash messages ─ */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.flash-success { background: var(--green-light); color: #1e8449; border-color: rgba(39,174,96,0.25); }
.flash-error   { background: var(--accent-light); color: var(--accent-dark); border-color: rgba(192,57,43,0.25); }

/* ─ Container ─ */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.page-wrap { padding: 28px 0 60px; }

/* ─ Auth pages ─ */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { justify-content: center; font-size: 24px; }
.auth-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* ─ Forms ─ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid var(--border-md); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: var(--surface); color: var(--text); transition: border 0.15s; }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41,128,185,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ─ Stats bar ─ */
.stats-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-val { font-size: 22px; font-weight: 600; }
.stat-val.red { color: var(--accent); }
.stat-val.green { color: var(--green); }

/* ─ Filter bar ─ */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filter-bar input { flex: 1; min-width: 200px; }
.chip { padding: 6px 14px; border-radius: 99px; font-size: 13px; cursor: pointer; border: 1px solid var(--border-md); background: var(--surface); color: var(--text-muted); text-decoration: none; }
.chip:hover, .chip.on { background: #1a1a18; color: #f8f7f4; border-color: transparent; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 18px; font-size: 14px; cursor: pointer; border: none; background: none; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit; text-decoration: none; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: #1a1a18; font-weight: 500; }

/* ─ Lot grid ─ */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 18px; }
.lot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.lot-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lot-img { height: 180px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; overflow: hidden; }
.lot-img img { width: 100%; height: 100%; object-fit: cover; }
.lot-img-placeholder { font-size: 56px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.badge-active   { background: var(--accent-light); color: var(--accent-dark); }
.badge-upcoming { background: var(--amber-light); color: var(--amber); }
.badge-ended    { background: var(--bg); color: var(--text-faint); }
.badge-cancelled{ background: var(--bg); color: var(--text-faint); }
.status-badge { position: absolute; top: 10px; left: 10px; }
.lot-fav { position: absolute; top: 8px; right: 10px; background: var(--surface); border: none; border-radius: 99px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; box-shadow: var(--shadow); }
.countdown-bar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; text-align: center; padding: 5px; font-weight: 500; letter-spacing: 0.5px; }
.lot-body { padding: 14px 16px 6px; }
.lot-lot { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.lot-title { font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 12px; height: 40px; overflow: hidden; }
.lot-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.price-label { font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }
.price-val { font-size: 20px; font-weight: 600; color: var(--accent); }
.bid-count { font-size: 12px; color: var(--text-muted); text-align: right; }
.lot-footer { border-top: 1px solid var(--border); padding: 10px 16px; display: flex; gap: 8px; }
.lot-footer .btn { flex: 1; }

/* ─ Lot detail page ─ */
.lot-detail { display: grid; grid-template-columns: 1fr 380px; gap: 28px; }
.bid-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); position: sticky; top: 72px; }
.bid-current { margin-bottom: 20px; }
.bid-current .price-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.bid-current .price-val { font-size: 32px; }
.bid-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.bid-meta-item { background: var(--bg); border-radius: var(--radius); padding: 10px 14px; }
.bid-meta-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.bid-meta-val { font-size: 15px; font-weight: 500; }
.bid-input-section { border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 16px; }
.bid-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.bid-input-row input { flex: 1; font-size: 16px; font-weight: 500; }
.quick-bids { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-bid-btn { background: var(--bg); border: 1px solid var(--border-md); border-radius: 8px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--text-muted); font-family: inherit; }
.quick-bid-btn:hover { background: #1a1a18; color: #f8f7f4; border-color: transparent; }
.bid-history { margin-top: 24px; }
.bid-history-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 12px; }
.bid-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.bid-row:last-child { border-bottom: none; }
.bid-user { display: flex; align-items: center; gap: 10px; }
.bid-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.av-blue { background: var(--blue-light); color: var(--blue); }
.av-green { background: var(--green-light); color: var(--green); }
.av-amber { background: var(--amber-light); color: var(--amber); }
.av-red { background: var(--accent-light); color: var(--accent); }
.bid-name { font-size: 13px; font-weight: 500; }
.bid-time { font-size: 11px; color: var(--text-faint); }
.bid-amt { font-size: 14px; font-weight: 600; }
.bid-amt.winner { color: var(--accent); }
.winner-badge { background: #fff8e1; color: #e65100; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }

/* ─ Admin ─ */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 0; min-height: calc(100vh - 58px); }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 12px; }
.admin-sidebar .admin-nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; cursor: pointer; color: var(--text-muted); text-decoration: none; margin-bottom: 2px; }
.admin-sidebar .admin-nav-item:hover, .admin-sidebar .admin-nav-item.active { background: var(--bg); color: var(--text); font-weight: 500; }
.admin-content { padding: 28px 32px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-title { font-size: 20px; font-weight: 600; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.admin-stat .stat-icon { font-size: 24px; margin-bottom: 10px; }
.admin-stat .stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.admin-stat .stat-val { font-size: 24px; font-weight: 600; }

/* ─ Tables ─ */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; background: var(--bg); border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ─ Profile ─ */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; color: var(--blue); margin: 0 auto 14px; }
.profile-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.profile-balance { background: var(--green-light); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.profile-balance-label { font-size: 12px; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-balance-val { font-size: 22px; font-weight: 700; color: var(--green); }

/* ─ Empty state ─ */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty p { font-size: 15px; }

/* ─ Modal ─ */
.bh-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.bh-overlay.open { opacity: 1; pointer-events: all; }
.bh-modal { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); transform: translateY(10px); transition: transform 0.2s; display: block !important; }
.bh-overlay.open .bh-modal { transform: translateY(0); }
.bh-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.bh-modal-title { font-size: 16px; font-weight: 600; }
.bh-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.bh-modal-body { padding: 20px; }

/* ─ Toast ─ */
#toast { position: fixed; bottom: 24px; right: 24px; background: #1a1a18; color: #f8f7f4; padding: 12px 20px; border-radius: var(--radius); font-size: 14px; z-index: 9999; opacity: 0; transform: translateY(8px); transition: all 0.25s; pointer-events: none; max-width: 340px; box-shadow: var(--shadow-md); }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.toast-error { background: var(--accent); }

/* ─ Responsive ─ */
/* ซ่อน hamburger บนหน้าจอใหญ่ */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}

/* ─ Responsive ─ */
@media (max-width: 768px) {
  .topbar {
    padding: 0 12px;
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
  }
  .hamburger {
    display: block;
  }
  .topbar-nav {
    display: none;
    order: 3;
    width: 100%;
  }
  .topbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    gap: 5px;
    z-index: 101;
    box-shadow: var(--shadow-md);
  }
  .topbar-nav.open a {
    padding: 10px;
    border-radius: 8px;
  }
  .topbar-right {
    margin-left: 0;
    gap: 6px;
  }
  .badge-live {
    font-size: 11px;
  }
  .topbar-right .btn {
    padding: 4px 10px;
    font-size: 12px;
  }

  /* Layout เดิม */
  .lot-detail { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { 
    display: block; 
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
}
.admin-sidebar .admin-nav-item {
    display: inline-flex;
    margin-right: 8px;
}
.admin-layout {
    grid-template-columns: 1fr;
}
  .form-row { grid-template-columns: 1fr; }

  /* Grid & spacing */
  .lot-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
  .lot-body {
    padding: 10px 12px 4px;
  }
  .lot-title {
    font-size: 13px;
  }
  .price-val {
    font-size: 18px;
  }

  /* Table scroll */
  .table-wrap {
    overflow-x: auto;
  }

  /* Container padding */
  .container {
    padding: 0 16px;
  }
  .page-wrap {
    padding: 20px 0 40px;  /* ถ้ายังไม่มี ให้เพิ่ม padding ซ้าย-ขวาด้วย */
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Auth card */
  .auth-card {
    padding: 24px 20px;
  }

  /* Profile card */
  .profile-card {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .profile-avatar {
    margin: 0;
  }
}
tr:target td {
  background: var(--amber) !important;
}
/* ── Image Gallery ── */
.lot-detail-img {
    aspect-ratio: 4/3;
    background: #111;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;   /* ← ต้องมี เพื่อให้ arrow absolute ทำงานได้ */
    width: 100%;
}
.lot-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.lot-gallery::-webkit-scrollbar { display: none; }
.gallery-slide {
    flex: 0 0 100%;
    width: 100%;           /* ← กำหนดความกว้าง */
    height: 100%;          /* ← กำหนดความสูง ไม่ให้ล้น */
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* contain = เห็นทั้งภาพ ไม่ crop */
    display: block;
    flex-shrink: 0;
}

/* Prev / Next arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
    -webkit-user-select: none;
}
.gallery-arrow:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Dots */
.gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}
.gallery-dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* Counter 1/3 */
.gallery-counter {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 99px;
    z-index: 10;
}

/* Thumbnail strip */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}
.gallery-thumb {
    flex: 0 0 68px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, opacity 0.15s;
    opacity: 0.55;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

/* Admin button บนมือถือ - ให้เห็นไอคอนชัดเจน */
@media (max-width: 768px) {
    .admin-mobile-btn {
        padding: 5px 10px !important;
    }
    .admin-mobile-btn .admin-text {
        display: none;  /* ซ่อนข้อความ "Admin" บนมือถือ เก็บเฉพาะไอคอน */
    }
    .admin-mobile-btn i {
        font-size: 14px;
    }
}

.help-show-btn {
  position: fixed;
  top: 80px;
  right: 35px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff8f4 0%, #555350 100%);
  color: rgb(17, 14, 14);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 9999;
  transition: all 0.3s ease;
}
/* ปรับ responsive */
@media (max-width: 768px) {
    .help-show-btn {
     top: 20px;
    right: 15px;
    }
}

.help-show-btn:hover {
  transform: scale(1.1);
}

.help-floating {
  position: fixed;
  top: 50px;
  right: 20px;
  width: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 10000;
  overflow: hidden;
  transition: all 0.3s ease;
}

.help-floating.hidden {
  display: none;
}

.help-header {
  background: linear-gradient(135deg, #4b3e34 0%, #070400 100%);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-title {
  font-weight: 600;
}

.help-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.help-content {
  padding: 20px;
  text-align: center;
}

.help-tips {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  text-align: left;
}

.help-tips li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #333;
}

.help-tips li:last-child {
  border-bottom: none;
}

/* QR Modal Overlay */
.bh-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.bh-overlay.open {
  display: flex;
}

.bh-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 500px;
  width: 90%;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.bh-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.bh-modal-title {
  font-weight: 600;
  font-size: 16px;
}

.bh-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
}

.bh-modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.bh-modal-body {
  padding: 20px;
}

/* placeholder fallback */
.lot-img-placeholder { font-size: 96px; display:flex; align-items:center; justify-content:center; width:100%; height:100%; }