:root {
  color-scheme: light;
  --primary: #ff6f0f;
  --primary-hover: #e85f04;
  --primary-soft: #fff2e8;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #212529;
  --text-muted: #6c757d;
  --border: #e9ecef;
  --success: #198754;
  --success-soft: #e8f5ee;
  --danger: #dc3545;
  --warning-soft: #fff8e1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #ff8a3d;
  --primary-hover: #ffa15e;
  --primary-soft: #3a2a20;
  --bg: #171a1e;
  --surface: #22262b;
  --text: #f1f3f5;
  --text-muted: #adb5bd;
  --border: #3b4148;
  --success: #40c57a;
  --success-soft: #1d3328;
  --warning-soft: #3b3320;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.48);
}

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

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

input,
select,
textarea {
  color: var(--text);
}

html[data-theme="dark"] .navbar {
  background: rgba(34, 38, 43, 0.94);
}

html[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #2d241e 0%, var(--surface) 100%);
}

html[data-theme="dark"] .clear-search,
html[data-theme="dark"] .temp-bar {
  background: #495057;
}

html[data-theme="dark"] .card-media,
html[data-theme="dark"] .detail-media {
  background: linear-gradient(145deg, #2b3036, #332820);
}

html[data-theme="dark"] .upload-box {
  border-color: var(--border);
}

html[data-theme="dark"] .tag-value {
  background: #29364d;
  color: #a9c5ff;
}

html[data-theme="dark"] .detail-desc,
html[data-theme="dark"] .bid-msg {
  color: var(--text-muted);
}

html[data-theme="dark"] .desired-box {
  border-color: #67562e;
}

html[data-theme="dark"] .desired-chip {
  background: #2b3036;
  border-color: #67562e;
}

html[data-theme="dark"] .info-banner {
  border-color: #70452d;
  color: #ffd1b3;
}

html[data-theme="dark"] .completed-banner {
  border-color: #315f43;
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.location-select-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.station-picker-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 6px 13px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.station-picker-btn .caret {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Station Picker Modal */
.station-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.station-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.station-search-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
}

.station-search-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.station-line-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.line-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.line-pill.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.station-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
}

.station-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}

.station-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.station-chip.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.station-chip-line {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
}

.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14);
}

.station-error-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 53, 69, 0.35);
  background: rgba(220, 53, 69, 0.08);
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-search {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search .search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  opacity: 0.6;
}

.nav-search input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}

.nav-search input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
}

.clear-search {
  position: absolute;
  right: 10px;
  background: #dee2e6;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
}

.user-switcher select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.theme-toggle {
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

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

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  filter: brightness(0.92);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(0.92);
}

.owner-notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}

.badge-count {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff6ef 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 640px;
}

.hero-pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.hero-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.step-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
}

.step-arrow {
  color: var(--text-muted);
  font-weight: 700;
}

.hero-stats {
  display: flex;
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 115px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Main Toolbar & Grid */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toggle-only-open {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.toggle-only-open input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.sort-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

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

.auction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.auction-card.new-auction-highlight {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-md);
  animation: newCardPop 0.45s ease-out;
}

@keyframes newCardPop {
  0% { transform: scale(0.95); opacity: 0.6; }
  60% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.card-media {
  position: relative;
  height: 185px;
  background: linear-gradient(145deg, #f3f4f6, #fff4ec);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-emoji {
  font-size: 4.2rem;
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-station-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #212529;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.active-station-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.active-station-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
}

.active-station-count {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.auction-cancel-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 37, 41, 0.78);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.auction-cancel-btn:hover {
  background: var(--danger);
  transform: scale(1.08);
}

.status-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-open {
  background: var(--primary);
  color: #fff;
}

.status-done {
  background: var(--success);
  color: #fff;
}

.status-expired {
  background: #6c757d;
  color: #fff;
}

.timer-badge {
  background: rgba(33, 37, 41, 0.78);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desired {
  font-size: 0.83rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desired strong {
  color: var(--primary);
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.bid-pill {
  font-weight: 700;
  color: var(--primary);
}

.value-hint {
  color: var(--text-muted);
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-muted);
  margin: 6px 0 18px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop 0.18s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-sm { max-width: 460px; }
.modal-md { max-width: 640px; }
.modal-lg { max-width: 980px; }

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

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close {
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-stack-sm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.flex-1 {
  flex: 1;
  min-width: 180px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
}

.req { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.image-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-box {
  border: 1px dashed #ced4da;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
}

.upload-box:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.emoji-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.emoji-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.2rem;
  cursor: pointer;
}

.emoji-btn.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* Detail Modal */
.detail-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-timer {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

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

.detail-media {
  height: 250px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #f3f4f6, #fff4ec);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media .card-emoji {
  font-size: 5.5rem;
}

.seller-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.seller-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-avatar {
  font-size: 1.6rem;
}

.seller-info strong {
  display: block;
  font-size: 0.95rem;
}

.seller-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.manner-temp {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.temp-bar {
  width: 70px;
  height: 6px;
  background: #dee2e6;
  border-radius: 999px;
  margin-top: 4px;
  overflow: hidden;
}

.temp-fill {
  height: 100%;
  background: var(--primary);
}

.detail-category-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
}

.tag-outline {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.tag-value {
  background: #edf2ff;
  color: #364fc7;
}

.detail-text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.detail-desc {
  font-size: 0.92rem;
  color: #495057;
  white-space: pre-line;
  margin-bottom: 14px;
}

.desired-box {
  background: var(--warning-soft);
  border: 1px solid #ffe8a1;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.desired-box h4 {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.desired-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.desired-chip {
  background: #fff;
  border: 1px solid #ffd97d;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Bids Column */
.detail-bids-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bids-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bid-count-pill {
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.bids-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bids-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.bid-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bid-card.winner {
  border: 2px solid var(--success);
  background: var(--success-soft);
}

.bid-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bid-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.bid-emoji {
  font-size: 1.35rem;
}

.bid-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.bid-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bid-preview-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.bid-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bid-msg {
  font-size: 0.86rem;
  color: #343a40;
  background: var(--bg);
  padding: 7px 10px;
  border-radius: 6px;
}

.bid-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.like-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.like-btn.liked {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.bid-form-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.bid-form-box h4 {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.info-banner {
  background: var(--primary-soft);
  border: 1px solid #ffd8bd;
  color: #8c3800;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

.completed-banner {
  background: var(--success-soft);
  border: 1px solid #b7e4c7;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.completed-title {
  font-weight: 800;
  color: var(--success);
}

/* Activity Modal */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.activity-item:hover {
  border-color: var(--primary);
}

/* Chat Modal */
.chat-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 380px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-bubble.me {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.other {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-sender {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-bottom: 2px;
  display: block;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #212529;
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

@media (max-width: 820px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .hero-stats {
    width: 100%;
    justify-content: space-between;
  }
  .stat-card {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
  }
}
