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

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 54, 0.88);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-purple: #8b5cf6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --glow-primary: 0 0 25px rgba(99, 102, 241, 0.25);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);

  --header-height: 64px;
  --bottom-nav-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   App Header & Desktop Navigation
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  gap: 16px;
  transition: all 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--glow-primary);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-secondary);
  white-space: nowrap;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(13, 18, 29, 0.85);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

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

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

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

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-success);
  padding: 5px 10px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(7, 9, 14, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-glass);
  padding: 6px 8px calc(6px + var(--safe-bottom));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex: 1;
  max-width: 68px;
  transition: all 0.2s ease;
  user-select: none;
}

.mobile-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-nav-item.active {
  color: #67e8f9;
}

.mobile-nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

/* Mobile Quick Drawer Menu */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-radius: 20px 20px 0 0;
  padding: 1.25rem 1.25rem calc(1.5rem + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-sheet {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.drawer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.drawer-btn:active {
  background: rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Main Layout & Containers
   ========================================================================== */
.main-container {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  min-height: calc(100vh - var(--header-height));
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

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

/* Page Section Header */
.page-title-bar {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.25;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* ==========================================================================
   Cards & Glassmorphism
   ========================================================================== */
.glass-card {
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.78), rgba(13, 18, 29, 0.7));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.25rem;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.glass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 8px;
}

.glass-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   Responsive Grids
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-profile {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.grid-interview {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
  min-height: 40px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  color: #fff;
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: var(--glow-emerald);
}

.btn-emerald:hover {
  filter: brightness(1.1);
}

.btn-cyan {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #fff;
  box-shadow: var(--glow-cyan);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  min-height: 32px;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Badges, Tags & Labels
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  line-height: 1.2;
}

.tag-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.3);
}

.tag-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: rgba(13, 18, 29, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   ATS Gauge & Dropzone
   ========================================================================== */
.ats-meter-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.1rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 1.25rem;
}

.ats-score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-primary) calc(var(--score) * 1%), rgba(255, 255, 255, 0.1) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.ats-score-circle::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: 50%;
}

.ats-score-number {
  position: relative;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(13, 18, 29, 0.4);
  transition: all 0.25s ease;
}

.dropzone:hover, .dropzone:active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

.dropzone-icon {
  font-size: 2rem;
  margin-bottom: 6px;
  color: var(--accent-secondary);
}

/* ==========================================================================
   Voice Studio Visualizer & Dialogue
   ========================================================================== */
.visualizer-container {
  width: 100%;
  height: 110px;
  background: rgba(13, 18, 29, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

#audioCanvas {
  width: 100%;
  height: 100%;
}

.voice-status-overlay {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: rgba(7, 9, 14, 0.6);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.dialogue-stream {
  height: 360px;
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem;
  background: rgba(13, 18, 29, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  -webkit-overflow-scrolling: touch;
}

.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeIn 0.2s ease;
  word-break: break-word;
}

.chat-bubble.interviewer {
  align-self: flex-start;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #e0e7ff;
}

.chat-bubble.candidate {
  align-self: flex-end;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #cffafe;
}

.bubble-meta {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.8rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .app-header {
    padding: 0.75rem 1rem;
  }

  .main-container {
    padding: 1.25rem 1rem;
  }

  .grid-profile {
    grid-template-columns: 320px 1fr;
    gap: 1.25rem;
  }

  .grid-interview {
    grid-template-columns: 340px 1fr;
    gap: 1.25rem;
  }

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

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  /* Show Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
  }

  /* Hide Desktop Nav in Header on Mobile to prevent overflow */
  .app-header {
    padding: 0.6rem 1rem;
  }

  .app-header .nav-tabs {
    display: none;
  }

  .live-indicator {
    display: none;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .brand-badge {
    display: none;
  }

  /* Add safe padding at bottom for bottom nav */
  .main-container {
    padding: 1rem 0.85rem calc(var(--bottom-nav-height) + var(--safe-bottom) + 1.25rem);
  }

  /* Convert all grids to full-width stacked columns */
  .grid-profile,
  .grid-interview,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Glass Card adjustments */
  .glass-card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
  }

  .glass-card-header {
    margin-bottom: 0.85rem;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .page-subtitle {
    font-size: 0.82rem;
  }

  /* Job Match Cards on Mobile */
  .glass-card .job-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
  }

  /* Button groups wrap nicely */
  .card-action-bar,
  .glass-card-header .btn,
  .job-footer-actions {
    flex-wrap: wrap !important;
    width: 100%;
    gap: 6px !important;
  }

  .card-action-bar .btn,
  .job-footer-actions .btn {
    flex: 1 1 auto;
    min-width: 120px;
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  /* Modals on Mobile: full-width bottom sheet appearance */
  .modal-backdrop {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 85vh;
    padding: 1.25rem 1.1rem;
    border-radius: 20px 20px 0 0;
  }

  /* Candidate contact details stacking */
  .cand-header-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .cand-contact-block {
    text-align: left !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .cand-download-btns {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .cand-download-btns .btn {
    flex: 1;
    text-align: center;
  }

  /* Dialog stream max-height */
  .dialogue-stream {
    height: 280px;
  }

  /* Telemetry stats 2-col on mobile */
  .telemetry-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .btn {
    font-size: 0.82rem;
    padding: 9px 14px;
  }

  .btn-sm {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .tag {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .modal-content {
    padding: 1.1rem 0.9rem;
  }
}

/* ==========================================================================
   Edura Learn Courses, LMS & Certification Styles
   ========================================================================== */
.courses-header-section {
  text-align: center;
  margin-bottom: 2rem;
}

/* Clean pill container for category and degree navigation */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0.8rem auto 1.2rem auto;
  width: 100%;
  max-width: 1100px;
  padding: 0 10px;
}

.grid-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--glow-primary);
}

.course-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.course-card-title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.skill-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.course-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-action-row {
  display: flex;
  gap: 10px;
}

.lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.lesson-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
}

/* Certificate Styles */
.certificate-frame {
  background: #0d1117;
  border: 3px solid #d97706;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 119, 6, 0.2);
}

.cert-border-inner {
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: 10px;
  padding: 24px;
}

.cert-header-brand {
  text-align: center;
  margin-bottom: 1rem;
}

.cert-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
}

.cert-gold-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   Portal Switcher & Bifurcated Navigation
   ========================================================================== */
.portal-switch-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 1rem 0;
}

.portal-switch-bar {
  display: inline-flex;
  background: rgba(13, 18, 29, 0.95);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  gap: 8px;
}

.portal-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.portal-switch-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
  color: #fff;
  box-shadow: var(--glow-primary);
}

.portal-switch-btn.copilot-btn.active {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  box-shadow: var(--glow-cyan);
}

/* Secondary Subnav */
.subnav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.subnav-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.subnav-pill:hover, .subnav-pill.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.subnav-pill.active {
  border-color: var(--accent-primary);
  color: #fff;
}

/* Corporate Pages & Policy Cards */
.policy-card {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  max-width: 900px;
  margin: 1.5rem auto;
  line-height: 1.7;
}

.policy-card h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.policy-card h3 {
  font-size: 1.25rem;
  color: var(--accent-secondary);
  margin: 1.5rem 0 0.5rem 0;
}

.policy-card p, .policy-card li {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

/* Admin Dashboard Styles */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  padding: 1.25rem;
  text-align: center;
}

.admin-action-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Google Authentication & Interactive Auth Gate
   ========================================================================== */
.btn-google {
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  color: #0f172a;
}

.auth-gate-card {
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.95) 0%, rgba(13, 18, 29, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}

.auth-divider::before {
  margin-right: 0.75rem;
}

.auth-divider::after {
  margin-left: 0.75rem;
}

.auth-benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* ==========================================================================
   Course Category & Degree Filter Pills
   ========================================================================== */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0.8rem 0;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  user-select: none;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.pill-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
  border-color: rgba(99, 102, 241, 0.8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   Hero Live Statistics Banner
   ========================================================================== */
.hero-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 1.5rem auto 1rem auto;
  padding: 12px 18px;
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stat-item:last-child {
  border-right: none;
}

.hero-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Theater Mode for Classroom */
.grid-classroom.theater-mode {
  grid-template-columns: 1fr !important;
}

.grid-classroom.theater-mode #classroomPlayerContent {
  width: 100%;
}

/* Print Certificate Media Rules */
@media print {
  body * {
    visibility: hidden;
  }
  #certificateModal, #certificateModal * {
    visibility: visible;
  }
  #certificateModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    color: #000 !important;
  }
  .cert-hide-print {
    display: none !important;
  }
}

/* ==========================================================================
   Phase A & B: 360° AI Audio Mentor & Voice Studio Styles
   ========================================================================== */
.voice-mode-switcher {
  display: inline-flex;
  background: rgba(13, 18, 29, 0.85);
  border: 1px solid var(--border-glass-strong);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.voice-mode-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.voice-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.voice-mode-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(99, 102, 241, 0.35));
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.track-pill {
  transition: all 0.25s ease;
}

.track-pill.active {
  background: linear-gradient(135deg, #06b6d4, #6366f1) !important;
  color: #fff !important;
  border-color: rgba(6, 182, 212, 0.6) !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-emerald {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #059669 !important;
}

#btnMicRecord.recording {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
  animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ==========================================================================
   Google AdSense Display Slots & Cookie Consent Banner
   ========================================================================== */
.adsense-container {
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 8px;
  background: rgba(13, 18, 29, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.adsense-container:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(13, 18, 29, 0.65);
}

.adsense-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.adsense-sidebar {
  width: 100%;
  margin-top: 1rem;
  padding: 10px;
  min-height: 250px;
}

.adsense-leaderboard {
  min-height: 90px;
}

.cookie-consent-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 40px);
  max-width: 900px;
  background: rgba(13, 18, 29, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-consent-text {
  font-size: 0.83rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-consent-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 70px;
    padding: 1rem;
  }
  .cookie-consent-actions {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   EDL HERO OVERVIEW, INFOGRAPHIC & 5-STEP PROCESS ROADMAP
   ========================================================================== */
.edl-hero-overview {
  max-width: 1280px;
  margin: 1.25rem auto 1.5rem auto;
  padding: 0 1.25rem;
}

.edl-hero-inner {
  background: linear-gradient(135deg, rgba(13, 18, 29, 0.95), rgba(7, 9, 14, 0.98));
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.12);
  position: relative;
  overflow: hidden;
}

.edl-hero-inner::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 30%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.edl-hero-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 1.75rem auto;
}

.edl-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pulse-emerald {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-emerald-anim 2s infinite;
}

@keyframes pulse-emerald-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.edl-hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.85rem 0;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #67e8f9 80%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.edl-hero-subtitle {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 840px;
}

/* Infographic Image Box */
.edl-infographic-container {
  margin: 1.5rem auto 2rem auto;
  max-width: 1040px;
}

.edl-infographic-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 182, 212, 0.35);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.2);
  background: #090d16;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edl-infographic-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), 0 0 45px rgba(6, 182, 212, 0.3);
}

.edl-infographic-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.edl-infographic-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

/* 5-Step Process Grid */
.edl-process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}

.edl-process-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edl-process-card:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.edl-step-num {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edl-step-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.edl-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}

.edl-step-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.edl-step-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.edl-process-card:hover .edl-step-action {
  color: #67e8f9;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .edl-process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .edl-hero-title {
    font-size: 1.75rem;
  }
  .edl-hero-inner {
    padding: 1.5rem 1rem;
  }
  .edl-process-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   Module A & D: ATS Diagnostic, Side-by-Side Diff, Course Bridge & App Tracker
   ========================================================================== */

.ats-diagnostic-container {
  background: rgba(13, 18, 29, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  backdrop-filter: blur(16px);
}

.ats-subscore-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.ats-subscore-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.diff-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.diff-column-card {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.diff-column-card.upgraded {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(145deg, rgba(13, 18, 29, 0.95), rgba(6, 182, 212, 0.05));
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.12);
}

.diff-field-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.diff-field-content {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 48px;
}

.diff-field-content[contenteditable="true"] {
  outline: none;
  border-color: rgba(99, 102, 241, 0.3);
  transition: border-color 0.2s;
}

.diff-field-content[contenteditable="true"]:focus {
  border-color: var(--accent-secondary);
  background: rgba(0, 0, 0, 0.5);
}

.course-bridge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.course-bridge-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.course-bridge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.app-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.app-history-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-glass);
  text-align: left;
}

.app-history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}

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

.rollback-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(13, 18, 29, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.25rem;
}

@media (max-width: 860px) {
  .diff-comparison-grid {
    grid-template-columns: 1fr;
  }
}










