/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 64px;
  left: -260px;
  transition: var(--transition);
  padding: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-1);
  z-index: 999;
}

body.sidebar-open .sidebar {
  left: 0;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-2);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.sidebar-item.active {
  background: rgba(59,130,246,0.18);
  color: var(--accent-1);
  font-weight: 600;
  border: 1px solid var(--accent-1);
  box-shadow: 0 0 12px rgba(59,130,246,0.35);
}

.sidebar-icon {
  font-size: 1.3rem;
}

/* ---------------------------------------------------------
   MAIN CONTENT
   --------------------------------------------------------- */
.main-content {
  margin-left: 260px;
  padding: 40px;
  animation: fade-in 0.5s ease;
}

body.sidebar-closed .main-content {
  margin-left: 0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */
.card {
  background: var(--glass);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-1);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-1);
}

/* ---------------------------------------------------------
   LOADERS
   --------------------------------------------------------- */
.quantum-orbit {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent-1);
  animation: quantumOrbit 0.9s linear infinite;
  margin: auto;
}

@keyframes quantumOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.quantum-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.quantum-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: quantumBar 1.2s infinite ease-in-out;
}

@keyframes quantumBar {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ---------------------------------------------------------
   AUTHENTICATION UI
   --------------------------------------------------------- */
body.auth-body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0f172a, #020617 70%);
  font-family: 'Inter', sans-serif;
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0,0,0,0.45);
  animation: fadeIn 0.5s ease;
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.auth-subtitle {
  font-size: 15px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 30px;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  transition: 0.25s ease;
}

.auth-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(96,165,250,0.4);
  outline: none;
}

.auth-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 10px;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: white;
  color: #1f2937;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.google-button:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.google-button img {
  width: 20px;
  height: 20px;
}

.auth-links {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.auth-link-btn {
  padding: 12px 18px;
  border-radius: 10px;
  background: #4f46e5;
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: 0.25s ease;
}

.auth-link-btn:hover {
  background: #6a5df5;
}

.auth-link-btn.secondary {
  background: transparent;
  border: 2px solid #4f46e5;
  color: #4f46e5;
}

.auth-link-btn.secondary:hover {
  background: #4f46e5;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   LANDING PAGE
   --------------------------------------------------------- */
.landing-body {
  margin: 0;
  padding: 0;
  background: #0d0d12;
  color: white;
  font-family: 'Inter', sans-serif;
}

.landing-header {
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 12px;
}

.nav-btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #444;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.nav-btn-primary {
  background: #4f46e5;
  border-color: #4f46e5;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-primary-btn,
.cta-secondary-btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .sidebar {
    width: 100%;
    left: -100%;
    top: 64px;
  }

  body.sidebar-open .sidebar {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 24px;
  }

  .nav-avatar {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .sidebar-item {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .sidebar-icon {
    font-size: 1.1rem;
  }

  .auth-container {
    padding: 30px;
  }
}
.nav-upgrade-btn {
    margin-left: 20px;
    padding: 8px 14px;
    background: #6a5acd;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.nav-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.pro-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #6a5acd;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}
/* ---------------------------------------------------------
   REPURPOSING STUDIO HEADER OVERRIDES
   --------------------------------------------------------- */

.repurpose-body .top-nav {
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.repurpose-body .nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #e0e7ff; /* soft lavender */
}

.repurpose-body .nav-upgrade-btn {
    background: #6a5df5;
    border-radius: 8px;
}

.repurpose-body .mobile-top-menu {
    background: #1a1a2e;
    border-top: 1px solid rgba(255,255,255,0.08);
}
