:root {
  --bg: #050915;
  --bg-alt: #0e162a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eaf0ff;
  --muted: #b7c2d9;
  --accent: #7ae7c7;
  --accent-2: #f5c266;
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(5, 9, 21, 0.6);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(122, 231, 199, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(245, 194, 102, 0.08), transparent 25%),
    linear-gradient(135deg, var(--bg), var(--bg-alt));
  color: var(--text);
}

.background-layer {
  position: fixed;
  inset: 0;
  background: url("./background_image.jpg") center/cover no-repeat;
  opacity: 0.04;
  filter: grayscale(100%);
  pointer-events: none;
  z-index: 0;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 64px clamp(24px, 6vw, 96px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin: 8px 0 12px;
  line-height: 1.1;
}

.hero .lede {
  color: var(--muted);
  max-width: 520px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  margin: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
  align-items: center;
  justify-content: flex-start;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-green { background: var(--accent); }
.dot-amber { background: var(--accent-2); }
.dot-slate { background: #95a3c3; }

.clock {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.panel-body {
  padding: 24px;
}

.panel-body h2 {
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.pill-list {
  display: flex;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 16px 0 0;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
}

.hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(24px, 6vw, 96px) 0;
  font-weight: 600;
}

.brand {
  letter-spacing: 0.06em;
  color: var(--accent);
}

.user-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text);
}

button.ghost {
  margin-left: auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ghost-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.card.flip-card {
  padding: 0;
  overflow: hidden;
}

.label {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.session-info {
  color: var(--text);
  line-height: 1.5;
}

.flip-card {
  perspective: 1200px;
  cursor: pointer;
  position: relative;
}

.flip-inner {
  position: relative;
  min-height: 180px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-inner.flipped {
  transform: rotateY(180deg);
}

.flip-face {
  backface-visibility: hidden;
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-face p {
  margin: 0;
}

.flip-card .ghost {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .layout {
    padding: 32px 20px 64px;
  }
  .topbar {
    padding: 16px 20px 0;
  }
  button.ghost {
    width: 100%;
    margin-left: 0;
  }
}
