/* ==========================================================================
   NEXORA BANK - BFSI GLOBAL LEARNING & DEVELOPMENT PORTAL
   Design System: Pastel Aesthetics (Option 2: Rose Gold & Pearl Azure Default)
   ========================================================================== */

/* --- ROOT VARIABLES & THEMES --- */
:root {
  /* Font Family */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* OPTION 2: ROSE GOLD & PEARL AZURE (DEFAULT) */
  --bg-app: #FAF5F7;
  --bg-navbar: rgba(255, 255, 255, 0.88);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFDFE;
  
  --primary-accent: #B85B82;         /* Deep Rose Gold */
  --primary-gradient: linear-gradient(135deg, #E8A0BF 0%, #B85B82 100%);
  --primary-gradient-subtle: linear-gradient(135deg, #FDEBF1 0%, #FAF0F4 100%);
  --primary-soft: #FDEBF1;
  --primary-border: rgba(232, 160, 191, 0.35);

  --azure-accent: #0284C7;
  --azure-soft: #E0F2FE;
  
  --mint-accent: #0D9488;
  --mint-soft: #CCFBF1;

  --amber-accent: #D97706;
  --amber-soft: #FEF3C7;

  --purple-accent: #7C3AED;
  --purple-soft: #F3E8FF;

  --gold-accent: #D97706;
  --gold-gradient: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);

  /* Text Colors */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Card Shadows & Borders */
  --shadow-sm: 0 2px 8px rgba(184, 91, 130, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(184, 91, 130, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(184, 91, 130, 0.12);
  --shadow-glow: 0 0 25px rgba(232, 160, 191, 0.4);

  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
}

/* OPTION 1: LAVENDER & MINT THEME OVERRIDE */
[data-theme="mint"] {
  --bg-app: #F4F9F8;
  --bg-navbar: rgba(255, 255, 255, 0.9);
  --bg-card: #FFFFFF;

  --primary-accent: #0D9488;         /* Emerald Mint */
  --primary-gradient: linear-gradient(135deg, #2DD4BF 0%, #0D9488 100%);
  --primary-gradient-subtle: linear-gradient(135deg, #E6F4EA 0%, #F0FDF4 100%);
  --primary-soft: #E6F4EA;
  --primary-border: rgba(45, 212, 191, 0.35);

  --azure-accent: #6366F1;
  --azure-soft: #EEF2FF;
  
  --shadow-md: 0 8px 24px -4px rgba(13, 148, 136, 0.08);
  --shadow-glow: 0 0 25px rgba(45, 212, 191, 0.4);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
  background: rgba(184, 91, 130, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-accent);
}

/* --- NAVBAR STYLES --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-navbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--primary-border);
  box-shadow: var(--shadow-sm);
  padding: 12px 24px;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: #FFF;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-badge {
  background: var(--primary-soft);
  color: var(--primary-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search Bar */
.nav-center {
  flex: 1;
  max-width: 460px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-xl);
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(232, 160, 191, 0.2);
}

.search-icon {
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 10px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: var(--text-main);
}

.search-shortcut {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-app);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.03);
  padding: 4px 8px;
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(0,0,0,0.05);
}

.theme-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.theme-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--border-radius-lg);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-btn.active {
  background: #FFF;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.rosegold-dot { background: #E8A0BF; }
.mint-dot { background: #2DD4BF; }

/* Role Switcher */
.role-switch-container {
  display: flex;
  background: #FFF;
  border: 1px solid var(--primary-border);
  padding: 3px;
  border-radius: var(--border-radius-xl);
}

.role-chip {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-chip.active {
  background: var(--primary-gradient);
  color: #FFF;
  box-shadow: var(--shadow-sm);
}

.badge-count {
  background: #EF4444;
  color: #FFF;
  font-size: 10px;
  border-radius: 10px;
  padding: 0 6px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFF;
  border: 1px solid var(--primary-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

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

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid #FFF;
}

/* User Pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF;
  border: 1px solid var(--primary-border);
  padding: 4px 12px 4px 4px;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-accent);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role {
  font-size: 10px;
  color: var(--text-muted);
}

.pill-arrow {
  font-size: 10px;
  color: var(--text-light);
}

/* --- MAIN WRAPPER --- */
.main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* --- WELCOME HERO BANNER --- */
.welcome-hero {
  background: var(--primary-gradient-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.welcome-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(232, 160, 191, 0.25) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.hero-left {
  flex: 1.2;
}

.experience-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF;
  color: var(--primary-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--primary-border);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.highlight-text {
  color: var(--primary-accent);
  background: linear-gradient(120deg, var(--primary-accent), var(--azure-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 20px;
}

.hero-quick-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.warning-icon { background: var(--amber-soft); color: var(--amber-accent); }
.gold-icon { background: var(--amber-soft); color: var(--gold-accent); }

.stat-val {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Finn AI Promo Banner Card */
.hero-right {
  flex: 0.9;
}

.finn-ai-card-promo {
  background: #FFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finn-ai-card-promo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--primary-accent);
}

.finn-avatar-glow {
  position: relative;
  width: 48px;
  height: 48px;
}

.finn-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(232, 160, 191, 0.5);
}

.live-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid #FFF;
  border-radius: 50%;
}

.finn-promo-text h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.finn-promo-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.finn-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--primary-accent);
  background: var(--primary-soft);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.btn-finn-action {
  background: var(--primary-gradient);
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* --- DASHBOARD METRICS GRID --- */
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.metric-card.highlight-border {
  border: 1.5px solid var(--amber-accent);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.pastel-rose { background: var(--primary-soft); color: var(--primary-accent); }
.pastel-amber { background: var(--amber-soft); color: var(--amber-accent); }
.pastel-azure { background: var(--azure-soft); color: var(--azure-accent); }
.pastel-mint { background: var(--mint-soft); color: var(--mint-accent); }
.pastel-purple { background: var(--purple-soft); color: var(--purple-accent); }
.pastel-gold { background: #FEF3C7; color: #D97706; }

.card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.card-badge.info { background: var(--azure-soft); color: var(--azure-accent); }
.card-badge.warning { background: var(--amber-soft); color: var(--amber-accent); }
.card-badge.success { background: var(--mint-soft); color: var(--mint-accent); }
.card-badge.neutral { background: #F1F5F9; color: #475569; }
.card-badge.gold { background: #FEF3C7; color: #D97706; }

.metric-number {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.1;
  display: block;
}

.metric-number small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-link:hover {
  text-decoration: underline;
}

.text-warning { color: var(--amber-accent) !important; }

/* Progress bar inside card */
.mini-progress-bar {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
}
.gold-fill { background: var(--gold-gradient); }
.warning-fill { background: linear-gradient(90deg, #F59E0B, #D97706); }

/* --- DASHBOARD SPLIT LAYOUT --- */
.dashboard-split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

@media (max-width: 1024px) {
  .dashboard-split-layout {
    grid-template-columns: 1fr;
  }
}

.section-container {
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-xl);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-accent { color: var(--primary-accent); }
.text-gold { color: var(--gold-accent); }

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.live-pill {
  background: var(--mint-soft);
  color: var(--mint-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

/* CONTINUE LEARNING HERO COURSE CARD */
.continue-course-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDFE 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .continue-course-card {
    grid-template-columns: 1fr;
  }
}

.continue-banner-img {
  position: relative;
  height: 100%;
  min-height: 180px;
}

.continue-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  color: #FFF;
}

.coursera-tag { background: #0056D2; }
.udemy-tag { background: #A435F0; }

.continue-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-meta-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-pill.rose { background: var(--primary-soft); color: var(--primary-accent); }
.tag-pill.azure { background: var(--azure-soft); color: var(--azure-accent); }
.tag-pill.muted { background: #F1F5F9; color: var(--text-muted); }

.continue-content h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.course-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-block {
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.progress-info .pct {
  font-weight: 800;
  color: var(--primary-accent);
}

.main-progress-bar {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.main-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.continue-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* BUTTON SYSTEM */
.btn {
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(184, 91, 130, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 91, 130, 0.35);
}

.btn-secondary {
  background: #FFF;
  color: var(--text-main);
  border: 1px solid var(--primary-border);
}
.btn-secondary:hover {
  background: var(--primary-soft);
  color: var(--primary-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--primary-accent);
  background: rgba(0,0,0,0.03);
}

.btn-warning {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFF;
}

.btn-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFF;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-border);
  color: var(--primary-accent);
}
.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.btn-xs { padding: 4px 8px; font-size: 10px; border-radius: 6px; }

/* HR DOMAIN SELECTION BUTTON STYLES */
.domain-card-btn {
  background: #FFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.domain-card-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.domain-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* TAB FILTERS */
.tab-filters {
  display: flex;
  gap: 6px;
  background: #F8FAFC;
  padding: 3px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.tab-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  background: transparent;
  color: var(--text-muted);
}

.tab-btn.active {
  background: #FFF;
  color: var(--primary-accent);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* COURSES CARDS GRID */
.courses-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.course-card {
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.course-thumb {
  position: relative;
  height: 140px;
  overflow: hidden;
}

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

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

.course-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  color: #FFF;
  text-transform: uppercase;
}

.course-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-provider-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.course-card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-main);
}

.course-card-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* SKILL COMPETENCY RADAR BOX */
.skill-analysis-box {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--primary-gradient-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
}

@media (max-width: 768px) {
  .skill-analysis-box {
    grid-template-columns: 1fr;
  }
}

.radar-chart-container {
  width: 100%;
  height: 280px;
  position: relative;
}

.skill-insights h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.insight-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  background: #FFF;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.insight-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.success-bg { background: var(--mint-soft); color: var(--mint-accent); }
.warning-bg { background: var(--amber-soft); color: var(--amber-accent); }
.info-bg { background: var(--azure-soft); color: var(--azure-accent); }

.insight-item strong {
  display: block;
  font-size: 12px;
  color: var(--text-main);
}

.insight-item p {
  font-size: 11px;
  color: var(--text-muted);
}

.finn-suggestion-pill {
  background: #FFF;
  border: 1px dashed var(--primary-accent);
  color: var(--primary-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.finn-suggestion-pill:hover {
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

/* --- SIDEBAR CARDS --- */
.sidebar-card {
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-xl);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.compliance-card {
  border: 1.5px solid var(--amber-accent);
  background: linear-gradient(180deg, #FFFDF9 0%, #FFFFFF 100%);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.urgency-badge {
  background: #FEF2F2;
  color: #EF4444;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #FCA5A5;
}

.pulse-badge {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.days-left {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-accent);
}

.compliance-card h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.compliance-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.compliance-progress {
  margin-bottom: 10px;
}

/* Upcoming Events Schedule */
.view-all-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-accent);
  cursor: pointer;
}

.upcoming-events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.event-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-date-box {
  width: 44px;
  height: 48px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-date-box .day {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-accent);
  line-height: 1;
}

.event-date-box .month {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.event-details h4 {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}

.event-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.event-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}
.event-tag.live { background: #FEE2E2; color: #DC2626; }
.event-tag.workshop { background: var(--azure-soft); color: var(--azure-accent); }

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick-action-btn {
  background: var(--bg-app);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--border-radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: #FFF;
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.action-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.rose-bg { background: var(--primary-soft); color: var(--primary-accent); }
.azure-bg { background: var(--azure-soft); color: var(--azure-accent); }
.gold-bg { background: #FEF3C7; color: #D97706; }
.mint-bg { background: var(--mint-soft); color: var(--mint-accent); }

.quick-action-btn span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

/* Badge Promo Card */
.badge-promo-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
  border: 1.5px solid #FDE68A;
  text-align: center;
}

.badge-icon-header {
  width: 50px;
  height: 50px;
  background: var(--gold-gradient);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px auto;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.badge-promo-card h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.badge-promo-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.badge-status span {
  font-size: 10px;
  font-weight: 700;
  color: #D97706;
}

/* --- FINN AI CHATBOT DRAWER & LAUNCHER --- */
.finn-chatbot-container {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 99999 !important;
}

.finn-launcher-btn {
  background: var(--primary-gradient) !important;
  color: #FFF !important;
  padding: 12px 20px 12px 14px !important;
  border-radius: 30px !important;
  box-shadow: 0 10px 30px rgba(184, 91, 130, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 100000 !important;
}

.finn-launcher-btn:hover {
  transform: scale(1.06);
}

.finn-icon-glow {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.launcher-label {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.pulse-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2.5px solid #FFF;
  border-radius: 50%;
}

/* Chatbot Window Drawer */
.finn-chat-window {
  position: fixed !important;
  bottom: 84px !important;
  right: 24px !important;
  width: 440px !important;
  max-width: calc(100vw - 32px) !important;
  height: 600px !important;
  max-height: calc(100vh - 110px) !important;
  background: #FFFFFF !important;
  border: 2px solid var(--primary-accent) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 50px rgba(0,0,0,0.22) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 999999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.finn-chat-window.closed {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.finn-header {
  background: var(--primary-gradient-subtle);
  border-bottom: 1px solid var(--primary-border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.finn-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finn-avatar-sm {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.finn-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.finn-title-row h4 {
  font-size: 15px;
  font-weight: 800;
}

.ai-badge {
  background: var(--primary-accent);
  color: #FFF;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.online-status {
  font-size: 10px;
  color: #10B981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.online-status .dot { width: 6px; height: 6px; background: #10B981; border-radius: 50%; }

.finn-subtitle {
  font-size: 10px;
  color: var(--text-muted);
}

.finn-header-actions {
  display: flex;
  gap: 6px;
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn-sm:hover { color: var(--primary-accent); }

/* Chat Messages Body - GUARANTEED ROCK-SOLID SCROLL CONTAINER */
.finn-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 440px !important;
  max-height: 440px !important;
  padding: 16px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  background: #FAFAFA !important;
  pointer-events: auto !important;
  scroll-behavior: smooth !important;
}

.chat-bubble-row {
  display: flex;
  gap: 10px;
  max-width: 90%;
}

.chat-bubble-row.bot {
  align-self: flex-start;
}

.chat-bubble-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.bot-avatar { background: var(--primary-gradient); color: #FFF; }
.user-avatar-bubble { background: var(--azure-soft); color: var(--azure-accent); }

.chat-bubble-content {
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  line-height: 1.45;
}

.chat-bubble-row.user .chat-bubble-content {
  background: var(--primary-gradient);
  color: #FFF;
  border-top-right-radius: 2px;
}

.chat-bubble-row.bot .chat-bubble-content {
  border-top-left-radius: 2px;
}

/* Course Recommendations inside Finn Chat */
.finn-course-recommendations-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.finn-rec-card {
  background: #FFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.finn-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.finn-rec-provider {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #FFF;
}

.match-score {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-accent);
}

.finn-rec-card h5 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.finn-rec-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.finn-rec-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Typing Indicator */
.finn-typing-indicator {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.finn-avatar-xs {
  width: 24px;
  height: 24px;
  background: var(--primary-gradient);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--primary-accent);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.typing-text {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Chat Footer Input */
.finn-footer {
  border-top: 1px solid rgba(0,0,0,0.06) !important;
  padding: 12px 14px !important;
  background: #FFF !important;
  position: relative !important;
  z-index: 1000000 !important;
  pointer-events: auto !important;
}

.finn-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.chip-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-accent);
  white-space: nowrap;
  border: 1px solid var(--primary-border);
  cursor: pointer !important;
  pointer-events: auto !important;
}
.chip-btn:hover { background: var(--primary-accent); color: #FFF; }

.finn-input-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  pointer-events: auto !important;
}

.finn-input-form input {
  flex: 1 !important;
  border: 1.5px solid var(--primary-accent) !important;
  border-radius: var(--border-radius-xl) !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  outline: none !important;
  background: #FFFFFF !important;
  color: #1E293B !important;
  pointer-events: auto !important;
  user-select: text !important;
  cursor: text !important;
  position: relative !important;
  z-index: 1000001 !important;
}
.finn-input-form input:focus {
  box-shadow: 0 0 0 3px rgba(184, 91, 130, 0.3) !important;
  border-color: var(--primary-accent) !important;
}

.btn-send-finn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--primary-gradient) !important;
  color: #FFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1000001 !important;
}

/* --- MODAL BACKDROP & BOX SYSTEM --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none !important; /* CRITICAL FIX: MUST BE DISPLAY NONE WHEN INACTIVE TO NOT BLOCK MOUSE CLICKS */
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-box {
  background: #FFF;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--primary-border);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-md { max-width: 540px; }
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 1040px; }

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-gradient-subtle);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 0;
}

.player-left {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

.player-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
}

.player-right {
  background: #FAFAFA;
  border-left: 1px solid rgba(0,0,0,0.06);
  padding: 20px;
}

.curriculum-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.curriculum-item {
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.curriculum-item.active {
  border-color: var(--primary-accent);
  background: var(--primary-soft);
  font-weight: 700;
}

/* CALENDAR & EMAIL PREVIEWS */
.calendar-preview-card {
  background: var(--bg-app);
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-lg);
  padding: 18px;
}

.cal-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cal-icon {
  font-size: 28px;
  color: var(--primary-accent);
}

.cal-details-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 14px;
}

.cal-note {
  font-size: 11px;
  background: #FFF;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-preview-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius-md);
  padding: 16px;
  font-size: 12px;
}

.email-field {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E2E8F0;
}
.email-field .lbl { color: var(--text-muted); display: inline-block; width: 60px; }

.email-body-text {
  background: #FFF;
  padding: 14px;
  border-radius: 8px;
  margin-top: 10px;
  line-height: 1.6;
}

/* CERTIFICATE PAPER STYLING */
.certificate-paper {
  background: #FFF;
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.cert-border {
  border: 4px double var(--primary-accent);
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle, #FFFDFE 0%, #FAF0F4 100%);
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cert-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-serial {
  font-size: 10px;
  font-family: monospace;
  color: var(--text-muted);
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cert-subtitle {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cert-recipient {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-accent);
  text-decoration: underline;
  margin-bottom: 14px;
}

.cert-reason {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px auto;
}

.cert-reason h4 {
  font-size: 16px;
  color: var(--text-main);
  margin: 6px 0;
}

.cert-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 24px;
}

.cert-sig {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sig-line {
  width: 140px;
  height: 1px;
  background: var(--text-main);
  margin-bottom: 4px;
}

.cert-sig span {
  font-size: 11px;
  font-weight: 700;
}

.cert-sig small {
  font-size: 9px;
  color: var(--text-muted);
}

.qr-icon {
  font-size: 40px;
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* MANAGER HUB TABLES */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.data-table th {
  background: var(--primary-soft);
  color: var(--primary-accent);
  font-weight: 800;
}

/* TOAST NOTIFICATION STYLING */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #FFF;
  border-left: 4px solid var(--primary-accent);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  min-width: 300px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left-color: #10B981; }
.toast.info { border-left-color: var(--azure-accent); }
.toast.warning { border-left-color: var(--amber-accent); }

.toast-icon { font-size: 16px; }
.toast.success .toast-icon { color: #10B981; }
.toast.info .toast-icon { color: var(--azure-accent); }
.toast.warning .toast-icon { color: var(--amber-accent); }

/* ==========================================================================
   FINN v2 — DOMAIN PICKER CARDS & COURSE META
   ========================================================================== */

.finn-domains-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.finn-domain-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: #FFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  cursor: pointer !important;
  pointer-events: auto !important;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.finn-domain-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,.08));
}

.finn-domain-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-accent);
  font-size: 13px;
}

.finn-domain-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.finn-domain-body strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.finn-domain-body small {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.finn-rec-meta {
  font-size: 10px !important;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px !important;
}
