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

:root {
  --primary: #d92d3d;
  --primary-dark: #b91c29;
  --primary-glow: rgba(217,45,61,.18);
  --gold: #d97706;
  --gold-light: #b45309;
  --gold-glow: rgba(217,119,6,.15);
  --success: #059669;
  --bg: #f8f7f4;
  --bg2: #f3f1ec;
  --surface: #ffffff;
  --surface2: #f6f5f1;
  --surface3: #edebe4;
  --border: rgba(28,25,23,.09);
  --border-strong: rgba(28,25,23,.16);
  --text: #1c1917;
  --text-dim: #57534e;
  --text-muted: #79716b;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(28,25,23,.10);
  --shadow-sm: 0 2px 10px rgba(28,25,23,.07);
  --glow-red: 0 0 32px rgba(217,45,61,.12);
  --glow-gold: 0 0 32px rgba(217,119,6,.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

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

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(28,25,23,.03), 0 4px 20px rgba(28,25,23,.06);
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand span { color: var(--primary); }
.nav-brand:hover { text-decoration: none; color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .855rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--text); background: rgba(28,25,23,.05); text-decoration: none; }
.nav-links a.active { color: var(--text); font-weight: 600; background: rgba(28,25,23,.04); }

.nav-bid-balance {
  background: linear-gradient(135deg, rgba(217,119,6,.12), rgba(217,119,6,.05));
  border: 1px solid rgba(217,119,6,.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .02em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #d92d3d, #b91c29);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,45,61,.25);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(217,45,61,.35); }
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #422006;
  box-shadow: 0 4px 14px rgba(217,119,6,.25);
}
.btn-gold:hover { box-shadow: 0 6px 20px rgba(217,119,6,.35); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-secondary {
  background: var(--surface2);
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface3); color: var(--text); }
.btn-danger { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.25); }
.btn-danger:hover { background: rgba(220,38,38,.15); }
.btn-large { padding: 14px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-xl { padding: 18px 44px; font-size: 1.15rem; border-radius: var(--radius); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 24px 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% -10%, rgba(217,45,61,.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(217,119,6,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 110%, rgba(99,102,241,.04) 0%, transparent 60%),
    linear-gradient(180deg, #fdfcfa 0%, #f8f7f4 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(217,45,61,.07);
  border: 1px solid rgba(217,45,61,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulseDot 1.5s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: 1rem; color: var(--text-dim); margin-bottom: 32px; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.65; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 36px 24px; flex: 1; position: relative; z-index: 1; }

/* ===== AUCTION GRID ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--primary);
}
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.auction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.auction-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217,45,61,.35);
  box-shadow: 0 16px 40px rgba(28,25,23,.12), 0 0 0 1px rgba(217,45,61,.1);
  text-decoration: none;
}
.auction-card.urgent {
  border-color: rgba(217,45,61,.5);
  box-shadow: var(--glow-red), 0 0 0 1px rgba(217,45,61,.18);
}

.card-img-wrap { position: relative; width: 100%; height: 210px; background: var(--surface2); overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.auction-card:hover .card-img-wrap img { transform: scale(1.07); }
.no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(145deg, var(--surface2) 0%, var(--surface3) 100%);
}

.bonus-medal {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  font-weight: 800;
  font-size: .74rem;
  padding: 5px 11px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(180,83,9,.5);
  border: 2px solid #fff;
  white-space: nowrap;
}
.detail-image .bonus-medal { bottom: 14px; left: 14px; font-size: .85rem; padding: 7px 14px; }
.card-timer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  font-variant-numeric: tabular-nums;
}
.card-timer.urgent { background: var(--primary); border-color: rgba(255,255,255,.15); animation: pulseTimer 1s infinite; }
@keyframes pulseTimer { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(217,45,61,.5); } 50% { opacity: .9; box-shadow: 0 0 0 5px rgba(217,45,61,0); } }

.card-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}
.status-active { background: rgba(16,185,129,.88); color: #fff; }
.status-scheduled { background: rgba(99,102,241,.82); color: #fff; }
.status-ended { background: rgba(120,113,108,.88); color: #fff; border: 1px solid rgba(255,255,255,.15); }

.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.card-category { font-size: .67rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.card-title {
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  margin-bottom: 2px;
}
.card-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-top: 6px;
}
.card-bids { font-size: .73rem; color: var(--text-muted); }
.card-last-bidder { font-size: .77rem; color: var(--text-muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.card-last-bidder strong { color: var(--gold-light); }

/* ===== AUCTION DETAIL ===== */
.auction-detail-layout { display: grid; grid-template-columns: 1fr 420px; gap: 36px; align-items: start; }
.detail-left { display: flex; flex-direction: column; gap: 24px; }
.detail-right {}

.breadcrumb { margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); font-size: .85rem; text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface2);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  letter-spacing: .5px;
}
.detail-image-badge.status-active { background: rgba(16,185,129,.9); color: #fff; }
.detail-image-badge.status-scheduled { background: rgba(99,102,241,.85); color: #fff; }
.detail-image-badge.status-ended { background: rgba(120,113,108,.9); color: #fff; border: 1px solid rgba(255,255,255,.15); }

.detail-info { display: flex; flex-direction: column; gap: 12px; }
.detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-category { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.detail-shipping { font-size: .8rem; color: var(--text-muted); }
.detail-shipping.free { color: var(--success); }
.detail-title { font-size: 2rem; font-weight: 900; letter-spacing: -0.7px; line-height: 1.12; }
.detail-desc { color: var(--text-dim); line-height: 1.8; white-space: pre-wrap; font-size: .91rem; }

/* ===== BID BOX ===== */
.bid-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}
.bid-box-price-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.bid-count-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width: 64px;
}
.bid-count-badge span { font-size: 1.3rem; font-weight: 900; color: var(--text); line-height: 1; }
.bid-count-badge small { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.bid-increment-hint { font-size: .75rem; color: var(--text-muted); margin-top: 8px; }
.bid-btn-sub { font-size: .72rem; opacity: .7; font-weight: 500; display: block; }
.autobid-desc { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }

.countdown-display {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.countdown-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(217,45,61,.04), transparent);
  pointer-events: none;
}
.countdown-display.urgent {
  border-color: rgba(217,45,61,.4);
  box-shadow: 0 0 28px rgba(217,45,61,.12), inset 0 0 28px rgba(217,45,61,.04);
}
.countdown-display.ended { border-color: var(--border); }
.countdown-label { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 8px; }
.countdown-value {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color .2s;
  position: relative;
}
.countdown-display.urgent .countdown-value { color: var(--primary); text-shadow: 0 0 20px rgba(217,45,61,.3); }

.price-row { display: flex; align-items: baseline; gap: 10px; }
.current-price-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.current-price-value {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}
.bid-count-text { font-size: .82rem; color: var(--text-muted); }

.last-bidder-box {
  background: rgba(217,119,6,.06);
  border: 1px solid rgba(217,119,6,.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .83rem;
  color: var(--text-muted);
}
.last-bidder-box strong { color: var(--gold-light); }

.user-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  font-size: .83rem;
  border: 1px solid var(--border);
}
.user-balance-row .balance { font-weight: 800; color: var(--gold-light); font-size: .95rem; }

.bid-actions { display: flex; flex-direction: column; gap: 10px; }

/* Bid button pulse */
@keyframes bidGlow { 0%,100% { box-shadow: 0 4px 14px rgba(217,45,61,.25); } 50% { box-shadow: 0 4px 28px rgba(217,45,61,.45), 0 0 0 4px rgba(217,45,61,.08); } }
.btn-bid-active { animation: bidGlow 2s infinite; }

.autobid-section { border-top: 1px solid var(--border); padding-top: 16px; }
.autobid-section h4 {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.autobid-row { display: flex; gap: 8px; }
.autobid-row input {
  flex: 1;
  padding: 9px 14px;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s;
}
.autobid-row input:focus { border-color: rgba(217,119,6,.5); }
.autobid-status { font-size: .78rem; color: var(--gold-light); margin-top: 6px; }

.winner-box {
  background: linear-gradient(135deg, rgba(217,119,6,.1), rgba(217,119,6,.04));
  border: 1px solid rgba(217,119,6,.3);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: 0 0 32px rgba(217,119,6,.07);
}
.winner-box h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; color: var(--gold-light); }

/* ===== BID HISTORY ===== */
.bid-history {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bid-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
}
.bid-history h3 { font-size: .72rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.2px; margin: 0; }
.bid-history-count { font-size: .72rem; color: var(--text-muted); background: var(--surface3); padding: 3px 10px; border-radius: 20px; }
.bid-list { display: flex; flex-direction: column; max-height: 340px; overflow-y: auto; }
.bid-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: .85rem; }

.bid-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.bid-item:last-child { border-bottom: none; }
.bid-item:hover { background: rgba(28,25,23,.02); }
.bid-item-top {
  background: linear-gradient(90deg, rgba(217,119,6,.07) 0%, transparent 100%);
  border-left: 2px solid var(--gold);
}
.bid-item-top:hover { background: linear-gradient(90deg, rgba(217,119,6,.1) 0%, transparent 100%); }
.bid-item-new { animation: bidFlash .5s ease-out; }
@keyframes bidFlash { 0% { background: rgba(217,45,61,.12); } 100% { background: transparent; } }

.bid-item-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface3), var(--surface2));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-dim);
  flex-shrink: 0;
}
.bid-item-top .bid-item-avatar {
  background: linear-gradient(135deg, rgba(217,119,6,.18), rgba(217,119,6,.07));
  border-color: rgba(217,119,6,.3);
  color: var(--gold-light);
}
.bid-item-info { flex: 1; min-width: 0; }
.bid-item-user { font-size: .83rem; font-weight: 600; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bid-item-top .bid-item-user { color: var(--gold-light); }
.bid-item-time { font-size: .72rem; color: var(--text-muted); }
.bid-item-price { font-size: .9rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bid-item-top .bid-item-price { color: var(--gold-light); }
.b-auto { font-size: .65rem; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); padding: 1px 6px; border-radius: 8px; color: #4f46e5; margin-left: 4px; }

/* ===== PACKAGES ===== */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(217,119,6,.04) 100%);
  pointer-events: none;
}
.package-card:hover {
  border-color: rgba(217,119,6,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28,25,23,.1), var(--glow-gold);
}
.package-card.popular { border-color: rgba(217,45,61,.3); }
.package-card.popular::after {
  content: 'Beliebt';
  position: absolute;
  top: -1px;
  right: 16px;
  background: linear-gradient(135deg, #d92d3d, #b91c29);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 10px 4px;
  border-radius: 0 0 8px 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.package-card.popular:hover { border-color: rgba(217,45,61,.5); box-shadow: 0 12px 28px rgba(28,25,23,.1), var(--glow-red); }
.pkg-count { font-size: 2.8rem; font-weight: 900; color: var(--gold-light); letter-spacing: -1px; line-height: 1; }
.pkg-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.pkg-price { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-top: 4px; }
.pkg-per { font-size: .72rem; color: var(--text-muted); }

/* ===== FORMS ===== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-card h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.form-subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: .9rem; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 16px;
  background: var(--surface2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(217,45,61,.5);
  box-shadow: 0 0 0 3px rgba(217,45,61,.08);
}
.form-group select option { background: var(--surface2); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== AUTH ===== */
.auth-container { max-width: 420px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.auth-icon { font-size: 2.5rem; text-align: center; margin-bottom: 16px; }
.auth-card h1 { font-size: 1.55rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: .88rem; margin-bottom: 30px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: .85rem; color: var(--text-muted); }
.password-wrap { position: relative; display: flex; }
.password-wrap input { flex: 1; }
.toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: .88rem; color: var(--text-muted); padding: 4px; }

/* ===== PROFILE ===== */
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d92d3d, #9d1723);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(217,45,61,.25);
}
.profile-header h1 { font-size: 1.4rem; font-weight: 800; }
.profile-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,119,6,.07);
  border: 1px solid rgba(217,119,6,.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .88rem;
}
.profile-balance .bal { font-weight: 800; color: var(--gold-light); font-size: 1.05rem; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .15s;
}
.tab.active { color: var(--text); border-bottom-color: var(--primary); }
.tab:hover { color: var(--text-dim); }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 12px; }
.alert-error { background: rgba(217,45,61,.07); color: #b91c1c; border: 1px solid rgba(217,45,61,.25); }
.alert-success { background: rgba(16,185,129,.08); color: #047857; border: 1px solid rgba(16,185,129,.25); }
.alert-warning { background: rgba(217,119,6,.08); color: var(--gold-light); border: 1px solid rgba(217,119,6,.25); }
.alert-info { background: rgba(99,102,241,.08); color: #4338ca; border: 1px solid rgba(99,102,241,.2); }

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .875rem;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  max-width: 320px;
  backdrop-filter: blur(12px);
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { background: rgba(5,150,105,.95); color: #fff; border: 1px solid rgba(5,150,105,.3); }
#toast.error { background: rgba(217,45,61,.95); color: #fff; border: 1px solid rgba(217,45,61,.3); }
#toast.info { background: rgba(79,70,229,.92); color: #fff; border: 1px solid rgba(99,102,241,.3); }
#toast.warning { background: rgba(245,158,11,.95); color: #422006; border: 1px solid rgba(217,119,6,.3); font-weight: 800; }

/* ===== MISC ===== */
.loading { text-align: center; padding: 60px; color: var(--text-muted); }
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: .5; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 8px; }
.text-muted { color: var(--text-muted); font-size: .85rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 22px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* ===== IMAGE UPLOAD ===== */
.image-upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-upload-area:hover { border-color: rgba(217,45,61,.4); background: rgba(217,45,61,.03); }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--text-muted); }
.image-preview { max-width: 100%; max-height: 200px; border-radius: var(--radius-sm); }

/* ===== ADMIN STYLES ===== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: all .15s;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.admin-nav a:hover { color: var(--text); background: rgba(28,25,23,.04); text-decoration: none; }
.admin-nav a.active {
  color: var(--text);
  background: rgba(217,45,61,.07);
  border-left-color: var(--primary);
  font-weight: 600;
}
.admin-main { flex: 1; padding: 36px 32px; overflow-x: hidden; }
.admin-main h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 28px; letter-spacing: -.3px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s;
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.stat-value { font-size: 1.9rem; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.stat-value.gold { color: var(--gold-light); }
.stat-value.red { color: var(--primary); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: .875rem; vertical-align: middle; }
.data-table tr:hover td { background: rgba(28,25,23,.02); }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .3px; }
.badge-pending { background: rgba(217,119,6,.1); color: var(--gold-light); border: 1px solid rgba(217,119,6,.25); }
.badge-confirmed { background: rgba(16,185,129,.08); color: #047857; border: 1px solid rgba(16,185,129,.25); }
.badge-cancelled { background: rgba(120,113,108,.12); color: var(--text-muted); }
.badge-active { background: rgba(16,185,129,.08); color: #047857; border: 1px solid rgba(16,185,129,.25); }
.badge-scheduled { background: rgba(99,102,241,.08); color: #4338ca; border: 1px solid rgba(99,102,241,.2); }
.badge-ended { background: rgba(120,113,108,.12); color: var(--text-muted); }

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-dim);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== ADMIN MOBILE TOGGLE ===== */
.admin-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d92d3d, #b91c29);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(217,45,61,.35);
  align-items: center;
  justify-content: center;
}
.admin-backdrop { display: none; position: fixed; inset: 0; background: rgba(28,25,23,.35); z-index: 240; backdrop-filter: blur(4px); }
.admin-backdrop.open { display: block; }

/* ===== TOP BIDDER CARD ===== */
.top-bidder-card {
  background: linear-gradient(135deg, rgba(217,119,6,.07) 0%, rgba(217,119,6,.02) 100%);
  border: 1px solid rgba(217,119,6,.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.top-bidder-crown {
  background: rgba(217,119,6,.07);
  border-bottom: 1px solid rgba(217,119,6,.18);
  padding: 9px 18px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.top-bidder-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.bidder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217,119,6,.25), rgba(217,119,6,.1));
  border: 1.5px solid rgba(217,119,6,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-light);
  flex-shrink: 0;
}
.bidder-info { flex: 1; min-width: 0; }
.bidder-name { font-size: 1rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bidder-sub { font-size: .73rem; color: var(--text-muted); margin-top: 2px; }
.top-bid-price { font-size: 1.3rem; font-weight: 900; color: var(--gold-light); letter-spacing: -.5px; white-space: nowrap; }
.top-bidder-flash { animation: topBidFlash .6s ease-out; }
@keyframes topBidFlash { 0% { box-shadow: 0 0 0 3px rgba(217,119,6,.4); } 100% { box-shadow: none; } }
.top-bidder-winner .top-bidder-crown { background: rgba(217,119,6,.12); }
.top-bidder-winner { border-color: rgba(217,119,6,.4); box-shadow: 0 0 28px rgba(217,119,6,.08); }

/* ===== WINNER / ENDED BOX ===== */
.winner-box {
  background: linear-gradient(135deg, rgba(217,119,6,.1), rgba(217,119,6,.04));
  border: 1px solid rgba(217,119,6,.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 32px rgba(217,119,6,.06);
}
.winner-box h3 { font-size: 1.25rem; font-weight: 900; color: var(--gold-light); margin-bottom: 16px; }
.winner-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.winner-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--text-dim); }
.winner-row strong { color: var(--text); }
.winner-total { border-top: 1px solid rgba(28,25,23,.1); padding-top: 8px; margin-top: 4px; font-size: 1rem; font-weight: 700; }
.winner-total strong { color: var(--gold-light); font-size: 1.1rem; }
.winner-note { font-size: .8rem; color: var(--text-muted); }
.ended-box {
  background: rgba(28,25,23,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: .9rem;
}

/* ===== PRICE FLASH ANIMATION ===== */
@keyframes priceFlash { 0% { color: var(--gold-light); transform: scale(1.04); } 100% { color: var(--primary); transform: scale(1); } }
.price-flash { animation: priceFlash .4s ease-out; }

/* ===== CARD (generic card used on legal pages etc.) ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ===== RESPONSIVE ===== */
@media(max-width:1000px) {
  .auction-detail-layout { grid-template-columns: 1fr; }
}
@media(max-width:900px) {
  .packages-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media(max-width:640px) {
  .navbar { padding: 0 16px; height: 56px; }
  .nav-brand { font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    margin-left: 0;
    z-index: 99;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; font-size: .95rem; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text-dim); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-bid-balance { padding: 12px 20px; border-radius: 0; border: none; border-bottom: 1px solid var(--border); background: none; justify-content: flex-start; font-size: .9rem; }

  .container { padding: 16px 14px; }
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 1.9rem; letter-spacing: -.5px; }
  .hero p { font-size: .9rem; margin-bottom: 24px; }

  .auction-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-img-wrap { height: 130px; }
  .card-body { padding: 10px; gap: 3px; }
  .card-price { font-size: 1.2rem; }
  .card-title { font-size: .82rem; }
  .card-bids { font-size: .7rem; }

  .bid-box { position: static; padding: 18px; border-radius: var(--radius); }
  .countdown-value { font-size: 3.2rem; }
  .current-price-value { font-size: 2.1rem; }
  .btn-xl { padding: 14px 24px; font-size: 1rem; }
  .detail-title { font-size: 1.4rem; }

  .packages-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .package-card { padding: 18px 12px; }
  .pkg-count { font-size: 2.2rem; }
  .pkg-price { font-size: 1.15rem; }

  .auth-card { padding: 30px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }

  .admin-sidebar {
    position: fixed;
    top: 0; left: -260px;
    height: 100%;
    width: 240px;
    z-index: 250;
    transition: left .25s cubic-bezier(.4,0,.2,1);
  }
  .admin-sidebar.open { left: 0; box-shadow: 8px 0 32px rgba(28,25,23,.2); }
  .admin-main { padding: 20px 14px; }
  .admin-main h1 { font-size: 1.25rem; margin-bottom: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  .stat-value { font-size: 1.5rem; }
  .admin-toggle { display: flex; }
  .data-table { font-size: .78rem; }
  .data-table th, .data-table td { padding: 9px 10px; }

  #toast { bottom: 16px; right: 12px; left: 12px; max-width: none; }
  .bid-list { max-height: 200px; }
  .tabs { overflow-x: auto; }
  .tab { padding: 10px 14px; font-size: .8rem; white-space: nowrap; }
}

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

/* =============================================
   SEARCH + FILTER BAR
   ============================================= */
.search-filter-bar {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px 12px 42px;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,45,61,.1);
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 380px;
  background: var(--surface3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  box-shadow: 0 8px 28px rgba(28,25,23,.14);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-warning { border-color: rgba(217,119,6,.4); background: rgba(255,251,235,.98); }
.toast-success { border-color: rgba(34,197,94,.4); background: rgba(240,253,244,.98); }
.toast a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.toast a:hover { text-decoration: underline; }
@media(max-width:640px) {
  .toast { left: 12px; right: 12px; max-width: none; bottom: 16px; }
}

/* =============================================
   LEGAL PAGES (Impressum / AGB)
   ============================================= */
.legal-section {
  margin-bottom: 32px;
}
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-section p {
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0 0 12px;
  font-size: .9rem;
}
.legal-section p:last-child { margin: 0; }
.legal-section a { color: var(--primary); }
.legal-section strong { color: var(--text); }

/* =============================================
   FORM INPUT (Basis für neue Seiten)
   ============================================= */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.form-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,45,61,.1);
}
.error-msg {
  background: rgba(217,45,61,.07);
  border: 1px solid rgba(217,45,61,.2);
  border-radius: var(--radius-sm);
  color: #b91c1c;
  padding: 10px 14px;
  font-size: .87rem;
  margin-bottom: 12px;
}

/* =============================================
   HEART / WATCHLIST BUTTON
   ============================================= */
.heart-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background .15s, transform .15s, color .15s;
  padding: 0;
  color: var(--text-dim);
}
.heart-btn svg { width: 16px; height: 16px; transition: fill .15s; }
.heart-btn:hover { background: rgba(217,45,61,.12); color: var(--primary); transform: scale(1.1); }
.heart-btn.active { color: var(--primary); background: rgba(217,45,61,.12); border-color: rgba(217,45,61,.3); }
.heart-btn.active svg { fill: currentColor; }
.heart-btn.detail-heart {
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
}
.heart-btn.detail-heart svg { width: 18px; height: 18px; }

/* =============================================
   IMAGE GALLERY THUMBNAILS
   ============================================= */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  opacity: .65;
}
.gallery-thumb:hover { opacity: 1; transform: scale(1.04); }
.gallery-thumb.active { border-color: var(--primary); opacity: 1; }
img.clickable { cursor: zoom-in; }

/* =============================================
   GALLERY MODAL (lightbox)
   ============================================= */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.gallery-modal-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.gallery-modal-inner > img {
  max-width: 80vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.gallery-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.gallery-nav:hover { background: rgba(255,255,255,.15); }
.gallery-prev { left: -56px; }
.gallery-next { right: -56px; }
.gallery-counter {
  font-size: .8rem;
  color: #d6d3d1;
  background: rgba(0,0,0,.5);
  padding: 4px 12px;
  border-radius: 100px;
}
.gallery-modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-modal-thumbs .gallery-thumb { width: 52px; height: 52px; }

/* =============================================
   AUTO-BID TABS
   ============================================= */
.autobid-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.autobid-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.autobid-tab:first-child { border-right: 1px solid var(--border); }
.autobid-tab.active { background: var(--surface3); color: var(--text); font-weight: 600; }
.autobid-tab-content { margin-bottom: 8px; }
.autobid-hint {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}
