/* ============================================
   NOSY Sites — Dashboard Stylesheet
   Aligned with nosysmm.ai design system
   ============================================ */

/* --- @font-face Baloo 2 (brand font) --- */
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

/* --- CSS Custom Properties (same as nosysmm.ai) --- */
:root {
  /* Brand Colors */
  --nosy-purple: #7B5EA7;
  --nosy-purple-light: #9B7DC7;
  --nosy-purple-dark: #5B3E87;
  --nosy-magenta: #C2185B;
  --nosy-magenta-light: #E91E80;
  --nosy-orange: #F08A3E;
  --nosy-orange-light: #FFB74D;
  --nosy-red: #E8364F;
  --nosy-red-light: #FF5C6E;
  --nosy-cyan: #00BCD4;
  --nosy-cyan-light: #4DD0E1;

  /* Neutrals */
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-card: #16161F;
  --bg-card-hover: #1E1E2A;
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--nosy-purple), var(--nosy-magenta), var(--nosy-orange), var(--nosy-red));
  --gradient-purple-magenta: linear-gradient(135deg, var(--nosy-purple), var(--nosy-magenta));
  --gradient-glow: radial-gradient(ellipse at center, rgba(123, 94, 167, 0.15), transparent 70%);

  /* Typography */
  --font-brand: 'Baloo 2', 'Space Grotesk', -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Misc */
  --container-width: 1200px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --success: #22c55e;
  --warning: var(--nosy-orange);
  --danger: var(--nosy-red);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== Navbar (exact copy from nosysmm.ai) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out-expo);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 48px;
  width: auto;
  transition: transform 0.3s var(--ease-out-expo);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  color: var(--text-primary) !important;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--gradient-purple-magenta);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  text-decoration: none;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 94, 167, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ===== Main ===== */
.main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 40px);
  padding-top: 100px; /* space for fixed navbar */
}

.view { display: none; }
.view.active { display: block; }

/* ===== Section Header ===== */
.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-header-bar h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

/* ===== Section Tag (cyan pill — same as site) ===== */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nosy-cyan);
  padding: 6px 16px;
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 100px;
}

/* ===== Text Gradient ===== */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Hero Section ===== */
.hero-section {
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 0;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-section h2 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.hero-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.project-card:hover::before { opacity: 1; }
.project-card h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.project-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.project-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.project-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 24px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

/* ===== Badges (same as section-tag style) ===== */
.badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-completed { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.badge-building { background: rgba(240, 138, 62, 0.1); color: var(--nosy-orange); }
.badge-failed { background: rgba(232, 54, 79, 0.1); color: var(--danger); }
.badge-type { background: rgba(123, 94, 167, 0.1); color: var(--nosy-purple-light); }

/* ===== Buttons (same as nosysmm.ai) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-primary {
  background: var(--gradient-purple-magenta);
  border: none;
  color: white;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 94, 167, 0.4);
  background: var(--gradient-purple-magenta);
}

.btn-danger {
  color: var(--nosy-red-light);
  border-color: rgba(232, 54, 79, 0.2);
}
.btn-danger:hover {
  background: rgba(232, 54, 79, 0.08);
  border-color: rgba(232, 54, 79, 0.3);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  width: 100%;
  justify-content: center;
}
.btn-back { margin-bottom: 24px; }

/* ===== Form ===== */
.form {
  max-width: 700px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--nosy-purple);
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.15);
}
textarea { resize: vertical; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

.form-fieldset {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.form-fieldset legend {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 8px;
  color: var(--nosy-purple-light);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] { width: auto; accent-color: var(--nosy-purple); }

/* ===== Domain Section ===== */
.domain-section {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.domain-section legend {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 8px;
  color: var(--nosy-cyan);
}
.domain-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.domain-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.domain-option:hover { border-color: var(--border-hover); }
.domain-option.selected { border-color: var(--nosy-cyan); background: rgba(0, 188, 212, 0.04); }
.domain-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  padding: 0;
  margin: 0;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.domain-option input[type="radio"]:checked {
  border-color: var(--nosy-cyan);
}
.domain-option input[type="radio"]:checked::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nosy-cyan);
}
.domain-option-label strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}
.domain-option-label span { font-size: 0.8rem; color: var(--text-muted); }
.domain-input { margin-top: 10px; display: none; }
.domain-input.visible { display: block; }
.domain-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
  vertical-align: middle;
}
.domain-badge-free { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.domain-badge-paid { background: rgba(0, 188, 212, 0.1); color: var(--nosy-cyan); }

/* ===== Gallery Upload ===== */
.gallery-upload-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.gallery-dropzone {
  border: 2px dashed var(--border-hover);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.gallery-dropzone:hover,
.gallery-dropzone.dragover {
  border-color: var(--nosy-purple);
  background: rgba(123, 94, 167, 0.05);
}
.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.dropzone-content svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.gallery-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gallery-item-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gallery-item-controls {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-item-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-controls select {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.gallery-item-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.gallery-item-remove:hover {
  background: var(--danger);
  border-color: var(--danger);
}

/* ===== Reviews ===== */
.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}
.review-card .form-row { margin-bottom: 8px; }
.review-card .form-group { margin-bottom: 8px; }
.review-card-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.review-card-remove:hover { background: var(--danger); color: white; border-color: var(--danger); }

.review-stars {
  display: flex;
  gap: 4px;
}
.review-stars button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.review-stars button.active { color: #FBBF24; }
.review-stars button:hover { color: #FBBF24; }

/* ===== Menu File Upload ===== */
.menu-dropzone {
  border: 2px dashed var(--border-hover);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.menu-dropzone:hover,
.menu-dropzone.dragover {
  border-color: var(--nosy-purple);
  background: rgba(123, 94, 167, 0.05);
}

.menu-file-preview {
  margin-top: 10px;
}
.menu-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
}
.menu-file-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  min-width: 0;
}
.menu-file-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-file-item-size {
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.menu-file-item-status {
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-left: 8px;
}
.menu-file-item-status.analyzing { color: var(--nosy-orange); }
.menu-file-item-status.done { color: var(--success); }
.menu-file-item-status.error { color: var(--danger); }

/* ===== Slug Chooser ===== */
.slug-chooser { margin-top: 14px; }
.slug-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.slug-input-wrapper:focus-within {
  border-color: var(--nosy-purple);
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.15);
}
.slug-input-wrapper input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  flex: 1;
}
.slug-input-wrapper input:focus { box-shadow: none !important; }
.slug-suffix {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 16px 0 0;
  flex-shrink: 0;
  user-select: none;
}
.slug-preview {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 24px;
}
.slug-preview-url {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--nosy-cyan);
}
.slug-preview-error {
  color: var(--danger);
  font-weight: 500;
}
.slug-preview-available {
  color: var(--success);
  font-weight: 500;
}

/* ===== Detail View ===== */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.detail-header h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
.detail-actions { display: flex; gap: 8px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}
.detail-card h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 12px;
}

.agents-timeline { list-style: none; }
.agents-timeline li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.agents-timeline li:last-child { border-bottom: none; }
.agent-status { font-weight: 600; }
.agent-status.completed { color: var(--success); }
.agent-status.failed { color: var(--danger); }

.preview-frame {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: white;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal.hidden { display: none; }
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
}
.build-log {
  flex: 1;
  overflow-y: auto;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-height: 400px;
}
.build-log .log-entry { padding: 3px 0; }
.build-log .log-success { color: var(--success); }
.build-log .log-error { color: var(--danger); }
.build-log .log-info { color: var(--nosy-purple-light); }

.build-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.build-result.hidden { display: none; }

/* ===== Spinner ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--nosy-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
  grid-column: 1 / -1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.4s var(--ease-out-expo);
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-section h2 { font-size: 1.75rem; }
}
