:root {
  --bg: #050a0f;
  --bg2: #09121b;
  --panel: rgba(12, 24, 34, .88);
  --panel2: rgba(17, 31, 42, .94);
  --line: rgba(124, 255, 183, .16);
  --line-strong: rgba(124, 255, 183, .32);
  --text: #e9fff2;
  --muted: #81979f;
  --green: #7cffb7;
  --green2: #25d780;
  --cyan: #5ee7ff;
  --danger: #ff6b78;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 20% 0%, #0b2430 0, transparent 35%), linear-gradient(145deg, var(--bg), #061018 55%, #03070b); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; overflow-x: hidden; }
button { font: inherit; }

.scanlines { position: fixed; inset: 0; pointer-events: none; opacity: .09; z-index: 999; background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.08) 4px); mix-blend-mode: soft-light; }

.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(4, 10, 15, .82); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 900; letter-spacing: -.04em; font-size: 22px; }
.brand span { color: var(--green); }
.version { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 5px 8px; border-radius: 999px; }
.top-stats { display: flex; gap: 30px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 90px; }
.stat span { font-size: 10px; color: var(--muted); letter-spacing: .15em; }
.stat strong { font-size: 15px; }

.app-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 205px 1fr; }
.sidebar { border-right: 1px solid var(--line); padding: 22px 12px; background: rgba(6,13,20,.6); display: flex; flex-direction: column; gap: 8px; }
.nav-btn { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 13px 14px; text-align: left; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 12px; letter-spacing: .08em; transition: .18s ease; }
.nav-btn:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-btn.active { color: var(--green); border-color: var(--line-strong); background: rgba(124,255,183,.07); box-shadow: inset 3px 0 0 var(--green); }
.sidebar-foot { margin-top: auto; color: var(--muted); font-size: 10px; letter-spacing: .12em; display: flex; gap: 8px; align-items: center; padding: 12px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }

.content { padding: 34px; max-width: 1450px; width: 100%; margin: 0 auto; }
.tab-panel { display: none; animation: fade .18s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px);} to {opacity: 1; transform: none;} }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 50px); line-height: 1; letter-spacing: -.05em; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.intro { color: var(--muted); max-width: 820px; margin: -6px 0 24px; line-height: 1.6; }
.intro.compact { margin-top: 12px; }
.pill { border: 1px solid var(--line-strong); background: rgba(124,255,183,.06); color: var(--green); border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }

.card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,33,44,.92), rgba(8,18,26,.9)); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.metric-card { display: flex; flex-direction: column; min-height: 126px; justify-content: center; }
.metric-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.metric-card strong { font-size: 29px; margin: 4px 0; }
.metric-card small { color: var(--muted); }
.metric-card.accent { border-color: var(--line-strong); box-shadow: 0 0 38px rgba(37,215,128,.08); }
.metric-card.accent strong { color: var(--green); }
.active-transfer-card { margin-bottom: 14px; }

.active-transfer-head { align-items:center; }
.active-transfer-actions { display:flex; align-items:center; gap:10px; }
.transfer-intro { margin-bottom:16px; }
.active-transfers-list { display:flex; flex-direction:column; gap:12px; }
.active-transfer-item { border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:14px; padding:15px; }
.transfer-row-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.transfer-row-head > div:first-child { display:flex; flex-direction:column; gap:3px; min-width:0; }
.transfer-row-head strong { font-size:14px; overflow-wrap:anywhere; }
.transfer-slot-label { color:var(--cyan); font-size:9px; font-weight:900; letter-spacing:.14em; }
.active-transfer-item .progress-wrap { margin:14px 0 10px; }
.compact-btn { padding:7px 10px; font-size:10px; }
html[data-theme="summer"] .active-transfer-item { background:rgba(255,255,255,.48); border-color:rgba(101,86,255,.10); }
html[data-theme="summer"] .transfer-slot-label { color:#6556ff; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.transfer-reward { color: var(--green); font-weight: 900; font-size: 20px; }
.progress-wrap { margin: 28px 0 18px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.progress-track { height: 15px; background: #071016; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; position: relative; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green2), var(--cyan)); box-shadow: 0 0 24px rgba(124,255,183,.35); transition: width .1s linear; }
.transfer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.split-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.stack-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.empty-state { color: var(--muted); font-size: 13px; }
.queue-item { border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.025); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; }
.queue-item strong { font-size: 13px; }
.queue-item span { color: var(--muted); font-size: 11px; }
.counter { min-width: 30px; height: 30px; display: grid; place-items: center; background: rgba(124,255,183,.08); color: var(--green); border: 1px solid var(--line); border-radius: 10px; font-weight: 900; }
.summary-list { margin-top: 17px; display: flex; flex-direction: column; }
.summary-list > div { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); gap: 16px; }
.summary-list > div:last-child { border-bottom: 0; }
.summary-list span { color: var(--muted); font-size: 12px; }
.summary-list strong { text-align: right; }

.market-grid, .hardware-grid, .research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.market-card, .hardware-card, .research-card { min-height: 220px; display: flex; flex-direction: column; }
.card-kicker { color: var(--cyan); font-size: 10px; letter-spacing: .13em; font-weight: 900; }
.card-main-number { font-size: 27px; font-weight: 900; margin-top: 10px; letter-spacing: -.03em; }
.card-desc { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 10px 0 18px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.card-actions { margin-top: auto; display: flex; gap: 8px; }

.btn { border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 14px; background: linear-gradient(180deg, rgba(124,255,183,.18), rgba(37,215,128,.1)); color: var(--green); cursor: pointer; font-weight: 900; font-size: 12px; transition: .16s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(124,255,183,.6); box-shadow: 0 8px 22px rgba(37,215,128,.09); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); border-color: rgba(255,255,255,.1); }
.btn.danger { color: var(--danger); border-color: rgba(255,107,120,.2); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.level-badge { display: inline-flex; align-items: center; color: var(--green); border: 1px solid var(--line); background: rgba(124,255,183,.04); border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 900; }
.research-card.locked { opacity: .55; }
.research-card.unlocked { border-color: rgba(124,255,183,.4); }
.research-card.unlocked .card-kicker { color: var(--green); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); background: #0b151d; border: 1px solid var(--line-strong); padding: 12px 16px; border-radius: 12px; color: var(--text); opacity: 0; pointer-events: none; transition: .22s ease; z-index: 80; box-shadow: var(--shadow); font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(10px); }
.modal-backdrop.hidden { display: none; }
.modal { width: min(520px, 100%); }

@media (max-width: 1050px) {
  .dashboard-grid, .market-grid, .hardware-grid, .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 170px 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 68px; padding: 12px 14px; align-items: flex-start; }
  .brand { font-size: 18px; }
  .version { display: none; }
  .top-stats { gap: 12px; }
  .stat { min-width: auto; }
  .stat span { font-size: 8px; }
  .stat strong { font-size: 12px; }
  .app-shell { display: block; min-height: auto; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 66px; padding: 7px; border-right: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(4,10,15,.96); backdrop-filter: blur(18px); }
  .nav-btn { font-size: 9px; text-align: center; padding: 8px 3px; border-radius: 9px; }
  .nav-btn.active { box-shadow: inset 0 -3px 0 var(--green); }
  .sidebar-foot { display: none; }
  .content { padding: 22px 14px 92px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid, .hardware-grid, .research-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  h1 { font-size: 31px; }
  .metric-card { min-height: 110px; }
  .metric-card strong { font-size: 24px; }
  .card { padding: 16px; border-radius: 15px; }
  .top-stats .stat:nth-child(2) { display: none; }
}

@media (max-width: 410px) {
  .top-stats .stat:nth-child(3) { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
}


/* v0.1.2 – sichtbarer Upload-Bot in der Warteschlange */
.queue-head-meta { display: flex; align-items: center; gap: 8px; }
.queue-bot-status { border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 5px 8px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.queue-bot-status.active { border-color: var(--line-strong); background: rgba(124,255,183,.06); color: var(--green); }

/* v0.1.3 – Endless Progression */
.hardware-card .level-badge,
.research-card .level-badge { white-space: nowrap; }
.hardware-card .card-main-number { min-height: 34px; }
.research-card .card-kicker { display: flex; align-items: center; min-height: 24px; }

/* v0.1.4 – Theme Center */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.theme-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: .08em;
  transition: .18s ease;
}
.theme-choice:hover { color: var(--text); }
.theme-choice.active { color: var(--green); background: rgba(124,255,183,.09); box-shadow: inset 0 0 0 1px var(--line-strong); }
.theme-icon { font-size: 12px; line-height: 1; }
.theme-showcase { margin-bottom: 14px; }
.theme-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.theme-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  text-align: left;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}
.theme-card:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.theme-card.selected { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.theme-card strong { font-size: 13px; }
.theme-card small { color: var(--muted); font-size: 10px; }
.theme-preview { grid-row: 1 / 3; width: 68px; height: 45px; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,.12); display: flex; align-items: flex-end; gap: 3px; padding: 6px; }
.theme-preview i { display: block; height: 8px; flex: 1; border-radius: 999px; }
.classic-preview { background: linear-gradient(145deg,#061018,#0b2430); }
.classic-preview i:nth-child(1) { background:#7cffb7; }
.classic-preview i:nth-child(2) { background:#5ee7ff; height:14px; }
.classic-preview i:nth-child(3) { background:#25d780; height:20px; }
.summer-preview { background: linear-gradient(145deg,#fff8e8,#dff7ff 58%,#efe2ff); }
.summer-preview i:nth-child(1) { background:#ff7b72; height:18px; }
.summer-preview i:nth-child(2) { background:#6c63ff; height:26px; }
.summer-preview i:nth-child(3) { background:#18cfa4; height:13px; }
.system-grid { margin-top: 0; }

/* BYTESPAWN Summer – fröhlich, hell und bunt */
html[data-theme="summer"] {
  --bg: #fffaf0;
  --bg2: #eefbff;
  --panel: rgba(255,255,255,.80);
  --panel2: rgba(255,255,255,.94);
  --line: rgba(94, 90, 180, .14);
  --line-strong: rgba(101, 86, 255, .32);
  --text: #25263d;
  --muted: #73758e;
  --green: #6556ff;
  --green2: #ff776d;
  --cyan: #17cfa4;
  --danger: #e34c67;
  --shadow: 0 20px 55px rgba(73, 68, 126, .11);
}
html[data-theme="summer"],
html[data-theme="summer"] body {
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 207, 92, .48) 0, transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(255, 120, 156, .27) 0, transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(99, 87, 255, .17) 0, transparent 31%),
    radial-gradient(circle at 18% 88%, rgba(23, 207, 164, .19) 0, transparent 28%),
    linear-gradient(145deg, #fffaf0, #f2fbff 48%, #fff4f5);
  color: var(--text);
}
html[data-theme="summer"] body::before,
html[data-theme="summer"] body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}
html[data-theme="summer"] body::before { width: 220px; height: 220px; right: -80px; top: 140px; background: rgba(255, 196, 92, .21); }
html[data-theme="summer"] body::after { width: 180px; height: 180px; left: 80px; bottom: 70px; background: rgba(87, 210, 255, .16); }
html[data-theme="summer"] .scanlines { opacity: 0; }
html[data-theme="summer"] .topbar {
  background: rgba(255,255,255,.76);
  border-bottom-color: rgba(101,86,255,.13);
  box-shadow: 0 8px 26px rgba(86, 77, 135, .06);
}
html[data-theme="summer"] .brand { color: #26243d; }
html[data-theme="summer"] .brand span {
  color: transparent;
  background: linear-gradient(90deg,#6556ff,#ff6f91 45%,#ff9e4d 72%,#16bfa0);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="summer"] .version { background: rgba(255,255,255,.62); }
html[data-theme="summer"] .theme-switch { background: rgba(255,255,255,.60); box-shadow: 0 6px 18px rgba(92,81,144,.06); }
html[data-theme="summer"] .theme-choice.active { color: #6556ff; background: linear-gradient(135deg,rgba(101,86,255,.11),rgba(255,119,109,.12)); }
html[data-theme="summer"] .sidebar { background: rgba(255,255,255,.55); }
html[data-theme="summer"] .nav-btn:hover { background: rgba(101,86,255,.05); }
html[data-theme="summer"] .nav-btn.active { color:#6556ff; background: linear-gradient(90deg,rgba(101,86,255,.10),rgba(255,119,109,.07)); box-shadow: inset 3px 0 0 #6556ff; }
html[data-theme="summer"] .online-dot { background:#17cfa4; box-shadow:0 0 16px rgba(23,207,164,.65); }
html[data-theme="summer"] .eyebrow { color:#6556ff; }
html[data-theme="summer"] .pill { color:#6556ff; background:rgba(101,86,255,.07); }
html[data-theme="summer"] .card {
  background: linear-gradient(155deg, rgba(255,255,255,.90), rgba(255,255,255,.68));
  border-color: rgba(101,86,255,.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
html[data-theme="summer"] .metric-card:nth-child(1) { background: linear-gradient(145deg,rgba(225,248,255,.92),rgba(255,255,255,.78)); }
html[data-theme="summer"] .metric-card:nth-child(2) { background: linear-gradient(145deg,rgba(239,233,255,.92),rgba(255,255,255,.78)); }
html[data-theme="summer"] .metric-card:nth-child(3) { background: linear-gradient(145deg,rgba(255,232,225,.94),rgba(255,250,228,.82)); }
html[data-theme="summer"] .metric-card:nth-child(4) { background: linear-gradient(145deg,rgba(226,255,244,.94),rgba(255,255,255,.78)); }
html[data-theme="summer"] .metric-card.accent { border-color:rgba(255,119,109,.25); box-shadow:0 18px 44px rgba(255,119,109,.09); }
html[data-theme="summer"] .metric-card.accent strong { color:#ff665d; }
html[data-theme="summer"] .progress-track { background:#edf0f7; border-color:rgba(101,86,255,.09); }
html[data-theme="summer"] .progress-bar { background:linear-gradient(90deg,#6556ff,#ff6f91 45%,#ff9e4d 70%,#18cfa4); box-shadow:0 0 20px rgba(101,86,255,.18); }
html[data-theme="summer"] .transfer-reward { color:#ff665d; }
html[data-theme="summer"] .queue-item { background:rgba(101,86,255,.035); border-color:rgba(101,86,255,.08); }
html[data-theme="summer"] .summary-list > div { border-bottom-color:rgba(101,86,255,.09); }
html[data-theme="summer"] .counter { color:#6556ff; background:rgba(101,86,255,.07); }
html[data-theme="summer"] .card-kicker { color:#ff6f91; }
html[data-theme="summer"] .btn { color:#5e50ec; border-color:rgba(101,86,255,.26); background:linear-gradient(135deg,rgba(101,86,255,.12),rgba(255,111,145,.10)); }
html[data-theme="summer"] .btn:hover:not(:disabled) { border-color:rgba(101,86,255,.48); box-shadow:0 9px 24px rgba(101,86,255,.10); }
html[data-theme="summer"] .btn.ghost { color:#72758d; border-color:rgba(101,86,255,.13); background:rgba(255,255,255,.45); }
html[data-theme="summer"] .level-badge { color:#6556ff; background:rgba(101,86,255,.06); }
html[data-theme="summer"] .research-card.unlocked { border-color:rgba(23,207,164,.28); }
html[data-theme="summer"] .research-card.unlocked .card-kicker { color:#10aa88; }
html[data-theme="summer"] .queue-bot-status.active { color:#10aa88; border-color:rgba(23,207,164,.26); background:rgba(23,207,164,.08); }
html[data-theme="summer"] .toast { background:rgba(255,255,255,.94); border-color:rgba(101,86,255,.22); }
html[data-theme="summer"] .modal-backdrop { background:rgba(75,69,113,.22); }
html[data-theme="summer"] .theme-card { background:rgba(255,255,255,.58); }
html[data-theme="summer"] .theme-card.selected { border-color:rgba(101,86,255,.34); box-shadow:0 10px 30px rgba(101,86,255,.07), inset 0 0 0 1px rgba(101,86,255,.14); }

@media (max-width: 760px) {
  .theme-label { display: none; }
  .theme-choice { padding: 7px; }
  .theme-switch { margin-left: -4px; }
  .theme-cards { grid-template-columns: 1fr; }
  html[data-theme="summer"] .sidebar { background:rgba(255,255,255,.92); }
  html[data-theme="summer"] .nav-btn.active { box-shadow:inset 0 -3px 0 #6556ff; }
}

@media (max-width: 520px) {
  .theme-switch { position: absolute; right: 12px; top: 10px; }
  .topbar { padding-right: 78px; position: sticky; }
  .top-stats { padding-top: 28px; }
}


/* v0.2.0 – Infrastructure Evolution */
.head-pills { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.infra-pill { color:var(--cyan); border-color:rgba(94,231,255,.25); background:rgba(94,231,255,.055); }
.infra-strip { margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 18px; }
.infra-strip > div:first-child { display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:baseline; }
.infra-strip .eyebrow { grid-column:1 / -1; margin-bottom:2px; }
.infra-strip strong { font-size:18px; }
.infra-strip span { color:var(--muted); font-size:11px; }
.infra-strip-next { display:flex; align-items:center; gap:12px; text-align:right; }
.infrastructure-hero { display:grid; grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr); gap:26px; padding:26px; overflow:hidden; position:relative; }
.infra-visual-wrap { min-height:360px; display:grid; place-items:center; border-radius:18px; border:1px solid var(--line); background:radial-gradient(circle at 50% 35%,rgba(94,231,255,.11),transparent 48%),rgba(255,255,255,.018); overflow:hidden; position:relative; }
.infra-graphic { width:82%; height:82%; position:relative; display:grid; place-items:center; }
.infra-glow { position:absolute; width:70%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,rgba(124,255,183,.18),transparent 68%); filter:blur(6px); }
.infra-machine { width:min(270px,90%); min-height:180px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:center; gap:8px; z-index:1; transform:perspective(700px) rotateX(2deg) rotateY(-4deg); }
.infra-node { min-height:62px; border:1px solid var(--line-strong); border-radius:8px; background:linear-gradient(145deg,var(--panel2),rgba(5,12,18,.92)); box-shadow:0 12px 28px rgba(0,0,0,.2),inset 0 0 0 1px rgba(255,255,255,.025); padding:12px; display:flex; flex-direction:column; gap:7px; }
.infra-node b { display:block; height:4px; width:68%; border-radius:99px; background:var(--green); box-shadow:0 0 10px rgba(124,255,183,.35); }
.infra-node b:nth-child(2) { width:42%; background:var(--cyan); }
.infra-node b:nth-child(3) { width:20%; opacity:.65; }
.infra-code { position:absolute; bottom:4%; z-index:2; font-size:11px; font-weight:900; letter-spacing:.18em; color:var(--muted); }
.infra-graphic.tier-0 .infra-machine { width:180px; grid-template-columns:1fr; }
.infra-graphic.tier-0 .infra-node { min-height:125px; border-radius:13px; }
.infra-graphic.tier-1 .infra-machine { width:220px; grid-template-columns:1fr 1fr; }
.infra-graphic.tier-2 .infra-machine { grid-template-columns:1fr; width:220px; }
.infra-graphic.tier-3 .infra-machine, .infra-graphic.tier-4 .infra-machine { grid-template-columns:repeat(2,1fr); }
.infra-graphic.tier-5 .infra-machine, .infra-graphic.tier-6 .infra-machine { width:310px; grid-template-columns:repeat(3,1fr); }
.infra-graphic.tier-4 .infra-node, .infra-graphic.tier-5 .infra-node, .infra-graphic.tier-6 .infra-node { min-height:48px; }
.infra-hero-copy { align-self:center; }
.infra-description { color:var(--muted); line-height:1.6; margin:12px 0 18px; max-width:720px; }
.infra-bonuses { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:18px; }
.infra-bonuses div { border:1px solid var(--line); border-radius:12px; padding:11px; background:rgba(255,255,255,.02); display:flex; flex-direction:column; gap:3px; }
.infra-bonuses span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.infra-bonuses strong { font-size:14px; }
.infra-next-box { border:1px solid var(--line); border-radius:14px; padding:14px; background:rgba(255,255,255,.018); margin-bottom:12px; }
.infra-next-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.infra-next-head > div { display:flex; flex-direction:column; gap:2px; }
.infra-next-head span { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.12em; }
.infra-next-head strong { font-size:16px; }
.infra-next-head > b { color:var(--green); white-space:nowrap; }
.infra-requirements { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.infra-requirements > div { display:flex; justify-content:space-between; gap:8px; padding:7px 9px; border-radius:9px; background:rgba(255,255,255,.025); color:var(--muted); font-size:10px; }
.infra-requirements > div.ok strong { color:var(--green); }
.infra-upgrade-btn { width:100%; }
.infra-max { display:flex; flex-direction:column; gap:4px; }
.infra-max strong { color:var(--green); }
.infra-max span { color:var(--muted); font-size:11px; line-height:1.5; }
.phase-divider { margin:26px 0 12px; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.16em; display:flex; align-items:center; gap:12px; }
.phase-divider::after { content:''; height:1px; flex:1; background:var(--line); }
.infra-roadmap { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.infra-stage-card { min-height:150px; display:grid; grid-template-columns:54px 1fr auto; gap:14px; align-items:start; opacity:.58; }
.infra-stage-card.current { opacity:1; border-color:var(--line-strong); }
.infra-stage-card.complete { opacity:.82; }
.infra-stage-number { font-size:30px; font-weight:950; letter-spacing:-.06em; color:var(--line-strong); }
.infra-stage-card.current .infra-stage-number { color:var(--green); }
.infra-stage-card p:not(.eyebrow) { color:var(--muted); font-size:11px; line-height:1.5; margin:8px 0 0; }

html[data-theme="summer"] .infra-pill { color:#11ad91; border-color:rgba(23,207,164,.22); background:rgba(23,207,164,.07); }
html[data-theme="summer"] .infra-visual-wrap { background:radial-gradient(circle at 35% 20%,rgba(255,202,83,.28),transparent 32%),radial-gradient(circle at 75% 70%,rgba(101,86,255,.14),transparent 38%),rgba(255,255,255,.52); }
html[data-theme="summer"] .infra-glow { background:radial-gradient(circle,rgba(255,111,145,.24),rgba(101,86,255,.08) 44%,transparent 70%); }
html[data-theme="summer"] .infra-node { background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,246,255,.78)); box-shadow:0 14px 30px rgba(92,81,144,.10); }
html[data-theme="summer"] .infra-node b { background:linear-gradient(90deg,#6556ff,#ff6f91); box-shadow:none; }
html[data-theme="summer"] .infra-node b:nth-child(2) { background:#18cfa4; }
html[data-theme="summer"] .infra-next-box, html[data-theme="summer"] .infra-bonuses div, html[data-theme="summer"] .infra-requirements > div { background:rgba(255,255,255,.46); }

@media (max-width: 1050px) { .infrastructure-hero { grid-template-columns:1fr; } .infra-visual-wrap { min-height:280px; } }
@media (max-width: 760px) {
  .head-pills { justify-content:flex-start; }
  .infra-strip { align-items:flex-start; flex-direction:column; }
  .infra-strip-next { width:100%; justify-content:space-between; text-align:left; }
  .infra-roadmap { grid-template-columns:1fr; }
  .infra-stage-card { grid-template-columns:42px 1fr auto; }
  .infra-bonuses { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .infra-requirements { grid-template-columns:1fr; }
  .infra-visual-wrap { min-height:240px; }
}
@media (max-width: 440px) {
  .infra-strip > div:first-child { grid-template-columns:1fr; }
  .infra-strip .eyebrow { grid-column:auto; }
  .infra-strip-next { flex-direction:column; align-items:stretch; }
  .infra-bonuses { grid-template-columns:1fr 1fr; }
  .infra-stage-card { grid-template-columns:36px 1fr; }
  .infra-stage-card > .level-badge { grid-column:2; justify-self:start; }
}

@media (max-width: 560px) {
  .active-transfer-head, .transfer-row-head, .transfer-footer { align-items:stretch; flex-direction:column; }
  .active-transfer-actions { width:100%; justify-content:space-between; }
  .active-transfer-actions .btn { flex:1; }
  .transfer-reward { font-size:16px; }
  .compact-btn { width:100%; }
}

/* v0.3.1 – Cloud Accounts / Offline Resume */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(124,255,183,.11), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(94,231,255,.10), transparent 30%),
    rgba(3,8,12,.94);
  backdrop-filter: blur(20px);
}
.auth-gate.hidden { display: none; }
.auth-shell {
  width: min(470px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(14,27,37,.98), rgba(7,15,21,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.auth-brand { font-size: 24px; font-weight: 950; letter-spacing: -.04em; margin-bottom: 26px; }
.auth-brand span { color: var(--green); }
.auth-shell h1 { margin: 6px 0 10px; font-size: clamp(28px, 7vw, 42px); }
.auth-copy { color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); margin-bottom: 18px; }
.auth-tab { border: 0; border-radius: 9px; padding: 10px 8px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 900; font-size: 11px; letter-spacing: .08em; }
.auth-tab.active { background: rgba(124,255,183,.09); color: var(--green); box-shadow: inset 0 0 0 1px var(--line-strong); }
.auth-form { display: none; flex-direction: column; gap: 13px; }
.auth-form.active { display: flex; }
.auth-form label, .password-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.auth-form input, .password-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  padding: 12px 13px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  outline: none;
  font: inherit;
}
.auth-form input:focus, .password-form input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(124,255,183,.07); }
.auth-form small { color: var(--muted); line-height: 1.45; }
.auth-submit { margin-top: 4px; width: 100%; }
.auth-message { min-height: 20px; margin-top: 12px; color: var(--danger); font-size: 12px; }
.auth-message.success { color: var(--green); }
.auth-security { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: 10px; text-align: center; }
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  cursor: pointer;
  font-size: 10px;
  max-width: 140px;
}
.account-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(255,107,120,.08); flex: 0 0 auto; }
.cloud-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(124,255,183,.09); }
.cloud-dot.syncing { background: #ffd25d; box-shadow: 0 0 0 4px rgba(255,210,93,.10); animation: cloudPulse 1s infinite alternate; }
@keyframes cloudPulse { to { opacity: .45; } }
.cloud-summary { margin-top: 6px; }
.password-card { margin-top: 14px; }
.password-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-top: 18px; }
.password-form .btn { min-height: 42px; }

html[data-theme="summer"] .auth-gate {
  background:
    radial-gradient(circle at 12% 10%, rgba(255,207,92,.50), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255,120,156,.29), transparent 30%),
    radial-gradient(circle at 78% 84%, rgba(101,86,255,.20), transparent 34%),
    rgba(255,250,240,.93);
}
html[data-theme="summer"] .auth-shell {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,252,255,.95) 55%, rgba(255,246,250,.96));
  box-shadow: 0 28px 80px rgba(73,68,126,.18);
}
html[data-theme="summer"] .auth-tabs,
html[data-theme="summer"] .account-chip { background: rgba(255,255,255,.58); }
html[data-theme="summer"] .auth-form input,
html[data-theme="summer"] .password-form input { background: rgba(255,255,255,.82); border-color: rgba(94,90,180,.16); }

@media (max-width: 850px) {
  .password-form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .account-chip { padding: 6px 8px; max-width: 100px; }
  .auth-shell { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .auth-gate { padding: 12px; }
  .auth-shell { border-radius: 17px; }
  .auth-security { font-size: 9px; }
}

.offline-report-modal { width: min(620px, 100%); }
.offline-report-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0 12px; }
.offline-report-grid > div { border:1px solid var(--line); background:var(--panel2); border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.offline-report-grid span { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.13em; }
.offline-report-grid strong { font-size:18px; overflow-wrap:anywhere; }
.offline-cap-note { color:var(--muted); font-size:12px; margin:0 0 16px; }
html[data-theme="summer"] .offline-report-grid > div { background:rgba(255,255,255,.66); border-color:rgba(97,83,148,.12); }
@media (max-width: 620px) { .offline-report-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .offline-report-grid strong { font-size:16px; } }
\n\n/* v0.4.0 – Data Pipeline */
.pipeline-route { display:block; margin-top:4px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.06em; }
.pipeline-detail { color:var(--muted); font-size:10px; }
.pipeline-mini { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; padding:2px 6px; font-size:8px; font-weight:950; letter-spacing:.08em; }
.pipeline-upload { color:var(--green); border-color:rgba(124,255,183,.28); background:rgba(124,255,183,.06); }
.pipeline-transfer { color:#5ee7ff; border-color:rgba(94,231,255,.28); background:rgba(94,231,255,.07); }
.pipeline-processing { color:#d6a8ff; border-color:rgba(214,168,255,.28); background:rgba(214,168,255,.07); }
.pipeline-stage-download { border-color:rgba(94,231,255,.22); }
.pipeline-stage-processing { border-color:rgba(214,168,255,.22); }
.pipeline-stage-upload { border-color:rgba(124,255,183,.22); }
.pipeline-stage-download .progress-bar { background:linear-gradient(90deg,#39bfe6,#5ee7ff); }
.pipeline-stage-processing .progress-bar { background:linear-gradient(90deg,#956cff,#d6a8ff); }
.pipeline-stage-upload .progress-bar { background:linear-gradient(90deg,var(--green),#a9ffd0); }
.pipeline-metric strong { overflow-wrap:anywhere; }
html[data-theme="summer"] .pipeline-upload { color:#0c9d83; border-color:rgba(18,188,156,.22); background:rgba(18,188,156,.08); }
html[data-theme="summer"] .pipeline-transfer { color:#1f8fc7; border-color:rgba(45,151,210,.22); background:rgba(45,151,210,.08); }
html[data-theme="summer"] .pipeline-processing { color:#7653d5; border-color:rgba(118,83,213,.22); background:rgba(118,83,213,.08); }
html[data-theme="summer"] .pipeline-stage-download { border-color:rgba(45,151,210,.18); }
html[data-theme="summer"] .pipeline-stage-processing { border-color:rgba(118,83,213,.18); }
@media (max-width:760px) { .pipeline-route { white-space:normal; } }
