/* ============================================================
   RRebrand Static — style.css
   Neo-brutalist streetwear marketplace
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-sans:    'DM Sans', sans-serif;
  --radius: 0.75rem;

  --bg:           hsl(40, 33%, 98%);
  --fg:           hsl(20, 20%, 10%);
  --border:       hsl(20, 20%, 10%);
  --card:         hsl(40, 20%, 100%);
  --primary:      hsl(43, 96%, 44%);
  --primary-fg:   hsl(20, 20%, 10%);
  --secondary:    hsl(200, 40%, 90%);
  --secondary-fg: hsl(20, 20%, 10%);
  --muted:        hsl(40, 20%, 90%);
  --muted-fg:     hsl(20, 10%, 40%);
  --accent:       hsl(140, 60%, 50%);
  --accent-fg:    hsl(20, 20%, 10%);
  --destructive:  hsl(0, 84%, 60%);
  --input-bg:     hsl(20, 20%, 85%);

  --shadow-sm: 2px 2px 0 0 hsl(20, 20%, 10%);
  --shadow:    4px 4px 0 0 hsl(20, 20%, 10%);
  --shadow-md: 6px 6px 0 0 hsl(20, 20%, 10%);
  --shadow-lg: 8px 8px 0 0 hsl(20, 20%, 10%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); }

/* ---------- App Shell ---------- */
#app { display: flex; flex-direction: column; min-height: 100vh; }
#page-content { flex: 1; }

.container {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 1rem;
}

/* ---------- Mobile Overlay / Sidebar ---------- */
#mobile-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 50;
}
#mobile-nav-overlay.open { display: block; }

#mobile-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 300px;
  background: var(--card); border-right: 4px solid var(--border);
  z-index: 60; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .25s ease;
}
#mobile-sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 2px solid var(--border);
}
.sidebar-nav {
  display: flex; flex-direction: column;
  padding: 1.5rem; gap: 1.5rem;
}
.sidebar-link {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--fg); transition: color .15s;
}
.sidebar-link:hover { color: var(--primary); }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); border-bottom: 4px solid var(--border);
}
.header-inner {
  height: 4rem; display: flex;
  align-items: center; justify-content: space-between;
}
.header-left  { display: flex; align-items: center; gap: 1rem; }
.header-right { display: flex; align-items: center; gap: .75rem; }

.logo { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; }

.desktop-nav { display: none; align-items: center; gap: 1.5rem; margin-left: 1.5rem; }
@media (min-width:768px) { .desktop-nav { display: flex; } }
.nav-link { font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; transition: color .15s; }
.nav-link:hover { color: var(--primary); }

.icon-btn {
  width: 2.5rem; height: 2.5rem; display: flex;
  align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 50%;
  font-size: 1.1rem; transition: background .15s;
}
.icon-btn:hover { background: var(--muted); }
@media (min-width:768px) { #mobile-menu-btn { display: none; } }

.cart-btn {
  position: relative; display: flex; align-items: center;
  padding: .5rem; border-radius: 50%; transition: background .15s;
}
.cart-btn:hover { background: var(--muted); }
.cart-badge {
  position: absolute; top: 0; right: 0;
  min-width: 1.25rem; height: 1.25rem;
  background: var(--primary); color: var(--primary-fg);
  border-radius: 50%; font-size: .65rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 700; font-size: .875rem;
  text-transform: uppercase; letter-spacing: .05em;
  border: 2px solid var(--border); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .1s, box-shadow .1s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover  { transform: translate(2px,2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translate(4px,4px); box-shadow: none; }
.btn:disabled { opacity: .6; pointer-events: none; }

.btn-primary  { background: var(--primary); color: var(--primary-fg); }
.btn-secondary{ background: var(--card);    color: var(--fg); }
.btn-outline  { background: transparent;    color: var(--fg); box-shadow: none; }
.btn-outline:hover { background: var(--muted); transform: none; box-shadow: none; }
.btn-ghost    { background: transparent; border: none; box-shadow: none; }
.btn-ghost:hover { background: var(--muted); transform: none; }
.btn-whatsapp { background: #25D366; color: #fff; border-color: var(--border); }
.btn-whatsapp:hover { background: #128C7E; }
.btn-danger   { background: var(--destructive); color: #fff; }

.btn-lg  { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm  { padding: .375rem .75rem; font-size: .75rem; }
.btn-full{ width: 100%; }
.btn-rounded { border-radius: 9999px; }
.btn-icon-sq { width: 2.5rem; height: 2.5rem; padding: 0; }

/* ---------- Footer ---------- */
#site-footer { border-top: 4px solid var(--border); background: var(--fg); color: var(--bg); margin-top: auto; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: flex-start; justify-content: space-between;
  padding: 3rem 1rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .5rem; }
.footer-brand p { opacity: .7; font-size: .875rem; font-weight: 500; max-width: 240px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-links a { opacity: .8; font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; transition: opacity .15s; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem; text-align: center; font-size: .75rem; opacity: .6; }

/* ---------- Spinner / Loading ---------- */
.spinner-wrap { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.spinner { width: 2.5rem; height: 2.5rem; border: 4px solid var(--muted); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton */
.skeleton { background: var(--muted); border-radius: var(--radius); border: 2px solid var(--border); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.5} }

/* ---------- Toast ---------- */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.toast {
  pointer-events: auto;
  background: var(--fg); color: var(--bg);
  padding: .875rem 1.25rem; border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-md); min-width: 16rem; max-width: 22rem;
  animation: toast-in .2s ease;
}
.toast.error { background: var(--destructive); }
.toast-title { font-weight: 700; font-size: .9rem; }
.toast-desc  { font-size: .8rem; opacity: .85; margin-top: .125rem; }
@keyframes toast-in { from{transform:translateX(110%);opacity:0}to{transform:translateX(0);opacity:1} }

/* ---------- Stats Bar ---------- */
.stats-bar { background: var(--fg); color: var(--bg); padding: .75rem 0; border-bottom: 4px solid var(--border); }
.stats-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-item { display: flex; align-items: center; gap: .5rem; }
.stat-dot { width: .5rem; height: .5rem; border-radius: 50%; flex-shrink: 0; }
.dot-primary  { background: var(--primary); }
.dot-accent   { background: var(--accent); }
.dot-secondary{ background: var(--secondary); }

/* ---------- Hero ---------- */
.hero-section { background: var(--secondary); padding: 5rem 0; border-bottom: 4px solid var(--border); position: relative; overflow: hidden; }
@media(min-width:768px){ .hero-section { padding: 7rem 0; } }
.hero-content { position: relative; z-index: 1; max-width: 40rem; }
.hero-title { font-size: clamp(2.5rem,8vw,5rem); font-weight: 900; line-height: 1; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-highlight { color: var(--primary); display: inline-block; transform: rotate(-2deg); }
.hero-subtitle { font-size: clamp(1rem,2vw,1.25rem); font-weight: 500; margin-bottom: 2rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-deco { position: absolute; pointer-events: none; display: none; }
@media(min-width:1024px){ .hero-deco { display: block; } }
.hero-deco-1 { top: 2.5rem; right: 2.5rem; width: 8rem; height: 8rem; background: var(--accent); border-radius: 50%; border: 4px solid var(--border); animation: bounce-slow 3s ease-in-out infinite; }
.hero-deco-2 { bottom: -2.5rem; right: 25%; width: 12rem; height: 12rem; background: var(--primary); border-radius: var(--radius); border: 4px solid var(--border); transform: rotate(12deg); }
@keyframes bounce-slow { 0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)} }

/* ---------- Section Helpers ---------- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-title  { font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 900; text-transform: uppercase; }
.section-link   { color: var(--primary); font-weight: 700; font-size: .875rem; display: flex; align-items: center; gap: .25rem; }
.section-link:hover { text-decoration: underline; }
.section { padding: 3rem 0; }
.section-muted { background: var(--muted); }
.section-card  { background: var(--card); }
.section-secondary { background: var(--secondary); border-top: 4px solid var(--border); }

/* ---------- Categories ---------- */
.categories-section { padding: 3rem 0; border-bottom: 4px solid var(--border); }
.cats-scroll { display: flex; overflow-x: auto; padding-bottom: 1rem; gap: 1rem; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-card { min-width: 140px; flex-shrink: 0; display: block; cursor: pointer; }
.cat-inner { height: 8rem; background: var(--card); border-radius: 1rem; border: 2px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; transition: transform .2s, box-shadow .2s; }
.cat-inner:hover { transform: translateY(-.5rem); box-shadow: var(--shadow-sm); }
.cat-emoji { font-size: 2.25rem; margin-bottom: .5rem; display: block; }
.cat-name  { font-weight: 700; text-align: center; line-height: 1.2; font-size: .875rem; }

/* ---------- Listing Grid ---------- */
.listings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media(min-width:768px) { .listings-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1024px){ .listings-grid { grid-template-columns: repeat(4,1fr); gap: 1.5rem; } }

.home-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
@media(min-width:768px) { .home-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1024px){ .home-grid { grid-template-columns: repeat(4,1fr); } }

/* ---------- Listing Card ---------- */
.listing-card { display: block; border-radius: var(--radius); border: 2px solid var(--border); overflow: hidden; background: var(--card); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 4/5; position: relative; border-bottom: 2px solid var(--border); background: var(--muted); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.listing-card:hover .card-img img { transform: scale(1.05); }
.price-badge { position: absolute; top: .5rem; left: .5rem; background: var(--bg); border: 2px solid var(--border); padding: .25rem .5rem; border-radius: .25rem; font-weight: 700; font-size: .875rem; box-shadow: var(--shadow-sm); }
.sold-overlay { position: absolute; inset: 0; background: rgba(251,250,248,.6); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 1; }
.sold-label { background: var(--fg); color: var(--bg); padding: .25rem .75rem; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .2em; font-size: 1rem; transform: rotate(-10deg); border: 2px solid var(--bg); }
.card-body { padding: .75rem; display: flex; flex-direction: column; gap: .2rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; }
.card-brand { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--muted-fg); }
.card-size  { font-size: .65rem; font-weight: 700; background: var(--muted); padding: .15rem .4rem; border-radius: .25rem; border: 1px solid var(--border); }
.card-title { font-weight: 700; font-size: .875rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-seller { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted-fg); font-weight: 500; margin-top: auto; padding-top: .4rem; }
.s-avatar { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--secondary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .5rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.s-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Empty State ---------- */
.empty-state { border: 4px dashed var(--border); border-radius: var(--radius); padding: 4rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.empty-icon  { width: 4rem; height: 4rem; background: var(--muted); border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.empty-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: .5rem; }
.empty-desc  { color: var(--muted-fg); font-weight: 500; max-width: 18rem; }

/* ---------- Forms ---------- */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label { font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.form-input {
  height: 3rem; padding: 0 .75rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: .9375rem; font-weight: 500;
  outline: none; width: 100%; color: var(--fg);
}
.form-input:focus { border-color: var(--primary); }
.form-textarea {
  padding: .75rem; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: .9375rem; font-weight: 500;
  outline: none; width: 100%; resize: none; color: var(--fg);
}
.form-textarea:focus { border-color: var(--primary); }
.form-select {
  height: 3rem; padding: 0 .75rem; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: .9375rem; font-weight: 500;
  outline: none; width: 100%; cursor: pointer; color: var(--fg);
}
.form-select:focus { border-color: var(--primary); }
.form-error { font-size: .8rem; color: var(--destructive); font-weight: 600; display: none; }
.form-hint  { font-size: .75rem; color: var(--muted-fg); font-weight: 500; }

.input-with-prefix { position: relative; }
.input-prefix-label { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .875rem; font-weight: 900; color: var(--muted-fg); pointer-events: none; }
.input-prefix-field { padding-left: 3rem; }

.file-input { width: 100%; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); height: 3rem; cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--fg); }
.file-input::file-selector-button { height: 100%; padding: 0 1rem; background: var(--primary); color: var(--primary-fg); border: none; border-right: 2px solid var(--border); font-weight: 700; font-size: .875rem; cursor: pointer; margin-right: .75rem; }

.img-preview-box { width: 8rem; height: 8rem; flex-shrink: 0; border-radius: 1rem; border: 4px dashed var(--border); background: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.img-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { font-size: .7rem; font-weight: 700; text-align: center; padding: .5rem; color: var(--muted-fg); line-height: 1.4; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: .25rem; font-size: .8rem; font-weight: 700; border: 2px solid var(--border); text-transform: capitalize; }
.badge-outline   { background: transparent; }
.badge-secondary { background: var(--secondary); }
.badge-muted     { background: var(--muted); }
.badge-primary   { background: var(--primary); color: var(--primary-fg); }
.badge-accent    { background: var(--accent);  color: var(--accent-fg); }

/* ---------- Shop Page ---------- */
.shop-search-bar { border-bottom: 4px solid var(--border); background: var(--card); position: sticky; top: 4rem; z-index: 30; padding: 1rem 0; }
.search-form { display: flex; gap: .5rem; }
.search-wrap { position: relative; flex: 1; }
.search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); pointer-events: none; }
.search-input { width: 100%; height: 3rem; padding: 0 1rem 0 2.5rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: 1rem; font-weight: 500; outline: none; color: var(--fg); }
.search-input:focus { border-color: var(--primary); }

.active-filters { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.active-filters::-webkit-scrollbar { display: none; }
.active-filters-label { font-size: .8rem; font-weight: 700; color: var(--muted-fg); white-space: nowrap; flex-shrink: 0; }
.filter-tag { display: inline-flex; align-items: center; gap: .25rem; background: var(--secondary); border: 1px solid var(--border); padding: .25rem .75rem; border-radius: 9999px; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.filter-tag-x { cursor: pointer; font-size: .75rem; line-height: 1; }
.filter-tag-x:hover { color: var(--destructive); }
.clear-all-btn { font-size: .8rem; font-weight: 700; color: var(--destructive); background: none; border: none; cursor: pointer; white-space: nowrap; }
.clear-all-btn:hover { text-decoration: underline; }

.shop-layout { display: flex; gap: 2rem; padding: 2rem 0; }
.shop-sidebar { display: none; width: 16rem; flex-shrink: 0; }
@media(min-width:768px){ .shop-sidebar { display: block; } }
.sidebar-card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 10rem; box-shadow: var(--shadow-sm); }
.sidebar-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.filter-section { margin-bottom: 2rem; }
.filter-section:last-child { margin-bottom: 0; }
.filter-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); margin-bottom: .75rem; display: block; }
.filter-options { display: flex; flex-direction: column; gap: .2rem; }
.filter-btn { text-align: left; padding: .5rem .75rem; border-radius: .5rem; font-weight: 500; font-size: .875rem; border: 2px solid transparent; transition: background .15s, border-color .15s; cursor: pointer; background: none; width: 100%; color: var(--fg); }
.filter-btn:hover { background: var(--muted); border-color: rgba(26,22,20,.25); }
.filter-btn.active { background: var(--primary); border-color: var(--border); color: var(--primary-fg); box-shadow: var(--shadow-sm); }

.shop-main { flex: 1; min-width: 0; }
.shop-main-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.shop-main-title { font-size: 1.75rem; font-weight: 900; text-transform: uppercase; }
.sort-wrap { display: flex; align-items: center; gap: .5rem; }
.sort-label { font-size: .875rem; font-weight: 700; color: var(--muted-fg); }
.sort-select { height: 2.5rem; padding: 0 .75rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); font-weight: 700; font-size: .875rem; cursor: pointer; outline: none; color: var(--fg); }

/* ---------- Listing Detail ---------- */
.detail-page { padding-bottom: 4rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--fg); transition: color .15s; cursor: pointer; margin-bottom: 2rem; }
.back-link:hover { color: var(--primary); }
.detail-grid { display: flex; flex-direction: column; gap: 2rem; }
@media(min-width:768px){ .detail-grid { flex-direction: row; gap: 3rem; } }
.detail-img-col { width: 100%; }
@media(min-width:768px){ .detail-img-col { width: 55%; flex-shrink: 0; } }
.detail-main-img { aspect-ratio: 3/4; border-radius: 1.5rem; border: 4px solid var(--border); overflow: hidden; background: var(--muted); position: relative; }
@media(min-width:768px){ .detail-main-img { aspect-ratio: 1/1; } }
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info-col { flex: 1; display: flex; flex-direction: column; }
.detail-title { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; margin-bottom: .5rem; }
.detail-price { font-size: clamp(2rem,5vw,3rem); font-weight: 900; color: var(--primary); margin: 1rem 0; }
.detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.action-box { background: var(--card); border: 4px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.action-row { display: flex; gap: 1rem; }
.detail-section { margin-bottom: 2rem; }
.detail-section-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; border-bottom: 2px solid var(--border); padding-bottom: .5rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.description-text { font-weight: 500; line-height: 1.7; white-space: pre-line; }
.seller-card { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-radius: 1rem; border: 2px solid var(--border); background: rgba(0,0,0,.02); transition: background .15s; cursor: pointer; }
.seller-card:hover { background: var(--secondary); }
.seller-card-left { display: flex; align-items: center; gap: 1rem; }
.seller-big-avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 2px solid var(--border); background: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; color: var(--muted-fg); overflow: hidden; }
.seller-big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { font-weight: 700; font-size: 1.1rem; }
.seller-sub  { font-size: .875rem; color: var(--muted-fg); }
.ask-form { display: flex; flex-direction: column; gap: .75rem; }
.ask-form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.msg-sent-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; border: 2px dashed var(--border); border-radius: var(--radius); text-align: center; gap: .5rem; }

/* Reviews */
.reviews-layout { display: flex; flex-direction: column; gap: 2rem; }
@media(min-width:1024px){ .reviews-layout { flex-direction: row; gap: 3rem; } }
.reviews-col { flex: 1; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:640px){ .reviews-grid { grid-template-columns: 1fr 1fr; } }
.review-card { background: var(--bg); padding: 1.5rem; border-radius: 1rem; border: 4px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { display: flex; gap: .2rem; margin-bottom: 1rem; }
.star { font-size: 1.25rem; }
.star.on  { color: var(--primary); }
.star.off { color: var(--muted); }
.review-comment { font-weight: 500; font-size: 1rem; flex: 1; margin-bottom: 1rem; }
.review-footer { display: flex; justify-content: space-between; align-items: flex-end; border-top: 2px solid rgba(26,22,20,.1); padding-top: 1rem; }
.review-name { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .875rem; }
.review-date { font-size: .7rem; font-weight: 700; color: var(--muted-fg); }
.review-form-card { background: var(--card); padding: 2rem; border-radius: 1.5rem; border: 4px solid var(--border); box-shadow: var(--shadow-lg); width: 100%; }
@media(min-width:1024px){ .review-form-card { width: 22rem; position: sticky; top: 6rem; } }
.review-form-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; }
.star-picker { display: flex; gap: .375rem; }
.star-pick-btn { font-size: 2rem; background: none; border: none; cursor: pointer; transition: transform .15s; line-height: 1; color: var(--muted-fg); }
.star-pick-btn:hover { transform: scale(1.2); }
.star-pick-btn.on { color: var(--primary); }
.rating-display { display: flex; align-items: center; gap: .75rem; background: var(--bg); padding: .75rem 1.5rem; border-radius: 9999px; border: 4px solid var(--border); box-shadow: var(--shadow); flex-shrink: 0; }
.rating-num { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; }
.rating-denom { color: var(--muted-fg); }

/* Verify review gate */
.verify-info { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; background: var(--bg); border: 2px solid var(--border); border-radius: .75rem; margin-bottom: 1rem; }
.verify-icon { flex-shrink: 0; font-size: 1.1rem; }
.verify-info p { font-size: .875rem; font-weight: 500; color: var(--muted-fg); line-height: 1.5; }
.verify-phone-row { display: flex; gap: .5rem; align-items: center; }
.verified-notice { display: flex; align-items: center; gap: .5rem; padding: .75rem; background: #f0fdf4; border: 2px solid #16a34a; border-radius: .75rem; color: #166534; font-size: .8rem; font-weight: 700; margin-bottom: 1rem; }
.not-eligible { text-align: center; padding: 2rem; }
.not-eligible-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* ---------- Sell Page ---------- */
.sell-page { background: var(--muted); min-height: 100vh; padding: 2rem 0; }
.sell-card { background: var(--card); border: 4px solid var(--border); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-lg); }
@media(min-width:768px){ .sell-card { padding: 2.5rem; } }
.sell-image-row { display: flex; gap: 1rem; align-items: flex-start; }
.sell-image-inputs { flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.sell-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:768px){ .sell-grid-2 { grid-template-columns: 1fr 1fr; } }
.sell-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:768px){ .sell-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.fee-note { text-align: center; color: var(--muted-fg); font-size: .875rem; font-weight: 500; margin-top: .75rem; }
.fee-note strong { color: var(--fg); font-weight: 700; }

/* Sell sign-in wall */
.sell-wall { max-width: 28rem; margin: 0 auto; }
.sell-wall-card { border: 4px solid var(--border); background: var(--card); box-shadow: var(--shadow-lg); padding: 2.5rem; }
.sell-wall-icon { width: 4rem; height: 4rem; background: rgba(217,155,3,.1); border: 4px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.5rem; }

/* ---------- Cart Page ---------- */
.cart-page { padding: 2rem 0; min-height: 100vh; }
.cart-page-title { font-size: clamp(2rem,5vw,3rem); font-weight: 900; text-transform: uppercase; margin-bottom: 2rem; }
.cart-layout { display: flex; flex-direction: column; gap: 2rem; }
@media(min-width:1024px){ .cart-layout { flex-direction: row; gap: 3rem; } }
.cart-items  { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.cart-summary-col { width: 100%; }
@media(min-width:1024px){ .cart-summary-col { width: 24rem; flex-shrink: 0; } }

.cart-item { background: var(--card); border: 4px solid var(--border); border-radius: 1rem; padding: 1rem; display: flex; gap: 1rem; position: relative; }
@media(min-width:768px){ .cart-item { gap: 1.5rem; } }
.cart-item-thumb { width: 6rem; height: 6rem; flex-shrink: 0; border-radius: .75rem; border: 2px solid var(--border); overflow: hidden; background: var(--muted); }
@media(min-width:768px){ .cart-item-thumb { width: 8rem; height: 8rem; } }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-right: 2.5rem; }
.cart-item-brand { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--muted-fg); margin-bottom: .25rem; }
.cart-item-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-tags { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.cart-tag { font-size: .7rem; font-weight: 700; background: var(--muted); padding: .2rem .5rem; border-radius: .25rem; border: 1px solid var(--border); text-transform: capitalize; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.cart-item-price { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; }
.cart-item-price-note { font-size: .8rem; color: var(--muted-fg); font-weight: 500; margin-left: .5rem; }
.qty-stepper { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 9999px; overflow: hidden; box-shadow: var(--shadow-sm); }
.qty-btn { width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; cursor: pointer; background: none; border: none; color: var(--fg); transition: background .15s, color .15s; }
.qty-btn:hover { background: var(--primary); color: var(--primary-fg); }
.qty-val { width: 2.5rem; text-align: center; font-weight: 900; border-left: 2px solid var(--border); border-right: 2px solid var(--border); height: 2.25rem; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.cart-remove-btn { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted-fg); cursor: pointer; background: none; border: none; font-size: 1.1rem; transition: color .15s, background .15s; }
.cart-remove-btn:hover { color: var(--destructive); background: rgba(245,61,61,.08); }

.summary-card { background: var(--card); border: 4px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow-lg); position: sticky; top: 6rem; }
.summary-title  { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; }
.summary-lines  { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; font-size: .875rem; font-weight: 500; }
.summary-line   { display: flex; justify-content: space-between; }
.summary-line-label { color: var(--muted-fg); }
.summary-divider{ height: 2px; background: var(--border); margin: .5rem 0; }
.summary-total  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.summary-total-label  { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; }
.summary-total-amount { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--primary); }
.summary-note   { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .05em; margin-top: 1rem; }

/* ---------- Checkout ---------- */
.checkout-page { padding: 2rem 0; min-height: 100vh; }
.checkout-layout { display: flex; flex-direction: column; gap: 2rem; }
@media(min-width:1024px){ .checkout-layout { flex-direction: row; gap: 3rem; } }
.checkout-form-col { flex: 1; }
.checkout-summary-col { width: 100%; flex-shrink: 0; }
@media(min-width:1024px){ .checkout-summary-col { width: 20rem; } }
.checkout-card { background: var(--card); border: 4px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow); }
@media(min-width:768px){ .checkout-card { padding: 2rem; } }
.checkout-card-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; }
.checkout-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:768px){ .checkout-grid-2 { grid-template-columns: 1fr 1fr; } }
.checkout-summary-card { background: var(--muted); border: 2px solid var(--border); border-radius: 1.5rem; padding: 1.5rem; position: sticky; top: 6rem; }
.checkout-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.co-item { display: flex; align-items: center; gap: .75rem; }
.co-item-img { width: 3rem; height: 3rem; border-radius: .25rem; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; background: var(--bg); }
.co-item-img img { width: 100%; height: 100%; object-fit: cover; }
.co-item-title { font-weight: 700; font-size: .875rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-item-price { font-size: .75rem; color: var(--muted-fg); font-weight: 500; }

/* Success page */
.success-page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1rem; }
.success-icon { width: 6rem; height: 6rem; background: var(--accent); border-radius: 50%; border: 4px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 2.5rem; }
.success-title { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }
.success-desc  { font-weight: 500; font-size: 1.1rem; max-width: 30rem; margin-bottom: 2rem; line-height: 1.6; }
.success-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Track Order ---------- */
.track-page { padding: 2.5rem 0; min-height: 100vh; }
.track-header { text-align: center; margin-bottom: 2.5rem; }
.track-icon { width: 4rem; height: 4rem; background: rgba(217,155,3,.1); border: 4px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.track-title { font-size: clamp(2rem,5vw,3rem); font-weight: 900; text-transform: uppercase; margin-bottom: .75rem; }
.track-desc  { color: var(--muted-fg); font-weight: 500; max-width: 22rem; margin: 0 auto; }
.track-form  { display: flex; gap: .5rem; margin-bottom: 2.5rem; }
.track-input-wrap { position: relative; flex: 1; }
.track-input-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted-fg); pointer-events: none; }
.track-input { width: 100%; height: 3rem; padding: 0 1rem 0 2.5rem; border: 4px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: 1rem; font-weight: 500; outline: none; color: var(--fg); }
.track-input:focus { border-color: var(--primary); }

.order-card { border: 4px solid var(--border); background: var(--card); box-shadow: var(--shadow); margin-bottom: 1rem; }
.order-card-header { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
@media(min-width:640px){ .order-card-header { flex-direction: row; align-items: center; justify-content: space-between; } }
.order-id-badge { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .75rem; flex-shrink: 0; }
.order-badge-row { display: flex; align-items: center; gap: .5rem; }
.status-badge { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .75rem; border-radius: 9999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: 1px solid; }
.status-pending   { color:#92400e; background:#fffbeb; border-color:#fde68a; }
.status-confirmed { color:#1e40af; background:#eff6ff; border-color:#bfdbfe; }
.status-shipped   { color:#5b21b6; background:#f5f3ff; border-color:#ddd6fe; }
.status-delivered { color:#166534; background:#f0fdf4; border-color:#bbf7d0; }
.status-cancelled { color:#991b1b; background:#fef2f2; border-color:#fecaca; }
.toggle-details-btn { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; background: none; font-size: .875rem; color: var(--fg); }

.order-timeline { padding: .75rem 1.25rem; border-top: 2px solid var(--border); display: flex; align-items: flex-end; width: 100%; gap: 0; }
.tl-step { display: flex; flex-direction: column; align-items: center; gap: .25rem; flex-shrink: 0; }
.tl-dot { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .75rem; background: var(--muted); color: var(--muted-fg); }
.tl-dot.done { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.tl-dot.current { outline: 2px solid var(--primary); outline-offset: 2px; }
.tl-label { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; color: var(--muted-fg); }
.tl-label.done { color: var(--primary); }
.tl-line { height: 2px; flex: 1; margin: 0 .25rem 1.4rem; background: var(--border); }
.tl-line.done { background: var(--primary); }

.order-details { border-top: 2px solid var(--border); padding: 1rem 1.25rem; background: rgba(0,0,0,.02); display: none; }
.order-details.open { display: block; }
.order-detail-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); margin-bottom: .5rem; display: block; }
.order-item-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.order-item-thumb { width: 2.5rem; height: 2.5rem; border: 2px solid var(--border); border-radius: .25rem; overflow: hidden; flex-shrink: 0; }
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inbox / Conversations ---------- */
.inbox-page { padding: 2rem 0; min-height: 100vh; }
.inbox-title { font-size: 2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }
.conv-list { border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.conv-item { padding: 1rem; border-bottom: 2px solid var(--border); display: flex; gap: .75rem; cursor: pointer; transition: background .15s; }
.conv-item:last-child { border-bottom: none; }
.conv-item:hover { background: var(--muted); }
.conv-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--secondary); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.conv-name { font-weight: 700; font-size: .9375rem; }
.conv-time { font-size: .7rem; color: var(--muted-fg); white-space: nowrap; }
.conv-listing-title { font-size: .75rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-last-msg { font-size: .8rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Thread */
.thread-page { padding: 2rem 0; min-height: 100vh; }
.thread-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.thread-listing-thumb { width: 3rem; height: 3rem; border-radius: .5rem; border: 2px solid var(--border); overflow: hidden; background: var(--muted); flex-shrink: 0; }
.thread-listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.messages-area { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; padding: 1.5rem; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); min-height: 16rem; max-height: 36rem; overflow-y: auto; }
.msg-bubble { max-width: 80%; display: flex; flex-direction: column; gap: .25rem; }
.msg-bubble.buyer  { align-self: flex-end; align-items: flex-end; }
.msg-bubble.seller { align-self: flex-start; align-items: flex-start; }
.msg-text { padding: .75rem 1rem; font-weight: 500; font-size: .9375rem; border: 2px solid var(--border); }
.msg-bubble.buyer  .msg-text { background: var(--primary); color: var(--primary-fg); border-radius: 1rem 1rem 0 1rem; }
.msg-bubble.seller .msg-text { background: var(--muted); border-radius: 1rem 1rem 1rem 0; }
.msg-time { font-size: .65rem; color: var(--muted-fg); font-weight: 500; }
.msg-form { display: flex; gap: .5rem; }
.msg-input { flex: 1; height: 3rem; padding: 0 .75rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: .9375rem; font-weight: 500; outline: none; color: var(--fg); }
.msg-input:focus { border-color: var(--primary); }

/* ---------- Utilities ---------- */
.max-w-2xl  { max-width: 42rem;  margin-left: auto; margin-right: auto; }
.max-w-3xl  { max-width: 48rem;  margin-left: auto; margin-right: auto; }
.max-w-4xl  { max-width: 56rem;  margin-left: auto; margin-right: auto; }
.text-center{ text-align: center; }
.text-muted { color: var(--muted-fg); }
.font-display{ font-family: var(--font-display); }
.page-title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; text-transform: uppercase; margin-bottom: 2rem; }
.mt-auto    { margin-top: auto; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: .5rem; }
.hidden     { display: none !important; }

/* WhatsApp order note */
.wa-note { text-align: center; font-size: .875rem; color: var(--muted-fg); font-weight: 500; margin-top: 1rem; }

/* Product reviews section in detail page */
.prod-reviews-section { margin-top: 4rem; }
.prod-reviews-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width:768px){ .prod-reviews-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Account Page ---------- */
.account-page { padding: 3rem 0 5rem; }

.auth-card {
  background: var(--card); border: 4px solid var(--border);
  border-radius: 1.5rem; padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.auth-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
  letter-spacing: .1em; text-align: center; margin-bottom: 1.5rem;
  color: var(--primary);
}
.auth-title {
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900;
  text-transform: uppercase; text-align: center; margin-bottom: .5rem;
}
.auth-subtitle {
  text-align: center; color: var(--muted-fg); font-weight: 500;
  font-size: .9375rem; margin-bottom: 1.75rem;
}

/* Auth tabs (Sign In / Create Account) */
.auth-tabs {
  display: flex; border: 3px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 2rem;
}
.auth-tab {
  flex: 1; height: 3rem; background: transparent; border: none;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s;
  text-transform: uppercase; letter-spacing: .05em;
}
.auth-tab:first-child { border-right: 3px solid var(--border); }
.auth-tab.active  { background: var(--fg); color: var(--bg); }
.auth-tab:not(.active):hover { background: var(--muted); }
.auth-cta { height: 3.5rem; font-size: 1.05rem; letter-spacing: .05em; margin-top: .25rem; }

/* Show / hide password */
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .form-input { padding-right: 3rem; }
.pw-eye {
  position: absolute; right: .875rem;
  background: none; border: none; padding: .25rem; cursor: pointer;
  color: var(--muted-fg); display: flex; align-items: center; transition: color .15s;
}
.pw-eye:hover { color: var(--fg); }

/* Password strength meter */
.pw-strength-row {
  display: flex; align-items: center; gap: .75rem; margin-top: .5rem;
}
.pw-strength-track {
  flex: 1; height: 5px; background: var(--muted); border-radius: 999px;
  overflow: hidden; border: 1px solid var(--border);
}
.pw-strength-fill { height: 100%; border-radius: 999px; transition: width .3s, background .3s; }
.pw-strength-lbl { font-size: .75rem; font-weight: 700; min-width: 3.5rem; }

.auth-footer-note {
  text-align: center; font-size: .8rem; color: var(--muted-fg); font-weight: 500;
}
.auth-link { color: var(--fg); font-weight: 700; text-decoration: underline; }
.auth-link:hover { color: var(--primary); }

/* Signed-in profile */
.account-profile-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--card); border: 4px solid var(--border);
  border-radius: 1.5rem; padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.account-avatar {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
  border: 4px solid var(--border); flex-shrink: 0;
}
.account-profile-name  { font-weight: 900; font-size: 1.25rem; margin-bottom: .25rem; }
.account-profile-email { color: var(--muted-fg); font-weight: 500; font-size: .9375rem; }
.account-profile-method{ font-size: .75rem; color: var(--muted-fg); margin-top: .375rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.account-links-card {
  background: var(--card); border: 4px solid var(--border);
  border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-sm);
}
.account-link-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 2px solid var(--border);
  font-weight: 700; font-size: 1rem; transition: background .15s;
}
.account-link-row:last-child { border-bottom: none; }
.account-link-row:hover { background: var(--muted); }
.account-link-row span:nth-child(2) { flex: 1; }
.account-link-arrow { color: var(--muted-fg); font-size: 1.25rem; }


/* Account name label in header */
.account-header-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; max-width: 5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Auth Gate ---------- */
.auth-gate-card {
  background: var(--card); border: 4px solid var(--border);
  border-radius: 1.5rem; padding: 3rem 2rem;
  max-width: 26rem; width: 100%;
  box-shadow: var(--shadow-md); text-align: center;
}
.auth-gate-icon { font-size: 3rem; margin-bottom: 1rem; }
.auth-gate-title { font-family: var(--font-display); font-weight: 900; font-size: 2rem; text-transform: uppercase; margin-bottom: .75rem; }
.auth-gate-desc  { color: var(--muted-fg); font-weight: 500; margin-bottom: 1.5rem; }

.auth-gate-inline {
  display: flex; align-items: center; gap: 1rem;
  background: var(--muted); border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.auth-gate-inline-icon { font-size: 1.75rem; flex-shrink: 0; }
.auth-gate-inline-text { flex: 1; min-width: 10rem; font-weight: 600; color: var(--muted-fg); font-size: .9375rem; }

/* ---------- Admin Panel ---------- */
.admin-page { padding: 3rem 0 6rem; }
.admin-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem; margin-bottom: 3rem;
  padding-bottom: 2rem; border-bottom: 4px solid var(--border);
}
.admin-stat-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.admin-stat-pill {
  padding: .4rem 1rem; border-radius: 2rem; font-weight: 700; font-size: .85rem;
  border: 2px solid var(--border);
}
.admin-stat-pill.pending  { background: #fef3c7; color: #92400e; }
.admin-stat-pill.active   { background: #d1fae5; color: #065f46; }
.admin-stat-pill.rejected { background: #fee2e2; color: #991b1b; }

.admin-section { margin-bottom: 3rem; }
.admin-section-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.admin-section-title  { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; }
.admin-count-badge {
  background: var(--fg); color: var(--bg); width: 1.75rem; height: 1.75rem;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900;
}
.admin-empty {
  border: 3px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--muted-fg); font-weight: 600;
}

.admin-card {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: var(--card); border: 3px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: .875rem; box-shadow: 3px 3px 0 var(--border);
  flex-wrap: wrap;
}
.admin-card-thumb {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: .75rem; border: 2px solid var(--border);
  overflow: hidden; background: var(--muted);
}
.admin-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-card-body   { flex: 1; min-width: 10rem; display: flex; flex-direction: column; gap: .25rem; }
.admin-card-title  { font-weight: 900; font-size: 1rem; }
.admin-card-meta   { font-size: .8rem; color: var(--muted-fg); font-weight: 600; }
.admin-card-seller { font-size: .8rem; font-weight: 600; }
.admin-card-date   { font-size: .75rem; color: var(--muted-fg); }
.admin-card-actions { display: flex; flex-direction: column; gap: .5rem; min-width: 9rem; align-items: stretch; }
.admin-act-btn  { height: 2.5rem; font-size: .875rem; padding: 0 1rem; }
.admin-reject   { color: #dc2626 !important; border-color: #dc2626 !important; }
.admin-del      { color: #dc2626 !important; border-color: #dc2626 !important; }
.admin-live-badge     { font-size: .8rem; font-weight: 700; color: #059669; text-align: center; }
.admin-rejected-badge { font-size: .8rem; font-weight: 700; color: #dc2626; text-align: center; }

.account-link-admin { background: #fef9ee; }
.account-link-admin:hover { background: var(--primary); color: var(--primary-fg); }

/* ---------- Listing Success Box ---------- */
.listing-success-box {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .75rem;
  background: var(--muted); border: 3px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
}
.listing-success-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900;
}
.listing-success-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; text-transform: uppercase;
}
.listing-success-desc {
  font-size: .9375rem; color: var(--muted-fg);
  font-weight: 500; max-width: 26rem;
}
.listing-wa-btn {
  height: 3.5rem; font-size: 1rem;
  background: #25d366; color: #fff;
  border: 2px solid var(--border) !important;
}
.listing-wa-btn:hover { background: #1ebe5d; }

/* ---------- Sign Up / Join Community Section ---------- */
.signup-section { background: var(--fg); padding: 4rem 0; }
.signup-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 2rem;
}
.signup-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--primary); margin-bottom: .75rem;
}
.signup-desc {
  color: hsl(40, 20%, 70%); font-weight: 500;
  font-size: 1.0625rem; max-width: 32rem; margin: 0 auto;
}
.signup-form { width: 100%; max-width: 36rem; display: flex; flex-direction: column; gap: 1rem; }
.signup-fields { display: flex; flex-direction: column; gap: .75rem; }
@media(min-width: 540px) { .signup-fields { flex-direction: row; } }
.signup-input {
  background: hsl(20, 10%, 20%) !important;
  border-color: hsl(20, 10%, 35%) !important;
  color: var(--bg) !important;
  height: 3rem;
}
.signup-input::placeholder { color: hsl(40, 10%, 55%); }
.signup-input:focus { border-color: var(--primary) !important; outline: none; }
.signup-btn { height: 3rem; font-size: 1rem; width: 100%; }
@media(min-width: 540px) { .signup-fields .signup-input { flex: 1; } }
.signup-note { font-size: .8rem; color: hsl(40, 10%, 50%); font-weight: 500; }
