/* ============================================================
   GenAI PowerUP - Professional Design System
   Version: 2.1.0
   Modern Cyber-Futuristic Theme (RTL Optimized)
   ============================================================ */

/* ============================================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================================ */
:root {
  /* Primary Colors - Logo Palette */
  --primary: #667eea;
  --primary-dark: #5a6fd6;
  --primary-light: #818cf8;
  
  /* Secondary Colors */
  --secondary: #764ba2;
  --secondary-dark: #6b4190;
  --secondary-light: #8b5fbf;
  
  /* Accent Colors */
  --accent: #ec4899;
  --accent-dark: #db2777;
  --accent-light: #f472b6;
  
  /* Cyber Colors */
  --cyber-cyan: #38bdf8;
  --cyber-green: #10b981;
  --cyber-purple: #a855f7;
  
  /* Neutral Colors */
  --dark-900: #050914;
  --dark-800: #0f1629;
  --dark-700: #1e293b;
  --dark-600: #334155;
  
  --light-100: #f8fafc;
  --light-200: #f1f5f9;
  --light-300: #e2e8f0;
  --light-400: #cbd5e1;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #f8fafc;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--cyber-cyan) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 100%);
  --gradient-cyber: linear-gradient(135deg, var(--cyber-cyan) 0%, var(--cyber-purple) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
  
  /* Glow Effects */
  --glow-primary: 0 0 30px rgba(102, 126, 234, 0.4);
  --glow-accent: 0 0 30px rgba(236, 72, 153, 0.4);
  --glow-cyber: 0 0 30px rgba(56, 189, 248, 0.4);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Typography */
  --font-sans: 'Segoe UI', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  
  /* Z-Index Layers */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--light-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: start;
}

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

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

/* ============================================================
   LAYOUT & CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  min-height: 48px;
  min-width: 48px;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-md), var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--text-light);
  box-shadow: var(--shadow-md), var(--glow-accent);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(236, 72, 153, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

.btn-ghost {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(102, 126, 234, 0.2);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-300);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 45px;
  width: auto;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.nav-cta,
.cta-button {
  margin-inline-start: var(--space-md);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    var(--light-100);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: -10%;
  width: 500px;
  height: 500px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  inset-inline-start: -5%;
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(102, 126, 234, 0.2);
  z-index: -1;
  transform: rotate(-2deg);
}

.accent {
  color: var(--accent);
}

.trust-badges {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.hero-stat,
.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-300);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-circle {
  width: 400px;
  height: 400px;
  max-width: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: pulse 4s ease-in-out infinite;
  box-shadow: var(--shadow-xl), var(--glow-primary);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.hero-circle::before {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--light-100);
}

.circle-logo {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Floating Elements */
.floating-card {
  position: absolute;
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-300);
  animation: float-card 6s ease-in-out infinite;
  z-index: 2;
}

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

.floating-card.card-1 {
  top: 10%;
  inset-inline-end: 5%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 20%;
  inset-inline-start: 5%;
  animation-delay: -2s;
}

.floating-card.card-3 {
  top: 50%;
  inset-inline-end: -5%;
  animation-delay: -4s;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--light-300);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.2);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
  box-shadow: var(--glow-primary);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Feature Card */
.feature-card {
  text-align: center;
  padding: var(--space-2xl);
}

.feature-card .card-icon {
  margin: 0 auto var(--space-lg);
}

/* Day Card - Timeline */
.day-card {
  position: relative;
  padding-inline-end: var(--space-2xl);
}

.day-card::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  box-shadow: var(--glow-primary);
}

/* Stat Card */
.stat-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--gradient-dark);
  color: white;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.stat-card::before {
  display: none;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.stat-card .stat-number {
  font-size: 3rem;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  color: var(--light-400);
  font-size: 1rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.about-card {
  text-align: center;
}

/* ============================================================
   AGENDA / TIMELINE SECTION
   ============================================================ */
.agenda {
  background: var(--light-200);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  inset-inline-end: 100%;
  width: 100%;
  height: 2px;
  background: var(--light-400);
}

.timeline-item:first-child::before {
  display: none;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--space-3xl);
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 30%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: white;
  margin-bottom: var(--space-md);
}

.cta-text {
  color: var(--light-400);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-900);
  color: white;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo img {
  height: 40px;
}

.footer-description {
  color: var(--light-400);
  line-height: 1.7;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--light-400);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--cyber-cyan);
  transform: translateX(-5px);
}

.footer-bottom {
  border-top: 1px solid var(--dark-700);
  padding-top: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
}

/* ============================================================
   FLOATING CTA BUTTONS
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: var(--space-lg);
  inset-inline-end: var(--space-lg); /* Left in RTL */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: var(--z-fixed);
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-btn.call {
  background: var(--gradient-primary);
}

.floating-btn.email {
  background: var(--gradient-accent);
}

.floating-btn .tooltip {
  position: absolute;
  inset-inline-start: calc(100% + var(--space-sm));
  background: var(--dark-800);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   CONTACT PANEL
   ============================================================ */
.contact-panel {
  position: fixed;
  inset-inline-end: var(--space-lg); /* Left in RTL */
  bottom: calc(80px + var(--space-lg));
  z-index: var(--z-fixed);
  background: rgba(5, 9, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-width: 220px;
  box-shadow: var(--shadow-xl), var(--glow-primary);
}

.contact-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  margin-bottom: var(--space-md);
}

.contact-item {
  display: block;
  color: var(--light-300);
  font-size: 0.875rem;
  padding: var(--space-xs) 0;
  transition: var(--transition-fast);
}

.contact-item:hover {
  color: var(--cyber-cyan);
  transform: translateX(-3px);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--light-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--cyber-green);
}

.badge-accent {
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

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

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

.scale-in {
  animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.btn-pulse {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* ============================================================
   TRAINING PACKAGE PAGES (PORTAL / DASHBOARD / CONTENT)
   ============================================================ */

/* Common page header blocks */
.header {
  text-align: center;
  margin: 0 auto var(--space-2xl);
  max-width: 900px;
}

.header h1 {
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-footer,
.simple-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--light-300);
}

.page-footer a,
.simple-footer a,
.pdf-footer a,
.dashboard-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-footer a:hover,
.simple-footer a:hover,
.pdf-footer a:hover,
.dashboard-footer a:hover {
  color: var(--primary);
}

/* Cards: restore list styling inside content cards */
.card ul,
.box ul,
.session-content ul,
.pdf-info-list,
.package-features,
.benefits-list,
.offers-list {
  list-style: disc;
  padding-inline-start: 1.25rem;
  margin-top: var(--space-md);
}

.card li,
.box li,
.session-content li,
.pdf-info-list li,
.package-features li,
.benefits-list li,
.offers-list li {
  margin: 0.35rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(102, 126, 234, 0.35);
  text-underline-offset: 3px;
}

.card a:hover {
  color: var(--primary-dark);
  text-decoration-color: rgba(102, 126, 234, 0.65);
}

/* Portal (training-package/index.html) */
.portal {
  min-height: 100vh;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  place-items: center;
  background: var(--gradient-dark);
  color: var(--text-light);
}

.portal-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.portal-hero h1 {
  color: white;
  margin-bottom: var(--space-md);
}

.portal-hero p {
  color: var(--light-300);
}

.portal-note {
  margin-top: var(--space-md);
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--light-200);
}

.portal-cards {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.portal-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.portal-card h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.portal-card p {
  color: var(--light-300);
}

.portal-links {
  text-align: center;
}

.portal-links a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-links a:hover {
  color: var(--cyber-cyan);
}

/* Dashboard widgets */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.quick-link {
  display: block;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--light-300);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 126, 234, 0.35);
  box-shadow: var(--shadow-md);
}

.progress-section {
  margin: var(--space-2xl) 0;
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.progress-title {
  margin-bottom: var(--space-lg);
}

.progress-item {
  margin: var(--space-md) 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.progress-bar {
  height: 10px;
  background: var(--light-300);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.nav-card {
  display: block;
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.35);
}

.nav-card.active {
  border-color: rgba(102, 126, 234, 0.55);
  box-shadow: var(--shadow-md), var(--glow-primary);
}

.nav-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.nav-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.nav-card-description {
  color: var(--text-secondary);
}

.content-section {
  margin-top: var(--space-2xl);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.content-item {
  display: block;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: rgba(102, 126, 234, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.16);
}

.content-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.28);
  transform: translateY(-2px);
}

.content-item-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.content-item-title {
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.content-item-description {
  color: var(--text-secondary);
}

/* Projects page layout */
.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-300);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

/* Tag pill (cases.html) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.2);
  margin-bottom: var(--space-sm);
}

/* ============================================================
   AGENDA (agenda.html)
   ============================================================ */
.agenda-container {
  display: grid;
  gap: var(--space-2xl);
}

.day-section {
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.day-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.day-title-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
}

.day-objective {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.objective-label {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.objective-text {
  color: var(--text-secondary);
}

.session-block {
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.session-time {
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.session-title {
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.session-label {
  font-weight: 800;
}

.session-block.is-break {
  background: rgba(236, 72, 153, 0.06);
  border-color: rgba(236, 72, 153, 0.18);
}

.session-label.is-break {
  color: var(--accent-dark);
}

.session-block.is-tip-cyan {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.session-label.is-tip-cyan {
  color: var(--cyber-cyan);
}

.session-block.is-tip-green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.session-label.is-tip-green {
  color: var(--cyber-green);
}

/* ============================================================
   PDF PAGES (presentations.html)
   ============================================================ */
.pdf-container {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: var(--space-xl);
}

.pdf-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.pdf-subtitle {
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.pdf-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.pdf-option {
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.pdf-option:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.35);
}

.pdf-option-icon {
  font-size: 2.25rem;
  margin-bottom: var(--space-sm);
}

.pdf-option-title {
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.pdf-option-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.btn-pdf:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.pdf-viewer {
  display: none;
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-300);
  background: white;
  box-shadow: var(--shadow-lg);
}

.pdf-viewer.active {
  display: block;
}

.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--dark-800);
  color: white;
}

.pdf-controls button {
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
}

.pdf-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pdf-title {
  font-weight: 800;
}

.pdf-viewer iframe {
  width: 100%;
  height: min(80vh, 900px);
  border: 0;
}

.pdf-info {
  background: rgba(102, 126, 234, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.pdf-info-title {
  margin-bottom: var(--space-sm);
}

.pdf-footer {
  margin-top: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
}

/* ============================================================
   MARKDOWN PAGES (md-page.js renderer)
   ============================================================ */
.md-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  align-items: start;
}

.md-toc-toggle {
  display: none;
  margin: 0 0 var(--space-md);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-300);
  background: white;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.md-toc {
  position: sticky;
  top: 90px;
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.md-toc.is-collapsed {
  display: none;
}

.md-toc-title {
  font-weight: 900;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.md-toc-list {
  display: grid;
  gap: 0.5rem;
}

.md-toc-item a {
  color: var(--text-secondary);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  display: block;
}

.md-toc-item a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
}

.md-toc-h3 a {
  padding-inline-start: 1.25rem;
  font-size: 0.95rem;
}

.md-content {
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.md-content h1,
.md-content h2,
.md-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.md-content h2 {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--light-300);
}

.md-content p {
  margin: 0.75rem 0;
}

.md-content ul,
.md-content ol {
  margin: 0.75rem 0;
  padding-inline-start: 1.25rem;
}

.md-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-inline-start: 4px solid rgba(102, 126, 234, 0.5);
  background: rgba(102, 126, 234, 0.06);
  border-radius: var(--radius-md);
}

.md-code {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 22, 41, 0.2);
}

.md-code pre {
  background: var(--dark-900);
  color: var(--light-200);
  padding: 1rem;
  overflow: auto;
}

.md-code code,
.md-code-inner {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.md-copy {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 800;
}

.md-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

.md-table-wrap {
  overflow: auto;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  margin: 1rem 0;
}

.md-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.md-table th,
.md-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--light-300);
  text-align: start;
}

.md-table th {
  background: var(--light-200);
  font-weight: 900;
}

.md-loading {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
}

.md-error {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.18);
  color: var(--accent-dark);
}

.md-back-to-top {
  position: fixed;
  bottom: 90px;
  inset-inline-start: var(--space-lg);
  z-index: var(--z-fixed);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(5, 9, 20, 0.88);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: var(--transition-normal);
}

.md-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============================================================
   INTRO LANDING EXTRAS (intro.html)
   ============================================================ */

.circle-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(102, 126, 234, 0.22);
  inset: -10px;
  animation: ringSpin 14s linear infinite;
}

.circle-ring.ring-2 { inset: -24px; opacity: 0.55; animation-duration: 20s; }
.circle-ring.ring-3 { inset: -40px; opacity: 0.35; animation-duration: 26s; }

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--light-300);
  box-shadow: var(--shadow-md);
  font-weight: 800;
  animation: float-card 6s ease-in-out infinite;
}

.float-card.card-1 { top: 12%; inset-inline-end: 6%; }
.float-card.card-2 { top: 56%; inset-inline-start: 6%; animation-delay: -2s; }
.float-card.card-3 { bottom: 18%; inset-inline-end: 10%; animation-delay: -4s; }
.float-card.card-4 { bottom: 52%; inset-inline-start: 10%; animation-delay: -1s; }

.hero-banner-bottom {
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: center;
}

.banner-image {
  width: min(1100px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-300);
  box-shadow: var(--shadow-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.feature {
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  margin-bottom: var(--space-md);
}

.packages-section {
  background: var(--light-200);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.package-card {
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.28);
}

.package-card.featured {
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: var(--shadow-lg), var(--glow-accent);
}

.package-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  color: white;
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.popular-label {
  position: absolute;
  top: var(--space-lg);
  inset-inline-end: var(--space-lg);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 0.85rem;
}

.package-title {
  font-weight: 900;
  margin-bottom: var(--space-xs);
}

.package-duration {
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.package-target {
  margin-top: var(--space-md);
  color: var(--text-secondary);
}

.btn-package {
  width: 100%;
  margin-top: var(--space-lg);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-glow {
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.gallery-section {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-300);
  box-shadow: var(--shadow-sm);
  background: white;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-caption {
  padding: var(--space-md);
  font-weight: 700;
  color: var(--text-secondary);
}

.schedule {
  background: var(--light-200);
}

.timeline-marker {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 900;
  box-shadow: var(--glow-primary);
  margin-bottom: var(--space-md);
}

.timeline-content {
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.day-duration {
  font-weight: 800;
  color: var(--primary);
}

.day-sessions {
  display: grid;
  gap: var(--space-sm);
}

.session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 41, 0.03);
}

.session.highlight {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.18);
}

.session.special {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.day-outcome {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--light-300);
  color: var(--text-secondary);
}

.schedule-cta {
  margin-top: var(--space-2xl);
  text-align: center;
}

.access-section {
  background: white;
}

.access-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.access-title {
  margin-bottom: var(--space-sm);
}

.access-headline {
  color: var(--text-secondary);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.access-card {
  background: white;
  border: 1px solid var(--light-300);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.access-card.main-cta {
  background: var(--gradient-dark);
  color: white;
  border-color: rgba(102, 126, 234, 0.35);
  box-shadow: var(--shadow-xl), var(--glow-primary);
}

.access-card.main-cta p,
.access-card.main-cta li {
  color: var(--light-300);
}

.card-badge {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyber-cyan);
  font-weight: 900;
  margin-bottom: var(--space-md);
}

.contact-options {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-300);
  background: rgba(15, 22, 41, 0.03);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-btn.whatsapp { border-color: rgba(16, 185, 129, 0.25); }
.contact-btn.email { border-color: rgba(236, 72, 153, 0.25); }
.contact-btn.linkedin { border-color: rgba(59, 130, 246, 0.25); }

.contact-btn .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.12);
}

.contact-btn .text {
  font-weight: 800;
}

.access-note {
  margin-top: var(--space-md);
  color: var(--light-400);
  font-size: 0.9rem;
}

.urgency-banner {
  margin-top: var(--space-2xl);
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}

.urgency-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
}

.urgency-icon {
  font-size: 1.75rem;
}

.urgency-text {
  color: var(--text-secondary);
}

.main-cta .urgency-text { color: var(--light-300); }

/* Footer variant used in intro.html */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  color: white;
}

.footer-section p,
.footer-section a {
  color: var(--light-400);
}

.footer-section a:hover {
  color: var(--cyber-cyan);
}

/* CTA block used in exercises.html */
.cta {
  margin: var(--space-2xl) auto 0;
  text-align: center;
}

.cta a {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: var(--primary);
  font-weight: 800;
}

.cta a:hover {
  background: rgba(102, 126, 234, 0.16);
}

/* Notifications / small animations used by protection.js */
.notification {
  position: fixed;
  top: 20px;
  inset-inline-end: 20px;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-lg);
  color: white;
  background: rgba(59, 130, 246, 0.95);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  animation: slideDown 0.4s ease-out;
}

.notification.success {
  background: rgba(16, 185, 129, 0.95);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(6px); }
  40% { transform: translateX(-6px); }
  60% { transform: translateX(4px); }
  80% { transform: translateX(-4px); }
}

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
    margin-bottom: var(--space-xl);
  }
  
  .hero-circle {
    width: 300px;
    height: 300px;
  }
  
  .floating-card {
    display: none;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Markdown pages */
  .md-layout {
    grid-template-columns: 1fr;
  }

  .md-toc {
    position: static;
    top: auto;
    max-height: none;
  }

  .md-toc-toggle {
    display: inline-flex;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-normal);
  }
  
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
  
  .nav-cta {
    margin: var(--space-md) 0 0 0;
  }
  
  /* Hamburger Animation */
  .nav-toggle.is-open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.is-open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Hero Mobile */
  .hero {
    min-height: auto;
    padding: calc(70px + var(--space-xl)) var(--space-md) var(--space-xl);
  }

  /* Intro schedule readability */
  .day-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .session {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Markdown content */
  .md-content {
    padding: var(--space-xl);
  }

  .md-table {
    min-width: 520px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .hero-circle {
    width: 220px;
    height: 220px;
  }
  
  .circle-logo {
    width: 80px;
    height: 80px;
  }
  
  /* Cards Mobile */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    grid-template-columns: 1fr;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  /* Floating Elements Mobile */
  .floating-cta {
    bottom: var(--space-md);
    inset-inline-end: var(--space-md);
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .floating-btn .tooltip {
    display: none;
  }
  
  .contact-panel {
    inset-inline-end: var(--space-md);
    inset-inline-start: var(--space-md);
    bottom: 160px;
    min-width: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stat {
    padding: var(--space-sm);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar,
  .floating-cta,
  .contact-panel {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-xl);
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--light-400);
    break-inside: avoid;
  }
}

/* ============================================================
   DASHBOARD & UTILITIES
   ============================================================ */
.dashboard-container {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: var(--space-xl);
}

.dashboard-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-300);
}

.dashboard-header h1 {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.quick-access {
  margin-bottom: var(--space-2xl);
}

.quick-access h3 {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--light-300);
}

/* Password Modal */
.password-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.password-container {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.password-modal.active .password-container {
  transform: scale(1);
}

.password-input {
  width: 100%;
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  border: 2px solid var(--light-300);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  text-align: center;
}

.password-input:focus {
  border-color: var(--primary);
  outline: none;
}

.password-btn {
  width: 100%;
  padding: var(--space-md);
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.password-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.error-message {
  color: var(--accent);
  margin-top: var(--space-md);
  font-size: 0.9rem;
  min-height: 20px;
}

/* Page Layouts */
.page {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: var(--space-xl);
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
