/* =========================================================
   TUKU BUKU - Main Stylesheet
   ========================================================= */

:root{
  --cream: #faf6ec;
  --cream-soft: #faf6ec;
  --brown: #5a7646;
  --brown-dark: #2b2a24;
  --green: #5a7646;
  --green-dark: #4a6338;
  --tan: #e9e1d1;
  --tan-dark: #8a5432;
  --white: #FFFFFF;
  --text-dark: #2b2a24;
  --shadow: 0 10px 25px rgba(107,68,35,.15);
  --radius-pill: 50px;
  --radius-card: 20px;
  --transition: all .3s ease;
}

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

body{
  font-family: var(--f-body);
  background-color: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,h2,h3,.brand-title, .nav-pill, .btn-primary, .btn-secondary, .btn-outline, .btn-solid-outline{
  font-family: var(--f-display);
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }

/* ================= HEADER / NAV ================= */
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 50px;
  background-color: var(--cream-soft);
  position: sticky;
  top:0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill{
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  color: var(--brown-dark);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}
.nav-pill:hover{ background-color: rgba(201,168,118,.35); }
.nav-pill.active{ background-color: var(--tan-dark); color: var(--brown-dark); }

.nav-right{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-box{
  display:flex;
  align-items:center;
  border: 2px solid var(--brown-dark);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 18px;
  background: var(--white);
}
.search-box input{
  border:none; outline:none; background:transparent;
  font-family:var(--f-body); width: 180px;
}
.search-box button{
  border:none; background: transparent; cursor:pointer; font-size:1rem;
}

.btn-outline, .btn-solid-outline{
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--brown-dark);
  font-weight: 700;
  color: var(--brown-dark);
  background: transparent;
  transition: var(--transition);
  cursor:pointer;
}
.btn-solid-outline{ border: 3px solid #222; color:#222; }
.btn-outline:hover{ background: var(--brown-dark); color: var(--white); }
.btn-solid-outline:hover{ background:#222; color: var(--white); }
.user-greet{ font-weight:600; color: var(--brown-dark); }

/* ================= HERO (HOME) ================= */
.hero{
  position: relative;
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  background-color: var(--cream); /* fallback kalau gambar belum ada */
  display:flex;
  align-items:center;
  padding: 60px 50px;
  overflow:hidden;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom{
  from{ background-size: 100%; }
  to{ background-size: 112%; }
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, var(--cream) 28%, rgba(239,230,211,0.85) 42%, rgba(239,230,211,0.35) 60%, rgba(239,230,211,0) 80%);
}
.hero-content{ position: relative; z-index: 2; max-width: 620px; }

.logo-block{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 26px;
}
.logo-img{ width: 260px; height:auto; }
.brand-title{
  font-size: 3rem;
  line-height: 1;
  color: var(--green-dark);
  font-weight: 800;
  -webkit-text-stroke: 1px var(--brown-dark);
}

.hero-tagline{
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-cta{ display:flex; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary{
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  display:inline-block;
}
.btn-primary{ background: var(--green); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover{ background: var(--green-dark); transform: translateY(-3px); }
.btn-secondary{ background: var(--white); color: var(--brown-dark); border: 2px solid var(--brown-dark); }
.btn-secondary:hover{ background: var(--brown-dark); color:var(--white); transform: translateY(-3px); }

/* ================= FEATURE CARDS (HOME) ================= */
.features{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  padding: 70px 50px;
}
.feature-card{
  background: rgba(139,90,43,0.10);
  border: 1.5px solid rgba(139,90,43,0.35);
  border-radius: var(--radius-card);
  padding: 34px 26px;
  box-shadow: 0 6px 18px rgba(107,68,35,.08);
  text-align:center;
  transition: var(--transition);
}
.feature-card:hover{ transform: translateY(-8px); background: rgba(139,90,43,0.16); border-color: rgba(139,90,43,0.55); }
.feature-card h3{ color: var(--brown-dark); margin-bottom: 12px; font-size:1.3rem; }
.feature-card p{ color: var(--text-dark); line-height:1.6; }

/* ================= LIST PAGE (BUY / TRADE) ================= */
.list-page{ padding: 50px; min-height: 70vh; }
.list-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 34px;
  flex-wrap: wrap;
  gap: 16px;
}
.list-header h2{ color: var(--brown-dark); font-size: 2rem; }
.category-filter select{
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--green);
  font-family:var(--f-body);
  color: var(--green-dark);
  font-weight:600;
  background: var(--white);
  cursor:pointer;
}

.book-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.empty-msg{ grid-column: 1/-1; text-align:center; color: var(--brown-dark); font-size:1.2rem; padding: 40px 0; }

.book-card{
  background: var(--white);
  border-radius: var(--radius-card);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display:flex;
  flex-direction: column;
}
.book-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 30px rgba(107,68,35,.22); }
.book-cover{ height: 230px; background: var(--cream-soft); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.book-cover img{ width:100%; height:100%; object-fit: cover; }
.book-info{ padding: 18px 20px; flex:1; display:flex; flex-direction:column; }
.book-title{ font-size: 1.1rem; color: var(--brown-dark); margin-bottom: 4px; }
.book-author{ font-size: .92rem; color: #6a6253; margin-bottom: 10px; flex:1; }
.book-price{ font-weight:700; color: var(--green-dark); margin-bottom: 12px; }
.book-trade{ font-size:.85rem; color: var(--green-dark); font-weight:600; margin-bottom: 12px; }
.btn-readmore{
  align-self:flex-start;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--tan-dark);
  color: var(--brown-dark);
  font-weight:700;
  font-size:.9rem;
  transition: var(--transition);
}
.btn-readmore:hover{ background: var(--green); color: var(--white); }

/* ================= SELL PAGE ================= */
.sell-hero{
  position:relative;
  min-height: 90vh;
  background-size: cover;
  background-position:center;
  background-color: #3b2f26;
  display:flex;
  align-items:center;
  padding: 60px 50px;
}
.sell-hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(20,15,10,.55) 30%, rgba(20,15,10,.1) 80%);
}
.sell-content{ position:relative; z-index:2; max-width: 560px; color:#fff; }
.sell-content h2{ font-size: 2.1rem; margin-bottom: 8px; }
.sell-content p{ font-size:1.1rem; margin-bottom: 26px; }
.btn-gform{
  display:inline-block;
  background: var(--tan-dark);
  color: var(--brown-dark);
  padding: 18px 34px;
  border-radius: var(--radius-pill);
  font-weight:700;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.btn-gform:hover{ background: var(--green); color:#fff; transform: translateY(-3px); }

/* ================= FORM PAGES (jual buku / login / signup / contact) ================= */
.form-wrap{
  max-width: 560px;
  margin: 60px auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.form-wrap h2{ color: var(--brown-dark); margin-bottom: 22px; text-align:center; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display:block; font-weight:600; margin-bottom:6px; color: var(--brown-dark); }
.form-group input, .form-group select, .form-group textarea{
  width:100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--tan-dark);
  font-family:var(--f-body);
  outline:none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ border-color: var(--green); }
.btn-submit{
  width:100%;
  padding: 14px;
  border:none;
  border-radius: var(--radius-pill);
  background: var(--green);
  color:#fff;
  font-weight:700;
  font-size:1.05rem;
  cursor:pointer;
  transition: var(--transition);
}
.btn-submit:hover{ background: var(--green-dark); }
.form-msg{ text-align:center; padding: 12px; border-radius: 10px; margin-bottom: 18px; font-weight:600; }
.form-msg.success{ background:#e2f3e0; color: var(--green-dark); }
.form-msg.error{ background:#fbe4e4; color:#a33; }
.form-footnote{ text-align:center; margin-top:16px; font-size:.9rem; color:#6a6253; }

/* ================= CONTACT PAGE ================= */
.contact-hero{
  position:relative;
  min-height: 90vh;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding: 60px 90px;
  background: linear-gradient(135deg,#f4a678 0%, #e2725b 35%, #6b4d63 70%, #3a3b5c 100%);
  overflow:hidden;
}
.contact-hero::after{
  content:"";
  position:absolute; bottom:0; left:0; right:0; height:35%;
  background: linear-gradient(0deg, rgba(60,80,40,.55), transparent);
}
.contact-box{
  position:relative; z-index:2;
  background: rgba(0,0,0,.28);
  padding: 34px 40px;
  border-radius: var(--radius-card);
  color:#fff;
  max-width: 420px;
  text-align:left;
  backdrop-filter: blur(2px);
}
.contact-box p{ font-size:1.15rem; font-weight:600; margin-bottom: 22px; line-height:1.5; }
.btn-contact{
  display:inline-block;
  background: var(--tan-dark);
  color: var(--brown-dark);
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight:700;
  transition: var(--transition);
}
.btn-contact:hover{ background: var(--green); color:#fff; }

/* ================= FOOTER ================= */
.site-footer{
  text-align:center;
  padding: 30px;
  background: var(--brown-dark);
  color: var(--cream-soft);
}
.footer-logo{
  font-family:var(--f-display);
  font-size:1.3rem;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
}
.footer-logo-img{ width: 34px; height:auto; }

/* ================= SCROLL REVEAL ANIMATION ================= */
.reveal{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible{ opacity: 1; transform: translateY(0); }
.reveal:nth-child(2){ transition-delay: .1s; }
.reveal:nth-child(3){ transition-delay: .2s; }
.reveal:nth-child(4){ transition-delay: .3s; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px){
  .features{ grid-template-columns: 1fr; }
  .navbar{ padding: 14px 20px; }
  .hero, .sell-hero{ padding: 40px 24px; }
  .list-page{ padding: 30px 20px; }
  .contact-hero{ justify-content:center; padding: 40px 24px; text-align:center; }
}

/* =========================================================
   SIGN UP - Khusus Mahasiswa UI
   ========================================================= */
.signup-wrap{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  min-height: 80vh;
}
.signup-banner{
  background: linear-gradient(160deg, var(--brown-dark) 0%, #4a3220 100%);
  color: #f3ead9;
  display:flex;
  align-items:center;
  padding: 60px 50px;
  position:relative;
  overflow:hidden;
}
.signup-banner::before{
  content:"";
  position:absolute;
  width:340px; height:340px;
  border-radius:50%;
  background: rgba(255,255,255,0.04);
  top:-100px; right:-100px;
}
.signup-banner::after{
  content:"";
  position:absolute;
  width:220px; height:220px;
  border-radius:50%;
  border: 1px solid rgba(255,255,255,0.15);
  bottom:-60px; left:-60px;
}
.signup-banner-inner{ position:relative; z-index:2; max-width: 380px; }
.signup-kicker{
  display:inline-block;
  font-family:var(--f-body);
  font-size:.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tan-dark);
  border-bottom: 1px solid var(--tan-dark);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.signup-banner-inner h2{ font-size: 2.1rem; margin-bottom: 16px; line-height:1.2; }
.signup-banner-inner p{ font-family:var(--f-body); line-height:1.7; opacity:.9; margin-bottom: 26px; }
.signup-links a{
  color: var(--tan-dark);
  font-weight:600;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.signup-links a:hover{ border-color: var(--tan-dark); }

.signup-form-panel{ padding: 50px 60px; }
.signup-form-panel h2{ color: var(--brown-dark); margin-bottom: 22px; }

.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section-title{
  font-family:var(--f-display);
  color: var(--green-dark);
  font-size: 1.05rem;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tan-dark);
}
.form-section-title:first-of-type{ margin-top: 0; }
.form-hint{ display:block; margin-top:5px; color:#8a7a68; font-size:.8rem; }

.role-picker{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.role-card{ cursor:pointer; }
.role-card input{ position:absolute; opacity:0; pointer-events:none; }
.role-card-inner{
  display:block;
  border: 2px solid var(--tan-dark);
  border-radius: 14px;
  padding: 16px 18px;
  transition: var(--transition);
}
.role-card input:checked + .role-card-inner{
  border-color: var(--green);
  background: rgba(79,121,66,0.08);
}
.role-name{ display:block; font-family:var(--f-display); color: var(--brown-dark); font-size:1.05rem; margin-bottom:4px; }
.role-desc{ display:block; font-family:var(--f-body); font-size:.85rem; color:#6a6253; }

.gdrive-link{
  display:inline-block;
  color: var(--green-dark);
  font-weight:700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agree-group{ background: rgba(79,121,66,0.06); padding: 14px 16px; border-radius: 12px; }
.agree-label{ display:flex; align-items:flex-start; gap: 10px; font-weight:500; font-size:.92rem; color: var(--text-dark); cursor:pointer; }
.agree-label input{ margin-top: 3px; }

@media (max-width: 900px){
  .signup-wrap{ grid-template-columns: 1fr; }
  .signup-form-panel{ padding: 34px 22px; }
  .form-row, .role-picker{ grid-template-columns: 1fr; }
}

/* =========================================================
   STATUS BADGE (dipakai di halaman search & detail buku)
   ========================================================= */
.status-badge{
  display:inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size:.78rem;
  font-weight:700;
  margin-bottom: 8px;
}
.status-badge.jual{ background: rgba(79,121,66,0.15); color: var(--green-dark); }
.status-badge.tukar{ background: rgba(201,168,118,0.35); color: var(--brown-dark); }

/* =========================================================
   CHECKOUT / PEMBAYARAN
   ========================================================= */
.checkout-summary{
  background: rgba(79,121,66,0.06);
  border: 1px solid rgba(79,121,66,0.25);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.checkout-row{ display:flex; justify-content:space-between; padding: 6px 0; font-size:.95rem; }
.checkout-row.total{ border-top: 2px dashed rgba(139,90,43,0.3); margin-top: 8px; padding-top: 12px; font-weight:700; font-size:1.1rem; color: var(--brown-dark); }
.payment-methods{ display:grid; gap: 10px; margin-bottom: 18px; }
.payment-method{
  display:flex; align-items:center; gap:10px;
  border: 2px solid var(--tan-dark); border-radius: 12px; padding: 12px 16px; cursor:pointer;
  transition: var(--transition);
}
.payment-method:has(input:checked){ border-color: var(--green); background: rgba(79,121,66,0.06); }

.trade-note{
  background: rgba(139,90,43,0.08);
  border-left: 4px solid var(--brown-dark);
  padding: 16px 20px;
  border-radius: 10px;
  font-size:.92rem;
  line-height:1.6;
  color: var(--text-dark);
  margin-top: 18px;
}
.trade-note strong{ color: var(--brown-dark); }

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-wrap{ max-width: 1100px; margin: 40px auto; padding: 0 24px; }
.admin-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 28px; flex-wrap:wrap; gap:12px; }
.admin-header h2{ color: var(--brown-dark); }
.admin-cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.admin-card{
  background: var(--white); border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
  transition: var(--transition);
}
.admin-card:hover{ transform: translateY(-4px); }
.admin-card h3{ color: var(--green-dark); margin-bottom: 8px; }
.admin-card p{ font-size:.9rem; color:#6a6253; margin-bottom: 14px; }

.admin-table{ width:100%; border-collapse: collapse; background:#fff; border-radius: 14px; overflow:hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td{ padding: 12px 16px; text-align:left; font-size:.9rem; border-bottom: 1px solid #eee1cc; vertical-align: top; }
.admin-table th{ background: var(--brown-dark); color:#fff; font-family:var(--f-display); }
.admin-table tr:last-child td{ border-bottom:none; }
.admin-thumb{ width: 70px; height:70px; object-fit:cover; border-radius:8px; border:1px solid #ddd; }
.badge-pending{ background:#fbe9c6; color:#8a6d1d; padding:3px 10px; border-radius:20px; font-size:.75rem; font-weight:700; }
.badge-approved{ background:#dcefdb; color:var(--green-dark); padding:3px 10px; border-radius:20px; font-size:.75rem; font-weight:700; }
.badge-rejected{ background:#fbe0e0; color:#a33; padding:3px 10px; border-radius:20px; font-size:.75rem; font-weight:700; }
.admin-login-wrap{ max-width:380px; margin:80px auto; }
.btn-mini{ padding:6px 14px; border-radius:20px; border:none; font-size:.8rem; font-weight:700; cursor:pointer; margin-right:6px; }
.btn-mini.approve{ background: var(--green); color:#fff; }
.btn-mini.reject{ background:#c94b4b; color:#fff; }


/* ================= MARKETPLACE / ACCOUNT EXPERIENCE ================= */
.account-nav{display:flex;align-items:center;gap:6px;}
.account-nav-link{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:12px;font-size:.78rem;font-weight:600;color:var(--brown-dark);transition:var(--transition);white-space:nowrap;}
.account-nav-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.account-nav-link:hover,.account-nav-link.active{background:rgba(79,121,66,.12);color:var(--green-dark);}
.eyebrow{letter-spacing:.15em;font-size:.72rem;font-weight:700;color:var(--green-dark);margin-bottom:7px;}
.muted{color:#6a6253;font-size:.9rem;}
.link-underlined{text-decoration:underline;text-underline-offset:3px;}
.form-hint{display:block;margin-top:5px;font-size:.78rem;color:#81715f;line-height:1.5;}
.captcha-panel{padding:18px;background:#faf6ec;border:1px dashed #8a5432;border-radius:14px;margin:20px 0;}
.captcha-panel>label{font-weight:700;color:var(--brown-dark);display:block;margin-bottom:8px;}
.captcha-question{margin-bottom:10px;font-size:1.05rem;}
.captcha-panel input{width:100%;padding:12px 14px;border:1px solid #d6c3a7;border-radius:10px;background:#fff;font:inherit;}
.legal-page h3{margin:22px 0 5px;color:var(--green-dark);font-size:1.08rem;}
.legal-page p{margin:8px 0 14px;line-height:1.75;}
.legal-note{padding:14px 16px;border-radius:12px;background:#f7eddc;color:#725a3d;font-size:.87rem;}
.product-detail-layout{max-width:1020px;display:grid;grid-template-columns:minmax(200px,320px) minmax(0,1fr);gap:34px;align-items:start;}
.product-detail-cover img{width:100%;max-height:460px;object-fit:contain;object-position:top;border-radius:16px;background:#faf8f3;}
.product-detail-info h2{line-height:1.15;margin-bottom:4px;}
.detail-price{font-size:1.55rem;margin:12px 0;}
.detail-meta{font-size:.9rem;margin:12px 0;color:#78664f;}
.detail-description{line-height:1.75;margin:18px 0;white-space:normal;}
.seller-summary{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid #e4d3b8;border-radius:15px;background:#ffffff;margin:18px 0;}
.seller-avatar,.conversation-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:#ebf0e1;color:var(--green-dark);font-weight:800;font-family:var(--f-display);font-size:1.1rem;}
.seller-summary p{margin:3px 0;}
.stars{color:#c58a1d;font-weight:800;letter-spacing:.02em;}
.book-seller-rating{font-size:.75rem;color:#76634e;margin:5px 0 12px;}
.chat-cta{display:inline-flex;align-items:center;gap:9px;margin-top:4px;}
.chat-cta svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.privacy-strip{display:flex;gap:11px;align-items:flex-start;margin:16px 0;padding:13px 15px;border-radius:13px;background:#f2f5ed;border:1px solid #dce7d2;font-size:.84rem;line-height:1.6;}
.privacy-icon{font-size:1.15rem;}
.checkout-layout{max-width:1180px;margin:20px auto 50px;padding:0 24px;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.8fr);align-items:start;gap:24px;}
.checkout-main.form-wrap{max-width:none;margin:0;padding:28px;}
.checkout-aside{position:sticky;top:115px;background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:24px;}
.checkout-aside h3{margin-bottom:14px;color:var(--brown-dark);}
.checkout-product{display:flex;gap:15px;padding:18px 0 22px;border-bottom:1px solid #eee0c9;margin-bottom:22px;}
.checkout-product img{width:94px;height:116px;object-fit:contain;border-radius:10px;background:#faf6ec;}
.checkout-product h3{margin:4px 0;line-height:1.2;}
.checkout-product p{margin:4px 0;}
.checkout-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;}
.checkout-title h2,.checkout-title h3{margin:0 0 2px;}
.checkout-step{display:flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:50%;background:var(--green);color:white;font-weight:800;flex:0 0 auto;}
.checkout-section{padding:18px 0 22px;border-bottom:1px solid #eee0c9;margin-bottom:12px;}
.shipping-options,.payment-gateway-options{display:grid;gap:10px;}
.shipping-option{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #e1d1b7;background:#ffffff;border-radius:12px;cursor:pointer;transition:var(--transition);}
.shipping-option:has(input:checked),.gateway-option:has(input:checked){border-color:var(--green);background:#f4f7f0;box-shadow:0 0 0 1px rgba(79,121,66,.14);}
.shipping-option input,.gateway-option input{accent-color:var(--green);}
.shipping-option-content{display:flex;flex-direction:column;gap:2px;flex:1;}
.shipping-option-content small,.gateway-option small{display:block;color:#88765f;font-size:.78rem;margin-top:2px;}
.shipping-option>b{font-size:.85rem;white-space:nowrap;}
.gateway-option{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e1d1b7;border-radius:12px;background:#ffffff;cursor:pointer;}
.gateway-option>span:nth-of-type(2){flex:1;}
.gateway-logo{display:flex;align-items:center;justify-content:center;min-width:60px;height:36px;padding:0 6px;border-radius:8px;font-size:.7rem;font-weight:800;letter-spacing:.04em;background:#edf0f7;color:#29466e;}
.qris-logo{background:#f3eaf7;color:#733e8c;}.wallet-logo{background:#e9f2e5;color:#3b6b31;font-size:.64rem;}
.gateway-check{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #cbbba3;color:transparent;font-size:.8rem;}
.gateway-option:has(input:checked) .gateway-check{color:#fff;background:var(--green);border-color:var(--green);}
.notice{padding:13px 16px;border-radius:12px;margin:14px 0;font-size:.86rem;line-height:1.6;}
.notice-info{color:#365674;background:#eff5fb;border:1px solid #d6e6f4;}.notice-warning{color:#76571b;background:#fff7e6;border:1px solid #f0ddb5;}.notice-success{color:#325b2d;background:#eef6e9;border:1px solid #d8e8cc;}
.notice code{overflow-wrap:anywhere;}
.free-fee-note{font-size:.78rem;line-height:1.5;padding:10px;background:#f2f7ec;color:var(--green-dark);border-radius:10px;margin:10px 0;}
.secure-checkout{display:flex;gap:12px;align-items:flex-start;margin:16px 0 18px;padding:14px;background:#f6f3e9;border-radius:12px;font-size:.83rem;line-height:1.55;}
.secure-checkout>span{font-size:1.2rem;}.secure-checkout p{margin-top:4px;color:#7b6a55;}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px;flex-wrap:wrap;}
.page-heading h2{line-height:1.15;margin-bottom:5px;}
.account-tabs{display:flex;gap:6px;padding:5px;border-radius:14px;background:#e3d5bd;width:max-content;max-width:100%;margin-bottom:22px;}
.account-tabs a{padding:10px 18px;border-radius:10px;font-weight:700;color:#765b3c;font-size:.9rem;}
.account-tabs a.active{background:#fff;color:var(--green-dark);box-shadow:0 3px 10px rgba(55,42,22,.08);}
.orders-list{display:grid;gap:18px;}
.order-card{background:#fff;border-radius:17px;padding:22px 24px;box-shadow:var(--shadow);border:1px solid rgba(139,90,43,.08);}
.order-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #eee2d0;margin-bottom:16px;font-size:.83rem;}
.order-ref{font-weight:800;color:var(--brown-dark);letter-spacing:.03em;}
.order-status{display:inline-flex;align-items:center;padding:6px 11px;border-radius:30px;font-size:.73rem;font-weight:800;background:#f5ead5;color:#765722;white-space:nowrap;}
.status-diproses{background:#edf3ff;color:#365c96;}.status-dikirim{background:#f0e9fa;color:#73519b;}.status-selesai{background:#e5f3df;color:#3f6a32;}.status-dibatalkan{background:#fbe7e7;color:#a33;}.status-menunggu_konfirmasi{background:#fff0cf;color:#8a6419;}.status-menunggu_pembayaran{background:#fff0cf;color:#8a6419;}
.order-product-row{display:flex;align-items:center;gap:16px;}
.order-product-row>img{width:75px;height:90px;object-fit:contain;border-radius:10px;background:#faf6ec;}
.order-product-info{flex:1;min-width:0;}.order-product-info h3{font-size:1.05rem;line-height:1.25;margin-bottom:4px;}.order-product-info p{margin:3px 0;}
.order-total{font-size:1.05rem;font-weight:800;color:var(--brown-dark);margin-top:8px!important;}
.order-breakdown{display:flex;gap:12px 22px;flex-wrap:wrap;padding:15px 0;margin-top:14px;border-top:1px solid #f0e5d5;border-bottom:1px solid #f0e5d5;font-size:.8rem;color:#806e58;}
.order-breakdown span{display:flex;gap:6px;flex-wrap:wrap;}.order-breakdown b{color:#2b2a24;}
.payment-instructions{margin-top:16px;padding:17px;background:#faf6ec;border-radius:13px;border:1px solid #eadac0;line-height:1.6;font-size:.86rem;}
.payment-instructions h4{color:var(--brown-dark);font-size:1rem;margin-bottom:6px;}
.payment-instructions .notice{margin:10px 0;}
.proof-form{margin-top:14px;display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;}.proof-form .form-group{flex:1;min-width:220px;margin:0;}
.order-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.review-section{margin-top:16px;padding:18px;background:#ffffff;border:1px solid #e8d9c3;border-radius:14px;}
.review-section h4{margin-bottom:7px;color:var(--brown-dark);}.review-form{display:grid;gap:8px;max-width:530px;margin-top:12px;}.review-form label{font-size:.83rem;font-weight:700;}.review-form select,.review-form textarea{width:100%;padding:10px 12px;border:1px solid #d9c7aa;border-radius:9px;background:white;font:inherit;}.review-form .btn-mini{justify-self:start;margin-top:4px;}
.empty-state{padding:48px 24px;text-align:center;background:#ffffff;border:1px dashed #d7c29f;border-radius:18px;}.empty-state>span{font-size:2rem;}.empty-state h3{margin:12px 0 5px;}.empty-state p{max-width:520px;margin:0 auto 20px;color:#806d57;line-height:1.6;}
.chat-page{max-width:1300px;margin:auto;}
.chat-shell{height:min(690px,75vh);min-height:480px;display:grid;grid-template-columns:320px minmax(0,1fr);background:#fff;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);border:1px solid #e8dcc8;}
.chat-sidebar{background:#ffffff;border-right:1px solid #eee0cb;overflow-y:auto;}.chat-sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #eadcc5;color:var(--brown-dark);}.chat-sidebar-head span{background:#e4ecdc;color:var(--green-dark);padding:2px 9px;border-radius:20px;font-size:.75rem;font-weight:800;}
.conversation-item{display:flex;gap:10px;padding:14px;border-bottom:1px solid #f1e8db;transition:var(--transition);}.conversation-item:hover,.conversation-item.selected{background:#eff4e9;}.conversation-copy{display:flex;flex-direction:column;min-width:0;gap:3px;}.conversation-copy strong{font-size:.85rem;}.conversation-copy small{font-size:.73rem;color:#7f6a51;}.conversation-copy span{font-size:.74rem;color:#8c7d6a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px;}.conversation-avatar{width:42px;height:42px;}.conversation-avatar.large{width:46px;height:46px;}
.empty-chat{padding:20px;font-size:.83rem;color:#8b7760;line-height:1.6;}
.chat-main{display:flex;flex-direction:column;min-width:0;background:#fff;}.chat-topbar{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #e9e1d1;}.chat-topbar>.chat-topbar-person{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px;}.chat-topbar small{font-size:.75rem;color:#806e58;}.chat-topbar>a{font-size:.8rem;color:var(--green-dark);font-weight:700;}.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:13px;background:linear-gradient(#fff,#fcfaf5);}.chat-date-note{text-align:center;font-size:.75rem;color:#95846e;margin:15px 0;}.message-row{display:flex;}.message-row.mine{justify-content:flex-end;}.message-bubble{max-width:min(76%,560px);padding:11px 14px;border-radius:14px;background:#f2eee5;overflow-wrap:anywhere;}.mine .message-bubble{background:#e7f0df;border-bottom-right-radius:4px;}.theirs .message-bubble{border-bottom-left-radius:4px;}.message-bubble p{line-height:1.6;font-size:.88rem;}.message-bubble small{display:block;font-size:.67rem;color:#897760;text-align:right;margin-top:5px;}.chat-compose{display:flex;gap:10px;align-items:flex-end;padding:15px 18px;border-top:1px solid #e9e1d1;}.chat-compose textarea{flex:1;resize:vertical;max-height:140px;min-height:45px;padding:11px 13px;border:1px solid #d7c7af;border-radius:12px;font:inherit;outline-color:var(--green);}.chat-compose button{border:0;width:47px;height:47px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:var(--green);color:white;cursor:pointer;}.chat-compose button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}.chat-safety-note{padding:0 18px 12px;text-align:center;color:#9a886f;font-size:.7rem;}.chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center;padding:30px;}.chat-empty-icon{width:60px;height:60px;border-radius:20px;background:#edf3e7;color:var(--green-dark);display:flex;align-items:center;justify-content:center;font-size:1.8rem;}.chat-empty h3{margin:15px 0 5px;}.chat-empty p{color:#8b7760;max-width:360px;margin-bottom:18px;font-size:.86rem;}
.settings-layout{display:grid;grid-template-columns:245px minmax(0,1fr);align-items:start;gap:22px;}
.settings-sidebar{position:sticky;top:110px;background:#fff;border-radius:17px;padding:13px;box-shadow:var(--shadow);display:grid;gap:3px;}.settings-sidebar>a{padding:11px 12px;border-radius:10px;font-size:.83rem;font-weight:600;color:#5a5347;}.settings-sidebar>a:hover{background:#eff4e9;color:var(--green-dark);}.settings-user{padding:12px 9px 18px;margin-bottom:5px;border-bottom:1px solid #e9e1d1;display:flex;align-items:center;flex-direction:column;text-align:center;gap:4px;}.settings-avatar{display:flex;align-items:center;justify-content:center;width:55px;height:55px;border-radius:50%;background:#ebf0e1;color:var(--green-dark);font-size:1.4rem;font-family:var(--f-display);font-weight:800;margin-bottom:6px;}.settings-user small{font-size:.73rem;color:#6e6658;overflow-wrap:anywhere;}.verification-chip{font-size:.68rem;font-weight:800;padding:5px 9px;border-radius:20px;background:#fff0cf;color:#87611b;margin-top:5px;}.verification-chip.disetujui{background:#ebf0e1;color:#5a7646;}.verification-chip.ditolak{background:#fbe7e7;color:#a33;}
.settings-content{display:grid;gap:17px;min-width:0;}.settings-card{background:#fff;border-radius:17px;padding:24px;box-shadow:var(--shadow);scroll-margin-top:115px;}.settings-card-title{display:flex;gap:12px;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #e9e1d1;}.settings-card-title>span{display:flex;width:40px;height:40px;justify-content:center;align-items:center;background:#f2f4e9;border-radius:12px;font-size:1.25rem;}.settings-card-title h3{line-height:1.2;}.settings-card-title p{font-size:.78rem;color:#6e6658;margin-top:3px;}.profile-meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin:4px 0 20px;font-size:.75rem;color:#8b7961;}.profile-meta span{display:flex;flex-direction:column;gap:3px;}.profile-meta strong{color:#56412c;font-size:.82rem;}.settings-toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #e9e1d1;cursor:pointer;}.settings-toggle span{display:flex;flex-direction:column;gap:4px;}.settings-toggle strong{font-size:.88rem;}.settings-toggle small{font-size:.76rem;color:#8c7a63;}.settings-toggle input{width:20px;height:20px;accent-color:var(--green);}.settings-info-row{display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #e9e1d1;font-size:.83rem;}.settings-info-row:last-child{border-bottom:0;}.settings-info-row strong{color:#634b31;}.settings-info-row a{color:var(--green-dark);font-weight:700;}.pill-safe{background:#e7f2e1;color:#5a7646;padding:4px 10px;border-radius:20px;font-size:.75rem;font-weight:700;}.settings-card details{padding:12px 0;border-bottom:1px solid #e9e1d1;font-size:.84rem;}.settings-card details:last-child{border-bottom:0;}.settings-card summary{font-weight:700;cursor:pointer;color:#644c32;}.settings-card details p{margin-top:8px;line-height:1.65;color:#80705a;}.settings-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px;margin-top:20px;border:1px solid #f0d5d5;border-radius:12px;background:#fffafa;}.settings-danger-zone p{font-size:.76rem;color:#927b7b;margin-top:3px;}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.admin-order-list{display:grid;gap:16px;}.admin-order-card{background:#fff;border-radius:16px;padding:20px;box-shadow:var(--shadow);}.admin-order-title{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid #e9e1d1;}.admin-order-title p{font-weight:700;color:var(--brown-dark);margin-top:3px;}.admin-order-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:18px 0;}.admin-order-grid>div{display:flex;flex-direction:column;gap:4px;min-width:0;}.admin-order-grid small{color:#8c7a62;font-size:.72rem;}.admin-order-grid strong{font-size:.84rem;overflow-wrap:anywhere;}.admin-order-grid span{font-size:.76rem;color:#8a7863;overflow-wrap:anywhere;}.admin-order-bottom{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding-top:14px;border-top:1px solid #e9e1d1;}.admin-amounts{display:flex;gap:8px 14px;flex-wrap:wrap;font-size:.76rem;color:#8c7963;flex:1;}.admin-amounts strong{color:var(--brown-dark);}.admin-order-proof a{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--green-dark);font-size:.75rem;font-weight:700;}.admin-order-actions{display:flex;gap:8px;flex-wrap:wrap;}.admin-order-actions form{margin:0;}.digital-agreement{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;border:1px solid #d8e7cd;background:#f0f6ea;color:#3f6b33;padding:10px;border-radius:9px;font-size:.68rem;font-weight:700;}

@media(max-width:1120px){.navbar{padding:14px 24px}.nav-pill{padding:8px 13px;font-size:.95rem}.nav-right{gap:8px}.search-box input{width:130px}.account-nav-link{padding:7px}.account-nav-link span{font-size:.72rem}.checkout-layout{grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr)}.admin-order-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:850px){.navbar{position:relative;align-items:flex-start}.navbar,.nav-links,.nav-right{width:100%}.nav-links{justify-content:center}.nav-right{justify-content:center}.account-nav{order:3;width:100%;justify-content:center}.user-greet{display:none}.checkout-layout{grid-template-columns:1fr;padding:0 16px}.checkout-aside{position:static;grid-row:1}.product-detail-layout{grid-template-columns:minmax(0,1fr);}.product-detail-cover img{max-height:320px}.settings-layout{grid-template-columns:1fr}.settings-sidebar{position:static;display:flex;flex-wrap:wrap;align-items:center}.settings-user{width:100%;}.settings-sidebar>a{flex:1 1 140px}.chat-shell{grid-template-columns:245px minmax(0,1fr);height:72vh}.chat-sidebar-head{padding:14px}.conversation-item{padding:11px}.conversation-copy span{max-width:140px;}}
@media(max-width:600px){.nav-links{gap:2px}.nav-pill{font-size:.82rem;padding:7px 10px}.nav-right{gap:8px}.search-box{order:1;width:100%;}.search-box input{width:100%;}.account-nav{order:2;justify-content:space-between}.account-nav-link{flex:1;justify-content:center;gap:4px;padding:8px 4px}.account-nav-link span{font-size:.68rem}.nav-right>.btn-outline,.nav-right>.btn-solid-outline{padding:7px 13px;font-size:.85rem}.checkout-main.form-wrap{padding:20px 15px}.checkout-layout{padding:0 10px}.checkout-aside{padding:18px}.checkout-product img{width:75px;height:92px}.shipping-option{padding:11px;gap:8px}.shipping-option>b{font-size:.75rem}.gateway-logo{min-width:50px;font-size:.6rem}.gateway-option{gap:8px;padding:10px}.page-heading{align-items:flex-start}.page-heading .btn-secondary{font-size:.82rem;padding:9px 14px}.order-card{padding:16px 13px}.order-card-head{align-items:flex-start;flex-direction:column}.order-breakdown{gap:10px 14px}.order-product-row>img{width:60px;height:75px}.proof-form{align-items:stretch;flex-direction:column}.chat-shell{grid-template-columns:1fr;min-height:650px;height:auto;overflow:visible}.chat-sidebar{max-height:230px;border-right:0;border-bottom:1px solid #eee0cb;overflow:auto}.chat-main{min-height:430px}.chat-messages{min-height:260px;max-height:420px}.message-bubble{max-width:90%;}.settings-card{padding:18px 14px}.settings-info-row{align-items:flex-start;flex-direction:column}.admin-wrap{padding:0 12px}.admin-order-card{padding:14px}.admin-order-grid{grid-template-columns:1fr 1fr;gap:12px}.admin-order-bottom{align-items:flex-start}.admin-order-actions{width:100%}.admin-order-actions form{flex:1}.admin-order-actions button{width:100%;margin:0}.settings-danger-zone{align-items:flex-start;flex-direction:column;}.form-wrap{padding:28px 18px;}}

.payment-qris-image{display:block;width:min(100%,260px);height:auto;margin:12px auto;border:1px solid #e4d3b8;border-radius:12px;background:white;padding:10px;}


/* Fitur kebutuhan pengguna yang diperoleh dari survei TukuBuku */
.marketplace-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:20px;margin:20px 0 16px;background:#ffffff;border:1px solid #e9e1d1;border-radius:18px;box-shadow:0 8px 24px rgba(83,58,30,.05)}
.filter-field{display:flex;flex-direction:column;gap:7px;min-width:0}.filter-field label{font-size:.82rem;font-weight:700;color:var(--brown-dark)}.filter-field input,.filter-field select{min-width:0;width:100%;padding:11px 12px;border:1px solid #ddcfba;border-radius:10px;background:#fff;color:#382b20;font:inherit;font-size:.9rem}.filter-search{grid-column:span 2}.filter-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.filter-actions .btn-primary,.filter-actions .btn-secondary{margin:0;min-height:42px}.results-caption{color:#76634e;font-size:.9rem;margin:12px 0 18px}.condition-pill{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;background:#f5efe4;color:#6d4c2d;font-size:.74rem;font-weight:700;margin:3px 0 6px}.book-location{font-size:.78rem;color:#71604e;margin:5px 0 10px;overflow-wrap:anywhere}.isbn-label{font-size:.77rem;margin:0 0 5px}.book-quality-panel{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.book-quality-panel>div{display:flex;flex-direction:column;gap:4px;min-width:130px;flex:1;padding:12px;border:1px solid #e9e1d1;border-radius:12px;background:#ffffff}.quality-label{font-size:.72rem;color:#83705a}.book-quality-panel strong{font-size:.88rem;color:var(--brown-dark);overflow-wrap:anywhere}
@media(max-width:900px){.marketplace-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-search{grid-column:span 2}}
@media(max-width:520px){.marketplace-filters{grid-template-columns:1fr;padding:15px}.filter-search{grid-column:span 1}.filter-actions{align-items:stretch}.filter-actions>*{flex:1;text-align:center}}


.complaint-section{margin:18px 0;padding:16px;border:1px solid #ead9c8;border-radius:14px;background:#fffaf5}.complaint-section h4{margin:0 0 6px;color:var(--brown-dark)}.complaint-form,.complaint-admin-form{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}.complaint-form label,.complaint-admin-form label{font-size:.82rem;font-weight:700;color:var(--brown-dark)}.complaint-form select,.complaint-form textarea,.complaint-admin-form select,.complaint-admin-form textarea{width:100%;padding:11px 12px;border:1px solid #ddcfba;border-radius:10px;background:#fff;color:#382b20;font:inherit;font-size:.9rem;box-sizing:border-box}.complaint-form textarea,.complaint-admin-form textarea{resize:vertical}.complaint-admin-form{max-width:720px;padding-top:12px;border-top:1px solid #e9e1d1}

/* =========================================================
   Marketplace experience — profile, cart, listing quality and chat
   ========================================================= */
:root{--paper:#ffffff;--forest:#5a7646;--forest-deep:#3c5030;--coral:#c8935c;--gold:#c8935c;--line:#e9e1d1;--ink-soft:#6a6253;--soft-shadow:0 18px 44px rgba(64,47,28,.10)}
.navbar{padding:12px clamp(14px,3vw,42px);gap:14px;background:rgba(250,246,237,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(138,104,65,.12)}
.nav-links{gap:2px}.nav-pill{font-size:.98rem;padding:9px 15px}.nav-right{gap:10px}.account-nav{gap:4px}.account-nav-link{position:relative;min-width:62px;padding:7px 9px;border-radius:14px;transition:var(--transition)}.account-nav-link svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.account-nav-link:hover,.account-nav-link.active{background:#f0e3ce;color:var(--forest-deep)}.account-nav-link span{font-size:.69rem}.nav-count{position:absolute;top:0;right:0;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:20px;background:var(--coral);color:#fff;font-size:.62rem;line-height:1}.nav-count.unread-count{background:#d95246}
.btn-secondary svg,.btn-primary svg,.detail-back-icon svg,.cart-add-button svg,.checkout-back-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.detail-back-icon{position:absolute;z-index:3;left:14px;top:14px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:rgba(255,253,248,.94);box-shadow:0 4px 18px rgba(37,32,24,.16);border:1px solid rgba(91,71,47,.12);transition:transform .2s ease,background .2s ease}.detail-back-icon:hover{transform:translateX(-3px);background:#fff}.product-detail-cover{position:relative}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.detail-actions form{margin:0}.cart-add-button{display:inline-flex;align-items:center;gap:8px;justify-content:center;min-height:48px}.condition-score{display:flex;align-items:center;gap:5px;margin:4px 0 8px;color:#cb983a;font-size:.88rem;letter-spacing:.04em}.condition-score span{color:var(--ink-soft);font-size:.68rem;letter-spacing:0}.detail-condition-score{margin-top:5px;flex-wrap:wrap}.book-publisher{font-size:.72rem;color:var(--ink-soft);margin:4px 0 8px;line-height:1.4}.book-location{font-size:.76rem;color:var(--forest-deep);line-height:1.4}.book-quality-panel{gap:12px}.book-quality-panel>div{min-width:125px}

/* User profile */
.profile-page .page-heading{align-items:flex-end;margin-bottom:22px}.profile-hero-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(20px,4vw,34px);background:linear-gradient(125deg,#ffffff 0%,#f4f6ec 58%,#f4f6ec 100%);border:1px solid rgba(118,89,53,.13);border-radius:28px;box-shadow:var(--soft-shadow);margin-bottom:18px}.profile-identity{display:flex;align-items:center;gap:20px;min-width:0}.profile-avatar-xl{width:112px;height:112px;flex:none;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(140deg,#467e5d,#204a35);border:5px solid rgba(255,255,255,.9);box-shadow:0 8px 26px rgba(39,70,45,.20);color:white;font-size:2.8rem;font-family:var(--f-display)}.profile-avatar-xl img{width:100%;height:100%;object-fit:cover}.profile-identity-copy{min-width:0}.profile-role-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:#deeadc;color:#275137;font-weight:700;font-size:.73rem;margin-bottom:6px}.profile-identity-copy h2{font-size:1.9rem;line-height:1.15;margin-bottom:5px;overflow-wrap:anywhere}.profile-identity-copy p{font-size:.92rem;font-weight:600;color:var(--forest-deep);overflow-wrap:anywhere}.profile-identity-copy small{display:block;margin-top:5px;color:var(--ink-soft);font-size:.76rem;line-height:1.5}.profile-rating-line{margin-top:9px;color:#be8a2d;font-weight:700;font-size:.83rem}.profile-rating-line span{color:var(--ink-soft);font-weight:500}.profile-photo-form{display:grid;gap:8px;max-width:270px;width:100%;padding:14px;background:rgba(255,255,255,.76);border:1px solid rgba(110,85,54,.10);border-radius:18px}.profile-photo-form label{font-size:.78rem;font-weight:700}.profile-photo-form input{min-width:0;width:100%;font-size:.75rem}.profile-facts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 28px}.profile-fact{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:17px;min-width:0;display:grid;gap:6px;box-shadow:0 4px 15px rgba(64,47,28,.04)}.profile-fact-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#f4f6ec;color:var(--forest);font-size:1.05rem}.profile-fact small{color:var(--ink-soft);font-size:.7rem}.profile-fact strong{font-size:.82rem;line-height:1.45;overflow-wrap:anywhere}.profile-section-title{font-size:1.25rem;margin:22px 0 13px;color:var(--forest-deep)}.profile-order-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-order-shortcut{display:grid;gap:7px;align-content:start;padding:18px 16px;border-radius:18px;background:#fff;border:1px solid var(--line);transition:transform .2s,box-shadow .2s,border-color .2s}.profile-order-shortcut:hover,.profile-feature-card:hover{transform:translateY(-3px);box-shadow:var(--soft-shadow);border-color:#c3d5bc}.shortcut-icon{width:40px;height:40px;display:grid;place-items:center;color:var(--forest);background:#edf4e8;border-radius:13px;font-size:1.25rem}.profile-order-shortcut strong{font-size:.86rem}.profile-order-shortcut small{font-size:.72rem;color:var(--ink-soft)}.profile-secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.profile-feature-card{display:flex;align-items:center;gap:15px;min-width:0;padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;transition:transform .2s,box-shadow .2s,border-color .2s}.profile-feature-icon{width:48px;height:48px;flex:none;display:grid;place-items:center;background:#f4e7d2;border-radius:15px;font-size:1.35rem}.profile-feature-card>div{min-width:0;flex:1}.profile-feature-card strong{font-size:.93rem}.profile-feature-card p{margin-top:4px;font-size:.75rem;color:var(--ink-soft);line-height:1.5}.feature-arrow{font-size:1.2rem;color:var(--forest)}.profile-recent-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.profile-recent-head .profile-section-title{margin-bottom:12px}.profile-recent-head>a{font-size:.8rem;color:var(--forest);font-weight:700}.profile-recent-list{display:grid;gap:8px}.profile-recent-item{display:flex;align-items:center;gap:13px;min-width:0;padding:13px;background:#fff;border:1px solid var(--line);border-radius:15px}.profile-recent-item>img{width:48px;height:58px;object-fit:cover;border-radius:8px;background:#f1e6d2}.profile-recent-copy{min-width:0;flex:1;display:grid;gap:4px}.profile-recent-copy strong{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-recent-copy small{font-size:.68rem;color:var(--ink-soft)}.profile-recent-status{font-size:.7rem;color:var(--forest);font-weight:700;padding:5px 8px;background:#e8f1e4;border-radius:8px}.profile-recent-item>b{font-size:.78rem;white-space:nowrap}.profile-empty{margin-top:8px}

/* Cart and multi-item checkout */
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:20px;align-items:start}.cart-items-panel,.cart-summary{border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 6px 22px rgba(64,47,28,.055);overflow:hidden}.cart-select-all{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:17px 20px;background:#faf6ed;border-bottom:1px solid var(--line);font-size:.82rem}.cart-select-all label{display:flex;align-items:center;gap:10px;font-weight:700}.cart-select-all input,.cart-checkbox input{accent-color:var(--forest);width:17px;height:17px}.cart-select-all>span{color:var(--ink-soft);font-size:.74rem}.cart-item{display:grid;grid-template-columns:24px 76px minmax(0,1fr) auto;gap:14px;align-items:center;padding:18px 20px;border-bottom:1px solid #f0e7db}.cart-item:last-child{border-bottom:0}.cart-checkbox{display:grid;place-items:center}.cart-item-cover{width:76px;height:95px;display:block;border-radius:11px;overflow:hidden;background:#f1e6d2}.cart-item-cover img{width:100%;height:100%;object-fit:cover}.cart-item-info{min-width:0;display:grid;gap:5px;align-content:center}.cart-item-info>a strong{font-size:.9rem;line-height:1.4}.cart-item-info>small{color:var(--ink-soft);font-size:.75rem}.cart-item-info .condition-pill{width:max-content;max-width:100%;margin:0;font-size:.68rem}.cart-item-info .book-location{font-size:.7rem}.cart-item-price{display:grid;gap:16px;justify-items:end;align-self:stretch;align-content:space-between}.cart-item-price>strong{font-size:.87rem;color:var(--forest-deep);white-space:nowrap}.cart-remove{width:34px;height:34px;display:grid;place-items:center;background:#fff2ed;border:1px solid #f2d8d1;color:#b95140;border-radius:10px;cursor:pointer}.cart-remove:hover{background:#ffe1d8}.cart-remove svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.cart-unavailable{font-size:.69rem;color:#ac5140;line-height:1.5}.cart-summary{padding:22px;position:sticky;top:120px}.cart-summary h3{font-size:1.2rem}.cart-summary>p{font-size:.75rem;color:var(--ink-soft);line-height:1.65;margin:9px 0 18px}.cart-summary-row{display:flex;justify-content:space-between;gap:12px;padding:15px 0;border-top:1px solid var(--line);font-size:.78rem}.cart-checkout-btn{width:100%;display:flex;justify-content:center;align-items:center;gap:10px}.cart-checkout-btn:disabled{opacity:.45;cursor:not-allowed}.cart-summary-note{border-top:1px solid var(--line);padding-top:15px;margin-top:16px!important;font-size:.7rem!important}.cart-empty{display:grid;justify-items:center;text-align:center;max-width:550px;margin:20px auto;padding:52px 24px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(140deg,#ffffff,#f7eddb)}.cart-empty-icon{width:84px;height:84px;border-radius:28px;background:#f4f6ec;color:var(--forest);display:grid;place-items:center;margin-bottom:16px}.cart-empty-icon svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.cart-empty h3{font-size:1.45rem}.cart-empty p{max-width:340px;margin:8px auto 20px;color:var(--ink-soft);font-size:.84rem;line-height:1.7}.checkout-back-link{display:inline-flex;align-items:center;gap:7px;color:var(--forest);font-size:.8rem;font-weight:700;margin-bottom:18px}.checkout-back-link svg{width:18px;height:18px}.checkout-products-list{display:grid;gap:8px;margin:18px 0 22px}.checkout-products-list .checkout-product{margin:0}.free-fee-badge{display:inline-block;margin-top:5px;padding:4px 8px;border-radius:8px;background:#e7f2df;color:#2f6a3e;font-size:.68rem;font-weight:700}

/* Chat inbox, read receipts, private attachments */
.chat-shell{box-shadow:var(--soft-shadow);border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff}.chat-sidebar{background:#fcf8f0}.chat-sidebar-head{padding:18px 20px;border-bottom:1px solid var(--line);font-size:.9rem}.conversation-item{position:relative;padding:14px 16px;border-bottom:1px solid #efe6d9;gap:12px}.conversation-item:hover,.conversation-item.selected{background:#f0f5eb}.conversation-avatar{background:linear-gradient(140deg,#55815d,#4a6338);box-shadow:0 4px 10px rgba(39,70,45,.14)}.conversation-copy{gap:4px}.conversation-copy>strong{font-size:.83rem}.conversation-copy>small{font-size:.68rem}.conversation-copy>span{font-size:.72rem}.conversation-unread{min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:30px;background:#d95348;color:#fff;font-size:.65rem;align-self:center}.chat-main{min-width:0}.chat-topbar{gap:12px;border-bottom:1px solid var(--line);background:#ffffff}.chat-topbar-person{display:grid;gap:3px;min-width:0;flex:1}.chat-topbar-person strong{overflow-wrap:anywhere}.chat-topbar .chat-user-rating{margin:0}.chat-book-link{font-size:.75rem;font-weight:700;color:var(--forest);white-space:nowrap}.chat-mobile-back{display:none;width:34px;height:34px;place-items:center;color:var(--forest);border-radius:10px;background:#eaf1e6}.chat-mobile-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.chat-messages{background-color:#f8f5ec;background-image:radial-gradient(rgba(106,91,65,.06) .8px,transparent .8px);background-size:15px 15px;padding:22px}.message-row{margin-bottom:13px}.message-bubble{border-radius:18px;padding:11px 13px;box-shadow:0 2px 5px rgba(45,40,30,.05);max-width:min(100%,460px)}.message-row.mine .message-bubble{background:#e6f4dc;border:1px solid #d1e6c7;border-bottom-right-radius:6px}.message-row.theirs .message-bubble{background:#fff;border:1px solid #eee4d7;border-bottom-left-radius:6px}.message-bubble>p{font-size:.83rem;line-height:1.6;overflow-wrap:anywhere}.message-bubble>small{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin-top:5px;font-size:.62rem;color:#887764}.message-receipt{font-weight:800;letter-spacing:-3px;color:#8c8475;font-size:.78rem;padding-right:2px}.message-receipt[data-state="sent"]{color:#8c8475}.message-receipt[data-state="delivered"]{color:#8c8475}.message-receipt[data-state="read"]{color:#1386bd}.chat-attachment-image-link{display:block;margin-bottom:7px}.chat-attachment-image{max-width:min(100%,300px);max-height:300px;display:block;object-fit:contain;border-radius:12px}.chat-attachment-audio{display:block;width:min(300px,100%);max-width:100%;margin:4px 0 8px}.chat-attachment-file{display:flex;align-items:center;gap:10px;padding:11px;border-radius:12px;background:rgba(255,255,255,.78);border:1px solid #dcd1c1;max-width:300px;overflow-wrap:anywhere;font-size:.77rem}.chat-attachment-file svg{width:28px;height:28px;flex:none;fill:none;stroke:var(--forest);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.chat-attachment-file span{min-width:0}.chat-attachment-file small{display:block;color:var(--ink-soft);font-size:.64rem;margin-top:3px}.chat-compose{display:block;padding:14px 16px;background:#ffffff;border-top:1px solid var(--line)}.chat-compose-tools{display:flex;align-items:center;gap:8px;min-height:36px;margin-bottom:9px}.chat-tool-button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #dce5d7;background:#f2f6ef;color:var(--forest);border-radius:11px;cursor:pointer;transition:background .2s,transform .2s}.chat-tool-button:hover{background:#e4eedf;transform:translateY(-1px)}.chat-tool-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.voice-record-button.recording{background:#ffe6dc;color:#b74432;border-color:#f2b6a5;animation:recordPulse 1.1s infinite alternate}@keyframes recordPulse{from{box-shadow:0 0 0 0 rgba(220,91,69,.12)}to{box-shadow:0 0 0 6px rgba(220,91,69,.1)}}.selected-attachment-name{font-size:.72rem;color:var(--forest);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-compose-entry{display:flex;align-items:flex-end;gap:10px}.chat-compose-entry textarea{flex:1;min-width:0;border:1px solid #e1d5c5;border-radius:15px;padding:12px 14px;background:#fff;resize:vertical;font:inherit;font-size:.82rem;max-height:140px}.chat-compose-entry textarea:focus{outline:2px solid rgba(62,115,76,.18);border-color:#99b99a}.chat-send-button{width:46px;height:46px;display:grid;place-items:center;flex:none;border:0;border-radius:15px;background:var(--forest);color:#fff;cursor:pointer;box-shadow:0 7px 16px rgba(39,85,55,.2)}.chat-send-button:hover{background:var(--forest-deep)}.chat-send-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.chat-compose-note{display:block;font-size:.65rem;color:var(--ink-soft);margin-top:7px}.empty-chat{padding:28px 20px;font-size:.82rem;color:var(--ink-soft);line-height:1.65}.empty-chat .chat-empty-icon{margin:0 0 12px}.empty-chat>strong{display:block;color:var(--forest-deep);margin-bottom:5px}.chat-safety-note{font-size:.68rem;color:var(--ink-soft)}

@media (max-width:1100px){.navbar{padding:10px 16px}.nav-right{gap:6px}.search-box input{width:140px}.account-nav-link{min-width:54px;padding:6px}.profile-facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-layout{grid-template-columns:minmax(0,1fr) 285px}.cart-item{grid-template-columns:22px 66px minmax(0,1fr) auto;gap:11px}.cart-item-cover{width:66px;height:86px}}
@media (max-width:760px){.navbar{align-items:flex-start}.nav-links{width:100%;justify-content:center;order:2}.nav-right{width:100%;justify-content:center;order:1}.nav-pill{padding:7px 10px;font-size:.88rem}.user-greet{display:none}.search-box{flex:1;max-width:330px}.search-box input{width:100%;min-width:50px}.account-nav{display:flex;justify-content:center;flex:1}.account-nav-link{min-width:44px}.account-nav-link span{font-size:.6rem}.btn-outline,.btn-solid-outline{padding:7px 12px;font-size:.8rem}.profile-hero-card{align-items:flex-start;flex-direction:column}.profile-identity{gap:14px}.profile-avatar-xl{width:84px;height:84px;font-size:2rem}.profile-identity-copy h2{font-size:1.55rem}.profile-photo-form{max-width:none}.profile-order-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-secondary-grid{grid-template-columns:1fr}.profile-recent-item{flex-wrap:wrap}.profile-recent-status{margin-left:auto}.cart-layout{grid-template-columns:1fr}.cart-summary{position:static;order:-1}.cart-item{grid-template-columns:20px 62px minmax(0,1fr) auto;padding:14px 12px;gap:9px}.cart-item-cover{width:62px;height:80px}.cart-item-info>a strong{font-size:.8rem}.cart-item-price>strong{font-size:.78rem}.cart-item-price{gap:10px}.cart-summary{padding:18px}.chat-shell{display:grid;grid-template-columns:1fr}.chat-sidebar{border-right:0;border-bottom:1px solid var(--line);max-height:260px;overflow:auto}.chat-main{min-height:440px}.chat-topbar{padding:12px}.chat-mobile-back{display:grid}.chat-book-link{font-size:.68rem}.chat-messages{padding:14px}.message-bubble{max-width:90%}.chat-compose{padding:10px}.chat-tool-button{width:33px;height:33px}.selected-attachment-name{font-size:.65rem}.detail-actions>*{flex:1}.product-detail-layout{grid-template-columns:1fr}.product-detail-cover{max-width:330px;margin:0 auto 18px}.detail-back-icon{left:10px;top:10px}.profile-recent-item>b{margin-left:auto}}
@media (max-width:430px){.profile-facts-grid{grid-template-columns:1fr 1fr;gap:8px}.profile-fact{padding:12px}.profile-fact strong{font-size:.74rem}.profile-order-shortcuts{gap:8px}.profile-order-shortcut{padding:13px}.profile-recent-item>img{width:40px;height:50px}.profile-recent-copy{flex-basis:calc(100% - 65px)}.profile-recent-status{margin-left:52px}.cart-item{grid-template-columns:18px 54px minmax(0,1fr);align-items:start}.cart-item-cover{width:54px;height:70px}.cart-item-price{grid-column:3;display:flex;align-items:center;justify-content:space-between}.chat-topbar-person small{font-size:.65rem}.chat-book-link{display:none}.chat-compose-tools{gap:5px}.chat-tool-button{width:31px;height:31px}.chat-tool-button svg{width:18px;height:18px}}

/* Notifikasi pesan baru dan perubahan jumlah keranjang */
.marketplace-live-toast{position:fixed;z-index:9999;right:22px;bottom:22px;max-width:min(380px,calc(100vw - 28px));display:flex;align-items:center;gap:13px;padding:15px 17px;border:1px solid #dbe7d6;border-radius:17px;background:#fffef9;box-shadow:0 15px 44px rgba(34,54,39,.18);transform:translateY(18px);opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease}.marketplace-live-toast.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}.marketplace-live-toast .toast-icon{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:13px;background:#e7f0e3;color:#4a6338}.marketplace-live-toast .toast-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.marketplace-live-toast .toast-copy{min-width:0;flex:1}.marketplace-live-toast strong{display:block;font-size:.82rem;color:#4a6338}.marketplace-live-toast p{margin:3px 0 0;font-size:.71rem;color:#6f786b;line-height:1.45}.marketplace-live-toast>a{font-size:.72rem;font-weight:800;color:#4a6338;white-space:nowrap}@media(max-width:520px){.marketplace-live-toast{left:12px;right:12px;bottom:12px;max-width:none;padding:12px}.marketplace-live-toast>a{font-size:.68rem}}

/* Condition belum diverifikasi harus tampil berbeda dari skor fisik. */
.condition-unverified{display:inline-block;color:#8a6b48;font-size:.76rem;font-weight:700;background:#fff4e5;border:1px solid #f0d3a6;border-radius:999px;padding:.24rem .55rem}


/* TUKUBUKU brand lockup */
.brand-beta{display:flex;align-items:center;gap:9px;flex-shrink:0;padding:5px 8px 5px 4px;border-radius:16px;min-width:max-content}
.brand-beta:hover{background:rgba(79,121,66,.07)}
.brand-beta-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,#527d43,#31552e);color:#fff;font-weight:800;font-size:.86rem;letter-spacing:-.05em;box-shadow:0 5px 12px rgba(49,85,46,.18)}
.brand-beta-copy{display:flex;align-items:flex-start;flex-direction:column;gap:1px;line-height:1.05}
.brand-beta-copy strong{font-family:var(--f-display);color:#31552e;font-size:1.08rem;letter-spacing:.025em}
.brand-beta-copy small,.beta-inline{font:800 .56rem/1.3 var(--f-body);letter-spacing:.12em;background:#c8935c;color:#59401d;border-radius:5px;padding:2px 6px}
.beta-inline{display:inline-block;vertical-align:middle;font-size:.62rem}
@media(max-width:760px){.brand-beta{margin:0 auto}.navbar{justify-content:center}.brand-beta-copy strong{font-size:1rem}}

.hero-beta-label{align-self:flex-start;margin-top:10px;padding:5px 10px;border-radius:8px;background:#c8935c;color:#59401d;font:800 .72rem/1.2 var(--f-label);letter-spacing:.16em;box-shadow:0 5px 15px rgba(60,45,24,.12)}
@media(max-width:600px){.logo-img{width:200px}.hero-beta-label{font-size:.62rem;margin-top:4px}}
