@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #0f141b;
  --muted: #8791a3;
  --glass: rgba(15, 20, 27, 0.7);
  --surface: rgba(255, 255, 255, 0.08);
  --accent: #f2b24c;
  --accent-2: #e36b4f;
  --bg: #0f1b2b;
  --bg-2: #12233a;
  --card: rgba(255, 255, 255, 0.06);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

html {
  font-size: 16px;
  min-height: 100%;
  height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: #f8f6f2;
  background: radial-gradient(circle at top left, #273a4f 0%, transparent 55%),
    radial-gradient(circle at 70% 10%, #1c2a44 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  margin: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

h1, h2, h3, h4, .brand-mark {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.4px;
}

.main-shell {
  padding-top: 2rem;
  padding-bottom: 4rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.glass-nav {
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .nav-link {
  color: #d6dde8;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #ffffff;
}

.brand-mark {
  font-size: 1.4rem;
  color: #ffffff;
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  color: #1f1b16;
  box-shadow: 0 10px 30px rgba(226, 111, 79, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f6f2;
  background: transparent;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8f6f2;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  margin-bottom: 1rem;
}

.lead {
  color: #cfd6e4;
  font-size: 1.1rem;
}

.artwork-description {
  white-space: pre-line;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.meta-value {
  font-weight: 600;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: floatIn 1.2s ease;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.badge {
  background: rgba(242, 178, 76, 0.2);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.hero-card-body h3 {
  margin-top: 1rem;
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature {
  background: var(--surface);
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-help {
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-preview {
  border-radius: 18px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.auction-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.auction-card {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.2rem;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.auction-card:hover {
  transform: translateY(-4px);
}

.auction-image {
  min-height: 140px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.04);
}

.auction-image.fallback {
  background: linear-gradient(135deg, rgba(242, 178, 76, 0.25), rgba(227, 107, 79, 0.25));
}

.auction-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 720px) {
  .auction-card {
    grid-template-columns: 1fr;
  }

  .auction-image {
    min-height: 180px;
  }
}

.muted {
  color: var(--muted);
}

.auction-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.auction-actions {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auction-status {
  background: rgba(242, 178, 76, 0.12);
  color: #ffe4b3;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  margin-left: auto;
  width: fit-content;
  max-width: 100%;
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.25;
}

.auction-status div + div {
  margin-top: 0.15rem;
}

.auction-status--plain {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.detail-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.detail-gallery {
  display: grid;
  gap: 1rem;
}

.detail-image {
  height: clamp(280px, 46vw, 520px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
}

.detail-image.placeholder {
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.bid-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1rem;
  background: var(--surface);
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.callout {
  background: rgba(242, 178, 76, 0.15);
  color: #ffe4b3;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.bid-success-toast {
  display: inline-block;
  background: rgba(72, 179, 131, 0.95);
  color: #f8f6f2;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  transition: opacity 0.25s ease;
}

.bid-success-toast.hide {
  opacity: 0;
  pointer-events: none;
}

.bid-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.recent-bids ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-bids li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-shell {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-span {
  grid-column: 1 / -1;
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f6f2;
}

.form-select option {
  background-color: #f8f6f2;
  color: #0f141b;
}

.form-control:disabled,
.form-control[disabled],
.form-select:disabled,
.form-select[disabled] {
  background: rgba(255, 255, 255, 0.12);
  color: #f8f6f2;
  opacity: 1;
}

input,
textarea,
select {
  color: #f8f6f2;
  background-color: rgba(255, 255, 255, 0.08);
}

input[type="datetime-local"],
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"] {
  color: #f8f6f2;
  background-color: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

.form-floating > label {
  color: #c0c9d6;
}

.category-detail-field > label {
  color: #ffe4b3;
}

.country-priority {
  border: 1px solid rgba(242, 178, 76, 0.55);
  border-radius: 12px;
  padding: 0.35rem;
  background: rgba(242, 178, 76, 0.08);
}

.country-priority .form-select {
  border-color: rgba(242, 178, 76, 0.65);
}

.country-priority-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #ffdba3;
}

.form-control::placeholder {
  color: transparent;
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 246, 242, 0.55);
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #f8f6f2;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(242, 178, 76, 0.25);
  border-color: rgba(242, 178, 76, 0.6);
}

.notification-list {
  display: grid;
  gap: 1rem;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-item.unread {
  border-color: rgba(242, 178, 76, 0.35);
}

.notification-actions {
  display: flex;
  gap: 0.6rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  padding: 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-shell {
  background: var(--card);
  border-radius: 16px;
  padding: 1rem;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.table-actions > * + * {
  margin-left: 0.5rem;
}

.table-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shipping-ranges-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-active-bg: transparent;
}

.shipping-ranges-table > :not(caption) > * > * {
  background-color: transparent;
}

.shipping-ranges-table tr[data-unsaved-range-row="true"] td,
.shipping-ranges-table tr[data-unsaved-range-row="true"] input,
.shipping-ranges-table tr[data-unsaved-range-row="true"] .btn {
  color: #ff8f8f;
}

.shipping-ranges-table tr[data-unsaved-range-row="true"] .form-control {
  border-color: rgba(255, 143, 143, 0.45);
}

.users-table {
  table-layout: fixed;
}

.users-table td {
  overflow: hidden;
}

.users-action-cell {
  text-align: right;
}

.users-action-cell form {
  margin: 0;
}

.approval-cell {
  text-align: center;
}

.approval-cell form {
  width: 100%;
}

.table-dark .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8f6f2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.section-block {
  margin-top: 2rem;
}

.section-block--seller-selection {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--card);
  background: color-mix(in srgb, var(--accent-2) 18%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.image-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-thumb {
  height: 160px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.04);
}

.image-meta {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.action-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.empty-state {
  background: var(--surface);
  padding: 2rem;
  border-radius: 16px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 0;
  color: var(--muted);
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.footer-links {
  display: grid;
  gap: 0.25rem;
}

.footer-copy {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

@keyframes floatIn {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .recent-bids li {
    grid-template-columns: 1fr;
  }

  .notification-item {
    flex-direction: column;
    align-items: flex-start;
  }
}