/* ============================================================
   CUTBOW COMMAND — JARVIS DASHBOARD
   Design: Deep space, glassmorphism, cyan glow, sci-fi command center
   ============================================================ */

/* DESIGN TOKENS */
:root {
  --bg-void:       #0a0a0f;
  --bg-deep:       #0d0d18;
  --bg-panel:      rgba(10, 20, 40, 0.55);
  --bg-panel-hover:rgba(12, 25, 50, 0.70);
  --bg-stat:       rgba(0, 212, 255, 0.04);

  --cyan:          #00d4ff;
  --cyan-dim:      rgba(0, 212, 255, 0.15);
  --cyan-glow:     rgba(0, 212, 255, 0.35);
  --cyan-bright:   #40e8ff;

  --amber:         #ffa500;
  --amber-dim:     rgba(255, 165, 0, 0.15);
  --amber-glow:    rgba(255, 165, 0, 0.4);

  --green:         #00ff88;
  --green-dim:     rgba(0, 255, 136, 0.15);

  --red:           #ff3355;
  --red-dim:       rgba(255, 51, 85, 0.15);

  --text-primary:  #e8f4ff;
  --text-secondary:#7aa8cc;
  --text-dim:      #3d5a7a;
  --text-mono:     #a0d4f0;

  --border-panel:  rgba(0, 212, 255, 0.18);
  --border-bright: rgba(0, 212, 255, 0.45);

  --blur:          16px;
  --radius-panel:  2px;

  --font-ui:       'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  --header-h:      56px;
  --footer-h:      28px;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-void);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */

/* Scan lines overlay */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 40px; }
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 6s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1.0; }
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  animation: particleDrift var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes particleDrift {
  0%   { opacity: 0;    transform: translateY(100vh) translateX(var(--dx, 0px)); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0;    transform: translateY(-10vh)  translateX(calc(var(--dx, 0px) + var(--drift, 20px))); }
}

/* ============================================================
   GLASS PANEL BASE
   ============================================================ */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  position: relative;
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.04),
    inset 0 0 30px rgba(0, 212, 255, 0.02);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(0, 212, 255, 0.30);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.08),
    inset 0 0 30px rgba(0, 212, 255, 0.03);
}

/* Corner brackets */
.panel-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 2;
}
.panel-corner.tl { top: -1px;    left: -1px;   border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.panel-corner.tr { top: -1px;    right: -1px;  border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.panel-corner.bl { bottom: -1px; left: -1px;   border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.panel-corner.br { bottom: -1px; right: -1px;  border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

/* Panel header */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border-panel);
  margin-bottom: 0;
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}

.panel-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
  box-shadow: 0 0 6px var(--cyan-glow);
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 6px var(--cyan-glow); }
  50%       { opacity: 0.4; box-shadow: 0 0 12px var(--cyan-glow); }
}
.pulse { animation: pulse 2.5s ease-in-out infinite; }

@keyframes pulseAmber {
  0%, 100% { opacity: 1;   box-shadow: 0 0 6px var(--amber-glow); }
  50%       { opacity: 0.4; box-shadow: 0 0 12px var(--amber-glow); }
}
.pulse-amber { animation: pulseAmber 2.5s ease-in-out infinite; }

/* ============================================================
   FADE-IN ANIMATIONS
   ============================================================ */
.panel {
  animation: fadeInPanel 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel:nth-child(1) { animation-delay: 0.1s; }
.panel:nth-child(2) { animation-delay: 0.2s; }
.panel:nth-child(3) { animation-delay: 0.3s; }
.panel:nth-child(4) { animation-delay: 0.4s; }
.panel:nth-child(5) { animation-delay: 0.5s; }

/* ============================================================
   LOADING SHIMMER
   ============================================================ */
.loading-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.cmd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-panel);
  box-shadow: 0 1px 20px rgba(0, 212, 255, 0.06);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-svg-sm {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-brand-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.header-brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.header-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sys-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.5s ease-in-out infinite;
  --cyan-glow: rgba(0, 255, 136, 0.4);
}

.indicator-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-clock {
  text-align: right;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px var(--cyan-glow);
  line-height: 1;
}

.clock-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-align: right;
}

.logout-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--text-dim);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 8px rgba(255, 51, 85, 0.3);
}

.logout-form {
  display: inline;
}

/* ============================================================
   MAIN GRID
   ============================================================ */
.cmd-grid {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: var(--footer-h);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 280px 280px;
  grid-template-rows: 120px 1fr 1fr;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

/* Panel placement */
.stats-panel    { grid-column: 1 / -1; grid-row: 1; }
.projects-panel { grid-column: 1;      grid-row: 2 / 4; }
.health-panel   { grid-column: 2;      grid-row: 2; }
.activity-panel { grid-column: 3;      grid-row: 2; }
.upcoming-panel { grid-column: 2 / 4;  grid-row: 3; }

/* ============================================================
   RESOURCE MONITOR
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 14px;
  height: calc(100% - 38px);
}

/* Color utility classes */
.resource-cyan   { color: var(--cyan);   text-shadow: 0 0 14px var(--cyan-glow); }
.resource-green  { color: var(--green);  text-shadow: 0 0 14px rgba(0, 255, 136, 0.4); }
.resource-amber  { color: var(--amber);  text-shadow: 0 0 14px var(--amber-glow); }
.resource-warn   { color: var(--amber);  text-shadow: 0 0 14px var(--amber-glow); }
.resource-danger { color: var(--red);    text-shadow: 0 0 14px rgba(255, 51, 85, 0.45); }

.resource-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.resource-bar.resource-cyan   { background: var(--cyan);  box-shadow: 0 0 6px var(--cyan-glow); }
.resource-bar.resource-green  { background: var(--green); box-shadow: 0 0 6px rgba(0, 255, 136, 0.5); }
.resource-bar.resource-amber,
.resource-bar.resource-warn   { background: var(--amber); box-shadow: 0 0 6px var(--amber-glow); }
.resource-bar.resource-danger { background: var(--red);   box-shadow: 0 0 6px rgba(255, 51, 85, 0.5); }

.stat-card {
  background: var(--bg-stat);
  border: 1px solid var(--border-panel);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--cyan-dim);
  background: rgba(0, 212, 255, 0.06);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ============================================================
   PROJECTS PANEL
   ============================================================ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  height: calc(100% - 38px);
  padding: 8px 0;
}

.projects-list::-webkit-scrollbar { width: 3px; }
.projects-list::-webkit-scrollbar-track { background: transparent; }
.projects-list::-webkit-scrollbar-thumb { background: var(--cyan-dim); }

.project-card {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.07);
  transition: background 0.2s, border-left-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-left: 2px solid transparent;
}

.project-card:last-child { border-bottom: none; }

.project-card:hover {
  background: rgba(0, 212, 255, 0.05);
  border-left-color: var(--cyan);
}

.project-drill-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0;
  margin-top: 6px;
  transition: opacity 0.2s ease;
}

.project-card:hover .project-drill-hint {
  opacity: 0.7;
}

.project-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.project-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.project-status-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1px solid;
  text-transform: uppercase;
}

.status-active   { color: var(--green); border-color: var(--green); background: var(--green-dim); }
.status-poc      { color: var(--cyan);  border-color: var(--cyan);  background: var(--cyan-dim); }
.status-discovery{ color: var(--amber); border-color: var(--amber); background: var(--amber-dim); }
.status-launch   { color: #ff66aa; border-color: #ff66aa; background: rgba(255,102,170,0.10); }

.project-tagline {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.project-details {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.4;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.progress-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  min-width: 30px;
  text-align: right;
}

.project-highlight {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.project-highlight::before {
  content: '▸ ';
  color: var(--cyan);
}

/* ============================================================
   SYSTEM HEALTH
   ============================================================ */
.health-content {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  height: calc(100% - 38px);
}

.health-section-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 8px 0 4px;
  border-bottom: 1px solid rgba(0,212,255,0.05);
  margin-bottom: 6px;
}

.health-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.health-key {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.health-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mono);
}

.health-val.good  { color: var(--green); }
.health-val.warn  { color: var(--amber); }
.health-val.cyan  { color: var(--cyan); }

.health-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meter-track {
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  transition: width 1s ease;
}

.meter-fill.warn { background: linear-gradient(90deg, var(--amber), #ffcc00); }

.fly-app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.fly-app-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.fly-app-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.1em;
}

.fly-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse 2.5s ease-in-out infinite;
  --cyan-glow: rgba(0, 255, 136, 0.5);
}

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  height: calc(100% - 38px);
  padding: 4px 0;
}

.activity-list::-webkit-scrollbar { width: 3px; }
.activity-list::-webkit-scrollbar-track { background: transparent; }
.activity-list::-webkit-scrollbar-thumb { background: var(--cyan-dim); }

.activity-item {
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  animation: scanIn 0.4s ease forwards;
  opacity: 0;
}

@keyframes scanIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.activity-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-icon.icon-pr       { color: var(--cyan); }
.activity-icon.icon-deploy    { color: var(--green); background: var(--green-dim); border-color: var(--green); }
.activity-icon.icon-milestone { color: #ff66aa; background: rgba(255,102,170,0.1); border-color: #ff66aa; }
.activity-icon.icon-test      { color: var(--cyan); }
.activity-icon.icon-research  { color: var(--amber); background: var(--amber-dim); border-color: var(--amber); }
.activity-icon.icon-build     { color: var(--cyan); }

.activity-body {
  flex: 1;
  min-width: 0;
}

.activity-msg {
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 2px;
}

.activity-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ============================================================
   UPCOMING PANEL
   ============================================================ */
.upcoming-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 12px;
  height: calc(100% - 38px);
  overflow: hidden;
}

.upcoming-item {
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid var(--border-panel);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
}

.upcoming-item:hover {
  border-color: var(--cyan-dim);
  background: rgba(0, 212, 255, 0.05);
}

.upcoming-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.upcoming-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.upcoming-desc {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

.upcoming-type-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
  margin-top: auto;
}

.upcoming-type-badge.type-launch {
  color: #ff66aa;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cmd-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(8, 12, 24, 0.90);
  border-top: 1px solid var(--border-panel);
}

.footer-mono {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-body .grid-overlay {
  background-size: 80px 80px;
}

.login-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 440px;
  padding: 0 20px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  animation: fadeInPanel 0.8s ease forwards;
}

.brand-logo .logo-svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 16px var(--cyan-glow));
}

.logo-hex {
  animation: hexRotate 20s linear infinite;
  transform-origin: 30px 30px;
  transform-box: fill-box;
}

@keyframes hexRotate {
  from { stroke-dashoffset: 0; opacity: 0.6; }
  50%  { opacity: 1; }
  to   { stroke-dashoffset: 0; opacity: 0.6; }
}

.logo-core {
  animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { fill-opacity: 1; filter: drop-shadow(0 0 6px var(--cyan)); }
  50%       { fill-opacity: 0.7; filter: drop-shadow(0 0 14px var(--cyan)); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.login-panel {
  width: 100%;
  padding: 0;
  animation: fadeInPanel 0.6s ease 0.2s both;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-panel);
}

.access-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.security-level {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.login-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 212, 255, 0.03);
  border-bottom: 1px solid var(--border-panel);
}

.login-status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  display: inline-block;
}

.login-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.field-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-panel);
  background: rgba(0, 212, 255, 0.03);
  position: relative;
  transition: all 0.2s;
}

.field-wrapper:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-dim), inset 0 0 10px rgba(0,212,255,0.03);
}

.field-prefix {
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  border-right: 1px solid var(--border-panel);
  user-select: none;
}

.token-input {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.token-input::placeholder {
  color: var(--text-dim);
  font-size: 11px;
}

.field-glow {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.field-wrapper:focus-within .field-glow {
  transform: scaleX(1);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0,212,255,0.10);
}

.submit-btn:hover {
  background: rgba(0, 212, 255, 0.16);
  box-shadow: 0 0 24px rgba(0,212,255,0.25);
  letter-spacing: 0.18em;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-arrow {
  font-size: 16px;
}

.login-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-panel);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-line {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.login-diagnostics {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeInPanel 0.6s ease 0.4s both;
}

.diag-line {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 2px 0;
}

.diag-line::before {
  content: '> ';
  color: var(--cyan);
  opacity: 0.5;
}

/* ============================================================
   RESPONSIVE — TABLET FALLBACK
   ============================================================ */
@media (max-width: 1100px) {
  .cmd-grid {
    grid-template-columns: 1fr 240px;
    grid-template-rows: 120px 1fr 1fr 1fr;
  }
  .stats-panel    { grid-column: 1 / -1; grid-row: 1; }
  .projects-panel { grid-column: 1;      grid-row: 2 / 4; }
  .health-panel   { grid-column: 2;      grid-row: 2; }
  .activity-panel { grid-column: 2;      grid-row: 3; }
  .upcoming-panel { grid-column: 1 / -1; grid-row: 4; }

  .upcoming-list {
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
  }
}
