@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== DESIGN SYSTEM ========== */
:root {
  --primary: #FF6600;
  --primary-dark: #E55A00;
  --primary-light: #FF8533;
  --primary-glow: rgba(255, 102, 0, 0.35);
  --primary-subtle: rgba(255, 102, 0, 0.1);

  --bg-dark: #0A0A0A;
  --bg-card: #161616;
  --bg-card-hover: #1E1E1E;
  --bg-sidebar: #0F0F0F;
  --bg-input: #1A1A1A;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 102, 0, 0.4);

  --text-primary: #FFFFFF;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-dark: #1A1A1A;

  --success: #00C853;
  --danger: #FF3D3D;
  --warning: #FFB300;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-block { width: 100%; }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: white;
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ========== LANDING PAGE ========== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
}

.logo-icon {
  color: var(--primary);
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/baner.jpg') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(255, 102, 0, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-subtle);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

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

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Landing Sections */
.section {
  padding: 5rem 2rem;
}

.section-dark {
  background: var(--bg-card);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title h2 .highlight {
  color: var(--primary);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.module-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.module-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.1);
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-card .module-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-subtle);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.module-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Projects Carousel */
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1.5rem;
}

.project-slide {
  min-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  text-align: center;
}

.project-preview {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  overflow: hidden;
}

.project-slide:hover .project-preview {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.15);
}

.project-slide h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.project-slide p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Project Mockups */
.project-mockup {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-bar span:first-child { background: #FF5F57; }
.mockup-bar span:nth-child(2) { background: #FFBD2E; }
.mockup-bar span:nth-child(3) { background: #28CA41; }

/* Landing page mockup */
.mockup-hero {
  height: 40px;
  margin: 10px;
  border-radius: 4px;
}

.mockup-lines {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.mockup-lines div {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 0 10px 10px;
}

.mockup-grid div {
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* App mockup */
.mockup-sidebar {
  width: 50px;
  float: left;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-content {
  margin-left: 55px;
  padding: 10px;
}

.mockup-cards {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.mockup-cards div {
  flex: 1;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.mockup-chart {
  height: 50px;
  background: linear-gradient(to top, rgba(255, 102, 0, 0.2), transparent);
  border-radius: 4px;
  border-bottom: 2px solid var(--primary);
}

/* Store mockup */
.mockup-store-header {
  height: 30px;
  margin: 8px;
  border-radius: 4px;
}

.mockup-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 8px 8px;
}

.mockup-products div {
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* Chat mockup */
.mockup-bot {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-msg {
  height: 16px;
  border-radius: 8px;
  width: 65%;
}

.bot-msg.short { width: 40%; }

.bot-left {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.bot-right {
  background: rgba(255, 102, 0, 0.3);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* Flow/Automation mockup */
.mockup-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
}

.flow-node {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flow-node.small {
  width: 28px;
  height: 28px;
}

.flow-node.accent {
  background: rgba(255, 102, 0, 0.25);
  border-color: var(--primary);
}

.flow-arrow {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  border: 3px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.2);
}

/* API mockup */
.mockup-api {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-method {
  font-size: 0.55rem;
  font-weight: 800;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 200, 83, 0.2);
  color: var(--success);
}

.api-method.post { background: rgba(255, 179, 0, 0.2); color: var(--warning); }
.api-method.put { background: rgba(100, 149, 237, 0.2); color: cornflowerblue; }

.api-path {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Mobile mockup */
.mockup-mobile {
  width: 60%;
  margin: 10px auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.mobile-header {
  height: 20px;
  background: rgba(255, 102, 0, 0.3);
}

.mobile-card {
  height: 25px;
  margin: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.mobile-card.short { height: 18px; }

.mobile-nav {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav div {
  flex: 1;
  height: 18px;
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dashboard mockup */
.mockup-dash {
  display: flex;
  gap: 6px;
  padding: 8px;
}

.dash-stat {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.mockup-chart-lg {
  height: 55px;
  margin: 0 8px 8px;
  background: linear-gradient(to right, rgba(255, 102, 0, 0.1), rgba(255, 102, 0, 0.3), rgba(255, 102, 0, 0.15));
  border-radius: 4px;
  border-bottom: 2px solid var(--primary);
}

@media (max-width: 768px) {
  .project-slide {
    min-width: calc(100% - 4rem);
  }

  .project-preview {
    aspect-ratio: 3/2;
    padding: 1rem;
  }

  .carousel-wrapper {
    padding: 0 1.5rem;
  }

  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    top: 40%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .project-slide {
    min-width: calc(50% - 1rem);
  }
}

/* Support Section */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.support-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.1);
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.support-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(255, 102, 0, 0.02));
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-card .logo {
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-card .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error {
  background: rgba(255, 61, 61, 0.1);
  border: 1px solid rgba(255, 61, 61, 0.3);
  color: #FF6B6B;
}

.alert-success {
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #4ADE80;
}

/* ========== MEMBER AREA ========== */
.member-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.sidebar-user {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user .avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.sidebar-user .user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user .user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.sidebar-section {
  margin-bottom: 0.5rem;
}

.sidebar-section-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.sidebar-module {
  margin-bottom: 4px;
}

.sidebar-module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-module-title:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-module-title .module-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-module-title .chevron {
  margin-left: auto;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 0.7rem;
}

.sidebar-module.open .chevron {
  transform: rotate(90deg);
}

.sidebar-lessons {
  display: none;
  padding: 0 0 8px;
}

.sidebar-module.open .sidebar-lessons {
  display: block;
}

.sidebar-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 1.5rem 8px 3.5rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.sidebar-lesson:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-lesson.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

.sidebar-lesson.completed .lesson-status {
  color: var(--success);
}

.lesson-status {
  font-size: 0.7rem;
  flex-shrink: 0;
}

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

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
  transition: var(--transition);
}

.sidebar-footer a:hover {
  color: var(--danger);
}

/* Main Content */
.main-content {
  padding: 2rem 3rem;
  background: var(--bg-dark);
  min-height: 100vh;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* Dashboard Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Module Cards in Member Area */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.member-module-card:hover {
  border-color: var(--border-hover);
}

.member-module-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.member-module-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.member-module-header .module-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.member-module-header .module-info {
  flex: 1;
}

.member-module-header .module-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.member-module-header .module-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 2px;
}

.member-module-header .module-progress {
  text-align: right;
}

.member-module-header .module-progress .progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-module-header .module-progress .progress-bar {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.member-module-header .module-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.member-module-lessons {
  border-top: 1px solid var(--border);
}

.member-lesson-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.member-lesson-item:last-child {
  border-bottom: none;
}

.member-lesson-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.member-lesson-item .lesson-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--text-muted);
}

.member-lesson-item .lesson-icon.completed-icon {
  background: rgba(0, 200, 83, 0.15);
  color: var(--success);
}

.member-lesson-item .lesson-title {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.member-lesson-item .lesson-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== LESSON PAGE ========== */
.lesson-content {
  max-width: 900px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lesson-header {
  margin-bottom: 1.5rem;
}

.lesson-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.lesson-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
  white-space: pre-line;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.lesson-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  transition: var(--transition);
}

.lesson-action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.lesson-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lesson-nav a:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.btn-complete-lesson {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--success);
  background: transparent;
  color: var(--success);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-complete-lesson:hover,
.btn-complete-lesson.completed {
  background: var(--success);
  color: white;
}

/* ========== LOCKED OVERLAY ========== */
.locked-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-content {
  text-align: center;
  max-width: 480px;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.locked-content .lock-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.locked-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.locked-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ========== ADMIN AREA ========== */
.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--primary);
}

.admin-sidebar-nav a .nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Admin Cards */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.admin-card:hover {
  border-color: var(--border-hover);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.admin-card-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-pending {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
}

.badge-approved {
  background: rgba(0, 200, 83, 0.15);
  color: var(--success);
}

.badge-blocked {
  background: rgba(255, 61, 61, 0.15);
  color: var(--danger);
}

.badge-admin {
  background: var(--primary-subtle);
  color: var(--primary);
}

.badge-order {
  background: var(--primary-subtle);
  color: var(--primary);
  min-width: 32px;
  text-align: center;
}

/* Buttons within cards */
.lesson-buttons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.lesson-button-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: white;
}

.lesson-button-tag .remove-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.lesson-button-tag .remove-btn:hover {
  color: white;
}

/* Edit form toggle */
.edit-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hidden {
  display: none !important;
}

/* ========== MOBILE RESPONSIVE ========== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .member-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -85vw;
    top: 0;
    width: 80vw;
    max-width: 320px;
    z-index: 1000;
    transition: var(--transition);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.hidden-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .main-content {
    padding: 1.5rem;
    padding-top: 4rem;
  }

  .stats-bar {
    gap: 1.5rem;
    padding: 1rem 1.25rem;
  }

  .hero-stat .number {
    font-size: 1.4rem;
  }

  .hero-stat .label {
    font-size: 0.7rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .lesson-nav {
    flex-direction: column;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .nav-links a.hide-mobile {
    display: none;
  }

  .nav-links .btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .landing-nav {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.1rem;
    gap: 6px;
  }

  .logo-icon {
    font-size: 1.2rem;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== ADMIN MODULE GROUPS ========== */
.admin-module-group {
  margin-bottom: 2rem;
}

.admin-module-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.admin-module-group-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-module-group-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-module-group-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-lesson-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== ADMIN CARD MOBILE FIX ========== */
@media (max-width: 768px) {
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-card-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-card-actions .btn-sm {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .member-module-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .member-module-header .module-progress {
    text-align: left;
    width: 100%;
  }

  .member-module-header .module-progress .progress-bar {
    width: 100%;
  }

  .member-lesson-item {
    padding: 0.75rem 1.25rem;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

.slide-up {
  animation: slideUp 0.6s ease forwards;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
