:root {
  color-scheme: dark;
  --bg: #020812;
  --panel: rgba(1, 13, 34, 0.85);
  --panel-border: rgba(122, 221, 255, 0.17);
  --accent: #4ee1fc;
  --accent-strong: #16c2ff;
  --text: #d0f8ff;
  --muted: #8ab9cc;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(rgba(1, 5, 18, 0.88), rgba(0, 0, 0, 0.72)),
    url('interface.jpg') center / cover no-repeat fixed;
  color: var(--text);
}

button {
  appearance: none;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

.splash-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

.splash-card {
  width: min(520px, 100%);
  text-align: center;
  padding: 40px 30px;
  border: 1px solid rgba(120, 230, 255, 0.16);
  background: rgba(2, 10, 23, 0.95);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.splash-logo {
  width: min(260px, 60%);
  max-width: 260px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 24px rgba(56, 218, 255, 0.55));
  animation: blink 3s ease-in-out infinite;
}

.splash-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: 0.32em;
}

.splash-card p {
  color: var(--muted);
  margin: 16px auto 32px;
  line-height: 1.8;
  max-width: 420px;
}

.primary-button,
.secondary-button {
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 187, 255, 0.9), rgba(23, 101, 255, 0.85));
  color: #fff;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(20, 172, 255, 0.25);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 32px 14px;
}

.badge,
.tag,
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge {
  background: rgba(11, 38, 76, 0.9);
  border: 1px solid rgba(78, 225, 252, 0.35);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.tag {
  color: var(--accent);
  font-size: 0.9rem;
}

.status-item {
  color: var(--muted);
  font-size: 0.95rem;
}

.dashboard {
  min-height: calc(100vh - 80px);
  width: 100%;
  padding: 26px 32px 40px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  background: transparent;
  position: relative;
  z-index: 10;
}

.panel {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.card h2,
.card h3 {
  margin-top: 0;
  color: #e2fbff;
}

.stat-row,
.metric-row,
.control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
}

.stat-row strong,
.metric-row strong,
.control-item strong {
  color: #f1fcff;
}

.small-card {
  margin-top: 24px;
}

.reading-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  line-height: 1.8;
}

.orb-frame {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.orb-frame::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border: 2px solid rgba(46, 198, 255, 0.25);
  border-radius: 50%;
  animation: rotate 8s linear infinite;
  z-index: 1;
}

.orb-frame::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px dashed rgba(78, 225, 252, 0.15);
  border-radius: 50%;
  animation: rotate 12s linear infinite reverse;
  z-index: 1;
}

.orb-image {
  width: min(360px, 100%);
  border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(46, 198, 255, 0.35));
  z-index: 2;
  animation: blink 3.5s ease-in-out infinite;
}

.orb-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(22, 217, 255, 0.24), transparent 60%);
  filter: blur(24px);
  z-index: 1;
}

.voice-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(26, 228, 255, 0.2), transparent 55%);
  animation: pulseWave 1.8s ease-out infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes pulseWave {
  0% {
    transform: scale(0.9);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.08;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.speak-panel {
  margin-top: 24px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.secondary-button {
  background: rgba(10, 116, 169, 0.92);
  color: #fff;
  width: min(230px, 100%);
}

.left-panel,
.center-panel,
.right-panel {
  display: block;
}

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .center-panel {
    order: -1;
  }
}

@media (max-width: 780px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .splash-card {
    padding: 30px 22px;
  }
  .dashboard {
    padding: 18px 16px 30px;
  }
  .card {
    padding: 18px;
  }
  .orb-frame {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .splash-card h1 {
    font-size: 2.4rem;
  }
  .top-bar {
    padding: 16px 18px 12px;
  }
  .primary-button,
  .secondary-button {
    width: 100%;
  }
  .stat-row,
  .metric-row,
  .control-item {
    margin-top: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .dashboard {
    background-position: center top;
  }
  .orb-frame {
    min-height: 280px;
  }
}
