/* ============================================================
   SANTI CEJAS — Main Stylesheet
   Stack: Bootstrap 5 + Alpine.js
   ============================================================ */

/* ── Root Variables ──────────────────────────────────────── */
:root {
  --primary: #7C3AED;
  --secondary: #EC4899;
  --primary-light: #8B5CF6;
  --gradient: linear-gradient(135deg, #7C3AED, #EC4899);
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(236,72,153,0.1));
  --dark: #1E1B4B;
  --text: #374151;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg-light: #F9FAFB;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

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

/* ── Utility ─────────────────────────────────────────────── */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(124,58,237,0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(236,72,153,0.7), 0 0 40px rgba(124,58,237,0.3);
  }
}

/* AOS-like: elements start hidden, animate when class added */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.5s; }

/* ============================================================
   LANDING — NAVBAR
   ============================================================ */

.navbar-landing {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar-landing.scrolled {
  background: rgba(30, 27, 75, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.navbar-landing .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-landing .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.navbar-landing .nav-link:hover {
  color: #fff;
}

.navbar-landing .nav-link:hover::after {
  width: 60%;
  left: 20%;
}

.navbar-landing .navbar-toggler {
  border: none;
  color: #fff;
}

.navbar-landing .navbar-toggler:focus {
  box-shadow: none;
}

.brand-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

/* ── Video Background ───────────────────────────────────────── */
.video-bg-section {
  position: relative;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,27,75,0.78) 0%, rgba(124,58,237,0.60) 50%, rgba(236,72,153,0.55) 100%);
  z-index: 1;
}

.video-bg-section > .container {
  position: relative;
  z-index: 2;
}

/* Sección oscura sin video (fallback galería) */
.section-dark-gradient {
  background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 50%, #6D28D9 100%);
}

.section-dark-gradient .section-title,
.section-dark-gradient .section-tag {
  color: #fff !important;
}

.section-tag-light {
  background: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(255,255,255,0.25);
}

.text-white-75 {
  color: rgba(255,255,255,0.85) !important;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 40%, #7C3AED 70%, #EC4899 100%);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  animation: float 6s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-lg) + 20px);
  background: var(--gradient);
  opacity: 0.25;
  filter: blur(30px);
  z-index: 0;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  text-decoration: none;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124,58,237,0.55);
  color: #fff;
  opacity: 0.95;
}

.btn-gradient:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-gradient-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 12px rgba(124,58,237,0.35);
  text-decoration: none;
}

.btn-gradient-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.5);
  color: #fff;
}

/* ── Badges ────────────────────────────────────────────────── */

.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: pulse-glow 3s ease infinite;
  backdrop-filter: blur(8px);
}

/* ── Section Commons ───────────────────────────────────────── */

.section-tag {
  display: inline-block;
  background: var(--gradient-soft);
  color: var(--primary);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header .section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Services ──────────────────────────────────────────────── */

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 0.04;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.service-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.service-price {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-duration {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Gallery / Slider ──────────────────────────────────────── */

.slider-carousel {
  overflow: hidden;
  position: relative;
}

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

.slider-item {
  flex: 0 0 calc(33.333% - 0.84rem);
  min-width: 0;
}

@media (max-width: 991px) {
  .slider-item {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

@media (max-width: 575px) {
  .slider-item {
    flex: 0 0 85%;
  }
}

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

.gallery-card:hover .gallery-img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.50) 40%, transparent 65%);
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.25rem;
  gap: 0.3rem;
}

.gallery-overlay h5 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95);
  margin: 0;
  line-height: 1.2;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.9);
  margin: 0;
  line-height: 1.4;
}

.gallery-overlay-text {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: -24px;
}

.slider-next {
  right: -24px;
}

@media (max-width: 575px) {
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* En sección sin video (dark gradient), mismos dots visibles */
.section-dark-gradient .slider-dot {
  background: rgba(255,255,255,0.35);
}
.section-dark-gradient .slider-dot.active {
  background: #fff;
}

/* ── Courses ───────────────────────────────────────────────── */

.course-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.course-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.course-card:hover .course-img {
  transform: scale(1.05);
}

.course-badge-mode {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.course-badge-mode.online {
  background: rgba(16,185,129,0.9);
  color: #fff;
}

.course-badge-mode.presencial {
  background: rgba(124,58,237,0.9);
  color: #fff;
}

.course-badge-mode.hibrido {
  background: rgba(236,72,153,0.9);
  color: #fff;
}

.course-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.course-subtitle {
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.course-price {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── About ─────────────────────────────────────────────────── */

.about-section {
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.about-section.video-bg-section {
  background: transparent;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gradient-soft);
  z-index: 0;
}

.about-section > .container {
  position: relative;
  z-index: 1;
}

.about-photo-wrapper {
  position: relative;
  display: inline-block;
}

.about-photo {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  border: 4px solid #fff;
}

.about-photo-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.15;
  bottom: -30px;
  right: -30px;
  z-index: 0;
  filter: blur(2px);
}

.about-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  flex: 1;
  min-width: 100px;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ── Testimonials ──────────────────────────────────────────── */

.testimonial-card {
  background: var(--gradient-soft);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #FBBF24;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.testimonial-role {
  font-size: 0.775rem;
  color: var(--muted);
}

/* ── CTA Section ───────────────────────────────────────────── */

.cta-section {
  background: var(--gradient);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  text-decoration: none;
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--primary);
}

/* ── Footer ────────────────────────────────────────────────── */

.footer-landing {
  background: #0F0D2A;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-landing h5,
.footer-landing h6 {
  color: #fff !important;
}

.footer-landing .text-muted {
  color: rgba(255,255,255,0.55) !important;
}

.footer-landing hr {
  border-color: rgba(255,255,255,0.1);
}

.footer-landing .text-center.text-muted {
  color: rgba(255,255,255,0.4) !important;
}

.footer-landing .footer-brand {
  margin-bottom: 1rem;
}

.footer-landing .footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  display: block;
  padding: 0.2rem 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   INTRA — ADMIN DASHBOARD
   ============================================================ */

.intra-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg-light);
}

/* ── Sidebar ───────────────────────────────────────────────── */

.intra-sidebar {
  width: 250px;
  min-height: 100vh;
  background: linear-gradient(180deg, #1E1B4B 0%, #312E81 100%);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.intra-sidebar::-webkit-scrollbar {
  width: 4px;
}

.intra-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.intra-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

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

.sidebar-brand .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-brand .brand-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}

.sidebar-brand .brand-tagline {
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  list-style: none;
  margin: 0;
}

.sidebar-nav .nav-section {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 1rem 1.25rem 0.4rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.sidebar-nav .nav-link .nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-link .nav-badge {
  margin-left: auto;
  background: var(--secondary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 50px;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  padding-left: 1.5rem;
}

.sidebar-nav .nav-link.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124,58,237,0.4);
  padding-left: 1.25rem;
}

.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 0 3px 3px 0;
}

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

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.sidebar-user-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.825rem;
}

.sidebar-user-role {
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
}

.sidebar-user-action {
  margin-left: auto;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-user-action:hover {
  color: #fff;
}

/* ── Main Content ──────────────────────────────────────────── */

.intra-main {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.intra-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.intra-header .page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.intra-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  position: relative;
}

.header-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gradient-soft);
}

.header-icon-btn .notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid #fff;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  font-size: 1.2rem;
  padding: 0;
}

.intra-content {
  padding: 2rem 1.5rem;
  flex: 1;
}

/* ── Dashboard KPI Cards ───────────────────────────────────── */

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-card .stat-icon.purple { background: rgba(124,58,237,0.1); }
.stat-card .stat-icon.pink   { background: rgba(236,72,153,0.1); }
.stat-card .stat-icon.green  { background: rgba(16,185,129,0.1); }
.stat-card .stat-icon.blue   { background: rgba(59,130,246,0.1); }

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.stat-card .stat-change.up { color: #10B981; }
.stat-card .stat-change.down { color: #EF4444; }

/* ── Intra Card ────────────────────────────────────────────── */

.intra-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.intra-card .intra-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.intra-card .intra-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin: 0;
}

.intra-card .intra-card-body {
  padding: 1.5rem;
}

/* ── Table ─────────────────────────────────────────────────── */

.table-intra {
  width: 100%;
  border-collapse: collapse;
}

.table-intra thead th {
  background: var(--bg-light);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-intra tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.table-intra tbody tr:last-child {
  border-bottom: none;
}

.table-intra tbody tr:hover {
  background: var(--gradient-soft);
}

.table-intra tbody td {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text);
  vertical-align: middle;
}

/* ── Badges Status ─────────────────────────────────────────── */

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-status.pending {
  background: rgba(245,158,11,0.1);
  color: #D97706;
}

.badge-status.confirmed {
  background: rgba(59,130,246,0.1);
  color: #2563EB;
}

.badge-status.completed {
  background: rgba(16,185,129,0.1);
  color: #059669;
}

.badge-status.cancelled {
  background: rgba(239,68,68,0.1);
  color: #DC2626;
}

/* ── Buttons Intra ─────────────────────────────────────────── */

.btn-intra-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(124,58,237,0.3);
  text-decoration: none;
}

.btn-intra-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
  color: #fff;
}

.btn-intra-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-intra-outline:hover {
  background: var(--gradient-soft);
  color: var(--primary);
}

/* ── Form Intra ────────────────────────────────────────────── */

.form-intra .form-label {
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-intra .form-control,
.form-intra .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.form-intra .form-control:focus,
.form-intra .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  outline: none;
}

.form-intra .form-control::placeholder {
  color: #C4C9D4;
}

/* ── Calendar ──────────────────────────────────────────────── */

.calendar-section {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calendar-header {
  padding: 1.25rem 1.5rem;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-header .calendar-title {
  font-weight: 700;
  font-size: 1rem;
}

.calendar-nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.calendar-nav-btn:hover {
  background: rgba(255,255,255,0.35);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
  padding: 0.6rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}

.calendar-day {
  padding: 0.5rem;
  min-height: 80px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.825rem;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover {
  background: var(--gradient-soft);
}

.calendar-day.today .day-number {
  background: var(--gradient);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.calendar-day.other-month {
  background: #FAFAFA;
  color: #D1D5DB;
}

.calendar-event {
  background: var(--gradient-soft);
  border-left: 2px solid var(--primary);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Modal Intra ───────────────────────────────────────────── */

.modal-intra .modal-content {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.modal-intra .modal-header {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

.modal-intra .modal-title {
  font-weight: 700;
  font-size: 1rem;
}

.modal-intra .btn-close {
  filter: invert(1) brightness(2);
}

.modal-intra .modal-body {
  padding: 1.5rem;
}

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

/* ── Sidebar Overlay (mobile) ──────────────────────────────── */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}

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

/* ============================================================
   PORTAL — CLIENT PWA
   ============================================================ */

.portal-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-light);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.1);
}

.portal-header {
  background: var(--gradient);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(124,58,237,0.3);
}

.portal-header-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.portal-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portal-header-icon:hover {
  background: rgba(255,255,255,0.3);
}

.portal-hero {
  background: var(--gradient);
  padding: 2rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}

.portal-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.portal-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.portal-greeting {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.portal-name {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

.portal-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.portal-content {
  padding: 1.5rem 1.25rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 1;
}

.portal-btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 24px rgba(124,58,237,0.4);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.portal-btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(124,58,237,0.55);
  color: #fff;
}

.portal-btn-main:active {
  transform: translateY(-1px);
}

.portal-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-section-title a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.appointment-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appointment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.appointment-service {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.appointment-date {
  font-size: 0.825rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.appointment-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}

.appointment-status.pending   { background: rgba(245,158,11,0.1);  color: #D97706; }
.appointment-status.confirmed { background: rgba(59,130,246,0.1);  color: #2563EB; }
.appointment-status.completed { background: rgba(16,185,129,0.1);  color: #059669; }
.appointment-status.cancelled { background: rgba(239,68,68,0.1);   color: #DC2626; }

.portal-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.portal-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.portal-empty p {
  font-size: 0.875rem;
  max-width: 220px;
  margin: 0 auto 1rem;
}

/* Quick action buttons */
.portal-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.portal-quick-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.portal-quick-btn:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.portal-quick-icon {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.portal-quick-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--dark);
}

/* PWA Install Bar */
.pwa-install-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 500;
  animation: fadeInUp 0.4s ease;
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
}

.pwa-install-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.pwa-install-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

.pwa-install-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pwa-install-btn:hover {
  transform: scale(1.05);
}

.pwa-install-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Portal bottom nav */
.portal-bottom-nav {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.portal-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  gap: 0.2rem;
}

.portal-bottom-nav a .nav-icon {
  font-size: 1.3rem;
}

.portal-bottom-nav a.active {
  color: var(--primary);
}

.portal-bottom-nav a.active .nav-icon {
  transform: scale(1.1);
}

/* ============================================================
   COURSES — STUDENT AREA
   ============================================================ */

.courses-wrapper {
  min-height: 100vh;
  background: var(--bg-light);
}

.course-hero {
  background: var(--gradient);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.course-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.course-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.course-hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.course-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.course-hero-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Progress */
.progress-bar-course {
  background: var(--border);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-course .progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 50px;
  transition: width 0.8s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--muted);
  font-weight: 500;
}

/* Module Accordion */
.module-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.module-item {
  border-bottom: 1px solid var(--border);
}

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

.module-header {
  background: #fff;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s ease;
  user-select: none;
}

.module-header:hover {
  background: var(--gradient-soft);
}

.module-number {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.module-number.completed {
  background: rgba(16,185,129,0.1);
  color: #059669;
}

.module-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.module-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 0.5rem;
}

.module-chevron {
  color: var(--muted);
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.module-item.open .module-chevron {
  transform: rotate(180deg);
}

.module-body {
  background: var(--bg-light);
  display: none;
  border-top: 1px solid var(--border);
}

.module-item.open .module-body {
  display: block;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.material-item:hover {
  background: rgba(124,58,237,0.04);
}

.material-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.material-icon.video    { background: rgba(239,68,68,0.1);  color: #EF4444; }
.material-icon.pdf      { background: rgba(59,130,246,0.1); color: #3B82F6; }
.material-icon.quiz     { background: rgba(245,158,11,0.1); color: #F59E0B; }
.material-icon.download { background: rgba(16,185,129,0.1); color: #10B981; }

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

.material-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-meta {
  font-size: 0.725rem;
  color: var(--muted);
}

.material-check {
  color: #10B981;
  font-size: 1rem;
  flex-shrink: 0;
}

.material-lock {
  color: var(--muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Payment Card */
.payment-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
}

.payment-card:hover {
  transform: translateY(-3px);
}

.payment-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.payment-info {
  flex: 1;
}

.payment-description {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
}

.payment-date {
  font-size: 0.775rem;
  color: var(--muted);
}

.payment-amount {
  font-weight: 800;
  font-size: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.payment-status-badge.paid     { background: rgba(16,185,129,0.1); color: #059669; }
.payment-status-badge.pending  { background: rgba(245,158,11,0.1); color: #D97706; }
.payment-status-badge.failed   { background: rgba(239,68,68,0.1);  color: #DC2626; }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 767px) {
  /* Intra sidebar collapses */
  .intra-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .intra-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.2);
  }

  .intra-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .intra-content {
    padding: 1.25rem 1rem;
  }

  /* Dashboard stats: 2 per row */
  .stat-card .stat-value {
    font-size: 1.4rem;
  }

  /* Hero */
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

  .hero-image-wrapper {
    margin-top: 2rem;
  }

  /* Footer */
  .footer-landing {
    text-align: center;
  }

  .footer-landing .footer-desc {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Portal on mobile: full width */
  .portal-wrapper {
    max-width: 100%;
    box-shadow: none;
  }

  .pwa-install-bar {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .section-title {
    font-size: 1.6rem;
  }

  .about-stats {
    gap: 0.75rem;
  }

  .stat-box {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .course-hero {
    padding: 4rem 0 3rem;
  }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .intra-sidebar,
  .intra-header,
  .pwa-install-bar {
    display: none !important;
  }

  .intra-main {
    margin-left: 0 !important;
  }
}

[x-cloak] { display: none !important; }
