:root {
  --navy-950: #081828;
  --navy-900: #0c2236;
  --navy-800: #122e48;
  --navy-700: #1a3a5c;
  --copper: #e06020;
  --copper-hover: #c95217;
  --copper-soft: #fdeee3;
  --gold: #e8922e;
  --blue: #216ba5;

  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1a2330;
  --ink-soft: #3c4655;
  --muted: #6b7482;
  --border: #e6e9ee;
  --border-strong: #d5dae2;

  --green: #0f7a4d;
  --green-soft: #e6f4ed;
  --red: #d5230d;
  --red-soft: #fdecea;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12,34,54,.05);
  --shadow: 0 1px 3px rgba(12,34,54,.07), 0 2px 10px rgba(12,34,54,.04);
  --shadow-lg: 0 14px 40px rgba(12,34,54,.12);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-hover); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; line-height: 1; color: var(--ink); }
.brand img { height: 48px; width: auto; object-fit: contain; display: block; }
.brand .brand-name { display: block; }
.brand .brand-name small { font-weight: 600; font-size: .52rem; color: var(--copper); letter-spacing: .03em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-size: .92rem; font-weight: 600; padding: 8px 13px; border-radius: 9px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--navy-800); background: var(--bg); }
.nav-links a.active { color: var(--navy-800); background: var(--copper-soft); }
.nav-auth { display: inline-flex; align-items: center; gap: 8px; }

/* Bell + burger (kanan navbar, di luar panel) */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--navy-800); border-color: var(--border-strong); }
.icon-btn .badge-num { position: absolute; top: -6px; right: -6px; margin: 0; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--ink); font-size: 1.3rem; line-height: 1;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}

main { flex: 1; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 130%);
  color: #fff; padding: 60px 0 90px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -100px; top: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(224,96,32,.4), transparent 62%); border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(33,107,165,.35), transparent 60%); border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #f8c7a0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.1; letter-spacing: -.01em; margin-bottom: 14px;
}
.hero h1 em { font-style: italic; color: #f8c7a0; }
.hero p { color: rgba(255,255,255,.84); font-size: 1.06rem; max-width: 560px; }

/* ===== Search bar (floating) ===== */
.search-wrap { margin-top: -46px; position: relative; z-index: 5; margin-bottom: 40px; }
.search-box {
  display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-lg);
}
.search-box .field { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.search-box .field label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-left: 2px; }
.search-box input, .search-box select {
  width: 100%; border: none; outline: none; background: transparent; font-size: .98rem;
  color: var(--ink); font-family: var(--font-body); padding: 7px 2px;
}
.search-box select { cursor: pointer; }
.search-box .btn { align-self: center; }

/* ===== Banner strip ===== */
.banner-strip { display: flex; gap: 14px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 6px; }
.banner {
  background: linear-gradient(135deg, var(--copper), var(--gold));
  color: #fff; border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; min-width: 260px; box-shadow: var(--shadow);
  font-weight: 700; transition: transform .15s, box-shadow .15s;
}
.banner:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.banner img { height: 46px; border-radius: 9px; }

/* ===== Section header ===== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 18px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; letter-spacing: -.01em; color: var(--navy-900); }
.section-head .more { font-size: .9rem; font-weight: 600; }

/* ===== Category chips ===== */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 40px; padding: 9px 17px; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: all .15s; box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: var(--copper); color: var(--copper); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip .emoji { font-size: 1.05rem; }

/* ===== Search results (produk + user) ===== */
.search-results { display: flex; flex-direction: column; gap: 28px; }
.search-group { display: flex; flex-direction: column; gap: 12px; }
.search-group-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--navy-900); margin: 0; }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.user-card {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.user-card:hover { border-color: var(--copper); box-shadow: var(--shadow); color: var(--ink); }
.user-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--copper-soft); color: var(--copper); font-weight: 800; font-size: 1.1rem; }
.user-card-info { display: flex; flex-direction: column; min-width: 0; }
.user-card-name { font-weight: 700; }
.user-card-username { color: var(--muted); font-size: .85rem; }
.user-card-loc { color: var(--muted); font-size: .8rem; }

/* ===== Listing grid ===== */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s; box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); color: var(--ink); }
.card-media {
  height: 170px; background: linear-gradient(135deg, var(--navy-800), var(--blue));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.card-media.coin { background: linear-gradient(135deg, #2f5f6b, #1a3a5c); }
.card-media .media-emoji { font-size: 3.2rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.card-media .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--navy-800);
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.card-body .cond { font-size: .8rem; color: var(--muted); }
.card-price { font-size: 1.3rem; font-weight: 800; color: var(--navy-800); }
.card-price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.card-price.price-flash { animation: priceFlash .6s ease; }
@keyframes priceFlash {
  0% { color: var(--copper); transform: scale(1.08); }
  100% { color: var(--navy-800); transform: scale(1); }
}
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.card-foot .bids { font-weight: 700; color: var(--copper); }
.card-seller { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); }
.card-seller .avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--copper-soft); color: var(--copper);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; flex-shrink: 0;
}
.card-seller .share-btn {
  margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: color .15s, border-color .15s;
}
.card-seller .share-btn:hover { color: var(--copper); border-color: var(--copper); }

/* ===== Sell page card ===== */
.sell-card .card-media { position: relative; }
.sell-pill { position: absolute; top: 12px; right: 12px; }
.sell-card-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.filter-check { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; margin: 0; }
.filter-check input { margin: 0; width: auto; }

/* ===== Dashboard ===== */
.dash-container { padding-top: 28px; padding-bottom: 48px; }
.dash-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--navy-900); margin-bottom: 4px; }
.dash-wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 22px; }
.dash-wallet-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
}
.dash-wallet-card.held { border-left: 4px solid var(--copper); }
.dash-wallet-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dash-wallet-amount { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--navy-800); }
.dash-wallet-hint { font-size: .78rem; color: var(--muted); }

.dash-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.dash-tab {
  background: none; border: none; padding: 11px 18px; font-size: .92rem; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font-body); white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.dash-tab:hover { color: var(--ink); }
.dash-tab.active { color: var(--copper); border-bottom-color: var(--copper); }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: ownerFade .2s ease; }

.empty-state { color: var(--muted); text-align: center; padding: 32px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; }

.tx-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.tx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tx-role { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tx-role.buyer { color: var(--blue); }
.tx-role.seller { color: var(--copper); }
.tx-card-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy-800); margin-bottom: 2px; }
.tx-item-meta { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.tx-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.tx-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.tx-item-main { min-width: 0; }
.tx-item-title { font-weight: 700; color: var(--ink); }

.ledger-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
}
.ledger-type { font-weight: 700; font-size: .9rem; }
.ledger-amt { font-weight: 800; font-size: .95rem; }
.ledger-amt.pos { color: var(--green); }
.ledger-amt.neg { color: var(--red); }

.withdraw-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.withdraw-form { display: flex; gap: 8px; flex-wrap: wrap; }
.withdraw-form input { flex: 1; min-width: 130px; margin: 0; }

/* ===== Account ===== */
.acct-container { padding-top: 28px; padding-bottom: 48px; }
.acct-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--navy-900); margin-bottom: 4px; }
.acct-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; margin-top: 20px; }
.acct-side { position: sticky; top: 90px; }
.acct-profile-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.acct-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--copper-soft); }
.acct-photo-btn { margin-top: 12px; }
.acct-profile-card h3 { margin-top: 12px; font-weight: 800; color: var(--navy-900); font-size: 1.1rem; }
.acct-main { min-width: 0; }
.acct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.acct-tab {
  background: none; border: none; padding: 11px 18px; font-size: .92rem; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font-body); white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.acct-tab:hover { color: var(--ink); }
.acct-tab.active { color: var(--copper); border-bottom-color: var(--copper); }
.acct-panel { display: none; }
.acct-panel.active { display: block; animation: ownerFade .2s ease; }
.acct-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.acct-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.acct-field { margin-bottom: 4px; }
.acct-field-full { grid-column: 1 / -1; }
.acct-field label { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.acct-card .btn { margin-top: 12px; }
@media (max-width: 760px) {
  .acct-layout { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .acct-form-grid { grid-template-columns: 1fr; }
}

/* ===== Buttons & forms ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--copper); color: #fff; border: none; border-radius: 10px;
  padding: 11px 20px; font-size: .95rem; cursor: pointer; font-weight: 700;
  transition: background .15s, box-shadow .15s, transform .1s; box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}
.btn:hover { background: var(--copper-hover); color: #fff; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: .84rem; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 14px; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); box-shadow: none; }
.btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--border-strong); }
.btn-navy { background: var(--navy-800); }
.btn-navy:hover { background: var(--navy-900); }

input, select, textarea {
  width: 100%; background: var(--surface); border: 1.5px solid var(--border);
  color: var(--ink); border-radius: 10px; padding: 12px 14px; font-size: .96rem;
  margin: 6px 0 14px; outline: none; transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(224,96,32,.12); }
label { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }

.error { color: var(--red); font-size: .85rem; margin-top: 6px; min-height: 1em; }
.muted { color: var(--muted); }

/* ===== Auth card ===== */
.auth-card {
  max-width: 430px; margin: 48px auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 600px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; margin-bottom: 6px; color: var(--navy-900); }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.auth-brand { text-align: center; }
.auth-logo { height: 84px; width: auto; margin-bottom: 10px; }
.auth-brand h1 { font-size: 1.6rem; }
.tagline { color: var(--copper); font-weight: 600; font-size: .9rem; letter-spacing: .02em; margin-bottom: 22px; }

/* ===== Login (redesign) ===== */
.login-wrap { display: flex; justify-content: center; padding: 48px 16px; }
.login-card {
  width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow);
}
.login-brand { text-align: center; margin-bottom: 20px; }
.login-logo { height: 72px; width: auto; margin-bottom: 12px; }
.login-brand h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--navy-900); margin-bottom: 4px; }
.login-brand .muted { font-size: .92rem; }
.login-google { margin-bottom: 4px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.btn-google:hover { background: var(--bg); border-color: var(--border-strong); color: var(--ink); }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .8rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-links { display: flex; justify-content: center; gap: 8px; margin-top: 16px; font-size: .9rem; }
@media (max-width: 480px) {
  .login-card { padding: 26px 20px; }
}

/* ===== Modal (PIN owner) ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(8,24,40,.55);
  display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px;
}
.modal-card {
  background: var(--surface); border-radius: 18px; padding: 28px; max-width: 380px; width: 100%;
  box-shadow: var(--shadow-lg); text-align: center;
}
.modal-card h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy-900); margin-bottom: 8px; }
.modal-card .muted { margin-bottom: 18px; }
.modal-card input { margin-bottom: 12px; }

/* ===== Detail page ===== */
.detail-wrap { display: grid; grid-template-columns: 1fr 350px; gap: 28px; }
.gallery { margin: 20px 0; }
.gallery-main { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: #f3f4f6; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid var(--border); transition: border-color .15s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--copper); }
.detail-main h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin: 12px 0 6px; line-height: 1.15; color: var(--navy-900); }
.badge {
  display: inline-block; background: var(--copper-soft); color: var(--copper);
  padding: 5px 13px; border-radius: 20px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.detail-hero {
  height: 300px; border-radius: var(--radius); margin: 20px 0;
  background: linear-gradient(135deg, var(--navy-800), var(--blue));
  display: flex; align-items: center; justify-content: center;
}
.detail-hero .media-emoji { font-size: 5rem; filter: drop-shadow(0 5px 10px rgba(0,0,0,.3)); }
.price-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin: 20px 0; box-shadow: var(--shadow-sm);
}
.price-box .label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.big-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--navy-800); margin: 4px 0; }
.countdown { margin-bottom: 16px; font-weight: 600; color: var(--ink-soft); }
.bid-form { display: flex; gap: 10px; flex-wrap: wrap; }
.bid-form input { flex: 1; margin: 0; min-width: 150px; }

.detail-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); height: fit-content; }
.detail-side h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy-900); }
.bid-list { list-style: none; margin-top: 12px; }
.bid-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.bid-list .amt { color: var(--navy-800); font-weight: 800; }
.bid-list .time { color: var(--muted); font-size: .8rem; }

/* ===== Dashboard ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card .label { font-size: .8rem; color: var(--muted); font-weight:600; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--navy-800); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.inline-form input { flex: 1; min-width: 120px; margin: 0; }
h3 { margin: 26px 0 10px; font-weight: 800; color: var(--navy-900); font-size: 1.15rem; }

.footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding: 26px 0; font-size: .86rem; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer b { color: #fff; }

/* ===== Badge notif ===== */
.badge-num {
  display: inline-block; background: var(--red); color: #fff; border-radius: 10px;
  padding: 0 7px; font-size: .72rem; font-weight: 800; margin-left: 3px; line-height: 1.5;
}

/* ===== Dropdown notifikasi (floating) ===== */
.notif-panel {
  position: fixed; top: 70px; right: 24px; width: 360px; max-width: calc(100vw - 32px);
  max-height: 70vh; display: none; flex-direction: column; z-index: 300;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.notif-panel.open { display: flex; }
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.notif-list { overflow-y: auto; padding: 6px; }
.notif-item { display: flex; gap: 10px; padding: 12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.notif-item:hover { background: var(--bg); }
.notif-item.read { opacity: .6; }
.notif-item-body { min-width: 0; }
.notif-item-body b { font-size: .9rem; }
.notif-item-body .muted { font-size: .82rem; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); flex-shrink: 0; margin-top: 6px; }
.notif-empty { padding: 24px; text-align: center; color: var(--muted); }

/* ===== Floating chat widget (WhatsApp style) ===== */
.chat-fab {
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--copper); color: #fff; border: none; cursor: pointer; z-index: 250;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform .15s, background .15s;
}
.chat-fab:hover { background: var(--copper-hover); transform: translateY(-2px); }
.chat-fab .badge-num { position: absolute; top: -4px; right: -4px; margin: 0; }
.chat-widget {
  position: fixed; bottom: 92px; right: 22px; width: 380px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px); z-index: 251;
  display: none; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-widget.open { display: flex; }
.chat-widget-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--navy-800); color: #fff; font-weight: 700;
}
.chat-widget-head span { flex: 1; }
.chat-back, .chat-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.chat-back:hover, .chat-close:hover { background: rgba(255,255,255,.12); }
.chat-widget-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-view { flex: 1; min-height: 0; overflow-y: auto; }
.chat-widget .chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.chat-widget .chat-active { display: flex; flex-direction: column; height: 100%; }
.chat-widget .chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.chat-widget .chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-widget .chat-input input { flex: 1; margin: 0; }

/* ===== Chat ===== */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.chat-list-pane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); height: fit-content; }
.chat-list-pane h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy-900); margin-top: 0; }
.chat-main-pane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-height: 500px; overflow: hidden; }
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 10px; }
.chat-empty .big-emoji { font-size: 3rem; }
.chat-active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input input { flex: 1; margin: 0; }
.conv-item { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; color: var(--ink); font-weight: 600; transition: border-color .15s, background .15s; }
.conv-item:hover { border-color: var(--copper); background: var(--copper-soft); color: var(--ink); }
.conv-item.active { border-color: var(--copper); background: var(--copper-soft); }
.status-tag { position: absolute; top: 12px; right: 12px; background: var(--copper); color: #fff; }
.status-tag.scheduled { background: var(--blue); }
.chat-layout { display: grid; grid-template-columns: 290px 1fr; gap: 20px; }
.chat-detail-full { max-width: 740px; }
.message-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; min-height: 340px; }
.msg { display: flex; flex-direction: column; }
.msg.mine { align-items: flex-end; }
.msg .bubble {
  max-width: 74%; padding: 11px 16px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.msg.mine .bubble { background: var(--navy-800); color: #fff; border: none; }
.msg .time { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.chat-img { max-width: 240px; max-height: 300px; border-radius: 12px; display: block; cursor: pointer; object-fit: cover; }
.btn-attach { padding: 11px 13px; font-size: 1.1rem; line-height: 1; }
.chat-attach-preview { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-attach-preview img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-family: var(--font-display); font-size: 4rem; color: var(--navy-800); }

/* ===== Account / profil ===== */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.account-side .profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.profile-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--copper-soft); }
.profile-public { max-width: 520px; margin: 40px auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.profile-public h1 { font-family: var(--font-display); margin: 12px 0 0; }
.profile-public .profile-photo { width: 120px; height: 120px; }

/* ===== Seller card (halaman lelang) ===== */
.seller-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-top: 24px; box-shadow: var(--shadow-sm); }
.seller-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.seller-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--copper-soft); color: var(--copper); font-weight: 800; font-size: 1.2rem; }
.seller-info { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.seller-info a { color: var(--copper); font-weight: 700; }

/* ===== Detail produk (redesign) ===== */
.ld-container { padding-top: 28px; padding-bottom: 40px; }
.ld-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: start; }

.ld-gallery { position: sticky; top: 90px; }
.ld-gallery-main {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: #eef1f5; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.ld-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.ld-gallery-empty { font-size: 5rem; color: var(--copper); font-weight: 800; }
.ld-badge {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--navy-800);
  padding: 5px 13px; border-radius: 20px; font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; box-shadow: var(--shadow-sm);
}
.ld-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 12px; }
.ld-gallery-thumbs img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--border); transition: border-color .15s;
}
.ld-gallery-thumbs img.active, .ld-gallery-thumbs img:hover { border-color: var(--copper); }

.ld-title { font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; line-height: 1.2; color: var(--navy-900); margin: 0 0 14px; }

.ld-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ld-meta-item { display: flex; align-items: baseline; gap: 10px; font-size: .92rem; }
.ld-meta-label { color: var(--muted); font-weight: 700; min-width: 64px; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.ld-meta-value { color: var(--ink); font-weight: 600; }

.ld-price-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.ld-price-label { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ld-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--navy-800); margin: 6px 0; line-height: 1; }
.ld-price-meta { display: flex; gap: 14px; color: var(--muted); font-size: .88rem; margin-bottom: 14px; flex-wrap: wrap; }
.ld-countdown { padding: 10px 14px; background: var(--copper-soft); color: var(--copper-hover); border-radius: 10px; font-weight: 700; font-size: .92rem; margin-bottom: 14px; }
.ld-countdown #countdown-text.countdown-urgent { display: inline-block; animation: countdownPulse 1s ease-in-out infinite; }
@keyframes countdownPulse {
  0%, 100% { color: var(--copper-hover); }
  50% { color: var(--red); }
}
.ld-bid-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ld-bid-form input { flex: 1; min-width: 150px; margin: 0; }
.ld-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ld-seller {
  display: flex; align-items: flex-start; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm);
}
.ld-seller-photo {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex;
  align-items: center; justify-content: center; background: var(--copper-soft); color: var(--copper);
  font-weight: 800; font-size: 1.4rem; text-decoration: none;
}
.ld-seller-photo img { width: 100%; height: 100%; object-fit: cover; }
.ld-seller-body { flex: 1; min-width: 0; }
.ld-seller-name { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.ld-seller-name a { color: var(--copper); }
.ld-seller-row { display: flex; gap: 8px; font-size: .86rem; margin-bottom: 4px; }
.ld-seller-label { color: var(--muted); font-weight: 700; min-width: 64px; flex-shrink: 0; }
.ld-seller-value { color: var(--ink-soft); word-break: break-word; }
.ld-seller-value a { color: var(--copper); }

.ld-section { margin-top: 34px; }
.ld-section h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--navy-900); margin-bottom: 14px; }
.ld-desc { white-space: pre-wrap; line-height: 1.7; color: var(--ink-soft); }

@media (max-width: 900px) {
  .ld-grid { grid-template-columns: 1fr; gap: 20px; }
  .ld-gallery { position: static; }
  .ld-title { font-size: 1.45rem; }
  .ld-price { font-size: 2rem; }
}

/* ===== Sell item thumbnail ===== */
.sell-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: var(--surface-2, #f3f4f6); }
.sell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sell-thumb .media-emoji { font-size: 1.6rem; }

/* ===== Sell list (kelola listing) — baris rapi per item ===== */
.sell-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin: 10px 0;
}
.sell-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sell-item-info .title { font-size: 1.05rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sell-item-info .meta { font-size: .85rem; color: var(--muted); }
.sell-item-info .time { font-size: .8rem; color: var(--muted); }
.sell-item-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.status-pill {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.status-pill.draft { background: #eef1f5; color: #55606e; }
.status-pill.scheduled { background: #e7f0fb; color: var(--blue); }
.status-pill.published { background: var(--green-soft); color: var(--green); }
.status-pill.sold { background: var(--copper-soft); color: var(--copper); }
.status-pill.ended_unsold, .status-pill.cancelled { background: var(--red-soft); color: var(--red); }

@media (max-width: 560px) {
  .sell-item { gap: 10px; }
  .sell-thumb { width: 56px; height: 56px; }
  .sell-item-actions { flex-direction: row; }
  .sell-item-actions .btn { padding: 6px 10px; font-size: .78rem; }
}

/* ===== card thumbnail ===== */
.card-thumb { width: 100%; height: 100%; object-fit: cover; }
.card-media { overflow: hidden; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
}

/* ===== Image upload (create form) ===== */
.dropzone {
  position: relative; border: 2px dashed var(--border-strong); border-radius: 12px;
  padding: 34px 16px; text-align: center; cursor: pointer; background: var(--surface);
  transition: border-color .15s, background .15s; margin-bottom: 12px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--copper); background: var(--copper-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.dz-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.dz-plus {
  width: 52px; height: 52px; border-radius: 50%; background: var(--copper-soft); color: var(--copper);
  font-size: 2rem; font-weight: 600; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.dz-text { font-weight: 700; color: var(--ink-soft); }
.dz-hint { font-size: .78rem; color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-bottom: 14px; }
.preview-grid .pv {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.preview-grid .pv img { width: 100%; height: 100%; object-fit: cover; }
.preview-grid .pv .rm {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: .9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col input { margin: 6px 0 0; }
@media (max-width: 900px) {
  .container { padding: 0 16px; }
}

@media (max-width: 760px) {
  /* ===== Mobile navbar (hamburger) ===== */
  .nav-inner { height: 60px; gap: 10px; }
  .brand img { height: 36px; width: auto; }
  .brand { font-size: 1.1rem; }
  .brand .brand-name small { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; border-radius: 8px; }
  .nav-auth { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 6px; }
  .nav-auth a { text-align: center; }

  /* ===== Hero ===== */
  .hero { padding: 36px 0 76px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: .95rem; }

  /* ===== Search ===== */
  .search-wrap { margin-top: -34px; margin-bottom: 28px; }
  .search-box { padding: 10px; gap: 6px; }
  .search-box .field { min-width: 100%; }
  .search-box .btn { width: 100%; margin-top: 4px; }

  /* ===== Chips ===== */
  .chips { gap: 8px; margin-bottom: 18px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip { white-space: nowrap; padding: 8px 14px; font-size: .84rem; }

  /* ===== Section head ===== */
  .section-head { margin: 24px 0 14px; }
  .section-head h2 { font-size: 1.35rem; }

  /* ===== Cards ===== */
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-media { height: 120px; }
  .card-body { padding: 12px; gap: 5px; }
  .card-body h3 { font-size: .92rem; }
  .card-price { font-size: 1.1rem; }
  .card-foot { font-size: .74rem; }
  .card-seller { font-size: .74rem; }

  /* ===== Detail ===== */
  .detail-wrap { grid-template-columns: 1fr; gap: 20px; }
  .detail-main h1 { font-size: 1.5rem; }
  .gallery-main { height: 260px; }
  .gallery-thumbs img { width: 60px; height: 60px; }
  .big-price { font-size: 2rem; }
  .price-box { padding: 18px; }
  .bid-form { flex-direction: column; }
  .bid-form input { min-width: 100%; }
  .bid-form .btn { width: 100%; }

  /* ===== Auth ===== */
  .auth-card { margin: 20px auto; padding: 22px; border-radius: 14px; }
  .auth-card h1 { font-size: 1.4rem; }

  /* ===== Dashboard ===== */
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .big { font-size: 1.3rem; }

  /* ===== Chat ===== */
  .chat-layout { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; }

  /* ===== Footer ===== */
  .footer { padding: 20px 0; }
  .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .listing-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* ===== Owner panel ===== */
.owner-wrap { padding-top: 40px; padding-bottom: 64px; }
.owner-header { margin-bottom: 26px; }
.owner-header .eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); background: var(--copper-soft); padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
}
.owner-header h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--navy-900); margin-bottom: 6px; }
.owner-header .muted { font-size: .98rem; }

.owner-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.owner-tab {
  background: none; border: none; padding: 12px 18px; font-size: .92rem; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: var(--font-body);
  transition: color .15s, border-color .15s;
}
.owner-tab:hover { color: var(--ink); }
.owner-tab.active { color: var(--copper); border-bottom-color: var(--copper); }

.owner-panel { display: none; }
.owner-panel.active { display: block; animation: ownerFade .2s ease; }
@keyframes ownerFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.panel-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--navy-900); }
.panel-head .muted { font-size: .85rem; }

.owner-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.owner-row .main { flex: 1; min-width: 200px; }
.owner-row .title { font-weight: 700; color: var(--ink); font-size: .98rem; }
.owner-row .title .muted { font-weight: 500; }
.owner-row .meta { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.owner-row .actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

.owner-empty {
  color: var(--muted); text-align: center; padding: 28px;
  border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface);
}

.banner-form { margin-bottom: 16px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 140px; margin: 0; }
.form-row .btn { flex-shrink: 0; }
.commission-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; box-shadow: var(--shadow-sm); max-width: 520px;
}
.commission-box label { display: block; margin-bottom: 4px; }

.status-pill.ok { background: var(--green-soft); color: var(--green); }
.status-pill.warn { background: #fff4e0; color: #b26a00; }
.status-pill.bad { background: var(--red-soft); color: var(--red); }
.status-pill.neutral { background: #eef1f5; color: #55606e; }

/* ===== Owner: tabel user + search + pagination ===== */
.user-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.user-search { flex: 1; min-width: 240px; margin: 0 !important; }
.user-perpage { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.user-perpage label { margin: 0; font-weight: 600; }
.perpage-select { width: auto; margin: 0 !important; padding: 8px 10px; font-size: .85rem; }

.user-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.user-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.user-table thead th {
  text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg);
  white-space: nowrap;
}
.user-table th.num, .user-table td.num { text-align: right; }
.user-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.user-table tbody tr:last-child td { border-bottom: none; }
.user-table tbody tr:hover { background: #fafbfc; }
.u-name { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.u-sub { font-size: .8rem; color: var(--muted); }
.u-email { color: var(--ink-soft); font-size: .85rem; }
.u-date { font-size: .82rem; color: var(--muted); white-space: nowrap; }

.user-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.user-pagination .pager-btns { display: flex; align-items: center; gap: 8px; }

.btn-danger { background: var(--red); }
.btn-danger:hover { background: #b81c09; }
.modal-card textarea { width: 100%; margin: 8px 0 16px; min-height: 96px; resize: vertical; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 560px) {
  .owner-row { flex-direction: column; align-items: flex-start; }
  .owner-row .actions { width: 100%; }
  .owner-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .owner-tab { white-space: nowrap; }
}
