/* Landing page */
.landing-body {
  background: var(--ch-bg-deep);
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-orbs, .auth-bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 { width: 400px; height: 400px; background: var(--ch-cyan); top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: var(--ch-purple); bottom: 10%; right: -80px; }
.orb-3 { width: 300px; height: 300px; background: var(--ch-pink); top: 40%; left: 30%; }

.landing-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.landing-logo .brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.landing-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, #fff 0%, var(--ch-cyan) 50%, var(--ch-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; justify-content: center; gap: 1rem; }

.landing-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { color: #fff; margin-bottom: 0.75rem; font-size: 1.125rem; }
.feature-card p { color: #94a3b8; font-size: 0.9375rem; }

.landing-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  color: #64748b;
  font-size: 0.875rem;
}

/* Auth pages */
.auth-body {
  background: var(--ch-bg-deep);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

.auth-lang {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-brand h1 { color: #fff; font-size: 1.5rem; margin: 0.75rem 0 0.5rem; }
.auth-brand p { color: #94a3b8; font-size: 0.9375rem; }

.brand-logo-lg { font-size: 3rem; }

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.auth-footer a { color: var(--ch-cyan); }

/* App layout */
.app-body {
  background: var(--ch-main-bg);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--ch-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ch-ads-accent), var(--ch-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.9375rem; color: #fff; }
.brand-module { font-size: 0.75rem; color: var(--ch-ads-accent); text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.nav-section {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 1rem 0.75rem 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}

.nav-link:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; text-decoration: none; }
.nav-link.active { background: rgba(5,150,105,0.15); color: var(--ch-green); }
.nav-icon { opacity: 0.7; font-size: 0.875rem; }

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.logout-link { color: #64748b !important; }

.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: var(--ch-surface);
  border-bottom: 1px solid var(--ch-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ch-text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-user {
  font-size: 0.875rem;
  color: var(--ch-text-muted);
  font-weight: 500;
}

.main-content {
  padding: 2rem;
  max-width: 1400px;
}

.welcome-text {
  color: var(--ch-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.page-subtitle {
  color: var(--ch-text-muted);
  margin-bottom: 1.5rem;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--ch-sidebar);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

.lang-switch { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; }

.lang-btn {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
}

.lang-btn.active, .lang-btn:hover {
  background: rgba(5,150,105,0.2);
  color: var(--ch-green);
  text-decoration: none;
}

.landing-nav .lang-btn {
  border-color: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .sidebar-toggle { display: block; }
  .main-wrapper { margin-left: 0; }
  .topbar { padding-left: 4rem; }
}
