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

:root {
  --primary: #D32F2F;
  --secondary: #FF5722;
  --accent: #FF9800;
  --accent-light: #FFC107;
  --accent-glow: rgba(212, 168, 83, 0.15);
  --success: #FFF8E1;
  --success-bg: #E8F5EC;
  --danger: #C0392B;
  --danger-bg: #FDE8E8;
  --urgent: #E74C3C;
  --bg: #F4F1EB;
  --bg-card: #FFFFFF;
  --bg-dark: #1B2A4A;
  --text: #1A1A2E;
  --text-secondary: #5A6478;
  --text-light: #8B95A5;
  --border: #E2DDD4;
  --border-light: #EDE9E2;
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 30px rgba(27, 42, 74, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
}

::selection {
  background: var(--accent);
  color: white;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* Header */
.app-header {
  padding: 32px 0 24px;
  text-align: center;
}

.app-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.app-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
  font-weight: 400;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  position: sticky;
  top: 8px;
  z-index: 100;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--bg);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.2);
}

/* Auction Grid */
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Item Card */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  animation: fadeInUp 0.5s ease both;
}

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

.item-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--border-light), var(--bg));
}

.item-image-wrap.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-image-placeholder {
  font-size: 3rem;
  opacity: 0.4;
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timer {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(27, 42, 74, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer.urgent {
  background: rgba(231, 76, 60, 0.9);
  animation: pulse 1s ease-in-out infinite;
}

.timer.expired {
  background: rgba(90, 100, 120, 0.85);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.timer-icon {
  font-size: 0.75rem;
}

.item-body {
  padding: 16px 18px 18px;
}

.item-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

.item-menu-wrap {
  position: relative;
}

.menu-dots {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.menu-dots:hover {
  background: var(--bg);
  color: var(--text);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 50;
  overflow: hidden;
}

.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text);
}

.dropdown-menu button:hover {
  background: var(--bg);
}

.dropdown-menu button.danger {
  color: var(--danger);
}

.dropdown-menu button.danger:hover {
  background: var(--danger-bg);
}

.item-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bid Stats */
.bid-stats {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 2px;
}

.stat-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.stat.highlight .stat-value {
  color: var(--accent);
  font-size: 1.05rem;
}

/* History Button */
.history-btn {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Bid Input Row */
.bid-input-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.bid-input-wrap {
  flex: 1;
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

.bid-input {
  width: 100%;
  padding: 10px 12px 10px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-card);
}

.bid-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.bid-input::placeholder {
  color: var(--text-light);
}

.bid-btn {
  padding: 10px 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bid-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.bid-btn:active {
  transform: translateY(0);
}

/* Auction Result */
.auction-result {
  margin-top: 14px;
  padding: 12px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.auction-result.no-bids {
  background: var(--bg);
  color: var(--text-light);
}

/* Bid Error/Success */
.bid-error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 500;
}

.bid-success {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
}

/* Skeleton Loading */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.skeleton-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 14px;
  margin: 12px 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.wide { width: 70%; }
.skeleton-line.medium { width: 50%; }
.skeleton-line.short { width: 35%; margin-bottom: 18px; }

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-state h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Add Item Form */
.add-item-container {
  max-width: 560px;
  margin: 0 auto;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.add-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.photo-section {
  margin-bottom: 20px;
}

.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-light);
  font-size: 0.9rem;
  gap: 8px;
}

.photo-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.upload-icon {
  font-size: 2rem;
}

.upload-spinner {
  color: var(--accent);
  font-weight: 500;
}

.photo-preview-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  resize: vertical;
  min-height: 80px;
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.duration-row {
  display: flex;
  gap: 12px;
}

.duration-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.duration-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cancel-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cancel-btn:hover {
  background: var(--bg);
  border-color: var(--text-light);
}

.submit-btn {
  flex: 2;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.2);
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  max-height: calc(80vh - 60px);
}

.no-bids-text {
  color: var(--text-light);
  text-align: center;
  padding: 24px 0;
}

/* Bid List */
.bid-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bid-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  transition: background 0.15s ease;
}

.bid-row.top-bid {
  background: var(--accent-glow);
  border: 1px solid var(--accent-light);
}

.bid-rank {
  font-size: 1rem;
  min-width: 32px;
  text-align: center;
  color: var(--text-light);
  font-weight: 600;
}

.bid-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bid-bidder {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.bid-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.bid-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.bid-row.top-bid .bid-amount {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 640px) {
  .app-title {
    font-size: 1.6rem;
  }

  .app-header {
    padding: 24px 0 16px;
  }

  .auction-grid {
    grid-template-columns: 1fr;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .bid-stats {
    flex-direction: column;
    gap: 8px;
  }

  .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .bid-input-row {
    flex-direction: column;
  }

  .bid-btn {
    width: 100%;
    text-align: center;
  }
}

/* Focus styles */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your Silent Auction app! This is where you'll manage auction items and track bids.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "The Auction tab shows all your listed items with live countdown timers and current high bids.", "view": "user", "highlight_selector": ".tab-btn.active", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Let's add your first auction item. Tap the '+ Add Item' tab.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Upload a photo, set the title, description, starting bid, minimum increment, and auction duration.", "view": "user", "highlight_selector": ".add-form", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Once created, your item appears with a live countdown timer. The timer shows how much time remains for bidding.", "view": "user", "highlight_selector": ".timer", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Enter a bid amount and click 'Place Bid'. The minimum bid is enforced — it must be at least the starting bid or the current high bid plus the minimum increment.", "view": "user", "highlight_selector": ".bid-input-row", "wait_for": "tap_to_continue"},
  {"step": 7, "narration": "Click 'View History' to see all bids ranked from highest to lowest, with timestamps.", "view": "user", "highlight_selector": ".history-btn", "wait_for": "tap_to_continue"},
  {"step": 8, "narration": "Use the ⋯ menu on any item to edit details, end the auction early, restart it, or delete the item.", "view": "user", "highlight_selector": ".menu-dots", "wait_for": "tap_to_continue"},
  {"step": 9, "narration": "When the timer expires, the item shows the winning bid amount. You're all set to run your silent auction!", "view": "user", "highlight_selector": ".auction-result", "wait_for": "tap_to_continue"}
]
-->

.active-bidders {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(232, 201, 122, 0.08), rgba(232, 201, 122, 0.03));
}

.active-bidders-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
}

.active-bidders-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-bidder-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.active-bidder-more {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.active-bidders-empty {
  color: var(--text-light);
  font-size: 0.85rem;
}

.recent-bidder {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg);
}

.recent-bidder-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
}

.recent-bidder-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.recent-bidder-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-bidder-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.recent-bidder-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
}

.auction-actions,
.auction-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.auction-share-btn {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auction-share-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.auction-feedback {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auction-feedback-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.auction-feedback-text.success {
  color: var(--success);
}

.auction-feedback-text.error {
  color: var(--danger);
}

.auction-result-wrap {
  margin-top: 14px;
}

.auction-result-title {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 4px;
}

.auction-result-price {
  font-size: 0.95rem;
  font-weight: 500;
}

.auction-result-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .auction-actions,
  .auction-result-actions {
    flex-direction: column;
  }

  .auction-share-btn {
    width: 100%;
  }
}

.presence-panel {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(232, 201, 122, 0.08), rgba(232, 201, 122, 0.03));
}

.presence-title {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 8px;
}

.presence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.presence-empty {
  color: var(--text-light);
  font-size: 0.85rem;
}

.share-export-panel {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg);
}

.share-export-title {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 10px;
}

.share-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-export-btn {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-export-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.share-export-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.share-export-btn.primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.share-export-status {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.auction-history-section {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-card);
}

.auction-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.auction-history-title {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.auction-history-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.auction-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auction-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
}

.auction-history-rank {
  min-width: 34px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}

.auction-history-avatar-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.auction-history-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auction-history-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.auction-history-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.auction-history-bidder {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auction-history-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

.auction-history-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.auction-history-empty {
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 0 2px;
}

@media (max-width: 640px) {
  .share-export-actions {
    flex-direction: column;
  }

  .share-export-btn {
    width: 100%;
  }

  .auction-history-row {
    align-items: flex-start;
  }

  .auction-history-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
