@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@100..900&display=swap");
:root {
  --midnight: #080D18;
  --prussian: #18233A;
  --indigo: #273753;
  --amber: #F5A623;
  --amber-dim: #E09518;
  --amber-light: #FEF3DC;
  --amber-border: #FAD98A;
  --steel: #9CA9BF;
  --slate: #C8D0E0;
  --alice: #E5E9F0;
  --offwhite: #FAFAFA;
  --white: #FFFFFF;
  --text-primary: #080D18;
  --text-secondary: #273753;
  --text-muted: #6B7899;
  --green: #15803d;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --red: #dc2626;
  --red-bg: #fff5f5;
  --red-border: #fecaca;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --shadow-sm: 0 1px 3px rgba(8, 13, 24, 0.06), 0 1px 2px rgba(8, 13, 24, 0.04);
  --shadow-md: 0 4px 14px rgba(8, 13, 24, 0.09), 0 2px 4px rgba(8, 13, 24, 0.04);
  --radius: 8px;
  --radius-sm: 5px;
}

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

body {
  background: #FAFAFA;
  color: #080D18;
  font-family: "Google Sans Flex", -apple-system, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 100vh;
  font-variation-settings: 'wght' 400;
}

.header {
  background: #080D18;
  border-bottom: 1px solid #18233A;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(8, 13, 24, 0.25);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.logo {
  font-size: 1.15rem;
  font-variation-settings: 'wght' 800, 'wdth' 110;
  color: #F5A623;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-email {
  font-size: 12.5px;
  color: #9CA9BF;
  font-variation-settings: 'wght' 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 12.5px;
  font-variation-settings: 'wght' 650;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #F5A623;
  color: #080D18;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: #E09518;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: #FAFAFA;
  border: 1px solid #C8D0E0;
  color: #080D18;
}
.btn-outline:hover {
  background: #FAFAFA;
  border-color: #b0b8cc;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background-color: #fff;
  background-image: none;
  border: 1px solid #747775;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  max-width: 400px;
  min-width: -moz-min-content;
  min-width: min-content;
  margin-top: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gsi-material-button .gsi-material-button-state {
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.gsi-material-button .gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}
.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}
.gsi-material-button .gsi-material-button-contents {
  flex-grow: 1;
  font-family: "Roboto", arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.gsi-material-button:disabled {
  cursor: default;
  background-color: rgba(255, 255, 255, 0.38);
  border-color: rgba(31, 31, 31, 0.12);
}
.gsi-material-button:disabled .gsi-material-button-contents,
.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 0.38;
}
.gsi-material-button:not(:disabled):active .gsi-material-button-state, .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 0.12;
}
.gsi-material-button:not(:disabled):hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 0.08;
}

.header .btn-outline {
  background: #18233A;
  border: 1px solid #273753;
  color: #FAFAFA;
}
.header .btn-outline:hover {
  background: #273753;
  border-color: #3a4f70;
}

#extension-download-btn {
  border-color: #F5A623;
  color: #F5A623;
}
#extension-download-btn:hover {
  border-color: #F5A623;
  color: #F5A623;
}

.start-bidding-dropdown {
  position: relative;
}

.start-bidding-dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #FAFAFA;
  border: 1px solid #C8D0E0;
  border-radius: 5px;
  z-index: 200;
}

.start-bidding-dropdown:hover ul {
  opacity: 1;
  pointer-events: auto;
}

.start-bidding-dropdown a {
  color: #080D18;
  text-decoration: none;
  padding: 8px 16px;
  display: block;
}
.start-bidding-dropdown a:hover {
  background: #FAFAFA;
  color: #080D18;
}

#edit-directions-link {
  background: #080D18;
  border-color: #18233A;
  color: #FAFAFA;
}
#edit-directions-link:hover {
  background: #18233A;
  border-color: #273753;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: #6B7899;
  padding: 5px 8px;
}
.btn-ghost:hover {
  background: #FAFAFA;
  color: #080D18;
}

.btn-small {
  padding: 4px 11px;
  font-size: 11.5px;
}

.btn-xs {
  padding: 2px 8px;
  font-size: 11px;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}

.banner {
  max-width: 1320px;
  margin: 16px auto 0;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-variation-settings: 'wght' 550;
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.banner-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.banner.hidden {
  display: none;
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: #FAFAFA;
  border: 1px solid #C8D0E0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(8, 13, 24, 0.06), 0 1px 2px rgba(8, 13, 24, 0.04);
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #18233A;
  background: #273753;
  border-radius: 8px 8px 0 0;
}
.card-header h2 {
  font-size: 11px;
  font-variation-settings: 'wght' 750;
  color: #FAFAFA;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-body {
  padding: 18px 20px;
}

#credits-card .card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.credits-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credits-stat-label {
  font-size: 10.5px;
  font-variation-settings: 'wght' 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.credits-stat-value {
  font-size: 22px;
  font-variation-settings: 'wght' 700;
  color: #080D18;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.credits-stat-sub {
  font-size: 11px;
  color: #6B7899;
}

.credits-divider {
  width: 1px;
  height: 40px;
  background: #C8D0E0;
  align-self: center;
}

.credits-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.credits-notice {
  width: 100%;
  padding: 9px 13px;
  border-radius: 5px;
  font-size: 12.5px;
  font-variation-settings: 'wght' 550;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.credits-notice.hidden {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-variation-settings: 'wght' 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-trial {
  background: #FAFAFA;
  color: #6B7899;
  border: 1px solid #C8D0E0;
}
.badge-basic {
  background: #FEF3DC;
  color: #7a4a00;
  border: 1px solid #FAD98A;
}
.badge-premium {
  background: #fef9ec;
  color: #7a4a00;
  border: 1px solid #FAD98A;
}
.badge-cancelling {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-variation-settings: 'wght' 620;
}
.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.status-saved {
  background: #FAFAFA;
  color: #6B7899;
}

.status-in-progress {
  background: #FAFAFA;
  color: #6B7899;
  border: 1px solid #C8D0E0;
}

.status-won {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-lost {
  background: #fff5f5;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.table-wrap {
  overflow-x: auto;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}

.listing-card {
  background: #FAFAFA;
  border: 1px solid #C8D0E0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(8, 13, 24, 0.06), 0 1px 2px rgba(8, 13, 24, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.listing-card:hover {
  box-shadow: 0 4px 14px rgba(8, 13, 24, 0.09), 0 2px 4px rgba(8, 13, 24, 0.04);
}

.listing-card-image {
  width: 100%;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  background: #FAFAFA;
  display: block;
}

.listing-card-image-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7899;
  font-size: 11px;
  font-variation-settings: 'wght' 500;
  letter-spacing: 0.04em;
}

.listing-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.listing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.listing-card-id {
  font-size: 12px;
  font-variation-settings: 'wght' 600;
  color: #E09518;
  text-decoration: none;
  font-family: "Google Sans Flex", -apple-system, sans-serif;
}
.listing-card-id:hover {
  text-decoration: underline;
}

.listing-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #273753;
}

.meta-row {
  display: flex;
  align-items: baseline;
}

.meta-label {
  color: #6B7899;
  font-variation-settings: 'wght' 650;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  min-width: 72px;
  flex-shrink: 0;
}

.listing-card-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  padding: 8px 10px;
  border-top: 1px solid #9CA9BF;
  background: #E5E9F0;
}

.listing-card-visit {
  font-size: 11.5px;
  font-variation-settings: 'wght' 600;
  color: #273753;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.listing-card-visit:hover {
  color: #080D18;
  text-decoration: underline;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #273753;
  margin-bottom: 8px;
  cursor: pointer;
}
.filter-checkbox-label input {
  accent-color: #F5A623;
  cursor: pointer;
}

.listings-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.listings-select {
  padding: 5px 28px 5px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-variation-settings: 'wght' 550;
  color: #273753;
  background: #FAFAFA;
  border: 1px solid #C8D0E0;
  border-radius: 5px;
  cursor: pointer;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  outline: none;
  transition: border-color 0.15s;
}
.listings-select:hover {
  border-color: #b0b8cc;
}
.listings-select:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

thead tr {
  background: #FAFAFA;
  border-bottom: 2px solid #C8D0E0;
}

th {
  padding: 9px 14px;
  text-align: left;
  font-size: 10.5px;
  font-variation-settings: 'wght' 720;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0;
  white-space: nowrap;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid #C8D0E0;
  color: #080D18;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: #F7F9FF;
}

.td-mono {
  font-family: "Google Sans Flex", -apple-system, sans-serif;
  font-size: 12px;
  font-variation-settings: 'wght' 450;
  color: #273753;
}

.td-link {
  color: #E09518;
  text-decoration: none;
  font-variation-settings: 'wght' 580;
}
.td-link:hover {
  text-decoration: underline;
  color: #F5A623;
}

.table-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #6B7899;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-icon:hover {
  background: #FAFAFA;
  color: #080D18;
}

.btn-trash:hover {
  background: #fff5f5;
  color: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 44px 24px;
  color: #6B7899;
  font-size: 13px;
  font-variation-settings: 'wght' 450;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 24px;
}

.modal {
  background: #FAFAFA;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(8, 13, 24, 0.2);
  border: 1px solid #C8D0E0;
  width: 100%;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #C8D0E0;
  background: #FAFAFA;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 13.5px;
  font-variation-settings: 'wght' 700;
  color: #080D18;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6B7899;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
  font-size: 17px;
  transition: all 0.15s;
}
.modal-close:hover {
  color: #080D18;
  background: #C8D0E0;
}

.modal-body {
  overflow: hidden;
  min-height: 0;
  padding: 14px 20px;
}
.modal-body .listing-display {
  flex: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
}

.modal-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
}

.modal-col-right {
  border-left: 1px solid #C8D0E0;
  background: #FAFAFA;
}

.modal-section-label {
  font-size: 10.5px;
  font-variation-settings: 'wght' 720;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7899;
  margin-bottom: 6px;
}

.modal-top-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.modal-top-section {
  padding: 0 20px 0 0;
  display: flex;
  flex-direction: column;
}

.modal-top-divider {
  width: 1px;
  height: 44px;
  background: #C8D0E0;
  align-self: center;
  margin-right: 20px;
  flex-shrink: 0;
}

#profit-loss-value {
  padding: 4px;
  border-radius: 5px;
  border: 1px solid #C8D0E0;
  background: #FAFAFA;
  min-width: 100px;
  font-size: 13px;
  font-variation-settings: 'wght' 600;
  color: #6B7899;
}

.analysis-output {
  background: #080D18;
  border-radius: 5px;
  padding: 14px 16px;
  font-family: "Google Sans Flex", -apple-system, sans-serif;
  font-size: 12px;
  font-variation-settings: 'wght' 400;
  line-height: 1.7;
  white-space: pre-wrap;
  flex: 1;
  overflow-y: auto;
  color: #9CA9BF;
  min-height: 300px;
}

label {
  display: block;
  font-size: 11.5px;
  font-variation-settings: 'wght' 620;
  color: #273753;
  margin-bottom: 5px;
}

.modal-input {
  width: 100%;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  font-variation-settings: 'wght' 400;
  border: 1px solid #C8D0E0;
  border-radius: 5px;
  background: #FAFAFA;
  color: #080D18;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-input:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.tag-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-variation-settings: 'wght' 600;
  border: 1px solid #C8D0E0;
  background: #FAFAFA;
  color: #273753;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.15s;
  font-family: inherit;
}
.tag-btn:hover {
  border-color: #b0b8cc;
  background: #FAFAFA;
}
.tag-btn.active-in-progress {
  background: #FAFAFA;
  border-color: #C8D0E0;
  color: #6B7899;
}
.tag-btn.active-won {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.tag-btn.active-lost {
  background: #fff5f5;
  border-color: #fecaca;
  color: #dc2626;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  table-layout: fixed;
}
.items-table col.col-item {
  width: auto;
}
.items-table col.col-sold {
  width: 110px;
}
.items-table col.col-delete {
  width: 32px;
}
.items-table th {
  text-align: left;
  padding: 6px 8px;
  color: #6B7899;
  font-size: 10.5px;
  font-variation-settings: 'wght' 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #C8D0E0;
  background: #FAFAFA;
  white-space: nowrap;
  overflow: hidden;
}
.items-table td {
  padding: 4px 8px;
  border-bottom: none;
  vertical-align: middle;
  overflow: hidden;
}
.items-table tbody tr:nth-child(odd) td {
  background: #FAFAFA;
}
.items-table tbody tr:nth-child(even) td {
  background: #F0F3FA;
}
.items-table .modal-input {
  font-size: 12.5px;
  padding: 4px 7px;
  background: #FAFAFA !important;
}
.items-table input.item-sold-for {
  width: 85px;
  max-width: 85px;
}

.happy-bidding-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: #C8D0E0;
  color: #273753;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.dashboard-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dashboard-row--wrap {
  flex-wrap: wrap;
}

.listings-sidebar-label {
  font-size: 11px;
  font-variation-settings: 'wght' 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.listings-sidebar-label-section {
  margin-top: 18px;
}

.flex-center-gap4 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-currency-prefix,
.item-currency-prefix {
  font-size: 13px;
  color: #273753;
  font-variation-settings: 'wght' 500;
}

.item-currency-prefix {
  font-size: 12px;
}

.modal-section-label-mb {
  margin-bottom: 8px;
}

.item-row-remove {
  background: none;
  border: none;
  color: #6B7899;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: all 0.15s;
}
.item-row-remove:hover {
  color: #dc2626;
  background: #fff5f5;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #C8D0E0;
  flex-shrink: 0;
  background: #FAFAFA;
  border-radius: 0 0 8px 8px;
}

.feedback-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-variation-settings: 'wght' 600;
  border-radius: 5px;
  background: #080D18;
  border: 1px solid #18233A;
  color: #9CA9BF;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(8, 13, 24, 0.09), 0 2px 4px rgba(8, 13, 24, 0.04);
  transition: all 0.15s;
}
.feedback-fab:hover {
  background: #18233A;
  color: #FAFAFA;
  box-shadow: 0 6px 20px rgba(8, 13, 24, 0.2);
}

.hidden {
  display: none !important;
}

.text-muted {
  color: #6B7899;
}

.text-mono {
  font-variation-settings: 'wght' 400;
}

.display-heading {
  font-variation-settings: 'wght' 800, 'wdth' 110;
}

.ui-label {
  font-variation-settings: 'wght' 500, 'ROND' 50;
}

.text-midnight {
  color: #080D18 !important;
  fill: #080D18 !important;
}

.bg-midnight {
  background-color: #080D18 !important;
}

.border-midnight {
  border-color: #080D18 !important;
}

.text-prussian {
  color: #18233A !important;
  fill: #18233A !important;
}

.bg-prussian {
  background-color: #18233A !important;
}

.border-prussian {
  border-color: #18233A !important;
}

.text-indigo {
  color: #273753 !important;
  fill: #273753 !important;
}

.bg-indigo {
  background-color: #273753 !important;
}

.border-indigo {
  border-color: #273753 !important;
}

.text-amber {
  color: #F5A623 !important;
  fill: #F5A623 !important;
}

.bg-amber {
  background-color: #F5A623 !important;
}

.border-amber {
  border-color: #F5A623 !important;
}

.text-steel {
  color: #9CA9BF !important;
  fill: #9CA9BF !important;
}

.bg-steel {
  background-color: #9CA9BF !important;
}

.border-steel {
  border-color: #9CA9BF !important;
}

.text-slate {
  color: #C8D0E0 !important;
  fill: #C8D0E0 !important;
}

.bg-slate {
  background-color: #C8D0E0 !important;
}

.border-slate {
  border-color: #C8D0E0 !important;
}

.text-alice {
  color: #E5E9F0 !important;
  fill: #E5E9F0 !important;
}

.bg-alice {
  background-color: #E5E9F0 !important;
}

.border-alice {
  border-color: #E5E9F0 !important;
}

.text-offwhite {
  color: #FAFAFA !important;
  fill: #FAFAFA !important;
}

.bg-offwhite {
  background-color: #FAFAFA !important;
}

.border-offwhite {
  border-color: #FAFAFA !important;
}

.text-white {
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
}

.bg-white {
  background-color: #FFFFFF !important;
}

.border-white {
  border-color: #FFFFFF !important;
}

@media (max-width: 900px) {
  .modal-body.listing-display {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .modal-col-right {
    border-left: none;
    border-top: 1px solid #C8D0E0;
  }
  .analysis-output {
    min-height: 200px;
    flex: none;
  }
}
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }
  main {
    padding: 16px 16px 80px;
  }
  .modal-overlay {
    padding: 0;
  }
  .modal {
    border-radius: 0;
    max-height: 100vh;
  }
  .table-wrap table {
    display: block;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tbody tr {
    display: block;
    padding: 12px 16px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px solid #C8D0E0;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(8, 13, 24, 0.06), 0 1px 2px rgba(8, 13, 24, 0.04);
  }
  .table-wrap td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border: none;
    font-size: 12.5px;
  }
  .table-wrap td::before {
    content: attr(data-label);
    font-size: 10.5px;
    font-variation-settings: 'wght' 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7899;
    margin-right: 8px;
    white-space: nowrap;
  }
  .table-actions {
    justify-content: flex-end;
  }
  .credits-actions {
    margin-left: 0;
  }
}
@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
    min-height: 54px;
    height: auto;
  }
  .header-right {
    flex-wrap: wrap;
    gap: 8px;
  }
  main > div:has(#credits-card) {
    flex-direction: column;
    align-items: stretch;
  }
  main > div:has(#credits-card) .card {
    min-width: 0;
  }
  main > div:has(#listings-sidebar) {
    flex-direction: column;
    align-items: stretch;
  }
  #listings-sidebar {
    min-width: 0;
    width: 100%;
  }
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    padding: 16px;
    gap: 12px;
  }
  .modal-body.listing-display {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .modal-col-right {
    border-left: none;
    border-top: 1px solid #C8D0E0;
  }
  .analysis-output {
    min-height: 200px;
    flex: none;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 12.5px;
  }
  main {
    padding: 12px 14px 80px;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
    gap: 10px;
    min-height: auto;
    height: auto;
  }
  .header-right {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .user-email {
    font-size: 11px;
  }
  .header .btn-outline,
  .header a.btn-outline {
    padding: 6px 12px;
    font-size: 11.5px;
  }
  main > div:has(#credits-card) {
    flex-direction: column;
    gap: 14px;
  }
  #credits-card .card-body {
    padding: 14px 16px;
    gap: 10px 20px;
  }
  .credits-stat-value {
    font-size: 18px;
  }
  .credits-actions {
    gap: 6px;
  }
  #happy-bidding-card .card-body {
    padding: 12px 14px;
    gap: 8px;
  }
  main > div:has(#listings-sidebar) {
    flex-direction: column;
    gap: 14px;
  }
  #listings-sidebar {
    min-width: 0;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
  }
  .filter-checkbox-label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .listings-grid {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }
  .listing-card-body {
    padding: 10px 12px;
  }
  .listing-card-meta {
    font-size: 11.5px;
  }
  .card-header {
    padding: 10px 16px;
  }
  .card-header h2 {
    font-size: 10.5px;
  }
  .listings-select {
    padding: 4px 24px 4px 8px;
    font-size: 11px;
  }
  .modal-overlay {
    padding: 0;
  }
  .modal {
    border-radius: 0;
    max-height: 100vh;
    max-width: 100%;
  }
  .modal-header {
    padding: 12px 16px;
  }
  .modal-header h3 {
    font-size: 12.5px;
  }
  .modal-body {
    padding: 12px 16px;
  }
  .modal-col {
    padding: 14px;
    gap: 14px;
  }
  .modal-section-label {
    font-size: 10px;
  }
  .modal-input {
    font-size: 12px;
    padding: 6px 10px;
  }
  .empty-state {
    padding: 32px 20px;
    font-size: 12px;
  }
  .banner {
    margin: 12px 14px 0;
    padding: 10px 14px;
    font-size: 12px;
  }
}