:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-panel: rgba(17, 24, 39, 0.8);
    --bg-hover: rgba(55, 65, 81, 0.5);
    --border: rgba(75, 85, 99, 0.4);
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --yellow: #eab308;
    --sec-high: #22c55e;
    --sec-low: #f97316;
    --sec-null: #ef4444;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Status Bar */
#status-bar {
    margin: 1rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.status-items {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.status-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.status-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.status-local {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.status-countdown {
    display: block;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    margin-top: 0.15rem;
}

/* Controls */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.controls {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.control-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.btn-group {
    display: flex;
    gap: 0;
}

.btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.btn:first-child { border-radius: 4px 0 0 4px; }
.btn:last-child { border-radius: 0 4px 4px 0; }
.btn + .btn { border-left: none; }

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

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

select, input[type="text"], input[type="number"] {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 120px;
}

input[type="text"] {
    width: 150px;
    min-width: 120px;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--accent);
}

input[type="number"] {
    width: 80px;
    min-width: 80px;
}

/* Info Panel */
.info-panel {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.info-panel p + p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Table */
.table-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    position: sticky;
    top: 0;
}

th {
    background: var(--bg-secondary);
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    color: var(--accent);
}

td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

tbody tr {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

tbody tr:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

tr:hover td {
    background: var(--bg-hover);
}

.system-name {
    font-weight: 500;
    white-space: nowrap;
}

.quick-links {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.quick-links a {
    display: inline-flex;
    opacity: 0.4;
    transition: opacity 0.15s;
}

.quick-links a:hover {
    opacity: 1;
}

.quick-links img {
    width: 14px;
    height: 14px;
    display: block;
}

tr:hover .quick-links a {
    opacity: 0.7;
}

/* Tooltip quick-links are always visible */
#map-tooltip .quick-links a,
.heatmap-tooltip .quick-links a {
    opacity: 0.7;
}

#map-tooltip .quick-links a:hover,
.heatmap-tooltip .quick-links a:hover {
    opacity: 1;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.delta-pos {
    color: var(--green);
    background: var(--green-dim);
}

.delta-neg {
    color: var(--red);
    background: var(--red-dim);
}

.sec-high { color: var(--sec-high); }
.sec-low { color: var(--sec-low); }
.sec-null { color: var(--sec-null); }

.sparkline-cell {
    text-align: center;
    padding: 0.25rem 0.5rem;
}

.sparkline {
    vertical-align: middle;
}

.rank-cell {
    text-align: center;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.alliance-name a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.alliance-name a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

/* Map */
#map-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

#region-map {
    width: 100%;
    height: 100%;
    display: block;
}

#map-tooltip {
    display: none;
    position: absolute;
    pointer-events: auto;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 10;
}

.map-legend {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.75rem;
    background: rgba(10, 14, 26, 0.85);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-up { background: var(--green); }
.legend-flat { background: #6b7280; }
.legend-down { background: var(--red); }

/* Heatmap */
#heatmap-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
}

#heatmap-container svg {
    display: block;
}

.heatmap-cell {
    cursor: pointer;
    transition: opacity 0.1s;
}

.heatmap-axis-label {
    fill: var(--text-secondary);
    font-size: 0.7rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.heatmap-tooltip {
    display: none;
    position: absolute;
    pointer-events: auto;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 10;
}

/* Alliance expandable rows */
.alliance-row.expandable {
    cursor: pointer;
}

.expand-arrow {
    display: inline-block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-right: 0.3rem;
    transition: transform 0.15s;
    vertical-align: middle;
}

.alliance-row.expanded .expand-arrow {
    transform: rotate(90deg);
}

.region-detail-row {
    display: none;
}

.region-detail-row.visible {
    display: table-row;
}

.region-detail-row td {
    background: rgba(59, 130, 246, 0.03);
    border-bottom: 1px solid rgba(75, 85, 99, 0.15);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.8rem;
}

.region-detail-row:hover td {
    background: rgba(59, 130, 246, 0.07);
}

.region-detail-row:hover {
    transform: none;
    box-shadow: none;
}

.region-detail-name {
    color: var(--text-secondary);
    padding-left: 1.5rem !important;
}

/* Ghost Alert Panel */
.ghost-alert {
    background: var(--bg-panel);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-left: 3px solid var(--red);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.ghost-header {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.ghost-warning-icon {
    margin-right: 0.3rem;
}

.ghost-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ghost-card {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    min-width: 180px;
    max-width: 240px;
}

.ghost-card-name {
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ghost-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghost-card-stats {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.ghost-avg {
    color: var(--text-secondary);
}

.ghost-arrow {
    color: var(--text-muted);
    margin: 0 0.2rem;
}

.ghost-zero {
    color: var(--red);
    font-weight: 600;
}

.ghost-card-sparkline {
    margin-top: 0.25rem;
}

.ghost-card .quick-links a {
    opacity: 0.5;
}

.ghost-card .quick-links a:hover {
    opacity: 1;
}

/* Ghost badge in table rows */
.ghost-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* Ghost row highlight */
tr.ghost-row td {
    border-left: 2px solid var(--red);
}

tr.ghost-row td:first-child {
    border-left: 3px solid var(--red);
}

/* Ghost nodes on map — pulsing ring */
@keyframes ghost-pulse {
    0%   { r: attr(r); opacity: 0.8; }
    50%  { opacity: 0.3; }
    100% { r: attr(r); opacity: 0.8; }
}

.ghost-ring {
    fill: none;
    stroke: var(--red);
    stroke-width: 2;
    animation: ghost-pulse-ring 1.5s ease-in-out infinite;
}

@keyframes ghost-pulse-ring {
    0%   { stroke-opacity: 0.9; stroke-width: 2; }
    50%  { stroke-opacity: 0.3; stroke-width: 3; }
    100% { stroke-opacity: 0.9; stroke-width: 2; }
}

/* How It Works */
.how-grid {
    display: grid;
    gap: 1rem;
}

.how-section {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.how-section h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.how-section p,
.how-section ul {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.how-section p + p,
.how-section ul + p,
.how-section p + ul {
    margin-top: 0.5rem;
}

.how-section ul {
    padding-left: 1.25rem;
}

.how-section li + li {
    margin-top: 0.3rem;
}

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

@media (min-width: 900px) {
    .how-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Route autocomplete */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-wrap input[type="text"] {
    width: 220px;
}

.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
}

.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    gap: 0.5rem;
}

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

.autocomplete-name {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.autocomplete-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: right;
}

/* Route button */
.route-go-btn {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
}

.route-go-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.route-go-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Route info bar */
.route-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Route danger row borders */
tr.route-safe td:first-child { border-left: 3px solid var(--green); }
tr.route-caution td:first-child { border-left: 3px solid var(--yellow); }
tr.route-dangerous td:first-child { border-left: 3px solid var(--sec-low); }
tr.route-deadly td:first-child { border-left: 3px solid var(--red); }

/* Danger badges */
.danger-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.danger-safe {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.danger-caution {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}

.danger-dangerous {
    background: rgba(249, 115, 22, 0.15);
    color: var(--sec-low);
}

.danger-deadly {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

/* Gate info text */
.gate-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
}

/* PvP detail breakdown */
.pvp-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* zKill gate kill badges */
.zkill-cell {
    white-space: nowrap;
}

.zkill-total {
    font-weight: 500;
}

.zkill-zero {
    color: var(--text-muted);
}

.zkill-gate {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.2rem;
}

.zkill-in {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.zkill-out {
    background: rgba(249, 115, 22, 0.15);
    color: var(--sec-low);
}

/* zKill loading indicator */
.zkill-loading {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Activity Chart */
#activity-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
}

#activity-container svg {
    display: block;
}

.activity-bar {
    fill: var(--green);
    cursor: pointer;
    transition: opacity 0.1s;
}

.activity-range {
    fill: rgba(34, 197, 94, 0.1);
    stroke: none;
}

.activity-tooltip {
    display: none;
    position: absolute;
    pointer-events: auto;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 10;
}

.activity-axis line,
.activity-axis path {
    stroke: var(--border);
}

.activity-axis text {
    fill: var(--text-secondary);
    font-size: 0.75rem;
}

.activity-axis-label {
    fill: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.activity-tz-label {
    fill: var(--text-muted);
    font-size: 0.65rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.activity-days-label {
    fill: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.activity-top-systems {
    margin-top: 1rem;
    padding: 0 0.25rem;
}

.activity-top-systems h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.activity-top-systems table {
    width: 100%;
    max-width: 500px;
}

/* Industry cost index */
.industry-cell {
    color: var(--yellow);
    font-size: 0.8rem;
}

.industry-cell .text-muted {
    color: var(--text-muted);
}

/* Mining Kill Feed */
.mining-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mining-stat-card {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
}

.mining-stat-value {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.mining-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.mining-chart-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.mining-chart-container svg {
    display: block;
}

.mining-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mining-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow: hidden;
}

.mining-panel h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.mining-panel .table-wrap {
    border: none;
    border-radius: 0;
}

.mining-tooltip {
    display: none;
    position: absolute;
    pointer-events: auto;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 10;
}

.ship-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.2rem;
}

.npc-diamond {
    color: var(--red);
    font-size: 0.7rem;
    margin-left: 0.2rem;
    vertical-align: middle;
}

/* Mining Hotspots */
.mining-hotspots {
    margin-bottom: 1rem;
}

.hotspots-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.hotspot-cards {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hotspot-card {
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    min-width: 180px;
    max-width: 260px;
    flex: 1 1 200px;
}

.hotspot-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.hotspot-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.hotspot-region {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.hotspot-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.hotspot-kills {
    color: var(--red);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hotspot-value {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.hotspot-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.hotspot-system {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hotspot-system-count {
    color: var(--text-muted);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-logout {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.15s;
}

.user-logout:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.login-card {
    text-align: center;
    padding: 3rem 4rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.login-card h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.login-card .subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.eve-login-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s;
}

.eve-login-btn:hover {
    background: var(--accent-hover);
}

/* Denied Page */
.denied-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.denied-card {
    text-align: center;
    padding: 3rem 4rem;
    background: var(--bg-panel);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
}

.denied-card h1 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--red);
    margin-bottom: 1rem;
}

.denied-character {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.denied-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.denied-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.denied-logout {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.denied-logout:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Admin Page */
.admin-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
}

.admin-form-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.admin-add-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.admin-remove-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.admin-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .control-group {
        width: 100%;
    }

    select {
        width: 100%;
    }

    .btn-group {
        width: 100%;
    }

    .btn {
        flex: 1;
        text-align: center;
    }

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

    .mining-stats {
        flex-direction: column;
    }

    .mining-panels {
        grid-template-columns: 1fr;
    }
}
