:root {
  --primary-color: #F7931A; /* Bitcoin Orange */
  --primary-hover: #E07D10; /* Darker Bitcoin Orange */
  --secondary-color: #f3f4f6; /* Light Gray */
  --accent-color: #1A3D7C; /* Dark Blue */
  --dark-text: #1f2937; /* Near Black */
  --light-text: #6b7280; /* Gray */
  --danger-color: #ef4444; /* Red */
  --warning-color: #f59e0b; /* Amber */
  --info-color: #3b82f6; /* Blue */
  --success-color: #10b981; /* Green */
  --border-color: #e5e7eb; /* Light Gray Border */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7931a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--dark-text);
  line-height: 1.5;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header"
    "sidebar main";
  gap: 20px;
  min-height: 100vh;
}

/* Header Styles */
header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand h1 {
  color: var(--primary-color);
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.bitcoin-symbol {
  color: var(--primary-color);
  margin-right: 5px;
  font-size: 2.2rem;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-top: 2px;
  letter-spacing: 0.5px;
  position: relative;
}

.brand-tagline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  opacity: 0.5;
}

/* Bitcoin-inspired heading styles */
h2, h3, h4 {
  position: relative;
}

h2 strong, h3 strong, h4 strong {
  color: var(--primary-color);
}

.tab-header h2::before {
  background-color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar {
  grid-area: sidebar;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  height: calc(100vh - 120px);
  position: sticky;
  top: 20px;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--dark-text);
  font-size: 1.1rem;
  font-weight: 600;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.sidebar-action:hover {
  background-color: var(--secondary-color);
  transform: translateX(5px);
}

.action-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f3f4f6;
}

.action-label {
  font-weight: 500;
}

/* Main Content Area */
.main-content {
  grid-area: main;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 25px;
  overflow: hidden;
}

/* Footer Styles */
.app-footer {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-content .copyright {
  margin: 0;
  color: var(--light-text);
  font-size: 0.875rem;
}

.footer-content .attribution {
  margin: 0;
  color: var(--light-text);
  font-size: 0.875rem;
}

.footer-content .attribution a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-content .attribution a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Mode Selector */
.mode-selector {
  margin: 0 0 30px;
  text-align: center;
  background-color: rgba(247, 147, 26, 0.05); /* Very light Bitcoin orange */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(247, 147, 26, 0.1);
}

.mode-toggle {
  display: inline-flex;
  background-color: white;
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 15px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.mode-btn {
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background-color: transparent;
  color: #6b7280;
  min-width: 140px;
  position: relative;
  transition: all 0.3s;
  z-index: 2;
}

.mode-btn.active {
  color: white;
}

.mode-toggle::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background-color: var(--primary-color);
  border-radius: 25px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.mode-toggle.creator-active::before {
  transform: translateX(100%);
}

.mode-description {
  color: #6b7280;
  margin: 0 auto;
  font-style: italic;
  max-width: 600px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Tab Styles */
.tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
  gap: 10px;
}

.tab {
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #6b7280;
  position: relative;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  color: #4f46e5;
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Content Sections */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.tab-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  position: relative;
  padding-left: 15px;
}

.tab-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Search and Filter Bar */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background-color: var(--secondary-color);
  border-radius: var(--radius-md);
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: white;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-options select {
  padding: 10px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: white;
  font-size: 0.95rem;
  min-width: 130px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px;
}

.filter-options select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.view-toggle {
  display: flex;
  align-items: center;
}

.view-btn {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  margin-left: 5px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* NFT Gallery Styles */
.nft-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.nft-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(247, 147, 26, 0.15);
}

.nft-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(247, 147, 26, 0.15);
  border-color: var(--primary-color);
}

.nft-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.nft-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.nft-card:hover .nft-image {
  transform: scale(1.05);
}

.nft-format-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7em;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 600;
  z-index: 2;
}

.nft-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.nft-card:hover .nft-image-overlay {
  opacity: 1;
}

.nft-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.nft-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937;
}

.nft-info p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 0.9rem;
}

.nft-info .creator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.creator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-name {
  font-size: 0.85rem;
  color: #6b7280;
}

.nft-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.price-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.price-amount {
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
}

.price-amount::before {
  content: "₿";
  margin-right: 4px;
  font-size: 0.9em;
}

.nft-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.nft-actions button {
  flex: 1;
  font-size: 0.9rem;
  padding: 8px 0;
}

/* List View */
.nft-gallery.list-view {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nft-gallery.list-view .nft-card {
  display: flex;
  flex-direction: row;
  height: 120px;
}

.nft-gallery.list-view .nft-image-container {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.nft-gallery.list-view .nft-info {
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.nft-gallery.list-view .nft-info h3 {
  width: 100%;
  margin-bottom: 8px;
}

.nft-gallery.list-view .nft-price {
  margin-left: auto;
  border-top: none;
  padding-top: 0;
}

/* Results Summary */
.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  color: var(--light-text);
  font-size: 0.9em;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(247, 147, 26, 0.2);
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(247, 147, 26, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm, .btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background-color: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background-color: #e5e7eb;
  color: #4b5563;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-success {
  background-color: #10b981;
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Creator and User Panels */
.creator-panels, .user-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.creator-panel, .user-panel {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s, box-shadow 0.3s;
}

.creator-panel:hover, .user-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.creator-panel h3, .user-panel h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #1f2937;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.creator-panel h3::before, .user-panel h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background-color: #6366f1;
  border-radius: 2px;
}

.panel-content {
  padding: 5px;
}

/* Collections Grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.collection-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s;
  height: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.collection-image {
  height: 140px;
  overflow: hidden;
  position: relative;
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.collection-card:hover .collection-image img {
  transform: scale(1.05);
}

.collection-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.collection-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.collection-info h4 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937;
}

.collection-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

.collection-info p .count-icon {
  font-size: 0.9em;
}

.add-collection {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  padding: 20px;
  text-align: center;
  background-color: rgba(99, 102, 241, 0.05);
  border: 2px dashed #e5e7eb;
  transition: all 0.3s;
}

.add-collection:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.plus-icon {
  font-size: 32px;
  margin-bottom: 10px;
  color: #6366f1;
  transition: transform 0.3s;
}

.collection-card:hover .plus-icon {
  transform: scale(1.2);
}

.collection-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.collection-card:hover .collection-stats {
  transform: translateY(0);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.7rem;
  color: #6b7280;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.stat-card {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  border: 1px solid #e5e7eb;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #6b7280;
}

/* NFT Mini Gallery */
.nft-mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.nft-mini-card {
  position: relative;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s;
  height: 90px;
  border: 1px solid #e5e7eb;
}

.nft-mini-card:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nft-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nft-mini-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.nft-mini-card:hover::after {
  opacity: 1;
}

/* Creator and User Actions */
.creator-actions, .user-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.creator-actions .btn, .user-actions .btn {
  min-width: 150px;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.creator-actions .btn::after, .user-actions .btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.creator-actions .btn:hover::after, .user-actions .btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background-color: white;
  color: #6366f1;
  border: 1px solid #6366f1;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(99, 102, 241, 0.1);
}

/* Wallet Section */
.wallet-section {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 15px;
  margin-top: 10px;
}

.wallet-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.wallet-info h4 {
  margin: 0 0 5px 0;
  color: var(--light-text);
  font-size: 0.85rem;
  font-weight: 500;
}

.address {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--dark-text);
  background-color: var(--secondary-color);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  word-break: break-all;
}

.balance {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
}

.small-text {
  font-size: 0.85rem;
  color: var(--light-text);
  text-align: center;
  margin: 5px 0;
}

/* Loading States */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--light-text);
  font-style: italic;
  background-color: var(--secondary-color);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

/* Favorite and Following Styles */
.favorite-toggle, .follow-toggle {
  cursor: pointer;
  transition: transform 0.2s;
}

.favorite-toggle {
  background: none;
  border: none;
  font-size: 1.2em;
  padding: 5px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  backdrop-filter: blur(2px);
}

.favorite-toggle:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.9);
}

.follow-toggle {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
}

.follow-toggle.active {
  background-color: var(--primary-hover);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
  position: relative;
  top: -1px;
}

.user-actions .btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
}

/* About Modal Styles */
.about-content {
  padding: 1.5rem;
}

.about-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-logo h2 {
  font-size: 2.5rem;
  color: #6366f1;
  margin: 0;
}

.about-logo .tagline {
  color: #6b7280;
  font-size: 1rem;
}

.about-section {
  margin-bottom: 1.5rem;
}

.about-section h4 {
  font-size: 1.125rem;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
}

.about-section p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.about-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.about-attribution {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--light-text);
}

.about-attribution a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.about-attribution a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

.modal {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #4b5563;
}

.welcome-modal {
  max-width: 700px;
}

.welcome-content {
  padding: 1.5rem;
}

.welcome-step {
  display: none;
  text-align: center;
  padding: 1rem 0 2rem;
}

.welcome-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.welcome-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.welcome-step h4 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.welcome-step p {
  color: #6b7280;
  max-width: 500px;
  margin: 0.5rem auto;
  line-height: 1.6;
}

.welcome-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.welcome-dots {
  display: flex;
  gap: 0.5rem;
}

.welcome-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #e5e7eb;
  cursor: pointer;
  transition: background-color 0.2s;
}

.welcome-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.welcome-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Form Styles */
form {
  padding: 1.5rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
}

form input[type="text"],
form input[type="number"],
form input[type="password"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

form button[type="submit"] {
  margin-top: 0.5rem;
}

.form-note {
  padding: 0.875rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.form-note code {
  background-color: #e5e7eb;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: monospace;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }
  
  .sidebar {
    display: none;
  }
  
  .quick-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  .search-filter-bar {
    flex-direction: column;
  }
  
  .filter-options {
    width: 100%;
  }
  
  .results-summary {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .creator-actions, .user-actions {
    flex-wrap: wrap;
  }
  
  .nft-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
  }
  
  .nft-gallery {
    grid-template-columns: 1fr;
  }
}

/* Bitcoin-inspired Style Enhancements */
.app-container {
  background-color: transparent;
}

.app-header {
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f7931a' fill-opacity='0.05'%3E%3Cpath d='M0 0h20L0 20z'/%3E%3C/g%3E%3C/svg%3E");
  border-bottom: 1px solid rgba(247, 147, 26, 0.2);
}

/* Add subtle Bitcoin gradients to collection cards */
.collection-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.collection-card:hover::after {
  opacity: 1;
}

/* Logo Styles */
.logo-link {
  display: block;
  text-decoration: none;
}

.logo-image {
  height: 50px;
  width: auto;
  display: block;
}

/* Footer Styles */
.app-footer {
  background-color: white;
  border-top: 1px solid rgba(247, 147, 26, 0.2);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f7931a' fill-opacity='0.05'%3E%3Cpath d='M0 0h20L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright, .attribution {
  margin: 0;
  font-size: 0.875rem;
  color: var(--light-text);
}

.attribution a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.attribution a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Bitcoin Wallet Styles */
.bitcoin-wallet {
  border: 1px solid rgba(247, 147, 26, 0.3);
  background-color: rgba(247, 147, 26, 0.03);
}

.bitcoin-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-description {
  font-size: 0.875rem;
  color: var(--light-text);
  margin: 0.75rem 0;
  line-height: 1.5;
}

.btn-bitcoin {
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.btn-bitcoin::after {
  content: '₿';
  position: absolute;
  right: 10px;
  opacity: 0.3;
  font-size: 1.2rem;
}

.btn-bitcoin:hover {
  background-color: var(--primary-hover);
}

/* Inscriptions Browser Styles */
.inscriptions-modal {
  max-width: 900px;
  height: 80vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
}

.inscriptions-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.inscriptions-info {
  background-color: rgba(247, 147, 26, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
}

.inscriptions-info p {
  margin: 0;
  color: var(--dark-text);
}

.inscriptions-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.inscription-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
  position: relative;
}

.inscription-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.inscription-image-container {
  position: relative;
  padding-top: 100%;
  background-color: #f3f4f6;
  overflow: hidden;
}

.inscription-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inscription-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
}

.inscription-card:hover .inscription-overlay {
  opacity: 1;
}

.inscription-type {
  background-color: rgba(247, 147, 26, 0.9);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}

.inscription-number {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.inscriptions-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Inscription Detail Styles */
.inscription-detail-content {
  padding: 1.5rem;
}

.inscription-image-container {
  max-height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  background-color: #f3f4f6;
}

.inscription-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.inscription-info {
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.info-label {
  font-weight: 600;
  color: var(--light-text);
  width: 120px;
  flex-shrink: 0;
}

.info-value {
  flex: 1;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.875rem;
}

.inscription-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
  .footer-content {
    padding: 0 1rem;
  }
  
  .app-footer {
    padding: 1.5rem 0;
  }
  
  .footer-content .copyright,
  .footer-content .attribution {
    font-size: 0.8rem;
  }
  
  .inscriptions-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .inscription-detail-content {
    padding: 1rem;
  }
  
  .inscription-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .info-label {
    width: 100px;
    font-size: 0.8rem;
  }
  
  .info-value {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 0.75rem;
  }
  
  .app-footer {
    padding: 1rem 0;
  }
  
  .footer-content .copyright,
  .footer-content .attribution {
    font-size: 0.75rem;
  }
  
  .inscriptions-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .inscriptions-modal {
    height: 90vh;
    margin: 0.5rem;
  }
  
  .inscription-detail-content {
    padding: 0.75rem;
  }
  
  .inscription-image-container {
    max-height: 200px;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .info-label {
    width: auto;
    font-size: 0.75rem;
    font-weight: 700;
  }
  
  .info-value {
    font-size: 0.7rem;
    width: 100%;
  }
}

/* Improved Touch Targets */
@media (hover: none) and (pointer: coarse) {
  .inscription-card {
    min-height: 120px;
  }
  
  .sidebar-link {
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
  
  .tab {
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
  
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .btn-sm {
    min-height: 40px;
    padding: 0.625rem 1rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --light-text: #333333;
  }
  
  .nft-card,
  .wallet-card,
  .inscription-card {
    border: 2px solid #000000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .nft-card:hover,
  .inscription-card:hover {
    transform: none;
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Uncomment and customize if dark mode is implemented */
  /*
  :root {
    --primary-color: #F7931A;
    --secondary-color: #2d3748;
    --dark-text: #f7fafc;
    --light-text: #a0aec0;
    --border-color: #4a5568;
    --card-bg: #2d3748;
    --body-bg: #1a202c;
  }
  */
}