:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; overflow-x: clip; }
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  background: #080d1a;
  color: #f8fafc;
  font-family: "Plus Jakarta Sans", sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.9);
  outline-offset: 2px;
}
.glass {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.orb { position: absolute; border-radius: 9999px; filter: blur(90px); opacity: 0.22; pointer-events: none; }
.orb-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.tap-target { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }
input, select, textarea { color-scheme: dark; font-size: 16px; }
.app-shell { min-height: 100vh; position: relative; z-index: 1; display: flex; }
.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: none;
  flex-direction: column;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  z-index: 30;
}
.app-sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; flex: 1; }
.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  transition: 0.2s ease;
  min-height: 44px;
}
.app-nav-link:hover { color: #f8fafc; background: rgba(255, 255, 255, 0.05); }
.app-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(139, 92, 246, 0.28);
}
.app-nav-link.soon { opacity: 0.72; }
.app-nav-link .soon-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
}
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(16px);
}
.app-content { padding: 1.25rem 1rem 2.5rem; width: 100%; max-width: 1100px; margin: 0 auto; }
.app-card {
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.progress-track {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6, #ec4899);
  transition: width 0.45s ease;
}
.avatar {
  border-radius: 9999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.22);
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  text-decoration: none;
  transition: 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  cursor: pointer;
  font-weight: 650;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: 0.2s ease;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  cursor: pointer;
  font-weight: 650;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  text-decoration: none;
}
.field-label { display: block; font-size: 0.85rem; font-weight: 600; color: #cbd5e1; margin-bottom: 0.45rem; }
.field-hint { font-size: 0.75rem; color: #64748b; margin-top: 0.35rem; }
.field-input, .field-select, .field-textarea {
  width: 100%;
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.9);
  color: #f8fafc;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: #8b5cf6; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.selected {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.16);
  color: #f8fafc;
}
.tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
.tab-btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-weight: 650;
  font-size: 0.85rem;
  cursor: pointer;
}
.tab-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.35);
}
.empty-state {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 200px;
  border-radius: 0.9rem;
  padding: 0.4rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 50;
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  color: #e2e8f0;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}
.dropdown a:hover, .dropdown button:hover { background: rgba(255, 255, 255, 0.06); }
.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  z-index: 55;
  display: none;
}
.app-drawer-backdrop.open { display: block; }
.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(86vw, 300px);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  background: rgba(8, 13, 26, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem;
  overflow-y: auto;
}
.app-drawer.open { transform: translateX(0); }
.loading-screen {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #94a3b8;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  padding: 0.8rem 1.1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.25s ease;
  max-width: calc(100% - 2rem);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.72);
}
.photo-modal.open { display: flex; }
.photo-modal-panel {
  width: min(100%, 440px);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.crop-frame {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #020617;
  position: relative;
  touch-action: none;
}
.crop-frame img {
  position: absolute;
  max-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.badge-early {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
}
@media (min-width: 1024px) {
  .app-sidebar { display: flex; }
  .app-topbar-mobile-only { display: none !important; }
  .app-content { padding: 1.75rem 1.75rem 3rem; }
  .app-card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
