/* Bidumo - Art Auction Platform Styles */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --deep-black: #0c0c0c;
  --charcoal: #2c2c2c;
  --slate: #4a4a4a;
  --accent-tan: #2e6b5a;
  --accent-tan-hover: #235544;
  --accent-tan-light: rgba(46, 107, 90, 0.15);
  --white: #ffffff;
  --warm-bg: #f7f5f2;
  --border-light: rgba(44, 44, 44, 0.08);
  --border-medium: rgba(44, 44, 44, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --btn-radius: var(--radius-full); /* Change this one value to restyle all buttons site-wide */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --max-width: 1160px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--deep-black);
  background-color: var(--warm-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, .h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2, .h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h3, .h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.text-sm {
  font-size: 13px;
}

.text-meta {
  font-size: 13px;
  color: var(--slate);
}

.label-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
}

@media (min-width: 768px) {
  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 28px; }
  h3, .h3 { font-size: 24px; }
}

@media (min-width: 1024px) {
  h1, .h1 { font-size: 48px; }
  h2, .h2 { font-size: 32px; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   CARDS & SURFACES
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 16px;
}

@media (min-width: 768px) {
  .card-body { padding: 20px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--btn-radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-tan);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-tan-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--charcoal);
  border: 1.5px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--warm-bg);
  border-color: var(--charcoal);
}

.btn-ghost {
  color: var(--charcoal);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   PILLS / TAGS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.pill-active {
  background-color: var(--accent-tan);
  color: var(--white);
}

.pill-inactive {
  background-color: transparent;
  color: var(--slate);
  border: 1px solid var(--border-medium);
}

.pill-inactive:hover {
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.status-live { background-color: #e8f5e9; color: #2e7d32; }
.status-awaiting { background-color: var(--accent-tan-light); color: var(--accent-tan); }
.status-ended { background-color: #f5f5f5; color: var(--slate); }
.status-draft { background-color: #f5f5f5; color: var(--slate); }
.status-sold { background-color: var(--accent-tan); color: var(--white); }

/* ============================================================
   INPUTS
   ============================================================ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
}

.input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--deep-black);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: var(--deep-black);
  box-shadow: 0 0 0 3px rgba(12, 12, 12, 0.06);
}

.input-error {
  border-color: #c62828;
}

.error-text {
  font-size: 13px;
  color: #c62828;
}

textarea.input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 20px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--deep-black);
  flex-shrink: 0;
}

.nav-search-bar {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--warm-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--slate);
}

.nav-right-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

/* Hide old bottom nav entirely */
.nav-bottom { display: none; }

/* Mobile global header — only show on small screens */
.mobile-global-header { display: none !important; }
@media (max-width: 767px) {
  .nav-top { display: none; }
  .mobile-global-header { display: flex !important; }
  /* Add top padding to account for fixed header */
  .page-content { padding-top: 64px; }
  /* Hide when auction detail has its own header */
  body.mobile-auction-active .mobile-global-header { display: none !important; }
}

.nav-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--slate);
  transition: color var(--transition-fast);
}

.nav-bottom-item.active {
  color: var(--deep-black);
}

.nav-desktop-links {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .nav-desktop-links { display: flex; }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--deep-black);
}

/* Page offset for fixed nav */
.page-content {
  padding-top: 60px;
  padding-bottom: 72px;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .page-content { padding-bottom: 0; }
}

/* Landing page nav spacing */
.landing-page {
  padding-top: 60px;
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  .landing-page { padding-bottom: 0; }
}

/* ============================================================
   LANDING HERO
   ============================================================ */
.landing-hero {
  padding: 48px 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.landing-hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.landing-hero-content {
  flex: 1;
  min-width: 0;
}

.landing-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--deep-black);
  margin-bottom: 16px;
}

.landing-hero-accent {
  color: var(--accent-tan);
}

.landing-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 12px;
  max-width: 520px;
}

.landing-hero-punch {
  font-size: 15px;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 32px;
  max-width: 520px;
  font-weight: 500;
}

.landing-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-cta-btn {
  min-width: 180px;
}

.landing-hero-ctas--stacked {
  flex-direction: column;
  align-items: stretch;
}

.landing-cta-btn--wide {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.landing-cta-btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(45, 80, 60, 0.35);
  color: var(--primary);
}

.landing-cta-btn--ghost:hover {
  background: rgba(45, 80, 60, 0.08);
}

/* .landing-cta-icon removed — no emoji icons */

/* Revolving card deck in the hero visual area */
.landing-hero-visual {
  display: none;
  position: relative;
  width: 380px;
  height: 360px;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-deck {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 900px;
}

.hero-deck-card {
  position: absolute;
  width: 220px;
  height: 290px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  cursor: pointer;
  backface-visibility: hidden;
}

.hero-deck-card:hover {
  z-index: 100 !important;
}

.hero-deck-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.hero-deck-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.hero-deck-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  border-radius: 0 0 16px 16px;
  color: #fff;
}

.hero-deck-card-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 4px;
}

.hero-deck-card-status-live {
  background: rgba(46, 107, 90, 0.8);
}

.hero-deck-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-deck-card-price {
  font-size: 16px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .landing-hero {
    padding: 64px 0 56px;
  }

  .landing-hero-title {
    font-size: 44px;
  }

  .landing-hero-subtitle {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .landing-hero {
    padding: 80px 0 72px;
  }

  .landing-hero-title {
    font-size: 52px;
  }

  .landing-hero-visual {
    display: block;
  }
}

/* ============================================================
   LANDING TRUST BAR
   ============================================================ */
.landing-trust-bar {
  padding: 20px 0;
  background: var(--warm-bg);
  border-bottom: 1px solid var(--border-light);
}

.landing-trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.landing-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}

.landing-trust-icon {
  font-size: 16px;
}

.landing-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-tan);
  flex-shrink: 0;
}

.landing-trust-icon {
  color: var(--teal, #0d7377);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .landing-trust-items {
    gap: 16px 48px;
  }

  .landing-trust-item {
    font-size: 14px;
  }
}

/* ============================================================
   LANDING CATEGORIES
   ============================================================ */
.landing-categories {
  padding: 48px 0;
}

.landing-categories-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--ink);
}

.landing-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
}

@media (min-width: 768px) {
  .landing-categories-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 32px 16px;
  }
}

.landing-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.landing-category-icon {
  color: var(--slate, #64748b);
}

.landing-category-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: var(--ink);
}

/* ============================================================
   LANDING STATS BAR
   ============================================================ */
.landing-stats-bar {
  padding: 48px 0;
  background: var(--warm-bg, #f7f5f0);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.landing-stats-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  text-align: center;
  flex-wrap: wrap;
}

.landing-stat {
  min-width: 120px;
}

.landing-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--teal, #0d7377);
  line-height: 1.1;
  margin-bottom: 4px;
}

.landing-stat-label {
  font-size: 13px;
  color: var(--slate, #64748b);
  font-weight: 500;
}

/* ============================================================
   LANDING READY TO START
   ============================================================ */
.landing-ready {
  padding: 80px 0;
  background: var(--warm-bg);
}

.landing-ready-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--deep-black);
}

.landing-ready-subtitle {
  text-align: center;
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 48px;
  color: var(--slate);
  line-height: 1.6;
}

.landing-ready-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .landing-ready-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.landing-ready-card {
  background: var(--white);
  color: var(--deep-black);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.landing-ready-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--deep-black);
}

.landing-ready-card-sub {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 24px;
}

.landing-ready-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
  flex: 1;
}

.landing-ready-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.landing-ready-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-tan);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.landing-ready-step p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding-top: 4px;
  color: var(--charcoal);
}

.landing-ready-step p strong {
  color: var(--deep-black);
}

.landing-ready-btn {
  width: 100%;
}

/* Live auctions section on landing page */
.landing-live-section {
  padding: 40px 0;
}

@media (max-width: 767px) {
  .landing-live-section {
    padding: 24px 0 0;
  }
}

/* ============================================================
   LANDING SECTIONS
   ============================================================ */
.stream-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.stream-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .stream-card { max-width: 800px; }
}

.stream-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: #e8e4de;
}

.stream-body {
  padding: 24px;
}

@media (min-width: 768px) {
  .stream-body { padding: 32px; }
}

/* Track selector pills */
.track-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.track-selector::-webkit-scrollbar {
  display: none;
}

/* ============================================================
   AUCTION CARD
   ============================================================ */
.auction-card {
  cursor: pointer;
}

.auction-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: #e8e4de;
}

.auction-card-info {
  padding: 12px 16px 16px;
}

.auction-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.auction-card-artist {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 8px;
}

.auction-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.auction-card-price {
  font-size: 15px;
  font-weight: 600;
}

.auction-card-time {
  font-size: 12px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   ARTIST CARD
   ============================================================ */
.artist-card {
  text-align: center;
  padding: 24px 16px;
  cursor: pointer;
}

.artist-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background-color: #e8e4de;
}

.artist-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ============================================================
   AUCTION DETAIL
   ============================================================ */
.auction-hero {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background-color: #e8e4de;
}

@media (min-width: 768px) {
  .auction-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
  }

  .auction-hero {
    aspect-ratio: auto;
    max-height: 600px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
}

@media (min-width: 1024px) {
  .auction-detail-layout {
    grid-template-columns: 1fr 360px;
    gap: 36px;
  }
}

.auction-detail-sidebar {
}

.bid-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.bid-current {
  font-size: 34px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.1;
}

.bid-estimate {
  font-size: 15px;
  color: var(--accent-tan);
}

.detail-section {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.detail-key {
  font-size: 13px;
  color: var(--slate);
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   ARTIST PROFILE
   ============================================================ */
.profile-hero {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #e8e4de;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

@media (min-width: 768px) {
  .profile-hero { height: 300px; }
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  margin-top: -48px;
  background-color: #e8e4de;
}

@media (min-width: 768px) {
  .profile-avatar {
    width: 100px;
    height: 100px;
    margin-top: -60px;
  }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  animation: fadeIn var(--transition-normal);
}

@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  animation: slideUp var(--transition-normal);
}

@media (min-width: 768px) {
  .modal {
    border-radius: var(--radius-md);
    max-height: 80vh;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ============================================================
   ONBOARDING STEPS
   ============================================================ */
.onboard-step {
  min-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
  max-width: 400px;
  margin: 0 auto;
}

.onboard-step .h1 {
  margin-bottom: 8px;
}

.onboard-step .text-meta {
  margin-bottom: 32px;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.step-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--border-medium);
  transition: background-color var(--transition-normal);
}

.step-dot.active {
  background-color: var(--accent-tan);
}

.step-dot.completed {
  background-color: var(--deep-black);
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  border-bottom: 1px solid var(--border-medium);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.text-center { text-align: center; }
.text-slate { color: var(--slate); }
.text-tan { color: var(--accent-tan); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.w-full { width: 100%; }
.hidden { display: none; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-in {
  animation: fadeSlideIn 0.4s ease forwards;
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

/* ============================================================
   LOADING
   ============================================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent-tan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px 0 32px;
  margin-top: 64px;
  border-radius: 24px 24px 0 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-tan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================================
   AUCTION TILE GRID
   ============================================================ */

/* Mobile-first: single full-width column */
.auction-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .auction-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .auction-feed {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile card styling */
@media (max-width: 639px) {
  .auction-tile-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 0 0 12px;
  }

  .auction-tile-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* 9:16 vertical video ratio for mobile */
  .auction-tile-media {
    aspect-ratio: 9 / 16;
  }

}

/* ============================================================
   AUCTION TILE CARD (square: media top, artist mid, chin bottom)
   ============================================================ */
.auction-tile-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.auction-tile-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.auction-tile-media {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background-color: #e8e4de;
  cursor: pointer;
  flex-shrink: 0;
}

.auction-tile-media-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.auction-tile-media:hover .auction-tile-media-inner {
  transform: scale(1.03);
}

/* Ended auction — grey overlay with ENDED label inside .auction-tile-media */
.auction-ended-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
}

.auction-ended-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 28px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
}

.auction-tile-artist {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 0;
  cursor: pointer;
}

.auction-tile-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-color: #e8e4de;
  background-size: cover;
  background-position: center;
}

@media (min-width: 640px) {
  .auction-tile-avatar { width: 36px; height: 36px; }
}

.auction-tile-artist-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .auction-tile-artist-name { font-size: 13px; }
}

.auction-tile-bio {
  font-size: 10px;
  color: var(--slate);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .auction-tile-bio { font-size: 11px; }
}

.auction-tile-chin {
  padding: 8px 12px 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
}

.auction-tile-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--deep-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  cursor: pointer;
}

@media (min-width: 640px) {
  .auction-tile-title { font-size: 13px; }
}

.auction-tile-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.auction-tile-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep-black);
}

@media (min-width: 640px) {
  .auction-tile-price { font-size: 19px; }
}

.auction-tile-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Compact tweaks for very small phones */
@media (max-width: 479px) {
  .auction-feed { gap: 8px; }
  .auction-tile-artist { padding: 7px 9px 0; gap: 6px; }
  .auction-tile-avatar { width: 26px; height: 26px; }
  .auction-tile-bio { -webkit-line-clamp: 1; font-size: 9px; }
  .auction-tile-chin { padding: 6px 9px 9px; margin-top: 5px; }
  .auction-tile-title { font-size: 10px; margin-bottom: 3px; }
  .auction-tile-meta { margin-bottom: 6px; }
  .auction-tile-price { font-size: 14px; }
  .auction-tile-actions { gap: 4px; }
  .watch-btn-card { width: 30px; height: 30px; min-width: 30px; }
}

/* ============================================================
   AUCTION SPLIT CARD (artist left, video right)
   ============================================================ */

.auction-split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
  overflow: hidden;
}

.auction-split-card-featured {
  min-height: 280px;
}

@media (min-width: 640px) {
  .auction-split-card { min-height: 280px; }
  .auction-split-card-featured { min-height: 320px; }
}

@media (min-width: 1024px) {
  .auction-split-card { min-height: 300px; }
  .auction-split-card-featured { min-height: 360px; }
}

/* LEFT panel */
.auction-split-left {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  min-width: 0;
}

@media (min-width: 640px) {
  .auction-split-left { padding: 20px; }
}

/* Artist row inside left panel */
.auction-split-artist {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.auction-split-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e4de;
}

@media (min-width: 640px) {
  .auction-split-avatar { width: 52px; height: 52px; }
}

.auction-split-artist-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .auction-split-artist-name { font-size: 15px; }
}

.auction-split-location {
  font-size: 10px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.auction-split-bio {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.5;
  margin: 0 0 0 0;
}

@media (min-width: 640px) {
  .auction-split-bio { font-size: 13px; }
}

.auction-split-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .auction-split-title { font-size: 15px; }
}

.auction-split-bid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.auction-split-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-bottom: 2px;
}

.auction-split-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-black);
}

@media (min-width: 640px) {
  .auction-split-price { font-size: 24px; }
}

.auction-split-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--slate);
}

/* RIGHT panel */
.auction-split-right {
  position: relative;
  overflow: hidden;
  background-color: #e8e4de;
}

.auction-split-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   VIDEO-FIRST AUCTION MEDIA
   ============================================================ */
.auction-card-video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background-color: #e8e4de;
}

.auction-card-media {
  width: 100%;
  aspect-ratio: 16/9;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.video-sound-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 5;
  transition: background var(--transition-fast), opacity var(--transition-fast);
  opacity: 0;
}

.auction-tile-media:hover .video-sound-btn,
.auction-tile-media:focus-within .video-sound-btn {
  opacity: 1;
}

/* Always show on touch devices */
@media (hover: none) {
  .video-sound-btn {
    opacity: 1;
  }
}

.video-play-overlay-lg {
  width: 64px;
  height: 64px;
}

.auction-video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.auction-video-player {
  width: 100%;
  /* Default 9:16 for vertical mobile video; browser adjusts if video is landscape */
  aspect-ratio: 9 / 16;
  display: block;
  background: #000;
  max-height: 80vh;
  object-fit: contain;
}

@media (min-width: 640px) {
  .auction-video-player {
    max-height: 70vh;
  }
}

.auction-secondary-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.auction-secondary-images::-webkit-scrollbar {
  display: none;
}

.auction-secondary-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.auction-secondary-img:hover {
  border-color: var(--accent-tan);
}

@media (min-width: 768px) {
  .auction-secondary-img {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
   ARTIST-CENTERED: SQUARE AVATARS + INFO BARS
   ============================================================ */
.artist-avatar-square {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-avatar-square-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auction-card-artist {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.auction-card-artist-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  line-height: 1.3;
}

.auction-card-artist-bio {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.3;
  margin-top: 1px;
}

.artist-detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--transition-normal);
}

.artist-detail-card:hover {
  box-shadow: var(--shadow-md);
}

.profile-avatar-square {
  border-radius: var(--radius-md) !important;
}

/* ============================================================
   PROMINENT BID BUTTON
   ============================================================ */
.bid-btn {
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.auction-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   NOTIFICATION BELL + DROPDOWN
   ============================================================ */
.nav-notif-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--slate);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-notif-btn:hover {
  color: var(--deep-black);
  background: rgba(0,0,0,0.04);
}

.nav-notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.nav-notif-badge-mobile {
  top: -2px;
  right: -2px;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 440px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  border: 1px solid var(--border-light);
  overflow-y: auto;
  z-index: 200;
  animation: fadeSlideIn 0.15s ease;
}

@media (max-width: 400px) {
  .notif-dropdown { width: calc(100vw - 24px); right: -12px; }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--white);
}

.notif-dropdown-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--slate);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover { background: var(--warm-bg); }

.notif-item-unread { background: rgba(190, 169, 142, 0.08); }

.notif-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
  margin-bottom: 2px;
  line-height: 1.3;
}

.notif-item-msg {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.4;
  margin-bottom: 3px;
}

.notif-item-time {
  font-size: 11px;
  color: var(--slate);
  opacity: 0.7;
}

/* ============================================================
   WATCH BELL BUTTONS
   ============================================================ */
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  color: var(--slate);
  background: transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.watch-btn:hover {
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.watch-btn-active {
  background: var(--accent-tan-light);
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.watch-btn-card {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  color: var(--slate);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.watch-btn-card:hover {
  border-color: var(--accent-tan);
  color: var(--deep-black);
}

.watch-btn-card-active {
  background: var(--accent-tan);
  border-color: var(--accent-tan);
  color: var(--white);
}

/* ============================================================
   BID UI ENHANCEMENTS
   ============================================================ */
.bid-increment-hint {
  font-size: 12px;
  color: var(--slate);
  padding: 10px 14px;
  background: var(--warm-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.bid-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate);
  padding: 10px 14px;
  background: var(--warm-bg);
  border-radius: var(--radius-sm);
}

.bid-leading-badge {
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bid-extended-notice {
  font-size: 12px;
  color: #8b6914;
  background: var(--accent-tan-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.bid-ended-box {
  padding: 12px 16px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ── Catawiki-inspired countdown timer ─────────────────────── */
.bid-countdown-grid {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.bid-countdown-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
}

.bid-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 2px;
}

.bid-countdown-num {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--deep-black);
  line-height: 1.2;
}

.bid-countdown-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 1px;
}

.bid-progress-bar {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.bid-progress-fill {
  height: 100%;
  background: var(--accent-tan);
  border-radius: 2px;
  transition: width 1s linear;
}

/* "CURRENT BID" uppercase label */
.bid-label-upper {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Estimate block */
.bid-estimate-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 10px;
}

.bid-estimate-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-black);
}

.bid-estimate-range {
  font-size: 13px;
  color: var(--charcoal);
}

/* Quick bid preset buttons */
.bid-quick-amounts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.bid-quick-btn {
  flex: 1;
  padding: 7px 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--deep-black);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.bid-quick-btn:hover {
  border-color: var(--accent-tan);
  background: var(--warm-bg);
}

.bid-quick-btn-active {
  border-color: var(--accent-tan);
  background: var(--accent-tan-light);
  font-weight: 600;
}

/* Custom bid input row (currency symbol + input) */
.bid-custom-input-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--warm-bg);
  margin-top: 8px;
  overflow: hidden;
}

.bid-custom-currency {
  padding: 9px 0 9px 12px;
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
  user-select: none;
}

.bid-custom-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px 9px 6px;
  font-size: 14px;
  color: var(--deep-black);
  outline: none;
  font-family: inherit;
}

.bid-custom-input::placeholder {
  color: var(--slate);
  font-weight: 400;
}

/* Place Bid + Set Max Bid side-by-side */
.bid-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.bid-actions-row .btn-lg {
  padding: 10px 12px;
  font-size: 13px;
}

.btn-outline-bid {
  background: var(--white);
  color: var(--accent-tan);
  border: 2px solid var(--accent-tan);
  font-weight: 600;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-outline-bid:hover {
  background: var(--accent-tan-light);
  color: var(--deep-black);
}

.btn-outline-bid:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Actions row in split cards */
.auction-split-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Payment UI ──────────────────────────────────── */
.payment-cta-box {
  background: var(--warm-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.payment-success-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(46, 125, 50, 0.06);
  border: 1.5px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.payment-success-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(46, 125, 50, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e7d32;
}

/* Stripe Connect card */
.stripe-connect-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.stripe-connect-card--connected {
  background: rgba(46, 125, 50, 0.04);
  border-color: rgba(46, 125, 50, 0.2);
}

/* Wide-spaced uppercase text for labels */
.text-wide {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate);
}

/* ============================================================
   MOBILE SOFT ROUNDED EDGES
   Applies the same soft-corner treatment on mobile that desktop
   has always had.  Addresses sharp/flat elements on small screens.
   ============================================================ */

/* Auction detail hero: give it radius globally (desktop already has
   it via media query; this applies it to mobile too) */
.auction-hero {
  border-radius: var(--radius-md);
}

@media (max-width: 639px) {
  /* Keep bid box corners rounded on mobile */
  .bid-box {
    border-radius: var(--radius-md);
  }

  .bid-countdown-num {
    font-size: 20px;
  }

  .bid-current {
    font-size: 30px;
  }

  .bid-quick-btn {
    font-size: 12px;
    padding: 6px 4px;
  }

  /* Featured split card: stack vertically on mobile so both panels
     have enough room and the media panel gets a full-width rounded look */
  .auction-split-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .auction-split-left {
    border-right: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .auction-split-right {
    border-top: 1px solid var(--border-light);
    min-height: 240px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  /* Auction video container */
  .auction-video-container {
    border-radius: var(--radius-md);
  }

  /* Profile banner: keep bottom-radius on mobile */
  .profile-hero {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

/* ============================================================
   GALLERY GRID (wide screens, multiple images)
   ============================================================ */
.media-gallery-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4px;
  border-radius: var(--radius-md);
}

.media-gallery-main {
  position: relative;
  overflow: hidden;
  background: #f0ece6;
  min-height: 320px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.media-gallery-main img,
.media-gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  overflow: hidden;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.media-gallery-side-item {
  overflow: hidden;
  background: #f0ece6;
  position: relative;
}

.media-gallery-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-gallery-side-item:hover img {
  transform: scale(1.03);
}

/* Only 1 side item: span full width and height */
.media-gallery-side-item:only-child {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

/* 2 side items: each take full width, stack vertically */
.media-gallery-side-item:first-child:nth-last-child(2),
.media-gallery-side-item:first-child:nth-last-child(2) ~ .media-gallery-side-item {
  grid-column: 1 / -1;
}

/* 3 side items: first spans full width top, other two bottom */
.media-gallery-side-item:first-child:nth-last-child(3) {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .media-gallery-grid {
    display: none; /* Mobile uses standard carousel */
  }
}

/* ============================================================
   PAYMENT BADGES
   ============================================================ */
.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--white);
  user-select: none;
  line-height: 1;
  overflow: hidden;
  height: 32px;
  width: 50px;
}
.payment-badge img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
.payment-badge--dark {
  background: #1a1a1a;
}
.payment-badge--dark img {
  filter: invert(1);
}

/* ============================================================
   TRUST CARDS (buyer protection, help centre)
   ============================================================ */
.trust-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 12px;
}

/* ============================================================
   MORE AUCTIONS FEED (on auction detail page)
   ============================================================ */
.more-auctions-feed {
  /* On mobile, horizontal scroll */
}

@media (max-width: 639px) {
  .more-auctions-feed {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }

  .more-auctions-feed > .auction-tile-card {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

/* ============================================================
   MOBILE AUCTION DETAIL
   ============================================================ */

/* Hide nav, footer, and bottom nav when mobile auction is active */
body.mobile-auction-active .nav-top,
body.mobile-auction-active .nav-bottom,
body.mobile-auction-active footer,
body.mobile-auction-active .site-footer {
  display: none !important;
}

body.mobile-auction-active .page-content {
  padding-top: 0;
  padding-bottom: 0;
}

.mobile-auction-detail {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  z-index: 100;
}

/* ── Compact header ─────────────────────────────────────── */
.mobile-compact-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  height: 56px;
}

.mobile-header-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.mobile-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-black);
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .mobile-logo-text { display: none; }
}

.mobile-header-search {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--warm-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--slate);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
}
.mobile-header-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.mobile-header-signin {
  padding: 10px 20px;
  background: var(--accent-tan);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 300;
  min-width: 140px;
  overflow: hidden;
  animation: fadeSlideIn 0.15s ease;
}

.mobile-auth-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
}

.mobile-auth-dropdown-item:hover {
  background: var(--warm-bg);
}

.mobile-auth-dropdown-item + .mobile-auth-dropdown-item {
  border-top: 1px solid var(--border-light);
}

.mobile-header-profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-tan);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--white);
}

/* Desktop profile icon button (unauthenticated) */
.nav-profile-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-tan);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--white);
  transition: background-color 0.15s ease;
}

.nav-profile-icon-btn:hover {
  background-color: var(--accent-tan-hover);
}

.desktop-auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
  z-index: 1000;
  animation: fadeSlideIn 0.15s ease;
}

/* ── Scrollable body ────────────────────────────────────── */
.mobile-auction-body {
  padding-top: 56px;
  background: var(--white);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.mobile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--charcoal);
  flex-wrap: wrap;
}

.mobile-breadcrumb a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 400;
}

.mobile-breadcrumb a:hover {
  text-decoration: underline;
}

.mobile-breadcrumb-current {
  font-weight: 600;
  color: var(--deep-black);
}

/* ── Hero image ─────────────────────────────────────────── */
.mobile-auction-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e4de;
}

.mobile-hero-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-tan);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  z-index: 2;
}

/* ── Progress bar & closes bar ──────────────────────────── */
.mobile-progress-bar {
  height: 4px;
  background: var(--border-light);
  overflow: hidden;
}

.mobile-closes-bar {
  text-align: center;
  padding: 10px 16px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-light);
}

/* ── Thumbnail strip ────────────────────────────────────── */
.mobile-thumbs-strip {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  background: #e8e4de;
}

.mobile-thumb-active {
  border-color: var(--accent-tan);
}

/* ── Title ──────────────────────────────────────────────── */
.mobile-auction-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 16px 0;
  color: var(--deep-black);
}

/* ── Description ────────────────────────────────────────── */
.mobile-desc-section {
  padding: 8px 16px 0;
}

.mobile-desc-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0;
}

.mobile-desc-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-read-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  color: var(--accent-tan);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ── Divider ────────────────────────────────────────────── */
.mobile-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 16px 0;
}

/* ── Seller section ─────────────────────────────────────── */
.mobile-seller-section {
  padding: 16px 16px 0;
}

.mobile-seller-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mobile-seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Countdown section ──────────────────────────────────── */
.mobile-countdown-section {
  padding: 20px 16px;
  margin: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.mobile-countdown-end-date {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
}

/* ── BID card ───────────────────────────────────────────── */
.mobile-bid-card {
  padding: 20px 16px;
  margin: 0 16px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* ── Seller info card ───────────────────────────────────── */
.mobile-seller-info-card {
  padding: 16px;
  margin: 0 16px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.mobile-seller-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-tan);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── Retail price row ───────────────────────────────────── */
.mobile-retail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 0 16px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* ── Bid form section (inline) ──────────────────────────── */
.mobile-bid-form-section {
  padding: 16px;
  margin: 0 16px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* ── Quick bid buttons ──────────────────────────────────── */
.mobile-quick-bids {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-quick-btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--deep-black);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.mobile-quick-btn:active {
  background: var(--warm-bg);
}

.mobile-quick-btn-active {
  border-color: var(--accent-tan);
  background: var(--accent-tan-light);
  font-weight: 600;
}

/* ── Shipping section ───────────────────────────────────── */
.mobile-shipping-section {
  padding: 16px;
  margin: 0 16px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* ── Payment section ────────────────────────────────────── */
.mobile-payment-section {
  padding: 0 16px 16px;
}

/* ── Bid history ────────────────────────────────────────── */
.mobile-bid-history {
  padding: 0 16px;
  margin-top: 16px;
}

/* ── Sticky countdown + bottom bid bar ─────────────────── */
.mobile-sticky-countdown {
  position: fixed;
  bottom: 68px; /* sits just above the bid bar */
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.mobile-sticky-bid-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-bid-wrapper .mobile-closes-bar {
  border-bottom: none;
  border-top: 1px solid var(--border-light);
}

.mobile-sticky-bid-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 3px solid var(--accent-tan);
}

/* ── Register side tab ──────────────────────────────────── */
.mobile-register-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 198;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--accent-tan);
  color: var(--white);
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

