@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg-dark: #070408;
  --bg-panel: rgba(15, 10, 22, 0.65);
  --bg-hover: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(168, 85, 247, 0.2);
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  
  --ow-purple: #c084fc;
  --ow-purple-glow: rgba(192, 132, 252, 0.4);
  
  --nether-orange: #fb923c;
  --nether-orange-glow: rgba(251, 146, 60, 0.4);

  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-success: #10b981;
  --color-obsolete: #64748b;
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.3) rgba(0, 0, 0, 0.2);
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--color-text);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(88, 28, 135, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(234, 88, 12, 0.12) 0%, transparent 40%),
    radial-gradient(50% 50% at 50% 50%, rgba(15, 10, 22, 1) 0%, #070408 100%);
  background-attachment: fixed;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 6, 15, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-portal {
  position: relative;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--ow-purple), var(--nether-orange));
  border-radius: 8px;
  animation: logo-pulsate 3s infinite ease-in-out;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.logo-portal::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: #000;
  border-radius: 4px;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff 40%, var(--ow-purple) 70%, var(--nether-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.4);
  border-color: #ef4444;
}

.btn-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.4);
  border-color: #10b981;
}

/* Glassmorphism Panel styles */
.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  overflow: hidden;
}

.panel-header {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-body {
  padding: 1rem;
}

/* Main Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-template-rows: minmax(280px, 3fr) minmax(230px, 2fr);
  gap: 1.25rem;
  padding: 1.25rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar configuration */
.sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  height: 100%;
  min-height: 0;
}

.portal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 2px;
}

.portal-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.3);
}

.portal-item.selected {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--ow-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.portal-item.nether-selected {
  background: rgba(251, 146, 60, 0.1);
  border-color: var(--nether-orange);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.15);
}

.portal-item.obsolete {
  opacity: 0.6;
  border-style: dashed;
}

.portal-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-coords-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.portal-actions {
  display: flex;
  gap: 0.25rem;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--color-muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.action-btn.active-toggle.obsolete-active {
  color: var(--color-error);
}

/* Node Form Editor */
.node-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.input-text, .input-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s ease;
}

.input-text:focus, .input-select:focus {
  border-color: var(--ow-purple);
}

.input-text-coords {
  font-family: var(--font-mono);
  text-align: center;
}

.dimension-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dimension-tab {
  padding: 0.4rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.dimension-tab.active.ow {
  background: rgba(168, 85, 247, 0.2);
  color: var(--ow-purple);
  box-shadow: inset 0 0 5px rgba(168, 85, 247, 0.2);
}

.dimension-tab.active.nether {
  background: rgba(249, 115, 22, 0.2);
  color: var(--nether-orange);
  box-shadow: inset 0 0 5px rgba(249, 115, 22, 0.2);
}

/* Map area layout */
.maps-container {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  min-height: 0;
  overflow: hidden;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-canvas-container {
  position: relative;
  flex: 1;
  background: rgba(5, 2, 8, 0.7);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  border-top: none;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-controls-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 5;
}

.map-overlay-btn {
  background: rgba(15, 10, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.map-overlay-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--ow-purple);
}

.nether-overlay-btn:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--nether-orange);
}

.coordinates-display-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 5;
  color: var(--color-muted);
}

.coordinates-display-overlay strong {
  color: #fff;
}

/* Status markers on map titles */
.map-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

.map-badge.ow {
  background: rgba(168, 85, 247, 0.2);
  color: var(--ow-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.map-badge.nether {
  background: rgba(249, 115, 22, 0.2);
  color: var(--nether-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Bottom details grid */
.details-container {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0.5rem;
}

.details-container > .panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.details-container .panel-body {
  min-height: 0;
}

/* Warnings and diagnostics styling */
.diagnostic-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.warning-item {
  padding: 0.85rem;
  border-radius: 8px;
  border-left: 4px solid;
  font-size: 0.85rem;
  line-height: 1.4;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.warning-item.error {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: var(--color-error);
  color: #fecaca;
}

.warning-item.warning {
  background: rgba(245, 158, 11, 0.15);
  border-left-color: var(--color-warning);
  color: #fef3c7;
}

.warning-item.info {
  background: rgba(99, 102, 241, 0.15);
  border-left-color: #6366f1;
  color: #e0e7ff;
}

.warning-item.success {
  background: rgba(16, 185, 129, 0.12);
  border-left-color: var(--color-success);
  color: #d1fae5;
}

.warning-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.warning-content {
  flex: 1;
}

.diagnostic-action {
  margin-top: 0.45rem;
  color: #fff;
  font-size: 0.8rem;
}

.diagnostic-subtitle {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0.35rem 0 0.65rem;
  text-transform: uppercase;
}

.link-summary-block {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.link-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-summary-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 1.2fr;
  gap: 0.75rem;
  padding: 0.65rem;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  font-size: 0.78rem;
}

.link-summary-row.success { border-left-color: var(--color-success); }
.link-summary-row.info { border-left-color: #6366f1; }
.link-summary-row.warning { border-left-color: var(--color-warning); }
.link-summary-row.error { border-left-color: var(--color-error); }

.link-summary-row div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.link-summary-row span,
.link-summary-row em {
  color: var(--color-muted);
  font-style: normal;
}

.no-warnings-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--color-muted);
  gap: 0.5rem;
}

.no-warnings-icon {
  font-size: 2rem;
  color: var(--color-success);
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Step-by-Step sequence planner */
.sequence-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sequence-block {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem;
}

.sequence-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ow-purple);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sequence-block:first-child .sequence-title {
  color: #fb7185; /* Soft pink for demolition/first actions */
}

.sequence-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.sequence-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sequence-item {
  font-size: 0.8rem;
  line-height: 1.4;
  padding-left: 1.25rem;
  position: relative;
}

.sequence-item::before {
  content: '▪';
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  left: 0;
  top: 0;
}

.sequence-item em {
  font-style: normal;
  color: var(--color-warning);
}

/* Highway planner styling */
.highway-planner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highway-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highway-summary-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highway-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.highway-stat strong {
  color: #fff;
  font-family: var(--font-mono);
}

.shopping-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.checklist-item input {
  cursor: pointer;
}

.checklist-item.checked span {
  text-decoration: line-through;
  color: var(--color-muted);
}

/* Tabs for Bottom Details Panels */
.tabs-header {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--color-muted);
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: #fff;
  background: rgba(168, 85, 247, 0.15);
  box-shadow: inset 0 0 5px rgba(168, 85, 247, 0.1);
}

.tab-pane {
  display: none;
  height: 100%;
  overflow-y: auto;
}

.tab-pane.active {
  display: block;
}

/* Animations */
@keyframes logo-pulsate {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(251, 146, 60, 0.6);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Utility classes */
.flex-row-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-ow {
  color: var(--ow-purple);
}

.text-nether {
  color: var(--nether-orange);
}

.margin-top-auto {
  margin-top: auto;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    overflow-y: auto;
    height: auto;
    gap: 1rem;
  }
  
  .sidebar {
    grid-column: 1;
    grid-row: 1;
  }
  
  .maps-container {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    height: 600px;
  }
  
  .details-container {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* ============================================================
   Tutorial FAB Button
   ============================================================ */

.tutorial-fab {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(135deg, #4f1d96, #7c3aed);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* Entrance pulse: run for ~3s then stop */
  animation: tutorial-fab-entrance 0.6s ease-out,
             tutorial-fab-pulse 1s ease-in-out 0.6s 4;
}

.tutorial-fab:hover {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.65);
  transform: translateY(-2px) scale(1.04);
}

.tutorial-fab:active {
  transform: translateY(0) scale(0.97);
}

.tutorial-fab-icon {
  font-size: 1rem;
  line-height: 1;
}

.tutorial-fab-label {
  letter-spacing: 0.3px;
}

/* Entrance: slide up from below */
@keyframes tutorial-fab-entrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Attention pulse: glow + scale, repeats 4x then stops */
@keyframes tutorial-fab-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.2),
                0 6px 30px rgba(168, 85, 247, 0.7);
    transform: scale(1.07);
  }
}

/* ============================================================
   Tutorial Backdrop Overlay
   ============================================================ */

#tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   Tutorial Card
   ============================================================ */

#tutorial-card {
  position: fixed;
  z-index: 1200;
  width: min(440px, 90vw);
  background: rgba(14, 9, 24, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(168, 85, 247, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: card-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-pop {
  from { opacity: 0; transform: translateX(-50%) scale(0.9); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

.tutorial-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.tutorial-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.tutorial-header {
  margin-bottom: 0.75rem;
}

.tutorial-step-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ow-purple);
  letter-spacing: 0.5px;
}

.tutorial-card-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.tutorial-card-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tutorial-card-text strong {
  color: var(--ow-purple);
  font-weight: 600;
}

.tutorial-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.tutorial-controls .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

.tutorial-controls .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   Tutorial Highlight Ring
   ============================================================ */

.tutorial-highlight {
  position: relative;
  z-index: 1150;
  border-radius: 12px;
  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.8),
    0 0 0 6px rgba(168, 85, 247, 0.25),
    0 0 30px rgba(168, 85, 247, 0.4);
  animation: highlight-ring 1.4s ease-in-out infinite;
}

@keyframes highlight-ring {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(168, 85, 247, 0.8),
      0 0 0 6px rgba(168, 85, 247, 0.2),
      0 0 30px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(192, 132, 252, 1),
      0 0 0 10px rgba(168, 85, 247, 0.12),
      0 0 45px rgba(168, 85, 247, 0.55);
  }
}
