:root {
  --ed-orange: #ff8c00;
  --ed-orange-dim: #a65c00;
  --ed-bg: #0b0b0b;
  --nav-height: 50px;
  --ed-orange-glow: rgba(255, 140, 0, 0.2);
  --ed-panel: #1a1a1a;
  --ed-text: #e0e0e0;
  --ed-bg-card: rgba(10, 10, 10, 0.95);
  --ed-border: rgba(255, 140, 0, 0.2);
  --icy-color: #00d4ff;
  --metallic-color: #ffaa00;
  --metal-rich-color: #e0e0e0;
  --rocky-color: #854d27;
}

h1, h2, h3 {
  color: var(--ed-orange);
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
  border-bottom: 1px solid var(--ed-orange-dim);
  display: inline-block;
  padding-right: 50px;
  position: relative;
  text-shadow: 0 0 10px var(--ed-orange-glow);
}

h1::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 15px;
  height: 5px;
  background: var(--ed-orange);
}

h2 {
  font-size: 1.5rem;
  border-left: 4px solid var(--ed-orange);
  padding-left: 15px;
}

h3 {
  font-size: 1.1rem;
  color: #fff; 
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
  padding-bottom: 5px;
}

.ed-breadcrumbs {
  margin: 0 auto 20px;
  max-width: 1200px;
  width: 100%;
}

.ed-breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.ed-breadcrumbs li {
  color: #888;
  display: flex;
  align-items: center;
}

.ed-breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin-left: 10px;
  color: var(--ed-orange-dim);
  font-weight: bold;
}

.ed-breadcrumbs a {
  color: var(--ed-orange-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.ed-breadcrumbs a:hover {
  color: var(--ed-orange);
  text-shadow: 0 0 5px var(--ed-orange);
}

.ed-breadcrumbs li.current {
  color: var(--ed-orange);
  font-weight: bold;
}


.ed-interface {
  background-color: var(--ed-bg);
  color: var(--ed-text);
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  padding: 24px;
  border-left: 4px solid var(--ed-orange);
  max-width: 1000px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  margin: 0 auto;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.flex-2 { flex: 2; }

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--ed-orange);
  font-weight: 600;
}

input, select {
  background: #222;
  border: 1px solid var(--ed-orange-dim);
  color: #fff;
  padding: 10px;
  font-size: 0.9rem;
  border-radius: 0; 
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--ed-orange);
  background: #2a2a2a;
  outline: none;
  box-shadow: 0 0 10px var(--ed-orange-glow);
}

.radio-buttons {
  display: flex;
  border: 1px solid var(--ed-orange-dim);
}

.radio-buttons input { display: none; }

.radio-buttons label {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  color: var(--ed-orange-dim);
  margin: 0;
  transition: 0.3s;
}

.radio-buttons input:checked + label {
  background: var(--ed-orange);
  color: #000;
}

.checkbox-group {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.cb-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: #888;
  margin-right: 5px;
}

.cb-container input { margin-right: 10px; }

.search-btn {
  background: transparent;
  border: 1px solid var(--ed-orange);
  color: var(--ed-orange);
  padding: 12px 40px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 2px;
  transition: 0.4s;
  text-transform: uppercase;
}

.search-btn:hover {
  background: var(--ed-orange);
  color: #000;
  box-shadow: 0 0 20px var(--ed-orange);
}

select[multiple] {
    width: 100%;
    min-height: 120px;
    background-color: #1a1a1a;
    border: 1px solid var(--ed-orange-dim);
    color: var(--ed-text);
    padding: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

select[multiple] option {
    padding: 8px 12px;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
    background-color: rgba(255, 140, 0, 0.05);
}

select[multiple] option:hover {
    background-color: rgba(255, 140, 0, 0.15);
}

select[multiple] option:checked {
    background: var(--ed-orange) linear-gradient(0deg, var(--ed-orange) 0%, var(--ed-orange) 100%);
    color: #000;
    border-left: 4px solid #fff;
}

select[multiple]::-webkit-scrollbar {
    width: 6px;
}
select[multiple]::-webkit-scrollbar-track {
    background: #050505;
}
select[multiple]::-webkit-scrollbar-thumb {
    background: var(--ed-orange-dim);
    border-radius: 0;
}
select[multiple]::-webkit-scrollbar-thumb:hover {
    background: var(--ed-orange);
}

@media (max-width: 768px) {
  .filter-row { flex-direction: column; }
  .filter-group { width: 100%; }
}

.filter-group .selection-container {
    margin-top: 8px;
}

.selectable-option input[type="checkbox"] {
    display: none; 
}

.grid-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.tile-label {
    display: block;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid var(--ed-border);
    color: var(--ed-text);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 85% 100%, 0 100%);
}

.tile-label:hover {
    border-color: var(--ed-orange);
    background: rgba(255, 140, 0, 0.1);
}

.scroll-selection-list {
    height: 200px;
    overflow-y: scroll;
    border: 1px solid var(--ed-border);
    background: #0f0f0f;
}

.scroll-selection-list::-webkit-scrollbar { width: 6px; }
.scroll-selection-list::-webkit-scrollbar-track { background: #050505; }
.scroll-selection-list::-webkit-scrollbar-thumb { background: var(--ed-orange-dim); }

.list-item-label {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.05);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    color: var(--ed-text);
}

.list-item-label:hover {
    background: rgba(255, 140, 0, 0.05);
}

.selectable-option input:checked + .tile-label,
.selectable-option input:checked + .list-item-label {
    background: var(--ed-orange) !important;
    color: #000 !important;
    font-weight: bold;
    border-color: #fff;
}

.swap-button {
    background: transparent;
    border: 1px solid var(--ed-border);
    color: var(--ed-orange);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
}

.swap-button:hover {
    background: var(--ed-orange-glow);
    border-color: var(--ed-orange);
    box-shadow: 0 0 10px var(--ed-orange-glow);
}

.st-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    margin-left: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-planetary {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff8c00" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 2a15.3 15.3 0 0 1 0 20M12 2a15.3 15.3 0 0 0 0 20M2 12h20"/><ellipse cx="12" cy="12" rx="10" ry="4"/><path d="M12 2v20"/></svg>');
    filter: drop-shadow(0 0 2px var(--ed-orange-glow));
}

.icon-odyssey {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300d4ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 2a15.3 15.3 0 0 1 0 20M12 2a15.3 15.3 0 0 0 0 20M2 12h20"/><ellipse cx="12" cy="12" rx="10" ry="4"/><path d="M12 2v20"/></svg>');
    filter: drop-shadow(0 0 2px rgba(0, 212, 255, 0.4));
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Orbitron', sans-serif;
  color: var(--ed-text);
  font-size: 0.85rem;
}

.ed-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--ed-orange);
  color: var(--ed-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ed-table td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.1);
  vertical-align: middle;
}

.ed-table tbody tr:hover {
  background: rgba(255, 140, 0, 0.05);
  box-shadow: inset 0 0 10px rgba(255, 140, 0, 0.1);
}

.sticky th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.station-name {
  font-weight: bold;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
}
.system-name {
  color: #888;
  font-size: 0.75rem;
}

.pad-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid;
  font-weight: bold;
  font-size: 0.7rem;
}
.pad-badge.L { border-color: #00ff00; color: #00ff00; } 
.pad-badge.M { border-color: var(--ed-orange); color: var(--ed-orange); }

h1 .pad-badge {
  vertical-align: top;
}

.price-cell {
  color: #fff;
  font-weight: bold;
}
.cr {
  color: var(--ed-orange);
  font-size: 0.7rem;
}

.age-cell {
  color: #aaa;
  font-style: italic;
}

@media (max-width: 768px) {
  .ed-table thead { display: none; } 
  .ed-table td {
    display: block;
    text-align: right;
    border-bottom: none;
    padding: 5px 10px;
  }
  .ed-table td::before {
    content: attr(data-label);
    float: left;
    color: var(--ed-orange);
    text-transform: uppercase;
    font-size: 0.7rem;
  }
  .ed-table tr {
    display: block;
    border-bottom: 2px solid var(--ed-orange-dim);
    margin-bottom: 15px;
  }
}


a {
  color: var(--ed-orange);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--ed-orange);
}

a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
  vertical-align: super;
}

a:visited {
  color: var(--ed-orange-dim);
}

a:active {
  color: #fff;
  text-shadow: 0 0 20px #fff;
}

.ed-table a {
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  display: inline-block;
}


.ed-table a:hover {
  color: var(--ed-orange);
  text-shadow: 0 0 10px var(--ed-orange);
  transform: translateY(-1px);
}

.action-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border: 1px solid var(--ed-orange-dim);
  background: rgba(255, 140, 0, 0.05);
  color: var(--ed-orange);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.action-link:hover {
  background: var(--ed-orange);
  color: #000;
  box-shadow: 0 0 15px var(--ed-orange-glow);
}

.ed-content {
  line-height: 1.6;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
  color: #ccc; 
  max-width: 800px;
}

p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

strong, b {
  color: var(--ed-orange);
  font-weight: 600;
  letter-spacing: 0.5px;
}

blockquote {
  margin: 20px 0;
  padding: 15px 25px;
  background: rgba(255, 140, 0, 0.03);
  border-left: 2px solid var(--ed-orange-dim);
  font-style: italic;
  position: relative;
}

blockquote::before {
  content: "ID: LOG_DATA_77";
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 0.6rem;
  background: var(--ed-bg);
  padding: 0 5px;
  color: var(--ed-orange-dim);
  font-family: 'Orbitron', sans-serif;
}

ul.ed-list {
  list-style: none;
  padding-left: 0;
}

ul.ed-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

ul.ed-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--ed-orange);
}

.route-card {
  border: 1px solid var(--ed-orange-dim);
  background: rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
  padding: 20px;
  position: relative;
}

.route-header {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  border-bottom: 2px solid var(--ed-orange-dim);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.route-point .label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--ed-orange-dim);
}

.route-point .system {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: #fff;
}

.route-point .station {
  color: var(--ed-orange);
  font-size: 1rem;
}

.route-point .arrival-dist, 
.route-point .update-time {
  font-size: 0.75rem;
  color: #888;
}

.route-arrow {
  text-align: center;
  color: var(--ed-orange);
  font-size: 1.5rem;
}

.origin {
  text-align: right;
}

.commodity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.commodity-table th {
  text-align: left;
  color: var(--ed-orange-dim);
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
  padding: 8px;
}

.commodity-table td {
  padding: 10px 8px;
}

.profit-value {
  color: #00ff00;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.cr {
  font-size: 0.7em;
  opacity: 0.6;
}

.prospector-card {
  position: relative;
  background: var(--ed-bg-card);
  margin-bottom: 25px;
  padding: 1px;
  clip-path: polygon(0 0, 96% 0, 100% 15%, 100% 100%, 4% 100%, 0 85%);
  border-left: 3px solid var(--ed-orange);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 1);
}

.prospector-card:hover {
  transform: translateX(8px);
  box-shadow: -5px 0 20px var(--ed-orange-glow);
  background: rgba(20, 20, 20, 0.98);
}

.prospector-card::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,140,0,0.05), transparent);
  /* animation: scan-line 4s linear infinite; */
  pointer-events: none;
}

@keyframes scan-line {
  0% { top: -100%; }
  100% { top: 100%; }
}

.card-inner {
  padding: 20px 25px;
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 20px;
}

.planet-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.tech-grid {
  display: grid;
  grid-template-columns: 50% 1fr 1fr;
  gap: 15px;
  border-top: 1px solid var(--ed-border);
  padding-top: 12px;
  margin-bottom: 20px;
}

.tech-item {
  font-size: 0.7rem;
  color: var(--ed-orange-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--ed-orange);
  font-family: 'Orbitron', sans-serif;
  margin-top: 2px;
}

.section-label {
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hotspot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
}

.badge.active {
  border-color: var(--ed-orange);
  background: rgba(255, 140, 0, 0.1);
  color: #fff;
  box-shadow: 0 0 10px var(--ed-orange-dim);
}

.badge .count {
  font-size: 0.6rem;
  color: var(--ed-orange);
  font-weight: bold;
}

.status-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  border-left: 1px solid var(--ed-border);
  padding-left: 20px;
}

.reserve-bracket {
  text-align: right;
  padding-right: 12px;
}

.reserve-bracket:has(.status-value.pristine) { border-right: 3px solid #00ff00; }
.reserve-bracket:has(.status-value.major) { border-right: 3px solid #ffff00; }
.reserve-bracket:has(.status-value.common) { border-right: 3px solid #ff8c00; }
.reserve-bracket:has(.status-value.low) { border-right: 3px solid #854d27; }
.reserve-bracket:has(.status-value.depleted) { border-right: 3px solid #ff3300; }
.reserve-bracket:has(.status-value.unknown) { border-right: 3px solid #444; opacity: 0.6; }

.status-label {
  display: block;
  font-size: 0.6rem;
  color: #888;
  text-transform: uppercase;
}

.status-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
}

.status-value.pristine { color: #00ff00; text-shadow: 0 0 8px rgba(0,255,0,0.3); }
.status-value.major { color: #ffff00; text-shadow: 0 0 8px rgba(255, 255, 0, 0.3); }
.status-value.common { color: #ff8c00; text-shadow: 0 0 8px rgba(255, 140, 0, 0.3); }
.status-value.low { color: #854d27; text-shadow: none; opacity: 0.8; }
.status-value.depleted { color: #ff3300; text-shadow: 0 0 10px rgba(255, 51, 0, 0.5); font-style: italic; }
.status-value.unknown { color: #666; text-shadow: none; font-style: italic; letter-spacing: 1px; opacity: 0.7; }

.ring-type-label {
  padding: 4px 10px 4px 20px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #000;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  text-transform: uppercase;
}

.prospector-card.icy { border-left-color: var(--icy-color); }
.prospector-card.icy .ring-type-label { background: var(--icy-color); box-shadow: 0 0 10px var(--icy-color); }

.prospector-card.metallic { border-left-color: var(--metallic-color); }
.prospector-card.metallic .ring-type-label { background: var(--metallic-color); }

.prospector-card.rocky { border-left-color: var(--rocky-color); }
.prospector-card.rocky .ring-type-label { background: var(--rocky-color); }

.prospector-card.metal-rich { border-left-color: var(--metal-rich-color); }
.prospector-card.metal-rich .ring-type-label { background: var(--metal-rich-color); color: #000; box-shadow: 0 0 10px rgba(224, 224, 224, 0.4); }
.prospector-card.metal-rich .status-value { text-shadow: 0 0 5px rgba(224, 224, 224, 0.2); }

.ships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.ship-item {
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    padding: 6px 12px;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.ship-item:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--ed-orange);
    transform: translateX(3px);
}

.outfitting-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.group-title {
    color: var(--ed-orange-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-left: 3px solid var(--ed-orange);
    padding-left: 10px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.module-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    gap: 15px;
}

.module-entry:hover {
    background: rgba(255, 140, 0, 0.03);
}

.module-name {
    color: #e0e0e0;
    font-size: 0.95rem;
    flex-basis: 300px;
    flex-grow: 1;
    flex-shrink: 0;
}

.module-classes {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.m-class {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    border-radius: 2px;
    min-width: 25px;
    text-align: center;
}


.class-checkbox input {
    display: none;
}

.class-checkbox .m-class {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-block;
    border: 1px solid rgba(255, 140, 0, 0.3);
    background: rgba(10, 10, 10, 0.5);
    color: var(--ed-orange-dim);
}

.class-checkbox:hover .m-class {
    border-color: var(--ed-orange);
    background: rgba(255, 140, 0, 0.1);
    color: #fff;
}

.class-checkbox input:checked + .m-class {
    background: var(--ed-orange);
    color: #000; 
    border-color: #fff;
    box-shadow: 0 0 10px var(--ed-orange-glow);
    font-weight: bold;
}

.module-filter-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.module-filter-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

#system-detail-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#system-detail-page .dashboard-grid {
    display: flex;
    gap: 20px;
    align-items: stretch; 
}

#system-detail-page .prospector-card {
    flex: 1;
    margin: 0;
    min-width: 0; 
}

#system-detail-page .tech-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100%;
    margin-top: 10px;
}

.ed-tabs-container {
    width: 100%;
    margin-top: 20px;
}

.tabs-header {
    display: flex;
    width: 100%;
    gap: 5px;
    margin-bottom: 2px;
}

.tab-btn {
    flex: 1; 
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid var(--ed-border);
    color: var(--ed-orange-dim);
    padding: 12px 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    clip-path: polygon(0 20%, 10% 0, 100% 0, 100% 100%, 0 100%);
}

.tab-btn:hover {
    background: rgba(255, 140, 0, 0.1);
    color: var(--ed-orange);
}

.tab-btn.active {
    background: var(--ed-orange);
    color: #000;
    font-weight: bold;
    border-color: #fff;
    box-shadow: 0 0 15px var(--ed-orange-glow);
}

.tab-content {
    display: none; 
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .tabs-header {
        flex-wrap: wrap;
    }
    .tab-btn {
        flex: 1 1 30%; 
        font-size: 0.7rem;
    }
}

.system-objects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.body-node {
    position: relative;
    box-sizing: border-box;
}

.indent-1 { padding-left: 40px; }
.indent-2 { padding-left: 80px; }
.indent-3 { padding-left: 120px; }
.indent-4 { padding-left: 160px; }
.indent-5 { padding-left: 200px; }


.body-params-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
}

.p-item {
    display: flex;
    flex-direction: column;
}

.p-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p-val {
    font-size: 0.9rem;
    color: var(--ed-text);
    font-family: 'Orbitron', sans-serif;
}

.body-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
}

.body-name {
    font-family: 'Orbitron';
    color: var(--ed-orange);
    font-size: 1.2rem;
    display: block;
}

.body-type {
    font-size: 0.75rem;
    opacity: 0.5;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.7rem;
    border: 1px solid;
    margin-left: 8px;
    font-family: 'Orbitron';
}

.badge.scoop { color: #00ff88; border-color: rgba(0, 255, 136, 0.3); }
.badge.land { color: #00d4ff; border-color: rgba(0, 212, 255, 0.3); }
.badge.hotspots { color: #ffaa00; border-color: rgba(255, 170, 0, 0.3); }

.mats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.mat-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 2px 6px;
    font-size: 0.75rem;
}

.mat-tag.rare { border-color: var(--ed-orange); }
.m-symbol { color: var(--ed-orange); font-weight: bold; margin-right: 4px; }
.m-pct { opacity: 0.6; font-size: 0.7rem; }

.hotspot-names {
    font-size: 0.8rem;
    color: #ffaa00;
    font-style: italic;
}

@media (max-width: 1200px) { .body-params-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .body-params-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .body-params-grid { grid-template-columns: 1fr; } }

.trader-services {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.service-card {
    display: flex;
    align-items: center;
    background: rgba(255, 113, 0, 0.05);
    border: 1px solid rgba(255, 113, 0, 0.3);
    border-left: 4px solid #ff7100;
    padding: 15px 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: #e0e0e0;
}

.service-card:hover {
    background: rgba(255, 113, 0, 0.15);
    border-color: #ff7100;
    transform: translateX(5px);
}

.card-icon {
    font-size: 24px;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.card-content h3 {
    margin: 0 0 5px 0;
    color: #ff7100;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #bbb;
}

@media (max-width: 600px) {
    .service-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-icon {
        margin-bottom: 10px;
    }
}

span.nowrap {
  white-space: nowrap;
}

.chart-container {
  margin-top: 25px;
}

.system-conflicts {
    margin-top: 30px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.conflicts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

.conflict-card {
    background: #1e1e24;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.conflict-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.conflict-type {
    color: #ff9d00; /* Оранжевый акцент Elite */
    font-weight: bold;
    text-transform: uppercase;
}

.conflict-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.faction-side {
    flex: 1;
}

.left-side { text-align: left; }
.right-side { text-align: right; }

.faction-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #efefef;
    margin-bottom: 5px;
}

.faction-stake {
    font-size: 0.9em;
    color: #aaa;
}

.vs-divider {
    font-style: italic;
    color: #666;
    font-weight: bold;
    padding: 0 10px;
}

.win-days {
    margin-top: 5px;
    font-size: 1.2em;
}

.score {
    color: #00ff88;
    font-weight: bold;
}

/* Шкала побед */
.conflict-progress-bar {
    display: flex;
    height: 6px;
    background: #111;
    margin-top: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill.left { background: #0088ff; }
.progress-fill.right { background: #ff4444; }

/*old styles*/

html {
	background-color: #000;
	color: #e4e4e4;
}

body {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

#cookie_request {
	display:none;
	position: absolute;
	width: 100%;
	background-color: #222;
	margin: 0px;
	height: 50px;
}

#cookie_request p {
	margin: 10px 0px 0px 20px;
	text-align: center;
}

#cookie_request button{
	border-radius: 5px;
}

.bold {
	font-weight: bold;
}

.table-center {
	width: 100%;
	margin: 10px auto;
}

.selected_row {
	background-color: #555;
	font-weight: bold;
}

.price {
	text-align: right;
	padding-right: 20px;
}

th {
	background-color: #000;
	font-size: 1.2em;
	padding: 5px;
	border-right: 1px solid #333;
	border-bottom: 1px solid #333;
	border-top: 1px solid #333;
}

th:last-of-type {
	border-right: none;
}

td {
	padding: 3px;
	border-right: 1px solid #333;
	border-bottom: 1px solid #333;
}

td:last-of-type {
	border-right: none;
}

tr:nth-child(even) {
	background-color: #222;
}
tr:nth-child(odd) {
	background-color: #000;
}

nav.page-nav {
	margin: 0 auto;
	width: 430px;
}

nav.page-nav a, nav.page-nav span {
	display: inline-block;
	padding: 5px;
	background-color: #000;
	width: 35px;
	text-align: center;
	color: #FF9865;
	cursor: pointer;
}

main {
	width: 100%;
  max-width: 1200px;
	margin: 0 auto;
	background-color: #030303;
	padding: 0;
	float: left;
	flex: 1;
}

.station_image {
	float: left;
	border: 1px solid #333;
}

.station_info {
    display: flex;
    gap: 25px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--ed-border);
    border-left: 4px solid var(--ed-orange);
    padding: 20px;
    margin-bottom: 30px;
    align-items: stretch;
    box-shadow: inset 0 0 20px rgba(255, 140, 0, 0.05);
}

.station-preview {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    height: 140px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    overflow: hidden;
    background: #000;
}

.station-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1) saturate(0.8);
    display: block;
}

.station-preview::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

.station-data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    flex-grow: 1;
    align-content: center;
}

.info-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-group span {
  white-space: nowrap;
}

.info-label {
    font-size: 0.75rem;
    color: var(--ed-orange-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.info-value a {
    color: var(--ed-orange);
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--ed-orange-glow);
}

@media (max-width: 768px) {
    .station_info {
        flex-direction: column;
        padding: 15px;
    }

    .station-preview {
        width: 100%;
        height: 160px;
    }

    .station-data {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .station-data {
        grid-template-columns: 1fr;
    }
}

span.service {
  border: 1px solid #333;
  border-radius: 7px;
  margin: 3px;
  display: inline-block;
  line-height: 28px;
  vertical-align: baseline;
  padding: 2px 9px;
}

.station_details {
	clear: both;
}

.filter {
	text-align: center;
}

.filter p {
	margin: 10px 0;
}
.filter input,
.filter select {
	margin: 0 7px;
	background-color: #555;
	color: #fff;
	border: 1px solid #777;
	border-radius: 5px;
	padding: 3px;
}

.filter input[type=button] {
	width: 100px;
	font-size: 1.2em;
	color: #FFF;
}

.current_system input {
	margin-left: 0px;
	width: 710px;
}

.filter ul {
	display: inline-block;
	vertical-align: top;
}

.filter li {
	margin: 5px 0;
}

.filter label {
	display: inline-block;
	width: 475px;
	text-align: left;
}

.filter li input[type=textedit], 
.filter li select {
	width: 230px;
}

.plate {
	width: 100%;
	border: 1px solid #333;
	border-radius: 5px;
	background-color: #222;
	padding: 10px 0;
}

.autocomplete {
	background-color: #333;
	overflow-x: hidden;
	overflow-y: scroll;
}
.autocomplete p {
	padding: 2px 7px;
	margin: 0;
}

.autocomplete p:hover {
	background-color: #555;
	cursor: pointer;
}

.stationautocomplete {
	background-color: #333;
	overflow-x: hidden;
	overflow-y: scroll;
}
.stationautocomplete p {
	padding: 2px 7px;
	margin: 0;
}

.stationautocomplete p:hover {
	background-color: #555;
	cursor: pointer;
}


article {
	padding: 0;
}

aside.right_aside {
	width: 300px;
	float: right;
}

.result_item {
	margin: 20px 0;
	border-bottom: 1px solid #333;
	background-color: #111;
}

.result_item p {
	margin: 0;
}

.result_item .total_profit {
	text-align: center;
	font-size: 1.4em;
	color: yellow;
	font-weight: bold;
	border-top: 1px solid #333;
}

.result_item .total_profit span {
	padding: 10px;
	display:inline-block;
	background-color: #333;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

.result_item .system_distance {
	text-align: center;
	width: 10% !important;
}

.result_item .system_distance:before {
	content: " ";
	position: absolute;
	background-image: url("/images/arrow_left_small.png");
	background-size: 31px 16px;
	width: 31px;
	height: 16px;
	margin-left: -33px;
}

.result_item .system_distance:after {
	content: " ";
	position: absolute;
	background-image: url("/images/arrow_right_small.png");
	background-size: 31px 16px;
	width: 31px;
	height: 16px;
	margin-left: 5px;
}

.result_item .address p {
	display: inline-block;
	width: 45%;
	margin: 10px 0;
}

.result_item .system:before {
	content: " ";
	background-image: url("/images/system.png");
	background-size: 16px 16px;
	display: inline-block;
	width: 16px;
	height: 16px;
	position: relative;
	top: 3px;
	margin-right: 5px;
}

.result_item .station:before {
	content: " ";
	background-image: url("/images/station.png");
	background-size: 16px 16px;
	display: inline-block;
	width: 16px;
	height: 16px;
	position: relative;
	top: 3px;
	margin-right: 5px;
	margin-left: 10px;
}

.result_item .right {
	text-align: right;
}

.result_item .left {
	text-align: left;
}

.result_item .center {
	text-align: center;
}

.result_item .st_distance {
	margin-left: 10px;
	width: 75px;
	display: inline-block;
	position: absolute;
	text-align: center;
}

.result_item .st_distance:before {
	display: inline-block;
	width: 75px;
	height: 16px;
	background-image: url("/images/arrow-right.png");
	background-size: 75px 16px;
	content: " ";
	margin-top: 3px;
}

.result_item .station {
	margin-left: 75px;
}

.result_item .commodity {
	margin-top: 20px;
	background-image: url("/images/arrows.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 380px 80px;
	height: 83px;
}

.result_item .commodity .line p {
	display: inline-block;
	width: 33%;
	margin: 12px 0;
}

.result_item .commodity .line .quantity {
	font-size: 0.6em;
}

.result_item .dist_from_ref {
	margin-top: 10px;
  text-align: center;
}

.result_item .dist_from_ref span {
	padding: 5px;
	background-color: #333;
	display:inline-block;
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
	font-size: 0.7em;	
}

.intro_text {
	line-height: 1.5;
	padding: 10px 75px;
}

footer {
	clear: both;
	margin: 50px 0 0;
	width: 100%;
	text-align: center;
}

article.news {
	margin: 10px 0;
	clear: both;
}

article.news h2 {
	color: #DD5500;
	font-size: 1.2em;
}

article.news span.date {
	font-size: 0.75em;
	font-style: italic;
	color: #555;
	margin-right: 10px;
}

article.news div {
	margin: 10px 10px;
	text-indent: 1.5em;
	line-height: 1.5em;
}

article.news div ol {
  list-style: circle;
  margin-left:45px;
}

article.news p img {
	float: left;
	margin: 0 1em 1em 0;
}

footer p {
  text-align: center;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
}

.footer-contacts {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}

.contact-item a {
    color: var(--ed-orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.contact-item a:hover {
    color: #fff;
    border-bottom: 1px solid var(--ed-orange);
    text-shadow: 0 0 8px var(--ed-orange-glow);
}

footer .label {
    color: var(--ed-orange-dim);
    margin-right: 5px;
}