/* =============================================
   BuyCoral.co.uk – Main Stylesheet
   Theme: Deep ocean · Coral tones · Clean editorial
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --ocean: #0a3d52;
  --ocean-mid: #1a6b8a;
  --ocean-light: #2a9abf;
  --coral: #ff6b4a;
  --coral-light: #ff9275;
  --sand: #f5f0e8;
  --sand-dark: #ede5d4;
  --foam: #e8f5f9;
  --text: #1a2832;
  --text-mid: #4a6578;
  --text-light: #8aa5b5;
  --white: #ffffff;
  --success: #2a9d5c;
  --error: #e63946;
  --border: #d4e5ed;
  --shadow-sm: 0 2px 8px rgba(10,61,82,0.08);
  --shadow-md: 0 4px 20px rgba(10,61,82,0.12);
  --shadow-lg: 0 8px 40px rgba(10,61,82,0.16);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--ocean);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 500; font-size: 1.1rem; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; }
.logo-tld { opacity: 0.6; font-size: 0.9rem; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link { color: rgba(255,255,255,0.8); padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; transition: all .2s; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px; border-radius: 8px; font-size: 0.88rem;
  transition: background .2s;
}
.nav-user-btn:hover { background: rgba(255,255,255,0.2); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-avatar-placeholder {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--coral); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 180px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.nav-user-menu:hover .nav-dropdown { display: block; }
.nav-dropdown a, .nav-dropdown button {
  display: block; width: 100%; padding: 10px 16px;
  font-size: 0.88rem; color: var(--text); text-align: left;
  transition: background .15s;
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--foam); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown-logout { color: var(--error) !important; }
.nav-mobile-toggle { display: none; color: white; font-size: 1.3rem; padding: 8px; margin-left: auto; }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--ocean); padding: 12px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a, .mobile-nav button {
  color: rgba(255,255,255,0.85); padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem; display: block; width: 100%; text-align: left;
  background: none; font-family: inherit;
}
.mobile-nav.open { display: flex; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 22px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; transition: all .2s;
  white-space: nowrap; cursor: pointer; border: none;
}
.btn-primary { background: var(--coral); color: white; }
.btn-primary:hover { background: var(--coral-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,74,0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ocean-light); color: var(--ocean); }
.btn-ghost-light { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.25); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.watching { background: var(--foam); color: var(--ocean); border: 1.5px solid var(--ocean-light); }

/* ---- FLASH MESSAGES ---- */
.flash {
  padding: 14px 24px; font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.flash button { background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: .6; }
.flash-success { background: #d1f0e0; color: #1a5c38; }
.flash-error { background: #fde8e8; color: #a01a1a; }
.flash-info { background: #ddf0f9; color: #1a4a6b; }

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ocean) 0%, #0e4d68 50%, #1a6b8a 100%);
  padding: 100px 24px 80px; text-align: center;
  min-height: 520px; display: flex; align-items: center; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bubble {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: drift 12s ease-in-out infinite;
}
.b1 { width: 300px; height: 300px; top: -80px; left: -60px; animation-delay: 0s; }
.b2 { width: 200px; height: 200px; bottom: -50px; right: 10%; animation-delay: -4s; }
.b3 { width: 150px; height: 150px; top: 30%; right: -40px; animation-delay: -8s; }
.hero-ripple {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-20px) scale(1.05); } }

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block; background: rgba(255,107,74,0.2); color: #ffb39e;
  border: 1px solid rgba(255,107,74,0.3); padding: 5px 14px;
  border-radius: 20px; font-size: 0.82rem; font-weight: 500; margin-bottom: 20px;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.hero-title em { color: var(--coral-light); font-style: italic; }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.7; }

.hero-search { max-width: 560px; margin: 0 auto 28px; }
.search-form { display: flex; gap: 8px; }
.search-input {
  flex: 1; padding: 13px 18px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.12);
  color: var(--white); font-size: 0.92rem; outline: none;
  backdrop-filter: blur(4px);
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }

.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-cat-pill {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2); padding: 5px 14px;
  border-radius: 20px; font-size: 0.82rem; transition: all .2s;
}
.hero-cat-pill:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--ocean);
  display: flex; align-items: center; justify-content: center; gap: 40px;
  padding: 20px 24px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--coral-light); }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { font-size: 1.2rem; opacity: .4; }

/* ---- SECTIONS ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--sand); }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; }
.section-header.center { justify-content: center; flex-direction: column; align-items: center; text-align: center; }
.section-sub { color: var(--text-mid); margin-top: 8px; }
.view-all { color: var(--ocean-light); font-size: 0.88rem; font-weight: 500; }
.view-all:hover { color: var(--coral); }

/* ---- CARDS GRID ---- */
.cards-grid { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---- LISTING CARD ---- */
.listing-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .2s; text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ocean-light); }
.card-img-wrap { position: relative; padding-bottom: 70%; overflow: hidden; background: var(--foam); }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.listing-card:hover .card-img { transform: scale(1.04); }
.card-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-light); }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 5px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
}
.badge-auction { background: var(--coral); color: white; }
.badge-sold { background: #333; color: white; }
.badge-wysiwyg { background: var(--ocean); color: white; }
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-category { font-size: 0.7rem; font-weight: 700; color: var(--ocean-light); letter-spacing: 0.05em; }
.care-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.care-beginner { background: #d1f0e0; color: #1a5c38; }
.care-intermediate { background: #fff3cd; color: #7a5c00; }
.care-expert { background: #fde8e8; color: #a01a1a; }
.card-title { font-size: 0.9rem; font-weight: 500; color: var(--text); line-height: 1.4; flex: 1; }
.card-seller { font-size: 0.78rem; color: var(--text-light); }
.card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.card-price { display: flex; flex-direction: column; }
.price-label { font-size: 0.68rem; color: var(--text-light); }
.price { font-size: 1.1rem; font-weight: 700; color: var(--ocean); }
.bid-count { font-size: 0.72rem; color: var(--text-light); }
.card-timer { text-align: right; }
.timer-label { display: block; font-size: 0.65rem; color: var(--text-light); }
.timer-value { font-size: 0.78rem; font-weight: 600; color: var(--coral); font-variant-numeric: tabular-nums; }

/* ---- HOW IT WORKS ---- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.how-step {
  text-align: center; padding: 36px 28px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: relative;
}
.how-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ocean); color: white; font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; letter-spacing: 0.1em;
}
.how-icon { font-size: 2.5rem; margin-bottom: 14px; }
.how-step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.how-step p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.65; }

/* ---- CATEGORY GRID ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { border-color: var(--ocean-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-icon { font-size: 2rem; margin-bottom: 8px; }
.cat-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.cat-desc { font-size: 0.75rem; color: var(--text-mid); line-height: 1.5; }

/* ---- CTA ---- */
.cta-section { background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%); }
.cta-inner { max-width: 640px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.cta-inner h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: white; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 1rem; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- BROWSE PAGE ---- */
.browse-page {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  align-items: start;
}
.browse-sidebar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 80px;
  box-shadow: var(--shadow-sm);
}
.filter-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-section h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mid); font-weight: 600; margin-bottom: 12px; }
.filter-input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.88rem; outline: none; transition: border .2s; }
.filter-input:focus { border-color: var(--ocean-light); }
.filter-radio { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.88rem; cursor: pointer; }
.filter-radio input { accent-color: var(--ocean); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-input { flex: 1; }

.browse-main {}
.browse-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.browse-results { font-size: 0.9rem; color: var(--text-mid); }
.browse-results strong { color: var(--text); }
.browse-sort { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.sort-select { padding: 7px 12px; border: 1.5px solid var(--border); border-radius: 8px; background: white; font-size: 0.88rem; outline: none; cursor: pointer; }

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.85rem; color: var(--text); transition: all .2s; }
.page-btn:hover { border-color: var(--ocean-light); color: var(--ocean); }
.page-btn.active { background: var(--ocean); color: white; border-color: var(--ocean); }

/* ---- LISTING PAGE ---- */
.listing-page {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start;
}
.gallery { margin-bottom: 32px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--foam); aspect-ratio: 4/3; }
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { height: 300px; background: var(--foam); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--text-light); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border .2s; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--ocean-light); }

.listing-desc-block, .care-info, .bid-history { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.listing-desc-block h2, .care-info h2, .bid-history h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; color: var(--ocean); }
.listing-desc-block p { color: var(--text-mid); line-height: 1.75; font-size: 0.92rem; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.care-item { display: flex; flex-direction: column; gap: 3px; }
.care-label { font-size: 0.75rem; color: var(--text-light); }
.care-val { font-size: 0.9rem; font-weight: 500; }
.care-beginner { color: var(--success); }
.care-intermediate { color: #b8860b; }
.care-expert { color: var(--error); }
.bids-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bids-table th { text-align: left; padding: 8px 12px; background: var(--foam); font-weight: 600; font-size: 0.78rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.05em; }
.bids-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.winning-bid td { background: #fff9f7; font-weight: 600; }

/* Listing Sidebar */
.listing-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.listing-price-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.price-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.badge-cat { background: var(--foam); color: var(--ocean-mid); padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; border: 1px solid var(--border); }
.badge-type { padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.badge-auction { background: #fff0ed; color: var(--coral); }
.badge-sale { background: #e8f9ef; color: var(--success); }
.badge-sold-lg { background: #333; color: white; padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }

.listing-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; line-height: 1.3; margin-bottom: 18px; }

.sale-price-block { margin-bottom: 16px; }
.sale-price { font-size: 2rem; font-weight: 700; color: var(--ocean); }

.auction-price-block { margin-bottom: 16px; }
.current-bid-label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.current-bid-amount { font-size: 2rem; font-weight: 700; color: var(--ocean); margin: 4px 0; }
.buy-now-price { font-size: 0.88rem; color: var(--text-mid); }
.auction-timer-block { margin-top: 10px; padding: 10px 14px; background: #fff5f3; border-radius: 8px; border: 1px solid #ffd4c9; }
.timer-lbl { font-size: 0.72rem; color: var(--coral); text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 2px; }
.auction-countdown { font-size: 1.4rem; font-weight: 700; color: var(--coral); font-variant-numeric: tabular-nums; }
.big-countdown { font-size: 1.8rem; }

.bid-form { margin-top: 12px; }
.bid-input-wrap { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.bid-currency { padding: 12px 14px; background: var(--foam); color: var(--text-mid); font-weight: 700; border-right: 1px solid var(--border); }
.bid-input { flex: 1; padding: 12px 14px; border: none; outline: none; font-size: 1rem; font-family: inherit; }
.bid-hint { font-size: 0.75rem; color: var(--text-light); text-align: center; margin-top: 6px; }

.shipping-info { margin-top: 16px; padding: 14px; background: var(--foam); border-radius: 8px; }
.shipping-info h4 { font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.shipping-opt { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 4px 0; color: var(--text-mid); }

.listing-stats-mini { display: flex; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.listing-stats-mini span { font-size: 0.78rem; color: var(--text-light); }

/* Seller card in listing */
.seller-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.seller-card h3 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mid); margin-bottom: 14px; }
.seller-info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.seller-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.seller-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: var(--ocean); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.seller-name { font-weight: 600; font-size: 0.95rem; color: var(--ocean); }
.seller-name:hover { color: var(--coral); }
.seller-loc { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.seller-rating { font-size: 0.78rem; color: var(--text-mid); margin-top: 2px; }
.seller-sold { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.contact-form-wrap { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.contact-form-wrap h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }
.msg-textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.88rem; resize: vertical; outline: none; margin-bottom: 10px; font-family: inherit; }
.msg-textarea:focus { border-color: var(--ocean-light); }

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: calc(100vh - 64px); display: grid;
  grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 0 auto;
  padding: 48px 24px; gap: 48px; align-items: center;
}
.auth-card { max-width: 440px; }
.auth-card-wide { max-width: 540px; }
.auth-logo { font-size: 3rem; margin-bottom: 16px; }
.auth-card h1 { font-family: 'Playfair Display', serif; font-size: 1.9rem; margin-bottom: 6px; }
.auth-sub { color: var(--text-mid); margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; }
.form-input { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.92rem; outline: none; transition: border .2s; background: white; }
.form-input:focus { border-color: var(--ocean-light); }
.form-hint { font-size: 0.75rem; color: var(--text-light); }
.form-hint-inline { font-size: 0.75rem; color: var(--text-light); font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--coral); }
.input-reveal { position: relative; }
.input-reveal .form-input { padding-right: 60px; }
.reveal-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.78rem; color: var(--ocean-light); font-weight: 500; }
.form-agree { font-size: 0.85rem; }
.checkbox-label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.checkbox-label input { margin-top: 2px; accent-color: var(--ocean); }
.checkbox-label a { color: var(--ocean-light); text-decoration: underline; }
.auth-switch { margin-top: 20px; font-size: 0.88rem; color: var(--text-mid); }
.auth-switch a { color: var(--ocean-light); font-weight: 500; }
.auth-aside { background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%); border-radius: var(--radius-lg); padding: 48px 36px; }
.auth-aside-content h2 { font-family: 'Playfair Display', serif; color: white; font-size: 1.5rem; margin-bottom: 20px; }
.auth-benefits { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-benefits li { color: rgba(255,255,255,0.85); font-size: 0.92rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* ---- CREATE LISTING ---- */
.create-page { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.create-header { margin-bottom: 32px; }
.create-header h1 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 6px; }
.create-header p { color: var(--text-mid); }
.create-form { display: flex; flex-direction: column; gap: 0; }
.form-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.form-section h2 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--ocean); }
.form-textarea { resize: vertical; min-height: 120px; }

.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-option { cursor: pointer; }
.type-option input { display: none; }
.type-card {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 20px;
  text-align: center; transition: all .2s;
}
.type-option input:checked + .type-card {
  border-color: var(--coral); background: #fff5f3;
}
.type-card:hover { border-color: var(--ocean-light); }
.type-icon { font-size: 1.8rem; margin-bottom: 8px; }
.type-name { font-weight: 600; margin-bottom: 4px; }
.type-desc { font-size: 0.78rem; color: var(--text-mid); }

.image-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  min-height: 140px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border .2s; overflow: hidden;
}
.image-upload-area:hover { border-color: var(--ocean-light); }
.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-mid); padding: 24px; }
.upload-icon { font-size: 2.5rem; }
.upload-hint { font-size: 0.75rem; }
.image-previews { display: none; flex-wrap: wrap; gap: 10px; padding: 14px; }
.img-preview { position: relative; width: 100px; height: 100px; border-radius: 8px; overflow: hidden; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-main { border: 2px solid var(--coral); }
.preview-label { position: absolute; bottom: 4px; left: 4px; background: var(--coral); color: white; font-size: 0.62rem; padding: 1px 5px; border-radius: 4px; font-weight: 700; }

.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.prefix { padding: 10px 12px; background: var(--foam); color: var(--text-mid); font-weight: 600; border-right: 1px solid var(--border); font-size: 0.92rem; }
.input-prefix .form-input { border: none; border-radius: 0; }

.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-check { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; transition: border .2s; }
.shipping-check:has(input:checked) { border-color: var(--ocean-light); background: var(--foam); }
.shipping-check input { accent-color: var(--ocean); width: 16px; height: 16px; flex-shrink: 0; }
.shipping-check-body { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; }
.shipping-name { font-weight: 500; font-size: 0.9rem; min-width: 140px; }
.shipping-price { max-width: 100px; }

.create-submit { background: var(--foam); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.submit-note { font-size: 0.88rem; color: var(--text-mid); }

/* ---- DASHBOARD ---- */
.dashboard-page {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start;
}
.dashboard-sidebar { position: sticky; top: 80px; }
.dash-user-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; margin-bottom: 16px;
}
.dash-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.dash-avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--ocean); color: white; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.dash-user-name { font-weight: 600; font-size: 1rem; }
.dash-user-sub { font-size: 0.78rem; color: var(--text-light); }
.dash-user-loc { font-size: 0.78rem; color: var(--text-mid); margin-top: 4px; }
.dash-rating { font-size: 0.78rem; color: var(--text-mid); margin-top: 6px; }
.dash-nav { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; }
.dash-nav-link { display: block; padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; color: var(--text-mid); transition: all .2s; }
.dash-nav-link:hover, .dash-nav-link.active { background: var(--foam); color: var(--ocean); font-weight: 500; }
.dashboard-main {}
.dash-tab { display: none; }
.dash-tab.active { display: block; }
.dash-tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.dash-tab-header h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; }

.listings-table-wrap { overflow-x: auto; }
.listings-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.listings-table th { text-align: left; padding: 10px 14px; background: var(--foam); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mid); font-weight: 600; }
.listings-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.listings-table tr:hover td { background: var(--foam); }
.row-deleted td { opacity: 0.4; }
.table-listing-cell { display: flex; align-items: center; gap: 10px; }
.table-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.table-thumb-placeholder { width: 48px; height: 48px; border-radius: 6px; background: var(--foam); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.table-listing-title { font-weight: 500; font-size: 0.88rem; color: var(--ocean); }
.table-listing-title:hover { color: var(--coral); }
.table-listing-meta { font-size: 0.72rem; color: var(--text-light); }
.badge-type-sm { font-size: 0.72rem; padding: 2px 8px; border-radius: 5px; background: var(--foam); color: var(--ocean-mid); font-weight: 600; }
.status-badge { font-size: 0.72rem; padding: 3px 8px; border-radius: 5px; font-weight: 600; }
.status-active { background: #d1f0e0; color: #1a5c38; }
.status-sold { background: #e8e8f9; color: #3333aa; }
.status-ended { background: var(--sand-dark); color: var(--text-mid); }
.status-deleted { background: #eee; color: #888; }
.table-action { font-size: 0.78rem; color: var(--ocean-light); font-weight: 500; margin-right: 8px; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.table-action-del { color: var(--error); }

/* ---- SETTINGS ---- */
.settings-page { max-width: 700px; margin: 0 auto; padding: 40px 24px; }
.settings-page h1 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 28px; }
.settings-form { display: flex; flex-direction: column; gap: 0; }
.settings-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.settings-section h2 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: var(--ocean); }
.avatar-upload { display: flex; gap: 20px; align-items: center; }
.settings-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.settings-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--ocean); color: white; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.settings-actions { display: flex; gap: 12px; align-items: center; padding-top: 8px; }

/* ---- MESSAGES ---- */
.messages-page { max-width: 780px; margin: 0 auto; padding: 40px 24px; }
.messages-inner {}
.messages-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.messages-header h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; }
.unread-badge { background: var(--coral); color: white; padding: 2px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; }
.message-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.message-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); transition: background .15s; }
.message-row:last-child { border-bottom: none; }
.message-row:hover { background: var(--foam); }
.message-row.unread { background: #f0f8ff; }
.msg-avatar-wrap { flex-shrink: 0; }
.msg-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.msg-avatar-ph { width: 44px; height: 44px; border-radius: 50%; background: var(--ocean-mid); color: white; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.msg-body { flex: 1; min-width: 0; }
.msg-row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.msg-sender { font-weight: 600; font-size: 0.9rem; }
.msg-time { font-size: 0.75rem; color: var(--text-light); }
.msg-subject { font-size: 0.85rem; font-weight: 500; margin-bottom: 2px; color: var(--text); }
.msg-preview { font-size: 0.8rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.message-view-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.message-view-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.msg-view-from { font-size: 0.88rem; color: var(--text-mid); }
.msg-view-subject { font-weight: 600; font-size: 1rem; margin-top: 2px; }
.msg-view-time { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.msg-listing-ref { font-size: 0.85rem; color: var(--ocean-light); background: var(--foam); padding: 8px 12px; border-radius: 7px; margin-bottom: 16px; }
.msg-listing-ref a { color: var(--ocean-light); text-decoration: underline; }
.msg-view-body { font-size: 0.92rem; line-height: 1.75; color: var(--text); padding: 16px 0; }
.msg-reply-form { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
.msg-reply-form h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }

/* ---- SELLER PAGE ---- */
.seller-hero { background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%); padding: 48px 24px; }
.seller-hero-inner { max-width: 900px; margin: 0 auto; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.seller-hero-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.4); flex-shrink: 0; }
.seller-hero-avatar-ph { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; font-size: 2.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.seller-hero-info { flex: 1; }
.seller-hero-info h1 { font-family: 'Playfair Display', serif; color: white; font-size: 1.8rem; }
.seller-hero-un { color: rgba(255,255,255,.65); font-size: 0.9rem; margin-top: 2px; }
.seller-hero-loc { color: rgba(255,255,255,.75); font-size: 0.88rem; }
.seller-hero-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.star-filled { color: #ffd700; font-size: 1rem; }
.star-empty { color: rgba(255,255,255,.3); font-size: 1rem; }
.seller-hero-rating span:last-child { color: rgba(255,255,255,.75); font-size: 0.82rem; }
.seller-hero-joined { color: rgba(255,255,255,.5); font-size: 0.8rem; margin-top: 4px; }
.seller-hero-bio { color: rgba(255,255,255,.8); font-size: 0.9rem; margin-top: 8px; max-width: 500px; line-height: 1.6; }

.sellers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.seller-card-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; transition: all .2s; display: block; }
.seller-card-item:hover { border-color: var(--ocean-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.seller-card-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.seller-card-avatar-ph { width: 60px; height: 60px; border-radius: 50%; background: var(--ocean); color: white; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.seller-card-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.seller-card-loc { font-size: 0.75rem; color: var(--text-light); margin-bottom: 4px; }
.seller-card-rating { font-size: 0.78rem; color: var(--text-mid); }
.seller-card-stats { font-size: 0.75rem; color: var(--text-light); margin-top: 8px; display: flex; gap: 6px; justify-content: center; }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.review-avatar-ph { width: 36px; height: 36px; border-radius: 50%; background: var(--ocean-mid); color: white; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.review-meta { flex: 1; }
.review-name { font-weight: 600; font-size: 0.88rem; }
.review-stars { font-size: 0.85rem; }
.review-date { font-size: 0.75rem; color: var(--text-light); }
.review-comment { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

/* ---- AUCTIONS HERO ---- */
.auctions-hero { background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%); padding: 48px 24px; text-align: center; }
.auctions-hero-inner h1 { font-family: 'Playfair Display', serif; color: white; font-size: 2rem; margin-bottom: 8px; }
.auctions-hero-inner p { color: rgba(255,255,255,.75); }

/* ---- ADMIN ---- */
.admin-page { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.admin-page h1 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 28px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 36px; }
.admin-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.admin-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--ocean); }
.admin-stat-label { font-size: 0.78rem; color: var(--text-mid); margin-top: 4px; }
.admin-sections { display: grid; gap: 32px; }
.admin-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.admin-section h2 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--ocean); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; overflow-x: auto; display: block; }
.admin-table th { text-align: left; padding: 8px 12px; background: var(--foam); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mid); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.role-badge { font-size: 0.72rem; padding: 2px 8px; border-radius: 5px; font-weight: 600; }
.role-user { background: var(--foam); color: var(--ocean-mid); }
.role-admin { background: #ffe8cc; color: #b35200; }
.role-banned { background: #fde8e8; color: var(--error); }

/* ---- ERROR PAGE ---- */
.error-page { text-align: center; padding: 80px 24px; }
.error-code { font-size: 5rem; font-weight: 900; color: var(--border); line-height: 1; }
.error-icon { font-size: 3rem; margin: 16px 0; }
.error-page h1 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 10px; }
.error-page p { color: var(--text-mid); margin-bottom: 24px; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--text-mid); margin-bottom: 20px; font-size: 0.92rem; }

/* ---- FOOTER ---- */
.footer { background: var(--ocean); color: rgba(255,255,255,0.8); padding: 64px 0 0; margin-top: 64px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px 40px; display: flex; gap: 48px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-commission { margin-top: 10px; font-size: 0.8rem; color: var(--coral-light); font-weight: 500; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { min-width: 130px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--coral-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 1280px; margin: 0 auto; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .browse-page { grid-template-columns: 1fr; }
  .browse-sidebar { position: static; }
  .listing-page { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; }
  .dashboard-page { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-mobile-toggle { display: block; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 60px; }
  .cards-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .stats-bar { gap: 20px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .create-submit { flex-direction: column; align-items: flex-start; }
  .type-toggle { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards-4, .cards-3 { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
