/* ── Marketplace Styles ──────────────────────────────────────────────────── */

.marketplace-hero {
  text-align: center;
  margin-bottom: 48px;
}

.marketplace-hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.marketplace-hero-icon {
  color: #f7931a;
  margin-bottom: 12px;
}

.marketplace-hero p {
  font-size: 1rem;
  color: #6b7394;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Earn CTA Banner ─────────────────────────────────────────────── */

.earn-banner {
  margin-bottom: 40px;
}

.earn-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.06), rgba(168, 85, 247, 0.06));
  border: 1px solid #2a3050;
}

.earn-banner-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: #9ca3c0;
}

.earn-banner-text strong {
  color: #e8eaf0;
}

.earn-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.earn-banner-btn {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7931a, #e67e00);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.earn-banner-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ── View Tabs (Shop / My Items) ───────────────────────────────────── */

.view-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}

.view-tab-btn {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 4px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7394;
  cursor: pointer;
  transition: all 0.2s;
}

.view-tab-btn:hover {
  color: #e8eaf0;
}

.view-tab-btn.active {
  color: #f7931a;
  border-bottom-color: #f7931a;
}

/* ── Filter Dropdowns ────────────────────────────────────────────────── */

.marketplace-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-select {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 32px 8px 14px;
  border-radius: 10px;
  border: 1px solid #2a3050;
  background: #0d0f14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7394' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 12px;
  color: #e8eaf0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.filter-select:hover,
.filter-select:focus {
  border-color: #f7931a;
  outline: none;
}

.filter-select option {
  background: #0d0f14;
  color: #e8eaf0;
}

/* ── Item Grid ─────────────────────────────────────────────────────────── */

.item-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.item-card {
  background: #0d0f14;
  border: 1px solid #1e2233;
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 16px;
}

.item-card:hover {
  border-color: #f7931a;
  box-shadow: 0 0 24px rgba(247, 147, 26, 0.12);
}

.item-card.rarity-Common:hover {
  border-color: #e8eaf0;
  box-shadow: 0 0 24px rgba(232, 234, 240, 0.12);
}

.item-card.rarity-Uncommon:hover {
  border-color: #22c55e;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.item-card.rarity-Rare:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.item-card.rarity-Epic:hover {
  border-color: #d946ef;
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.12);
}

.item-card.rarity-Legendary:hover {
  border-color: #f7931a;
  box-shadow: 0 0 24px rgba(247, 147, 26, 0.12);
}

.item-card-owned.rarity-Common {
  border-color: #e8eaf0;
  box-shadow: 0 0 16px rgba(232, 234, 240, 0.1);
}

.item-card-owned.rarity-Uncommon {
  border-color: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.item-card-owned.rarity-Rare {
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.item-card-owned.rarity-Epic {
  border-color: #d946ef;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.15);
}

.item-card-owned.rarity-Legendary {
  border-color: #f7931a;
  box-shadow: 0 0 16px rgba(247, 147, 26, 0.2);
}

/* .item-card-listed — orange frame removed; listed items live in their own tab */
.item-card-listed {}

.item-card-image {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid #2a3050;
  background: #111320;
  padding: 4px;
}

.item-card-image svg {
  width: 100%;
  height: 100%;
}

.item-card.rarity-Legendary .item-card-image {
  border-color: #f7931a;
  background: rgba(247, 147, 26, 0.06);
  box-shadow: 0 0 12px rgba(247, 147, 26, 0.15);
}

.item-card.rarity-Epic .item-card-image {
  border-color: #d946ef;
  background: rgba(217, 70, 239, 0.06);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.15);
}

.item-card.rarity-Common .item-card-image {
  border-color: #e8eaf0;
  background: rgba(232, 234, 240, 0.04);
}

.item-card.rarity-Rare .item-card-image {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.item-card.rarity-Uncommon .item-card-image {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.item-card-info {
  flex: 1;
  min-width: 0;
}

.item-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e8eaf0;
  margin-bottom: 2px;
}

.item-card-meta {
  font-size: 0.75rem;
  color: #6b7394;
  margin-bottom: 4px;
}

.item-card-meta .slot {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.item-card-meta .rarity {
  font-weight: 700;
  /* color set inline per rarity */
}

.item-card-desc {
  font-size: 0.78rem;
  color: #4e5570;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card-buffs {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.item-card-buff {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00e676;
  background: rgba(0, 230, 118, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.item-card-buff-special {
  color: #f7931a;
  background: rgba(247, 147, 26, 0.1);
}

.rpg-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 2px;
}

.rpg-stat {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.stat-value-special {
  color: #f7931a !important;
}

.btn-claim-carryover {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #f7931a;
  background: transparent;
  color: #f7931a;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.2s;
}

.btn-claim-carryover:hover {
  background: rgba(247, 147, 26, 0.1);
}

.btn-claim-carryover:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.item-card-slot {
  display: none;
}

.item-card-rarity {
  display: none;
}

.item-card-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}

.item-card-price-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4e5570;
}

.item-card-price {
  font-size: 1rem;
  font-weight: 600;
  color: #f7931a;
}

.item-card-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  background: #1a1d28;
  white-space: nowrap;
}

.item-card-status.available {
  color: #00e676;
}

.item-card-status.sold {
  color: #ef4444;
}

.item-card-status.owned {
  color: #00e676;
}

.item-card-status.listed-sale {
  color: #ff9800;
}

.item-card-supply {
  font-size: 0.65rem;
  color: #6b7394;
  text-align: right;
  margin-top: 2px;
}

/* ── Grid View Mode ───────────────────────────────────────────────────── */

.item-grid.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.grid-mode .item-card {
  flex-direction: column;
  text-align: center;
  padding: 16px 12px;
}

.grid-mode .item-card-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
}

.grid-mode .item-card-desc {
  display: none;
}

.grid-mode .item-card-buffs {
  justify-content: center;
}

.grid-mode .item-card-price-block {
  align-items: center;
}

/* ── View Toggle ──────────────────────────────────────────────────────── */

.view-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #2a3050;
  background: transparent;
  color: #6b7394;
  cursor: pointer;
  transition: all 0.2s;
}

.view-toggle-btn:hover {
  border-color: #6b7394;
  color: #e8eaf0;
}

.view-toggle-btn.active {
  color: #f7931a;
  border-color: #f7931a;
}

/* ── Clickable Activity Name ──────────────────────────────────────────── */

.activity-name-link {
  color: #e8eaf0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-name-link:hover {
  text-decoration: underline;
  color: #f7931a;
}

/* ── Item Detail Modal ─────────────────────────────────────────────────── */

.item-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.item-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.item-detail-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 36px 32px;
  border-radius: 20px;
  background: #0d0f14;
  border: 1px solid #2a3050;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.item-detail-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #6b7394;
  font-size: 1.5rem;
  cursor: pointer;
}

.item-detail-image {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}

.item-detail-image svg {
  width: 100%;
  height: 100%;
}

.item-detail-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.item-detail-rarity {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  /* color set inline per rarity */
}

.item-detail-slot {
  font-size: 0.8rem;
  color: #6b7394;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.item-detail-desc {
  font-size: 0.9rem;
  color: #9ca3c0;
  line-height: 1.5;
  margin-bottom: 20px;
  font-style: italic;
}

.item-detail-stats {
  margin-bottom: 20px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: #111320;
}

.stat-row .stat-name {
  color: #6b7394;
  font-size: 0.85rem;
  font-weight: 500;
}

.stat-row .stat-value {
  color: #00e676;
  font-size: 0.85rem;
  font-weight: 700;
}

.item-detail-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f7931a;
  margin-bottom: 16px;
}

/* ── Quantity picker ────────────────────────────────────────────────── */

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111320;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 14px;
}
.qty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7394;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-btn {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #2a3050;
  background: #0d0f14;
  color: #e8eaf0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.qty-btn:hover { border-color: #f7931a; color: #f7931a; }
.qty-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #e8eaf0;
  min-width: 28px;
  text-align: center;
}

.btn-buy-item {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f7931a, #e67e00);
  color: #fff;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}

.btn-buy-item:hover {
  opacity: 0.9;
}

.btn-buy-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── My Items Section ──────────────────────────────────────────────────── */

.my-items-section {
  margin-bottom: 48px;
}

.my-items-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.my-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.my-item-card {
  background: #0d0f14;
  border: 1px solid #1e2233;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.my-item-card.rarity-Common { border-color: #e8eaf0; }
.my-item-card.rarity-Uncommon { border-color: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,0.1); }
.my-item-card.rarity-Rare { border-color: #3b82f6; box-shadow: 0 0 10px rgba(59,130,246,0.1); }
.my-item-card.rarity-Epic { border-color: #d946ef; box-shadow: 0 0 10px rgba(217,70,239,0.1); }
.my-item-card.rarity-Legendary { border-color: #f7931a; box-shadow: 0 0 10px rgba(247,147,26,0.15); }

.my-item-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.my-item-image svg {
  width: 100%;
  height: 100%;
}

.my-item-info {
  flex: 1;
  min-width: 0;
}

.my-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.my-item-status {
  font-size: 0.8rem;
  color: #6b7394;
  margin-bottom: 8px;
}

.my-item-actions {
  display: flex;
  gap: 8px;
}

.btn-list, .btn-delist {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #2a3050;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-list {
  color: #f7931a;
  border-color: #f7931a;
}

.btn-list:hover {
  background: rgba(247, 147, 26, 0.1);
}

.btn-delist {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-delist:hover {
  background: rgba(239, 68, 68, 0.1);
}

.list-price-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2a3050;
  background: #111320;
  color: #e8eaf0;
  width: 90px;
}

.my-items-empty {
  text-align: center;
  color: #6b7394;
  padding: 32px;
  font-size: 0.9rem;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: #0d2818;
  color: #00e676;
  border: 1px solid #00e676;
}

.toast.error {
  background: #2d1216;
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* ── Spinner ────────────────────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Market Activity Feed ─────────────────────────────────────────────── */

.marketplace-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.marketplace-main {
  flex: 3;
  min-width: 0;
}

.marketplace-sidebar {
  width: 460px;
  flex-shrink: 0;
  position: sticky;
  top: 32px;
}

.market-activity-section {
  margin-bottom: 0;
}

.market-activity-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.activity-list::-webkit-scrollbar {
  width: 4px;
}
.activity-list::-webkit-scrollbar-track {
  background: transparent;
}
.activity-list::-webkit-scrollbar-thumb {
  background: #2a3050;
  border-radius: 4px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0d0f14;
  border: 1px solid #1e2233;
  font-size: 0.85rem;
}

.activity-who {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #6b7394;
  flex-shrink: 0;
}

.activity-action {
  font-weight: 700;
  flex-shrink: 0;
}

.activity-name {
  color: #e8eaf0;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #f7931a;
  flex-shrink: 0;
}

.activity-time {
  font-size: 0.75rem;
  color: #4e5570;
  flex-shrink: 0;
}

.activity-empty {
  text-align: center;
  color: #6b7394;
  padding: 32px;
  font-size: 0.9rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .marketplace-hero h2 {
    font-size: 1.6rem;
  }

  .my-items-grid {
    grid-template-columns: 1fr;
  }

  .item-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .item-card-image {
    width: 52px;
    height: 52px;
  }

  .item-card-desc {
    display: none;
  }

  .earn-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .earn-banner-text {
    flex-direction: column;
    gap: 8px;
  }

  .item-card-buffs {
    flex-direction: column;
    gap: 4px;
  }

  .item-grid.grid-mode {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .marketplace-content {
    flex-direction: column;
  }

  .marketplace-sidebar {
    width: 100%;
  }

  .item-detail-content {
    padding: 24px 20px;
  }

  .item-card-name {
    font-size: 0.85rem;
  }

  .item-card-meta {
    font-size: 0.72rem;
  }

  .item-card-price-block {
    min-width: 80px;
    max-width: 110px;
  }

  .item-card-price-label {
    font-size: 0.65rem;
  }

  .rpg-stats-row {
    display: none;
  }

  .drop-floor-hint {
    font-size: 0.65rem;
    padding: 2px 4px;
  }

  .marketplace-tabs {
    gap: 6px;
  }

  .tab-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

/* ── Rarity Badges (RPG / PvP) ──────────────────────────────────────── */

.item-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1.4;
}

.badge-rpg {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-pvp {
  background: rgba(217, 70, 239, 0.15);
  color: #d946ef;
  border: 1px solid rgba(217, 70, 239, 0.35);
}

/* ── Activity name link ──────────────────────────────────────────────── */

.activity-name-link {
  color: #e8eaf0;
  text-decoration: none;
  cursor: pointer;
}

.activity-name-link:hover {
  text-decoration: underline;
  color: #f7931a;
}

/* ── Mythical Item Card (locked preview in Shop) ────────────────────── */

.item-card-mythical {
  opacity: 0.62;
  filter: grayscale(0.4);
  background: linear-gradient(145deg, #0c0c12, #10101a) !important;
  border-color: rgba(200,160,255,0.25) !important;
  position: relative;
  overflow: hidden;
}
.item-card-mythical::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(200,160,255,0.06));
  pointer-events: none;
}
.item-card-mythical:hover {
  opacity: 0.78;
  border-color: rgba(200,160,255,0.5) !important;
  filter: grayscale(0.15);
}
.item-card-image-mythical {
  filter: grayscale(0.6) brightness(0.7);
}
.mythical-rarity-text {
  background: linear-gradient(90deg, #c8a0ff, #ffffff, #c8a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.mythical-lock-icon {
  font-size: 0.75rem;
  opacity: 0.7;
  vertical-align: middle;
}
.mythical-drop-label {
  background: linear-gradient(90deg, rgba(200,160,255,0.15), rgba(200,160,255,0.08));
  border: 1px solid rgba(200,160,255,0.3);
  color: #c8a0ff !important;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Mythical Section ────────────────────────────────────────────────── */

.view-tab-mythical {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(200,160,255,0.08));
  border-color: rgba(200,160,255,0.3) !important;
}
.view-tab-mythical.active {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(200,160,255,0.2)) !important;
  color: #fff !important;
  border-color: rgba(200,160,255,0.6) !important;
  text-shadow: 0 0 12px rgba(220,200,255,0.7);
}

.mythical-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 40px;
}
.mythical-header {
  text-align: center;
  margin-bottom: 36px;
}
.mythical-gem {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(220,200,255,0.6));
}
.mythical-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e8eaf0 30%, #c8a0ff 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.mythical-sub {
  color: #9095b0;
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}
.mythical-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.mythical-card {
  background: linear-gradient(145deg, #0f1018, #12101a);
  border: 1px solid rgba(200,160,255,0.18);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.mythical-card:hover {
  border-color: rgba(200,160,255,0.45);
  transform: translateY(-2px);
}
.mythical-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.mythical-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8eaf0;
  margin-bottom: 8px;
}
.mythical-card p {
  font-size: 0.82rem;
  color: #6b7394;
  line-height: 1.65;
}
.mythical-card p strong {
  color: #c8a0ff;
}
.mythical-footer {
  text-align: center;
  background: linear-gradient(145deg, #0c0d10, #100d18);
  border: 1px solid rgba(200,160,255,0.14);
  border-radius: 14px;
  padding: 24px 20px;
}
.mythical-counter {
  font-size: 1.05rem;
  color: #e8eaf0;
  display: block;
  margin-bottom: 10px;
}
.mythical-counter strong {
  color: #c8a0ff;
  font-size: 1.3rem;
}
.mythical-hint {
  font-size: 0.82rem;
  color: #6b7394;
  line-height: 1.6;
  margin: 0;
}

/* ── Stat Range Display ──────────────────────────────────────────────── */

.rpg-stats-range { opacity: 0.75; }
.rpg-stat-range { font-size: 0.72rem; color: #94a3b8; background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.2); border-radius: 4px; padding: 2px 7px; }
.rpg-stat-range strong { color: #f7931a; }
.stat-value-range { color: #f7931a; font-size: 0.85rem; }
.stat-row-hint { margin-top: 4px; }

/* My Items stats row */
.my-item-stats { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }

/* ── Drop-Only Cards ─────────────────────────────────────────────────── */

.item-card-drop-only { filter: grayscale(0.7); opacity: 0.7; }
.item-card-drop-only:hover { border-color: #2a3050; transform: none; box-shadow: none; }

/* ── Floor Drop Hint Badge ───────────────────────────────────────────── */

.drop-floor-hint {
  display: inline-block; font-size: 0.7rem; color: #f7931a;
  background: rgba(247,147,26,0.1); border: 1px solid rgba(247,147,26,0.3);
  border-radius: 4px; padding: 2px 6px; margin-top: 4px;
}

/* ── Activity Pagination ─────────────────────────────────────────────── */

.activity-pagination { display:flex; align-items:center; justify-content:space-between; padding:6px 2px; margin-top:6px; border-top:1px solid #1e2540; }
.activity-pagination button { background:#131929; border:1px solid #2a3050; color:#94a3b8; border-radius:4px; padding:3px 10px; font-size:0.75rem; cursor:pointer; }
.activity-pagination button:disabled { opacity:0.35; cursor:default; }
.activity-pagination button:not(:disabled):hover { border-color:#f7931a; color:#f7931a; }
.activity-pagination span { font-size:0.72rem; color:#6b7394; }
