/* Global Styles & Variables */
:root {
  --primary-color: #ff6b00;
  /* Lava Orange */
  --primary-hover: #ff8c00;
  --secondary-color: #00d2ff;
  /* Mythril Blue */
  --bg-dark: #0a0a0c;
  /* Deep Obsidian */
  --bg-card: #141418;
  /* Dark Grey */
  --bg-input: #1f1f25;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: #2a2a30;
  --success-color: #00ff9d;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --container-width: 1440px;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.discord-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-nav-link svg {
  vertical-align: middle;
  transition: all 0.2s ease;
}

.discord-nav-link:hover svg {
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 140px 0 80px;
  background: radial-gradient(circle at top center, #1a1a20 0%, var(--bg-dark) 70%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Calculator Module */
.calculator-module {
  background-color: transparent;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  padding: 2rem 0;
}

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

.calc-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.calc-status {
  font-size: 0.85rem;
  color: var(--success-color);
  background: rgba(0, 255, 157, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.calc-body {
  padding: 2rem;
}

.calc-step {
  margin-bottom: 2rem;
}

.calc-step label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

select,
input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

select:focus,
input:focus {
  border-color: var(--primary-color);
}

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

.ore-item {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.ore-item:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.ore-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ore-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.ore-input {
  text-align: center;
  padding: 6px;
  font-size: 0.9rem;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  background: #1a1a20;
  padding: 1.5rem;
  border-radius: 12px;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.result-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.result-item .value.highlight {
  color: var(--success-color);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.cta-button.full-width {
  width: 100%;
}

/* About Section */
.about-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--bg-dark);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.lead-text {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.about-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.check-icon {
  font-size: 1.5rem;
}

.feature-list strong {
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
}

/* Steps Section */
.steps-section {
  padding: var(--spacing-lg) 0;
  background-color: #0f0f12;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.steps-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--text-muted);
}

.cta-container {
  text-align: center;
}

/* SEO Content Section */
.seo-content-section {
  padding: var(--spacing-lg) 0;
}

.seo-content-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.seo-content-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 900px;
}

/* Discord CTA Section */
.discord-cta-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(114, 137, 218, 0.05) 100%);
  border-top: 1px solid rgba(88, 101, 242, 0.2);
  border-bottom: 1px solid rgba(88, 101, 242, 0.2);
}

.discord-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.discord-icon {
  width: 100px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: #5865f2;
  animation: float 3s ease-in-out infinite;
}

.discord-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.discord-cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.discord-cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.discord-btn {
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
  font-size: 1.1rem;
  padding: 16px 40px;
  transition: all 0.3s ease;
}

.discord-btn:hover {
  background: linear-gradient(135deg, #4752c4 0%, #5b6eae 100%);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--bg-card);
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.faq-item p {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background-color: #050506;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* ========================================
   NEW CALCULATOR MODULE STYLES
   ======================================== */

/* Mode Switcher */
.mode-switcher {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.mode-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.mode-btn .icon {
  font-size: 1.25rem;
}

.mode-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--primary-color), #ff8c00);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

/* Calculator Layout */
.calc-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 2rem;
  min-height: 600px;
}

/* Ore Selection Panel */
.ore-selection-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
  max-height: 800px;
  display: flex;
  flex-direction: column;
}

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

.panel-header h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.collapse-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.collapse-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Search and Filter Bar */
.search-filter-bar {
  margin-bottom: 1rem;
}

.ore-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}

.ore-search-input:focus {
  border-color: var(--primary-color);
}

.ore-search-input::placeholder {
  color: var(--text-muted);
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Location Filters */
.location-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-input);
  border-radius: 8px;
}

.location-filters.hidden {
  display: none;
}

.location-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.location-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.location-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Ore Grid - Updated */
.ore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  max-height: 500px;
}

.ore-grid::-webkit-scrollbar {
  width: 8px;
}

.ore-grid::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 4px;
}

.ore-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.ore-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.ore-card {
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ore-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.ore-card.selected {
  border-color: var(--success-color);
  background: rgba(0, 255, 157, 0.05);
}

.ore-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: var(--bg-input);
  overflow: hidden;
}

.ore-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback for missing ore icons */
.ore-icon-wrapper.missing-icon::after {
  content: '❓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.5;
}

.ore-icon-wrapper.missing-icon .ore-icon-img {
  opacity: 0;
}

.slot-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Fallback for missing slot icons */
.ore-slot-icon.missing-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ore-slot-icon.missing-icon::after {
  content: '❓';
  font-size: 1.5rem;
  opacity: 0.5;
}

.ore-slot-icon.missing-icon .slot-icon-img {
  opacity: 0;
}

.ore-trait-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid var(--bg-input);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ore-info {
  text-align: center;
  width: 100%;
}

.ore-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.ore-multiplier {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 700;
}

.ore-count {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Results Panel */
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Predicted Result */
.predicted-result {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

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

.result-header h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.result-header .ore-count {
  position: static;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: transparent;
  padding: 0;
}

.result-display {
  min-height: 200px;
  background: var(--bg-input);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Selected Ores Bar */
.selected-ores-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

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

.bar-header span {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.clear-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-btn:hover {
  border-color: #f44336;
  color: #f44336;
}

.selected-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ore-slot {
  background: var(--bg-input);
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  position: relative;
}

.ore-slot.empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ore-slot.filled {
  border-style: solid;
  border-color: var(--success-color);
  background: rgba(0, 255, 157, 0.05);
  cursor: pointer;
}

.ore-slot.filled:hover {
  border-color: #f44336;
}

.ore-slot .ore-slot-icon {
  font-size: 1.5rem;
}

.ore-slot .ore-slot-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.ore-slot .ore-slot-multi {
  font-size: 0.7rem;
  color: var(--primary-color);
}

.ore-slot .remove-icon {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  font-size: 0.75rem;
  color: #f44336;
  opacity: 0;
  transition: opacity 0.2s;
}

.ore-slot.filled:hover .remove-icon {
  opacity: 1;
}

.multiplier-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: 8px;
}

.multiplier-display .label {
  font-weight: 600;
  color: var(--text-muted);
}

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

/* Forge Chances */
.forge-chances {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.forge-chances h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.chances-content {
  min-height: 150px;
}

.chances-content .placeholder {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}

.chance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.chance-item:last-child {
  margin-bottom: 0;
}

.chance-name {
  font-weight: 600;
  color: #fff;
}

.chance-value {
  font-weight: 700;
  color: var(--success-color);
}

/* Traits & Composition */
.traits-composition {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.traits-composition h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.traits-content {
  min-height: 120px;
}

.traits-content .placeholder {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}

.trait-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-input);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.trait-item:last-child {
  margin-bottom: 0;
}

.trait-icon {
  font-size: 1.25rem;
}

.trait-info {
  flex: 1;
}

.trait-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

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

.composition-bar {
  margin-bottom: 0.75rem;
}

.composition-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.composition-label .name {
  color: #fff;
  font-weight: 600;
}

.composition-label .percentage {
  color: var(--primary-color);
  font-weight: 700;
}

.composition-progress {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.composition-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 1200px) {
  .calc-layout {
    grid-template-columns: 400px 1fr;
  }

  .ore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .ore-selection-panel {
    max-height: none;
  }

  .ore-grid {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    /* Simple hide for now, script will handle toggle */
  }

  .calc-results {
    grid-template-columns: 1fr;
  }

  .mode-switcher {
    flex-direction: column;
  }

  .mode-btn {
    width: 100%;
  }

  .selected-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .ore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discord-icon {
    width: 70px;
    height: 56px;
  }

  .discord-cta-content h2 {
    font-size: 1.6rem;
  }

  .discord-cta-content p {
    font-size: 1rem;
  }

  .discord-cta-section {
    padding: var(--spacing-lg) 0;
  }
}