/* ========================================
   WEBSITEPILOTEN COMMUNITY - Main Styles
   Circle.so Clone
   ======================================== */

:root {
  --primary: #1a8a6e;
  --primary-dark: #15705a;
  --primary-light: #e8f5f0;
  --bg-dark: #1a1a2e;
  --bg-sidebar: #ffffff;
  --bg-main: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-width: 240px;
  --header-height: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

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

/* ========== LANDING PAGE (dieberater.de style + Unbounded font) ========== */
.landing-page {
  min-height: 100vh;
  overflow-y: auto;
  background: #0c1024;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
}

/* Nav */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: transparent;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.landing-nav .logo { display: flex; align-items: center; gap: 10px; }
.landing-nav .logo-crown { height: 22px; width: auto; }
.landing-nav .logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #5de8c5;
}

.landing-nav-links { display: flex; align-items: center; gap: 6px; }
.landing-nav-links a {
  font-family: 'Unbounded', sans-serif;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 16px;
  transition: color 0.2s;
}
.landing-nav-links a:hover { color: #5de8c5; }

.btn-cta-nav {
  font-family: 'Unbounded', sans-serif;
  background: transparent;
  color: #5de8c5;
  border: 2px solid #5de8c5;
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cta-nav:hover { background: #5de8c5; color: #0c1024; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'Unbounded', sans-serif;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.btn-ghost:hover { background: var(--border-light); }
.btn-lg { padding: 16px 48px; font-size: 14px; letter-spacing: 1.5px; }

.btn-cta-hero {
  font-family: 'Unbounded', sans-serif;
  background: #5de8c5;
  color: #0c1024;
  border: none;
  padding: 16px 48px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cta-hero:hover { background: #4dd4b1; }

.btn-outline-dark {
  font-family: 'Unbounded', sans-serif;
  background: transparent;
  color: #5de8c5;
  border: 2px solid rgba(93,232,197,0.3);
  padding: 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.btn-outline-dark:hover { border-color: #5de8c5; background: rgba(93,232,197,0.05); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  background: #0c1024;
  position: relative;
}

.hero-crown { margin-bottom: 24px; }
.hero-crown-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #5de8c5;
  margin-top: 8px;
}

.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(42px, 8vw, 110px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.hero-tagline {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(93,232,197,0.5);
  margin-bottom: 48px;
}

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

/* Features */
.features-section {
  padding: 100px 60px;
  background: #0c1024;
  text-align: center;
}

.features-section h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 60px;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: 40px 24px;
  border: 1px solid rgba(93,232,197,0.12);
  border-radius: 8px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(93,232,197,0.35); background: rgba(93,232,197,0.03); }

.feature-card .feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 12px;
  background: rgba(93,232,197,0.08);
  display: flex; align-items: center; justify-content: center;
}

.feature-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #5de8c5;
}

.feature-card p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; font-family: -apple-system, sans-serif; }

/* Pricing */
.pricing-section {
  padding: 100px 40px;
  text-align: center;
  background: #0a0d1c;
}

.pricing-section h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 12px;
  color: #fff;
}
.pricing-section .subtitle {
  font-family: 'Unbounded', sans-serif;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 60px;
}

/* ==================== CASE STUDIES ==================== */
.case-studies-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.case-studies-section h2 {
  text-align: center;
  font-size: 36px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.case-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(93,232,197,0.1);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.case-card:hover {
  border-color: rgba(93,232,197,0.3);
  transform: translateY(-2px);
}
.case-content { flex: 1; }
.case-chart { flex: 1; min-width: 0; }
.chart-svg { width: 100%; height: auto; }
.case-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(93,232,197,0.15);
  color: #5de8c5;
  margin-bottom: 12px;
}
.case-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.case-desc {
  font-size: 15px;
  color: #8892b0;
  line-height: 1.6;
  margin-bottom: 24px;
}
.case-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.case-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Unbounded', sans-serif;
}
.stat-arrow {
  font-size: 18px;
  color: #5de8c5;
  align-self: center;
}
.case-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}
@media (max-width: 768px) {
  .case-card { flex-direction: column; padding: 24px; }
  .case-stats { gap: 16px; }
  .stat-value { font-size: 18px; }
}

.pricing-cards { display: flex; justify-content: center; gap: 24px; max-width: 900px; margin: 0 auto; }

.pricing-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(93,232,197,0.12);
  border-radius: 12px;
  padding: 40px 32px;
  flex: 1; max-width: 420px;
  text-align: left;
  transition: all 0.3s;
}

.pricing-card.featured {
  border-color: #5de8c5;
  background: rgba(93,232,197,0.04);
  box-shadow: 0 0 60px rgba(93,232,197,0.08);
  transform: scale(1.05);
}

.pricing-card .badge {
  display: inline-block;
  background: rgba(93,232,197,0.12);
  color: #5de8c5;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.pricing-card h3 { font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.pricing-card .price { font-family: 'Unbounded', sans-serif; font-size: 44px; font-weight: 900; margin-bottom: 4px; color: #5de8c5; }
.pricing-card .price span { font-size: 14px; color: rgba(255,255,255,0.35); font-weight: 400; }
.pricing-card .price-note { font-size: 12px; color: rgba(255,255,255,0.25); margin-bottom: 24px; }

.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li { padding: 7px 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.55); }
.pricing-features li svg { color: #5de8c5; flex-shrink: 0; }

.pricing-card .btn, .pricing-card .btn-cta-hero, .pricing-card .btn-outline-dark { width: 100%; }

/* Footer */
.landing-footer {
  padding: 40px 60px;
  background: #080b18;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ========== APP LAYOUT ========== */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 50;
}

.header-left { display: flex; align-items: center; gap: 16px; }
.header-left h2 { font-size: 18px; font-weight: 600; }

.header-nav { display: flex; gap: 4px; }
.header-nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-weight: 500;
}
.header-nav a:hover { background: var(--border-light); color: var(--text-primary); }
.header-nav a.active { color: var(--text-primary); background: var(--border-light); }

.header-right { display: flex; align-items: center; gap: 16px; }

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--border-light);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.header-search:hover { background: var(--border); }
.header-search svg { color: var(--text-muted); }
.header-search span { color: var(--text-muted); font-size: 14px; }

.header-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-secondary);
  position: relative;
}
.header-icon:hover { background: var(--border-light); }

.header-icon .badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sidebar-logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-logo svg { height: 24px; }

.sidebar-menu { padding: 8px; flex: 1; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1px;
}

.sidebar-item:hover { background: var(--border-light); color: var(--text-primary); }
.sidebar-item.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }

.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }

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

.sidebar-item .count {
  margin-left: auto;
  background: var(--border-light);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-section {
  padding: 16px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.sidebar-footer .go-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.sidebar-footer .go-live:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sidebar-footer .powered {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  display: flex;
}

.content-area {
  flex: 1;
  max-width: 900px;
  padding: 24px 32px;
}

.right-sidebar {
  width: 320px;
  padding: 24px 24px 24px 0;
  flex-shrink: 0;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.filter-bar h1 { font-size: 24px; font-weight: 700; }

.filter-bar-right { display: flex; align-items: center; gap: 8px; }

.filter-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-new-post {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-new-post:hover { background: var(--primary-dark); }

/* Post Composer */
.post-composer {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.post-composer:hover { box-shadow: var(--shadow-sm); }

.post-composer input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.post-composer .plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

/* Post Cards */
.post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: var(--shadow-sm); }

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 0;
}

.post-meta { flex: 1; }
.post-author {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-badge {
  display: inline-block;
  background: var(--bg-dark);
  color: #fff;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.post-date { font-size: 12px; color: var(--text-muted); }
.post-category { font-size: 12px; color: var(--text-muted); }

.post-actions-top { display: flex; gap: 8px; }
.post-actions-top button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}
.post-actions-top button:hover { color: var(--text-primary); }

.post-body { padding: 12px 16px; }
.post-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.post-time { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 16px; }
.post-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--border-light);
  color: var(--text-secondary);
}
.post-tag.green { background: #dcfce7; color: #16a34a; }
.post-tag.blue { background: #dbeafe; color: #2563eb; }

.going-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* Right Sidebar Widgets */
.widget {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
}

.widget-header {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.event-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.event-item:hover { background: var(--border-light); }

.event-date {
  text-align: center;
  min-width: 40px;
}
.event-date .day { font-size: 20px; font-weight: 700; color: var(--primary); }
.event-date .month { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; }

.event-info .event-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.event-info .event-time { font-size: 12px; color: var(--text-muted); }

.trending-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.trending-item:hover { background: var(--border-light); }
.trending-item .trending-title { font-size: 14px; font-weight: 500; }
.trending-item .trending-author { font-size: 12px; color: var(--text-muted); }

/* ========== KURSE PAGE ========== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  max-width: 100%;
}

.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.course-cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.course-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.course-info {
  padding: 16px;
}
.course-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.course-info p { font-size: 13px; color: var(--text-secondary); }
.course-info .course-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Course Category Colors */
.course-icon.red { background: linear-gradient(135deg, #fecaca, #fee2e2); }
.course-icon.blue { background: linear-gradient(135deg, #bfdbfe, #dbeafe); }
.course-icon.orange { background: linear-gradient(135deg, #fed7aa, #ffedd5); }
.course-icon.purple { background: linear-gradient(135deg, #c4b5fd, #ede9fe); }
.course-icon.yellow { background: linear-gradient(135deg, #fde68a, #fef3c7); }
.course-icon.green { background: linear-gradient(135deg, #bbf7d0, #dcfce7); }

/* Course Detail */
.course-detail-header {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.course-detail-header h1 { font-size: 24px; margin-bottom: 8px; }
.course-detail-header p { color: var(--text-secondary); }

.module-list { margin-top: 16px; }

.module-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.module-header:hover { background: var(--border-light); }

.module-header .module-icon { color: var(--primary); }
.module-header h3 { flex: 1; font-size: 15px; font-weight: 500; }
.module-header .module-meta { font-size: 12px; color: var(--text-muted); }

/* ========== MEMBERS PAGE ========== */
.members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.members-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  width: 280px;
}
.members-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.member-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.member-card:hover { box-shadow: var(--shadow-sm); }

.member-card .avatar { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 22px; }
.member-card .member-name { font-weight: 600; margin-bottom: 2px; }
.member-card .member-role {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-top: 4px;
}
.member-role.admin { background: var(--bg-dark); color: #fff; }
.member-role.premium { background: var(--primary-light); color: var(--primary); }
.member-role.free { background: var(--border-light); color: var(--text-muted); }

/* ========== COMING SOON ========== */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: var(--text-secondary);
}

.coming-soon svg { margin-bottom: 16px; color: var(--text-muted); }
.coming-soon h2 { font-size: 24px; margin-bottom: 8px; color: var(--text-primary); }
.coming-soon p { font-size: 15px; max-width: 400px; }

/* ========== LEADERBOARD ========== */
.leaderboard-list { max-width: 600px; }

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: box-shadow 0.2s;
}
.leaderboard-item:hover { box-shadow: var(--shadow-sm); }

.leaderboard-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
}
.leaderboard-rank.gold { color: #f59e0b; }
.leaderboard-rank.silver { color: #9ca3af; }
.leaderboard-rank.bronze { color: #d97706; }

.leaderboard-info { flex: 1; }
.leaderboard-name { font-weight: 600; }
.leaderboard-points { font-size: 13px; color: var(--text-muted); }
.leaderboard-score { font-size: 18px; font-weight: 700; color: var(--primary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .right-sidebar { display: none; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .app-header { left: 0; }
  .landing-nav { padding: 12px 16px; }
  .landing-nav-links a { font-size: 9px; padding: 6px 8px; }
  .btn-cta-nav { font-size: 9px; padding: 6px 14px; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: clamp(28px, 10vw, 60px); }
  .hero-crown svg { width: 60px; height: 48px; }
  .cal-grid { grid-auto-rows: 100px; }
  .cal-event { font-size: 10px; }
  .cal-day-header { font-size: 10px; }
  .features-section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-section { padding: 60px 20px; }
  .pricing-cards { flex-direction: column; align-items: center; }
  .pricing-card.featured { transform: none; }
}

/* ========== AUTH MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 400px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}

.modal h2 { font-size: 24px; margin-bottom: 24px; text-align: center; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }

.modal .btn { width: 100%; margin-top: 8px; padding: 12px; }

.modal-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.modal-footer a { color: var(--primary); cursor: pointer; }

/* User menu dropdown */
.user-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 200px;
  z-index: 100;
  display: none;
}
.user-menu.open { display: block; }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s;
}
.user-menu-item:hover { background: var(--border-light); }
.user-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ==================== CALENDAR ==================== */
.cal-container { max-width: 100%; }
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cal-nav-btn:hover { background: var(--bg-light); }
.cal-month-label {
  font-size: 18px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 140px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  gap: 0;
}
.cal-day-header {
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cal-day-header:nth-child(7) { border-right: none; }
.cal-cell {
  padding: 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  vertical-align: top;
  position: relative;
  overflow: hidden;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.cal-empty { background: #fafafa; }
.cal-cell.cal-today { background: #f0fdf4; }
.cal-day-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cal-day-today {
  background: var(--primary);
  color: #fff !important;
}
.cal-event {
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 3px;
  margin-bottom: 2px;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}

/* ==================== CHAT ==================== */
/* ==================== CHAT (Circle.so Style) ==================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - 48px);
  position: relative;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-left h1 { font-size: 20px; font-weight: 700; margin: 0; }
.chat-header-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #fbbf24;
}
.chat-header-actions {
  display: flex; gap: 8px; align-items: center;
}
.chat-header-btn {
  width: 32px; height: 32px; border-radius: 6px; border: none; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background 0.15s;
}
.chat-header-btn:hover { background: var(--bg-light); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-date-sep {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0 8px;
  color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.chat-date-sep::before, .chat-date-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.chat-msg:hover { background: var(--bg-light); }
.chat-msg:hover .chat-admin-controls { opacity: 1; }
.chat-msg-hidden { opacity: 0.5; }
.chat-msg-private {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 8px 8px 8px 12px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.chat-bubble { flex: 1; min-width: 0; }
.chat-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.chat-author { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.chat-role-badge {
  font-size: 10px; background: #22c55e; color: #fff;
  padding: 2px 8px; border-radius: 10px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 3px;
}
.chat-private-badge {
  font-size: 10px; background: #fbbf24; color: #92400e;
  padding: 2px 8px; border-radius: 10px; font-weight: 700;
}
.chat-time { font-size: 12px; color: var(--text-muted); }
.chat-text { font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.chat-text img.chat-gif { max-width: 250px; border-radius: 8px; margin-top: 4px; display: block; }
.chat-text .chat-audio-player {
  margin-top: 6px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-light); padding: 8px 12px; border-radius: 20px; width: fit-content;
}
.chat-text .chat-audio-player audio { height: 28px; }
.chat-attachment {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; margin-top: 6px; font-size: 13px;
}
.chat-attachment-icon { color: var(--text-muted); }
.chat-attachment-name { font-weight: 600; color: var(--text-primary); }
.chat-attachment-size { color: var(--text-muted); font-size: 11px; }
.chat-admin-controls {
  position: absolute; right: 8px; top: 4px;
  display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 2px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.chat-ctrl-btn {
  width: 28px; height: 28px; border-radius: 4px; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.15s;
}
.chat-ctrl-btn:hover { background: var(--bg-light); color: var(--text-primary); }
/* Chat Input Area */
.chat-input-area {
  border: 1px solid var(--border); border-radius: 12px;
  margin-top: auto; background: #fff; overflow: hidden;
}
.chat-input-field {
  width: 100%; padding: 14px 16px 8px; border: none; outline: none;
  font-size: 14px; font-family: inherit; resize: none; min-height: 40px;
  background: transparent; color: var(--text-primary);
}
.chat-input-field::placeholder { color: var(--text-muted); }
.chat-input-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px 8px;
}
.chat-toolbar-left {
  display: flex; gap: 2px;
}
.chat-toolbar-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.15s;
}
.chat-toolbar-btn:hover { background: var(--bg-light); color: var(--text-primary); }
.chat-toolbar-btn.recording { color: #ef4444; animation: pulse-rec 1.5s infinite; }

.chat-recording-indicator { display: flex; }
.audio-preview-content { display: flex; flex-direction: column; gap: 8px; }
.audio-player { background: #fff; border-radius: 6px; padding: 8px; }
.audio-player audio { width: 100%; height: 24px; }
.audio-preview-buttons { display: flex; gap: 8px; }
.btn-primary, .btn-secondary { padding: 8px 12px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #f5f5f5; color: #333; border: 1px solid #e0e0e0; }
.btn-secondary:hover { background: #efefef; }

.chat-msg-recalled { opacity: 0.6; }
.chat-msg-recalled .chat-avatar { opacity: 0.5; }
.chat-msg-recalled .chat-bubble { background: #f9f9f9; }
.chat-msg-controls { display: none; position: absolute; right: -40px; top: 8px; background: #fff; border-radius: 6px; padding: 4px; box-shadow: var(--shadow-sm); }
.chat-msg:hover .chat-msg-controls { display: flex; }
.chat-msg-controls { gap: 4px; }

@keyframes pulse-rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.chat-send-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; opacity: 0.4;
}
.chat-send-btn.active { opacity: 1; }
.chat-send-btn:hover { background: var(--primary-dark); }
/* GIF Picker */
.chat-gif-picker {
  position: absolute; bottom: 80px; left: 0;
  width: 340px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 100; overflow: hidden; display: none;
}
.chat-gif-picker.open { display: block; }
.chat-gif-picker input {
  width: 100%; padding: 12px 14px; border: none; border-bottom: 1px solid var(--border);
  font-size: 14px; outline: none;
}
.chat-gif-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px; max-height: 300px; overflow-y: auto;
}
.chat-gif-grid img {
  width: 100%; border-radius: 6px; cursor: pointer;
  transition: transform 0.15s; aspect-ratio: 16/9; object-fit: cover;
}
.chat-gif-grid img:hover { transform: scale(1.03); }
/* Chat Details Sidebar */
.chat-details h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.chat-details-section {
  margin-bottom: 20px;
}
.chat-details-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.chat-member-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
}
.chat-member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.chat-member-name { font-size: 14px; font-weight: 500; }
.chat-member-badge {
  font-size: 9px; background: #22c55e; color: #fff;
  padding: 1px 6px; border-radius: 8px; font-weight: 700; margin-left: 4px;
}
/* Locked State */
.chat-locked {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; text-align: center; color: var(--text-muted);
}
.chat-locked h2 { font-size: 20px; color: var(--text-primary); }
.chat-locked p { font-size: 14px; max-width: 400px; }
