/* ============================================================
   style.css — Global & Shared Styles
   WhoDASH / Belmont Labs — BL-002
   ============================================================
   Contents of this file:
     - CSS reset / box-sizing
     - Body, .container, layout shell
     - Tab fade transitions
     - Top bar / search bar / dropdown
     - Character selector widget
     - Navigation & routing utilities (.hidden, .fade-*)
     - Global element defaults (button, input, h1-h3, a, label)
     - Shared utility classes (.muted, .coin-*, .pill, .chip-*)
     - Shared widget shells (dashboard rows, hero stats,
       highlights, heatmap, sparkline, activity feed,
       reputation list, top-loot, tips card)
     - Shared character profile card (.char-profile-card)
     - Shared analytics/auction layout (currencies shared)
     - Shared table utilities (.table, .bars, .bar-row etc.)
     - Global contrast/accessibility overrides
     - Loading states, error/empty states
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&display=swap');
/* === GLOBAL STYLES === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #3a8dde 0%, #1e3c72 100%);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 48px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.12);
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.tab-content {
  display: block;
  padding: 2px 12px;
  background: transparent;
  border-radius: 0 0 8px 8px;
  min-height: 24px;
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.04);
  margin-bottom: 1px;
  margin-top: 0;
  opacity: 1;
  transition: opacity 0.3s;
}

.tab-content.fade-out {
  opacity: 0;
  transition: opacity 0.2s;
}

.tab-content.fade-in {
  opacity: 1;
  transition: opacity 0.3s;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2456a5;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #bcd0ee;
  border-radius: 8px;
  font-size: 1.05rem;
  background: #f7fafc;
}

button,
.btn {
  background: linear-gradient(90deg, #3182ce 0%, #2456a5 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(49, 130, 206, 0.08);
  margin-right: 8px;
  margin-bottom: 8px;
}

button:hover,
.btn:hover {
  background: linear-gradient(90deg, #2456a5 0%, #3182ce 100%);
  box-shadow: 0 4px 16px rgba(49, 130, 206, 0.16);
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 32px;
  font-weight: 700;
  color: #2456a5;
}

h2,
h3 {
  color: #2456a5;
}

.muted {
  color: #6e7f9b;
  margin: 8px 0 0 0;
  font-size: 0.95em;
}

a {
  color: #2456a5;
  text-decoration: underline;
  cursor: pointer;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .container {
    width: 98vw;
    padding: 16px 4vw;
  }

  h1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 14px 6px;
  }

  .tab {
    font-size: 0.95rem;
  }
}

/* --- NAV SECTION START --- */
.topbar {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.08);
  padding: 4px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 10;
  min-height: 38px;
}

.searchbar-wrapper {
  position: relative;
  width: 75%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#sectionSearch {
  width: 100%;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #bcd0ee;
  font-size: 1rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  outline: none;
  background: #f7fafc;
  box-shadow: 0 1px 4px rgba(30, 60, 114, 0.06);
  margin: 0;
  transition: box-shadow 0.2s, border-color 0.2s;
}

#sectionSearch:focus {
  box-shadow: 0 3px 12px rgba(49, 130, 206, 0.15);
  border-color: #3182ce;
}

#sectionSearch::placeholder {
  color: #9ca3af;
}

.dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(30, 60, 114, 0.18);
  border: 1px solid #e2e8f0;
  padding: 8px;
  max-height: 520px;
  overflow-y: auto;
  font-family: 'Segoe UI', Arial, sans-serif;
  z-index: 1000;
}

.dropdown .search-category {
  padding: 8px 12px 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6e7f9b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.dropdown .search-category:first-child {
  margin-top: 0;
}

.dropdown .section-item {
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  color: #2456a5;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
}

.dropdown .section-item .item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
}

.dropdown .section-item .item-content {
  flex: 1;
  min-width: 0;
}

.dropdown .section-item .item-title {
  font-weight: 600;
  color: #2456a5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown .section-item .item-description {
  font-size: 0.85rem;
  color: #6e7f9b;
  font-weight: 400;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown .section-item:hover,
.dropdown .section-item.active {
  background: linear-gradient(90deg, #3182ce 0%, #2456a5 100%);
  color: #fff;
}

.dropdown .section-item:hover .item-title,
.dropdown .section-item.active .item-title {
  color: #fff;
}

.dropdown .section-item:hover .item-description,
.dropdown .section-item.active .item-description {
  color: rgba(255, 255, 255, 0.85);
}

.dropdown .no-results {
  padding: 24px;
  text-align: center;
  color: #6e7f9b;
  font-size: 0.95rem;
}

.dropdown .search-loading {
  padding: 16px;
  text-align: center;
  color: #6e7f9b;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .searchbar-wrapper {
    width: 70%;
  }
}

@media (max-width: 900px) {
  .searchbar-wrapper {
    width: 65%;
  }
}

@media (max-width: 600px) {
  .searchbar-wrapper {
    width: 90%;
  }

  .dropdown .section-item {
    padding: 10px 12px;
  }

  .dropdown .section-item .item-icon {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
  }
}

.hidden {
  display: none;
}

/* --- NAV SECTION END --- */

/* --- FADE TRANSITIONS --- */
.fade-out {
  opacity: 0 !important;
  transition: opacity 0.3s;
}

.fade-in {
  opacity: 1 !important;
  transition: opacity 0.3s;
}

/* === Character Select (top-left in topbar) === */
.charselect-wrapper {
  position: absolute;
  left: 12px;
  top: 6px;
  display: inline-block;
  z-index: 11;
  /* above topbar content */
}

.charselect-trigger {
  /* Text-only button (no visible box) */
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: #2456a5;
  /* deep blue from your theme */
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
}

.charselect-trigger:focus-visible {
  outline: 2px solid #3182ce;
  border-radius: 6px;
}

.charselect-trigger:hover .charselect-label,
.charselect-trigger:hover .charselect-icon {
  text-decoration: underline;
}

.charselect-icon {
  font-size: 1.05rem;
  /* emoji size */
}

.charselect-caret {
  font-size: 0.9rem;
  color: #6e7f9b;
}

/* Dropdown (white card look, like your .dropdown) */
.charselect-menu {
  position: absolute;
  top: 28px;
  left: 0;
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.12);
  border: 1px solid #bcd0ee;
  /* soft blue border to match cards */
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 6px;
  z-index: 100;
}

.charselect-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: #2456a5;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  user-select: none;
}

.charselect-item:hover,
.charselect-item.active {
  background: linear-gradient(90deg, #2efff5 0%, #fff 100%);
  color: #fff;
}

.charselect-item .char-emoji {
  font-size: 1.1rem;
}

.charselect-item .char-name {
  font-size: 1.02rem;
  font-weight: 600;
}

.charselect-item .char-meta {
  font-size: 0.85rem;
  color: #6e7f9b;
  font-weight: 400;
}

.hidden {
  display: none !important;
}

/* Responsive: keep menu usable on mobile */
@media (max-width: 600px) {
  .charselect-menu {
    min-width: 90vw;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
}

/* === WhoDASH dashboard components === */
.dash-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #bcd0ee;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  margin: 14px 0;
}

.dash-portrait {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e7eef8, #c8d9f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2456a5;
  font-weight: 700;
}

.dash-main {
  display: flex;
  flex-direction: column;
}

.dash-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2456a5;
}

.dash-meta {
  margin-top: 4px;
  color: #6e7f9b;
  font-size: 0.95rem;
}

.dash-gold {
  margin-top: 6px;
  font-weight: 600;
  color: #2456a5;
}

.dash-actions {
  text-align: right;
}

.dash-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2456a5;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .dash-card {
    grid-template-columns: 100%;
  }

  .dash-actions {
    justify-self: end;
  }

  .dash-portrait {
    width: 100%;
    height: 160px;
  }
}

/* Coin badges */
.coin {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-right: 6px;
}

.coin-gold {
  color: #9c6b00;
  background: #fff7e0;
  border: 1px solid #f1d38a;
}

.coin-silver {
  color: #5b6a7a;
  background: #eef2f7;
  border: 1px solid #cfd8e3;
}

.coin-copper {
  color: #7a3b1a;
  background: #f5e9e4;
  border: 1px solid #ddb7a4;
}

/* Tooltip for charts */
.whodat-tip {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.25;
  transform: translate(-50%, -120%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .08s ease;
}

/* === Travel Log (fragment) === */
.segmented {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: #eef4ff;
  border-radius: 10px;
  border: 1px solid #d7e3fb;
}

.segmented-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: #f7fafc;
  color: #2456a5;
  border: 1px solid #cfe0fb;
  cursor: pointer;
}

.segmented-btn.is-active {
  background: #2456a5;
  color: #fff;
  border-color: #2456a5;
}

.panel.hidden {
  display: none;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #e6eefb;
  border-radius: 12px;
  padding: 12px;
}

.card-title {
  margin: 0 0 8px 0;
  color: #2456a5;
  font-weight: 600;
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead th {
  text-align: left;
  background: #f0f5ff;
  color: #2456a5;
  font-weight: 600;
  padding: 8px;
  border-bottom: 1px solid #d7e3fb;
  cursor: pointer;
}

.table tbody td {
  padding: 8px;
  border-bottom: 1px solid #eef2f9;
}

.table.compact tbody td,
.table.compact thead th {
  padding: 6px;
}

.table.sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table thead th.sort-asc::after {
  content: " â–²";
  /* or "\25B2" */
}

.table thead th.sort-desc::after {
  content: " â–¼";
  /* or "\25BC" */
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 8px;
}

.bar-label {
  color: #334e88;
}

.bar {
  --w: 0%;
  position: relative;
  height: 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #cfe0fb var(--w), #eef4ff var(--w));
  border: 1px solid #d7e3fb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  color: #2456a5;
  font-weight: 600;
}

/* Travel Log date range layout (optional) */
.date-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.date-range input[type="datetime-local"] {
  padding: 6px 10px;
  border: 1px solid #bcd0ee;
  border-radius: 8px;
  background: #f7fafc;
  color: #2456a5;
}

/* Icon placeholder cell */
.cell-icon {
  width: 28px;
}

.icon-placeholder {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #eef4ff;
  border: 1px solid #d7e3fb;
}

/* Quality badge pills (Q0ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œQ5 typical) */
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.pill.q-0 {
  color: #666;
  background: #f2f2f2;
  border-color: #ddd;
}

/* Poor */
.pill.q-1 {
  color: #2456a5;
  background: #eef4ff;
  border-color: #cfe0fb;
}

/* Common */
.pill.q-2 {
  color: #0a7a34;
  background: #e6f6ea;
  border-color: #bfe8ca;
}

/* Uncommon (green) */
.pill.q-3 {
  color: #3a2b96;
  background: #eceaff;
  border-color: #cfc9ff;
}

/* Rare (blue/purple mix) */
.pill.q-4 {
  color: #9c6b00;
  background: #fff7e0;
  border-color: #f1d38a;
}

/* Epic-ish */
.pill.q-5 {
  color: #7a3b1a;
  background: #f5e9e4;
  border-color: #ddb7a4;
}

.q-badge {
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  display: inline-block;
}

.q-poor {
  background: #6b6b6b;
  color: #fff;
}

.q-common {
  background: #dfe7df;
  color: #2e5b2e;
}

.q-uncommon {
  background: #1eff00;
  color: #033600;
}

.q-rare {
  background: #0070dd;
  color: #fff;
}

.q-epic {
  background: #a335ee;
  color: #fff;
}

.q-legendary {
  background: #ff8000;
  color: #231300;
}

.vault-bars-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.vault-bar-block {
  flex: 1 1 0;
  min-width: 220px;
}

.vault-bar-block h4 {
  margin-top: 250;
  margin-bottom: 8px;
}

/* === Achievements (minimal additions) === */

/* Canvas container */
.chart-canvas {
  width: 100%;
  /* height is set via the canvas attribute and scaled by JS DPR */
  display: block;
  border: 1px solid #e6eefb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(30, 60, 114, 0.06);
  margin-bottom: 8px;
}

/* KPI chips (color tokens consistent with theme) */
.chip {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.chip-blue {
  background: #2456a5;
}

.chip-gray {
  background: #6e7f9b;
}

.chip-gold {
  background: #f1d38a;
}

.mini-kpi {
  color: #2456a5;
  font-weight: 600;
  margin: 4px 0;
}

/* Latest 5 list */
.ach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ach-item {
  border: 1px solid #e6eefb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
}

.ach-item .ach-name {
  font-weight: 700;
  color: #2456a5;
}

.ach-item .ach-meta {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ach-item .ach-desc {
  margin-top: 6px;
  color: #334e88;
}

/* Reputation vertical column */
.rep-vbar {
  width: 100%;
  height: 0%;
  border-radius: 6px;
  transition: height 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rainbow-ready reputation styling */
.rep-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.rep-name {
  flex: 0 0 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #222;
}

.rep-value {
  flex: 0 0 auto;
  min-width: 64px;
  text-align: right;
  color: #7a7a7a;
  font-variant-numeric: tabular-nums;
}

.rep-bar {
  flex: 1 1 auto;
  height: 16px;
  background: #101314;
  border-radius: 999px;
  overflow: hidden;
}

.rep-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
}

/* container only */
.rep-fill-inner {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  will-change: width;
}

/* ============================================================================
   DASHBOARD SUMMARY STYLES
   ============================================================================ */

/* Dashboard Sections */
.dashboard-section {
  margin-bottom: 24px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-row-three {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 1200px) {
  .dashboard-row-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   TIPS CARD
   ============================================================================ */
.tips-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.tips-card h3 {
  margin: 0 0 12px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.tips-subtitle {
  color: #6e7f9b;
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6eefb;
}

.tips-section-title {
  margin: 16px 0 10px 0;
  color: #2456a5;
  font-size: 0.95rem;
  font-weight: 600;
}

.tips-zones-list,
.tips-notes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.tips-zones-list li {
  padding: 6px 12px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #eef4ff 0%, #f7fafc 100%);
  border-left: 3px solid #3182ce;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #2c5282;
}

.tips-notes-list li {
  padding: 8px 0 8px 20px;
  margin-bottom: 8px;
  position: relative;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4a5568;
}

.tips-notes-list li:before {
  content: "✱";
  /* or "\2022" for Unicode escape */
  position: absolute;
  left: 6px;
  color: #3182ce;
  font-weight: bold;
}

.tips-card .muted {
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 20px;
}


/* ============================================================================
   HERO STATS GRID
   ============================================================================ */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.hero-stat {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 60, 114, 0.12);
}

.hero-stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2456a5;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 0.95rem;
  color: #6e7f9b;
  font-weight: 500;
  margin-bottom: 4px;
}

.hero-stat-tier {
  font-size: 0.85rem;
  color: #3182ce;
  font-weight: 600;
  margin-top: 6px;
}

.hero-stat-subtitle {
  font-size: 0.85rem;
  color: #6e7f9b;
  margin-top: 4px;
}

/* ============================================================================
   HIGHLIGHTS CARD
   ============================================================================ */
.highlights-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.highlights-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-list li {
  padding: 14px 0;
  /* Changed from 10px to 14px */
  border-bottom: 1px solid #eef4ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Extended highlights list with more spacing */
.highlights-list-extended li {
  padding: 16px 0;
}

.highlights-list li:last-child {
  border-bottom: none;
}

.hl-icon {
  font-size: 1.1rem;
  margin-right: 8px;
  display: inline-block;
  min-width: 24px;
}

.hl-label {
  color: #6e7f9b;
  font-weight: 500;
}

.highlights-list strong {
  color: #2456a5;
  font-weight: 700;
}

/* ============================================================================
   ACTIVITY HEATMAP
   ============================================================================ */
.activity-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.activity-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.activity-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16px, 1fr));
  /* Changed from 12px */
  gap: 5px;
  /* Changed from 3px */
  max-width: 100%;
}

.heatmap-cell {
  width: 16px;
  /* Changed from 12px */
  height: 16px;
  /* Changed from 12px */
  border-radius: 3px;
  /* Changed from 2px */
  background: #eef4ff;
  border: 1px solid #d7e3fb;
  transition: all 0.2s;
}

.heatmap-cell[data-intensity="0"] {
  background: #eef4ff;
  border-color: #d7e3fb;
}

.heatmap-cell[data-intensity="1"] {
  background: #c8d9f1;
  border-color: #b8c9e1;
}

.heatmap-cell[data-intensity="2"] {
  background: #9ab8e5;
  border-color: #8aa8d5;
}

.heatmap-cell[data-intensity="3"] {
  background: #5a92d6;
  border-color: #4a82c6;
}

.heatmap-cell[data-intensity="4"] {
  background: #3182ce;
  border-color: #2456a5;
}

.heatmap-cell:hover {
  transform: scale(1.4);
  /* Changed from 1.3 */
  z-index: 10;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  /* Enhanced shadow */
}

/* ============================================================================
   TOP LOOT WIDGET
   ============================================================================ */
.top-loot-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.top-loot-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.top-loot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-loot-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px solid #e6eefb;
  transition: all 0.2s;
}

.top-loot-item:hover {
  background: #eef4ff;
  border-color: #d7e3fb;
  transform: translateX(4px);
}

.loot-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3182ce 0%, #2456a5 100%);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.loot-name {
  color: #334e88;
  font-weight: 600;
  font-size: 0.95rem;
}

.loot-count {
  color: #2456a5;
  font-weight: 700;
  font-size: 1rem;
  background: #eef4ff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #d7e3fb;
}

/* ============================================================================
   SPARKLINE CHART
   ============================================================================ */
.sparkline-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.sparkline-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.sparkline-canvas {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: #f7fafc;
}

.sparkline-info {
  margin-top: 12px;
  padding: 12px;
  background: #eef4ff;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #334e88;
  font-weight: 500;
  text-align: center;
}

.sparkline-tooltip {
  position: absolute;
  display: none;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   ACTIVITY FEED
   ============================================================================ */
.activity-feed-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  max-height: 600px;
  overflow-y: auto;
}

.activity-feed-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 1;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e6eefb;
  transition: all 0.2s;
}

.activity-item:hover {
  background: #eef4ff;
  border-color: #d7e3fb;
  transform: translateX(4px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d7e3fb;
}

.activity-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #d7e3fb;
  display: block;
  background: #fff;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-desc {
  color: #334e88;
  font-size: 0.95rem;
  line-height: 1.4;
}

.activity-desc strong {
  color: #2456a5;
  font-weight: 600;
}

.activity-time {
  color: #6e7f9b;
  font-size: 0.85rem;
}

/* ============================================================================
   REPUTATION LIST (Animated)
   ============================================================================ */
.reputation-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  max-height: 600px;
  overflow-y: auto;
}

.reputation-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 1;
}

.rep-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #334e88;
}

.rep-legend .chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.rep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rep-row {
  display: grid;
  grid-template-columns: 150px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.rep-name {
  color: #2456a5;
  font-weight: 600;
  font-size: 0.95rem;
}

.rep-bar {
  position: relative;
  height: 22px;
  background: #eef4ff;
  border-radius: 11px;
  border: 1px solid #d7e3fb;
  overflow: hidden;
}

.rep-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 11px;
  transition: width 0.5s ease-out;
}

.rep-value {
  text-align: right;
  color: #334e88;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .rep-row {
    grid-template-columns: 100%;
    gap: 6px;
  }

  .rep-value {
    text-align: left;
    font-size: 0.85rem;
  }
}

/* ============================================================================
   COIN DISPLAY (from original)
   ============================================================================ */
.coin {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-right: 4px;
  font-size: 0.9rem;
}

.coin-gold {
  color: #9c6b00;
  background: #fff7e0;
  border: 1px solid #f1d38a;
}

.coin-silver {
  color: #5b6a7a;
  background: #eef2f7;
  border: 1px solid #cfd8e3;
}

.coin-copper {
  color: #7a3b1a;
  background: #f5e9e4;
  border: 1px solid #ddb7a4;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.muted {
  color: #6e7f9b;
  font-size: 0.95rem;
  font-style: italic;
}

/* ============================================================================
   CHARACTER DASHBOARD STYLES
   ============================================================================ */

/* Character Profile Card */
.char-profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.08);
}

.char-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e6eefb;
}

.char-avatar {
  flex-shrink: 0;
}

.char-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3182ce 0%, #2456a5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.char-info {
  flex: 1;
}

.char-name {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
  color: #2456a5;
}

.char-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.char-identity {
  font-size: 1rem;
  color: #334e88;
  font-weight: 500;
  line-height: 1.5;
}

.char-level,
.char-class,
.char-race {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.char-level {
  background: #eef4ff;
  color: #2456a5;
  border: 1px solid #d7e3fb;
}

.char-class {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.char-race {
  background: #f5f3ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.char-guild {
  color: #6e7f9b;
  font-size: 0.95rem;
  font-weight: 500;
}

.char-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.char-stat-item {
  text-align: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e6eefb;
}

.stat-label {
  font-size: 0.85rem;
  color: #6e7f9b;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2456a5;
}

/* Stats Dashboard */
.stats-dashboard-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.stats-dashboard-card h3 {
  margin: 0 0 20px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-bar-item {
  padding: 12px;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px solid #e6eefb;
}

.stat-bar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-name {
  flex: 1;
  font-weight: 600;
  color: #334e88;
  font-size: 0.95rem;
}

.stat-value {
  font-weight: 700;
  color: #2456a5;
  font-size: 1.1rem;
}

.stat-bar {
  height: 8px;
  background: #e6eefb;
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #3182ce 0%, #2456a5 100%);
  transition: width 0.5s ease-out;
  border-radius: 4px;
}

/* Progression Card */
.progression-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.progression-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.progression-canvas {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: #f7fafc;
}

.progression-info {
  margin-top: 12px;
  padding: 12px;
  background: #eef4ff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #334e88;
  text-align: center;
}

/* Leveling Speed Card */
.speed-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  max-height: 500px;
  overflow-y: auto;
}

.speed-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 1;
}

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

.speed-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px solid #e6eefb;
  transition: all 0.2s;
}

.speed-item:hover {
  background: #eef4ff;
  border-color: #d7e3fb;
  transform: translateX(4px);
}

.speed-level {
  font-weight: 700;
  color: #2456a5;
  font-size: 0.95rem;
}

.speed-time {
  color: #334e88;
  font-weight: 500;
  font-size: 0.9rem;
}

.speed-rate {
  background: #eef4ff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  color: #2456a5;
  font-size: 0.85rem;
  border: 1px solid #d7e3fb;
}

.speed-average {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #eef4ff 0%, #d7e3fb 100%);
  border-radius: 10px;
  text-align: center;
  color: #334e88;
  font-size: 1rem;
  border: 1px solid #d7e3fb;
}

.speed-average strong {
  color: #2456a5;
  font-size: 1.1rem;
}

/* Milestones Card */
.milestones-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  max-height: 500px;
  overflow-y: auto;
}

.milestones-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 1;
}

.milestone-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milestone-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 14px;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e6eefb;
  transition: all 0.2s;
}

.milestone-item:hover {
  background: #eef4ff;
  border-color: #d7e3fb;
  transform: translateX(4px);
}

.milestone-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #3182ce 0%, #2456a5 100%);
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(49, 130, 206, 0.2);
}

.milestone-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.milestone-title {
  font-weight: 700;
  color: #2456a5;
  font-size: 1rem;
}

.milestone-desc {
  color: #6e7f9b;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .char-header {
    flex-direction: column;
    text-align: center;
  }

  .char-meta {
    justify-content: center;
  }

  .char-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   CURRENCIES / ECONOMY STYLES
   ============================================================================ */
/* Enhanced Auction Analytics Styles */

/* Analytics Grid Layout */
.analytics-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.analytics-row.full-width {
  grid-template-columns: 1fr;
}

.auction-analytics-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auction-analytics-card h3 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auction-analytics-card h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
}

/* Sell-Through by Duration */
.sell-through-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.duration-bar-item {
  display: grid;
  grid-template-columns: 60px 1fr 140px;
  gap: 12px;
  align-items: center;
}

.duration-label {
  font-weight: 600;
  color: #334155;
  text-align: right;
}

.duration-bar-bg {
  height: 32px;
  background: #f1f5f9;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.duration-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  transition: width 0.3s ease;
  border-radius: 6px;
}

.duration-bar-text {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.duration-stats {
  font-size: 0.85rem;
  color: #64748b;
  text-align: right;
}

/* Market Seasonality Heatmaps */
.seasonality-container {
  display: flex;
  gap: 32px;
}

.seasonality-section {
  flex: 1;
}

.day-heatmap,
.hour-heatmap {
  display: grid;
  gap: 8px;
}

.day-heatmap {
  grid-template-columns: repeat(7, 1fr);
}

.hour-heatmap {
  grid-template-columns: repeat(3, 1fr);
}

.heat-cell {
  padding: 16px 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s;
}

.heat-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.heat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

/* Scatter Plot */
.scatter-plot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scatter-canvas {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.scatter-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
}

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

/* Price History Charts */
.price-history-charts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.price-history-item {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.price-history-item h4 {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
}

.price-history-item canvas {
  margin-top: 12px;
  display: block;
}

/* Undercut Ladder */
.undercut-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.undercut-item {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

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

.undercut-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.position-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.position-badge.competitive {
  background: #dcfce7;
  color: #166534;
}

.position-badge.overpriced {
  background: #fef3c7;
  color: #92400e;
}

.undercut-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 0.85rem;
  color: #64748b;
}

.price-value {
  font-weight: 600;
  color: #1e293b;
}

.undercut-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.undercut-option {
  background: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.undercut-option span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}

.undercut-option strong {
  display: block;
  color: #1e293b;
  font-size: 0.9rem;
}

/* Profit Calculator */
.profit-calculator .calculator-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-input-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
}

.calc-input-group label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}

.calc-input-group input,
.calc-input-group select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calc-results {
  margin-top: 8px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.calc-result-row:not(:last-child) {
  border-bottom: 1px solid #e2e8f0;
}

.calc-result-row span {
  font-size: 0.9rem;
  color: #64748b;
}

.calc-result-row strong {
  font-size: 1rem;
  font-weight: 600;
}

.calc-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid #cbd5e1 !important;
}

.calc-total span {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.calc-total strong {
  font-size: 1.25rem;
}

.profit-value.positive {
  color: #16a34a;
}

.profit-value.negative {
  color: #dc2626;
}

/* Performance Table */
.performance-table-container {
  overflow-x: auto;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.performance-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.performance-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.performance-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.performance-table tbody tr:hover {
  background: #f8fafc;
}

.performance-table .item-name {
  font-weight: 600;
  color: #1e293b;
}

.performance-table .success-rate {
  font-weight: 600;
}

.performance-table .success-rate.excellent {
  color: #16a34a;
}

.performance-table .success-rate.good {
  color: #f59e0b;
}

.performance-table .success-rate.poor {
  color: #dc2626;
}

/* Competitor Analysis */
.competitor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.competitor-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.competitor-rank {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-weight: 700;
  border-radius: 8px;
  font-size: 1rem;
}

.competitor-info {
  flex: 1;
}

.competitor-name {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.competitor-stats {
  font-size: 0.85rem;
  color: #64748b;
}

/* Repost Tracker */
.repost-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repost-item {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.repost-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.repost-name {
  font-weight: 600;
  color: #1e293b;
}

.repost-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.repost-badge.sold {
  background: #dcfce7;
  color: #166534;
}

.repost-badge.expired {
  background: #fee2e2;
  color: #991b1b;
}

.repost-stats {
  font-size: 0.85rem;
  color: #64748b;
}

/* Utility Classes */
.positive {
  color: #16a34a;
}

.negative {
  color: #dc2626;
}

.muted {
  color: #94a3b8;
  font-style: italic;
}

/* Existing styles compatibility */
.coin {
  font-weight: 600;
  white-space: nowrap;
}

.coin-gold {
  color: #f59e0b;
}

.coin-silver {
  color: #94a3b8;
}

.coin-copper {
  color: #a16207;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .analytics-row {
    grid-template-columns: 1fr;
  }

  .seasonality-container {
    flex-direction: column;
  }

  .undercut-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .auction-analytics-card {
    padding: 16px;
  }

  .duration-bar-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .duration-label {
    text-align: left;
  }

  .duration-stats {
    text-align: left;
  }

  .calc-input-group {
    grid-template-columns: 1fr;
  }

  .undercut-pricing {
    grid-template-columns: 1fr;
  }

  .performance-table {
    font-size: 0.8rem;
  }

  .performance-table th,
  .performance-table td {
    padding: 8px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auction-analytics-card {
  animation: fadeIn 0.3s ease-out;
}

.analytics-row:nth-child(1) .auction-analytics-card {
  animation-delay: 0.05s;
}

.analytics-row:nth-child(2) .auction-analytics-card {
  animation-delay: 0.1s;
}

.analytics-row:nth-child(3) .auction-analytics-card {
  animation-delay: 0.15s;
}

.analytics-row:nth-child(4) .auction-analytics-card {
  animation-delay: 0.2s;
}

.analytics-row:nth-child(5) .auction-analytics-card {
  animation-delay: 0.25s;
}

/* Loading state */
.auction-analytics-card.loading {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

/* Empty state */
.auction-analytics-card .muted {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

/* ===== G/S/C Input Styles ===== */
.gsc-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gsc-input input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.95rem;
}

.gsc-input .coin-label {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 15px;
}

.coin-label.coin-gold {
  color: #f59e0b;
}

.coin-label.coin-silver {
  color: #9ca3af;
}

.coin-label.coin-copper {
  color: #b45309;
}

/* ===== Price History Legend ===== */
.price-legend {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  padding: 8px;
  background: #f9fafb;
  border-radius: 4px;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* ===== Enhanced Competitor Analysis ===== */
.competitor-analysis-card .competitor-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fafafa;
}

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.competitor-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.competitor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.competitor-rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.competitor-name-lg {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  padding-right: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.competitor-stat {
  text-align: center;
}

.competitor-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 2px;
}

.competitor-stat .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.competitor-items-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.competitor-item-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: white;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid #f3f4f6;
}

.item-name-mini {
  color: #374151;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 8px;
}

.item-price-mini {
  color: #059669;
  font-weight: 600;
  white-space: nowrap;
}

.competitor-more-mini {
  color: #6b7280;
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 4px 8px;
}

.competitor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.competitor-summary {
  color: #6b7280;
  font-size: 0.85rem;
  margin-left: auto;
}

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

.competitor-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: white;
  border-radius: 4px;
  font-size: 0.9rem;
}

.competitor-item-row .item-name {
  color: #374151;
  font-weight: 500;
}

.competitor-item-row .item-price {
  color: #059669;
  font-weight: 600;
}

.competitor-more {
  color: #6b7280;
  font-size: 0.85rem;
  font-style: italic;
  padding: 4px 8px;
  text-align: center;
}

/* ===== Responsive Updates ===== */
@media (max-width: 640px) {
  .gsc-input {
    flex-direction: column;
    align-items: stretch;
  }

  .gsc-input input[type="number"] {
    width: 100%;
  }

  .price-legend {
    flex-direction: column;
    gap: 8px;
  }

  .competitor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .competitor-summary {
    margin-left: 0;
  }

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

/* ===== Auction History Table ===== */
.auction-history-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auction-history-card h2 {
  margin: 0 0 20px 0;
  color: #1e3a8a;
  font-size: 1.5rem;
}

.history-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.history-search {
  flex: 1;
  min-width: 250px;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.history-search:focus {
  outline: none;
  border-color: #3b82f6;
}

.history-stats {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.history-stats span {
  color: #6b7280;
}

.history-stats strong {
  color: #111827;
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 20px;
}

.auction-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.auction-history-table thead {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
}

.auction-history-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
  white-space: nowrap;
}

.auction-history-table th:hover {
  background: rgba(255, 255, 255, 0.1);
}

.auction-history-table th.sorted {
  background: rgba(255, 255, 255, 0.15);
}

.sort-arrow {
  margin-left: 4px;
  font-size: 0.8em;
  opacity: 0.7;
}

.auction-history-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s;
}

.auction-history-table tbody tr:hover {
  background-color: #f9fafb;
}

.auction-history-table tbody tr:last-child {
  border-bottom: none;
}

.auction-history-table td {
  padding: 12px 16px;
  color: #374151;
}

.item-name-cell {
  font-weight: 500;
  color: #1e3a8a;
}

.auction-history-table td.center {
  text-align: center;
}

.history-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.page-btn {
  padding: 8px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: #2563eb;
}

.page-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

#pageInfo {
  color: #6b7280;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .history-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .history-search {
    min-width: 100%;
  }

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

  .auction-history-table {
    font-size: 0.8rem;
  }

  .auction-history-table th,
  .auction-history-table td {
    padding: 8px 12px;
  }
}

/* ===== Profit/Loss Display with Arrows ===== */
.profit-gain {
  color: #059669;
  font-weight: 600;
}

.profit-loss {
  color: #dc2626;
  font-weight: 600;
}

.profit-gain::before,
.profit-loss::before {
  font-weight: 700;
  margin-right: 2px;
}

/* Tab Navigation */
.currency-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e6eefb;
  padding-bottom: 0;
}

.currency-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6e7f9b;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.currency-tab:hover {
  color: #2456a5;
  background: #f7fafc;
}

.currency-tab.active {
  color: #2456a5;
  border-bottom-color: #3182ce;
  background: #eef4ff;
}

.currency-tab-content {
  display: none;
}

.currency-tab-content.active {
  display: block;
}

/* Financial Health Card */
.finance-health-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.08);
}

.finance-title {
  margin: 0 0 24px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2456a5;
}

.finance-stats-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 20px;
}

.finance-stat-main {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.finance-stat-main .stat-label {
  font-size: 1.3rem;
  color: #fff !important;
  opacity: 0.95;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value-huge {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff !important;
}

/* Make coins more readable on green background */
.stat-value-huge .coin-gold {
  color: #fef3c7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-value-huge .coin-silver {
  color: #f3f4f6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-value-huge .coin-copper {
  color: #fed7aa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.finance-stat {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e6eefb;
  text-align: center;
}

.finance-stat .stat-label {
  font-size: 0.85rem;
  color: #6e7f9b;
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.finance-stat .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-value.positive {
  color: #10b981;
}

.stat-value.negative {
  color: #ef4444;
}

/* Coin Styles */
.coin {
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
  margin: 0 2px;
}

.coin-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.coin-silver {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #9ca3af;
}

.coin-copper {
  background: #fed7aa;
  color: #7c2d12;
  border: 1px solid #f97316;
}

/* Prevent coin wrapping in stat displays */
.stat-value-huge,
.stat-value,
.gph-value,
.calc-text {
  white-space: nowrap;
}

/* Override for green background - white coins with subtle backgrounds */
.stat-value-huge .coin-gold {
  background: rgba(254, 243, 199, 0.25);
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-value-huge .coin-silver {
  background: rgba(243, 244, 246, 0.25);
  color: #f3f4f6;
  border: 1px solid rgba(156, 163, 175, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-value-huge .coin-copper {
  background: rgba(254, 215, 170, 0.25);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Net Worth Chart */
.networth-chart-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
}

.networth-chart-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
}

.networth-canvas {
  width: 100%;
  height: 300px;
  /* Increased from 200px for full-width display */
  border-radius: 8px;
  background: #f7fafc;
}

/* Gold Per Hour Table */
.gph-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  max-height: 800px;
  /* Increased from 500px for full-width display with 20 rows */
  overflow-y: auto;
}

.gph-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 1;
}

.gph-table {
  width: 100%;
  border-collapse: collapse;
}

.gph-table thead {
  background: #f7fafc;
  position: sticky;
  top: 50px;
  z-index: 1;
}

.gph-table th {
  text-align: left;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6e7f9b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e6eefb;
}

.gph-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f4f8;
  color: #334e88;
  font-size: 0.95rem;
}

.gph-table tbody tr:hover {
  background: #f7fafc;
}

.gph-value {
  font-weight: 700;
  color: #10b981;
}

.gph-average {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #eef4ff 0%, #d7e3fb 100%);
  border-radius: 10px;
  text-align: center;
  color: #334e88;
  font-size: 1rem;
  border: 1px solid #d7e3fb;
}

.gph-average strong {
  color: #10b981;
  font-size: 1.1rem;
}

/* Milestones */
.milestones-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  max-height: 500px;
  overflow-y: auto;
}

.milestones-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 1;
}

.milestone-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milestone-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 14px;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e6eefb;
  transition: all 0.2s;
}

.milestone-item:hover {
  background: #eef4ff;
  border-color: #d7e3fb;
  transform: translateX(4px);
}

.milestone-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(251, 191, 36, 0.3);
}

.milestone-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.milestone-title {
  font-weight: 700;
  color: #2456a5;
  font-size: 1rem;
}

.milestone-desc {
  color: #6e7f9b;
  font-size: 0.85rem;
}

/* Epic Flying Calculator */
.epic-flying-calc {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  border-radius: 12px;
  border: 2px solid #fb923c;
}

.calc-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #c2410c;
  margin-bottom: 12px;
  text-align: center;
}

.calc-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-bar {
  height: 24px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #fb923c;
}

.calc-fill {
  height: 100%;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  transition: width 0.5s ease-out;
}

.calc-text {
  text-align: center;
  font-weight: 600;
  color: #c2410c;
  font-size: 0.95rem;
}

/* Recent Loot */
.recent-loot-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.06);
  max-height: 500px;
  overflow-y: auto;
}

.recent-loot-card h3 {
  margin: 0 0 16px 0;
  color: #2456a5;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 8px;
  z-index: 1;
}

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

.loot-item {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 10px;
  border: 1px solid #e6eefb;
  transition: all 0.2s;
}

.loot-item:hover {
  background: #eef4ff;
  border-color: #d7e3fb;
  transform: translateX(4px);
}

.loot-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* WoW Item Quality Colors */
.quality-poor {
  color: #9d9d9d;
}

.quality-common {
  color: #334e88;
}

.quality-uncommon {
  color: #1eff00;
  font-weight: 700;
}

.quality-rare {
  color: #0070dd;
  font-weight: 700;
}

.quality-epic {
  color: #a335ee;
  font-weight: 700;
}

.quality-legendary {
  color: #ff8000;
  font-weight: 700;
}

.loot-source {
  color: #6e7f9b;
  font-size: 0.85rem;
}

.loot-time {
  color: #6e7f9b;
  font-size: 0.85rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1200px) {
  .finance-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .gph-table {
    font-size: 0.85rem;
  }

  .gph-table th,
  .gph-table td {
    padding: 8px;
  }
}


/* Configuration Upload Progress Bar */

.upload-progress-container {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.08);
}

.progress-bar-wrapper {
  margin: 24px 0;
}

.progress-bar-container {
  height: 40px;
  background: #e6eefb;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(45deg,
      #2456a5 25%,
      #ffffff 25%,
      #ffffff 50%,
      #2456a5 50%,
      #2456a5 75%,
      #ffffff 75%,
      #ffffff);
  background-size: 40px 40px;
  border-radius: 20px;
  transition: width 0.3s ease;
  animation: candy-cane 1s linear infinite;
  box-shadow: 0 2px 8px rgba(36, 86, 165, 0.3);
}

@keyframes candy-cane {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 40px 40px;
  }
}

.progress-text {
  text-align: center;
  margin-top: 16px;
  font-size: 1rem;
  color: #2456a5;
  font-weight: 600;
  min-height: 24px;
}

.progress-message {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6e7f9b;
  font-style: italic;
  min-height: 20px;
}

/* ===========================================================================
   STYLE.CSS FIXES - Text Contrast and Visual Improvements
   ========================================================================== */

/* FIX #3: Enhanced Equipment Slot Backgrounds */
.equipment-slot.dark-bg {
  background: linear-gradient(135deg, #111314 0%, #3a4567 100%);
  padding: 8px;
  border-radius: 8px;
}

.equipment-slot.dark-bg .slot-ilvl {
  color: #e0e7ff !important;
  font-weight: 600;
}

/* FIX #1: Enhanced Quick Stats Styling */
.quick-stats-grid.enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.quick-stat.enhanced-stat {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 2px solid #e6eefb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-stat.enhanced-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(36, 86, 165, 0.15);
  border-color: #3182ce;
}

.quick-stat.enhanced-stat .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.quick-stat.enhanced-stat .quick-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2456a5;
  margin-bottom: 8px;
}

.quick-stat.enhanced-stat .quick-stat-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* FIX #2: Leveling Speed Vertical Bar Chart */
.leveling-speed-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 180px;
  padding: 20px 10px 10px;
  background: linear-gradient(to bottom, #f7fafc 0%, #ffffff 100%);
  border-radius: 8px;
  margin: 16px 0;
}

.speed-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 60px;
}

.speed-bar-container {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.speed-bar {
  width: 70%;
  background: linear-gradient(to top, #3182ce 0%, #60a5fa 100%);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  box-shadow: 0 -2px 4px rgba(49, 130, 206, 0.3);
}

.speed-bar:hover {
  background: linear-gradient(to top, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 -4px 8px rgba(37, 99, 235, 0.4);
}

.speed-bar-label {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
  text-align: center;
}

.speed-average {
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  background: #eef4ff;
  border-radius: 6px;
  color: #334155;
  font-size: 0.95rem;
}

.speed-average strong {
  color: #2456a5;
  font-weight: 700;
}

/* FIX #7: Highlights List Icon Alignment */
.highlights-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.highlights-list li {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e6eefb;
}

.highlights-list li:last-child {
  border-bottom: none;
}

.highlights-list .hl-icon {
  font-size: 1.5rem;
  margin-right: 12px;
  min-width: 32px;
  text-align: center;
}

.highlights-list .hl-label {
  color: #64748b;
  margin-right: 8px;
  flex: 1;
}

.highlights-list strong {
  color: #2456a5;
  font-weight: 700;
  margin-left: auto;
}

/* FIX #9, #11, #12, #19, #20: Text Contrast Improvements for Travel Log, Professions, Achievements, Progression, Quests */
.stat-value,
.travel-stat-card .stat-value,
.profession-stat-value,
.achievement-stat-value,
.progression-stat-value,
.quest-stat-value {
  color: #1e40af !important;
  /* Darker blue for better contrast */
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Ensure all stat labels have good contrast */
.stat-label,
.travel-stat-card .stat-label,
.profession-stat-label,
.achievement-stat-label,
.progression-stat-label,
.quest-stat-label {
  color: #475569 !important;
  font-weight: 600 !important;
}

/* Fix for zone percentages and counts in Travel Log */
.zone-percentage,
.zone-bar-count {
  color: #1e40af !important;
  font-weight: 700 !important;
}

/* Fix for any light text on light backgrounds */
.light-bg .text-stat,
.travel-stats-grid .stat-value,
.profession-card .stat-value,
.achievement-card .stat-value,
.progression-card .stat-value,
.quest-card .stat-value {
  color: #1e3a8a !important;
  font-weight: 700 !important;
}

/* Improve readability of all numbers in stats cards */
.stat-number,
.count-display,
.value-display {
  color: #1e40af;
  font-weight: 700;
  font-size: 1.1em;
}

/* Make sure sub-labels are also readable */
.stat-sublabel,
.count-sublabel {
  color: #64748b;
  font-weight: 500;
}

/* Override for Combat/Damage Overview - White text, no shadows */
.combat-overview-card .stat-value,
.combat-overview-card .stat-label {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Override for Tanking Overview - White text, no shadows */
.tanking-overview-card .stat-value,
.tanking-overview-card .stat-label {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Override for Healing Overview - White text, no shadows */
.healing-overview-card .stat-value,
.healing-overview-card .stat-label {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Make trend charts responsive */
.dps-canvas,
.hps-canvas,
.dtps-canvas {
  display: block;
  margin: 20px auto;
}

/* Dashboard Styles - Minimal Enhancement */

/* Quick Stats Grid with Icon Boxes */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.quick-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.quick-stat-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.quick-stat-content {
  flex: 1;
  min-width: 0;
}

.quick-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.quick-stat-label {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Leveling Speed Bar Graph - Increased Size */
.level-speed-bars {
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-speed-bar {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  gap: 12px;
  align-items: center;
}

.level-speed-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-align: right;
}

.level-speed-bar-track {
  height: 28px;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.level-speed-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  min-width: 2px;
}

.level-speed-time {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Recent Milestones - Smaller, Scrollable */
.milestone-timeline {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar styling */
.milestone-timeline::-webkit-scrollbar {
  width: 8px;
}

.milestone-timeline::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.milestone-timeline::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.milestone-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  flex-shrink: 0;
}

.milestone-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFA000;
  border-radius: 8px;
}

.milestone-content {
  flex: 1;
  min-width: 0;
}

.milestone-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.milestone-desc {
  font-size: 12px;
  color: #666;
}

/* Highlight important milestones */
.milestone-important .milestone-icon {
  background: #E91E63;
}



/* ============================================================
   CHARSELECT MODIFIERS — Bazaar, Guild Hall, Gold Pills,
   Quality Badges, Lockout Info, WhoDAT Table
   ============================================================ */
/* ============================================================
   CHARSELECT — Character Selector Modifier Classes
   WhoDASH / Belmont Labs — BL-002
   ============================================================ */

/* Bazaar character selector option */
.charselect-item.bazaar-option {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 3px solid #2456a5;
}

.charselect-item.bazaar-option:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.charselect-item.bazaar-option.active {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left-color: #1e40af;
}

/* Guild Hall character selector option */
.guild-hall-option .char-name {
  color: #654321;
  font-weight: 600;
}

.guild-hall-option .char-emoji {
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.6));
}

.guild-hall-option:hover .char-emoji {
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

/* Gold pills (charselect currency display) */
.gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.gold-pill .char-name {
  font-weight: 600;
  color: #334155;
}

.gold-pill .gold-value {
  color: #f59e0b;
  font-weight: 700;
}

/* Quality badges */
.quality-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.quality-poor     { background: #9d9d9d; color: white; }
.quality-common   { background: #ffffff; color: #1e293b; border: 1px solid #e2e8f0; }
.quality-uncommon { background: #1eff00; color: #064e3b; }
.quality-rare     { background: #0070dd; color: white; }
.quality-epic     { background: #a335ee; color: white; }
.quality-legendary { background: #ff8000; color: white; }

/* Lockout display */
.lockout-info {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 8px;
}

.lockout-timer {
  font-size: 0.8rem;
  color: #f59e0b;
  font-weight: 600;
}

/* WhoDAT table (charselect context) */
.whodat-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.whodat-table thead { background: #f8fafc; }

.whodat-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.whodat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.whodat-table tbody tr:hover { background: #f8fafc; }
.whodat-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .gold-pill { padding: 6px 12px; font-size: 0.85rem; }
  .whodat-table { font-size: 0.8rem; }
  .whodat-table th,
  .whodat-table td { padding: 8px 12px; }
}

/* ============================================================
   WhoDASH Landing / Login Page
   Applied via body.wd-landing-page (toggled by main.js)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300&display=swap');

body.wd-landing-page {
  background: linear-gradient(135deg, #1a3a6e 0%, #1e4fa0 45%, #2d7dd2 100%) !important;
  min-height: 100vh;
}

body.wd-landing-page .topbar {
  display: none !important;
}

body.wd-landing-page .container {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

#whodash-landing {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

#whodash-landing::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 85% 60%, rgba(10, 25, 60, 0.28) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wd-hero {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 60px;
  position: relative;
  z-index: 1;
}

.wd-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: wdHeroIn 0.6s ease both 0s;
}

.wd-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.wd-logo {
  font-family: 'Cinzel', serif;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 40px rgba(10, 30, 90, 0.5);
  animation: wdHeroIn 0.6s ease both 0.07s;
}

.wd-logo span {
  color: #7ec8ff;
  text-shadow: 0 0 40px rgba(126, 200, 255, 0.4);
}

.wd-tagline {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  margin: 18px 0 52px 0;
  line-height: 1.55;
  animation: wdHeroIn 0.6s ease both 0.14s;
}

.wd-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.wd-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  animation: wdFeatureIn 0.55s ease both;
}

.wd-feature:nth-child(1) {
  animation-delay: 0.18s;
}

.wd-feature:nth-child(2) {
  animation-delay: 0.28s;
}

.wd-feature:nth-child(3) {
  animation-delay: 0.38s;
}

.wd-feature:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(126, 200, 255, 0.35);
  transform: translateY(-2px);
}

.wd-feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.4;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.wd-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-feature-text strong {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.wd-feature-text span {
  font-family: 'Crimson Pro', serif;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.wd-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.18) 25%,
      rgba(255, 255, 255, 0.18) 75%,
      transparent 100%);
  flex-shrink: 0;
  z-index: 1;
  margin: 40px 0;
}

.wd-auth-panel {
  flex: 0 0 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  z-index: 1;
}

.wd-auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 32px 80px rgba(8, 20, 60, 0.45), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
  animation: wdCardIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both 0.08s;
}

.wd-auth-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a3a6e;
  margin: 0 0 5px 0;
  letter-spacing: 0.04em;
}

.wd-auth-subtitle {
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  color: #7a8fa8;
  margin: 0 0 26px 0;
}

.wd-auth-card form {
  display: flex;
  flex-direction: column;
}

.wd-auth-card input[type="text"],
.wd-auth-card input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1.5px solid #d8e8f5;
  border-radius: 10px;
  font-size: 0.96rem;
  font-family: 'Crimson Pro', serif;
  background: #f5f9fd;
  color: #1a3a6e;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.wd-auth-card input[type="text"]:focus,
.wd-auth-card input[type="password"]:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.13);
  background: #fff;
}

.wd-auth-card input::placeholder {
  color: #b0bfcc;
  font-style: italic;
}

.wd-btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2d7dd2 0%, #1a3a6e 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 20px rgba(29, 78, 160, 0.4);
  margin: 4px 0 0 0;
}

.wd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 78, 160, 0.5);
}

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

.wd-btn-secondary {
  width: 100%;
  padding: 11px;
  background: transparent;
  color: #2d7dd2;
  border: 1.5px solid #c5d8ee;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  margin: 8px 0 0 0;
}

.wd-btn-secondary:hover {
  background: #eef5fc;
  border-color: #2d7dd2;
}

.wd-auth-card #loginError,
.wd-auth-card #registerError {
  color: #c53030;
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  margin: 10px 0 0 0;
  min-height: 18px;
}

.wd-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px;
  color: #b0bfcc;
  font-size: 0.78rem;
  font-family: 'Crimson Pro', serif;
  letter-spacing: 0.05em;
}

.wd-auth-divider::before,
.wd-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2ecf5;
}

@keyframes wdHeroIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wdFeatureIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wdCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  #whodash-landing {
    flex-direction: column;
  }

  .wd-hero {
    padding: 52px 32px 36px;
  }

  .wd-divider {
    width: 100%;
    height: 1px;
    margin: 0 40px;
    align-self: auto;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.18) 25%, rgba(255, 255, 255, 0.18) 75%, transparent 100%);
  }

  .wd-auth-panel {
    flex: unset;
    padding: 36px 24px 52px;
  }
}

/* ── Remember-me checkbox ── */
.wd-remember {
  margin: 2px 0 16px 0;
}

.wd-remember-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Crimson Pro', serif;
  font-size: 0.93rem;
  color: #5a6f88;
  user-select: none;
}

.wd-remember-label:hover .wd-remember-box {
  border-color: #3182ce;
  background: #f0f7ff;
}

/* Hide native checkbox */
.wd-remember-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0 !important;
}

/* Custom checkbox box */
.wd-remember-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #c5d8ee;
  border-radius: 5px;
  background: #f5f9fd;
  transition: border-color 0.15s, background 0.15s;
}

/* Checkmark via ::after */
.wd-remember-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  transition: border-color 0.15s;
}

.wd-remember-checkbox:checked+.wd-remember-box {
  background: #2d7dd2;
  border-color: #2d7dd2;
}

.wd-remember-checkbox:checked+.wd-remember-box::after {
  border-color: #fff;
}

.wd-remember-checkbox:focus-visible+.wd-remember-box {
  outline: 2px solid #3182ce;
  outline-offset: 2px;
}
/* ============================================================================
   WD-TOOLTIP SYSTEM
   Floating tooltip for recipe / item / spell mouseovers.
   Styled to match WhoDASH dashboard — not WoW's default parchment look.
   ============================================================================ */

.wd-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  max-width: 320px;
  min-width: 180px;
  background: #0f1d35;
  border: 1px solid #2456a5;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(36, 86, 165, 0.25);
  padding: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-family: inherit;
  color: #c9d8f0;
  line-height: 1.45;
}

.wd-tooltip-loading {
  padding: 12px 16px;
  color: #6e9bd4;
  font-style: italic;
  font-size: 0.85rem;
}

/* Header: icon + name */
.wd-tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #1e3a5f;
  background: #162b4a;
}

.wd-tooltip-icon {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  border: 1px solid #2456a5;
  flex-shrink: 0;
  object-fit: cover;
}

.wd-tooltip-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

/* Item quality color classes */
.wd-tooltip-name.q-poor {
  color: #9d9d9d;
}

.wd-tooltip-name.q-common {
  color: #ffffff;
}

.wd-tooltip-name.q-uncommon {
  color: #1eff00;
}

.wd-tooltip-name.q-rare {
  color: #0070dd;
}

.wd-tooltip-name.q-epic {
  color: #a335ee;
}

.wd-tooltip-name.q-legendary {
  color: #ff8000;
}

.wd-tooltip-name.q-artifact {
  color: #e6cc80;
}

.wd-tooltip-name.q-heirloom {
  color: #00ccff;
}

/* Stat lines */
.wd-tooltip-stats {
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wd-tooltip-stat {
  color: #c9d8f0;
  font-size: 0.84rem;
}

.wd-tooltip-stat--bonus {
  color: #58d68d;
  font-weight: 600;
}

.wd-tooltip-stat--req {
  color: #e57373;
  font-size: 0.82rem;
}

.wd-tooltip-stat--use {
  color: #5dade2;
}

.wd-tooltip-stat--flavor {
  color: #9b8ea0;
  font-style: italic;
  font-size: 0.82rem;
}

/* Footer: wowhead link */
.wd-tooltip-footer {
  padding: 8px 14px;
  border-top: 1px solid #1e3a5f;
  background: #0d1929;
}

.wd-tooltip-link {
  color: #4a90d9;
  font-size: 0.78rem;
  text-decoration: none;
  pointer-events: auto;
}

.wd-tooltip-link:hover {
  text-decoration: underline;
  color: #7ab3e8;
}

/* ============================================================================

.wd-tooltip-item-id {
  color: #8899aa;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3px;
}

/* Reagent For section */
.wd-tooltip-reagent-for {
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid #1e3a5f;
}

.wd-tooltip-reagent-for-label {
  color: #ffd700;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wd-tooltip-reagent-for-item {
  color: #b8c5d6;
  font-size: 0.82rem;
  padding: 3px 0;
  line-height: 1.4;
}

/* Dropped By section */
.wd-tooltip-dropped-by {
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid #1e3a5f;
}

.wd-tooltip-dropped-by-label {
  color: #ff6b6b;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wd-tooltip-dropped-by-item {
  color: #b8c5d6;
  font-size: 0.82rem;
  padding: 3px 0;
  line-height: 1.4;
}

/* ============================================================================

/* Reagents section */
.wd-tooltip-reagents {
  padding: 8px 14px 10px;
  border-top: 1px solid #1e3a5f;
  background: #0d1929;
}

.wd-tooltip-reagent-label {
  font-size: 0.75rem;
  color: #6e9bd4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  font-weight: 600;
}

.wd-tooltip-reagent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: #c9d8f0;
  padding: 2px 0;
}

.wd-tooltip-reagent-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #2456a5;
  flex-shrink: 0;
  object-fit: cover;
}

.wd-tooltip-reagent-icon-placeholder {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wd-reagent-qty {
  color: #8aafd4;
  flex-shrink: 0;
  min-width: 22px;
}

.wd-reagent-name {
  flex: 1;
}

.wd-reagent-have {
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 3px;
}

.wd-reagent-have--ok {
  color: #4caf7d;
  background: rgba(76, 175, 80, 0.15);
}

.wd-reagent-have--low {
  color: #e57373;
  background: rgba(229, 115, 115, 0.15);
}


/* ============================================================
   QUESTS — Active Quest Log Section Wrapper
   (used by sections_quests.js)
   ============================================================ */

.current-quest-log-section {
  margin-bottom: 2rem;
}
