/* Grow a Garden 2 Stock Tracker — neon night garden theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Color System (new.png neon night palette) */
  --bg-dark: #050916;
  --bg-surface: rgba(7, 20, 23, 0.9);
  --bg-card: rgba(12, 22, 31, 0.94);
  --border-dim: rgba(70, 255, 170, 0.16);
  --border-wood: rgba(255, 205, 40, 0.42);
  
  /* Text */
  --text-primary: #f4f8f5;
  --text-secondary: #a8c7be;
  --text-dim: #5f7b83;
  
  /* Garden Accents */
  --color-grass: #76ff38;
  --color-wood: #ffd43b;
  --color-exotic: #c45cff;
  --color-danger: #ff4747;
  --color-warning: #ffd43b;
  --color-primary: #38c9ff;
  --color-success: #44f06a;
  
  /* Rarity Colors */
  --rarity-common: #94a3b8;
  --rarity-uncommon: #4caf50;
  --rarity-rare: #29b6f6;
  --rarity-epic: #ab47bc;
  --rarity-legendary: #ffca28;
  --rarity-exotic: #ec4899;
  --rarity-secret: #f43f5e;
  --rarity-super: #ff7043;
  --rarity-mythic: #ef5350;
  --rarity-divine: #26c6da;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body {
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(180deg, rgba(5, 9, 22, 0.72) 0%, rgba(5, 9, 22, 0.93) 46%, rgba(3, 10, 7, 0.98) 100%),
    url('/new.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

body:not(.i18n-ready) .container {
  opacity: 0;
}

body.i18n-ready .container {
  opacity: 1;
  transition: opacity 120ms ease;
}

/* Fresh Grass Grid Pattern backdrop */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(118, 255, 56, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 201, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    linear-gradient(120deg, rgba(56, 201, 255, 0.16), transparent 42%),
    linear-gradient(260deg, rgba(196, 92, 255, 0.12), transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(118, 255, 56, 0.08) 100%);
  pointer-events: none;
}

.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.glass::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%);
  pointer-events: none;
}

.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background:
    linear-gradient(115deg, rgba(8, 20, 37, 0.98), rgba(10, 35, 22, 0.94) 55%, rgba(36, 18, 56, 0.86)),
    url('/new.png');
  background-size: cover;
  background-position: center 42%;
  border: 1px solid rgba(118, 255, 56, 0.22);
  border-top: 4px solid var(--color-grass);
  border-radius: 16px;
  box-shadow: 0 22px 60px -28px rgba(56, 201, 255, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-image {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(118, 255, 56, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 201, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.42);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-image:hover {
  transform: rotate(-8deg) scale(1.08);
}

.header-logo h1 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0;
  background: linear-gradient(135deg, #f7ffcb 8%, #82ff26 42%, #ffe33b 70%, #c45cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: #8eeeff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-danger);
  box-shadow: 0 0 8px var(--color-danger);
}

.status-dot.online {
  background-color: var(--color-grass);
  box-shadow: 0 0 10px var(--color-grass);
}

.pulsing {
  animation: pulse 2s infinite ease-in-out;
}

.last-updated {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Stats / Timers */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  align-items: start;
}

.stats-card {
  padding: 24px 32px;
  border-top: 3px solid rgba(118, 255, 56, 0.28);
}

.stats-card h3 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-card h3 i {
  color: var(--color-grass);
}

.timers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 16px;
}

.timer-box {
  background:
    linear-gradient(180deg, rgba(56, 201, 255, 0.065), transparent),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(56, 201, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.timer-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background-color: var(--color-grass);
  border-radius: 0 4px 4px 0;
}

.timer-box:nth-child(2)::before { background-color: var(--color-wood); }
.timer-box:nth-child(3)::before { background-color: var(--rarity-rare); }

.timer-box:hover {
  background: rgba(2, 13, 20, 0.78);
  border-color: rgba(118, 255, 56, 0.26);
  transform: translateY(-2px);
}

.timer-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.timer-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

/* Alert Notification Banner */
.notification-banner {
  padding: 16px 24px;
  border-left: 4px solid var(--color-warning);
  background:
    linear-gradient(90deg, rgba(255, 212, 59, 0.11), transparent 42%),
    rgba(0, 0, 0, 0.16);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.banner-content p {
  font-size: 13.5px;
  color: #cbd5e1;
}

.banner-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.bell-glow {
  font-size: 22px;
  color: var(--color-warning);
  filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.5));
  animation: bellRing 2s infinite ease-in-out;
}

/* ── Telegram bot promo banner (top of page) ── */
.tg-promo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  margin-bottom: 18px;
  text-decoration: none;
  border: 1px solid rgba(56, 201, 255, 0.34);
  background:
    linear-gradient(100deg, rgba(56, 201, 255, 0.18), rgba(118, 255, 56, 0.08) 52%, rgba(196, 92, 255, 0.1));
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tg-promo-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 255, 56, 0.56);
  box-shadow: 0 16px 30px rgba(56, 201, 255, 0.18);
}

.tg-promo-icon {
  font-size: 30px;
  color: #38b6ff;
  filter: drop-shadow(0 0 8px rgba(56, 163, 224, 0.65));
  flex-shrink: 0;
}

.tg-promo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tg-promo-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.25;
}

.tg-promo-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.tg-promo-btn {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #061008;
  background: linear-gradient(135deg, #d9ff3d, #76ff38);
  padding: 9px 14px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(118, 255, 56, 0.28);
}

.tg-promo-banner:hover .tg-promo-btn {
  background: linear-gradient(135deg, #fff05a, #82ff26);
}

@media (max-width: 600px) {
  .tg-promo-banner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .tg-promo-icon { font-size: 26px; }
  .tg-promo-title { font-size: 14px; }
  .tg-promo-sub { font-size: 12px; }
  .tg-promo-btn { width: 100%; text-align: center; }
}

/* Filters and Search Bar */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(56, 201, 255, 0.14);
  border-radius: 10px;
  padding: 10px 16px;
  flex-grow: 1;
  max-width: 380px;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(118, 255, 56, 0.5);
  box-shadow: 0 0 0 2px rgba(118, 255, 56, 0.08);
}

.search-box i {
  color: var(--text-secondary);
  font-size: 14px;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(56, 201, 255, 0.12);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(56, 201, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(56, 201, 255, 0.28);
}

.filter-btn.active {
  background: linear-gradient(135deg, #76ff38, #d9ff3d);
  color: #061008;
  border-color: var(--color-grass);
  box-shadow: 0 8px 18px rgba(118, 255, 56, 0.22);
}

@media (max-width: 1080px) {
  .container {
    padding: 20px 10px;
    gap: 18px;
  }

  .dashboard-header {
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
  }

  .header-logo {
    min-width: 0;
  }

  .header-right {
    min-width: 0;
    gap: 12px;
  }

  .stats-grid,
  .shops-container,
  .main-content-area {
    gap: 18px;
  }

  .stats-card,
  .shop-section,
  .predictions-section,
  .api-docs-section {
    padding: 20px;
  }

  .quick-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-nav-link {
    min-height: 38px;
  }

  .auction-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .prediction-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  }
}

@media (max-width: 920px) {
  .dashboard-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .header-status {
    align-items: center;
  }

  .weather-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }

  .weather-settings-panel {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  }
}

/* Shops grid containers */
.shops-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-section {
  padding: 24px 32px;
  border-top: 3px solid rgba(56, 201, 255, 0.22);
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 14px;
  color: var(--text-primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

/* Earthy Wooden Card Layout */
.item-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 36%),
    var(--bg-card);
  border: 1px solid rgba(56, 201, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible; /* Let tooltips/full names wrap freely */
}

/* Rarity Glowing Border Accents */
.item-card.rarity-common { border-left: 3px solid var(--rarity-common); }
.item-card.rarity-uncommon { border-left: 3px solid var(--rarity-uncommon); }
.item-card.rarity-rare { border-left: 3px solid var(--rarity-rare); }
.item-card.rarity-epic { border-left: 3px solid var(--rarity-epic); }

.item-card.rarity-legendary {
  border: 1px solid rgba(255, 202, 40, 0.25);
  border-left: 4px solid var(--rarity-legendary);
  box-shadow: 0 0 10px rgba(255, 202, 40, 0.05);
}

.item-card.rarity-exotic,
.item-card.rarity-secret,
.item-card.rarity-super,
.item-card.rarity-mythic,
.item-card.rarity-divine {
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-left: 4px solid rgba(244, 63, 94, 0.9);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(244, 63, 94, 0.02) 100%);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.06);
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 255, 56, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46);
  background:
    linear-gradient(180deg, rgba(118, 255, 56, 0.045), transparent 40%),
    rgba(12, 26, 34, 0.98);
}

.item-card.rarity-legendary:hover {
  border-color: rgba(255, 202, 40, 0.5);
  box-shadow: 0 8px 25px rgba(255, 202, 40, 0.12);
}

.item-card.rarity-exotic:hover,
.item-card.rarity-secret:hover,
.item-card.rarity-super:hover,
.item-card.rarity-mythic:hover,
.item-card.rarity-divine:hover {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.15);
}

/* Card Header elements */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
}

.name-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.item-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* Expand name fully on hover or active/touch */
.item-card:hover .item-name,
.item-card:active .item-name {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

/* Bell Button */
.bell-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 13px;
  flex-shrink: 0;
}

.bell-btn:hover {
  color: var(--color-warning);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.15);
}

.bell-btn.bell-active {
  color: var(--color-warning);
  filter: drop-shadow(0 0 4px rgba(255, 179, 0, 0.6));
}

.prediction-bell-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 13px;
  flex-shrink: 0;
}

.prediction-bell-btn:hover {
  color: var(--color-warning);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.15);
}

.prediction-bell-btn.bell-active {
  color: var(--color-warning);
  filter: drop-shadow(0 0 4px rgba(255, 179, 0, 0.6));
}

/* Rarity badge (Not absolutely positioned to let flex row flow naturally) */
.item-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.badge-common { background: rgba(100, 116, 139, 0.15); color: var(--rarity-common); }
.badge-uncommon { background: rgba(76, 175, 80, 0.15); color: var(--rarity-uncommon); }
.badge-rare { background: rgba(41, 182, 246, 0.15); color: var(--rarity-rare); }
.badge-epic { background: rgba(171, 71, 188, 0.15); color: var(--rarity-epic); }
.badge-legendary { background: rgba(255, 202, 40, 0.15); color: var(--rarity-legendary); }
.badge-exotic { background: rgba(236, 72, 153, 0.15); color: var(--rarity-exotic); }
.badge-secret { background: rgba(244, 63, 94, 0.15); color: var(--rarity-secret); }
.badge-super { background: rgba(255, 112, 67, 0.15); color: var(--rarity-super); }
.badge-mythic { background: rgba(239, 83, 80, 0.15); color: var(--rarity-mythic); }
.badge-divine { background: rgba(38, 198, 218, 0.15); color: var(--rarity-divine); }

/* Card Body elements (Stacked vertically to completely eliminate horizontal overlap!) */
.item-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  min-width: 0;
  flex: 1;
}

.item-stock {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.stock-in {
  color: var(--rarity-uncommon); /* Fresh green */
}

.stock-out {
  color: var(--color-danger);
  opacity: 0.9;
}

/* Compact price label */
.item-price {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 212, 59, 0.16);
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.price-icon {
  color: var(--color-warning);
  font-size: 11px;
}

/* Out of Stock Card Dimming */
.item-card.stock-out-card {
  opacity: 0.55;
  filter: grayscale(20%);
}

.item-card.stock-out-card:hover {
  opacity: 1;
  filter: none;
}

/* Developer API Docs Section */
.api-docs-section {
  border-left: 3px solid var(--color-grass);
  padding: 24px 32px;
}

.api-docs-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-docs-content p {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.api-endpoint-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(56, 201, 255, 0.14);
  padding: 12px 16px;
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.badge-method {
  background: rgba(118, 255, 56, 0.12);
  border: 1px solid rgba(118, 255, 56, 0.28);
  color: var(--rarity-uncommon);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.endpoint-url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #cbd5e1;
}

.api-details {
  border: 1px solid rgba(56, 201, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.2s;
}

.api-details:hover {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(56, 201, 255, 0.28);
}

.api-details summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text-primary);
  outline: none;
  user-select: none;
}

.details-body {
  padding: 20px;
  border-top: 1px solid rgba(56, 201, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-body h5 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.details-body pre {
  margin: 0;
  background: #050914;
  border: 1px solid rgba(56, 201, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
}

.details-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

/* Footer elements */
.dashboard-footer {
  text-align: center;
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 201, 255, 0.24);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-grass);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
  .container {
    padding: 16px 8px;
    gap: 18px;
  }
  
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .header-logo {
    flex-direction: column;
    gap: 12px;
  }
  
  .header-status {
    align-items: center;
    text-align: center;
  }
  
  .shop-section {
    padding: 20px 14px;
  }
  
  .section-title {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .filter-buttons {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .api-endpoint-box {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .timers-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .timer-box {
    padding: 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .timer-box::before {
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
  }
  
  .timer-val {
    font-size: 17px;
  }
}

/* Language Switcher */
.lang-switch-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(56, 201, 255, 0.14);
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
  max-width: none;
  white-space: nowrap;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 10px;
  min-width: 30px;
  padding: 5px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: linear-gradient(135deg, #76ff38, #d9ff3d);
  color: #061008;
  box-shadow: 0 0 14px rgba(118, 255, 56, 0.34);
}

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

/* Fast in-page navigation */
.quick-nav {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(56, 201, 255, 0.08), rgba(118, 255, 56, 0.06)),
    rgba(4, 12, 20, 0.94);
  border-color: rgba(56, 201, 255, 0.18);
  backdrop-filter: blur(14px);
}

.quick-nav-link {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(56, 201, 255, 0.1);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.quick-nav-link:hover {
  transform: translateY(-1px);
  color: var(--text-primary);
  border-color: rgba(56, 201, 255, 0.34);
  background: rgba(56, 201, 255, 0.1);
}

.quick-nav-link.active {
  color: var(--text-primary);
  border-color: rgba(118, 255, 56, 0.5);
  background: linear-gradient(135deg, rgba(118, 255, 56, 0.18), rgba(56, 201, 255, 0.14));
  box-shadow: inset 0 0 0 1px rgba(118, 255, 56, 0.08), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.quick-nav-link i {
  color: var(--color-primary);
  font-size: 13px;
}

/* Live auction inside the restock card */
.auction-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(56, 201, 255, 0.12);
}

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

.auction-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.auction-panel-header h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}

.auction-panel-header h4 i {
  color: var(--color-warning);
}

.auction-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 212, 59, 0.24);
  white-space: nowrap;
}

.auction-refresh-label {
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.auction-refresh-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-warning);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.auction-card {
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 35%),
    var(--bg-card);
  border: 1px solid rgba(56, 201, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  position: relative;
}

.auction-card.rarity-legendary,
.auction-card.rarity-mythic,
.auction-card.rarity-super,
.auction-card.rarity-exotic {
  border-color: rgba(255, 202, 40, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 202, 40, 0.04), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.auction-card-top {
  position: relative;
  min-height: 112px;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(56, 201, 255, 0.12), rgba(0, 0, 0, 0.34) 62%);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.auction-image-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auction-image-wrapper.img-failed::before {
  content: "🧺";
  font-size: 32px;
  opacity: 0.62;
}

.auction-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

.auction-count {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.auction-status {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(0, 0, 0, 0.58);
}

.auction-status.active { color: var(--color-success); }
.auction-status.sold { color: var(--color-danger); }
.auction-status.expired { color: var(--rarity-common); }

.auction-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auction-card-body h5 {
  min-height: 0;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.auction-meta {
  color: var(--text-secondary);
  font-size: 10px;
  min-height: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.auction-info-row,
.auction-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
  font-size: 11px;
  color: var(--text-secondary);
}

.auction-info-row span:first-child {
  min-width: 0;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
  line-height: 1.25;
}

.auction-lot-timer {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 11px;
}

.auction-price-row {
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 179, 0, 0.14);
}

.auction-price-row strong {
  color: var(--color-warning);
  font-family: var(--font-mono);
  font-size: 13px;
}

.auction-sold,
.auction-expired {
  opacity: 0.68;
  filter: grayscale(0.28);
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  .header-logo {
    flex-direction: column;
    gap: 10px;
  }
  .header-right {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .lang-switch-container {
    justify-content: center;
    max-width: 100%;
    width: 100%;
    gap: 2px;
  }
  .lang-btn {
    flex: 1 1 0;
    min-width: 24px;
    padding: 5px 4px;
    font-size: 9.5px;
  }
  .header-status {
    align-items: center;
  }
  .quick-nav {
    top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .auction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auction-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Weather & Night Cycle Card Styles */
.weather-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.weather-box {
  background:
    linear-gradient(180deg, rgba(196, 92, 255, 0.07), transparent),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(56, 201, 255, 0.11);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.weather-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background-color: var(--rarity-epic);
  border-radius: 0 4px 4px 0;
}

.weather-box:nth-child(2)::before {
  background-color: var(--color-exotic);
}

.weather-box:hover {
  background: rgba(2, 13, 20, 0.82);
  border-color: rgba(196, 92, 255, 0.28);
  transform: translateY(-2px);
}

.weather-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.weather-val {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.weather-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .weather-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .weather-box {
    padding: 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .weather-box::before {
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
  }
}

/* Item card thumbnails */
.item-main-content {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  width: 100%;
}

.item-image-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(56, 201, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

/* When an item image fails to load, show a neutral placeholder glyph instead of a
   broken-image icon. The wrapper keeps its dimensions so the card layout is stable. */
.item-image-wrapper.img-failed::before {
  content: "🌱";
  font-size: 26px;
  opacity: 0.55;
}

.item-card-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.item-card:hover .item-card-image {
  transform: scale(1.1) rotate(3deg);
}

/* Weather settings panel & custom button toggles */
.weather-settings-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.weather-settings-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.weather-settings-btn.active {
  color: var(--color-warning);
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.08);
}

.weather-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(56, 201, 255, 0.12);
  padding-bottom: 8px;
}

.weather-card-header h3 {
  margin-bottom: 0 !important;
}

.weather-settings-panel {
  border-top: 1px solid rgba(56, 201, 255, 0.12);
  margin-top: 16px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.weather-card .weather-settings-panel {
  display: grid !important;
}

/* Fruit value calculator */
.calculator-section {
  border-left: 3px solid var(--color-warning);
  background:
    linear-gradient(135deg, rgba(255, 212, 59, 0.09), transparent 34%),
    linear-gradient(225deg, rgba(196, 92, 255, 0.09), transparent 42%),
    var(--bg-surface);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.calculator-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator-controls .calculator-field:first-child {
  grid-column: 1 / -1;
}

.calculator-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.calculator-field span {
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-field-hint {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.35;
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(56, 201, 255, 0.18);
  border-radius: 10px;
  background: rgba(1, 8, 14, 0.64);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.calculator-field input:focus,
.calculator-field select:focus {
  border-color: rgba(118, 255, 56, 0.56);
  box-shadow: 0 0 0 2px rgba(118, 255, 56, 0.1), 0 0 18px rgba(56, 201, 255, 0.12);
  background: rgba(2, 13, 20, 0.86);
}

.calculator-check-field {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(56, 201, 255, 0.18);
  border-radius: 10px;
  background: rgba(1, 8, 14, 0.64);
}

.calculator-check-field input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: #76ff38;
}

.calculator-check-field .calculator-field-hint {
  grid-column: 2;
}

.calculator-multiplier-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(56, 201, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(56, 201, 255, 0.1), rgba(118, 255, 56, 0.06)),
    rgba(1, 8, 14, 0.64);
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.calculator-multiplier-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(118, 255, 56, 0.42);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.calculator-multiplier-btn.is-active {
  color: #061008;
  border-color: rgba(118, 255, 56, 0.66);
  background: linear-gradient(135deg, #76ff38, #d9ff3d);
}

.calculator-multiplier-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.calculator-fruit-picker {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(56, 201, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(56, 201, 255, 0.08), transparent 35%),
    rgba(1, 8, 14, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.calculator-fruit-picker span {
  text-transform: none;
  letter-spacing: 0;
}

.calculator-fruit-picker:focus-within,
.calculator-fruit-picker.is-open {
  border-color: rgba(118, 255, 56, 0.62);
  box-shadow: 0 0 0 2px rgba(118, 255, 56, 0.1), 0 16px 32px rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(90deg, rgba(118, 255, 56, 0.1), transparent 35%),
    rgba(2, 13, 20, 0.92);
}

.calculator-fruit-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 13px;
  pointer-events: none;
}

.calculator-fruit-picker #calculator-fruit-input {
  border: 0;
  background: transparent;
  min-height: 46px;
  padding: 10px 78px 10px 40px;
  box-shadow: none;
}

.calculator-fruit-picker #calculator-fruit-input:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.calculator-fruit-clear,
.calculator-fruit-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.calculator-fruit-clear {
  right: 43px;
  display: none;
}

.calculator-fruit-picker.has-value .calculator-fruit-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calculator-fruit-toggle {
  right: 7px;
}

.calculator-fruit-clear:hover,
.calculator-fruit-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(118, 255, 56, 0.32);
  background: rgba(118, 255, 56, 0.1);
}

.calculator-fruit-picker.is-open .calculator-fruit-toggle i {
  transform: rotate(180deg);
}

.calculator-fruit-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 318px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(118, 255, 56, 0.22);
  border-radius: 14px;
  background: rgba(4, 10, 20, 0.98);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.calculator-fruit-picker.is-open .calculator-fruit-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calculator-fruit-option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.calculator-fruit-option.is-active,
.calculator-fruit-option:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 201, 255, 0.32);
  background: rgba(56, 201, 255, 0.1);
}

.calculator-fruit-option.is-selected {
  border-color: rgba(118, 255, 56, 0.42);
  background: rgba(118, 255, 56, 0.12);
}

.calculator-fruit-option-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.calculator-fruit-option-icon img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.45));
}

.calculator-fruit-option-icon img + .calculator-fruit-emoji {
  display: none;
}

.calculator-fruit-option-icon.img-failed .calculator-fruit-emoji {
  display: inline-flex;
}

.calculator-fruit-emoji {
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.calculator-fruit-option-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calculator-fruit-option-name {
  min-width: 0;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculator-fruit-option-sub {
  min-width: 0;
  color: var(--text-dim);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculator-fruit-option-price {
  justify-self: end;
  min-width: 0;
  max-width: 150px;
  color: var(--color-warning);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.18;
  text-align: right;
  overflow-wrap: anywhere;
}

.calculator-fruit-empty {
  padding: 14px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.calculator-result-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 212, 59, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(255, 212, 59, 0.1), transparent 48%),
    rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.calculator-selected {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.calculator-price {
  color: var(--color-warning);
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(255, 212, 59, 0.26);
}

.calculator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.calculator-formula-hint,
#calculator-formula-hint {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.calculator-section {
  position: relative;
  overflow: visible;
  border-left: 0;
  border-top: 1px solid rgba(118, 255, 56, 0.34);
  background:
    linear-gradient(135deg, rgba(118, 255, 56, 0.12), rgba(56, 201, 255, 0.06) 42%, rgba(255, 212, 59, 0.08)),
    rgba(4, 13, 14, 0.86);
}

.calculator-section .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.calculator-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
}

.calculator-controls {
  align-content: start;
  padding: 2px;
}

.calculator-field {
  padding: 10px;
  border: 1px solid rgba(56, 201, 255, 0.1);
  border-radius: 12px;
  background: rgba(1, 8, 14, 0.28);
}

.calculator-field input,
.calculator-field select,
.calculator-fruit-picker,
.calculator-multiplier-btn {
  border-radius: 9px;
}

.calculator-check-field {
  grid-template-columns: 42px 1fr;
  padding: 12px;
}

.calculator-check-field input[type="checkbox"] {
  position: relative;
  width: 38px;
  height: 22px;
  min-height: 22px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.calculator-check-field input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform 0.16s ease, background 0.16s ease;
}

.calculator-check-field input[type="checkbox"]:checked {
  border-color: rgba(118, 255, 56, 0.68);
  background: rgba(118, 255, 56, 0.26);
}

.calculator-check-field input[type="checkbox"]:checked::after {
  transform: translateX(16px);
  background: #76ff38;
}

.calculator-result-panel {
  position: relative;
  justify-content: space-between;
  min-height: 280px;
  padding: 22px;
  border-color: rgba(118, 255, 56, 0.28);
  background:
    linear-gradient(145deg, rgba(118, 255, 56, 0.13), rgba(56, 201, 255, 0.07) 44%, rgba(255, 212, 59, 0.1)),
    rgba(1, 8, 14, 0.72);
}

.calculator-selected {
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 900;
}

.calculator-price {
  font-size: clamp(38px, 6vw, 64px);
  color: #d9ff3d;
  text-shadow: 0 0 24px rgba(118, 255, 56, 0.24);
}

.calculator-meta span {
  padding: 7px 9px;
  border: 1px solid rgba(56, 201, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.calculator-fruit-menu {
  max-height: 380px;
  border-radius: 12px;
}

.calculator-fruit-option {
  grid-template-columns: 48px minmax(0, 1fr) minmax(74px, auto);
  padding: 10px;
}

.glass {
  border-color: rgba(118, 255, 56, 0.18);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.quick-nav {
  border-color: rgba(118, 255, 56, 0.16);
  background:
    linear-gradient(180deg, rgba(118, 255, 56, 0.06), rgba(56, 201, 255, 0.035)),
    rgba(3, 12, 15, 0.78);
}

.quick-nav-link {
  border-radius: 8px;
  background: rgba(1, 8, 14, 0.52);
}

.quick-nav-link.active,
.quick-nav-link:hover {
  background:
    linear-gradient(135deg, rgba(118, 255, 56, 0.18), rgba(56, 201, 255, 0.09)),
    rgba(1, 8, 14, 0.62);
}

.shop-section {
  border-color: rgba(118, 255, 56, 0.16);
}

.item-card,
.auction-card {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(2, 10, 16, 0.76);
}

.item-card:hover,
.auction-card:hover {
  border-color: rgba(118, 255, 56, 0.34);
}

@media (max-width: 760px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .calculator-controls {
    grid-template-columns: 1fr;
  }

  .calculator-price {
    font-size: 30px;
  }
}

/* Custom Scrollbar for weather panel */
.weather-settings-panel::-webkit-scrollbar {
  width: 4px;
}
.weather-settings-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
.weather-settings-panel::-webkit-scrollbar-thumb {
  background: rgba(93, 64, 55, 0.4);
  border-radius: 2px;
}
.weather-settings-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 64, 55, 0.6);
}

@media (max-width: 600px) {
  .lang-btn {
    min-width: 20px;
    padding: 5px 2px;
    font-size: 9px;
  }
  .weather-settings-panel {
    grid-template-columns: 1fr;
    max-height: 300px;
  }
  .quick-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-nav-link {
    justify-content: flex-start;
    padding-inline: 12px;
  }
  .auction-grid {
    grid-template-columns: 1fr;
  }
  .auction-card-top {
    min-height: 100px;
    height: 100%;
  }
}

@media (max-width: 430px) {
  html {
    scroll-padding-top: 118px;
  }

  .container {
    padding: 10px 6px;
    gap: 14px;
  }

  .dashboard-header {
    padding: 16px 12px;
  }

  .header-logo h1 {
    font-size: 22px;
  }

  .subtitle {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .lang-switch-container {
    padding: 3px;
    gap: 1px;
  }

  .lang-btn {
    min-width: 18px;
    padding: 4px 1px;
    font-size: 8px;
    border-radius: 6px;
  }

  .status-badge {
    padding: 5px 10px;
    font-size: 11px;
  }

  .last-updated {
    font-size: 10px;
  }

  .stats-card,
  .shop-section,
  .predictions-section,
  .api-docs-section {
    padding: 16px 12px;
  }

  .quick-nav {
    gap: 5px;
    padding: 7px;
  }

  .quick-nav-link {
    gap: 6px;
    min-height: 34px;
    padding: 8px 7px;
    font-size: 11px;
  }

  .timer-val {
    font-size: 15px;
  }

  .calculator-price {
    font-size: 26px;
  }

  .filters-bar {
    padding: 12px;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 5px);
    padding: 9px 10px;
  }

  .item-card {
    padding: 13px;
  }

  .item-main-content {
    gap: 12px;
  }

  .item-image-wrapper {
    width: 48px;
    height: 48px;
  }

  .auction-panel-header {
    gap: 10px;
  }

  .auction-refresh-pill {
    width: 100%;
    align-items: flex-start;
  }

  .prediction-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .prediction-time-container {
    width: 100%;
    align-items: flex-start;
  }
}

.weather-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(56, 201, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.weather-settings-item:hover {
  background: rgba(56, 201, 255, 0.07);
  border-color: rgba(56, 201, 255, 0.22);
}

.weather-settings-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-settings-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.weather-settings-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.weather-settings-emoji-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
}

.weather-settings-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
}

.weather-bell-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.weather-bell-btn:hover {
  color: var(--color-warning);
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.05);
}

.weather-bell-btn.bell-active {
  color: var(--color-warning);
  text-shadow: 0 0 6px rgba(255, 179, 0, 0.4);
}

/* Keyframes for animations */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

@keyframes bellRing {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(5deg); }
  60% { transform: rotate(-5deg); }
  70% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

/* Predictions Section Styling */
.predictions-section {
  background:
    linear-gradient(135deg, rgba(56, 201, 255, 0.07), transparent 40%),
    var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-top: 3px solid rgba(196, 92, 255, 0.34);
  border-radius: 14px;
  padding: 24px 32px;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.8);
}

.predictions-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.predictions-tabs::-webkit-scrollbar {
  display: none;
}

.prediction-tab-btn {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(56, 201, 255, 0.12);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
  outline: none;
}

.prediction-tab-btn:hover {
  background: rgba(56, 201, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(56, 201, 255, 0.3);
}

.prediction-tab-btn.active {
  background: linear-gradient(135deg, #76ff38, #d9ff3d);
  color: #061008;
  border-color: var(--color-grass);
  box-shadow: 0 8px 18px rgba(118, 255, 56, 0.24);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.predictions-content {
  position: relative;
  min-height: 120px;
}

.prediction-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.prediction-grid.active {
  display: grid;
}

.prediction-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 40%),
    var(--bg-card);
  border: 1px solid rgba(56, 201, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.prediction-card:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 255, 56, 0.28);
  background:
    linear-gradient(180deg, rgba(118, 255, 56, 0.04), transparent 44%),
    rgba(12, 26, 34, 0.98);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.prediction-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.prediction-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prediction-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prediction-time-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.prediction-timer {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.prediction-badge {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.prediction-badge.upcoming {
  background: rgba(76, 175, 80, 0.12);
  color: var(--color-grass);
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.prediction-badge.past {
  background: rgba(148, 163, 184, 0.08);
  color: var(--rarity-common);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.prediction-card.past-item {
  opacity: 0.55;
  filter: grayscale(15%);
}

.prediction-card.past-item:hover {
  opacity: 0.95;
  filter: none;
}

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



/* Main content layout with left sidebar and right content area */
.main-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
}

.main-content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Left Sidebar Multipliers style */
.sidebar-left {
  padding: 24px;
  border-top: 3px solid rgba(255, 212, 59, 0.34);
  position: sticky;
  top: 24px;
  z-index: 10;
}

.sidebar-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-title i {
  color: var(--color-warning);
}

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

.multipliers-updated-at {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 255, 88, 0.12);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

/* Live countdown to the next fruit multiplier refresh. */
.mult-refresh-box {
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 212, 59, 0.25);
  box-shadow: 0 0 6px rgba(255, 212, 59, 0.08);
}

.mult-refresh-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-warning);
}

.mult-refresh-label i {
  animation: mult-spin 3s linear infinite;
}

@keyframes mult-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.multiplier-item {
  background: var(--bg-card);
  border: 1px solid rgba(56, 201, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.multiplier-item:hover {
  transform: scale(1.04) translateX(2px);
  border-color: rgba(255, 212, 59, 0.42);
  background: rgba(14, 31, 39, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.multiplier-item:hover .multiplier-info span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.multiplier-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
  min-width: 0;
  flex: 1;
}

.multiplier-info span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.multiplier-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-warning);
  border: 1px solid rgba(255, 179, 0, 0.25);
  box-shadow: 0 0 6px rgba(255, 179, 0, 0.1);
}

/* Specific multiplier badge styles based on rate */
.multiplier-val.rate-high {
  color: var(--color-grass);
  border-color: rgba(76, 175, 80, 0.35);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

.multiplier-val.rate-exotic {
  color: #fff;
  background: linear-gradient(135deg, var(--rarity-exotic), var(--rarity-secret));
  border-color: var(--rarity-exotic);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.multiplier-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.multiplier-bell-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 13px;
  flex-shrink: 0;
}

.multiplier-bell-btn:hover {
  color: var(--color-warning);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.15);
}

.multiplier-bell-btn.bell-active {
  color: var(--color-warning);
  filter: drop-shadow(0 0 4px rgba(255, 179, 0, 0.6));
}

/* Fruit thumbnail shown next to the name when an image asset is available
   (replaces the emoji placeholder so Asset_<id> fruits still display visually). */
.fruit-thumb {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.fruit-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Multiplier list pagination controls. */
.mult-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-dim);
}

.mult-nav-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(191, 144, 0, 0.2);
  color: var(--color-warning);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mult-nav-btn:not(.disabled):hover {
  background: rgba(191, 144, 0, 0.15);
  border-color: var(--color-warning);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.3);
  transform: scale(1.08);
}

.mult-nav-btn.disabled {
  opacity: 0.25;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
  box-shadow: none;
}

.mult-page-info {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  min-width: 34px;
  text-align: center;
}

/* Premium highlights and glows for prediction cards */
.prediction-card {
  position: relative;
  overflow: hidden;
}

/* Border accents on the left edge */
.prediction-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: all 0.2s ease;
}

/* Category card overrides for upcoming items only (past items are dimmed anyway) */
.prediction-card:not(.past-item).pred-card-seeds::before {
  background: var(--color-grass);
}
.prediction-card:not(.past-item).pred-card-seeds {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.05), inset 0 0 10px rgba(76, 175, 80, 0.03);
}
.prediction-card:not(.past-item).pred-card-seeds:hover {
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
}

.prediction-card:not(.past-item).pred-card-gears::before {
  background: var(--rarity-rare);
}
.prediction-card:not(.past-item).pred-card-gears {
  box-shadow: 0 4px 12px rgba(41, 182, 246, 0.05), inset 0 0 10px rgba(41, 182, 246, 0.03);
}
.prediction-card:not(.past-item).pred-card-gears:hover {
  box-shadow: 0 8px 20px rgba(41, 182, 246, 0.12);
  border-color: rgba(41, 182, 246, 0.3);
}

.prediction-card:not(.past-item).pred-card-props::before {
  background: var(--color-wood);
}
.prediction-card:not(.past-item).pred-card-props {
  box-shadow: 0 4px 12px rgba(161, 98, 7, 0.05), inset 0 0 10px rgba(161, 98, 7, 0.03);
}
.prediction-card:not(.past-item).pred-card-props:hover {
  box-shadow: 0 8px 20px rgba(161, 98, 7, 0.12);
  border-color: rgba(161, 98, 7, 0.3);
}

/* Special Moons premium styling */
.prediction-card:not(.past-item).pred-phase-goldmoon::before {
  background: var(--rarity-legendary);
}
.prediction-card:not(.past-item).pred-phase-goldmoon {
  border-color: rgba(255, 202, 40, 0.3);
  box-shadow: 0 0 15px rgba(255, 202, 40, 0.12), inset 0 0 15px rgba(255, 202, 40, 0.05);
}
.prediction-card:not(.past-item).pred-phase-goldmoon:hover {
  border-color: var(--rarity-legendary);
  box-shadow: 0 0 25px rgba(255, 202, 40, 0.25);
}

.prediction-card:not(.past-item).pred-phase-bloodmoon::before {
  background: var(--color-danger);
}
.prediction-card:not(.past-item).pred-phase-bloodmoon {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.12), inset 0 0 15px rgba(239, 68, 68, 0.05);
}
.prediction-card:not(.past-item).pred-phase-bloodmoon:hover {
  border-color: var(--color-danger);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}

.prediction-card:not(.past-item).pred-phase-rainbowmoon::before {
  background: linear-gradient(to bottom, #ff007f, #ffaa00, #33ff33, #00aaff, #aa00ff);
}
.prediction-card:not(.past-item).pred-phase-rainbowmoon {
  border-color: rgba(171, 71, 188, 0.3);
  box-shadow: 0 0 15px rgba(171, 71, 188, 0.15), inset 0 0 15px rgba(171, 71, 188, 0.06);
}
.prediction-card:not(.past-item).pred-phase-rainbowmoon:hover {
  border-color: var(--rarity-epic);
  box-shadow: 0 0 25px rgba(171, 71, 188, 0.3), inset 0 0 15px rgba(171, 71, 188, 0.1);
  animation: rainbowBorder 4s linear infinite;
}

@keyframes rainbowBorder {
  0%, 100% { border-color: #ff007f; }
  25% { border-color: #ffaa00; }
  50% { border-color: #33ff33; }
  75% { border-color: #00aaff; }
}

.prediction-card:not(.past-item).pred-card-weathers::before {
  background: var(--rarity-epic);
}
.prediction-card:not(.past-item).pred-card-weathers {
  box-shadow: 0 4px 12px rgba(171, 71, 188, 0.05), inset 0 0 10px rgba(171, 71, 188, 0.03);
}
.prediction-card:not(.past-item).pred-card-weathers:hover {
  box-shadow: 0 8px 20px rgba(171, 71, 188, 0.12);
  border-color: rgba(171, 71, 188, 0.3);
}

.prediction-card:not(.past-item).pred-phase-chainedmoon::before {
  background: #708090;
}
.prediction-card:not(.past-item).pred-phase-chainedmoon {
  border-color: rgba(112, 128, 144, 0.3);
  box-shadow: 0 0 15px rgba(112, 128, 144, 0.12), inset 0 0 15px rgba(112, 128, 144, 0.05);
}
.prediction-card:not(.past-item).pred-phase-chainedmoon:hover {
  border-color: #708090;
  box-shadow: 0 0 25px rgba(112, 128, 144, 0.25);
}

.prediction-card:not(.past-item).pred-phase-pizzamoon::before {
  background: linear-gradient(to bottom, #ff5722, #ffeb3b, #4caf50);
}
.prediction-card:not(.past-item).pred-phase-pizzamoon {
  border-color: rgba(255, 235, 59, 0.3);
  box-shadow: 0 0 15px rgba(255, 235, 59, 0.12), inset 0 0 15px rgba(255, 235, 59, 0.05);
}
.prediction-card:not(.past-item).pred-phase-pizzamoon:hover {
  border-color: #ffeb3b;
  box-shadow: 0 0 25px rgba(255, 235, 59, 0.25);
}

.prediction-card:not(.past-item).pred-phase-solareclipse::before {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}
.prediction-card:not(.past-item).pred-phase-solareclipse {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.6);
}
.prediction-card:not(.past-item).pred-phase-solareclipse:hover {
  border-color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.prediction-card:not(.past-item).pred-phase-starfall::before {
  background: linear-gradient(to bottom, #00bfff, #ffd700);
}
.prediction-card:not(.past-item).pred-phase-starfall {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15), inset 0 0 15px rgba(0, 191, 255, 0.06);
}
.prediction-card:not(.past-item).pred-phase-starfall:hover {
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.prediction-card:not(.past-item).pred-phase-aurora::before {
  background: linear-gradient(to bottom, #00ffcc, #3333ff, #ff00ff);
}
.prediction-card:not(.past-item).pred-phase-aurora {
  border-color: rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.15), inset 0 0 15px rgba(255, 0, 255, 0.06);
}
.prediction-card:not(.past-item).pred-phase-aurora:hover {
  border-color: #00ffcc;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.35);
}

.predictions-warning {
  background: rgba(255, 179, 0, 0.05);
  border: 1px solid rgba(255, 179, 0, 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #ffb300;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-left {
    position: static;
  }
}

/* Weather UI & Prediction Card Image Styles */
.weather-icon-img-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 6px auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.weather-box:hover .weather-icon-img-wrapper {
  transform: scale(1.1);
}

.weather-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.weather-emoji-fallback {
  align-items: center;
  justify-content: center;
  font-size: 28px;
  width: 100%;
  height: 100%;
}

.pred-item-image-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 9px;
  border: 1px solid rgba(56, 201, 255, 0.12);
  overflow: hidden;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.prediction-card:hover .pred-item-image-wrapper {
  transform: scale(1.08);
}

.pred-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  border: none;
  background: none;
}

.pred-emoji-fallback {
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .weather-icon-img-wrapper {
    width: 32px;
    height: 32px;
    margin: 0;
  }
  .weather-emoji-fallback {
    font-size: 20px;
  }
}

/* Smart fit for narrow or partially opened browser windows */
.dashboard-header,
.header-logo,
.header-right,
.stats-card,
.shop-section,
.predictions-section,
.api-docs-section,
.main-layout,
.main-content-area,
.filters-bar,
.cards-grid,
.prediction-grid,
.auction-grid,
.weather-container,
.weather-settings-panel {
  min-width: 0;
}

@media (max-width: 1080px) {
  .quick-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auction-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .prediction-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  }
}

@media (max-width: 920px) {
  .dashboard-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .weather-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }

  .weather-settings-panel {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  }
}

@media (max-width: 430px) {
  .quick-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-switch-container {
    width: 100%;
    gap: 1px;
    padding: 3px;
  }

  .lang-btn {
    flex: 1 1 0;
    min-width: 18px;
    padding: 4px 1px;
    font-size: 8px;
    border-radius: 6px;
  }

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

/* FAQ & Info Section Styling */
.faq-details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  transition: all 0.3s ease;
}
.faq-details:last-of-type {
  border-bottom: none;
}
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}
.faq-details[open] .faq-summary::after {
  transform: rotate(180deg);
}
.faq-content {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.guide-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.guide-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.guide-step-icon {
  color: #10b981; /* green indicator */
  margin-top: 3px;
  font-size: 0.9rem;
}
.guide-step-text strong {
  color: var(--text-primary);
}
.guide-step-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}
.info-highlight-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid #10b981;
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin-top: 20px;
}
.info-highlight-box a {
  color: #10b981;
  text-decoration: underline;
  font-weight: 600;
}
.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-link-group {
  display: flex;
  gap: 16px;
}
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--text-primary);
}
.footer-disclaimer {
  max-width: 800px;
  margin: 16px auto 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}
.seo-info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 920px) {
  .seo-info-container {
    grid-template-columns: 1fr;
  }
}

/* Modal Popup Styling & Footer Button Triggers */
button.footer-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0;
  cursor: pointer;
  outline: none;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: rgba(18, 18, 24, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-body-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
}
.modal-body-content h4 {
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}
.modal-body-content p {
  margin-bottom: 12px;
}
.modal-body-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.modal-body-content li {
  margin-bottom: 4px;
}
