/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1520;
  --bg-card: #131a28;
  --bg-card-hover: #182035;
  --accent: #00b4d8;
  --accent-glow: rgba(0, 180, 216, 0.3);
  --accent-dim: rgba(0, 180, 216, 0.1);
  --text-primary: #e0e6ed;
  --text-secondary: #7a8ba0;
  --text-muted: #4a5568;
  --border: rgba(0, 180, 216, 0.12);
  --border-hover: rgba(0, 180, 216, 0.25);
  --enabled: #22c55e;
  --disabled: #ef4444;
  --t1: #8bc34a;
  --t2: #4caf50;
  --t3: #00bcd4;
  --t4: #7c4dff;
  --t5: #e040fb;
  --t6: #ff5722;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 6px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 180, 216, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(0, 180, 216, 0.04);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--enabled);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.btn-connect {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #0a0e17;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-connect:hover {
  box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* === Page Header (sub-pages) === */
.page-header {
  padding: 100px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 180, 216, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 48px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 1px;
}

/* === Info Grid === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.info-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.info-icon {
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.info-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.info-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* === Progression Section === */
.progression-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: -32px;
  margin-bottom: 40px;
}

.progression-timeline {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.prog-phase {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.prog-phase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.prog-week {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  font-family: "Courier New", monospace;
}

.prog-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.prog-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.progression-summary {
  display: flex;
  justify-content: center;
  gap: 40px;
}

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

.prog-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Courier New", monospace;
}

.prog-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === Home Link Row === */
.home-link-row {
  text-align: center;
  margin-top: 24px;
}

.home-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: inline-block;
}

.home-link:hover {
  background: var(--accent-dim);
  border-color: rgba(0, 180, 216, 0.4);
}

/* === Mods Grid === */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mod-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.mod-icon {
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  height: 28px;
}

.mod-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.mod-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.mod-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === Settings Grid === */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.setting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.setting-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.setting-icon {
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
}

.setting-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.setting-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.setting-status {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.setting-status.enabled {
  color: var(--enabled);
  background: rgba(34, 197, 94, 0.1);
}

.setting-status.disabled {
  color: var(--disabled);
  background: rgba(239, 68, 68, 0.1);
}

/* === Footer === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.footer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-value {
  font-size: 1rem;
  color: var(--text-secondary);
  font-family: "Courier New", monospace;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================= */
/* === WORLD PAGE === */
/* ============================= */

.planet-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.planet-name {
  font-size: 1.75rem;
  font-weight: 700;
}

.planet-type {
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 600;
}

.planet-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 700px;
}

.ore-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 32px;
}

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

.ore-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ore-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.ore-card.exclusive {
  border-left: 3px solid var(--accent);
}

.ore-icon {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  image-rendering: auto;
}

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

.ore-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.ore-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ingot-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.ingot-name {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.ore-depth {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: "Courier New", monospace;
}

.ore-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ore-card.uraninite {
  border-left-color: #22c55e;
}

.ore-icon-text {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  color: #22c55e;
}

.vanilla-ore-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vanilla-ore {
  padding: 5px 14px;
  font-size: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
}

.vanilla-ore.absent {
  color: var(--text-muted);
  text-decoration: line-through;
  border-color: rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.04);
}

.vanilla-ore.special {
  color: var(--accent);
  border-color: rgba(0, 180, 216, 0.2);
  background: rgba(0, 180, 216, 0.06);
}

.ore-legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Refining */
.refine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.refine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.refine-card:hover {
  border-color: var(--border-hover);
}

.refine-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.refine-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.refine-ratio {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: "Courier New", monospace;
}

/* ============================= */
/* === COLLECTION PAGE === */
/* ============================= */

.tier-legend {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tier-chip {
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.tier-chip.t1 { color: var(--t1); background: rgba(139, 195, 74, 0.1); }
.tier-chip.t2 { color: var(--t2); background: rgba(76, 175, 80, 0.1); }
.tier-chip.t3 { color: var(--t3); background: rgba(0, 188, 212, 0.1); }
.tier-chip.t4 { color: var(--t4); background: rgba(124, 77, 255, 0.1); }
.tier-chip.t5 { color: var(--t5); background: rgba(224, 64, 251, 0.1); }
.tier-chip.t6 { color: var(--t6); background: rgba(255, 87, 34, 0.1); }

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

.cat-tab {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

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

.cat-tab.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(0, 180, 216, 0.3);
}

.search-bar {
  max-width: 400px;
  margin: 0 auto 32px;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease;
}

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

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

.group-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.group-heading:first-child {
  margin-top: 0;
}

.item-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.item-group.ore-items {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.item-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.item-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  image-rendering: auto;
}

.item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.item-tier-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.tier-dot {
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  font-family: "Courier New", monospace;
}

.tier-dot.t1 { color: var(--t1); background: rgba(139, 195, 74, 0.12); }
.tier-dot.t2 { color: var(--t2); background: rgba(76, 175, 80, 0.12); }
.tier-dot.t3 { color: var(--t3); background: rgba(0, 188, 212, 0.12); }
.tier-dot.t4 { color: var(--t4); background: rgba(124, 77, 255, 0.12); }
.tier-dot.t5 { color: var(--t5); background: rgba(224, 64, 251, 0.12); }
.tier-dot.t6 { color: var(--t6); background: rgba(255, 87, 34, 0.12); }

/* Ore browse card */
.ore-card-browse {
  cursor: default;
}

.ore-card-browse:hover {
  transform: none;
}

.ore-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ore-arrow-sym {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.ore-element {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: "Courier New", monospace;
}

.ore-planet-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-cat {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-tiers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.modal-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.modal-tier-img {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  display: block;
  border-radius: 6px;
}

.modal-tier-label {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  margin-bottom: 2px;
}

.modal-tier-label.t1 { color: var(--t1); }
.modal-tier-label.t2 { color: var(--t2); }
.modal-tier-label.t3 { color: var(--t3); }
.modal-tier-label.t4 { color: var(--t4); }
.modal-tier-label.t5 { color: var(--t5); }
.modal-tier-label.t6 { color: var(--t6); }

.modal-tier-mult {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.modal-tier-card.clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.modal-tier-card.clickable:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.modal-tier-card.selected {
  border-color: var(--accent);
  background: rgba(0, 180, 216, 0.08);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.15);
}

/* Recipe Panel */
.recipe-panel {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.recipe-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-tier-badge {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  padding: 2px 10px;
  border-radius: 4px;
}

.recipe-tier-badge.t1 { color: var(--t1); background: rgba(139, 195, 74, 0.12); }
.recipe-tier-badge.t2 { color: var(--t2); background: rgba(76, 175, 80, 0.12); }
.recipe-tier-badge.t3 { color: var(--t3); background: rgba(0, 188, 212, 0.12); }
.recipe-tier-badge.t4 { color: var(--t4); background: rgba(124, 77, 255, 0.12); }
.recipe-tier-badge.t5 { color: var(--t5); background: rgba(224, 64, 251, 0.12); }
.recipe-tier-badge.t6 { color: var(--t6); background: rgba(255, 87, 34, 0.12); }

.recipe-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: "Courier New", monospace;
  margin-bottom: 14px;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recipe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.85rem;
}

.recipe-row:hover {
  background: rgba(0, 0, 0, 0.3);
}

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

.recipe-amount {
  color: var(--accent);
  font-weight: 700;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.recipe-tier {
  font-weight: 700;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 2px;
}

.recipe-tier.t1 { color: var(--t1); background: rgba(139, 195, 74, 0.12); }
.recipe-tier.t2 { color: var(--t2); background: rgba(76, 175, 80, 0.12); }
.recipe-tier.t3 { color: var(--t3); background: rgba(0, 188, 212, 0.12); }
.recipe-tier.t4 { color: var(--t4); background: rgba(124, 77, 255, 0.12); }
.recipe-tier.t5 { color: var(--t5); background: rgba(224, 64, 251, 0.12); }
.recipe-tier.t6 { color: var(--t6); background: rgba(255, 87, 34, 0.12); }

/* ============================= */
/* === SETTINGS PAGE === */
/* ============================= */

.limits-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: -32px;
  margin-bottom: 40px;
}

.limits-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.limit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.limit-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.limit-card.limit-grid {
  border-left: 3px solid var(--accent);
}

.limit-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.limit-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  font-family: "Courier New", monospace;
}

.limit-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.escalation-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.escalation-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.escalation-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  font-family: "Courier New", monospace;
}

.escalation-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.escalation-text strong {
  color: var(--text-primary);
}

.accent-enabled {
  color: var(--enabled) !important;
}

/* === Responsive === */
@media (max-width: 768px) {
  .info-grid,
  .mods-grid,
  .settings-grid,
  .refine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .modal-tiers {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .progression-timeline {
    flex-direction: column;
  }

  .progression-summary {
    gap: 24px;
  }

  .planet-header {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .info-grid,
  .mods-grid,
  .settings-grid,
  .refine-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 80vh;
  }

  .btn-connect {
    padding: 12px 28px;
  }

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

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

  .cat-tabs {
    flex-wrap: wrap;
  }
}
