/* Resource Download Link Styling */
.resource-link {
  display: inline-block;
  color: var(--accent-primary);
  background: rgba(0,212,170,0.08);
  border: 1px solid var(--accent-primary);
  border-radius: var(--border-radius-small);
  padding: 0.18em 0.7em 0.18em 0.7em;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  margin-left: 0.3em;
  margin-right: 0.3em;
  box-shadow: 0 2px 8px rgba(0,212,170,0.07);
}
.resource-link:hover, .resource-link:focus {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-secondary);
  text-decoration: underline;
  box-shadow: 0 4px 16px rgba(0,212,170,0.18);
}
/* Navbar Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  min-width: 90px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 1001;
  min-width: 170px;
  padding: 0.5rem 0;
}
.nav-dropdown-menu.show {
  display: block;
}
.nav-dropdown-menu .dropdown-item {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-dropdown-menu .dropdown-item:hover {
  background: rgba(0,212,170,0.08);
  color: var(--accent-primary);
}
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --card-bg: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --accent-primary: #00d4aa;
  --accent-secondary: #0099cc;
  --accent-danger: #ff4757;
  --accent-warning: #ffa502;
  --border-color: #333333;
  --border-color-hover: #444444;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-intense: 0 12px 40px rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-card: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-small: 8px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.version-counter {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-small);
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.version-counter:hover {
  opacity: 1;
}

/* Shard Flipping Styles */
.shard-flipping-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.shard-header {
  margin-bottom: 2rem;
}

.shard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shard-filters {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-group input,
.filter-group select {
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 120px;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.opportunity-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.opportunity-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.opportunity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.opportunity-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.opportunity-title i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.opportunity-title span:first-of-type {
  font-size: 1.1rem;
  font-weight: 600;
}

.opportunity-type {
  background: var(--accent-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.opportunity-profit {
  font-size: 1.2rem;
  font-weight: bold;
}

.opportunity-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-small);
}

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

.detail-row .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-row .value {
  font-weight: 500;
}

.opportunity-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.breakdown-section h4 {
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.material-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.material-item:last-child {
  border-bottom: none;
}

.material-name {
  font-size: 0.9rem;
}

.material-cost {
  color: var(--accent-warning);
  font-weight: 500;
  font-size: 0.9rem;
}

.opportunity-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn.primary {
  background: var(--gradient-primary);
  color: white;
}

.action-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.no-opportunities,
.error-message {
  text-align: center;
  padding: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.no-opportunities i,
.error-message i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.no-opportunities h3,
.error-message h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.no-opportunities p,
.error-message p {
  color: var(--text-secondary);
  white-space: pre-line;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .shard-flipping-container {
    padding: 1rem;
  }
  
  .shard-filters {
    flex-direction: column;
    gap: 1rem;
  }
  
  .opportunity-breakdown {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .opportunity-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .opportunity-actions {
    justify-content: center;
  }
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.navbar {
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  animation: slideInDown 0.6s ease-out;
  transition: var(--transition-smooth);
}

.navbar:hover {
  background: rgba(26, 26, 26, 0.98);
  border-bottom-color: var(--accent-primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.version-counter {
  position: absolute;
  top: -8px;
  right: 2rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.3;
  font-weight: 300;
  pointer-events: none;
  user-select: none;
  font-family: 'Courier New', monospace;
}

.nav-title {
  font-size: 1.8rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.silver-k-logo {
  font-size: 2rem;
  font-weight: bold;
  color: #c0c0c0;
  text-shadow: 
    0 0 5px rgba(192, 192, 192, 0.3),
    0 0 10px rgba(192, 192, 192, 0.2),
    0 0 15px rgba(192, 192, 192, 0.1);
  margin-right: 0.25rem;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(45deg, #e8e8e8, #a0a0a0, #c0c0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: silverShine 2s infinite;
}

@keyframes silverShine {
  0%, 100% { text-shadow: 0 0 5px rgba(192, 192, 192, 0.3); }
  50% { text-shadow: 0 0 10px rgba(192, 192, 192, 0.6), 0 0 20px rgba(192, 192, 192, 0.3); }
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-small);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  animation: fadeInRight 0.8s ease-out;
  /* Fix animation overlap issue */
  animation-fill-mode: both;
  will-change: transform, background, border-color, box-shadow;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.2);
  /* Ensure smooth transition back */
  transition: var(--transition-smooth);
}

.nav-btn:not(:hover) {
  /* Smooth transition back to original state */
  transition: var(--transition-smooth);
}

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

.nav-btn i {
  margin-right: 0.5rem;
}

/* Enhanced button styles */
.enhanced-btn {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(0, 212, 170, 0.3);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.enhanced-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.enhanced-btn:hover::before {
  left: 100%;
}

.enhanced-btn:hover {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
  transform: translateY(-3px);
}

.refresh-btn:hover {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.2) 0%, rgba(0, 212, 170, 0.1) 100%);
  border-color: #2ed573;
  box-shadow: 0 8px 32px rgba(46, 213, 115, 0.3);
}


.donate-btn {
  background: linear-gradient(135deg, rgba(255, 170, 210, 0.671) 0%, rgba(255, 120, 161, 0.639) 100%);
  color: #fff !important;
  border: none;
}
.donate-btn:hover, .nav-dropdown-menu .donate-btn:hover {
  background: linear-gradient(135deg, rgba(255, 200, 230, 0.651) 0%, rgba(255, 140, 180, 0.623) 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 32px rgba(255, 170, 210, 0.18);
}

.discord-btn:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(114, 137, 218, 0.1) 100%);
  border-color: #5865f2;
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
}

.enhanced-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.2);
}

.add-method-btn {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-small);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeInRight 0.8s ease-out;
}

.add-method-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.add-method-btn:hover::before {
  left: 100%;
}

.add-method-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
  animation: pulse 0.6s ease-in-out;
}

.add-method-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.filters {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters input, .filters select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  min-width: 200px;
  transition: all 0.3s ease;
}

.filters input:focus, .filters select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.methods-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.methods-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.method-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.5s ease-out;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.6), rgba(46, 213, 115, 0.4));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.method-card:hover::before {
  transform: scaleX(1);
}

.method-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-intense);
  border-color: rgba(0, 212, 170, 0.5);
  background: linear-gradient(145deg, rgba(37, 37, 37, 0.8), rgba(26, 26, 26, 0.9));
}

.method-card:active {
  transform: translateY(-4px) scale(1.01);
  transition: var(--transition-fast);
}

.method-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.method-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.method-category {
  background: var(--accent-secondary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.method-profit {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.method-details {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.method-requirements {
  background: var(--bg-tertiary);
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-warning);
}

.loading {
  text-align: center;
  padding: 4rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.5s ease-out;
}

.loading i {
  animation: spin 1s linear infinite;
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.loading-text {
  color: var(--text-secondary);
  animation: pulse 2s ease-in-out infinite;
}

.error-text {
  color: var(--accent-danger);
  background: rgba(255, 71, 87, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(255, 71, 87, 0.3);
  animation: fadeInUp 0.3s ease-out;
}

/* Loading skeleton cards */
.skeleton-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 1rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-line.title {
  width: 60%;
  height: 1.5rem;
}

.skeleton-line.subtitle {
  width: 40%;
}

.skeleton-line.content {
  width: 80%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--gradient-card);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-intense);
  animation: slideInDown 0.4s ease-out;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-header h3 {
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.close {
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

.form-group textarea {
  min-height: 80px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

#addMethodForm {
  padding: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.form-actions button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.form-actions button[type="button"] {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.form-actions button:hover {
  transform: translateY(-2px);
}

/* Calculator Modal Styles */
.calc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.calc-tab {
  display: none;
}

.calc-tab.active {
  display: block;
}

.calc-input-group {
  margin-bottom: 1rem;
}

.calc-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.calc-input-group input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.calc-input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.calc-result {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1rem;
  min-height: 100px;
}

.loading-text {
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

.error-text {
  color: var(--accent-danger);
  text-align: center;
  font-weight: 500;
}

.profit-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profit-line:last-child {
  border-bottom: none;
}

.profit-label {
  color: var(--text-secondary);
}

.profit-value {
  color: var(--text-primary);
  font-weight: 500;
}

.total-profit {
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Authentication Modal Styles */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-group small {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: block;
}

.user-profile {
  text-align: center;
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.profile-info h3 {
  margin: 0;
  color: var(--text-primary);
}

.profile-status {
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Method Submission Modal Styles */
.method-submission-content {
  max-width: 700px;
  max-height: 90vh;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.calculator-content {
  padding: 1.5rem;
}

.calculator-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

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

.calc-tab {
  display: none;
}

.calc-tab.active {
  display: block;
}

.calc-result {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  margin-top: 1.5rem;
  min-height: 100px;
}

.calc-result h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.calc-result .profit-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.calc-result .profit-line:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.calc-result .profit-label {
  color: var(--text-secondary);
}

.calc-result .profit-value {
  color: var(--text-primary);
  font-weight: 500;
}

.calc-result .total-profit {
  color: var(--accent-primary);
  font-weight: 700;
}

.calc-result .loading-text {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
}

.calc-result .error-text {
  color: var(--accent-danger);
  text-align: center;
  padding: 1rem;
}

/* Mochi Bear Calculator Specific Styles */
.mochi-info {
  background: var(--bg-tertiary);
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-warning);
  margin-bottom: 1.5rem;
}

.mochi-info h4 {
  color: var(--accent-warning);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.mochi-info p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.mochi-info p:last-child {
  margin-bottom: 0;
}

.rate-presets {
  display: flex;
  gap: 0.8rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.preset-btn:hover {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .rate-presets {
    flex-direction: column;
  }
  
  .preset-btn {
    min-width: auto;
  }
}

/* Price History Chart Styles */
.price-history-info {
  background: var(--bg-tertiary);
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-secondary);
  margin-bottom: 1.5rem;
}

.price-history-info h4 {
  color: var(--accent-secondary);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.price-history-info p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

.time-range-selector {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.time-btn {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 80px;
}

.time-btn.active {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
}

.time-btn:hover:not(.active) {
  background: var(--border-color);
  color: var(--text-primary);
}

.chart-container {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  min-height: 400px;
  position: relative;
}

.chart-container canvas {
  max-height: 350px;
}

.chart-loading, .chart-error, .chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.chart-loading i, .chart-error i, .chart-placeholder i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.chart-loading i {
  animation: spin 1s linear infinite;
}

.chart-error {
  color: var(--accent-danger);
}

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

.price-analysis {
  background: var(--bg-tertiary);
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  margin-top: 1rem;
}

.price-analysis h5 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

.analysis-item {
  text-align: center;
  padding: 0.8rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.analysis-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.analysis-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.analysis-value.positive {
  color: var(--accent-primary);
}

.analysis-value.negative {
  color: var(--accent-danger);
}

.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.chart-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--accent-danger);
  text-align: center;
}

@media (max-width: 600px) {
  .time-range-selector {
    flex-direction: row;
  }
  
  .time-btn {
    min-width: 70px;
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
  }
  
  .chart-container {
    padding: 1rem;
    min-height: 300px;
  }
  
  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Method Detail Page Styles */
.method-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.method-detail {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.method-header-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.method-title h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.category-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.category-crafting { background: var(--accent-primary); color: var(--bg-primary); }
.category-trading { background: var(--accent-secondary); color: white; }
.category-farming { background: var(--accent-warning); color: var(--bg-primary); }
.category-mining { background: #8e44ad; color: white; }
.category-combat { background: var(--accent-danger); color: white; }
.category-other { background: var(--text-muted); color: white; }

.profit-display {
  text-align: right;
}

.profit-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
}

.profit-label {
  color: var(--text-secondary);
  font-size: 1rem;
}

.price-section {
  margin-bottom: 2rem;
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
}

.price-section h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.price-item.profit {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 170, 0.1);
}

.price-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.price-value {
  color: var(--text-primary);
  font-weight: 600;
}

.info-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
}

.info-section h3 {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.detailed-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
}

.detailed-section h3 {
  color: var(--accent-warning);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.detail-item {
  background: var(--bg-secondary);
  padding: 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.detail-item h4 {
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.detail-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.update-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.update-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.refresh-btn {
  background: var(--accent-secondary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: #007bb3;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .version-counter {
    top: -6px;
    right: 1rem;
    font-size: 0.6rem;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .nav-btn img {
    width: 16px !important;
    height: 16px !important;
  }

  .method-submission-content {
    max-width: 95%;
    margin: 2% auto;
  }

  .auth-actions, .profile-actions {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .filters {
    padding: 0 1rem;
    flex-direction: column;
  }

  .methods-container {
    padding: 0 1rem 4rem;
  }

  .methods-list {
    grid-template-columns: 1fr;
  }

  .method-detail-container {
    padding: 1rem;
  }

  .method-header-detail {
    flex-direction: column;
    gap: 1rem;
  }

  .profit-display {
    text-align: left;
  }

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

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

  .update-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Sub-methods styles */
.sub-methods-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.sub-methods-section {
  margin: 2rem 0;
  animation: fadeInUp 0.6s ease-out;
}

.sub-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.sub-method-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.sub-method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sub-method-card:hover::before {
  transform: scaleX(1);
}

.sub-method-card:hover {
  background: linear-gradient(145deg, #252525, var(--bg-secondary));
  border-color: var(--accent-primary);
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.sub-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sub-method-header h4 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.1rem;
}

.sub-method-header i {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.sub-method-card:hover .sub-method-header i {
  color: var(--accent-primary);
}

.sub-method-card p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.sub-method-description {
  color: var(--text-secondary);
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.sub-method-profit {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1rem;
}

.sub-method-action {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.5rem;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sub-method-card:hover .sub-method-action {
  background: var(--accent-primary);
  color: #000;
  transform: translateY(-2px);
}

.sub-method-action i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.sub-method-card:hover .sub-method-action i {
  transform: translateX(3px);
}

.top-choice {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 4px 20px rgba(108, 117, 125, 0.2);
}

.top-choice-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-primary);
  color: #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.crafting-info, .additional-materials, .drop-rate-info {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.crafting-info {
  border-left: 3px solid var(--accent-warning);
}

.additional-materials {
  border-left: 3px solid var(--accent-secondary);
}

.drop-rate-info {
  border-left: 3px solid #e17055;
}

.sub-method-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.profit-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.parent-link {
  color: var(--accent-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1rem;
  transition: color 0.2s ease;
}

.parent-link:hover {
  color: var(--accent-primary);
}

/* Method card indicator for sub-methods */
.method-card .method-name i {
  float: right;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* Recommended badges and tags */
.recommended-badge {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 0.5rem;
  animation: sparkle 2s infinite alternate;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 4px;
}

.method-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-tag.category-bazaar {
  background: linear-gradient(135deg, #2ed573, #1dd1a1);
  color: white;
}

.method-tag.category-auction {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.method-tag.recommended {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #000;
  animation: sparkle 2s infinite alternate;
}

.method-tag.sub-method {
  background: linear-gradient(135deg, #a55eea, #8854d0);
  color: white;
}

.method-tag.crafting {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  color: white;
}

.recommended-tag {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #000;
  font-weight: 600;
}

.profit-tag {
  background: var(--accent-primary);
  color: #000;
}

@keyframes sparkle {
  0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.4); }
}

/* Info boxes styling */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 1rem;
  transition: var(--transition-fast);
}

.info-box:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.info-box-value {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Font consistency for method card text */
.method-card p,
.method-card .profit,
.method-card .cost,
.method-card .xp-rate,
.method-card .drop-rate,
.method-card .description,
.method-card .level-req,
.method-card .gear-req {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  padding: 2px 0;
}

/* Price history button styling */
.price-history-btn {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius-small);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.price-history-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
  filter: brightness(1.1);
}

.price-history-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 212, 170, 0.4);
}

/* My Rates Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-intense);
}

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

.modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.4rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 67, 67, 0.2);
  color: var(--accent-danger);
}

.modal-body {
  padding: 1.5rem;
}

.custom-rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.rate-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rate-input-group label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.rate-input-group input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.rate-input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

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

.btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Red back button */
.back-btn {
  background: var(--accent-danger) !important;
  color: var(--text-primary) !important;
}

.back-btn:hover {
  background: #ff6b7a !important;
  transform: translateY(-2px);
}

/* Method Detail Page Enhancements */
.method-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.method-title-section h1 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.method-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.method-profit-display {
  text-align: right;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.method-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.stat-card i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.method-details-section {
  margin-bottom: 2rem;
}

.details-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.details-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.1);
}

.details-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.details-card h3 i {
  font-size: 1.2rem;
}

.details-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h4 {
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.detail-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.detail-section strong {
  color: var(--accent-warning);
}

.sub-methods-section {
  margin-bottom: 2rem;
}

.sub-methods-section h3 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sub-methods-list {
  display: grid;
  gap: 1.5rem;
}

.sub-method-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.sub-method-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.sub-method-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sub-method-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.sub-method-profit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.sub-method-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.price-history-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.price-history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.price-history-header h3 {
  color: var(--accent-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-history-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.item-selector {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 200px;
}

.time-range-buttons {
  display: flex;
  gap: 0.5rem;
}

.time-range-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.time-range-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.time-range-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.chart-container {
  min-height: 400px;
  position: relative;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 1rem;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
}

.chart-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Offers Section */
.offers-section {
  margin-top: 2rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.offers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.offers-header h4 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offers-tabs {
  display: flex;
  gap: 0.5rem;
}

.offers-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.offers-tab:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.offers-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.offers-container {
  position: relative;
}

.offers-list {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

/* Custom scrollbar for offers */
.offers-list::-webkit-scrollbar {
  width: 8px;
}

.offers-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.offers-list::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.offers-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Firefox scrollbar */
.offers-list {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

.offers-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.offer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.offer-item:last-child {
  border-bottom: none;
}

.offer-item:hover {
  background: var(--bg-tertiary);
}

.offer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.offer-price {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.offer-amount {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.offer-timestamp {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.buy-offer .offer-price {
  color: var(--accent-primary);
}

.sell-offer .offer-price {
  color: var(--accent-danger);
}

.offers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.offers-empty i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Both offers layout */
.offers-both-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.offers-column h5 {
  color: var(--accent-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offers-column .offers-list {
  border-radius: 0 0 6px 6px;
  margin-top: 0;
}

.offers-column:first-child h5 {
  color: var(--accent-primary);
}

.offers-column:last-child h5 {
  color: var(--accent-danger);
}

/* Responsive offers section */
@media (max-width: 768px) {
  .offers-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .offers-tabs {
    align-self: center;
  }
  
  .offer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .offers-both-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading-content {
  text-align: center;
  color: var(--text-secondary);
}

.loading-content i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* Cache Info Panel */
.cache-info-panel {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.cache-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.cache-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cache-stat i {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.cache-stat span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cache-stat label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Last Updated Timestamp */
.last-updated {
  position: fixed;
  bottom: 8px;
  left: 8px;
  font-size: 0.7rem;
  color: rgba(156, 163, 175, 0.4);
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.last-updated:hover {
  opacity: 0.8;
}

/* ===== ALERTS PAGE STYLES ===== */

.alerts-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 2rem;
  gap: 2rem;
  display: flex;
  flex-direction: column;
}

.alerts-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.alerts-title-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.alerts-title-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.alerts-stats {
  display: flex;
  gap: 2rem;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.create-alert-section {
  margin-bottom: 1rem;
}

.create-alert-card {
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.create-alert-card h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Price Chart Section */
.price-chart-section {
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.chart-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.chart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius-small);
  transition: var(--transition-fast);
}

.chart-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.chart-container {
  padding: 1.5rem;
  height: 400px;
}

.chart-info {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.price-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.price-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.price-stats .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.price-stats .value {
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: bold;
}

.alert-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.autocomplete-container {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:hover {
  background: var(--bg-secondary);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.item-name {
  font-weight: 500;
  color: var(--text-primary);
}

.item-id {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-danger {
  background: var(--accent-danger);
  color: white;
}

.btn-danger:hover {
  background: #e74c3c;
  transform: translateY(-2px);
}

.active-alerts-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
}

.alert-controls {
  display: flex;
  gap: 1rem;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-alerts {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.no-alerts i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-alerts h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.alert-item {
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
  box-shadow: var(--shadow);
}

.alert-item:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.alert-item.paused {
  opacity: 0.6;
  border-color: var(--text-muted);
}

.alert-info {
  flex: 1;
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.alert-item-name {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 0;
}

.alert-status {
  font-size: 0.9rem;
}

.status-active {
  color: var(--accent-primary);
}

.status-paused {
  color: var(--text-muted);
}

.alert-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.alert-condition {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

.alert-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.alert-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  padding: 0.5rem;
  border: none;
  border-radius: var(--border-radius-small);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action:hover {
  background: var(--bg-secondary);
  transform: scale(1.1);
}

.btn-action.edit-btn:hover {
  color: var(--accent-secondary);
}

.btn-action.delete-btn:hover {
  color: var(--accent-danger);
}

.recent-notifications-section {
  margin-bottom: 2rem;
}

.recent-notifications-section h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-notifications {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.no-notifications i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notification-item {
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: var(--transition-fast);
}

.notification-item:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.notification-details {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.notification-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.toast-container {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 300px;
  box-shadow: var(--shadow-hover);
  animation: slideInRight 0.3s ease-out;
}

.toast-success {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.toast-error {
  border-color: var(--accent-danger);
  color: var(--accent-danger);
}

.toast-info {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.toast-alert {
  border-color: var(--accent-warning);
  color: var(--accent-warning);
  animation: pulse 1s infinite;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design for Alerts */
@media (max-width: 768px) {
  .alerts-container {
    padding: 6rem 1rem 1rem;
  }
  
  .alerts-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  
  .alerts-stats {
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .alert-controls {
    justify-content: center;
  }
  
  .alert-item {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .alert-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }
  
  .alert-actions {
    justify-content: center;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
  }
  
  .toast {
    min-width: auto;
  }
}

/* Chart Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-intense);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.chart-modal {
  width: 900px;
  max-width: 95vw;
}

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

.modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius-small);
  transition: var(--transition-fast);
}

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

.modal-body {
  padding: 1.5rem;
}

.chart-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.price-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.price-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.price-stats .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.price-stats .value {
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .chart-modal {
    width: 95vw;
    height: 90vh;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .price-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
