/* ── Webfonts (Satoshi) ──────────────────────────────────────── */
@font-face {
  font-family: 'Satoshi';
  src: url('/webfonts/satoshi/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/webfonts/satoshi/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/webfonts/satoshi/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0c12;
  --surface:   #10131b;
  --surface2:  #14171f;
  --border:    #1f2332;
  --text:      #e5e7eb;
  --text-muted:#8b92a0;
  --accent:    #e2e8f0;
  --accent-dim:#1a1e26;
  --green:     #4ade80;
  --green-dim: #064e3b;
  --orange:    #f97316;
  --yellow:    #facc15;
  --red:       #ef4444;
  --purple:    #cbd5e1;
  --teal:      #2dd4bf;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(226, 232, 240, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: auto;
}

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

.header-logo {
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity .3s, transform .3s;
}

.header-logo:hover {
  opacity: 1;
  transform: rotate(10deg);
}

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

.header-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.header-meta {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  line-height: 1.2;
  margin: 0;
}

.clock {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-align: right;
  margin-left: auto;
  white-space: nowrap;
}

/* ── Main ───────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

.section { margin-bottom: 3rem; }

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

/* ── Project cards ──────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.875rem;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: none;
  border-radius: 6px;
  padding: 0.6rem;
  gap: 0.35rem;
  transition: background .25s, box-shadow .35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card > div[style*="position: relative"] {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card > div[style*="position: relative"] > a:last-of-type {
  margin-top: auto;
}

/* Gradient de fond subtil par type */
.card:has(.badge-local) {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06) 0%, var(--surface) 50%);
}

.card:has(.badge-hypervisor) {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, var(--surface) 50%);
}

.card:has(.badge-vps) {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.04) 0%, var(--surface) 50%);
}

.card:has(.badge-nas) {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.06) 0%, var(--surface) 50%);
}

.card:has(.badge-manygames) {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, var(--surface) 50%);
}

.card:has(.badge-monitoring),
.card:has(.badge-remote) {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.04) 0%, var(--surface) 50%);
}

/* Lueur colorée (::before) */
.card::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  filter: blur(40px);
  transition: opacity .4s, transform .4s;
}

.card:has(.badge-local)::before {
  background: rgba(74, 222, 128, 0.35);
}

.card:has(.badge-hypervisor)::before {
  background: rgba(249, 115, 22, 0.35);
}

.card:has(.badge-vps)::before {
  background: rgba(226, 232, 240, 0.12);
}

.card:has(.badge-nas)::before {
  background: rgba(45, 212, 191, 0.35);
}

.card:has(.badge-manygames)::before {
  background: rgba(250, 204, 21, 0.35);
}

.card:has(.badge-monitoring)::before,
.card:has(.badge-remote)::before {
  background: rgba(226, 232, 240, 0.12);
}

/* Icône géante transparente (::after) */
.card::after {
  content: '';
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  font-size: 7rem;
  opacity: 0.04;
  color: var(--text);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  transition: opacity .3s, transform .3s;
}

.card:has(.fa-desktop)::after { content: "\f390"; }
.card:has(.fa-server)::after { content: "\f233"; }
.card:has(.fa-globe)::after { content: "\f0ac"; }
.card:has(.fa-hard-drive)::after { content: "\f0a0"; }
.card:has(.fa-network-wired)::after { content: "\f6ff"; }

/* Hover card — lueur amplifiée + icône visible */
.card:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.card:hover::after {
  opacity: 0.08;
  transform: scale(1.05) rotate(-5deg);
}

/* Shadow colorée prononcée au hover */
.card:has(.badge-local):hover {
  box-shadow: 0 20px 60px rgba(74, 222, 128, 0.15), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card:has(.badge-hypervisor):hover {
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card:has(.badge-vps):hover {
  box-shadow: 0 20px 60px rgba(226, 232, 240, 0.08), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card:has(.badge-nas):hover {
  box-shadow: 0 20px 60px rgba(45, 212, 191, 0.15), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card:has(.badge-manygames):hover {
  box-shadow: 0 20px 60px rgba(250, 204, 21, 0.2), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card:has(.badge-monitoring):hover,
.card:has(.badge-remote):hover {
  box-shadow: 0 20px 60px rgba(226, 232, 240, 0.08), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0rem;
}

.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-local      { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.badge-remote     { background: rgba(226, 232, 240, 0.08); color: var(--purple); }
.badge-monitoring { background: rgba(226, 232, 240, 0.08); color: var(--accent); }
.badge-hypervisor { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.badge-vps        { background: rgba(226, 232, 240, 0.08); color: var(--purple); }

.badge-nas        { background: rgba(45, 212, 191, 0.15); color: var(--teal); }

.badge-manygames  { background: rgba(250, 204, 21, 0.2); color: #fbbf24; }

.badge-device-new { background: rgba(250, 204, 21, 0.15); color: var(--yellow); border: none; }

.badge-update     { background: rgba(249, 115, 22, 0.15); color: var(--orange); border: none; display: inline-flex; align-items: center; gap: 4px; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .3s ease;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green), inset 0 0 4px rgba(255,255,255,0.2);
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b, inset 0 0 4px rgba(255,255,255,0.2);
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.offline { background: var(--red); box-shadow: 0 0 6px var(--red); }
.status-dot.unknown { background: var(--text-muted); }

.card-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(226, 232, 240, 0.07);
  color: var(--accent);
  transition: background .25s;
}

/* Couleur d'icon selon le type */
.card:has(.badge-local) .card-icon {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
}

.card:has(.badge-hypervisor) .card-icon {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
}

.card:has(.badge-vps) .card-icon {
  background: rgba(226, 232, 240, 0.07);
  color: var(--purple);
}

.card:has(.badge-nas) .card-icon {
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
}

.card:has(.badge-manygames) .card-icon {
  background: rgba(250, 204, 21, 0.15);
  color: #fbbf24;
}

.card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.card-ip {
  font-size: 9px;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  background: transparent;
  display: inline-block;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px dashed var(--border);
}

.card-desc { display: none; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.card-links a {
  font-size: 12px;
  padding: 4px 8px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  transition: border-color .15s, color .15s;
}

.card-links a:hover:not(.disabled) {
  border-bottom-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.card-links a.disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.card-cta {
  display: none;
}

/* ── Card Stats (Dynamic Compact) ────────────────────────────── */
.card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0.5rem 0;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--border);
}

.cs-item { display: flex; flex-direction: column; gap: 2px; }
.cs-label { font-size: 8px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); font-weight: 700; line-height: 1; }
.cs-value { font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: baseline; gap: 3px; }
.cs-u { font-size: 9px; font-weight: 500; opacity: 0.5; }
.cs-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
  width: 100%;
  border: none;
}
.cs-fill { 
  height: 100%; 
  background: var(--accent); 
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease; 
}
.cs-fill.ok       { background: var(--green); }
.cs-fill.mid      { background: var(--yellow); }
.cs-fill.warning  { background: var(--orange); }
.cs-fill.critical { background: var(--red); }

.card-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--text-muted); margin-top: 2px; padding-top: 0;
}
.c-count { font-weight: 700; color: var(--text); }

/* ── Tools grid ─────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  transition: border-color .15s, background .15s;
}

.tool-card:hover {
  border-color: var(--accent);
  background: var(--surface2);
  text-decoration: none;
}

.tool-icon { font-size: 18px; color: var(--accent); width: 24px; text-align: center; }

.tool-info { flex: 1; }

.tool-name {
  font-size: 14px;
  font-weight: 600;
}

.tool-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.tool-arrow {
  color: var(--text-muted);
  font-size: 16px;
  transition: color .15s, transform .15s;
}

.tool-card:hover .tool-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-inner {
  display: none;
}

/* ── Project page specifics ─────────────────────────────────── */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 4px 0;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color .15s, border-color .15s;
}

.page-back:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ── Floating back button ────────────────────────────────────── */
.page-back-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  z-index: 99;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-back-float:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

@media (max-width: 600px) {
  .page-back-float {
    bottom: 1rem;
    right: 1rem;
    padding: 8px 12px;
    font-size: 12px;
  }
}

.page-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-icon { font-size: 40px; color: var(--accent); width: 56px; text-align: center; padding-top: 4px; }

.page-meta { flex: 1; }

.page-meta h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-meta .ip-badge {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.page-meta .page-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 0.5rem; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.25rem;
}

.info-block h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--surface2);
}

.info-row:last-child { border-bottom: none; }

.info-row .label { color: var(--text-muted); }
.info-row .value { color: var(--text); font-weight: 500; font-family: 'Courier New', monospace; font-size: 12px; }

.todo-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.todo-list h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--surface2);
}

.todo-item:last-child { border-bottom: none; }

.todo-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-done    { background: var(--green); }
.dot-todo    { background: var(--orange); }
.dot-planned { background: var(--text-muted); }

.placeholder-block {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 2px;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 1rem;
}

.placeholder-block .ph-icon { font-size: 24px; margin-bottom: 0.5rem; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  header { padding: 0 1rem; }
  main   { padding: 1.5rem 1rem; }
  .grid  { grid-template-columns: 1fr; }
}

/* ── Package Inventory ────────────────────────────────────────── */
.package-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.75rem 1rem;
}

.package-search {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.package-search:focus { border-color: var(--accent); }

.package-filter {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.package-table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
}

.package-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.package-table th {
  background: var(--surface2);
  padding: 12px 15px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}

.package-table td {
  padding: 10px 15px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.package-row:hover { background: rgba(255,255,255,0.02); }

.pkg-name { font-weight: 600; color: var(--text); font-size: 14px; }
.pkg-ver { font-family: 'Courier New', monospace; font-size: 12px; color: var(--text-muted); }
.pkg-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; }
.pkg-status.up-to-date { background: rgba(74, 222, 128, 0.15); color: var(--green); border: none; }
.pkg-status.outdated { background: rgba(249, 115, 22, 0.15); color: var(--orange); border: none; }

.package-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.package-stat-value { font-size: 28px; font-weight: 700; color: var(--text); }

/* ── Buttons ────────────────────────────────────────────────── */
.link-btn {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  background: var(--surface2);
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
  font-family: inherit;
}

.link-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.link-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  font-family: inherit;
}

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

.btn-action {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.btn-action:hover:not(:disabled) {
  background: var(--accent);
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

/* ── Header Navigation (Integrated) ───────────────────────────────── */
.header-nav {
  display: flex;
  gap: 0;
  align-items: center;
  flex: 1;
  margin: 0 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text);
  border-bottom-color: #a855f7;
}

.nav-item.active {
  color: #a855f7;
  border-bottom-color: #a855f7;
}

.nav-item i {
  font-size: 14px;
}

/* Legacy main-nav support (if needed) */
.main-nav {
  display: none;
}

/* ── Page transitions ────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 0.3s ease-out;
}

/* ── Back button ────────────────────────────────────────────────── */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.page-back:hover {
  color: #a855f7;
}

.page-back i {
  font-size: 14px;
}
