/* Root Variables */
:root {
  --bg: #0f172a;
  --panel: rgba(15, 23, 42, 0.95);
  --card-bg: rgba(17, 24, 39, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #3b82f6;
  --hover-bg: rgba(255, 255, 255, 0.05);
  --success: #4ade80;
  --warning: #fbbf24;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ==================== HEADER ==================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 2000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #36373a, #27252b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.header-logo-text {
  font-size: 18px;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  background: var(--hover-bg);
  color: var(--text);
}

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

.header-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.header-btn:hover {
  background: var(--hover-bg);
}

/* ==================== HOME PAGE ==================== */
.home-container {
  margin-top: 80px;
  padding: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.home-header {
  text-align: center;
  margin-bottom: 40px;
}

.home-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.home-header p {
  font-size: 16px;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(17, 24, 39, 0.8);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.project-header h2 {
  font-size: 24px;
}

.collections-count {
  font-size: 14px;
  color: var(--muted);
}

.collections-list {
  display: grid;
  gap: 12px;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.collection-item:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
  transform: translateX(4px);
}

.collection-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #36373a, #27252b);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.collection-info {
  flex: 1;
}

.collection-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.collection-stats {
  font-size: 13px;
  color: var(--muted);
}

.collection-arrow {
  color: var(--muted);
  transition: all 0.2s;
}

.collection-item:hover .collection-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ==================== MARKETPLACE PAGE ==================== */
.marketplace-container {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 60px);
}

/* ==================== FILTERS SIDEBAR ==================== */
.filters-sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
}

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

.filters-header h3 {
  font-size: 18px;
}

.clear-filters-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters-btn:hover {
  background: rgba(96, 165, 250, 0.1);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffc107;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-section {
  margin-bottom: 12px;
}

.filter-sublabel {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.filter-select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.3);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.price-input:focus {
  outline: none;
  border-color: var(--accent);
}

.price-separator {
  color: var(--muted);
}

/* ==================== MAIN CONTENT ==================== */
.marketplace-main {
  overflow-y: auto;
  padding: 24px;
}

.collection-header {
  margin-bottom: 24px;
}

.collection-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.collection-stats-row {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.controls-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-wrapper label {
  font-size: 14px;
  color: var(--muted);
}

.sort-select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

.results-count {
  font-size: 14px;
  color: var(--muted);
  margin-left: auto;
}

/* ==================== NFT GRID ==================== */
.stacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stack-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.stack-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.2);
}

.stack-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  background-size: cover;
  background-position: center;
}

.stack-info {
  padding: 16px;
}

.stack-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-traits {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stack-trait {
  padding: 4px 8px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.stack-price {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Enhanced price display with fees */
.price-main {
  margin-bottom: 8px;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.price-usd {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-usd::before {
  content: "≈";
  opacity: 0.6;
}

.price-breakdown {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

.price-detail {
  font-size: 11px;
  color: var(--muted);
}

.stack-listings {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Alternative currencies */
.alt-currencies {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.alt-currency {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.stack-card:hover .alt-currency {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.05);
  color: var(--accent);
}

/* Price glow effect on hover */
.stack-card:hover .price-value {
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}

.stack-card:hover .price-usd {
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}

/* ==================== PAGINATION ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--hover-bg);
  border-color: var(--accent);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #07102a;
  border: none;
  font-weight: 600;
}

.pagination-info {
  font-size: 14px;
  color: var(--muted);
}

/* ==================== LOADING & EMPTY STATES ==================== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(96, 165, 250, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty-state svg {
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

/* Dynamic filter styles */
#dynamicFilters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .marketplace-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    display: none;
  }

  .stacks-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .home-container {
    padding: 20px;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrapper {
    max-width: none;
  }

  .results-count {
    margin-left: 0;
  }

  .stacks-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}
/* ==================== WALLET CONNECTION ==================== */
.btn-connect {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.wallet-connected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.wallet-avatar {
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.wallet-address-short {
  font-family: monospace;
  font-size: 13px;
  color: var(--text);
}

.btn-disconnect {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-disconnect:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

/* ==================== MY LISTS DROPDOWN ==================== */
.lists-dropdown {
  position: relative;
}

.lists-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 3000;
  max-height: 400px;
  overflow-y: auto;
}

.lists-menu.show {
  display: block;
}

.lists-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.btn-create-small {
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-create-small:hover {
  background: var(--accent-2);
}

.lists-menu-content {
  padding: 8px;
}

.list-menu-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-menu-item:hover {
  background: var(--hover-bg);
}

.list-menu-info {
  flex: 1;
}

.list-menu-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.list-menu-count {
  font-size: 12px;
  color: var(--muted);
}

.loading-lists {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ==================== WATCHLIST BUTTON ON CARDS ==================== */
.stack-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-watchlist {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-watchlist:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-watchlist.in-list {
  background: rgba(96, 165, 250, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==================== MODALS ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-primary {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.btn-secondary {
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--hover-bg);
  border-color: var(--muted);
}

.select-list-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select-list-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-list-item:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
}

.select-list-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.select-list-count {
  font-size: 12px;
  color: var(--muted);
}
/* ==================== MY NFTs STYLES ====================
   Add this to the end of marketplace.css */

/* Collection Tabs */
.collection-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  padding: 0 24px;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Portfolio Stats Banner */
.portfolio-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1),
    rgba(59, 130, 246, 0.05)
  );
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
}

.stat-card {
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* My NFT Card Enhancements */
.my-nft-card {
  position: relative;
}

.my-nft-card::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0.9;
}

.stack-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quantity-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.total-value {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
}

/* Token IDs Modal */
.token-ids-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.token-id-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.token-id-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.token-id-value {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.btn-copy {
  padding: 6px 10px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: var(--accent);
}

/* Button Variants */
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-secondary.btn-small {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary.btn-small:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
}

.btn-primary.btn-small {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
}

.btn-primary.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Empty State Enhancements */
.empty-state h3 {
  margin-top: 16px;
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .collection-tabs {
    overflow-x: auto;
    padding: 0 12px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .portfolio-stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .portfolio-stats-banner {
    grid-template-columns: 1fr;
  }

  .stack-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .quantity-badge {
    align-self: flex-start;
  }
}
/* ==================== WALLET VIEWER STYLES ====================
   Add this to the end of marketplace.css or my_nfts.css */

/* Wallet Viewer Component */
.wallet-viewer {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(96, 165, 250, 0.05)
  );
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wallet-viewer-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-viewer-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-viewer-address {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wallet-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: "Courier New", monospace;
  font-size: 14px;
  transition: all 0.2s;
}

.wallet-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.wallet-input::placeholder {
  color: var(--muted);
  font-style: italic;
}

.btn-view-wallet {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.btn-view-wallet:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.btn-view-wallet:active {
  transform: translateY(0);
}

.btn-view-own {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-own:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Enhanced Portfolio Stats Banner - with wallet info */
.portfolio-stats-banner .stat-card:first-child {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.portfolio-stats-banner .stat-value {
  word-break: break-all;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wallet-viewer {
    padding: 16px;
  }

  .wallet-viewer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wallet-viewer-address {
    flex-direction: column;
    width: 100%;
  }

  .wallet-input {
    width: 100%;
    font-size: 12px;
  }

  .btn-view-wallet {
    width: 100%;
  }

  .btn-view-own {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .wallet-viewer-label {
    font-size: 12px;
  }

  .wallet-input {
    padding: 10px 12px;
  }

  .btn-view-wallet {
    padding: 10px 20px;
    font-size: 14px;
  }
}
