@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #0c1222;
  --bg-elevated: #121a2b;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.16);
  --danger: #f87171;
  --ok: #34d399;
  --radius: 0.85rem;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --font: "Outfit", "Segoe UI", sans-serif;
  --content-width: 1100px;
}

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

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 50% at 90% -10%, rgba(45, 212, 191, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(56, 189, 248, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(12, 18, 34, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--accent), #38bdf8);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a,
.nav-logout button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  height: 2.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-logout button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-logout {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.site-main {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--panel-border);
}

/* Shared page titles */
.hero,
.page-header,
.profile-header {
  margin-bottom: 1.75rem;
}

.hero h1,
.page-header h1,
.profile-header h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0.65rem 0 0.55rem;
}

.hero p,
.page-header p,
.profile-header .lead,
.lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 40rem;
  line-height: 1.6;
}

.hero {
  padding: 1.5rem 0 0.5rem;
}

.hero p {
  margin-bottom: 1.4rem;
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.actions-spaced {
  margin-bottom: 1rem;
}

.grow {
  flex: 1;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.1rem;
  border-radius: 0.65rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #042f2e;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--panel-border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-accent {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.btn-accent:hover {
  background: rgba(56, 189, 248, 0.24);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.32);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.24);
}

.btn-block {
  width: 100%;
}

.section {
  margin-top: 2.25rem;
}

.section h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.card:hover {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
}

.card-thumb {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--panel-border);
}

.card-thumb-placeholder {
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.2), rgba(56, 189, 248, 0.12)),
    var(--bg-elevated);
}

.card h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.card p,
.meta,
.empty {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.card-body > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-cta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--panel-border);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.card-link-block {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.15rem 1.15rem;
}

.card-actions form {
  display: inline;
}

.educator-course-card {
  gap: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.empty-state {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1rem 0;
}

.course-hero-thumb {
  display: block;
  width: min(100%, 380px);
  height: 168px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  margin: 0.75rem 0 0.85rem;
  background: var(--bg-elevated);
}

.lesson-list {
  display: grid;
  gap: 0.75rem;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  transition: border-color 0.15s, background 0.15s;
}

.lesson-item:hover {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.lesson-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.lesson-num {
  flex: 0 0 auto;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.lesson-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.lesson-item p {
  color: var(--muted);
  font-size: 0.88rem;
}

.lesson-item-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #042f2e;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  line-height: 1.2;
}

.lesson-item:hover .lesson-item-cta {
  background: var(--accent-strong);
}

.badge {
  flex: 0 0 auto;
  margin-left: 0;
  font-size: 0.78rem;
  color: var(--ok);
  font-weight: 700;
  white-space: nowrap;
}

.messages {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.alert {
  padding: 0.75rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.alert-success {
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.alert-error,
.alert-warning {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.alert-info {
  border-color: rgba(45, 212, 191, 0.35);
  color: #99f6e4;
}

/* Forms — one panel language */
.auth-card,
.panel,
.form-panel {
  width: min(460px, 100%);
  margin: 0 auto;
  background: rgba(18, 26, 43, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow);
}

.form-panel {
  margin: 0 0 1.5rem;
  width: min(560px, 100%);
}

.form-panel-narrow {
  width: min(460px, 100%);
}

.auth-card h1,
.panel h1,
.form-panel h1 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.auth-card .lead,
.panel .lead,
.form-panel .lead {
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--panel-border);
  background: rgba(12, 18, 34, 0.85);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group ul {
  margin-top: 0.35rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.role-field ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
}

.role-field li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.6rem;
  background: rgba(12, 18, 34, 0.55);
}

.role-field input[type="radio"] {
  width: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(45, 212, 191, 0.3);
  border-color: rgba(45, 212, 191, 0.5);
}

.help-text,
.error-list {
  font-size: 0.82rem;
  margin-top: 0.35rem;
  color: var(--muted);
}

.error-list {
  color: #fecaca;
  list-style: none;
}

.auth-footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

.stats,
.educator-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.educator-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 1.25rem 0 0.25rem;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.95rem;
  min-width: 7.5rem;
  text-align: center;
}

.stat .number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat .label {
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-bar {
  width: 100%;
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.55rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

.progress-text {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Hotspot placer */
.hotspot-placer-body .site-main {
  width: min(1400px, calc(100% - 1.25rem));
  padding-top: 1.15rem;
}

.hotspot-placer-header {
  margin-bottom: 0.75rem;
}

.hotspot-placer-header h1 {
  font-size: 1.5rem;
}

.hotspot-placer {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  height: calc(100vh - 170px);
  min-height: 560px;
}

.hotspot-placer-panel.panel {
  flex: 0 0 340px;
  width: 340px;
  max-width: 340px;
  margin: 0;
  align-self: stretch;
  overflow-y: auto;
  max-height: 100%;
  box-shadow: none;
}

.hotspot-form-actions {
  margin-top: 0.35rem;
}

.hotspot-form-actions .btn {
  flex: 1;
}

.coord-block {
  margin: 0.35rem 0 1rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
}

.coord-block-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.coord-block .help-text {
  margin-bottom: 0.7rem;
}

.coord-block .help-text.is-ok {
  color: var(--ok);
}

.coord-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.coord-grid .form-group {
  margin-bottom: 0;
}

.coord-grid input {
  background: rgba(12, 18, 34, 0.85);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hotspot-placer-viewer {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border-radius: 1rem;
  border: 1px solid var(--panel-border);
  background: #080e1a;
  overflow: hidden;
}

.hotspot-placer-viewer canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

#placer-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
  background: rgba(12, 18, 34, 0.75);
}

#placer-loading .loader {
  width: 42px;
  height: 42px;
  border: 3px solid #334155;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: placer-spin 1s linear infinite;
}

@keyframes placer-spin {
  to {
    transform: rotate(360deg);
  }
}

#placer-instructions {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  background: rgba(12, 18, 34, 0.88);
  color: var(--muted);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
  border: 1px solid var(--panel-border);
}

@media (max-width: 760px) {
  .hotspot-placer {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .hotspot-placer-panel.panel {
    flex: none;
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .hotspot-placer-viewer {
    flex: none;
    width: 100%;
    height: 55vh;
    min-height: 360px;
    order: -1;
  }

  #placer-instructions {
    white-space: normal;
    text-align: center;
    max-width: 92%;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    width: 100%;
  }

  .stat {
    flex: 1;
  }
}

/* Course learning-path — mockup layout */
.flow-course-body .site-main {
  width: min(1280px, calc(100% - 1.5rem));
  padding-top: 1.5rem;
}

.flow-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.flow-side {
  position: sticky;
  top: 4.75rem;
}

.flow-back {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.flow-back:hover {
  color: var(--accent-strong);
}

.flow-side h1 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.flow-side-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.flow-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.flow-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.flow-pill-accent {
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.4);
  background: var(--accent-soft);
}

.flow-side-visual {
  position: relative;
  border-radius: 1.1rem;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #0a1220;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.flow-side-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-side-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 30%, transparent 75%);
}

.flow-side-visual-empty {
  background:
    radial-gradient(circle at 50% 40%, rgba(45, 212, 191, 0.18), transparent 55%),
    #0a1220;
}

.flow-path {
  min-width: 0;
  padding: 0.15rem 0 1rem;
}

.flow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.flow-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: stretch;
}

.flow-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.35rem;
}

.flow-marker {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  background: #121a2b;
  border: 2px solid #334155;
  color: #94a3b8;
}

.flow-marker-core {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
}

.flow-item.is-done .flow-marker {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.flow-item.is-current .flow-marker,
.flow-item.is-active .flow-marker,
.flow-item.is-available.is-active .flow-marker {
  border-color: var(--accent);
  color: var(--accent);
  background: #0c1222;
  box-shadow:
    0 0 0 5px rgba(45, 212, 191, 0.16),
    0 0 22px rgba(45, 212, 191, 0.35);
}

.flow-item.is-available .flow-marker {
  border-color: #475569;
  color: #94a3b8;
  background: #0f172a;
}

.flow-line {
  flex: 1 1 auto;
  width: 2px;
  min-height: 1.75rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(45, 212, 191, 0.65),
    rgba(71, 85, 105, 0.45)
  );
}

.flow-item.is-done .flow-line {
  background: rgba(45, 212, 191, 0.55);
}

.flow-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 1.05rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}

.flow-card:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(18, 28, 48, 0.9);
}

.flow-item.is-done .flow-card {
  border-color: rgba(45, 212, 191, 0.28);
}

.flow-item.is-current .flow-card,
.flow-item.is-active .flow-card {
  border-color: rgba(45, 212, 191, 0.75);
  background: rgba(12, 22, 40, 0.95);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.2),
    0 0 28px rgba(45, 212, 191, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.35);
}

.flow-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, #2dd4bf 0%, #14b8a6 45%, #0e7490 100%);
  box-shadow:
    0 8px 16px rgba(13, 148, 136, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  pointer-events: none;
}

.flow-icon::after {
  content: "";
  position: absolute;
  inset: 28% 28%;
  border-radius: 0.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transform: rotate(18deg);
}

.flow-card-body {
  pointer-events: none;
}

.flow-card-body h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.flow-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.flow-card-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.flow-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.flow-status.is-done {
  color: var(--accent);
}

.flow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #042f2e;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(45, 212, 191, 0.28);
}

.flow-cta:hover {
  background: var(--accent-strong);
}

.flow-cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.4);
  box-shadow: none;
}

.flow-cta-secondary:hover {
  background: var(--accent-soft);
}

.flow-tips {
  position: sticky;
  top: 4.75rem;
  align-self: start;
}

.flow-tips-card {
  position: relative;
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(12, 20, 36, 0.92);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease;
}

.flow-tips-card::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.6rem;
  width: 12px;
  height: 12px;
  background: rgba(12, 20, 36, 0.92);
  border-left: 1px solid rgba(45, 212, 191, 0.22);
  border-bottom: 1px solid rgba(45, 212, 191, 0.22);
  transform: rotate(45deg);
}

.flow-tips-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.flow-tips-card > h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.flow-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.flow-tips-list li[hidden] {
  display: none !important;
}

.flow-tips-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.flow-tips-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.flow-tips-list strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.flow-tips-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 1020px) {
  .flow-shell {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .flow-side,
  .flow-tips {
    position: static;
  }

  .flow-side-visual {
    max-width: 360px;
  }

  .flow-tips-card::before {
    display: none;
  }

  .flow-tips {
    order: 3;
  }

  .flow-path {
    order: 2;
  }
}
