/* ==========================================================================
   Kang Iduy Platform - Ultra Premium Dark Theme (Acuan Garry Audie Style)
   Modern SaaS Builder, AI Engineer & LMS
   ========================================================================== */

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

:root {
  --bg-main: #0a0a0a;
  --bg-surface: #121212;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --bg-glass: rgba(18, 18, 18, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.16);

  --accent-violet: #8b5cf6;
  --accent-fuchsia: #d946ef;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background Grid & Ambient Glow (Garry Audie style - Dynamic & GPU Accelerated) */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Interactive Cursor Spotlight (Option 2 - Smooth & GPU Composited) */
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
      rgba(139, 92, 246, 0.13),
      rgba(6, 182, 212, 0.04) 45%,
      transparent 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-mouse-moved .bg-grid::after {
  opacity: 1;
}

/* Floating Aurora (Option 1 - GPU Composited without CPU Repaints) */
.ambient-glow-top {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 100%;
  max-width: 950px;
  height: 550px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 75%);
  filter: blur(130px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: auroraFloatTop 22s ease-in-out infinite alternate;
}

.ambient-glow-bottom {
  position: fixed;
  bottom: -60px;
  right: 5%;
  transform: translateZ(0);
  width: 650px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.09) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 75%);
  filter: blur(140px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: auroraFloatBottom 26s ease-in-out infinite alternate;
}

.ambient-glow-cyan {
  position: fixed;
  top: 35%;
  left: -100px;
  transform: translateZ(0);
  width: 520px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.07) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 75%);
  filter: blur(140px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: auroraFloatCyan 28s ease-in-out infinite alternate;
}

@keyframes auroraFloatTop {
  0% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateX(-46%) translateY(45px) scale(1.12) rotate(6deg);
  }

  100% {
    transform: translateX(-54%) translateY(-25px) scale(0.96) rotate(-5deg);
  }
}

@keyframes auroraFloatBottom {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-60px, -50px) scale(1.15) rotate(-8deg);
  }

  100% {
    transform: translate(30px, -30px) scale(0.94) rotate(6deg);
  }
}

@keyframes auroraFloatCyan {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 40px) scale(1.1);
  }

  100% {
    transform: translate(-20px, -30px) scale(0.9);
  }
}

/* Accessibility: Turn off animations for users with reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  .ambient-glow-top,
  .ambient-glow-bottom,
  .ambient-glow-cyan {
    animation: none !important;
  }

  .bg-grid::after {
    transition: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 576px) {
  .page-hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }
}

/* Containers */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.container-narrow {
  max-width: 820px;
}

.container-fluid {
  max-width: 1360px;
}

/* Floating Pill Navigation */
.nav-pill-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav-pill {
  width: 100%;
  max-width: 820px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.nav-pill:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.brand-name {
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item-link:hover,
.nav-item-link.active {
  color: #ffffff;
}

.nav-pill-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.available-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0a0a0a;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.available-pill-btn:hover {
  background: #e5e5e5;
  transform: scale(1.02);
}

/* Pulsing Green Dot */
.ping-dot-wrap {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
}

.ping-dot-wave {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot-core {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  height: 8px;
  width: 8px;
  background: var(--accent-emerald);
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-white {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-white:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.35);
}

.btn-emerald {
  background: var(--gradient-emerald);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary {
  background: #171717;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: #212121;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Cards & Surfaces */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: var(--transition);
}

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

.card-glass {
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

/* Hero Section */
.hero-section {
  padding: 130px 0 60px;
  position: relative;
}

.hero-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 23, 23, 0.6);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-title strong,
.hero-title span {
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 3D Tilt Profile Card */
#profile-card-wrapper {
  perspective: 900px;
  position: relative;
  flex-shrink: 0;
}

#profile-card {
  width: 290px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 23, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  padding: 16px;
  transform-style: preserve-3d;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  will-change: transform;
}

.profile-card-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  background: #0f1016;
}

.profile-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-meta {
  padding: 12px 4px 4px;
}

.profile-card-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.profile-card-role {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

/* Floating Client Stat Badge */
.hero-floating-stat {
  position: absolute;
  bottom: -18px;
  left: -28px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  z-index: 20;
}

.avatar-stack {
  display: flex;
}

.avatar-stack-item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  margin-left: -8px;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

/* Stats Row Bar */
.stats-row-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  padding: 32px 0;
  margin: 60px 0 90px;
}

.stat-col {
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-col:first-child {
  border-left: none;
}

.stat-col .stat-title {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.stat-col .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Bento Selected Projects (Garry Audie style) */
.bento-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.bento-project-card {
  background: #121212;
  border: 1px solid var(--border-card);
  border-radius: 32px;
  padding: 12px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.bento-canvas-wrap {
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0e14;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-canvas-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-project-card:hover .bento-canvas-wrap img {
  transform: scale(1.04);
}

.bento-body {
  padding: 20px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.bento-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.bento-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.bento-subtitle {
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.bento-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bento-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.bento-pricing-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.bento-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-bento-subtle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e5e5;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-bento-subtle:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

/* Timeline Sections (Experiences & Education) */
.timeline-section-card {
  background: rgba(20, 20, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 32px;
  padding: 40px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.timeline-tree {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-left: 12px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  background: #262626;
  transition: var(--transition);
  z-index: 10;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
}

.timeline-item.emerald:hover .timeline-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.timeline-item.blue:hover .timeline-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.timeline-item.amber:hover .timeline-dot {
  background: var(--accent-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.timeline-item.rose:hover .timeline-dot {
  background: var(--accent-rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.25);
}

.timeline-item.cyan:hover .timeline-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
}

/* Technical Arsenal Bento Grid */
.arsenal-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

.arsenal-bento-card {
  background: rgba(20, 20, 20, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  transition: var(--transition);
}

.arsenal-bento-card:hover {
  background: rgba(20, 20, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.arsenal-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* CTA Garry Audie Outer Glow Box */
.cta-glow-outer {
  position: relative;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(10, 10, 10, 0.9) 100%);
  margin: 60px 0 40px;
  overflow: hidden;
}

.cta-glow-inner {
  position: relative;
  background: #0a0a0a;
  border-radius: 36px;
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
}

/* =========================================================================
   LMS Courses Catalog & Cards (Garry Audie Bento Aesthetic)
   ========================================================================= */
.courses-value-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.value-icon {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.25;
}

.value-item span {
  font-size: 0.76rem;
  color: var(--text-subtle);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.course-card {
  background: #121212;
  border: 1px solid var(--border-card);
  border-radius: 32px;
  padding: 14px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.08);
}

.course-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0e14;
  position: relative;
}

.course-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-thumb-wrap img {
  transform: scale(1.03);
}

.course-badges-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.course-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.course-badge-pill.category {
  background: rgba(10, 10, 10, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.course-badge-pill.level {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.course-badge-discount {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(244, 63, 94, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
  z-index: 2;
}

.course-card-body {
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-meta-row .meta-dot {
  color: var(--border-hover);
}

.course-meta-row .rating {
  color: var(--accent-amber);
  font-weight: 600;
}

.course-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 8px;
}

.course-card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.course-card-title a:hover {
  color: var(--accent-cyan);
}

.course-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.perk-check {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 0.85rem;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.course-pricing {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.course-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-course-secondary {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  text-decoration: none;
}

.btn-course-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Guarantee Card */
.courses-guarantee-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-top: 20px;
}

.guarantee-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.guarantee-content {
  flex: 1;
}

.guarantee-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.guarantee-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive adjustments for courses */
@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .courses-value-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-guarantee-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .courses-value-ribbon {
    grid-template-columns: 1fr;
  }

  .course-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-actions {
    width: 100%;
    justify-content: space-between;
  }

  .course-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* LMS Classroom & Portal Styles */
.classroom-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  min-height: calc(100vh - 120px);
  padding: 24px 0 60px;
}

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

.classroom-player-wrap {
  background: #000;
  aspect-ratio: 16/9;
  width: 100%;
}

.classroom-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.classroom-content {
  padding: 32px;
}

.classroom-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
}

.curriculum-module {
  margin-bottom: 18px;
}

.module-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.lesson-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.lesson-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.lesson-nav-item.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: #ffffff;
  font-weight: 600;
}

.lesson-nav-item.completed .check-circle {
  color: var(--accent-emerald);
}

/* Modals & Checkout Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Flash alerts */
.alert {
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-info {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
}

/* =========================================================================
   AUTH PAGES RESPONSIVE SYSTEM (LOGIN, REGISTER, FORGOT PASSWORD)
   ========================================================================= */
.auth-container {
  padding: 100px 20px 80px;
  max-width: 480px;
  margin: 0 auto;
}

.auth-card {
  border-radius: 28px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 36px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h1 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 700;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* 1-Click Fast Login Box */
.demo-login-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 22px;
}

.demo-login-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.demo-login-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.35;
  white-space: normal;
  transition: var(--transition);
  cursor: pointer;
  background: #171717;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
}

.demo-login-btn:hover {
  background: #212121;
  transform: translateY(-1px);
}

.demo-login-btn.admin {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}

.demo-login-btn.admin:hover {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.demo-login-btn.student {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.demo-login-btn.student:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.demo-login-text {
  flex: 1;
  min-width: 0;
}

.demo-login-arrow {
  flex-shrink: 0;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.demo-login-btn:hover .demo-login-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Password Input with Toggle Icon */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  line-height: 1;
}

.password-toggle-btn:hover {
  color: #ffffff;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  font-weight: 600;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background: #0f0f0f;
  color: var(--text-subtle);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

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

/* Progress bar */
.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #262626;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 6px 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-emerald);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

/* Tag Badge */
.tag-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.monetize-badge {
  background: rgba(139, 92, 246, 0.9);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Certificate Box */
.cert-card {
  background: #111111;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.cert-badge-ribbon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Detail Page 2-Column Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
}

.invoice-grid {
  display: grid;
  gap: 24px;
}

.cert-meta-grid {
  display: grid;
  gap: 20px;
  align-items: center;
}

/* Section Header Flex (Selected Projects & LMS Courses) */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 16px;
}

.cta-glow-title {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.15;
}

/* Classroom Grid System */
.classroom-grid-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .classroom-page-container {
    padding: 85px 16px 60px !important;
  }

  .classroom-grid-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .invoice-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .cert-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  .section-header-flex .btn {
    align-self: flex-start;
  }
}

/* ==========================================================================
   ADMIN DASHBOARD DEDICATED DESIGN SYSTEM
   ========================================================================== */


.admin-body {
  background: #09090b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
}

@media (max-width: 768px) {
  .admin-topbar-hide-mobile {
    display: none;
  }
}


.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.admin-badge-portal {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-layout-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 65px);
}

.admin-sidebar {
  background: #0d0d10;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-nav-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #737373;
  font-weight: 700;
  padding: 0 12px;
  margin-bottom: 8px;
}

.admin-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #a3a3a3;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.admin-nav-link.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: #ffffff;
  font-weight: 600;
}

.admin-main-viewport {
  padding: 36px 40px 80px;
  max-width: 1300px;
  width: 100%;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-page-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 700;
}

.admin-page-desc {
  color: #737373;
  font-size: 0.92rem;
}

/* Admin Stat Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.admin-kpi-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.admin-kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.admin-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #737373;
  font-weight: 600;
}

.admin-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.admin-kpi-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.admin-kpi-footer {
  font-size: 0.8rem;
  color: #a3a3a3;
}

/* Admin Quick Stat Mini Card */
.admin-stat-mini {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-stat-mini .stat-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.admin-stat-mini div strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.admin-stat-mini div span {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* Admin Table Cards */
.admin-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-card-title {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 600;
}

/* Status Badges */
.badge-status-paid {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status-active {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status-expired {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 0 30px;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================================
   MOBILE HAMBURGER MENU
   ========================================================================= */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 105;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-drawer a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 24px;
  border-radius: 14px;
  transition: var(--transition);
  text-align: center;
}

.nav-mobile-drawer a:hover,
.nav-mobile-drawer a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-mobile-drawer .mobile-drawer-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* =========================================================================
   ADMIN MOBILE SIDEBAR
   ========================================================================= */
.admin-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.admin-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.admin-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS - COMPREHENSIVE
   ========================================================================= */

/* Large Desktop / Laptop */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .admin-main-viewport {
    padding: 30px 28px 60px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
  }
}

/* Tablet Landscape / Small Laptop */
@media (max-width: 992px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  /* Nav pill - show hamburger, hide menu */
  .nav-menu {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-drawer {
    display: flex;
  }

  .nav-pill {
    padding: 8px 10px 8px 14px;
  }

  /* Hero */
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-floating-stat {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
  }

  #profile-card {
    width: 240px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  /* Stats */
  .stats-row-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 0;
    margin: 40px 0 60px;
  }

  .stat-col {
    border-left: none;
    padding: 12px 20px;
  }

  .stat-col .stat-value {
    font-size: 1.5rem;
  }

  /* Bento Grid */
  .bento-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Arsenal Grid */
  .arsenal-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Classroom */
  .classroom-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .classroom-sidebar {
    order: -1;
  }

  /* Admin */
  .admin-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-top: 80px;
    overflow-y: auto;
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

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

  .admin-hamburger {
    display: flex;
  }

  .admin-main-viewport {
    padding: 24px 20px 60px;
    max-width: 100%;
  }

  .admin-page-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .admin-kpi-val {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  /* Timeline */
  .timeline-section-card {
    padding: 28px 20px;
    border-radius: 24px;
    margin-bottom: 50px;
  }

  /* CTA */
  .cta-glow-inner {
    padding: 40px 24px;
  }

  /* Modal */
  .modal-box {
    max-width: 90%;
    padding: 28px 24px;
    border-radius: 22px;
    max-height: 85vh;
  }
}

/* Tablet Portrait / Large Mobile */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  /* Hero */
  .hero-section {
    padding: 110px 0 40px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-badge-tag {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  #profile-card {
    width: 220px;
    padding: 12px;
  }

  .profile-card-img-wrap {
    border-radius: 14px;
  }

  /* Stats */
  .stats-row-bar {
    margin: 30px 0 50px;
  }

  /* Arsenal */
  .arsenal-bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .arsenal-bento-card {
    padding: 20px;
    border-radius: 16px;
  }

  /* Bento Card */
  .bento-project-card {
    border-radius: 24px;
    padding: 10px;
  }

  .bento-canvas-wrap {
    border-radius: 16px;
    aspect-ratio: 16/10;
  }

  .bento-body {
    padding: 16px 10px 8px;
    gap: 12px;
  }

  .bento-title {
    font-size: 1.05rem;
  }

  .bento-actions-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Cards */
  .card {
    padding: 20px;
    border-radius: 20px;
  }

  /* Admin */
  .admin-topbar {
    padding: 10px 16px;
  }

  .admin-topbar-inner {
    gap: 8px;
  }

  .admin-page-title {
    font-size: 1.35rem;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-kpi-card {
    padding: 18px 20px;
    border-radius: 16px;
  }

  .admin-card {
    border-radius: 18px;
  }

  .admin-card-header {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Tables */
  .table th {
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .table td {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Timeline */
  .timeline-tree {
    padding-left: 24px;
    gap: 28px;
    margin-left: 8px;
  }

  .timeline-dot {
    left: -31px;
    width: 12px;
    height: 12px;
  }

  /* Classroom */
  .classroom-content {
    padding: 20px;
  }

  .classroom-sidebar {
    padding: 16px;
  }

  /* Forms */
  .form-control {
    padding: 10px 14px;
    border-radius: 10px;
  }

  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 0.92rem;
  }

  /* Certificate */
  .cert-card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  /* Filter Tabs */
  .filter-tabs {
    gap: 6px;
    margin-bottom: 24px;
  }

  .filter-tab {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  /* Nav pill */
  .nav-pill {
    padding: 6px 10px 6px 14px;
    border-radius: var(--radius-full);
  }

  .brand-avatar-circle {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  /* Admin topbar compact */
  .admin-badge-portal {
    display: none;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero-section {
    padding: 90px 0 28px;
  }

  .hero-badge-tag {
    font-size: 0.72rem;
    padding: 6px 12px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* 3D Profile Card Mobile (Centered & Proportional) */
  #profile-card-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 18px auto 0;
    perspective: 900px;
    position: relative;
  }

  #profile-card {
    width: 220px;
    border-radius: 22px;
    padding: 10px;
  }

  .profile-card-img-wrap {
    border-radius: 14px;
  }

  .hero-floating-stat {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    gap: 8px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
  }

  .hero-floating-stat .avatar-stack-item {
    width: 22px;
    height: 22px;
    font-size: 7px;
  }

  .hero-grid {
    gap: 20px;
  }

  /* Stats Row Bar (Sleek 2x2 Glass Tiles) */
  .stats-row-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
    margin: 20px 0 36px;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
  }

  .stat-col {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .stat-col .stat-value {
    font-size: 1.25rem;
  }

  .stat-col .stat-title {
    font-size: 0.68rem;
  }

  /* Nav pill */
  .nav-pill-wrapper {
    top: 8px;
    padding: 0 10px;
  }

  .nav-pill {
    padding: 6px 8px 6px 12px;
    gap: 6px;
  }

  .nav-brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-avatar-circle {
    width: 28px;
    height: 28px;
    font-size: 9px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 105px;
  }

  .nav-pill-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-pill-login-btn,
  .nav-pill-logout-btn {
    display: none !important;
  }

  .available-pill-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
    gap: 5px;
  }

  /* Filter Tabs (Smooth Horizontal Swipe) */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 8px;
    margin-bottom: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  /* Bento Project Cards */
  .bento-project-card {
    border-radius: 20px;
    padding: 10px;
  }

  .bento-canvas-wrap {
    border-radius: 14px;
  }

  .bento-header-info {
    flex-direction: column;
    gap: 8px;
  }

  .bento-pricing-row {
    padding-top: 10px;
    font-size: 0.82rem;
  }

  .bento-actions-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bento-actions-row .btn,
  .bento-actions-row .btn-bento-subtle {
    width: 100%;
    justify-content: center;
  }

  /* Timeline */
  .timeline-section-card {
    padding: 24px 14px;
    border-radius: 20px;
    margin-bottom: 40px;
  }

  .timeline-tree {
    padding-left: 20px;
    gap: 22px;
    margin-left: 4px;
  }

  .timeline-dot {
    left: -27px;
    width: 12px;
    height: 12px;
  }

  /* Tables - horizontal scroll enhancement */
  .table-responsive {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .table {
    min-width: 540px;
  }

  .table th,
  .table td {
    padding: 10px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Admin */
  .admin-main-viewport {
    padding: 16px 14px 40px;
  }

  .admin-page-title {
    font-size: 1.2rem;
  }

  .admin-page-desc {
    font-size: 0.82rem;
  }

  .admin-kpi-card {
    padding: 16px;
    border-radius: 14px;
  }

  .admin-kpi-val {
    font-size: 1.3rem;
  }

  .admin-kpi-label {
    font-size: 0.72rem;
  }

  .admin-kpi-footer {
    font-size: 0.75rem;
  }

  .admin-card {
    border-radius: 16px;
  }

  .admin-card-header {
    padding: 14px 16px;
  }

  .admin-card-title {
    font-size: 1rem;
  }

  /* Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88vh;
    padding: 24px 16px 32px;
    border-radius: 22px 22px 0 0;
    margin: 0;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 1.25rem;
  }

  /* Alerts */
  .alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  /* Certificate */
  .cert-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .cert-badge-ribbon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  /* Forms in grid */
  .admin-form-grid-2,
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .admin-form-grid-3,
  .form-grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer {
    padding: 32px 0 20px;
  }

  /* CTA Glow Banner */
  .cta-glow-outer {
    border-radius: 22px;
    padding: 3px;
    margin: 36px 0 24px;
  }

  .cta-glow-inner {
    border-radius: 20px;
    padding: 28px 14px;
  }

  .cta-glow-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .cta-glow-inner p {
    font-size: 0.92rem !important;
    margin-bottom: 24px !important;
  }

  .cta-glow-inner .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  /* Classroom */
  .classroom-content {
    padding: 16px;
  }

  .classroom-player-wrap {
    aspect-ratio: 16/9;
  }

  .lesson-nav-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .classroom-header-bar>div {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .classroom-header-bar>div>div {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Progress bar */
  .progress-bar-wrap {
    height: 5px;
  }

  /* Auth Pages Mobile Precision */
  .auth-container {
    padding: 70px 14px 45px !important;
    max-width: 100% !important;
  }

  .auth-card {
    padding: 22px 16px 26px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
  }

  .auth-header {
    margin-bottom: 18px;
  }

  .auth-header h1 {
    font-size: 1.45rem !important;
  }

  .auth-header p {
    font-size: 0.84rem !important;
  }

  .demo-login-box {
    padding: 12px 10px;
    margin-bottom: 18px;
  }

  .demo-login-btn {
    padding: 9px 10px;
    font-size: 0.78rem;
    gap: 8px;
  }

  .form-control {
    font-size: 16px !important;
    /* Prevents iOS auto-zoom on input focus */
    padding: 11px 14px;
  }
}

/* Extra Small Mobile (e.g. 360px - 420px) */
@media (max-width: 420px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .cta-glow-title {
    font-size: 1.45rem;
  }

  .brand-name {
    font-size: 0.78rem;
    max-width: 90px;
  }

  .stat-col .stat-value {
    font-size: 1.1rem;
  }

  .bento-title {
    font-size: 0.95rem;
  }

  .admin-page-title {
    font-size: 1.05rem;
  }

  .admin-kpi-val {
    font-size: 1.15rem;
  }

  .nav-pill-wrapper {
    top: 6px;
    padding: 0 6px;
  }

  .nav-pill {
    padding: 5px 6px 5px 10px;
  }

  .auth-container {
    padding: 60px 10px 35px !important;
  }

  .auth-card {
    padding: 18px 12px 22px !important;
    border-radius: 18px !important;
  }

  .auth-header h1 {
    font-size: 1.35rem !important;
  }

  .demo-login-btn {
    padding: 8px 8px;
    font-size: 0.74rem;
  }
}

/* =========================================================================
   ADMIN PROFILE & FORM GRID UTILITIES
   ========================================================================= */
.admin-profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 992px) {
  .admin-profile-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

@media (max-width: 768px) {

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
}

/* =========================================================================
   ADMIN DASHBOARD LAYOUT & COMPONENTS
   ========================================================================= */
.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  align-items: start;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-quick-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.admin-quick-tile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.admin-license-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-decoration: none;
}

.admin-license-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.revenue-bar-wrapper {
  background: rgba(255, 255, 255, 0.04);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin: 12px 0 16px;
}

.revenue-bar-segment {
  height: 100%;
  transition: width 0.4s ease;
}

@media (max-width: 1024px) {
  .admin-dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

/* =========================================================================
   MEMBER PORTAL RESPONSIVE STYLES & MOBILE OPTIMIZATIONS
   ========================================================================= */
.portal-page-container {
  padding-top: 32px;
  padding-bottom: 70px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Portal Header Card */
.portal-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.85) 60%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 22px;
  gap: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.portal-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #10b981);
}

.portal-identity-block {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.portal-avatar-box {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  border: 2.5px solid rgba(6, 182, 212, 0.6);
  flex-shrink: 0;
  background: #0b0f19;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.portal-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  display: block;
}

.portal-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: #10b981;
  border: 3px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.portal-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-user-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-user-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.portal-role-badge {
  margin: 0;
  font-size: 0.74rem;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.portal-user-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.portal-email-text {
  color: #cbd5e1;
  word-break: break-all;
}

.meta-dot {
  color: #475569;
}

.portal-role-text {
  color: #06b6d4;
  font-weight: 600;
}

.portal-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.portal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Mobile Quick Menu Dropdown */
.portal-mobile-menu-bar {
  display: none;
  margin-bottom: 14px;
}

.portal-mobile-select-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.portal-mobile-select-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.portal-mobile-select-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.portal-mobile-select-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.portal-mobile-select-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 2px;
}

.portal-mobile-menu-dropdown {
  width: 100%;
  background: transparent;
  border: none;
  color: #67e8f9;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.portal-mobile-menu-dropdown option {
  background: #0f172a;
  color: #ffffff;
  padding: 10px;
}

.portal-mobile-select-arrow {
  color: #67e8f9;
  font-size: 0.95rem;
  pointer-events: none;
  margin-left: 8px;
}

/* Horizontal Track Nav */
/* Horizontal Track Nav */
.portal-nav-track-wrapper {
  position: relative;
  margin-bottom: 28px;
  width: 100%;
}

.portal-nav-scroll {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.portal-tab-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1px solid transparent;
  min-width: 0;
  box-sizing: border-box;
  user-select: none;
}

.portal-tab-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}

.portal-tab-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(59, 130, 246, 0.26));
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.2);
}

.portal-tab-pill.active.affiliate-tab-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.2);
}

.portal-tab-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.portal-tab-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-tab-short,
.portal-tab-label-short {
  display: none;
}

.portal-tab-count {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
  flex-shrink: 0;
}

.portal-tab-pill.active .portal-tab-count {
  background: rgba(6, 182, 212, 0.28);
  color: #67e8f9;
}

.portal-affiliate-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.portal-nav-fade-left,
.portal-nav-fade-right {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 2;
}

.portal-nav-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(11, 15, 25, 0.9), transparent);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.portal-nav-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(11, 15, 25, 0.9), transparent);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Responsive Grids & Wrappers */
.portal-grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.portal-cat-filters-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* SMARTPHONE & TABLET BREAKPOINTS */
@media (max-width: 900px) {
  .portal-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }

  .portal-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .portal-action-btn {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .portal-page-container {
    padding-top: 18px;
    padding-bottom: 50px;
  }

  .portal-mobile-menu-bar {
    display: block;
  }

  .portal-identity-block {
    gap: 14px;
  }

  .portal-avatar-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .portal-avatar-box img {
    border-radius: 13px;
  }

  .portal-user-name {
    font-size: 1.28rem;
  }

  .portal-user-submeta {
    font-size: 0.8rem;
    gap: 6px;
  }

  /* Nav Carousel Touch Scroll on Mobile */
  .portal-nav-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: 6px 8px;
    border-radius: 16px;
    gap: 6px;
  }

  .portal-nav-scroll::-webkit-scrollbar {
    display: none;
  }

  .portal-nav-fade-left,
  .portal-nav-fade-right {
    display: block;
  }

  .portal-tab-pill {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .portal-grid-responsive {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .portal-cat-filters-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    width: 100%;
  }

  .portal-cat-filters-wrap::-webkit-scrollbar {
    display: none;
  }

  .portal-cat-filters-wrap .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .portal-form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 480px) {
  .portal-header-card {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .portal-user-name {
    font-size: 1.18rem;
  }

  .portal-quick-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .portal-action-btn {
    padding: 7px 8px;
    font-size: 0.74rem;
  }

  .portal-tab-pill {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .portal-grid-responsive {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================================
   LMS CLASSROOM & COURSE DETAIL RESPONSIVE SYSTEM (SMARTPHONE OPTIMIZED)
   ========================================================================= */

/* Classroom Container */
.classroom-page-container {
  padding: 96px 24px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Classroom 2-Column Desktop Grid */
.classroom-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* Course Detail 2-Column Desktop Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* Classroom Header Bar */
.classroom-header-bar {
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 22px;
  border: 1px solid rgba(6, 182, 212, 0.28);
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.9) 60%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.classroom-header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.classroom-header-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.classroom-back-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.back-text-short {
  display: none;
}

.classroom-title-box {
  overflow: hidden;
  min-width: 0;
}

.classroom-meta-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.classroom-module-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.classroom-lesson-counter {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.classroom-course-heading {
  font-size: 1.18rem;
  margin: 0;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
  font-weight: 700;
  line-height: 1.3;
}

.classroom-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.classroom-mobile-drawer-trigger {
  display: none;
  /* hidden on desktop */
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 10px;
}

.drawer-trigger-counter {
  background: rgba(6, 182, 212, 0.25);
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.classroom-progress-group {
  min-width: 150px;
  max-width: 220px;
  flex: 1;
}

.classroom-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.classroom-progress-bar-wrap {
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.classroom-progress-bar-fill {
  background: linear-gradient(90deg, #06b6d4, #10b981);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.classroom-cert-badge {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  border-radius: 10px;
}

.cert-text-short {
  display: none;
}

/* Classroom Main Tabs Wrapper */
.classroom-tabs-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.classroom-view-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 9px 18px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
}

.classroom-view-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.classroom-view-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(59, 130, 246, 0.25));
  border-color: rgba(6, 182, 212, 0.45);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.18);
}

.tab-label-short {
  display: none;
}

.tab-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
}

.tab-badge.special {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #ffffff;
}

/* Bottom Lesson Navigation */
.classroom-nav-bottom-container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.classroom-nav-complete-box {
  width: 100%;
}

.classroom-btn-complete {
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.classroom-completed-status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
}

.classroom-nav-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.nav-btn-prev-wrap,
.nav-btn-next-wrap {
  flex: 1;
}

.classroom-nav-arrow-btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.classroom-nav-center-syllabus-btn {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  display: none;
  /* revealed on tablet/mobile */
}

/* Mobile Curriculum Drawer (Bottom Sheet) */
.mobile-curriculum-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-curriculum-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-curriculum-drawer-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mobile-curriculum-drawer-overlay.active .mobile-curriculum-drawer-content {
  transform: translateY(0);
}

.drawer-drag-pill {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin: 12px auto 6px;
  cursor: pointer;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-course-tag {
  font-size: 0.72rem;
  color: #67e8f9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-title {
  font-size: 1.12rem;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.drawer-progress-strip {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.drawer-progress-info strong {
  color: #38bdf8;
}

.drawer-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
}

.drawer-progress-fill {
  background: linear-gradient(90deg, #06b6d4, #10b981);
  height: 100%;
  border-radius: 10px;
}

.drawer-modules-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
  flex: 1;
}

.drawer-module-group {
  margin-bottom: 18px;
}

.drawer-module-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
  padding-left: 4px;
}

.drawer-lessons-grid {
  display: grid;
  gap: 6px;
}

.drawer-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.drawer-lesson-item.active {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.drawer-lesson-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.drawer-lesson-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.drawer-lesson-text {
  flex: 1;
  min-width: 0;
}

.drawer-lesson-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-lesson-item.active .drawer-lesson-title {
  color: #67e8f9;
  font-weight: 700;
}

.drawer-lesson-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.drawer-check-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: transparent;
}

.drawer-lesson-item.completed .drawer-check-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.drawer-cert-footer {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating Bottom Controller Bar on Smartphone */
.classroom-mobile-bar {
  display: none;
  /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
}

.mobile-bar-btn {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.mobile-bar-btn.next {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.35));
  border-color: rgba(6, 182, 212, 0.45);
  color: #67e8f9;
}

.mobile-bar-btn.cert {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4));
  border-color: rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}

.mobile-bar-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mobile-bar-center-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 12px;
  border-radius: 14px;
  color: #ffffff;
  cursor: pointer;
  min-width: 0;
}

.mobile-bar-center-btn .center-icon {
  font-size: 1.15rem;
}

.mobile-bar-center-btn .center-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.mobile-bar-center-btn .center-step {
  font-size: 0.74rem;
  font-weight: 700;
  color: #67e8f9;
  line-height: 1.2;
}

.mobile-bar-center-btn .center-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.2;
}

/* SMARTPHONE & TABLET BREAKPOINTS FOR CLASSROOM */
@media (max-width: 1024px) {
  .classroom-grid-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .classroom-sidebar-panel {
    position: static !important;
    max-height: none !important;
  }

  .classroom-sidebar-panel .card {
    max-height: none !important;
  }

  .classroom-nav-center-syllabus-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .classroom-page-container {
    padding: 76px 14px 90px !important;
  }

  .classroom-header-bar {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .classroom-header-main-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .classroom-header-identity {
    gap: 10px;
  }

  .back-text-full {
    display: none;
  }

  .back-text-short {
    display: inline;
  }

  .classroom-course-heading {
    font-size: 1.05rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .classroom-header-actions {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .classroom-mobile-drawer-trigger {
    display: inline-flex;
  }

  .classroom-progress-group {
    max-width: none;
    min-width: 0;
  }

  .cert-text-full {
    display: none;
  }

  .cert-text-short {
    display: inline;
  }

  /* Horizontal touch-scroll tabs */
  .classroom-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
  }

  .classroom-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .classroom-view-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
    border-radius: 10px;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }

  /* Show floating mobile bar */
  .classroom-mobile-bar {
    display: block;
  }

  .course-detail-container {
    padding-top: 80px !important;
    padding-bottom: 50px !important;
  }

  .course-detail-title {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 480px) {
  .classroom-header-bar {
    padding: 14px 12px;
  }

  .classroom-course-heading {
    font-size: 0.98rem;
  }

  .classroom-view-tab {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .classroom-nav-buttons-row {
    gap: 6px;
  }

  .classroom-nav-arrow-btn {
    padding: 9px 8px;
    font-size: 0.76rem;
  }

  .classroom-nav-center-syllabus-btn {
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .syllabus-btn-text {
    display: none;
  }

  .course-detail-title {
    font-size: 1.35rem !important;
  }

  .course-skills-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* Print-friendly Global Rules */
@media print {

  .site-header,
  .site-footer,
  .nav-pill-wrapper,
  .admin-topbar,
  .admin-sidebar,
  .nav-hamburger,
  .nav-mobile-drawer,
  .admin-sidebar-overlay,
  .modal-overlay,
  .bg-grid,
  .ambient-glow-top,
  .ambient-glow-bottom,
  .ambient-glow-cyan,
  .cert-action-bar,
  #aiAssistantWidget,
  #aiChatModal,
  #checkoutModal,
  .flash-message {
    display: none !important;
    visibility: hidden !important;
  }
}