/* ===========================================================
   Majestic Koi Farm — shared stylesheet
   Load this on every page, then use <site-header> / <site-footer>.
   =========================================================== */

:root{
  --cream:        #F6F2E9;
  --white:        #FFFFFF;
  --ink:          #1D2430;
  --muted:        #6B7280;
  --border:       #E4DFD2;

  --navy-900:     #182338;   /* footer bg */
  --navy-700:     #2E4A7D;   /* primary button */
  --navy-800:     #24395F;   /* primary button hover */
  --navy-tint:    #EDF1F8;   /* light chip bg */

  --danger:       #C0453A;
  --danger-tint:  #FBEAE8;
  --success:      #2E7D5B;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius:       6px;
  --shadow-card:  0 1px 2px rgba(24,35,56,.06);
  --shadow-pop:   0 12px 30px rgba(24,35,56,.14);
}


*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; min-height: 100dvh; flex-direction: column;}
body{
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
a{ color: inherit; text-decoration: none; }
button{ font-family: var(--font-body); cursor: pointer; }
input{ font-family: var(--font-body); }
:focus-visible{ outline: 2px solid var(--navy-700); outline-offset: 2px; }

.wrap{
    max-width: 1400px;   /* was: 1120px */
  margin: 0 auto;
  padding: 0 32px;
}

main{
  flex: 1 0 auto;
}

site-footer{
  flex-shrink: 0;
}

/* ---------- header ---------- */
site-header{ display:block; background: var(--white); border-bottom: 1px solid var(--border); }
.hdr{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 32px; max-width: 1400px; margin: 0 auto;   /* was: 1120px */
}
.hdr-brand{ display:flex; align-items:center; gap:10px; }
.hdr-mark{
  width:80px; height:80px; border-radius:50%;
  background: var(--cream); border:1.5px solid var(--navy-900);
  display:flex; align-items:center; justify-content:center; flex:none;
  object-fit: cover; overflow:hidden;
}
.hdr-brand-name{ font-family: var(--font-display); font-size: 14px; letter-spacing:.02em; line-height:1.15; }
.hdr-brand-name b{ display:block; font-size:14px; }
.hdr-brand-name span{ display:block; font-size: 9px; color: var(--muted); letter-spacing:.12em; }

.hdr-nav{ display:flex; gap: 28px; }
.hdr-nav a{
  font-size: 14px; color: var(--muted); padding: 6px 0; position:relative;
}
.hdr-nav a[aria-current="page"]{ color: var(--ink); }
.hdr-nav a[aria-current="page"]::after{
  content:""; position:absolute; left:0; right:0; bottom:-19px; height:2px; background: var(--navy-700);
}
.hdr-support{ font-size: 13px; color: var(--muted); }
.hdr-login{ font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
site-footer{ display:block; }
.ftr{ background: var(--navy-900); color: #CBD3E1; margin-top: 64px; }
.ftr-top{
  max-width:1400px; margin:0 auto; padding: 56px 32px 40px;   /* was: 1120px */
  display:flex; justify-content:space-between; gap: 40px; flex-wrap: wrap;
}
.ftr-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  max-width:1400px; margin:0 auto; padding: 18px 32px;   /* was: 1120px */
  display:flex; justify-content:space-between; font-size:12px; color:#7C88A2; flex-wrap:wrap; gap:8px;
}
.ftr-brand h3{ color:#fff; font-size: 26px; margin-bottom: 12px; }
.ftr-brand p{ max-width: 340px; color:#9AA6BC; font-size: 13.5px; }
.ftr-cols{ display:flex; gap: 56px; }
.ftr-col h4{
  font-family: var(--font-body); font-size: 11px; letter-spacing:.1em; color:#7C88A2;
  margin-bottom: 14px; font-weight:600;
}
.ftr-col a{ display:block; font-size: 13.5px; color:#CBD3E1; margin-bottom: 10px; }
.ftr-col a:hover{ color:#fff; }


/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; padding: 12px 20px;
  transition: background .15s ease, transform .05s ease;
}
.btn-primary{ background: var(--navy-700); color:#fff; }
.btn-primary:hover{ background: var(--navy-800); }
.btn-primary:active{ transform: translateY(1px); }
.btn-block{ width:100%; }
.btn-ghost{ background: transparent; color: var(--navy-700); border:1px solid var(--border); }
.btn-ghost:hover{ background: var(--navy-tint); }
.btn-icon{
  width:36px; height:36px; border-radius: var(--radius); border:1px solid var(--border);
  background:#fff; display:flex; align-items:center; justify-content:center; font-size:15px;
}
.btn-icon.edit{ color: var(--success); border-color:#CFE6DA; background:#F1FAF5; }
.btn-icon.delete{ color: var(--danger); border-color:#F4D6D2; background: var(--danger-tint); }
.btn[disabled]{ background:#C7CCD6; color:#fff; cursor:not-allowed; }

/* ---------- page header block ---------- */
.page-head{
  display:flex; justify-content:space-between; align-items:flex-start; gap: 20px;
  padding: 44px 0 24px; flex-wrap:wrap;
}
.page-head h1{ font-size: 32px; }
.page-head .sub{ color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.page-head-meta{ text-align:right; font-size: 13px; color: var(--muted); }
hr.rule{ border:none; border-top:1px solid var(--border); margin: 0 0 24px; }

/* ---------- lot rows (auction list) ---------- */
.lot-list{ display:flex; flex-direction:column; gap:0; border-top:1px solid var(--border); }
.lot-row{
  display:flex; align-items:center; gap: 22px;
  background:#fff; border-bottom:1px solid var(--border);
  padding: 18px 20px;
}
.lot-thumb{
  width:110px; height:110px;  border-radius: var(--radius); flex:none;
  background: linear-gradient(160deg,#BFE4F2,#8FC7E0);
  display:flex; align-items:center; justify-content:center; font-size:26px;
}
.lot-mark{
  width:110px; height:110px; 
  background: var(--white); border:1.5px solid var(--navy-900);
  display:flex; align-items:center; justify-content:center; flex:none;
  object-fit: cover; overflow:hidden;
}
.lot-bid-row .btn-block{ width:100%; height: 44px; }
.lot-thumb.rotate{ transform: scaleY(-1); }
.lot-info{ flex:1; min-width: 200px; }
.lot-title{ font-family: var(--font-display); font-size: 17px; }
.lot-col{ min-width: 118px; }
.lot-col .label{ font-size:10.5px; letter-spacing:.05em; color: var(--muted); text-transform:uppercase; margin-bottom:4px; }
.lot-col .value{ font-family: var(--font-display); font-size: 17px; color: var(--navy-800); }
.lot-col .sub{ font-size:12px; color: var(--muted); margin-top:2px; }
.lot-actions{ display:flex; gap:10px; flex:none; }

/* ---- lot card v2: top timer strip, big current bid, stepper ---- */
.lot-timer-label{ font-size:11px; letter-spacing:.06em; color:var(--muted); text-transform:uppercase; }
.lot-timer-badge{
  font-family: var(--font-display); font-size:22px; color: var(--navy-800);
}
.lot-timer-badge[data-urgent="true"]{ color: var(--danger); }

.lot-card-head{ display:flex; align-items:top; gap:24px; margin-bottom:0; }
.lot-card-head .lot-thumb{ width:110px; height:110px; }

.lot-highest{ flex:1; text-align:right; }
.lot-highest .label{ font-size:11px; letter-spacing:.06em; color:var(--muted); text-transform:uppercase; margin-bottom:6px; }
.lot-highest .value{ font-family: var(--font-display); font-size:26px; color: var(--navy-800); line-height:1; } /* was 38px */
.lot-highest .sub{ font-size:12.5px; color:var(--muted); margin-top:6px; }
.lot-value-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lot-number-badge{
  display:inline-grid; place-items:center; min-width:38px; height:38px; padding:0 6px; box-sizing:border-box;
  border:1px solid #E8CBC3; border-radius:6px; background:#FFF8F5; color:#D94735;
  box-shadow:inset 0 2px 4px rgba(31,42,61,.12), 0 1px 2px rgba(31,42,61,.08);
  font-family:var(--font-display); font-size:26px; font-weight:600; line-height:1; white-space:nowrap;
}

.lot-bid-row{ display:flex; gap:12px; align-items:flex-end; margin-top:18px; }
.bid-history-toggle{
  margin-top:14px; padding:0; border:0; background:none; color:var(--navy-700);
  font:600 12px var(--font-body); text-align:left; cursor:pointer;
}
.bid-history-toggle:hover{ text-decoration:underline; }
.bid-history{ margin-top:10px; padding:12px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.bid-history ol{ list-style:none; margin:0; padding:0; }
.bid-history li{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); font-size:12px; }
.bid-history li:last-child{ border-bottom:0; }
.bid-history-bidder{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.bid-history-contact{ color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.bid-history time{ color:var(--muted); text-align:right; }
.stepper{
  display:flex; align-items:center; border:1px solid var(--border); border-radius: var(--radius);
  overflow:hidden; flex:none;
}
.stepper-btn{
  width:38px; height:44px; border:none; background:#fff; font-size:16px; font-weight:600;
  color: var(--navy-700); cursor:pointer;
}

.stepper-wrap{ display:flex; flex-direction:column; gap:4px; }
.stepper-hint{ font-size: 11px; color: var(--muted); }

.stepper-btn:hover{ background: var(--navy-tint); }
.stepper-btn:disabled{ color:#C7CCD6; cursor:not-allowed; background:#fff; }
.stepper-value{
  width:38px; height:44px; display:flex; align-items:center; justify-content:center;
  font-weight:600; border-left:1px solid var(--border); border-right:1px solid var(--border);
}

.global-timer-banner{
  display:flex; justify-content:space-between; align-items:center;
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding: 16px 22px; margin: 8px 0 8px;
}
#auction-root .page-head{ padding-top:16px; }
.global-timer-banner .label{ font-size:11px; letter-spacing:.06em; color:var(--muted); text-transform:uppercase; margin-bottom:4px; }
.global-timer-banner .room-name{ font-size:14px; font-weight:600; color: var(--ink); }
.global-timer-banner .countdown{ font-family: var(--font-display); font-size:28px; color: var(--navy-800); }
.global-timer-banner .countdown[data-urgent="true"]{ color: var(--danger); }

/* ---------- cards / forms ---------- */
.card{
  background:#fff; border:1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-card); padding: 36px;
}
.card-narrow{ max-width: 460px; margin: 40px auto; }
.field{ margin-bottom: 20px; }
.field label{ display:block; font-size: 13px; font-weight:600; margin-bottom: 7px; }
.field input, .field select{
  width:100%; padding: 11px 13px; border:1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; background:#fff; color: var(--ink);
}
.field input::placeholder{ color:#A5ABB8; }
.image-upload-actions{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:8px; }
.image-upload-button{ cursor:pointer; }
.image-upload-input{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.image-upload-hint{ color:var(--muted); font-size:11.5px; }
.image-upload-error{ margin-top:7px; color:var(--danger); font-size:12px; }
.image-upload-preview{ display:block; max-width:180px; max-height:180px; object-fit:contain; margin-top:10px; padding:5px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-box{
  border:1px dashed var(--border); border-radius: var(--radius); padding: 14px;
  display:flex; align-items:center; min-height: 130px;
}
.hint{ text-align:center; font-size:12.5px; color: var(--muted); margin-top:14px; display:flex; align-items:center; justify-content:center; gap:6px; }
.foot-link{ text-align:center; margin-top:18px; font-size:13.5px; color: var(--muted); }
.foot-link a{ color: var(--navy-700); font-weight:600; }

/* ---------- two column layout (bid / payment) ---------- */
.split{ display:grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items:start; }
.summary-thumb{
  width:100%; aspect-ratio: 3/4; border-radius: var(--radius);
  background: linear-gradient(160deg,#BFE4F2,#8FC7E0);
  display:flex; align-items:center; justify-content:center; font-size:64px; margin-bottom:16px;
}
.summary-thumb-img{
  width:100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow:hidden; margin-bottom:16px;
  background: linear-gradient(160deg,#BFE4F2,#8FC7E0);
}
.summary-thumb-img img{ width:100%; height:100%; object-fit:contain; }
.summary-heading{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:2px; }
.summary-heading .lot-id{ font-size:11.5px; color:var(--muted); }
.won-badge-chip{
  display:inline-flex; align-items:center; gap:6px;
  background:#FBF3DE; color:#8A6A16; border:1px solid #EFDFA8;
  font-size:11.5px; font-weight:600; padding:4px 10px; border-radius:20px;
}
.won-badge-chip.cancelled{ background:#F4F1EE; color:#6E625B; border-color:#DED7D0; }
.won-cancelled-note{ display:block; max-width:240px; color:var(--muted); font-size:12px; line-height:1.45; }

.summary-row{ display:flex; justify-content:space-between; padding: 10px 0; font-size:14px; color: var(--muted); border-top:1px solid var(--border); }
.summary-total{ display:flex; justify-content:space-between; padding-top:16px; margin-top:6px; border-top:1px solid var(--border); font-weight:600; font-size:16px; }
.summary-total .amt{ color: var(--navy-800); font-family: var(--font-display); font-size: 22px; }

/* ---------- hero ---------- */
.hero{ text-align:center; padding: 90px 0 70px; }
.eyebrow{ font-size:12px; letter-spacing:.14em; color: var(--navy-700); font-weight:600; margin-bottom: 18px; }
.hero h1{ font-size: 52px; max-width: 820px; margin: 0 auto 32px; line-height:1.18; }
.hero .divider{ width:64px; height:2px; background: var(--navy-700); margin: 26px auto 0; }
.verified-chip{ display:inline-flex; align-items:center; gap:7px; font-size:13px; color: var(--muted); margin-top:18px; }
.verified-chip .dot{ width:16px; height:16px; border-radius:50%; border:1.5px solid var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:10px; }

/* ---------- empty / won banners ---------- */
.won-back{ padding-top:18px; text-align:left; font-size:13px; color:var(--muted); }
.won-empty-action{ margin-top:18px; }
.won-load-error{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; padding:32px 20px; color:var(--danger); }
.won-load-error p{ margin:0; }
  .won-card{
    background:#fff; border:1px solid var(--border); border-radius:10px;
    padding: 20px 22px; margin-bottom:16px; box-shadow: var(--shadow-card);
    display:flex; align-items:center; gap:20px;
  }
  .won-thumb{
    width:90px; height:90px; border-radius: var(--radius); flex:none; overflow:hidden;
    background: linear-gradient(160deg,#BFE4F2,#8FC7E0);
  }
  .won-thumb img{ width:100%; height:100%; object-fit:contain; }
  .won-info{ flex:1; min-width:180px; }
  .won-info .lot-title{ font-size:18px; margin-bottom:4px; }
  .won-info .lot-id{ font-size:11.5px; color:var(--muted); letter-spacing:.04em; }
  .won-col{ min-width:130px; }
  .won-col .label{ font-size:10.5px; letter-spacing:.05em; color:var(--muted); text-transform:uppercase; margin-bottom:4px; }
  .won-col .value{ font-family:var(--font-display); font-size:18px; color:var(--navy-800); }
  .won-badge-chip{
    display:inline-flex; align-items:center; gap:6px;
    background: #FBF3DE; color:#8A6A16; border:1px solid #EFDFA8;
    font-size:12px; font-weight:600; padding:5px 12px; border-radius:20px;
  }
  .won-badge-chip.cancelled{ background:#F4F1EE; color:#6E625B; border-color:#DED7D0; }
  .won-cancelled-note{ display:block; max-width:240px; color:var(--muted); font-size:12px; line-height:1.45; }
  .pay-chip{
    display:inline-flex; align-items:center; gap:6px;
    font-size:12px; font-weight:600; padding:5px 12px; border-radius:20px;
  }
  .pay-chip.paid{ background:#EAF6EF; color:#217A4C; border:1px solid #C9E9D4; }
  .pay-chip.due{ background: var(--danger-tint); color:var(--danger); border:1px solid #F4D6D2; }
  .pay-chip.cancelled{ background:#F4F1EE; color:#6E625B; border:1px solid #DED7D0; }
  .won-actions{ flex:none; }
  .empty-state{
    text-align:center; padding: 70px 20px; color:var(--muted);
  }
  .empty-state .icon{ font-size:36px; margin-bottom:14px; }
  @media (max-width:760px){
    .won-card{ flex-wrap:wrap; }
    .won-actions{ width:100%; }
    .won-actions .btn{ width:100%; }
  }

/* ---------- countdown ---------- */
.countdown[data-urgent="true"]{ color: var(--danger); }

/* auction rooms */
.rooms-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; margin-top:28px; }
.room-card{
  position:relative; border-radius:12px; overflow:hidden; min-height:200px; width: 200px; padding:18px 12px;
  background: linear-gradient(160deg,#1B2A4A,#33518C);
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  color:#fff; cursor:pointer; transition: transform .15s ease;
}
.room-card:hover{ transform: translateY(-3px); }
.room-card-running{ background:linear-gradient(160deg,#173C35,#2A7564); }
.room-card-closed{ background:linear-gradient(160deg,#465066,#68748A); }
.room-card-completed{ background:linear-gradient(160deg,#263B68,#4D689A); }
.room-card .room-num{ font-family: var(--font-display); font-size:44px; margin-bottom:6px; }
.room-card .room-label{ font-size:12px; letter-spacing:.12em; color:#C7D0E3; text-transform:uppercase; margin-bottom:10px; }
.room-card .room-count{
  font-size:12px; background:rgba(255,255,255,.15); padding:4px 12px; border-radius:20px;
}
.room-card .room-status{ margin-top:12px; font-size:11px; font-weight:600; letter-spacing:.04em; }
.room-card .room-timer-text{ margin-top:4px; font-size:12px; color:#E0E7F3; }

@media (max-width: 760px){
  .hdr{ flex-wrap:wrap; gap:12px; }
  .hdr-nav{ order:2; width:100%; gap:20px; }
  .split{ grid-template-columns: 1fr; }
  .lot-row{ flex-wrap:wrap; }
  .lot-actions{ width:100%; justify-content:flex-end; }
  .hero h1{ font-size: 34px; }
  .field-row{ grid-template-columns: 1fr; }
  .ftr-top{ flex-direction:column; }
  .rooms-grid{ grid-template-columns:1fr; }
}

/* go next untuk register */
.step{ display:none; }
.step.active{ display:block; }
.step-back{ font-size:13.5px; color:var(--muted); margin-bottom:14px; display:inline-block; }
.step-dots{ display:flex; gap:6px; justify-content:center; margin-bottom:24px; }
.step-dots span{ width:6px; height:6px; border-radius:50%; background:var(--border); }
.step-dots span.active{ background:var(--navy-700); }


/* ---------- lot card (auctions page, with inline bidding) ---------- */
.lot-card{
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding: 20px 22px; margin-bottom:16px; box-shadow: var(--shadow-card);
}
.lot-card-head .lot-thumb{ width:99.5px; height:170px; border-radius:10px; font-size:24px; }
.lot-card-head .lot-thumb img{
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.details-toggle-btn{
  width:100%; background:none; border:none; cursor:pointer;
  padding: 10px 0 2px; margin-top: 10px; text-align:center;
  color: var(--muted); font-size: 13px; transition: color .15s ease;
}
.details-toggle-btn:hover{ color: var(--navy-700); }

.lot-details-grid{
  display:grid; grid-template-columns: repeat(6, 1fr); gap:14px;
  padding: 16px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-bottom:16px;
}
.lot-details-grid .detail .label{ font-size:10.5px; letter-spacing:.06em; color:var(--muted); text-transform:uppercase; margin-bottom:5px; }
.lot-details-grid .detail .value{ font-size:14.5px; font-weight:600; color:var(--ink); }
.lot-details-grid .detail .value.accent{ font-family:var(--font-display); font-size:17px; color:var(--navy-800); }
.lot-details-grid .detail .sub{ font-size:11.5px; color:var(--muted); margin-top:2px; }

.lot-bid-row .bid-input{
  flex:1; padding:11px 13px; border:1px solid var(--border); border-radius: var(--radius); font-size:14px;
}
.closed-label{
  text-align:center; width:100%; padding:10px; background: var(--navy-tint); border-radius: var(--radius);
  color: var(--navy-800); font-weight:600; font-size:13.5px;
}

@media (max-width: 900px){
  .lot-details-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .lot-details-grid{ grid-template-columns: repeat(2, 1fr); }
  .lot-bid-row{ flex-direction:column; }
  .lot-bid-row .btn{ width:100%; }
}

/*  shop  */

  .shop-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; margin-top:8px; }
  .shop-error{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; padding:40px 20px; color:var(--danger); text-align:center; }
  .shop-error p{ margin:0; }

  .shop-card{
    background:#fff; border:1px solid var(--border); border-radius:10px;
    box-shadow: var(--shadow-card); overflow:hidden; display:flex; flex-direction:column;
  }
  .shop-thumb{ height: 420px; background: linear-gradient(160deg,#BFE4F2,#8FC7E0); }
  .shop-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

  .shop-body{ padding: 18px 20px 20px; display:flex; flex-direction:column; flex:1; }
  .shop-variant{ font-size:10.5px; letter-spacing:.08em; color:var(--muted); text-transform:uppercase; margin-bottom:5px; }
  .shop-name{ font-family: var(--font-display); font-size:19px; margin-bottom:10px; }
  .shop-location{ font-size:13px; color:var(--muted); margin-bottom:14px; display:flex; align-items:center; gap:5px; }

  .shop-specs{ display:flex; gap:14px; margin-bottom:16px; }
  .shop-spec .label{ font-size:10px; letter-spacing:.05em; color:var(--muted); text-transform:uppercase; margin-bottom:3px; }
  .shop-spec .value{ font-size:14px; font-weight:600; color:var(--ink); }

  .shop-footer{
    margin-top:auto; padding-top:14px; border-top:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  }
  .shop-price{
    font-family: var(--font-display); font-size:20px; color:var(--navy-800);
    flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .shop-footer .btn{ flex-shrink:0; }

  @media (max-width: 980px){ .shop-grid{ grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 620px){ .shop-grid{ grid-template-columns: 1fr; } }


/* chat box */
/* ---------- room chat widget ---------- */
.chat-widget{
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  font-family: var(--font-body);
}
.chat-toggle{
  width: 56px; height: 56px; border-radius: 50%; border:none;
  background: var(--navy-700); color:#fff; font-size: 22px;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-pop); cursor:pointer; position:relative;
}
.chat-toggle:hover{ background: var(--navy-800); }
.chat-toggle .badge{
  position:absolute; top:-4px; right:-4px; background: var(--danger); color:#fff;
  font-size:16px; font-weight:700; min-width:18px; height:18px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; padding: 0 4px;
}

.chat-panel{
  position: absolute; bottom: 68px; right: 0;
  width: min(580px, 92vw);
  height: min(880px, 85vh);
  max-width: 100vw; max-height: 100dvh;
  background:#fff;
  border:1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-pop);
  display:flex; flex-direction:column; overflow:hidden;
}
.chat-panel.hidden{ display:none; }

.chat-header{
  background: var(--navy-900); color:#fff; padding: 16px 18px;
  display:flex; justify-content:space-between; align-items:center; flex:none;
}
.chat-header .title{ font-size:22px; font-weight:600; }
.chat-header .sub{ font-size:18px; color:#9AA6BC; margin-top:2px; }
.chat-header .close-btn{ background:none; border:none; color:#9AA6BC; font-size:22px; cursor:pointer; line-height:1; }
.chat-header .close-btn:hover{ color:#fff; }

.chat-messages{ flex:1; overflow-y:auto; padding: 16px 18px; display:flex; flex-direction:column; gap:12px; }
.chat-msg{ max-width: 82%; }
.chat-msg .sender{ font-size:22px; font-weight:600; color: var(--navy-700); margin-bottom:3px; }
.chat-msg .bubble{ background: var(--navy-tint); border-radius: 12px; padding: 10px 14px; font-size:20px; line-height:1.45; }
.chat-msg.self{ align-self:flex-end; }
.chat-msg.self .sender{ text-align:right; color: var(--muted); }
.chat-msg.self .bubble{ background: var(--navy-700); color:#fff; }
.chat-msg .sticker-bubble{ background:transparent; padding:0 4px; font-size:56px; line-height:1.1; }
.chat-msg.self .sticker-bubble{ background:transparent; color:inherit; }

.chat-msg.system{
  align-self: center; max-width: 100%; text-align:center;
}
.chat-msg.system .bubble{
  background: var(--navy-tint); color: var(--navy-700);
  font-size: 12.5px; font-weight:600; padding: 6px 14px; border-radius: 20px; display:inline-block;
}
.chat-fish-number{
  display:inline-block; margin-left:3px; padding:1px 6px; border:1px solid #C8D1E1; border-radius:4px;
  background:#fff; color:var(--navy-800); box-shadow:inset 0 2px 3px rgba(31,42,61,.14); font-weight:700; white-space:nowrap;
}

.chat-input-row{ display:flex; gap:10px; padding: 14px; border-top:1px solid var(--border); flex:none; }
.chat-input-row input{
  flex:1; padding: 11px 14px; border:1px solid var(--border); border-radius: var(--radius); font-size:18px;
}
.chat-input-row button{
  background: var(--navy-700); color:#fff; border:none; border-radius: var(--radius);
  padding: 0 18px; font-size:20px; font-weight:600; cursor:pointer;
}
.chat-input-row button:hover{ background: var(--navy-800); }
.chat-sticker-picker{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:8px; padding:12px 14px; border-top:1px solid var(--border); background:#FBFAF7; }
.chat-sticker-picker[hidden]{ display:none; }
.chat-sticker-option{ min-height:48px; border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--ink); font-size:27px; cursor:pointer; transition:transform .12s ease, background .12s ease; }
.chat-sticker-option:hover{ background:var(--navy-tint); transform:translateY(-2px); }
.chat-input-row .chat-sticker-toggle{ flex:none; width:44px; padding:0; background:#fff; color:var(--navy-700); border:1px solid var(--border); font-size:23px; }
.chat-input-row .chat-sticker-toggle:hover{ background:var(--navy-tint); }

/* phone screens: chat takes over the full viewport, not a floating box */
@media (max-width: 640px){
  .chat-widget{ bottom: 16px; right: 16px; }
  .chat-panel{
    position: fixed; top:0; left:0; right:0; bottom:0;
    width: 100vw; height: 100dvh; max-width:none; max-height:none;
    border-radius: 0;
  }
}

/* ---------- auctions page: grid view (4 lots per row) ---------- */
/* body is a flex column, so a centred <main> shrinks to its content; this keeps it full width */
.wrap-fill{ width:100%; }

.lot-grid{
  display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:20px; align-items:start;
}
.lot-grid .lot-card{ margin-bottom:0; padding:16px; display:flex; flex-direction:column; }

.lot-grid .lot-card-head{ flex-direction:column; gap:14px; }
.lot-grid .lot-card-head .lot-thumb{
  width:100%; height:240px; background:#3AA8FF;   /* same blue as the koi photos, so they blend in */
}
.lot-grid .lot-highest{ text-align:left; flex:none; }
.lot-grid .lot-highest .value{ font-size:22px; }
.lot-grid .lot-number-badge{ font-size:22px; }
.lot-grid .bid-count-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lot-grid .details-toggle-btn{ width:auto; flex:none; display:inline-flex; align-items:center; gap:5px; padding:0 2px; margin:0; line-height:1; white-space:nowrap; font-size:11px; }
.lot-grid .details-toggle-btn span:first-child{ display:inline-block; width:12px; text-align:center; }

.lot-grid .lot-details-grid{ gap:12px; margin-top:14px !important; }
.lot-grid .lot-details-grid .detail .value{ font-size:13.5px; overflow-wrap:anywhere; }

/* push the bid controls to the bottom so buttons line up across a row */
.lot-grid .lot-bid-row{ flex-direction:column; align-items:stretch; margin-top:auto; gap:10px; }
.lot-grid .stepper-wrap{ flex-direction:row; align-items:center; justify-content:space-between; }

@media (max-width: 1100px){ .lot-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px){  .lot-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px){  .lot-grid{ grid-template-columns: 1fr; } }

/* ---------- header: login link / user dropdown ---------- */
.hdr-auth{ display:flex; align-items:center; min-height:42px; font-size:14px; }
.hdr-auth > a{ color: var(--ink); }
.admin-header-auth{ display:flex; align-items:center; gap:14px; font-size:13px; }
.admin-header-auth a{ color:var(--navy-700); font-weight:600; }
.admin-header-auth button{ border:0; padding:4px 0; background:none; color:var(--danger); font:inherit; cursor:pointer; }
.admin-header-badge{ display:flex; align-items:center; gap:9px; color:var(--ink); }
.admin-header-badge > span:last-child{ display:flex; flex-direction:column; line-height:1.2; }
.admin-header-badge small{ margin-top:2px; color:var(--muted); font-size:11px; }

.user-menu{ position:relative; }
.user-menu-btn{
  display:flex; align-items:center; gap:10px; padding:4px 12px 4px 4px;
  background:transparent; border:1px solid transparent; border-radius:999px;
  font: inherit; font-size:14px; color: var(--ink); cursor:pointer;
}
.user-menu-btn:hover, .user-menu-btn[aria-expanded="true"]{ background: var(--navy-tint); }
.user-menu-btn:focus-visible, .user-menu-item:focus-visible{ outline:2px solid var(--navy-700); outline-offset:2px; }
.user-avatar{
  width:32px; height:32px; border-radius:50%; flex:none;
  background: var(--navy-700); color:#fff; font-size:14px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
}
.user-identity{ display:flex; flex-direction:column; align-items:flex-start; gap:1px; max-width:180px; line-height:1.2; }
.user-nickname{ max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.user-real-name-header{ max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:11px; }
.user-chevron{ color: var(--muted); transition: transform .15s ease; }
.user-menu-btn[aria-expanded="true"] .user-chevron{ transform: rotate(180deg); }

.user-menu-pop{
  position:absolute; right:0; top:calc(100% + 8px); z-index:50; min-width:220px;
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding:6px;
}
.user-menu-pop[hidden]{ display:none; }
.user-menu-head{ padding:10px 12px 12px; margin-bottom:6px; border-bottom:1px solid var(--border); }
.user-menu-head b{ display:block; font-size:14px; overflow-wrap:anywhere; }
.user-menu-head span{ display:block; margin-top:2px; font-size:12px; color: var(--muted); overflow-wrap:anywhere; }
.user-menu-head .menu-nickname{ color:var(--ink); }
.user-menu-head .menu-real-name{ margin-top:2px; }
.user-menu-head .menu-email{ font-size:11px; }
.user-menu-item{
  display:block; width:100%; text-align:left; padding:9px 12px;
  background:none; border:0; border-radius:4px;
  font: inherit; font-size:14px; color: var(--ink); cursor:pointer;
}
.user-menu-item:hover{ background: var(--navy-tint); }
.user-menu-item[aria-current="page"]{ font-weight:600; }
.user-menu-item.danger{ color: var(--danger); }
.user-menu-item.danger:hover{ background: var(--danger-tint); }
@media (max-width: 520px){
  .user-real-name-header{ display:none; }
  .user-menu-btn{ padding-right:8px; }
}

/* ---------- form error box (login + register) ---------- */
.form-error{
  display:none; margin-bottom:16px; padding:10px 12px;
  background: var(--danger-tint); color: var(--danger);
  border:1px solid #F0C9C4; border-radius: var(--radius); font-size:13.5px;
}
.form-error.visible{ display:block; }
.profile-page{ padding-top:44px; padding-bottom:56px; }
.admin-fish-back{ padding-top:18px; font-size:13px; color:var(--muted); }
.admin-fish-form-card{ max-width:560px; margin:24px auto; }
.admin-fish-form-card h1{ font-size:24px; margin-bottom:6px; }
.admin-fish-subtitle{ margin:0 0 24px; }
.admin-fish-hint{ font-size:12px; color:var(--muted); margin-top:6px; }
.admin-fish-form-card a{ color:var(--navy-700); text-decoration:underline; }
.profile-intro{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.profile-intro h1{ font-size:34px; }
.profile-intro .eyebrow{ margin-bottom:8px; }
.profile-intro .sub{ margin-top:5px; }
.profile-card{ max-width:900px; margin:0 auto; padding:30px 34px; }
.profile-card-heading{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:26px; }
.profile-card-heading h2{ font-size:23px; }
.profile-card-heading .sub{ margin-top:4px; font-size:13px; }
.profile-avatar{ width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:none; background:var(--navy-tint); color:var(--navy-700); font-family:var(--font-display); font-size:24px; }
.profile-nickname{ display:flex; justify-content:space-between; align-items:center; gap:16px; background:var(--navy-tint); border:1px solid #D9E1EF; border-radius:8px; padding:14px 16px; margin-bottom:24px; }
.profile-nickname .label{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.profile-nickname .sub{ font-size:12px; margin-top:3px; }
.profile-nickname-value{ background:#fff; border:1px solid var(--border); border-radius:20px; color:var(--navy-800); padding:6px 12px; font-size:13px; font-weight:600; white-space:nowrap; }
.profile-address-row{ grid-template-columns:1fr 1fr .8fr; gap:16px; }
.profile-actions{ display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--border); padding-top:20px; margin-top:4px; }
.profile-actions .sub{ font-size:12px; }
.profile-password-required{ margin:20px 0; padding:12px 14px; border:1px solid #F0C9C4; border-radius:8px; background:var(--danger-tint); color:var(--danger); font-size:13px; }
.profile-password-section{ margin-top:30px; padding-top:26px; border-top:1px solid var(--border); }
.profile-password-section h2{ font-size:22px; }
.profile-password-section>p{ margin:5px 0 18px; font-size:13px; }
.profile-password-section form>.field{ max-width:50%; }
@media(max-width:760px){ .profile-password-section form>.field{ max-width:none; } }
.profile-message-success{ background:#EFF8F2; color:var(--success); border-color:#CFE6DA; }
.profile-message-error{ background:var(--danger-tint); color:var(--danger); border-color:#F0C9C4; }
@media(max-width:760px){
  .profile-page{ padding-top:28px; }
  .profile-intro{ align-items:flex-start; flex-direction:column; }
  .profile-card{ padding:24px 20px; }
  .profile-address-row{ grid-template-columns:1fr; gap:0; }
  .profile-nickname{ align-items:flex-start; flex-direction:column; }
  .profile-actions{ align-items:stretch; flex-direction:column; }
  .profile-actions .btn{ width:100%; }
}
@media(max-width:600px){ .admin-fish-form-card{ padding:24px 20px; } }
